blob: 5de6ea272ac2627cc451101449fb41edc304c5dc [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'o5b5bd2c2014-07-10 00:17:05 -0400630MKINSTALLDIRS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400631INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100632DO_TEST_SUITE
633ET_DIR
634SS_DIR
635LDFLAG_STATIC
636root_sysconfdir
637root_libdir
638root_sbindir
639root_bindir
640root_prefix
641UNIX_CMT
642CYGWIN_CMT
643LINUX_CMT
644UNI_DIFF_OPTS
645SEM_INIT_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100646SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400647SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100648SIZEOF_LONG_LONG
649SIZEOF_LONG
650SIZEOF_INT
651SIZEOF_SHORT
652BUILD_CC
653MAKEINFO
654STRIP
655AR
656LDCONFIG
657PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100658AWK
659CHMOD
660RM
661CP
662MV
663LN_S
664LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400665ifNotGNUmake
666ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100667BINARY_TYPE
668POSUB
669LTLIBINTL
670LIBINTL
671INTLLIBS
672INTL_LIBTOOL_SUFFIX_PREFIX
673INTLOBJS
674GENCAT
675INSTOBJEXT
676DATADIRNAME
677CATOBJEXT
678USE_INCLUDED_LIBINTL
679BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400680LTLIBC
681WINDRES
682WOE32
683WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100684HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400685HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100686HAVE_SNPRINTF
687HAVE_ASPRINTF
688HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400689INTL_DEFAULT_VERBOSITY
690INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100691GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400692INTLBISON
693LTLIBICONV
694LIBICONV
695LTLIBMULTITHREAD
696LIBMULTITHREAD
697LTLIBTHREAD
698LIBTHREAD
699LIBPTH_PREFIX
700LTLIBPTH
701LIBPTH
702PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100703ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400704HAVE_VISIBILITY
705CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100706RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400707GLIBC2
708XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100709MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400710XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100711XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400712GMSGFMT_015
713MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100714GMSGFMT
715MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400716GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100717USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400718SED
719MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723SET_MAKE
724VERSION
725PACKAGE
726GETTEXT_PACKAGE
727UUIDD_CMT
728E2INITRD_MAN
729E2INITRD_PROG
730FSCK_MAN
731FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500732DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100733RESIZER_CMT
734IMAGER_CMT
735DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700736QUOTA_CMT
737DEPPROFILED_LIBQUOTA
738PROFILED_LIBQUOTA
739DEPSTATIC_LIBQUOTA
740STATIC_LIBQUOTA
741DEPLIBQUOTA
742LIBQUOTA
Eric Sandeenf5589f42013-10-14 08:54:15 -0400743QUOTA_MAN_COMMENT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100744BLKID_CMT
745DEPPROFILED_LIBBLKID
746PROFILED_LIBBLKID
747DEPSTATIC_LIBBLKID
748STATIC_LIBBLKID
749DEPLIBBLKID
750LIBBLKID
751UUID_CMT
752DEPPROFILED_LIBUUID
753PROFILED_LIBUUID
754DEPSTATIC_LIBUUID
755STATIC_LIBUUID
756DEPLIBUUID
757LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400758PKG_CONFIG_LIBDIR
759PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100760PKG_CONFIG
761TEST_IO_CMT
762PRIVATE_LIBS_CMT
763LDFLAG_DYNAMIC
764PROFILED_LIB_EXT
765STATIC_LIB_EXT
766LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100767PROFILE_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
Theodore Ts'oe1052142006-10-21 21:46:47 -0400845MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400846ASM_TYPES_HEADER
847PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100848ac_user_opts='
849enable_option_checking
850with_diet_libc
851with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100852with_ccopts
853with_ldopts
854with_root_prefix
855enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400856enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400857enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400858enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400859enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400860enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100861enable_compression
862enable_htree
863enable_elf_shlibs
864enable_bsd_shlibs
865enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500866enable_gcov
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100867enable_jbd_debug
868enable_blkid_debug
869enable_testio_debug
870enable_libuuid
871enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500872enable_quota
Theodore Ts'o3df60142013-06-16 16:14:40 -0400873enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100874enable_debugfs
875enable_imager
876enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500877enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100878enable_fsck
879enable_e2initrd_helper
880enable_tls
881enable_uuidd
882enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400883enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100884with_gnu_ld
885enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400886with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100887with_libiconv_prefix
888with_included_gettext
889with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400890with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100891'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400892 ac_precious_vars='build_alias
893host_alias
894target_alias
895CC
896CFLAGS
897LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400898LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400899CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400900CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400901PKG_CONFIG
902PKG_CONFIG_PATH
903PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400904
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000905
906# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500907ac_init_help=
908ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100909ac_unrecognized_opts=
910ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000911# The variables have the same names as the options, with
912# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500913cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000914exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000915no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916no_recursion=
917prefix=NONE
918program_prefix=NONE
919program_suffix=NONE
920program_transform_name=s,x,x,
921silent=
922site=
923srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000924verbose=
925x_includes=NONE
926x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500927
928# Installation directory options.
929# These are left unexpanded so users can "make install exec_prefix=/foo"
930# and all the variables that are supposed to be based on exec_prefix
931# by default will actually change.
932# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400933# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000934bindir='${exec_prefix}/bin'
935sbindir='${exec_prefix}/sbin'
936libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400937datarootdir='${prefix}/share'
938datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000939sysconfdir='${prefix}/etc'
940sharedstatedir='${prefix}/com'
941localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000942includedir='${prefix}/include'
943oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400944docdir='${datarootdir}/doc/${PACKAGE}'
945infodir='${datarootdir}/info'
946htmldir='${docdir}'
947dvidir='${docdir}'
948pdfdir='${docdir}'
949psdir='${docdir}'
950libdir='${exec_prefix}/lib'
951localedir='${datarootdir}/locale'
952mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000953
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000954ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400955ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000956for ac_option
957do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400960 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000961 ac_prev=
962 continue
963 fi
964
Theodore Ts'oe1052142006-10-21 21:46:47 -0400965 case $ac_option in
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400966 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 *=) ac_optarg= ;;
968 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400969 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000970
971 # Accept the important Cygnus configure options, so we can diagnose typos.
972
Theodore Ts'oe1052142006-10-21 21:46:47 -0400973 case $ac_dashdash$ac_option in
974 --)
975 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000976
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 ac_prev=bindir ;;
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500980 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000981
982 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500983 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500985 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000986
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500992 cache_file=$ac_optarg ;;
993
994 --config-cache | -C)
995 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000996
Theodore Ts'oe1052142006-10-21 21:46:47 -0400997 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000998 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001000 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001001
Theodore Ts'oe1052142006-10-21 21:46:47 -04001002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1008
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001009 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001010 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001011 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001013 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001024
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1029
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001034
1035 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001037 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001039 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044"enable_$ac_useropt"
1045"*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001050
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001058 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001059
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1062 with_gas=yes ;;
1063
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001070
1071 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001072 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001073 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001074 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001075
Theodore Ts'oe1052142006-10-21 21:46:47 -04001076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 ac_prev=htmldir ;;
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 | --ht=*)
1080 htmldir=$ac_optarg ;;
1081
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001087 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001088
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 ac_prev=infodir ;;
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001092 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001093
1094 -libdir | --libdir | --libdi | --libd)
1095 ac_prev=libdir ;;
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001097 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001098
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001104 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001105
Theodore Ts'oe1052142006-10-21 21:46:47 -04001106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1110
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001111 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001112 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001116 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001117
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 ac_prev=mandir ;;
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001121 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001122
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1125 with_fp=no ;;
1126
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001128 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001129 no_create=yes ;;
1130
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 no_recursion=yes ;;
1134
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001142 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001143
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 ac_prev=prefix ;;
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001147 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001148
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001154 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001155
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001161 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001162
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001178 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001179
Theodore Ts'oe1052142006-10-21 21:46:47 -04001180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 ac_prev=pdfdir ;;
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1184
1185 -psdir | --psdir | --psdi | --psd | --ps)
1186 ac_prev=psdir ;;
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 psdir=$ac_optarg ;;
1189
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1192 silent=yes ;;
1193
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 ac_prev=sbindir ;;
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001198 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001199
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1203 | --sha | --sh)
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001209 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001210
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001211 -site | --site | --sit)
1212 ac_prev=site ;;
1213 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001214 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001215
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 ac_prev=srcdir ;;
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001219 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001220
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001226 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001227
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001228 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001229 ac_prev=target_alias ;;
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 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001232
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 verbose=yes ;;
1235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001238
1239 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001241 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001243 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248"with_$ac_useropt"
1249"*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001254
1255 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001256 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001257 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001259 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264"with_$ac_useropt"
1265"*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001270
1271 --x)
1272 # Obsolete; use --with-x.
1273 with_x=yes ;;
1274
1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276 | --x-incl | --x-inc | --x-in | --x-i)
1277 ac_prev=x_includes ;;
1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001280 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001281
1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284 ac_prev=x_libraries ;;
1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001287 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001288
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001289 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1290Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001291 ;;
1292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001293 *=*)
1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001296 case $ac_envvar in #(
1297 '' | [0-9]* | *[!_$as_cr_alnum]* )
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001298 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001299 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001300 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001301 export $ac_envvar ;;
1302
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001303 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001304 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001308 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001309 ;;
1310
1311 esac
1312done
1313
1314if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001316 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001317fi
1318
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001319if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1321 no) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001322 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324 esac
1325fi
1326
1327# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001328for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001332do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001333 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001334 # Remove trailing slashes.
1335 case $ac_val in
1336 */ )
1337 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\$ac_val;;
1339 esac
1340 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001341 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001344 esac
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001345 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001346done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001347
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001348# There might be people who depend on the old broken behavior: `$host'
1349# used to hold the argument of --host etc.
1350# FIXME: To remove some day.
1351build=$build_alias
1352host=$host_alias
1353target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001354
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001355# FIXME: To remove some day.
1356if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001359 elif test "x$build_alias" != "x$host_alias"; then
1360 cross_compiling=yes
1361 fi
1362fi
1363
1364ac_tool_prefix=
1365test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367test "$silent" = yes && exec 6>/dev/null
1368
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001369
Theodore Ts'oe1052142006-10-21 21:46:47 -04001370ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371ac_ls_di=`ls -di .` &&
1372ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001373 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001374test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001375 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001376
1377
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001378# Find the source files, if location was not specified.
1379if test -z "$srcdir"; then
1380 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001381 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001382 ac_confdir=`$as_dirname -- "$as_myself" ||
1383$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384 X"$as_myself" : 'X\(//\)[^/]' \| \
1385 X"$as_myself" : 'X\(//\)$' \| \
1386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\/\)[^/].*/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\).*/{
1401 s//\1/
1402 q
1403 }
1404 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001405 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001406 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001407 srcdir=..
1408 fi
1409else
1410 ac_srcdir_defaulted=no
1411fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001412if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001414 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001415fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001416ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417ac_abs_confdir=`(
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001419 pwd)`
1420# When building in place, set srcdir=.
1421if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 srcdir=.
1423fi
1424# Remove unnecessary trailing slashes from srcdir.
1425# Double slashes in file names in object file debugging info
1426# mess up M-x gdb in Emacs.
1427case $srcdir in
1428*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429esac
1430for ac_var in $ac_precious_vars; do
1431 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_env_${ac_var}_value=\$${ac_var}
1433 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001436
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001437#
1438# Report the --help message.
1439#
1440if test "$ac_init_help" = "long"; then
1441 # Omit some internal or obsolete options to make the list less imposing.
1442 # This message is too long to be a string in the A/UX 3.1 sh.
1443 cat <<_ACEOF
1444\`configure' configures this package to adapt to many kinds of systems.
1445
1446Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449VAR=VALUE. See below for descriptions of some of the useful variables.
1450
1451Defaults for the options are specified in brackets.
1452
1453Configuration:
1454 -h, --help display this help and exit
1455 --help=short display options specific to this package
1456 --help=recursive display the short help of all the included packages
1457 -V, --version display version information and exit
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001458 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001459 --cache-file=FILE cache test results in FILE [disabled]
1460 -C, --config-cache alias for \`--cache-file=config.cache'
1461 -n, --no-create do not create output files
1462 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1463
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001464Installation directories:
1465 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001466 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001468 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001469
1470By default, \`make install' will install all the files in
1471\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1472an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473for instance \`--prefix=\$HOME'.
1474
1475For better control, use the options below.
1476
1477Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001478 --bindir=DIR user executables [EPREFIX/bin]
1479 --sbindir=DIR system admin executables [EPREFIX/sbin]
1480 --libexecdir=DIR program executables [EPREFIX/libexec]
1481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1483 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1484 --libdir=DIR object code libraries [EPREFIX/lib]
1485 --includedir=DIR C header files [PREFIX/include]
1486 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1487 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1488 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1489 --infodir=DIR info documentation [DATAROOTDIR/info]
1490 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1491 --mandir=DIR man documentation [DATAROOTDIR/man]
1492 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1493 --htmldir=DIR html documentation [DOCDIR]
1494 --dvidir=DIR dvi documentation [DOCDIR]
1495 --pdfdir=DIR pdf documentation [DOCDIR]
1496 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001497_ACEOF
1498
1499 cat <<\_ACEOF
1500
1501System types:
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504_ACEOF
1505fi
1506
1507if test -n "$ac_init_help"; then
1508
1509 cat <<\_ACEOF
1510
1511Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001512 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001515 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001516 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001517 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001518
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001519 --enable-symlink-build use symlinks while building instead of hard links
1520 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001521 --enable-compression enable EXPERIMENTAL compression support
1522 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001523 --enable-elf-shlibs select ELF shared libraries
1524 --enable-bsd-shlibs select BSD shared libraries
1525 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001526 --enable-gcov build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001527 --enable-jbd-debug enable journal debugging
1528 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001529 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001530 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001531 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001532 --enable-quota enable quota support
Theodore Ts'o3df60142013-06-16 16:14:40 -04001533 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001534 --disable-debugfs disable support of debugfs program
1535 --disable-imager disable support of e2image program
1536 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001537 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001538 --enable-fsck build fsck wrapper program
1539 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001540 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001541 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001542 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001543 --enable-threads={posix|solaris|pth|windows}
1544 specify multithreading API
1545 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001546 --disable-rpath do not hardcode runtime library paths
1547
1548Optional Packages:
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001551 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001552 --with-cc no longer supported, use CC= instead
1553 --with-ccopts no longer supported, use CFLAGS= instead
1554 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001555 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001556 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1557 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1558 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001559 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1560 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1561 --with-included-gettext use the GNU gettext library included here
1562 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1563 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001564 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001565
1566Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001571 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001573 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001574 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001575 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001576 PKG_CONFIG_PATH
1577 directories to add to pkg-config's search path
1578 PKG_CONFIG_LIBDIR
1579 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001580
1581Use these variables to override the choices made by `configure' or to help
1582it to find libraries and programs with nonstandard names/locations.
1583
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001584Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001585_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001586ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001587fi
1588
1589if test "$ac_init_help" = "recursive"; then
1590 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001591 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001592 test -d "$ac_dir" ||
1593 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001595 ac_builddir=.
1596
Theodore Ts'oe1052142006-10-21 21:46:47 -04001597case "$ac_dir" in
1598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001601 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606 esac ;;
1607esac
1608ac_abs_top_builddir=$ac_pwd
1609ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610# for backward compatibility:
1611ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001612
1613case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001614 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001615 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001619 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1622 *) # Relative name.
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001626esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001628
Theodore Ts'oe1052142006-10-21 21:46:47 -04001629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001637 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001639 fi || ac_status=$?
1640 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001641 done
1642fi
1643
Theodore Ts'oe1052142006-10-21 21:46:47 -04001644test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001645if $ac_init_version; then
1646 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001647configure
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001648generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001649
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001650Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001651This configure script is free software; the Free Software Foundation
1652gives unlimited permission to copy, distribute and modify it.
1653_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001654 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001655fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001656
1657## ------------------------ ##
1658## Autoconf initialization. ##
1659## ------------------------ ##
1660
1661# ac_fn_c_try_compile LINENO
1662# --------------------------
1663# Try to compile conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_compile ()
1665{
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1669case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1687 ac_retval=0
1688else
1689 $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001695 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001696
1697} # ac_fn_c_try_compile
1698
1699# ac_fn_c_try_link LINENO
1700# -----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_link ()
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext conftest$ac_exeext
1706 if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest$ac_exeext && {
1725 test "$cross_compiling" = yes ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001726 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001727 }; then :
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734fi
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001741 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001742
1743} # ac_fn_c_try_link
1744
1745# ac_fn_c_try_cpp LINENO
1746# ----------------------
1747# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_c_try_cpp ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_cpp conftest.$ac_ext"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001766 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 }; then :
1770 ac_retval=0
1771else
1772 $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1
1776fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001778 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001779
1780} # ac_fn_c_try_cpp
1781
1782# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1783# -------------------------------------------------------
1784# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1785# the include files in INCLUDES and setting the cache variable VAR
1786# accordingly.
1787ac_fn_c_check_header_mongrel ()
1788{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001790 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001793if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001794 $as_echo_n "(cached) " >&6
1795fi
1796eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798$as_echo "$ac_res" >&6; }
1799else
1800 # Is the header compilable?
1801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1802$as_echo_n "checking $2 usability... " >&6; }
1803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804/* end confdefs.h. */
1805$4
1806#include <$2>
1807_ACEOF
1808if ac_fn_c_try_compile "$LINENO"; then :
1809 ac_header_compiler=yes
1810else
1811 ac_header_compiler=no
1812fi
1813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1815$as_echo "$ac_header_compiler" >&6; }
1816
1817# Is the header present?
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1819$as_echo_n "checking $2 presence... " >&6; }
1820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h. */
1822#include <$2>
1823_ACEOF
1824if ac_fn_c_try_cpp "$LINENO"; then :
1825 ac_header_preproc=yes
1826else
1827 ac_header_preproc=no
1828fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001829rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1831$as_echo "$ac_header_preproc" >&6; }
1832
1833# So? What about this header?
1834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1835 yes:no: )
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1837$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ;;
1841 no:yes:* )
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1843$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1845$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1847$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1849$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ;;
1853esac
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855$as_echo_n "checking for $2... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001856if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001857 $as_echo_n "(cached) " >&6
1858else
1859 eval "$3=\$ac_header_compiler"
1860fi
1861eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
1864fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001866
1867} # ac_fn_c_check_header_mongrel
1868
Theodore Ts'o93613952014-07-03 23:44:13 -04001869# ac_fn_c_try_run LINENO
1870# ----------------------
1871# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1872# that executables *can* be run.
1873ac_fn_c_try_run ()
1874{
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 if { { ac_try="$ac_link"
1877case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880esac
1881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882$as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_link") 2>&5
1884 ac_status=$?
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1887 { { case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_try") 2>&5
1894 ac_status=$?
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; }; }; then :
1897 ac_retval=0
1898else
1899 $as_echo "$as_me: program exited with status $ac_status" >&5
1900 $as_echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=$ac_status
1904fi
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1908
1909} # ac_fn_c_try_run
1910
1911# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1912# -------------------------------------------------------
1913# Tests whether HEADER exists and can be compiled using the include files in
1914# INCLUDES, setting the cache variable VAR accordingly.
1915ac_fn_c_check_header_compile ()
1916{
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1922else
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925$4
1926#include <$2>
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"; then :
1929 eval "$3=yes"
1930else
1931 eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940} # ac_fn_c_check_header_compile
1941
1942# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1943# -------------------------------------------
1944# Tests whether TYPE exists after having included INCLUDES, setting cache
1945# variable VAR accordingly.
1946ac_fn_c_check_type ()
1947{
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950$as_echo_n "checking for $2... " >&6; }
1951if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1953else
1954 eval "$3=no"
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h. */
1957$4
1958int
1959main ()
1960{
1961if (sizeof ($2))
1962 return 0;
1963 ;
1964 return 0;
1965}
1966_ACEOF
1967if ac_fn_c_try_compile "$LINENO"; then :
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h. */
1970$4
1971int
1972main ()
1973{
1974if (sizeof (($2)))
1975 return 0;
1976 ;
1977 return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_compile "$LINENO"; then :
1981
1982else
1983 eval "$3=yes"
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988fi
1989eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991$as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994} # ac_fn_c_check_type
1995
1996# ac_fn_c_check_func LINENO FUNC VAR
1997# ----------------------------------
1998# Tests whether FUNC exists, setting the cache variable VAR accordingly
1999ac_fn_c_check_func ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003$as_echo_n "checking for $2... " >&6; }
2004if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h. */
2009/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011#define $2 innocuous_$2
2012
2013/* System header to define __stub macros and hopefully few prototypes,
2014 which can conflict with char $2 (); below.
2015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2016 <limits.h> exists even on freestanding compilers. */
2017
2018#ifdef __STDC__
2019# include <limits.h>
2020#else
2021# include <assert.h>
2022#endif
2023
2024#undef $2
2025
2026/* Override any GCC internal prototype to avoid an error.
2027 Use char because int might match the return type of a GCC
2028 builtin and then its argument prototype would still apply. */
2029#ifdef __cplusplus
2030extern "C"
2031#endif
2032char $2 ();
2033/* The GNU C library defines this for functions which it implements
2034 to always fail with ENOSYS. Some functions are actually named
2035 something starting with __ and the normal name is an alias. */
2036#if defined __stub_$2 || defined __stub___$2
2037choke me
2038#endif
2039
2040int
2041main ()
2042{
2043return $2 ();
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048if ac_fn_c_try_link "$LINENO"; then :
2049 eval "$3=yes"
2050else
2051 eval "$3=no"
2052fi
2053rm -f core conftest.err conftest.$ac_objext \
2054 conftest$ac_exeext conftest.$ac_ext
2055fi
2056eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058$as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060
2061} # ac_fn_c_check_func
2062
2063# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2064# ---------------------------------------------
2065# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2066# accordingly.
2067ac_fn_c_check_decl ()
2068{
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 as_decl_name=`echo $2|sed 's/ *(.*//'`
2071 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2073$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2074if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2076else
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079$4
2080int
2081main ()
2082{
2083#ifndef $as_decl_name
2084#ifdef __cplusplus
2085 (void) $as_decl_use;
2086#else
2087 (void) $as_decl_name;
2088#endif
2089#endif
2090
2091 ;
2092 return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096 eval "$3=yes"
2097else
2098 eval "$3=no"
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101fi
2102eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104$as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107} # ac_fn_c_check_decl
2108
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002109# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2110# --------------------------------------------
2111# Tries to find the compile-time value of EXPR in a program that includes
2112# INCLUDES, setting VAR accordingly. Returns whether the value could be
2113# computed
2114ac_fn_c_compute_int ()
2115{
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 if test "$cross_compiling" = yes; then
2118 # Depending upon the size, compute the lo and hi bounds.
2119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121$4
2122int
2123main ()
2124{
2125static int test_array [1 - 2 * !(($2) >= 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002126test_array [0] = 0;
2127return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002128
2129 ;
2130 return 0;
2131}
2132_ACEOF
2133if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_lo=0 ac_mid=0
2135 while :; do
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h. */
2138$4
2139int
2140main ()
2141{
2142static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002143test_array [0] = 0;
2144return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_hi=$ac_mid; break
2152else
2153 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2154 if test $ac_lo -le $ac_mid; then
2155 ac_lo= ac_hi=
2156 break
2157 fi
2158 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 done
2162else
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h. */
2165$4
2166int
2167main ()
2168{
2169static int test_array [1 - 2 * !(($2) < 0)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002170test_array [0] = 0;
2171return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002172
2173 ;
2174 return 0;
2175}
2176_ACEOF
2177if ac_fn_c_try_compile "$LINENO"; then :
2178 ac_hi=-1 ac_mid=-1
2179 while :; do
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h. */
2182$4
2183int
2184main ()
2185{
2186static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002187test_array [0] = 0;
2188return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002189
2190 ;
2191 return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"; then :
2195 ac_lo=$ac_mid; break
2196else
2197 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2198 if test $ac_mid -le $ac_hi; then
2199 ac_lo= ac_hi=
2200 break
2201 fi
2202 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 done
2206else
2207 ac_lo= ac_hi=
2208fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210fi
2211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212# Binary search between lo and hi bounds.
2213while test "x$ac_lo" != "x$ac_hi"; do
2214 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216/* end confdefs.h. */
2217$4
2218int
2219main ()
2220{
2221static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002222test_array [0] = 0;
2223return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002224
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229if ac_fn_c_try_compile "$LINENO"; then :
2230 ac_hi=$ac_mid
2231else
2232 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2233fi
2234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235done
2236case $ac_lo in #((
2237?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2238'') ac_retval=1 ;;
2239esac
2240 else
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h. */
2243$4
2244static long int longval () { return $2; }
2245static unsigned long int ulongval () { return $2; }
2246#include <stdio.h>
2247#include <stdlib.h>
2248int
2249main ()
2250{
2251
2252 FILE *f = fopen ("conftest.val", "w");
2253 if (! f)
2254 return 1;
2255 if (($2) < 0)
2256 {
2257 long int i = longval ();
2258 if (i != ($2))
2259 return 1;
2260 fprintf (f, "%ld", i);
2261 }
2262 else
2263 {
2264 unsigned long int i = ulongval ();
2265 if (i != ($2))
2266 return 1;
2267 fprintf (f, "%lu", i);
2268 }
2269 /* Do not output a trailing newline, as this causes \r\n confusion
2270 on some platforms. */
2271 return ferror (f) || fclose (f) != 0;
2272
2273 ;
2274 return 0;
2275}
2276_ACEOF
2277if ac_fn_c_try_run "$LINENO"; then :
2278 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2279else
2280 ac_retval=1
2281fi
2282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2283 conftest.$ac_objext conftest.beam conftest.$ac_ext
2284rm -f conftest.val
2285
2286 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002288 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002289
2290} # ac_fn_c_compute_int
2291
2292# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2293# ----------------------------------------------------
2294# Tries to find if the field MEMBER exists in type AGGR, after including
2295# INCLUDES, setting cache variable VAR accordingly.
2296ac_fn_c_check_member ()
2297{
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2300$as_echo_n "checking for $2.$3... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002301if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002302 $as_echo_n "(cached) " >&6
2303else
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305/* end confdefs.h. */
2306$5
2307int
2308main ()
2309{
2310static $2 ac_aggr;
2311if (ac_aggr.$3)
2312return 0;
2313 ;
2314 return 0;
2315}
2316_ACEOF
2317if ac_fn_c_try_compile "$LINENO"; then :
2318 eval "$4=yes"
2319else
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321/* end confdefs.h. */
2322$5
2323int
2324main ()
2325{
2326static $2 ac_aggr;
2327if (sizeof ac_aggr.$3)
2328return 0;
2329 ;
2330 return 0;
2331}
2332_ACEOF
2333if ac_fn_c_try_compile "$LINENO"; then :
2334 eval "$4=yes"
2335else
2336 eval "$4=no"
2337fi
2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339fi
2340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341fi
2342eval ac_res=\$$4
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344$as_echo "$ac_res" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002346
2347} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002348cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002349This file contains any messages produced by compilers while
2350running configure, to aid debugging if configure makes a mistake.
2351
2352It was created by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002353generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002354
2355 $ $0 $@
2356
2357_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002358exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002359{
2360cat <<_ASUNAME
2361## --------- ##
2362## Platform. ##
2363## --------- ##
2364
2365hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2366uname -m = `(uname -m) 2>/dev/null || echo unknown`
2367uname -r = `(uname -r) 2>/dev/null || echo unknown`
2368uname -s = `(uname -s) 2>/dev/null || echo unknown`
2369uname -v = `(uname -v) 2>/dev/null || echo unknown`
2370
2371/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2372/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2373
2374/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2375/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2376/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002377/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002378/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2379/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2380/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2381
2382_ASUNAME
2383
2384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002389 $as_echo "PATH: $as_dir"
2390 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002391IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002392
2393} >&5
2394
2395cat >&5 <<_ACEOF
2396
2397
2398## ----------- ##
2399## Core tests. ##
2400## ----------- ##
2401
2402_ACEOF
2403
2404
2405# Keep a trace of the command line.
2406# Strip out --no-create and --no-recursion so they do not pile up.
2407# Strip out --silent because we don't want to record it for future runs.
2408# Also quote any args containing shell meta-characters.
2409# Make two passes to allow for proper duplicate-argument suppression.
2410ac_configure_args=
2411ac_configure_args0=
2412ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002413ac_must_keep_next=false
2414for ac_pass in 1 2
2415do
2416 for ac_arg
2417 do
2418 case $ac_arg in
2419 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2421 | -silent | --silent | --silen | --sile | --sil)
2422 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002423 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002424 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002425 esac
2426 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002427 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002428 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002429 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002430 if test $ac_must_keep_next = true; then
2431 ac_must_keep_next=false # Got value, back to normal.
2432 else
2433 case $ac_arg in
2434 *=* | --config-cache | -C | -disable-* | --disable-* \
2435 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2436 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2437 | -with-* | --with-* | -without-* | --without-* | --x)
2438 case "$ac_configure_args0 " in
2439 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2440 esac
2441 ;;
2442 -* ) ac_must_keep_next=true ;;
2443 esac
2444 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002445 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002446 ;;
2447 esac
2448 done
2449done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002450{ ac_configure_args0=; unset ac_configure_args0;}
2451{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002452
2453# When interrupted or exit'd, cleanup temporary files, and complete
2454# config.log. We remove comments because anyway the quotes in there
2455# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002456# WARNING: Use '\'' to represent an apostrophe within the trap.
2457# 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 -05002458trap 'exit_status=$?
2459 # Save into config.log some information that might help in debugging.
2460 {
2461 echo
2462
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002463 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002464## Cache variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002465## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002466 echo
2467 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002468(
2469 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2470 eval ac_val=\$$ac_var
2471 case $ac_val in #(
2472 *${as_nl}*)
2473 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002474 *_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 +01002475$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002476 esac
2477 case $ac_var in #(
2478 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002479 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002480 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002481 esac ;;
2482 esac
2483 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002484 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002485 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2486 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002487 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002488 "s/'\''/'\''\\\\'\'''\''/g;
2489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2490 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002493 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002494 esac |
2495 sort
2496)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002497 echo
2498
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002499 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002500## Output variables. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002501## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002502 echo
2503 for ac_var in $ac_subst_vars
2504 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002505 eval ac_val=\$$ac_var
2506 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002507 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002508 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002509 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510 done | sort
2511 echo
2512
2513 if test -n "$ac_subst_files"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002514 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002515## File substitutions. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002516## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002517 echo
2518 for ac_var in $ac_subst_files
2519 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002520 eval ac_val=\$$ac_var
2521 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002522 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002523 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002524 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002525 done | sort
2526 echo
2527 fi
2528
2529 if test -s confdefs.h; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002530 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531## confdefs.h. ##
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002532## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002533 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002534 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002535 echo
2536 fi
2537 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002538 $as_echo "$as_me: caught signal $ac_signal"
2539 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002540 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002541 rm -f core *.core core.conftest.* &&
2542 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002544' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002545for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002546 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002547done
2548ac_signal=0
2549
2550# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002551rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002552
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002553$as_echo "/* confdefs.h */" > confdefs.h
2554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002555# Predefined preprocessor variables.
2556
2557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE_NAME "$PACKAGE_NAME"
2559_ACEOF
2560
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002561cat >>confdefs.h <<_ACEOF
2562#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2563_ACEOF
2564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002565cat >>confdefs.h <<_ACEOF
2566#define PACKAGE_VERSION "$PACKAGE_VERSION"
2567_ACEOF
2568
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002569cat >>confdefs.h <<_ACEOF
2570#define PACKAGE_STRING "$PACKAGE_STRING"
2571_ACEOF
2572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002573cat >>confdefs.h <<_ACEOF
2574#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2575_ACEOF
2576
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002577cat >>confdefs.h <<_ACEOF
2578#define PACKAGE_URL "$PACKAGE_URL"
2579_ACEOF
2580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002581
2582# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002583# Prefer an explicitly selected file to automatically selected ones.
2584ac_site_file1=NONE
2585ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002586if test -n "$CONFIG_SITE"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002587 # We do not want a PATH search for config.site.
2588 case $CONFIG_SITE in #((
2589 -*) ac_site_file1=./$CONFIG_SITE;;
2590 */*) ac_site_file1=$CONFIG_SITE;;
2591 *) ac_site_file1=./$CONFIG_SITE;;
2592 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002593elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002594 ac_site_file1=$prefix/share/config.site
2595 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002596else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002597 ac_site_file1=$ac_default_prefix/share/config.site
2598 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002599fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002600for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002601do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002602 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002603 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002604 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002605$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002606 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002607 . "$ac_site_file" \
2608 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610as_fn_error $? "failed to load site script $ac_site_file
2611See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002612 fi
2613done
2614
2615if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002616 # Some versions of bash will fail to source /dev/null (special files
2617 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2618 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002619 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002620$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002621 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002622 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2623 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002624 esac
2625 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002626else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002628$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002629 >$cache_file
2630fi
2631
Theodore Ts'o93613952014-07-03 23:44:13 -04002632gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002633as_fn_append ac_header_list " stdlib.h"
2634as_fn_append ac_header_list " unistd.h"
2635as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002636as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002637# Check that the precious variables saved in the cache have kept the same
2638# value.
2639ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002640for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002641 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2642 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002643 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2644 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002645 case $ac_old_set,$ac_new_set in
2646 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002647 { $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 +01002648$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 -05002649 ac_cache_corrupted=: ;;
2650 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002651 { $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 +01002652$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002653 ac_cache_corrupted=: ;;
2654 ,);;
2655 *)
2656 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002657 # differences in whitespace do not lead to failure.
2658 ac_old_val_w=`echo x $ac_old_val`
2659 ac_new_val_w=`echo x $ac_new_val`
2660 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002661 { $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 +01002662$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2663 ac_cache_corrupted=:
2664 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002665 { $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 +01002666$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2667 eval $ac_var=\$ac_old_val
2668 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002669 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002670$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002671 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002672$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002673 fi;;
2674 esac
2675 # Pass precious variables to config.status.
2676 if test "$ac_new_set" = set; then
2677 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002678 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002679 *) ac_arg=$ac_var=$ac_new_val ;;
2680 esac
2681 case " $ac_configure_args " in
2682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002683 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002684 esac
2685 fi
2686done
2687if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002690 { $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 +01002691$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002692 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002693fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002694## -------------------- ##
2695## Main body of script. ##
2696## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002697
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002698ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002699ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002703
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002704
2705
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002706ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002707for ac_dir in config "$srcdir"/config; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002708 if test -f "$ac_dir/install-sh"; then
2709 ac_aux_dir=$ac_dir
2710 ac_install_sh="$ac_aux_dir/install-sh -c"
2711 break
2712 elif test -f "$ac_dir/install.sh"; then
2713 ac_aux_dir=$ac_dir
2714 ac_install_sh="$ac_aux_dir/install.sh -c"
2715 break
2716 elif test -f "$ac_dir/shtool"; then
2717 ac_aux_dir=$ac_dir
2718 ac_install_sh="$ac_aux_dir/shtool install -c"
2719 break
2720 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002721done
2722if test -z "$ac_aux_dir"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002723 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 +00002724fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002725
2726# These three variables are undocumented and unsupported,
2727# and are intended to be withdrawn in a future Autoconf release.
2728# They can cause serious problems if a builder's source tree is in a directory
2729# whose full name contains unusual characters.
2730ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2731ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2732ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2733
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002734
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002735ac_config_headers="$ac_config_headers lib/config.h"
2736
2737
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002738MCONFIG=./MCONFIG
2739
Theodore Ts'o74becf31997-04-26 14:37:06 +00002740BINARY_TYPE=bin
2741E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2742 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2743DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2744 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002745E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002746MONTH=`echo $DATE | awk -F- '{print $2}'`
2747YEAR=`echo $DATE | awk -F- '{print $3}'`
2748
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002749if expr $YEAR ">" 1900 > /dev/null ; then
2750 E2FSPROGS_YEAR=$YEAR
2751elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002752 E2FSPROGS_YEAR=19$YEAR
2753else
2754 E2FSPROGS_YEAR=20$YEAR
2755fi
2756
2757case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002758Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2759Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2760Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2761Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2762May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2763Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2764Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2765Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2766Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2767Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2768Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2769Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002770*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002771$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002772esac
2773
Andreas Dilger927566a2006-11-12 19:41:25 -05002774base_ver=`echo $E2FSPROGS_VERSION | \
2775 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002776
2777date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2778
2779case $E2FSPROGS_VERSION in
2780*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002781 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002782 ;;
2783*)
2784 E2FSPROGS_PKGVER="$base_ver"
2785 ;;
2786esac
2787
2788unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002789{ $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 +01002790$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002792$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002793
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002794
2795
2796
Andreas Dilger927566a2006-11-12 19:41:25 -05002797
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002798WITH_DIET_LIBC=
2799
2800# Check whether --with-diet-libc was given.
2801if test "${with_diet_libc+set}" = set; then :
2802 withval=$with_diet_libc; CC="diet cc -nostdinc"
2803WITH_DIET_LIBC=yes
2804if test -z "$LIBS"
2805then
2806 LIBS="-lcompat"
2807else
2808 LIBS="$LIBS -lcompat"
2809fi
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2811$as_echo "CC=$CC" >&6; }
2812fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002813# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002814$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002815 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002816
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002818$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002819if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002820 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002821else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002822 ac_build_alias=$build_alias
2823test "x$ac_build_alias" = x &&
2824 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2825test "x$ac_build_alias" = x &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002826 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002827ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002828 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002829
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002830fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002832$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002833case $ac_cv_build in
2834*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002835*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002836esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002837build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002838ac_save_IFS=$IFS; IFS='-'
2839set x $ac_cv_build
2840shift
2841build_cpu=$1
2842build_vendor=$2
2843shift; shift
2844# Remember, the first character of IFS is used to create $*,
2845# except with old shells:
2846build_os=$*
2847IFS=$ac_save_IFS
2848case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002849
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002850
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002852$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002853if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002854 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002855else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002856 if test "x$host_alias" = x; then
2857 ac_cv_host=$ac_cv_build
2858else
2859 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002860 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002861fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002862
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002863fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002865$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002866case $ac_cv_host in
2867*-*-*) ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002868*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002869esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002870host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002871ac_save_IFS=$IFS; IFS='-'
2872set x $ac_cv_host
2873shift
2874host_cpu=$1
2875host_vendor=$2
2876shift; shift
2877# Remember, the first character of IFS is used to create $*,
2878# except with old shells:
2879host_os=$*
2880IFS=$ac_save_IFS
2881case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002882
2883
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002884DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002885ac_ext=c
2886ac_cpp='$CPP $CPPFLAGS'
2887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002894$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002895if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002896 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002897else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002906 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002910 break 2
2911 fi
2912done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002913 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002914IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002915
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002916fi
2917fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002918CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002919if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002921$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002922else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002924$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002925fi
2926
Theodore Ts'oe1052142006-10-21 21:46:47 -04002927
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002928fi
2929if test -z "$ac_cv_prog_CC"; then
2930 ac_ct_CC=$CC
2931 # Extract the first word of "gcc", so it can be a program name with args.
2932set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002934$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002935if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002936 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002937else
2938 if test -n "$ac_ct_CC"; then
2939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002946 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002948 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002950 break 2
2951 fi
2952done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002953 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002954IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002955
2956fi
2957fi
2958ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002961$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002962else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002964$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002965fi
2966
Theodore Ts'oe1052142006-10-21 21:46:47 -04002967 if test "x$ac_ct_CC" = x; then
2968 CC=""
2969 else
2970 case $cross_compiling:$ac_tool_warned in
2971yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002972{ $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 +01002973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002974ac_tool_warned=yes ;;
2975esac
2976 CC=$ac_ct_CC
2977 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002978else
2979 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002980fi
2981
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002982if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002983 if test -n "$ac_tool_prefix"; then
2984 # 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 -05002985set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002987$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04002988if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002989 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002990else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002999 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003001 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003003 break 2
3004 fi
3005done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003006 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003007IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008
3009fi
3010fi
3011CC=$ac_cv_prog_CC
3012if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003014$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003015else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003017$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003018fi
3019
Theodore Ts'oe1052142006-10-21 21:46:47 -04003020
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003022fi
3023if test -z "$CC"; then
3024 # Extract the first word of "cc", so it can be a program name with args.
3025set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003027$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003028if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003029 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003030else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003034 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003040 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3043 ac_prog_rejected=yes
3044 continue
3045 fi
3046 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003048 break 2
3049 fi
3050done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003051 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003052IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003053
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003054if test $ac_prog_rejected = yes; then
3055 # We found a bogon in the path, so make sure we never use it.
3056 set dummy $ac_cv_prog_CC
3057 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003058 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003059 # We chose a different compiler from the bogus one.
3060 # However, it has the same basename, so the bogon will be chosen
3061 # first if we set CC to just the basename; use the full file name.
3062 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003064 fi
3065fi
3066fi
3067fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003068CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003069if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003071$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003072else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003074$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003075fi
3076
Theodore Ts'oe1052142006-10-21 21:46:47 -04003077
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003078fi
3079if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003081 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003082 do
3083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003086$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003087if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003088 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003089else
3090 if test -n "$CC"; then
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3092else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003098 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003102 break 2
3103 fi
3104done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003105 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003106IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003107
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003108fi
3109fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003110CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003111if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003113$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003114else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003116$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003117fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118
Theodore Ts'oe1052142006-10-21 21:46:47 -04003119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003120 test -n "$CC" && break
3121 done
3122fi
3123if test -z "$CC"; then
3124 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003125 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003126do
3127 # Extract the first word of "$ac_prog", so it can be a program name with args.
3128set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003130$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003131if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003132 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003133else
3134 if test -n "$ac_ct_CC"; then
3135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003142 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003144 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003146 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003147 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003148done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003149 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003150IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003151
3152fi
3153fi
3154ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003157$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003158else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003160$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003161fi
3162
Theodore Ts'oe1052142006-10-21 21:46:47 -04003163
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003164 test -n "$ac_ct_CC" && break
3165done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003166
Theodore Ts'oe1052142006-10-21 21:46:47 -04003167 if test "x$ac_ct_CC" = x; then
3168 CC=""
3169 else
3170 case $cross_compiling:$ac_tool_warned in
3171yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003172{ $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 +01003173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003174ac_tool_warned=yes ;;
3175esac
3176 CC=$ac_ct_CC
3177 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003178fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003180fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003181
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003182
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003183test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003185as_fn_error $? "no acceptable C compiler found in \$PATH
3186See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003187
3188# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003189$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003190set X $ac_compile
3191ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003192for ac_option in --version -v -V -qversion; do
3193 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003194case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199$as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003201 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003202 if test -s conftest.err; then
3203 sed '10a\
3204... rest of stderr output deleted ...
3205 10q' conftest.err >conftest.er1
3206 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003207 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003208 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }
3211done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003212
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003214/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003215
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003216int
3217main ()
3218{
3219
3220 ;
3221 return 0;
3222}
3223_ACEOF
3224ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003225ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003226# Try to create an executable without -o first, disregard a.out.
3227# It will help us diagnose broken compilers, and finding out an intuition
3228# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3230$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003231ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232
3233# The possible output files:
3234ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235
Theodore Ts'oe1052142006-10-21 21:46:47 -04003236ac_rmfiles=
3237for ac_file in $ac_files
3238do
3239 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242 esac
3243done
3244rm -f $ac_rmfiles
3245
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003246if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003253 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003254 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259# in a Makefile. We should not override ac_cv_exeext if it was cached,
3260# so that the user can short-circuit this test for compilers unknown to
3261# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003262for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003263do
3264 test -f "$ac_file" || continue
3265 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003267 ;;
3268 [ab].out )
3269 # We found the default executable, but exeext='' is most
3270 # certainly right.
3271 break;;
3272 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003274 then :; else
3275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276 fi
3277 # We set ac_cv_exeext here because the later test for it is not
3278 # safe: cross compilers may not add the suffix if given an `-o'
3279 # argument, so we may need to know it at that point already.
3280 # Even if this section looks crufty: it has the advantage of
3281 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003282 break;;
3283 * )
3284 break;;
3285 esac
3286done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003287test "$ac_cv_exeext" = no && ac_cv_exeext=
3288
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003289else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003290 ac_file=''
3291fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003292if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003296sed 's/^/| /' conftest.$ac_ext >&5
3297
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003300as_fn_error 77 "C compiler cannot create executables
3301See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003302else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003305fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307$as_echo_n "checking for C compiler default output file name... " >&6; }
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003310ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003311
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003312rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003313ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003315$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003316if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003323 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003324 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003327 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3329# work properly (i.e., refer to `conftest.exe'), while it won't with
3330# `rm'.
3331for ac_file in conftest.exe conftest conftest.*; do
3332 test -f "$ac_file" || continue
3333 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003336 break;;
3337 * ) break;;
3338 esac
3339done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003340else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003343as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3344See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003345fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003346rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003348$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003349
3350rm -f conftest.$ac_ext
3351EXEEXT=$ac_cv_exeext
3352ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h. */
3355#include <stdio.h>
3356int
3357main ()
3358{
3359FILE *f = fopen ("conftest.out", "w");
3360 return ferror (f) || fclose (f) != 0;
3361
3362 ;
3363 return 0;
3364}
3365_ACEOF
3366ac_clean_files="$ac_clean_files conftest.out"
3367# Check that the compiler produces executables we can run. If not, either
3368# the compiler is broken, or we cross compile.
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3370$as_echo_n "checking whether we are cross compiling... " >&6; }
3371if test "$cross_compiling" != yes; then
3372 { { ac_try="$ac_link"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }
3383 if { ac_try='./conftest$ac_cv_exeext'
3384 { { case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; }; then
3394 cross_compiling=no
3395 else
3396 if test "$cross_compiling" = maybe; then
3397 cross_compiling=yes
3398 else
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003401as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003402If you meant to cross compile, use \`--host'.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003403See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003404 fi
3405 fi
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408$as_echo "$cross_compiling" >&6; }
3409
3410rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3411ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003413$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003414if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003415 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003416else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003418/* end confdefs.h. */
3419
3420int
3421main ()
3422{
3423
3424 ;
3425 return 0;
3426}
3427_ACEOF
3428rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003429if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003430case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003436 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003437 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003440 for ac_file in conftest.o conftest.obj conftest.*; do
3441 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003442 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445 break;;
3446 esac
3447done
3448else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003449 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003450sed 's/^/| /' conftest.$ac_ext >&5
3451
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003452{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003454as_fn_error $? "cannot compute suffix of object files: cannot compile
3455See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003456fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003457rm -f conftest.$ac_cv_objext conftest.$ac_ext
3458fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003460$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003461OBJEXT=$ac_cv_objext
3462ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003463{ $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 +01003464$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003465if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003466 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003467else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003469/* end confdefs.h. */
3470
3471int
3472main ()
3473{
3474#ifndef __GNUC__
3475 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003476#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003478 ;
3479 return 0;
3480}
3481_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003482if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003483 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003484else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003485 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003486fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003488ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003489
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003490fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003492$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3493if test $ac_compiler_gnu = yes; then
3494 GCC=yes
3495else
3496 GCC=
3497fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003498ac_test_CFLAGS=${CFLAGS+set}
3499ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003501$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003502if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003503 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003504else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003505 ac_save_c_werror_flag=$ac_c_werror_flag
3506 ac_c_werror_flag=yes
3507 ac_cv_prog_cc_g=no
3508 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003510/* end confdefs.h. */
3511
3512int
3513main ()
3514{
3515
3516 ;
3517 return 0;
3518}
3519_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003520if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003521 ac_cv_prog_cc_g=yes
3522else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003523 CFLAGS=""
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003525/* end confdefs.h. */
3526
3527int
3528main ()
3529{
3530
3531 ;
3532 return 0;
3533}
3534_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003535if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003536
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003537else
3538 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003539 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003541/* end confdefs.h. */
3542
3543int
3544main ()
3545{
3546
3547 ;
3548 return 0;
3549}
3550_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003551if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003552 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003553fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003555fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_c_werror_flag=$ac_save_c_werror_flag
3560fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003562$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003563if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003564 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003565elif test $ac_cv_prog_cc_g = yes; then
3566 if test "$GCC" = yes; then
3567 CFLAGS="-g -O2"
3568 else
3569 CFLAGS="-g"
3570 fi
3571else
3572 if test "$GCC" = yes; then
3573 CFLAGS="-O2"
3574 else
3575 CFLAGS=
3576 fi
3577fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003579$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003580if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003581 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003583 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003584ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003586/* end confdefs.h. */
3587#include <stdarg.h>
3588#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003589struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003590/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3591struct buf { int x; };
3592FILE * (*rcsopen) (struct buf *, struct stat *, int);
3593static char *e (p, i)
3594 char **p;
3595 int i;
3596{
3597 return p[i];
3598}
3599static char *f (char * (*g) (char **, int), char **p, ...)
3600{
3601 char *s;
3602 va_list v;
3603 va_start (v,p);
3604 s = g (p, va_arg (v,int));
3605 va_end (v);
3606 return s;
3607}
3608
3609/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3610 function prototypes and stuff, but not '\xHH' hex character constants.
3611 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003612 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3614 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003615 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003616int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3617
Theodore Ts'oe1052142006-10-21 21:46:47 -04003618/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3619 inside strings and character constants. */
3620#define FOO(x) 'x'
3621int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3622
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003623int test (int i, double x);
3624struct s1 {int (*f) (int a);};
3625struct s2 {int (*f) (double a);};
3626int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3627int argc;
3628char **argv;
3629int
3630main ()
3631{
3632return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3633 ;
3634 return 0;
3635}
3636_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003637for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003639do
3640 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003641 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003642 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003643fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003644rm -f core conftest.err conftest.$ac_objext
3645 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003646done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003647rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003648CC=$ac_save_CC
3649
3650fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003651# AC_CACHE_VAL
3652case "x$ac_cv_prog_cc_c89" in
3653 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003655$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003656 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003658$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003659 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003660 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003662$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003663esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003664if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003665
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003666fi
3667
3668ac_ext=c
3669ac_cpp='$CPP $CPPFLAGS'
3670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
3674
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3676$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003677if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003678 $as_echo_n "(cached) " >&6
3679else
3680 ac_check_lib_save_LIBS=$LIBS
3681LIBS="-ldl $LIBS"
3682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h. */
3684
3685/* Override any GCC internal prototype to avoid an error.
3686 Use char because int might match the return type of a GCC
3687 builtin and then its argument prototype would still apply. */
3688#ifdef __cplusplus
3689extern "C"
3690#endif
3691char dlopen ();
3692int
3693main ()
3694{
3695return dlopen ();
3696 ;
3697 return 0;
3698}
3699_ACEOF
3700if ac_fn_c_try_link "$LINENO"; then :
3701 ac_cv_lib_dl_dlopen=yes
3702else
3703 ac_cv_lib_dl_dlopen=no
3704fi
3705rm -f core conftest.err conftest.$ac_objext \
3706 conftest$ac_exeext conftest.$ac_ext
3707LIBS=$ac_check_lib_save_LIBS
3708fi
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3710$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003711if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003712 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003713
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003714$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3715
3716fi
3717
3718
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003719
3720# Check whether --with-cc was given.
3721if test "${with_cc+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003722 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003723fi
3724
3725
3726# Check whether --with-ccopts was given.
3727if test "${with_ccopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003728 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003729fi
3730
3731
3732# Check whether --with-ldopts was given.
3733if test "${with_ldopts+set}" = set; then :
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003734 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003735fi
3736
3737ac_ext=c
3738ac_cpp='$CPP $CPPFLAGS'
3739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3744set dummy ${ac_tool_prefix}gcc; ac_word=$2
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003747if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003748 $as_echo_n "(cached) " >&6
3749else
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3752else
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH
3755do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3763 fi
3764done
3765 done
3766IFS=$as_save_IFS
3767
3768fi
3769fi
3770CC=$ac_cv_prog_CC
3771if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773$as_echo "$CC" >&6; }
3774else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776$as_echo "no" >&6; }
3777fi
3778
3779
3780fi
3781if test -z "$ac_cv_prog_CC"; then
3782 ac_ct_CC=$CC
3783 # Extract the first word of "gcc", so it can be a program name with args.
3784set dummy gcc; ac_word=$2
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003787if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003788 $as_echo_n "(cached) " >&6
3789else
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792else
3793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH
3795do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003800 ac_cv_prog_ac_ct_CC="gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804done
3805 done
3806IFS=$as_save_IFS
3807
3808fi
3809fi
3810ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813$as_echo "$ac_ct_CC" >&6; }
3814else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816$as_echo "no" >&6; }
3817fi
3818
3819 if test "x$ac_ct_CC" = x; then
3820 CC=""
3821 else
3822 case $cross_compiling:$ac_tool_warned in
3823yes:)
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826ac_tool_warned=yes ;;
3827esac
3828 CC=$ac_ct_CC
3829 fi
3830else
3831 CC="$ac_cv_prog_CC"
3832fi
3833
3834if test -z "$CC"; then
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3837set dummy ${ac_tool_prefix}cc; ac_word=$2
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003840if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003841 $as_echo_n "(cached) " >&6
3842else
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC="$CC" # Let the user override the test.
3845else
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
3848do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003853 ac_cv_prog_CC="${ac_tool_prefix}cc"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857done
3858 done
3859IFS=$as_save_IFS
3860
3861fi
3862fi
3863CC=$ac_cv_prog_CC
3864if test -n "$CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866$as_echo "$CC" >&6; }
3867else
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869$as_echo "no" >&6; }
3870fi
3871
3872
3873 fi
3874fi
3875if test -z "$CC"; then
3876 # Extract the first word of "cc", so it can be a program name with args.
3877set dummy cc; ac_word=$2
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003880if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003881 $as_echo_n "(cached) " >&6
3882else
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3885else
3886 ac_prog_rejected=no
3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH
3889do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3895 ac_prog_rejected=yes
3896 continue
3897 fi
3898 ac_cv_prog_CC="cc"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902done
3903 done
3904IFS=$as_save_IFS
3905
3906if test $ac_prog_rejected = yes; then
3907 # We found a bogon in the path, so make sure we never use it.
3908 set dummy $ac_cv_prog_CC
3909 shift
3910 if test $# != 0; then
3911 # We chose a different compiler from the bogus one.
3912 # However, it has the same basename, so the bogon will be chosen
3913 # first if we set CC to just the basename; use the full file name.
3914 shift
3915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3916 fi
3917fi
3918fi
3919fi
3920CC=$ac_cv_prog_CC
3921if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923$as_echo "$CC" >&6; }
3924else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926$as_echo "no" >&6; }
3927fi
3928
3929
3930fi
3931if test -z "$CC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 for ac_prog in cl.exe
3934 do
3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003939if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003940 $as_echo_n "(cached) " >&6
3941else
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC="$CC" # Let the user override the test.
3944else
3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH
3947do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956done
3957 done
3958IFS=$as_save_IFS
3959
3960fi
3961fi
3962CC=$ac_cv_prog_CC
3963if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965$as_echo "$CC" >&6; }
3966else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968$as_echo "no" >&6; }
3969fi
3970
3971
3972 test -n "$CC" && break
3973 done
3974fi
3975if test -z "$CC"; then
3976 ac_ct_CC=$CC
3977 for ac_prog in cl.exe
3978do
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980set dummy $ac_prog; ac_word=$2
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003983if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003984 $as_echo_n "(cached) " >&6
3985else
3986 if test -n "$ac_ct_CC"; then
3987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3988else
3989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990for as_dir in $PATH
3991do
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04003995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003996 ac_cv_prog_ac_ct_CC="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000done
4001 done
4002IFS=$as_save_IFS
4003
4004fi
4005fi
4006ac_ct_CC=$ac_cv_prog_ac_ct_CC
4007if test -n "$ac_ct_CC"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4009$as_echo "$ac_ct_CC" >&6; }
4010else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012$as_echo "no" >&6; }
4013fi
4014
4015
4016 test -n "$ac_ct_CC" && break
4017done
4018
4019 if test "x$ac_ct_CC" = x; then
4020 CC=""
4021 else
4022 case $cross_compiling:$ac_tool_warned in
4023yes:)
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026ac_tool_warned=yes ;;
4027esac
4028 CC=$ac_ct_CC
4029 fi
4030fi
4031
4032fi
4033
4034
4035test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004037as_fn_error $? "no acceptable C compiler found in \$PATH
4038See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004039
4040# Provide some information about the compiler.
4041$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4042set X $ac_compile
4043ac_compiler=$2
4044for ac_option in --version -v -V -qversion; do
4045 { { ac_try="$ac_compiler $ac_option >&5"
4046case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049esac
4050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051$as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4053 ac_status=$?
4054 if test -s conftest.err; then
4055 sed '10a\
4056... rest of stderr output deleted ...
4057 10q' conftest.err >conftest.er1
4058 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004059 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004060 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }
4063done
4064
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4066$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004067if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004068 $as_echo_n "(cached) " >&6
4069else
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h. */
4072
4073int
4074main ()
4075{
4076#ifndef __GNUC__
4077 choke me
4078#endif
4079
4080 ;
4081 return 0;
4082}
4083_ACEOF
4084if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_compiler_gnu=yes
4086else
4087 ac_compiler_gnu=no
4088fi
4089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090ac_cv_c_compiler_gnu=$ac_compiler_gnu
4091
4092fi
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4095if test $ac_compiler_gnu = yes; then
4096 GCC=yes
4097else
4098 GCC=
4099fi
4100ac_test_CFLAGS=${CFLAGS+set}
4101ac_save_CFLAGS=$CFLAGS
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004104if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004105 $as_echo_n "(cached) " >&6
4106else
4107 ac_save_c_werror_flag=$ac_c_werror_flag
4108 ac_c_werror_flag=yes
4109 ac_cv_prog_cc_g=no
4110 CFLAGS="-g"
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112/* end confdefs.h. */
4113
4114int
4115main ()
4116{
4117
4118 ;
4119 return 0;
4120}
4121_ACEOF
4122if ac_fn_c_try_compile "$LINENO"; then :
4123 ac_cv_prog_cc_g=yes
4124else
4125 CFLAGS=""
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127/* end confdefs.h. */
4128
4129int
4130main ()
4131{
4132
4133 ;
4134 return 0;
4135}
4136_ACEOF
4137if ac_fn_c_try_compile "$LINENO"; then :
4138
4139else
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4141 CFLAGS="-g"
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143/* end confdefs.h. */
4144
4145int
4146main ()
4147{
4148
4149 ;
4150 return 0;
4151}
4152_ACEOF
4153if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_cv_prog_cc_g=yes
4155fi
4156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157fi
4158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159fi
4160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4162fi
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4164$as_echo "$ac_cv_prog_cc_g" >&6; }
4165if test "$ac_test_CFLAGS" = set; then
4166 CFLAGS=$ac_save_CFLAGS
4167elif test $ac_cv_prog_cc_g = yes; then
4168 if test "$GCC" = yes; then
4169 CFLAGS="-g -O2"
4170 else
4171 CFLAGS="-g"
4172 fi
4173else
4174 if test "$GCC" = yes; then
4175 CFLAGS="-O2"
4176 else
4177 CFLAGS=
4178 fi
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4181$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004182if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004183 $as_echo_n "(cached) " >&6
4184else
4185 ac_cv_prog_cc_c89=no
4186ac_save_CC=$CC
4187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h. */
4189#include <stdarg.h>
4190#include <stdio.h>
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004191struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004192/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4193struct buf { int x; };
4194FILE * (*rcsopen) (struct buf *, struct stat *, int);
4195static char *e (p, i)
4196 char **p;
4197 int i;
4198{
4199 return p[i];
4200}
4201static char *f (char * (*g) (char **, int), char **p, ...)
4202{
4203 char *s;
4204 va_list v;
4205 va_start (v,p);
4206 s = g (p, va_arg (v,int));
4207 va_end (v);
4208 return s;
4209}
4210
4211/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4212 function prototypes and stuff, but not '\xHH' hex character constants.
4213 These don't provoke an error unfortunately, instead are silently treated
4214 as 'x'. The following induces an error, until -std is added to get
4215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4216 array size at least. It's necessary to write '\x00'==0 to get something
4217 that's true only with -std. */
4218int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4219
4220/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4221 inside strings and character constants. */
4222#define FOO(x) 'x'
4223int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4224
4225int test (int i, double x);
4226struct s1 {int (*f) (int a);};
4227struct s2 {int (*f) (double a);};
4228int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4229int argc;
4230char **argv;
4231int
4232main ()
4233{
4234return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4235 ;
4236 return 0;
4237}
4238_ACEOF
4239for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4241do
4242 CC="$ac_save_CC $ac_arg"
4243 if ac_fn_c_try_compile "$LINENO"; then :
4244 ac_cv_prog_cc_c89=$ac_arg
4245fi
4246rm -f core conftest.err conftest.$ac_objext
4247 test "x$ac_cv_prog_cc_c89" != "xno" && break
4248done
4249rm -f conftest.$ac_ext
4250CC=$ac_save_CC
4251
4252fi
4253# AC_CACHE_VAL
4254case "x$ac_cv_prog_cc_c89" in
4255 x)
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4257$as_echo "none needed" >&6; } ;;
4258 xno)
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4260$as_echo "unsupported" >&6; } ;;
4261 *)
4262 CC="$CC $ac_cv_prog_cc_c89"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4264$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4265esac
4266if test "x$ac_cv_prog_cc_c89" != xno; then :
4267
4268fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004270ac_ext=c
4271ac_cpp='$CPP $CPPFLAGS'
4272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004276if test "$GCC" = yes; then
4277 RDYNAMIC="-rdynamic"
4278
4279fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004280ac_ext=c
4281ac_cpp='$CPP $CPPFLAGS'
4282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004286$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004287# On Suns, sometimes $CPP names a directory.
4288if test -n "$CPP" && test -d "$CPP"; then
4289 CPP=
4290fi
4291if test -z "$CPP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004292 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004293 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004294else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004295 # Double quotes because CPP needs to be expanded
4296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4297 do
4298 ac_preproc_ok=false
4299for ac_c_preproc_warn_flag in '' yes
4300do
4301 # Use a header file that comes with gcc, so configuring glibc
4302 # with a fresh cross-compiler works.
4303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4304 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004305 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004306 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004308/* end confdefs.h. */
4309#ifdef __STDC__
4310# include <limits.h>
4311#else
4312# include <assert.h>
4313#endif
4314 Syntax error
4315_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004316if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004317
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004318else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004319 # Broken: fails on valid input.
4320continue
4321fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004322rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004323
Theodore Ts'oe1052142006-10-21 21:46:47 -04004324 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004325 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004327/* end confdefs.h. */
4328#include <ac_nonexistent.h>
4329_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004330if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004331 # Broken: success on invalid input.
4332continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004333else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004334 # Passes both tests.
4335ac_preproc_ok=:
4336break
4337fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004338rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004339
4340done
4341# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004342rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004343if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004344 break
4345fi
4346
4347 done
4348 ac_cv_prog_CPP=$CPP
4349
4350fi
4351 CPP=$ac_cv_prog_CPP
4352else
4353 ac_cv_prog_CPP=$CPP
4354fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004356$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004357ac_preproc_ok=false
4358for ac_c_preproc_warn_flag in '' yes
4359do
4360 # Use a header file that comes with gcc, so configuring glibc
4361 # with a fresh cross-compiler works.
4362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363 # <limits.h> exists even on freestanding compilers.
4364 # On the NeXT, cc -E runs the code through the compiler's parser,
4365 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004367/* end confdefs.h. */
4368#ifdef __STDC__
4369# include <limits.h>
4370#else
4371# include <assert.h>
4372#endif
4373 Syntax error
4374_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004375if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004376
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004377else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004378 # Broken: fails on valid input.
4379continue
4380fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004381rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004382
Theodore Ts'oe1052142006-10-21 21:46:47 -04004383 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004384 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004386/* end confdefs.h. */
4387#include <ac_nonexistent.h>
4388_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004389if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004390 # Broken: success on invalid input.
4391continue
4392else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004393 # Passes both tests.
4394ac_preproc_ok=:
4395break
4396fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004397rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004398
4399done
4400# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004401rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004402if $ac_preproc_ok; then :
4403
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004404else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004407as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4408See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004409fi
4410
4411ac_ext=c
4412ac_cpp='$CPP $CPPFLAGS'
4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004418$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004419if test "$GCC" = yes
4420then
4421 case "$host_cpu" in
4422 alpha) addcflags="-mieee" ;;
4423 esac
4424fi
4425if test "x$addcflags" != x
4426then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004428$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004429 CFLAGS="$addcflags $CFLAGS"
4430else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004432$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004433fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004434
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4436$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4437if ${ac_cv_path_GREP+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439else
4440 if test -z "$GREP"; then
4441 ac_path_GREP_found=false
4442 # Loop through the user's path and test for each of PROGNAME-LIST
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4445do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_prog in grep ggrep; do
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4451 as_fn_executable_p "$ac_path_GREP" || continue
4452# Check for GNU ac_path_GREP and select it if it is found.
4453 # Check for GNU $ac_path_GREP
4454case `"$ac_path_GREP" --version 2>&1` in
4455*GNU*)
4456 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4457*)
4458 ac_count=0
4459 $as_echo_n 0123456789 >"conftest.in"
4460 while :
4461 do
4462 cat "conftest.in" "conftest.in" >"conftest.tmp"
4463 mv "conftest.tmp" "conftest.in"
4464 cp "conftest.in" "conftest.nl"
4465 $as_echo 'GREP' >> "conftest.nl"
4466 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4468 as_fn_arith $ac_count + 1 && ac_count=$as_val
4469 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4470 # Best one so far, save it but keep looking for a better one
4471 ac_cv_path_GREP="$ac_path_GREP"
4472 ac_path_GREP_max=$ac_count
4473 fi
4474 # 10*(2^10) chars as input seems more than enough
4475 test $ac_count -gt 10 && break
4476 done
4477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4478esac
4479
4480 $ac_path_GREP_found && break 3
4481 done
4482 done
4483 done
4484IFS=$as_save_IFS
4485 if test -z "$ac_cv_path_GREP"; then
4486 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4487 fi
4488else
4489 ac_cv_path_GREP=$GREP
4490fi
4491
4492fi
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4494$as_echo "$ac_cv_path_GREP" >&6; }
4495 GREP="$ac_cv_path_GREP"
4496
4497
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4499$as_echo_n "checking for egrep... " >&6; }
4500if ${ac_cv_path_EGREP+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502else
4503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4504 then ac_cv_path_EGREP="$GREP -E"
4505 else
4506 if test -z "$EGREP"; then
4507 ac_path_EGREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in egrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4517 as_fn_executable_p "$ac_path_EGREP" || continue
4518# Check for GNU ac_path_EGREP and select it if it is found.
4519 # Check for GNU $ac_path_EGREP
4520case `"$ac_path_EGREP" --version 2>&1` in
4521*GNU*)
4522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4523*)
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4527 do
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo 'EGREP' >> "conftest.nl"
4532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_EGREP="$ac_path_EGREP"
4538 ac_path_EGREP_max=$ac_count
4539 fi
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544esac
4545
4546 $ac_path_EGREP_found && break 3
4547 done
4548 done
4549 done
4550IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_EGREP"; then
4552 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4553 fi
4554else
4555 ac_cv_path_EGREP=$EGREP
4556fi
4557
4558 fi
4559fi
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4561$as_echo "$ac_cv_path_EGREP" >&6; }
4562 EGREP="$ac_cv_path_EGREP"
4563
4564
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4566$as_echo_n "checking for ANSI C header files... " >&6; }
4567if ${ac_cv_header_stdc+:} false; then :
4568 $as_echo_n "(cached) " >&6
4569else
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571/* end confdefs.h. */
4572#include <stdlib.h>
4573#include <stdarg.h>
4574#include <string.h>
4575#include <float.h>
4576
4577int
4578main ()
4579{
4580
4581 ;
4582 return 0;
4583}
4584_ACEOF
4585if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_header_stdc=yes
4587else
4588 ac_cv_header_stdc=no
4589fi
4590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591
4592if test $ac_cv_header_stdc = yes; then
4593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h. */
4596#include <string.h>
4597
4598_ACEOF
4599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 $EGREP "memchr" >/dev/null 2>&1; then :
4601
4602else
4603 ac_cv_header_stdc=no
4604fi
4605rm -f conftest*
4606
4607fi
4608
4609if test $ac_cv_header_stdc = yes; then
4610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612/* end confdefs.h. */
4613#include <stdlib.h>
4614
4615_ACEOF
4616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "free" >/dev/null 2>&1; then :
4618
4619else
4620 ac_cv_header_stdc=no
4621fi
4622rm -f conftest*
4623
4624fi
4625
4626if test $ac_cv_header_stdc = yes; then
4627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4628 if test "$cross_compiling" = yes; then :
4629 :
4630else
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h. */
4633#include <ctype.h>
4634#include <stdlib.h>
4635#if ((' ' & 0x0FF) == 0x020)
4636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4638#else
4639# define ISLOWER(c) \
4640 (('a' <= (c) && (c) <= 'i') \
4641 || ('j' <= (c) && (c) <= 'r') \
4642 || ('s' <= (c) && (c) <= 'z'))
4643# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4644#endif
4645
4646#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4647int
4648main ()
4649{
4650 int i;
4651 for (i = 0; i < 256; i++)
4652 if (XOR (islower (i), ISLOWER (i))
4653 || toupper (i) != TOUPPER (i))
4654 return 2;
4655 return 0;
4656}
4657_ACEOF
4658if ac_fn_c_try_run "$LINENO"; then :
4659
4660else
4661 ac_cv_header_stdc=no
4662fi
4663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4664 conftest.$ac_objext conftest.beam conftest.$ac_ext
4665fi
4666
4667fi
4668fi
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4670$as_echo "$ac_cv_header_stdc" >&6; }
4671if test $ac_cv_header_stdc = yes; then
4672
4673$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4674
4675fi
4676
4677# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4678for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4679 inttypes.h stdint.h unistd.h
4680do :
4681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4682ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4683"
4684if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4685 cat >>confdefs.h <<_ACEOF
4686#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687_ACEOF
4688
4689fi
4690
4691done
4692
4693
4694
4695 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4696if test "x$ac_cv_header_minix_config_h" = xyes; then :
4697 MINIX=yes
4698else
4699 MINIX=
4700fi
4701
4702
4703 if test "$MINIX" = yes; then
4704
4705$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4706
4707
4708$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4709
4710
4711$as_echo "#define _MINIX 1" >>confdefs.h
4712
4713 fi
4714
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4717$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4718if ${ac_cv_safe_to_define___extensions__+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720else
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722/* end confdefs.h. */
4723
4724# define __EXTENSIONS__ 1
4725 $ac_includes_default
4726int
4727main ()
4728{
4729
4730 ;
4731 return 0;
4732}
4733_ACEOF
4734if ac_fn_c_try_compile "$LINENO"; then :
4735 ac_cv_safe_to_define___extensions__=yes
4736else
4737 ac_cv_safe_to_define___extensions__=no
4738fi
4739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740fi
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4742$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4743 test $ac_cv_safe_to_define___extensions__ = yes &&
4744 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4745
4746 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4747
4748 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4749
4750 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4751
4752 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4753
4754
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004755LIB_EXT=.a
4756STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004757PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004758
Theodore Ts'oe1052142006-10-21 21:46:47 -04004759# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004760if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004761 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004762else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004763 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004764fi
4765# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004766if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004767 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004768then
4769 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004771$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004772else
4773 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004775$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004776fi
4777
4778else
4779 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004781$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004782
Theodore Ts'oe1052142006-10-21 21:46:47 -04004783fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004784
Theodore Ts'oe1052142006-10-21 21:46:47 -04004785
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004786# Check whether --enable-symlink-install was given.
4787if test "${enable_symlink_install+set}" = set; then :
4788 enableval=$enable_symlink_install; if test "$enableval" = "no"
4789then
4790 LINK_INSTALL_FLAGS=-f
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4792$as_echo "Disabling symlinks for install" >&6; }
4793else
4794 LINK_INSTALL_FLAGS=-sf
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4796$as_echo "Enabling symlinks for install" >&6; }
4797fi
4798
4799else
4800 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4802$as_echo "Disabling symlinks for install by default" >&6; }
4803
4804fi
4805
4806
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004807relative_symlink_defined=
4808# Check whether --enable-relative-symlinks was given.
4809if test "${enable_relative_symlinks+set}" = set; then :
4810 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004811then
4812 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004813 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4815$as_echo "Disabling relative symlinks for install" >&6; }
4816else
4817 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004818 relative_symlink_defined=yes
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4820$as_echo "Enabling relative symlinks for install" >&6; }
4821fi
4822fi
4823
4824# Check whether --enable-symlink-relative-symlinks was given.
4825if test "${enable_symlink_relative_symlinks+set}" = set; then :
4826 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4827then
4828 SYMLINK_RELATIVE=yes
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4830$as_echo "Disabling relative symlinks for install" >&6; }
4831else
4832 SYMLINK_RELATIVE=--relative
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4834$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004835fi
4836
4837else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004838 if test -z "$relative_symlink_defined"
4839then
4840 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4842$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004843fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004844
4845fi
4846
4847
4848# Check whether --enable-symlink-build was given.
4849if test "${enable_symlink_build+set}" = set; then :
4850 enableval=$enable_symlink_build; if test "$enableval" = "no"
4851then
4852 LINK_BUILD_FLAGS=
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4854$as_echo "Disabling symlinks for build" >&6; }
4855else
4856 LINK_BUILD_FLAGS=-s
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4858$as_echo "Enabling symlinks for build" >&6; }
4859fi
4860
4861else
4862 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4864$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004865
4866fi
4867
4868
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004869# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004870if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004871 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4872then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004874$as_echo "Disabling verbose make commands" >&6; }
4875 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004876 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004877 Q=@
4878else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004880$as_echo "Enabling verbose make commands" >&6; }
4881 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004882 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004883 Q=
4884fi
4885
4886else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004888$as_echo "Disabling verbose make commands" >&6; }
4889E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004890ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004891Q=@
4892
4893fi
4894
4895
4896
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004897
Theodore Ts'oe1052142006-10-21 21:46:47 -04004898# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004899if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004900 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004901then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004903$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004904else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004905
4906$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004907
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004909$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004911$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004912fi
4913
4914else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004916$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004917
Theodore Ts'oe1052142006-10-21 21:46:47 -04004918fi
4919
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004920
Theodore Ts'oe1052142006-10-21 21:46:47 -04004921# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004922if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004923 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004924then
4925 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004927$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004928else
4929 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004930 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004931
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004933$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004934fi
4935
4936else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004937 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004938$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004939
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004941$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004942
Theodore Ts'oe1052142006-10-21 21:46:47 -04004943fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004944
Theodore Ts'oe1052142006-10-21 21:46:47 -04004945
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004946E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004947LDFLAG_DYNAMIC=
4948PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004949# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004950if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004951 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004952then
4953 ELF_CMT=#
4954 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004956$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004957else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004958 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004959 ELF_CMT=
4960 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004961 case "$host_os" in
4962 solaris2.*)
4963 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4964 ;;
4965 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004966 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004967 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004968 PRIVATE_LIBS_CMT=#
4969 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004971$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004972fi
4973
4974else
4975 MAKEFILE_ELF=/dev/null
4976ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004978$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004979
Theodore Ts'oe1052142006-10-21 21:46:47 -04004980fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004981
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004982
Theodore Ts'oe1052142006-10-21 21:46:47 -04004983
4984# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004985if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004986 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004987then
4988 BSDLIB_CMT=#
4989 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004991$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004992else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004993 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004994 BSDLIB_CMT=
4995 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004996 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004997 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004998 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004999 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5000 LIB_EXT=.dylib
5001 ;;
5002 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005004$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005005fi
5006
5007else
5008 MAKEFILE_BSDLIB=/dev/null
5009BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005011$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005012
Theodore Ts'oe1052142006-10-21 21:46:47 -04005013fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005014
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005015
Theodore Ts'oe1052142006-10-21 21:46:47 -04005016
5017# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005018if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005019 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005020then
5021 PROFILE_CMT=#
5022 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005024$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005025else
5026 PROFILE_CMT=
5027 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5028 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005030$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005031fi
5032
5033else
5034 PROFILE_CMT=#
5035MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005037$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005038
Theodore Ts'oe1052142006-10-21 21:46:47 -04005039fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005040
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005041
Theodore Ts'oe1052142006-10-21 21:46:47 -04005042
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005043# Check whether --enable-gcov was given.
5044if test "${enable_gcov+set}" = set; then :
5045 enableval=$enable_gcov; if test "$enableval" = "yes"
5046then
5047 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5048 LDFLAGS="-fprofile-arcs -ftest-coverage"
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5050$as_echo "Enabling gcov support" >&6; }
5051fi
5052
5053fi
5054
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005055
5056
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005057
Theodore Ts'oe1052142006-10-21 21:46:47 -04005058
Theodore Ts'o55da9872008-09-02 23:12:38 -04005059
5060
Theodore Ts'oe1052142006-10-21 21:46:47 -04005061# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005062if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005063 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005064then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005066$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005067else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005068
5069$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005070
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005072$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005073fi
5074
5075else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005077$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005078
Theodore Ts'oe1052142006-10-21 21:46:47 -04005079fi
5080
5081# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005082if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005083 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005084then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005086$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005087else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005088
5089$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005090
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005092$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005093fi
5094
5095else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005097$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005098
Theodore Ts'oe1052142006-10-21 21:46:47 -04005099fi
5100
5101# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005102if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005103 enableval=$enable_testio_debug;
5104if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005105then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005107$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005108 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005109else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005110 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005111 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005112
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005114$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005115fi
5116
5117else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005119$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005120$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005121
5122TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005123
Theodore Ts'oe1052142006-10-21 21:46:47 -04005124fi
5125
Theodore Ts'oaf773652008-09-01 11:27:27 -04005126
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005127
5128
Theodore Ts'o93613952014-07-03 23:44:13 -04005129
5130
5131
5132
5133
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005134if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005135 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005136 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5137set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005139$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005140if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005141 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005142else
5143 case $PKG_CONFIG in
5144 [\\/]* | ?:[\\/]*)
5145 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5146 ;;
5147 *)
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005153 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005155 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005157 break 2
5158 fi
5159done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005160 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005161IFS=$as_save_IFS
5162
5163 ;;
5164esac
5165fi
5166PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5167if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005169$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005170else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005172$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005173fi
5174
5175
5176fi
5177if test -z "$ac_cv_path_PKG_CONFIG"; then
5178 ac_pt_PKG_CONFIG=$PKG_CONFIG
5179 # Extract the first word of "pkg-config", so it can be a program name with args.
5180set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005182$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005183if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005184 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005185else
5186 case $ac_pt_PKG_CONFIG in
5187 [\\/]* | ?:[\\/]*)
5188 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5189 ;;
5190 *)
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005196 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005198 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005200 break 2
5201 fi
5202done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005203 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005204IFS=$as_save_IFS
5205
5206 ;;
5207esac
5208fi
5209ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5210if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005212$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005213else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005215$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005216fi
5217
5218 if test "x$ac_pt_PKG_CONFIG" = x; then
5219 PKG_CONFIG=""
5220 else
5221 case $cross_compiling:$ac_tool_warned in
5222yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005223{ $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 +01005224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005225ac_tool_warned=yes ;;
5226esac
5227 PKG_CONFIG=$ac_pt_PKG_CONFIG
5228 fi
5229else
5230 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5231fi
5232
5233fi
5234if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005235 _pkg_min_version=0.9.0
5236 { $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 +01005237$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005238 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005240$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005243$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005244 PKG_CONFIG=""
5245 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005246fi
5247LIBUUID=
5248DEPLIBUUID=
5249STATIC_LIBUUID=
5250DEPSTATIC_LIBUUID=
5251PROFILED_LIBUUID=
5252DEPPROFILED_LIBUUID=
5253UUID_CMT=
5254# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005255if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005256 enableval=$enable_libuuid; if test "$enableval" = "no"
5257then
5258 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005259 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005260 fi
5261
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005263$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005264if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005265 $as_echo_n "(cached) " >&6
5266else
5267 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005268LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005270/* end confdefs.h. */
5271
5272/* Override any GCC internal prototype to avoid an error.
5273 Use char because int might match the return type of a GCC
5274 builtin and then its argument prototype would still apply. */
5275#ifdef __cplusplus
5276extern "C"
5277#endif
5278char uuid_generate ();
5279int
5280main ()
5281{
5282return uuid_generate ();
5283 ;
5284 return 0;
5285}
5286_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005287if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005288 ac_cv_lib_uuid_uuid_generate=yes
5289else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005290 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005291fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005292rm -f core conftest.err conftest.$ac_objext \
5293 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005294LIBS=$ac_check_lib_save_LIBS
5295fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005297$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005298if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005299 LIBUUID=`$PKG_CONFIG --libs uuid`;
5300 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5301else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005302 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005303fi
5304
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005305 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005306 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005308$as_echo "Disabling private uuid library" >&6; }
5309else
5310 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5311 DEPLIBUUID=$LIBUUID
5312 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5313 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5314 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5315 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005317$as_echo "Enabling private uuid library" >&6; }
5318fi
5319
5320else
5321 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5322DEPLIBUUID=$LIBUUID
5323STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5324DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5325PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5326DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005328$as_echo "Enabling private uuid library by default" >&6; }
5329
5330fi
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
Theodore Ts'o93613952014-07-03 23:44:13 -04005341
5342
5343
5344
5345
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005346if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005347 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005348 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5349set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005351$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005352if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005353 $as_echo_n "(cached) " >&6
5354else
5355 case $PKG_CONFIG in
5356 [\\/]* | ?:[\\/]*)
5357 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5358 ;;
5359 *)
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005365 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005367 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005369 break 2
5370 fi
5371done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005372 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005373IFS=$as_save_IFS
5374
5375 ;;
5376esac
5377fi
5378PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5379if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005381$as_echo "$PKG_CONFIG" >&6; }
5382else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005384$as_echo "no" >&6; }
5385fi
5386
5387
5388fi
5389if test -z "$ac_cv_path_PKG_CONFIG"; then
5390 ac_pt_PKG_CONFIG=$PKG_CONFIG
5391 # Extract the first word of "pkg-config", so it can be a program name with args.
5392set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005394$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005395if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005396 $as_echo_n "(cached) " >&6
5397else
5398 case $ac_pt_PKG_CONFIG in
5399 [\\/]* | ?:[\\/]*)
5400 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5401 ;;
5402 *)
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005408 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005410 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005412 break 2
5413 fi
5414done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005415 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005416IFS=$as_save_IFS
5417
5418 ;;
5419esac
5420fi
5421ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5422if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005424$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5425else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005427$as_echo "no" >&6; }
5428fi
5429
5430 if test "x$ac_pt_PKG_CONFIG" = x; then
5431 PKG_CONFIG=""
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005435{ $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 +01005436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437ac_tool_warned=yes ;;
5438esac
5439 PKG_CONFIG=$ac_pt_PKG_CONFIG
5440 fi
5441else
5442 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5443fi
5444
5445fi
5446if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005447 _pkg_min_version=0.9.0
5448 { $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 +01005449$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005450 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005452$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005453 else
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005455$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005456 PKG_CONFIG=""
5457 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005458fi
5459LIBBLKID=
5460DEPLIBBLKID=
5461STATIC_LIBBLKID=
5462DEPSTATIC_LIBBLKID=
5463PROFILED_LIBBLKID=
5464DEPPROFILED_LIBBLKID=
5465BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005466
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005467# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005468if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005469 enableval=$enable_libblkid; if test "$enableval" = "no"
5470then
5471 if test -z "$PKG_CONFIG"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005472 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005473 fi
5474
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005476$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005477if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005478 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005479else
5480 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005481LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005483/* end confdefs.h. */
5484
5485/* Override any GCC internal prototype to avoid an error.
5486 Use char because int might match the return type of a GCC
5487 builtin and then its argument prototype would still apply. */
5488#ifdef __cplusplus
5489extern "C"
5490#endif
5491char blkid_get_cache ();
5492int
5493main ()
5494{
5495return blkid_get_cache ();
5496 ;
5497 return 0;
5498}
5499_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005500if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005501 ac_cv_lib_blkid_blkid_get_cache=yes
5502else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005503 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005504fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005505rm -f core conftest.err conftest.$ac_objext \
5506 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005507LIBS=$ac_check_lib_save_LIBS
5508fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005510$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005511if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005512 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5513 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5514else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005515 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005516fi
5517
5518 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005519 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005521$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005522else
5523 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5524 DEPLIBBLKID=$LIBBLKID
5525 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5526 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5527 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5528 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005529 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005530
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005532$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005533fi
5534
5535else
5536 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5537DEPLIBBLKID=$LIBBLKID
5538STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5539DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5540PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5541DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005542$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005543
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005545$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005546
5547fi
5548
5549
5550
5551
5552
5553
5554
5555
Eric Sandeenf5589f42013-10-14 08:54:15 -04005556QUOTA_MAN_COMMENT='.\"'
Niu Yawei43075b42013-10-14 09:49:27 -04005557QUOTA_CMT=
Eric Sandeenf5589f42013-10-14 08:54:15 -04005558
Aditya Kalif239fef2011-07-20 11:40:02 -07005559
5560
Theodore Ts'o93613952014-07-03 23:44:13 -04005561
5562
5563
5564
5565
Aditya Kalif239fef2011-07-20 11:40:02 -07005566if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005567 if test -n "$ac_tool_prefix"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005568 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5569set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005572if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005573 $as_echo_n "(cached) " >&6
5574else
5575 case $PKG_CONFIG in
5576 [\\/]* | ?:[\\/]*)
5577 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5578 ;;
5579 *)
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005587 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591done
5592 done
5593IFS=$as_save_IFS
5594
5595 ;;
5596esac
5597fi
5598PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5599if test -n "$PKG_CONFIG"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5601$as_echo "$PKG_CONFIG" >&6; }
5602else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604$as_echo "no" >&6; }
5605fi
5606
5607
5608fi
5609if test -z "$ac_cv_path_PKG_CONFIG"; then
5610 ac_pt_PKG_CONFIG=$PKG_CONFIG
5611 # Extract the first word of "pkg-config", so it can be a program name with args.
5612set dummy pkg-config; ac_word=$2
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005615if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005616 $as_echo_n "(cached) " >&6
5617else
5618 case $ac_pt_PKG_CONFIG in
5619 [\\/]* | ?:[\\/]*)
5620 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5621 ;;
5622 *)
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005630 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634done
5635 done
5636IFS=$as_save_IFS
5637
5638 ;;
5639esac
5640fi
5641ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5642if test -n "$ac_pt_PKG_CONFIG"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5644$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5645else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647$as_echo "no" >&6; }
5648fi
5649
5650 if test "x$ac_pt_PKG_CONFIG" = x; then
5651 PKG_CONFIG=""
5652 else
5653 case $cross_compiling:$ac_tool_warned in
5654yes:)
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657ac_tool_warned=yes ;;
5658esac
5659 PKG_CONFIG=$ac_pt_PKG_CONFIG
5660 fi
5661else
5662 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5663fi
5664
5665fi
5666if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005667 _pkg_min_version=0.9.0
5668 { $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 -07005669$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005670 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005672$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005673 else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005675$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005676 PKG_CONFIG=""
5677 fi
Aditya Kalif239fef2011-07-20 11:40:02 -07005678fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005679
5680# Check whether --enable-quota was given.
5681if test "${enable_quota+set}" = set; then :
5682 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005683then
Niu Yawei43075b42013-10-14 09:49:27 -04005684 QUOTA_CMT=#
Theodore Ts'o7becb202011-11-14 10:40:43 -05005685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5686$as_echo "Disabling quota support" >&6; }
5687else
Niu Yawei43075b42013-10-14 09:49:27 -04005688 QUOTA_CMT=
Theodore Ts'o7becb202011-11-14 10:40:43 -05005689 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005690
Theodore Ts'o7becb202011-11-14 10:40:43 -05005691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5692$as_echo "Enabling quota support" >&6; }
Eric Sandeenf5589f42013-10-14 08:54:15 -04005693 QUOTA_MAN_COMMENT=""
5694
Aditya Kalif239fef2011-07-20 11:40:02 -07005695fi
5696
5697else
Niu Yawei43075b42013-10-14 09:49:27 -04005698 QUOTA_CMT=#
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
Theodore Ts'o7becb202011-11-14 10:40:43 -05005700$as_echo "Disabling quota support by default" >&6; }
5701
5702fi
5703
5704LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005705DEPLIBQUOTA=$LIBQUOTA
5706STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5707DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5708PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5709DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005710
5711
5712
5713
5714
5715
5716
Theodore Ts'o3df60142013-06-16 16:14:40 -04005717
5718# Check whether --enable-backtrace was given.
5719if test "${enable_backtrace+set}" = set; then :
5720 enableval=$enable_backtrace; if test "$enableval" = "no"
5721then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5723$as_echo "Disabling use of backtrace" >&6; }
5724 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5725
5726else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5728$as_echo "Enabling use of backtrace" >&6; }
5729fi
5730
5731else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5733$as_echo "Enabling use of backtrace by default" >&6; }
5734
5735fi
5736
Theodore Ts'oe1052142006-10-21 21:46:47 -04005737# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005738if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005739 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005740then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005742$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005743 DEBUGFS_CMT="#"
5744else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005745 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005747$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005748fi
5749
5750else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005752$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005753DEBUGFS_CMT=
5754
Theodore Ts'oe1052142006-10-21 21:46:47 -04005755fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005756
Theodore Ts'oe1052142006-10-21 21:46:47 -04005757
5758# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005759if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005760 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005761then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005763$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005764 IMAGER_CMT="#"
5765else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005766 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005768$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005769fi
5770
5771else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005773$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005774IMAGER_CMT=
5775
Theodore Ts'oe1052142006-10-21 21:46:47 -04005776fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005777
Theodore Ts'oe1052142006-10-21 21:46:47 -04005778
5779# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005780if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005781 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005782then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005784$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005785 RESIZER_CMT="#"
5786else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005787 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005789$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005790fi
5791
5792else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005794$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005795RESIZER_CMT=
5796
Theodore Ts'oe1052142006-10-21 21:46:47 -04005797fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005798
Theodore Ts'oe1052142006-10-21 21:46:47 -04005799
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005800# Check whether --enable-defrag was given.
5801if test "${enable_defrag+set}" = set; then :
5802 enableval=$enable_defrag; if test "$enableval" = "no"
5803then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5805$as_echo "Disabling e4defrag support" >&6; }
5806 DEFRAG_CMT="#"
5807else
5808 DEFRAG_CMT=
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5810$as_echo "Enabling e4defrag support" >&6; }
5811fi
5812
5813else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005814 if test -z "$WITH_DIET_LIBC"
5815then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005817$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005818 DEFRAG_CMT=
5819else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5821$as_echo "Disabling e4defrag support by default" >&6; }
5822 DEFRAG_CMT="#"
5823fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005824
5825fi
5826
5827
Theodore Ts'oe1052142006-10-21 21:46:47 -04005828# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005829if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005830 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005831then
5832 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005834$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005835else
5836 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005838$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005839fi
5840
5841else
5842 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005843 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005844 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005846$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005847 ;;
5848 *)
5849 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005851$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005852esac
5853
Theodore Ts'oe1052142006-10-21 21:46:47 -04005854fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005855
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005856
Theodore Ts'oe1052142006-10-21 21:46:47 -04005857
5858# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005859if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005860 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005861then
5862 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005864$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005865else
5866 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005868$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005869fi
5870
5871else
5872 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005874$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005875
Theodore Ts'oe1052142006-10-21 21:46:47 -04005876fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005877
5878
Theodore Ts'oe1052142006-10-21 21:46:47 -04005879
Theodore Ts'o32493942007-12-31 10:45:01 -05005880# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005881if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005882 enableval=$enable_tls; if test "$enableval" = "no"
5883then
5884 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005886$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005887else
5888 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005890$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005891fi
5892
5893else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005894 if test -n "$WITH_DIET_LIBC"
5895then
5896 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005897 { $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 +01005898$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005899else
5900 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005902$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005903fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005904
5905fi
5906
5907if test "$try_tls" = "yes"
5908then
5909
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005911$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04005912 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005913 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005914else
5915
5916 ax_tls_keywords="__thread __declspec(thread) none"
5917 for ax_tls_keyword in $ax_tls_keywords; do
5918 case $ax_tls_keyword in
5919 none) ac_cv_tls=none ; break ;;
5920 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005922/* end confdefs.h. */
5923#include <stdlib.h>
5924 static void
5925 foo(void) {
5926 static $ax_tls_keyword int bar;
5927 exit(1);
5928 }
5929int
5930main ()
5931{
5932
5933 ;
5934 return 0;
5935}
5936_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005937if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005938 ac_cv_tls=$ax_tls_keyword ; break
5939else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005940 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005941
5942fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944 esac
5945 done
5946
5947fi
5948
5949
5950 if test "$ac_cv_tls" != "none"; then
5951
5952cat >>confdefs.h <<_ACEOF
5953#define TLS $ac_cv_tls
5954_ACEOF
5955
5956 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005958$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005959
5960fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005961
Theodore Ts'o5610f992007-12-31 11:16:56 -05005962# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005963if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005964 enableval=$enable_uuidd; if test "$enableval" = "no"
5965then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005967$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005968 UUIDD_CMT="#"
5969else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005970 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005971
5972 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005974$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005975fi
5976
5977else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005978 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005979
5980UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005982$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005983
5984fi
5985
5986
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005987MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5988
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005989GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005990PACKAGE=e2fsprogs
5991VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005992VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005993
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005994cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005995#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005996_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005997
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005998
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005999cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006000#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006001_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006002
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006003
6004
6005
6006
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006008$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6009set x ${MAKE-make}
6010ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006011if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006012 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006013else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006014 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006015SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006016all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006017 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006018_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006019# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006020case `${MAKE-make} -f conftest.make 2>/dev/null` in
6021 *@@@%%%=?*=@@@%%%*)
6022 eval ac_cv_prog_make_${ac_make}_set=yes;;
6023 *)
6024 eval ac_cv_prog_make_${ac_make}_set=no;;
6025esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006026rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006027fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006028if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006030$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006031 SET_MAKE=
6032else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006034$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006035 SET_MAKE="MAKE=${MAKE-make}"
6036fi
6037
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006038# Find a good install program. We prefer a C program (faster),
6039# so one script is as good as another. But avoid the broken or
6040# incompatible versions:
6041# SysV /etc/install, /usr/sbin/install
6042# SunOS /usr/etc/install
6043# IRIX /sbin/install
6044# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006045# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006046# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6047# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6048# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006049# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006050# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006051# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006053$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006054if test -z "$INSTALL"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006055if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006056 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006057else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006063 # Account for people who put trailing slashes in PATH elements.
6064case $as_dir/ in #((
6065 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006066 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006067 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006068 /usr/ucb/* ) ;;
6069 *)
6070 # OSF1 and SCO ODT 3.0 have their own names for install.
6071 # Don't use installbsd from OSF since it installs stuff as root
6072 # by default.
6073 for ac_prog in ginstall scoinst install; do
6074 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006075 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006076 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006077 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006078 # AIX install. It has an incompatible calling convention.
6079 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006080 elif test $ac_prog = install &&
6081 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6082 # program-specific install script used by HP pwplus--don't use.
6083 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006084 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006085 rm -rf conftest.one conftest.two conftest.dir
6086 echo one > conftest.one
6087 echo two > conftest.two
6088 mkdir conftest.dir
6089 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6090 test -s conftest.one && test -s conftest.two &&
6091 test -s conftest.dir/conftest.one &&
6092 test -s conftest.dir/conftest.two
6093 then
6094 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6095 break 3
6096 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006097 fi
6098 fi
6099 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006100 done
6101 ;;
6102esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006103
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006104 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006105IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006106
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006107rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006108
6109fi
6110 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006111 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006112 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006113 # As a last resort, use the slow shell script. Don't cache a
6114 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006115 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006116 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006117 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006118 fi
6119fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006121$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006122
6123# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6124# It thinks the first close brace ends the variable substitution.
6125test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006127test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006128
6129test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6130
Theodore Ts'o93613952014-07-03 23:44:13 -04006131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6132$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6133if test -z "$MKDIR_P"; then
6134 if ${ac_cv_path_mkdir+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_prog in mkdir gmkdir; do
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6145 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6146 'mkdir (GNU coreutils) '* | \
6147 'mkdir (coreutils) '* | \
6148 'mkdir (fileutils) '4.1*)
6149 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6150 break 3;;
6151 esac
6152 done
6153 done
6154 done
6155IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006156
Theodore Ts'o93613952014-07-03 23:44:13 -04006157fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006158
Theodore Ts'o93613952014-07-03 23:44:13 -04006159 test -d ./--version && rmdir ./--version
6160 if test "${ac_cv_path_mkdir+set}" = set; then
6161 MKDIR_P="$ac_cv_path_mkdir -p"
6162 else
6163 # As a last resort, use the slow shell script. Don't cache a
6164 # value for MKDIR_P within a source directory, because that will
6165 # break other packages using the cache if that directory is
6166 # removed, or if the value is a relative name.
6167 MKDIR_P="$ac_install_sh -d"
6168 fi
6169fi
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6171$as_echo "$MKDIR_P" >&6; }
6172
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6174$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6175if ${ac_cv_path_SED+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177else
6178 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6179 for ac_i in 1 2 3 4 5 6 7; do
6180 ac_script="$ac_script$as_nl$ac_script"
6181 done
6182 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6183 { ac_script=; unset ac_script;}
6184 if test -z "$SED"; then
6185 ac_path_SED_found=false
6186 # Loop through the user's path and test for each of PROGNAME-LIST
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_prog in sed gsed; do
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6195 as_fn_executable_p "$ac_path_SED" || continue
6196# Check for GNU ac_path_SED and select it if it is found.
6197 # Check for GNU $ac_path_SED
6198case `"$ac_path_SED" --version 2>&1` in
6199*GNU*)
6200 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6201*)
6202 ac_count=0
6203 $as_echo_n 0123456789 >"conftest.in"
6204 while :
6205 do
6206 cat "conftest.in" "conftest.in" >"conftest.tmp"
6207 mv "conftest.tmp" "conftest.in"
6208 cp "conftest.in" "conftest.nl"
6209 $as_echo '' >> "conftest.nl"
6210 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6212 as_fn_arith $ac_count + 1 && ac_count=$as_val
6213 if test $ac_count -gt ${ac_path_SED_max-0}; then
6214 # Best one so far, save it but keep looking for a better one
6215 ac_cv_path_SED="$ac_path_SED"
6216 ac_path_SED_max=$ac_count
6217 fi
6218 # 10*(2^10) chars as input seems more than enough
6219 test $ac_count -gt 10 && break
6220 done
6221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6222esac
6223
6224 $ac_path_SED_found && break 3
6225 done
6226 done
6227 done
6228IFS=$as_save_IFS
6229 if test -z "$ac_cv_path_SED"; then
6230 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6231 fi
6232else
6233 ac_cv_path_SED=$SED
6234fi
6235
6236fi
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6238$as_echo "$ac_cv_path_SED" >&6; }
6239 SED="$ac_cv_path_SED"
6240 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006241
6242
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006244$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006245 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006246if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006247 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006248else
6249 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006250fi
6251
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006253$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006254
6255
6256
6257
Theodore Ts'o93613952014-07-03 23:44:13 -04006258 GETTEXT_MACRO_VERSION=0.18
6259
6260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006261
6262
6263# Prepare PATH_SEPARATOR.
6264# The user is always right.
6265if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006266 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6267 # contains only /bin. Note that ksh looks also at the FPATH variable,
6268 # so we have to set that as well for the test.
6269 PATH_SEPARATOR=:
6270 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6271 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6272 || PATH_SEPARATOR=';'
6273 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006274fi
6275
6276# Find out how to test for executable files. Don't use a zero-byte file,
6277# as systems may use methods other than mode bits to determine executability.
6278cat >conf$$.file <<_ASEOF
6279#! /bin/sh
6280exit 0
6281_ASEOF
6282chmod +x conf$$.file
6283if test -x conf$$.file >/dev/null 2>&1; then
6284 ac_executable_p="test -x"
6285else
6286 ac_executable_p="test -f"
6287fi
6288rm -f conf$$.file
6289
6290# Extract the first word of "msgfmt", so it can be a program name with args.
6291set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006293$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006294if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006295 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006296else
6297 case "$MSGFMT" in
6298 [\\/]* | ?:[\\/]*)
6299 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6300 ;;
6301 *)
6302 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6303 for ac_dir in $PATH; do
6304 IFS="$ac_save_IFS"
6305 test -z "$ac_dir" && ac_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006308 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6309 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006310 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6311 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6312 break 2
6313 fi
6314 fi
6315 done
6316 done
6317 IFS="$ac_save_IFS"
6318 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6319 ;;
6320esac
6321fi
6322MSGFMT="$ac_cv_path_MSGFMT"
6323if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006325$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006326else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006328$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006329fi
6330
6331 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6332set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006334$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006335if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006336 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006337else
6338 case $GMSGFMT in
6339 [\\/]* | ?:[\\/]*)
6340 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6341 ;;
6342 *)
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006348 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006350 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006352 break 2
6353 fi
6354done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006355 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006356IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006357
6358 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6359 ;;
6360esac
6361fi
6362GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006363if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006365$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006366else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006368$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006369fi
6370
6371
6372
Theodore Ts'o93613952014-07-03 23:44:13 -04006373 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6374 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6375 *) MSGFMT_015=$MSGFMT ;;
6376 esac
6377
6378 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6379 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6380 *) GMSGFMT_015=$GMSGFMT ;;
6381 esac
6382
6383
Theodore Ts'oe1052142006-10-21 21:46:47 -04006384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006385# Prepare PATH_SEPARATOR.
6386# The user is always right.
6387if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006388 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6389 # contains only /bin. Note that ksh looks also at the FPATH variable,
6390 # so we have to set that as well for the test.
6391 PATH_SEPARATOR=:
6392 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6393 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6394 || PATH_SEPARATOR=';'
6395 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006396fi
6397
6398# Find out how to test for executable files. Don't use a zero-byte file,
6399# as systems may use methods other than mode bits to determine executability.
6400cat >conf$$.file <<_ASEOF
6401#! /bin/sh
6402exit 0
6403_ASEOF
6404chmod +x conf$$.file
6405if test -x conf$$.file >/dev/null 2>&1; then
6406 ac_executable_p="test -x"
6407else
6408 ac_executable_p="test -f"
6409fi
6410rm -f conf$$.file
6411
6412# Extract the first word of "xgettext", so it can be a program name with args.
6413set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006415$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006416if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006417 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006418else
6419 case "$XGETTEXT" in
6420 [\\/]* | ?:[\\/]*)
6421 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6422 ;;
6423 *)
6424 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6425 for ac_dir in $PATH; do
6426 IFS="$ac_save_IFS"
6427 test -z "$ac_dir" && ac_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006430 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6431 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 -05006432 (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
6433 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6434 break 2
6435 fi
6436 fi
6437 done
6438 done
6439 IFS="$ac_save_IFS"
6440 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6441 ;;
6442esac
6443fi
6444XGETTEXT="$ac_cv_path_XGETTEXT"
6445if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006447$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006448else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006450$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006451fi
6452
6453 rm -f messages.po
6454
Theodore Ts'o93613952014-07-03 23:44:13 -04006455 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6456 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6457 *) XGETTEXT_015=$XGETTEXT ;;
6458 esac
6459
6460
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006461
6462# Prepare PATH_SEPARATOR.
6463# The user is always right.
6464if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006465 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6466 # contains only /bin. Note that ksh looks also at the FPATH variable,
6467 # so we have to set that as well for the test.
6468 PATH_SEPARATOR=:
6469 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6470 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6471 || PATH_SEPARATOR=';'
6472 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006473fi
6474
6475# Find out how to test for executable files. Don't use a zero-byte file,
6476# as systems may use methods other than mode bits to determine executability.
6477cat >conf$$.file <<_ASEOF
6478#! /bin/sh
6479exit 0
6480_ASEOF
6481chmod +x conf$$.file
6482if test -x conf$$.file >/dev/null 2>&1; then
6483 ac_executable_p="test -x"
6484else
6485 ac_executable_p="test -f"
6486fi
6487rm -f conf$$.file
6488
6489# Extract the first word of "msgmerge", so it can be a program name with args.
6490set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006492$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006493if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006494 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006495else
6496 case "$MSGMERGE" in
6497 [\\/]* | ?:[\\/]*)
6498 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6499 ;;
6500 *)
6501 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6502 for ac_dir in $PATH; do
6503 IFS="$ac_save_IFS"
6504 test -z "$ac_dir" && ac_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006507 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6508 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006509 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6510 break 2
6511 fi
6512 fi
6513 done
6514 done
6515 IFS="$ac_save_IFS"
6516 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6517 ;;
6518esac
6519fi
6520MSGMERGE="$ac_cv_path_MSGMERGE"
6521if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006523$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006524else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006526$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006527fi
6528
6529
Theodore Ts'o93613952014-07-03 23:44:13 -04006530 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006532
Theodore Ts'o93613952014-07-03 23:44:13 -04006533 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6534
6535
6536 ac_config_commands="$ac_config_commands po-directories"
6537
6538
6539
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6541$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6542if ${ac_cv_gnu_library_2+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544else
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546/* end confdefs.h. */
6547
6548#include <features.h>
6549#ifdef __GNU_LIBRARY__
6550 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6551 Lucky GNU user
6552 #endif
6553#endif
6554
6555_ACEOF
6556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6558 ac_cv_gnu_library_2=yes
6559else
6560 ac_cv_gnu_library_2=no
6561fi
6562rm -f conftest*
6563
6564
6565
6566fi
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6568$as_echo "$ac_cv_gnu_library_2" >&6; }
6569
6570 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006571
6572
6573if test -n "$ac_tool_prefix"; then
6574 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6575set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006577$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006578if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006579 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006580else
6581 if test -n "$RANLIB"; then
6582 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6583else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585for as_dir in $PATH
6586do
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006589 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006591 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593 break 2
6594 fi
6595done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006596 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006597IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006598
6599fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006600fi
6601RANLIB=$ac_cv_prog_RANLIB
6602if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006604$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006605else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006607$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006608fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006609
Theodore Ts'oe1052142006-10-21 21:46:47 -04006610
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006611fi
6612if test -z "$ac_cv_prog_RANLIB"; then
6613 ac_ct_RANLIB=$RANLIB
6614 # Extract the first word of "ranlib", so it can be a program name with args.
6615set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006617$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006618if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006619 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006620else
6621 if test -n "$ac_ct_RANLIB"; then
6622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6623else
6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006629 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006631 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006633 break 2
6634 fi
6635done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006636 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006637IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006638
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006639fi
6640fi
6641ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6642if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006644$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006645else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006647$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006648fi
6649
Theodore Ts'oe1052142006-10-21 21:46:47 -04006650 if test "x$ac_ct_RANLIB" = x; then
6651 RANLIB=":"
6652 else
6653 case $cross_compiling:$ac_tool_warned in
6654yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006655{ $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 +01006656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006657ac_tool_warned=yes ;;
6658esac
6659 RANLIB=$ac_ct_RANLIB
6660 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661else
6662 RANLIB="$ac_cv_prog_RANLIB"
6663fi
6664
6665
Theodore Ts'o93613952014-07-03 23:44:13 -04006666
6667 CFLAG_VISIBILITY=
6668 HAVE_VISIBILITY=0
6669 if test -n "$GCC"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6671$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6672 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006673 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006674else
Theodore Ts'o93613952014-07-03 23:44:13 -04006675
6676 gl_save_CFLAGS="$CFLAGS"
6677 CFLAGS="$CFLAGS -Werror"
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006679/* end confdefs.h. */
6680
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006681int
6682main ()
6683{
Theodore Ts'o93613952014-07-03 23:44:13 -04006684
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685 ;
6686 return 0;
6687}
6688_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006689if ac_fn_c_try_compile "$LINENO"; then :
6690 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006691else
Theodore Ts'o93613952014-07-03 23:44:13 -04006692 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006693fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006696fi
6697
Theodore Ts'o93613952014-07-03 23:44:13 -04006698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6699$as_echo "$gl_cv_cc_vis_werror" >&6; }
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6701$as_echo_n "checking for simple visibility declarations... " >&6; }
6702 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006703 $as_echo_n "(cached) " >&6
6704else
Theodore Ts'o93613952014-07-03 23:44:13 -04006705
6706 gl_save_CFLAGS="$CFLAGS"
6707 CFLAGS="$CFLAGS -fvisibility=hidden"
6708 if test $gl_cv_cc_vis_werror = yes; then
6709 CFLAGS="$CFLAGS -Werror"
6710 fi
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712/* end confdefs.h. */
6713extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6714 extern __attribute__((__visibility__("default"))) int exportedvar;
6715 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6716 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6717 void dummyfunc (void) {}
6718
6719int
6720main ()
6721{
6722
6723 ;
6724 return 0;
6725}
6726_ACEOF
6727if ac_fn_c_try_compile "$LINENO"; then :
6728 gl_cv_cc_visibility=yes
6729else
6730 gl_cv_cc_visibility=no
6731fi
6732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 CFLAGS="$gl_save_CFLAGS"
6734fi
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6737$as_echo "$gl_cv_cc_visibility" >&6; }
6738 if test $gl_cv_cc_visibility = yes; then
6739 CFLAG_VISIBILITY="-fvisibility=hidden"
6740 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006741 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006742 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006743
6744
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006745
Theodore Ts'o93613952014-07-03 23:44:13 -04006746cat >>confdefs.h <<_ACEOF
6747#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006748_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006750
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006752$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006753if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006754 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006755else
6756 ac_cv_c_inline=no
6757for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006759/* end confdefs.h. */
6760#ifndef __cplusplus
6761typedef int foo_t;
6762static $ac_kw foo_t static_foo () {return 0; }
6763$ac_kw foo_t foo () {return 0; }
6764#endif
6765
6766_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006767if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006768 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006769fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006772done
6773
6774fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006776$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006777
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006778case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006779 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006780 *)
6781 case $ac_cv_c_inline in
6782 no) ac_val=;;
6783 *) ac_val=$ac_cv_c_inline;;
6784 esac
6785 cat >>confdefs.h <<_ACEOF
6786#ifndef __cplusplus
6787#define inline $ac_val
6788#endif
6789_ACEOF
6790 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006791esac
6792
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006793ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006794if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006795
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006796else
6797
6798cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006799#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006800_ACEOF
6801
6802fi
6803
6804
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006806$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006807if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006808 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006809else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006811/* end confdefs.h. */
6812#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006813 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814int
6815main ()
6816{
Theodore Ts'o93613952014-07-03 23:44:13 -04006817uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006818 ;
6819 return 0;
6820}
6821_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006822if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006823 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006824else
Theodore Ts'o93613952014-07-03 23:44:13 -04006825 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006826fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006828fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6830$as_echo "$gl_cv_header_stdint_h" >&6; }
6831 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006832
6833cat >>confdefs.h <<_ACEOF
6834#define HAVE_STDINT_H_WITH_UINTMAX 1
6835_ACEOF
6836
6837 fi
6838
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006839# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6840# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006842$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006843if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006844 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006845else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006847/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006848#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006849int
6850main ()
6851{
6852char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006853 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006854 ;
6855 return 0;
6856}
6857_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006858if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006859 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006860else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006861 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006863rm -f core conftest.err conftest.$ac_objext \
6864 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006865fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006867$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006868if test $ac_cv_working_alloca_h = yes; then
6869
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006870$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006871
6872fi
6873
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006875$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006876if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006877 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006878else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006880/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006881#ifdef __GNUC__
6882# define alloca __builtin_alloca
6883#else
6884# ifdef _MSC_VER
6885# include <malloc.h>
6886# define alloca _alloca
6887# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006888# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006889# include <alloca.h>
6890# else
6891# ifdef _AIX
6892 #pragma alloca
6893# else
6894# ifndef alloca /* predefined by HP cc +Olibcalls */
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006895void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006896# endif
6897# endif
6898# endif
6899# endif
6900#endif
6901
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006902int
6903main ()
6904{
6905char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006906 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006907 ;
6908 return 0;
6909}
6910_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006911if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006912 ac_cv_func_alloca_works=yes
6913else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006914 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006916rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006920$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006921
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006922if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006923
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006924$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006925
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006926else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006927 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6928# that cause trouble. Some versions do not even contain alloca or
6929# contain a buggy version. If you still want to use their alloca,
6930# use ar to extract alloca.o from them instead of compiling alloca.c.
6931
Theodore Ts'oe1052142006-10-21 21:46:47 -04006932ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006933
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006934$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006935
6936
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006938$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006939if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006940 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006941else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006944#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006945webecray
6946#else
6947wenotbecray
6948#endif
6949
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006950_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006952 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006953 ac_cv_os_cray=yes
6954else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006955 ac_cv_os_cray=no
6956fi
6957rm -f conftest*
6958
6959fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006961$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006962if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006963 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006965ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006966if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006967
6968cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006969#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006970_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006971
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006972 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006973fi
6974
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006975 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006976fi
6977
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006979$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006980if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006981 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006982else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006983 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006984 ac_cv_c_stack_direction=0
6985else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006987/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006988$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006989int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006990find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006991{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04006992 int dir, dummy = 0;
6993 if (! addr)
6994 addr = &dummy;
6995 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6996 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6997 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006998}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006999
7000int
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007001main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007002{
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007003 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007004}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007005_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007006if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007007 ac_cv_c_stack_direction=1
7008else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007009 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007010fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7012 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007013fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007014
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007015fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007017$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007018cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007019#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007020_ACEOF
7021
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007022
7023fi
7024
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007025
7026
7027
7028 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007029do :
7030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007031ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7032"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007033if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007034 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007036_ACEOF
7037
7038fi
7039
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007040done
7041
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007042
7043
7044
7045
7046
7047
7048
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007049for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007050do :
7051 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007052if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007053 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007054#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007055_ACEOF
7056
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007057fi
7058done
7059
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007061$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007062if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007063 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007064else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007065 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007066 ac_cv_func_mmap_fixed_mapped=no
7067else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007069/* end confdefs.h. */
7070$ac_includes_default
7071/* malloc might have been renamed as rpl_malloc. */
7072#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007073
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007074/* Thanks to Mike Haertel and Jim Avera for this test.
7075 Here is a matrix of mmap possibilities:
7076 mmap private not fixed
7077 mmap private fixed at somewhere currently unmapped
7078 mmap private fixed at somewhere already mapped
7079 mmap shared not fixed
7080 mmap shared fixed at somewhere currently unmapped
7081 mmap shared fixed at somewhere already mapped
7082 For private mappings, we should verify that changes cannot be read()
7083 back from the file, nor mmap's back from the file at a different
7084 address. (There have been systems where private was not correctly
7085 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007086 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007087 like early versions of FreeBSD and possibly contemporary NetBSD.)
7088 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007090
7091 Grep wants private fixed already mapped.
7092 The main things grep needs to know about mmap are:
7093 * does it exist and is it safe to write into the mmap'd area
7094 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007095
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007096#include <fcntl.h>
7097#include <sys/mman.h>
7098
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007099#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007100char *malloc ();
7101#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007102
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007103/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007104#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007105# ifdef _SC_PAGESIZE
7106# define getpagesize() sysconf(_SC_PAGESIZE)
7107# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007108# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007109# include <sys/param.h>
7110# ifdef EXEC_PAGESIZE
7111# define getpagesize() EXEC_PAGESIZE
7112# else /* no EXEC_PAGESIZE */
7113# ifdef NBPG
7114# define getpagesize() NBPG * CLSIZE
7115# ifndef CLSIZE
7116# define CLSIZE 1
7117# endif /* no CLSIZE */
7118# else /* no NBPG */
7119# ifdef NBPC
7120# define getpagesize() NBPC
7121# else /* no NBPC */
7122# ifdef PAGESIZE
7123# define getpagesize() PAGESIZE
7124# endif /* PAGESIZE */
7125# endif /* no NBPC */
7126# endif /* no NBPG */
7127# endif /* no EXEC_PAGESIZE */
7128# else /* no HAVE_SYS_PARAM_H */
7129# define getpagesize() 8192 /* punt totally */
7130# endif /* no HAVE_SYS_PARAM_H */
7131# endif /* no _SC_PAGESIZE */
7132
7133#endif /* no HAVE_GETPAGESIZE */
7134
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007135int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007136main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007137{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007138 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007139 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007140 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007141 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007142
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007143 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007144
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007145 /* First, make a file with some known garbage in it. */
7146 data = (char *) malloc (pagesize);
7147 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007148 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007149 for (i = 0; i < pagesize; ++i)
7150 *(data + i) = rand ();
7151 umask (0);
7152 fd = creat ("conftest.mmap", 0600);
7153 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007154 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007155 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007156 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007157 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007158
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007159 /* Next, check that the tail of a page is zero-filled. File must have
7160 non-zero length, otherwise we risk SIGBUS for entire page. */
7161 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7162 if (fd2 < 0)
7163 return 4;
7164 cdata2 = "";
7165 if (write (fd2, cdata2, 1) != 1)
7166 return 5;
7167 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7168 if (data2 == MAP_FAILED)
7169 return 6;
7170 for (i = 0; i < pagesize; ++i)
7171 if (*(data2 + i))
7172 return 7;
7173 close (fd2);
7174 if (munmap (data2, pagesize))
7175 return 8;
7176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007177 /* Next, try to mmap the file at a fixed address which already has
7178 something else allocated at it. If we can, also make sure that
7179 we see the same garbage. */
7180 fd = open ("conftest.mmap", O_RDWR);
7181 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007182 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007183 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7184 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007185 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007186 for (i = 0; i < pagesize; ++i)
7187 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007188 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007189
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007190 /* Finally, make sure that changes to the mapped area do not
7191 percolate back to the file as seen by read(). (This is a bug on
7192 some variants of i386 svr4.0.) */
7193 for (i = 0; i < pagesize; ++i)
7194 *(data2 + i) = *(data2 + i) + 1;
7195 data3 = (char *) malloc (pagesize);
7196 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007197 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007198 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007199 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007200 for (i = 0; i < pagesize; ++i)
7201 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007202 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007203 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007204 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007205}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007206_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007207if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007208 ac_cv_func_mmap_fixed_mapped=yes
7209else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007210 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007211fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7213 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007214fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007215
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007216fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007218$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007219if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007220
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007221$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007222
7223fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007224rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007225
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007226
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007227
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007229$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007230if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007231 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007232else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007233
Theodore Ts'o93613952014-07-03 23:44:13 -04007234 gt_cv_int_divbyzero_sigfpe=
7235 case "$host_os" in
7236 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7237 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7238 # compiling. If we were to perform the real test, 1 Crash Report
7239 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007240 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007241 i[34567]86 | x86_64)
7242 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007243 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007244 ;;
7245 esac
7246 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7247 if test "$cross_compiling" = yes; then :
7248
7249 # Guess based on the CPU.
7250 case "$host_cpu" in
7251 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7252 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7253 *)
7254 gt_cv_int_divbyzero_sigfpe="guessing no";;
7255 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007256
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007257else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007259/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007260
7261#include <stdlib.h>
7262#include <signal.h>
7263
7264static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007265sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007266{
7267 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7268 exit (sig != SIGFPE);
7269}
7270
7271int x = 1;
7272int y = 0;
7273int z;
7274int nan;
7275
7276int main ()
7277{
7278 signal (SIGFPE, sigfpe_handler);
7279/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7280#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7281 signal (SIGTRAP, sigfpe_handler);
7282#endif
7283/* Linux/SPARC yields signal SIGILL. */
7284#if defined (__sparc__) && defined (__linux__)
7285 signal (SIGILL, sigfpe_handler);
7286#endif
7287
7288 z = x / y;
7289 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007290 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007291}
7292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007293_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007294if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007295 gt_cv_int_divbyzero_sigfpe=yes
7296else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007297 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007298fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7300 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007301fi
7302
Theodore Ts'o93613952014-07-03 23:44:13 -04007303 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007304
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007305fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007307$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007308 case "$gt_cv_int_divbyzero_sigfpe" in
7309 *yes) value=1;;
7310 *) value=0;;
7311 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007312
7313cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007314#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007315_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007316
7317
7318
Theodore Ts'o93613952014-07-03 23:44:13 -04007319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7320$as_echo_n "checking for inttypes.h... " >&6; }
7321if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007322 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007323else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007325/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007326
7327#include <sys/types.h>
7328#include <inttypes.h>
7329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007330int
7331main ()
7332{
Theodore Ts'o93613952014-07-03 23:44:13 -04007333uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007334 ;
7335 return 0;
7336}
7337_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007338if ac_fn_c_try_compile "$LINENO"; then :
7339 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007340else
Theodore Ts'o93613952014-07-03 23:44:13 -04007341 gl_cv_header_inttypes_h=no
7342fi
7343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344fi
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7346$as_echo "$gl_cv_header_inttypes_h" >&6; }
7347 if test $gl_cv_header_inttypes_h = yes; then
7348
7349cat >>confdefs.h <<_ACEOF
7350#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7351_ACEOF
7352
7353 fi
7354
7355
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7357$as_echo_n "checking for unsigned long long int... " >&6; }
7358if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360else
7361 ac_cv_type_unsigned_long_long_int=yes
7362 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364/* end confdefs.h. */
7365
7366 /* For now, do not test the preprocessor; as of 2007 there are too many
7367 implementations with broken preprocessors. Perhaps this can
7368 be revisited in 2012. In the meantime, code should not expect
7369 #if to work with literals wider than 32 bits. */
7370 /* Test literals. */
7371 long long int ll = 9223372036854775807ll;
7372 long long int nll = -9223372036854775807LL;
7373 unsigned long long int ull = 18446744073709551615ULL;
7374 /* Test constant expressions. */
7375 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7376 ? 1 : -1)];
7377 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7378 ? 1 : -1)];
7379 int i = 63;
7380int
7381main ()
7382{
7383/* Test availability of runtime routines for shift and division. */
7384 long long int llmax = 9223372036854775807ll;
7385 unsigned long long int ullmax = 18446744073709551615ull;
7386 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7387 | (llmax / ll) | (llmax % ll)
7388 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7389 | (ullmax / ull) | (ullmax % ull));
7390 ;
7391 return 0;
7392}
7393
7394_ACEOF
7395if ac_fn_c_try_link "$LINENO"; then :
7396
7397else
7398 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007399fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007400rm -f core conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007402 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007403fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7405$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7406 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007407
Theodore Ts'o93613952014-07-03 23:44:13 -04007408$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007409
7410 fi
7411
7412
7413
7414
Theodore Ts'o93613952014-07-03 23:44:13 -04007415 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007416
Theodore Ts'o93613952014-07-03 23:44:13 -04007417 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007418 && ac_type='unsigned long long' \
7419 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007420
7421cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007422#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007423_ACEOF
7424
7425 else
7426
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007427$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007428
7429 fi
7430
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007431
Theodore Ts'o93613952014-07-03 23:44:13 -04007432 for ac_header in inttypes.h
7433do :
7434 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7435if test "x$ac_cv_header_inttypes_h" = xyes; then :
7436 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007437#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007438_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007439
Theodore Ts'o93613952014-07-03 23:44:13 -04007440fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007441
Theodore Ts'o93613952014-07-03 23:44:13 -04007442done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007443
Theodore Ts'o93613952014-07-03 23:44:13 -04007444 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007445 { $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 +01007446$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007447if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007448 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007449else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007450
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007452/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007453
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007454#include <inttypes.h>
7455#ifdef PRId32
7456char *p = PRId32;
7457#endif
7458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007459int
7460main ()
7461{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007463 ;
7464 return 0;
7465}
7466_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007467if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007468 gt_cv_inttypes_pri_broken=no
7469else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007470 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007471fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007473
7474fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007476$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007477 fi
7478 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007479
7480cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007481#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007482_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007483
Theodore Ts'o93613952014-07-03 23:44:13 -04007484 PRI_MACROS_BROKEN=1
7485 else
7486 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007487 fi
7488
7489
7490
Theodore Ts'o93613952014-07-03 23:44:13 -04007491
7492
7493
7494
7495 # Check whether --enable-threads was given.
7496if test "${enable_threads+set}" = set; then :
7497 enableval=$enable_threads; gl_use_threads=$enableval
7498else
7499 if test -n "$gl_use_threads_default"; then
7500 gl_use_threads="$gl_use_threads_default"
7501 else
7502 case "$host_os" in
7503 osf*) gl_use_threads=no ;;
7504 cygwin*)
7505 case `uname -r` in
7506 1.[0-5].*) gl_use_threads=no ;;
7507 *) gl_use_threads=yes ;;
7508 esac
7509 ;;
7510 *) gl_use_threads=yes ;;
7511 esac
7512 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007513
7514fi
7515
Theodore Ts'o93613952014-07-03 23:44:13 -04007516 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7517 # For using <pthread.h>:
7518 case "$host_os" in
7519 osf*)
7520 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7521 # groks <pthread.h>. cc also understands the flag -pthread, but
7522 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7523 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7524 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7525 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7526 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7527 ;;
7528 esac
7529 # Some systems optimize for single-threaded programs by default, and
7530 # need special flags to disable these optimizations. For example, the
7531 # definition of 'errno' in <errno.h>.
7532 case "$host_os" in
7533 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7534 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7535 esac
7536 fi
7537
7538
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007539
7540
7541
7542 if test "X$prefix" = "XNONE"; then
7543 acl_final_prefix="$ac_default_prefix"
7544 else
7545 acl_final_prefix="$prefix"
7546 fi
7547 if test "X$exec_prefix" = "XNONE"; then
7548 acl_final_exec_prefix='${prefix}'
7549 else
7550 acl_final_exec_prefix="$exec_prefix"
7551 fi
7552 acl_save_prefix="$prefix"
7553 prefix="$acl_final_prefix"
7554 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7555 prefix="$acl_save_prefix"
7556
7557
Theodore Ts'o93613952014-07-03 23:44:13 -04007558
Theodore Ts'oe1052142006-10-21 21:46:47 -04007559# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007560if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007561 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007562else
7563 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007564fi
7565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007566# Prepare PATH_SEPARATOR.
7567# The user is always right.
7568if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007569 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7570 # contains only /bin. Note that ksh looks also at the FPATH variable,
7571 # so we have to set that as well for the test.
7572 PATH_SEPARATOR=:
7573 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7574 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7575 || PATH_SEPARATOR=';'
7576 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007577fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007578
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007579ac_prog=ld
7580if test "$GCC" = yes; then
7581 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7583$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007584 case $host in
7585 *-*-mingw*)
7586 # gcc leaves a trailing carriage return which upsets mingw
7587 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7588 *)
7589 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7590 esac
7591 case $ac_prog in
7592 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007593 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007594 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007595 # Canonicalize the pathname of ld
7596 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7597 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7598 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007599 done
7600 test -z "$LD" && LD="$ac_prog"
7601 ;;
7602 "")
7603 # If it fails, then pretend we aren't using GCC.
7604 ac_prog=ld
7605 ;;
7606 *)
7607 # If it is relative, then search for the first ld in PATH.
7608 with_gnu_ld=unknown
7609 ;;
7610 esac
7611elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007613$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007614else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007616$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007617fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007618if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007619 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620else
7621 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007622 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007623 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007624 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007625 test -z "$ac_dir" && ac_dir=.
7626 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7627 acl_cv_path_LD="$ac_dir/$ac_prog"
7628 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007629 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007630 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007631 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007632 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007633 test "$with_gnu_ld" != no && break
7634 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007635 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007636 test "$with_gnu_ld" != yes && break
7637 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007638 esac
7639 fi
7640 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007641 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007642else
7643 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7644fi
7645fi
7646
7647LD="$acl_cv_path_LD"
7648if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007650$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007651else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007653$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007654fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007655test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007657$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007658if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007659 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007660else
Theodore Ts'o93613952014-07-03 23:44:13 -04007661 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007662case `$LD -v 2>&1 </dev/null` in
7663*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007664 acl_cv_prog_gnu_ld=yes
7665 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007667 acl_cv_prog_gnu_ld=no
7668 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007669esac
7670fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007672$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007673with_gnu_ld=$acl_cv_prog_gnu_ld
7674
7675
7676
Theodore Ts'o93613952014-07-03 23:44:13 -04007677
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007679$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04007680if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007681 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007682else
7683
7684 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7685 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7686 . ./conftest.sh
7687 rm -f ./conftest.sh
7688 acl_cv_rpath=done
7689
7690fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007692$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007693 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007694 acl_libext="$acl_cv_libext"
7695 acl_shlibext="$acl_cv_shlibext"
7696 acl_libname_spec="$acl_cv_libname_spec"
7697 acl_library_names_spec="$acl_cv_library_names_spec"
7698 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7699 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7700 acl_hardcode_direct="$acl_cv_hardcode_direct"
7701 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007702 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007703if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007704 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007705else
7706 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007707fi
7708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007709
7710
7711
Theodore Ts'o93613952014-07-03 23:44:13 -04007712 acl_libdirstem=lib
7713 acl_libdirstem2=
7714 case "$host_os" in
7715 solaris*)
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7717$as_echo_n "checking for 64-bit host... " >&6; }
7718if ${gl_cv_solaris_64bit+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720else
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722/* end confdefs.h. */
7723
7724#ifdef _LP64
7725sixtyfour bits
7726#endif
7727
7728_ACEOF
7729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7730 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7731 gl_cv_solaris_64bit=yes
7732else
7733 gl_cv_solaris_64bit=no
7734fi
7735rm -f conftest*
7736
7737
7738fi
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7740$as_echo "$gl_cv_solaris_64bit" >&6; }
7741 if test $gl_cv_solaris_64bit = yes; then
7742 acl_libdirstem=lib/64
7743 case "$host_cpu" in
7744 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7745 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7746 esac
7747 fi
7748 ;;
7749 *)
7750 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7751 if test -n "$searchpath"; then
7752 acl_save_IFS="${IFS= }"; IFS=":"
7753 for searchdir in $searchpath; do
7754 if test -d "$searchdir"; then
7755 case "$searchdir" in
7756 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7757 */../ | */.. )
7758 # Better ignore directories of this form. They are misleading.
7759 ;;
7760 *) searchdir=`cd "$searchdir" && pwd`
7761 case "$searchdir" in
7762 */lib64 ) acl_libdirstem=lib64 ;;
7763 esac ;;
7764 esac
7765 fi
7766 done
7767 IFS="$acl_save_IFS"
7768 fi
7769 ;;
7770 esac
7771 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7772
7773
7774
7775 gl_threads_api=none
7776 LIBTHREAD=
7777 LTLIBTHREAD=
7778 LIBMULTITHREAD=
7779 LTLIBMULTITHREAD=
7780 if test "$gl_use_threads" != no; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7782$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7783if ${gl_cv_have_weak+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785else
7786 gl_cv_have_weak=no
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788/* end confdefs.h. */
7789extern void xyzzy ();
7790#pragma weak xyzzy
7791int
7792main ()
7793{
7794xyzzy();
7795 ;
7796 return 0;
7797}
7798_ACEOF
7799if ac_fn_c_try_link "$LINENO"; then :
7800 gl_cv_have_weak=maybe
7801fi
7802rm -f core conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
7804 if test $gl_cv_have_weak = maybe; then
7805 if test "$cross_compiling" = yes; then :
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807/* end confdefs.h. */
7808#ifdef __ELF__
7809 Extensible Linking Format
7810 #endif
7811
7812_ACEOF
7813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7814 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7815 gl_cv_have_weak="guessing yes"
7816else
7817 gl_cv_have_weak="guessing no"
7818fi
7819rm -f conftest*
7820
7821
7822else
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h. */
7825
7826#include <stdio.h>
7827#pragma weak fputs
7828int main ()
7829{
7830 return (fputs == NULL);
7831}
7832_ACEOF
7833if ac_fn_c_try_run "$LINENO"; then :
7834 gl_cv_have_weak=yes
7835else
7836 gl_cv_have_weak=no
7837fi
7838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7839 conftest.$ac_objext conftest.beam conftest.$ac_ext
7840fi
7841
7842 fi
7843
7844fi
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7846$as_echo "$gl_cv_have_weak" >&6; }
7847 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7848 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7849 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7850 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7851if test "x$ac_cv_header_pthread_h" = xyes; then :
7852 gl_have_pthread_h=yes
7853else
7854 gl_have_pthread_h=no
7855fi
7856
7857
7858 if test "$gl_have_pthread_h" = yes; then
7859 # Other possible tests:
7860 # -lpthreads (FSU threads, PCthreads)
7861 # -lgthreads
7862 gl_have_pthread=
7863 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7864 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7865 # the second one only in libpthread, and lock.c needs it.
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h. */
7868#include <pthread.h>
7869int
7870main ()
7871{
7872pthread_mutex_lock((pthread_mutex_t*)0);
7873 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7874 ;
7875 return 0;
7876}
7877_ACEOF
7878if ac_fn_c_try_link "$LINENO"; then :
7879 gl_have_pthread=yes
7880fi
7881rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7884 # since it is defined as a macro on OSF/1.)
7885 if test -n "$gl_have_pthread"; then
7886 # The program links fine without libpthread. But it may actually
7887 # need to link with libpthread in order to create multiple threads.
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7889$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7890if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892else
7893 ac_check_lib_save_LIBS=$LIBS
7894LIBS="-lpthread $LIBS"
7895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896/* end confdefs.h. */
7897
7898/* Override any GCC internal prototype to avoid an error.
7899 Use char because int might match the return type of a GCC
7900 builtin and then its argument prototype would still apply. */
7901#ifdef __cplusplus
7902extern "C"
7903#endif
7904char pthread_kill ();
7905int
7906main ()
7907{
7908return pthread_kill ();
7909 ;
7910 return 0;
7911}
7912_ACEOF
7913if ac_fn_c_try_link "$LINENO"; then :
7914 ac_cv_lib_pthread_pthread_kill=yes
7915else
7916 ac_cv_lib_pthread_pthread_kill=no
7917fi
7918rm -f core conftest.err conftest.$ac_objext \
7919 conftest$ac_exeext conftest.$ac_ext
7920LIBS=$ac_check_lib_save_LIBS
7921fi
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7923$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7924if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7925 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7926 # On Solaris and HP-UX, most pthread functions exist also in libc.
7927 # Therefore pthread_in_use() needs to actually try to create a
7928 # thread: pthread_create from libc will fail, whereas
7929 # pthread_create will actually create a thread.
7930 case "$host_os" in
7931 solaris* | hpux*)
7932
7933$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7934
7935 esac
7936
7937fi
7938
7939 else
7940 # Some library is needed. Try libpthread and libc_r.
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7942$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7943if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945else
7946 ac_check_lib_save_LIBS=$LIBS
7947LIBS="-lpthread $LIBS"
7948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949/* end confdefs.h. */
7950
7951/* Override any GCC internal prototype to avoid an error.
7952 Use char because int might match the return type of a GCC
7953 builtin and then its argument prototype would still apply. */
7954#ifdef __cplusplus
7955extern "C"
7956#endif
7957char pthread_kill ();
7958int
7959main ()
7960{
7961return pthread_kill ();
7962 ;
7963 return 0;
7964}
7965_ACEOF
7966if ac_fn_c_try_link "$LINENO"; then :
7967 ac_cv_lib_pthread_pthread_kill=yes
7968else
7969 ac_cv_lib_pthread_pthread_kill=no
7970fi
7971rm -f core conftest.err conftest.$ac_objext \
7972 conftest$ac_exeext conftest.$ac_ext
7973LIBS=$ac_check_lib_save_LIBS
7974fi
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7976$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7977if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7978 gl_have_pthread=yes
7979 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7980 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7981fi
7982
7983 if test -z "$gl_have_pthread"; then
7984 # For FreeBSD 4.
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7986$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7987if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989else
7990 ac_check_lib_save_LIBS=$LIBS
7991LIBS="-lc_r $LIBS"
7992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993/* end confdefs.h. */
7994
7995/* Override any GCC internal prototype to avoid an error.
7996 Use char because int might match the return type of a GCC
7997 builtin and then its argument prototype would still apply. */
7998#ifdef __cplusplus
7999extern "C"
8000#endif
8001char pthread_kill ();
8002int
8003main ()
8004{
8005return pthread_kill ();
8006 ;
8007 return 0;
8008}
8009_ACEOF
8010if ac_fn_c_try_link "$LINENO"; then :
8011 ac_cv_lib_c_r_pthread_kill=yes
8012else
8013 ac_cv_lib_c_r_pthread_kill=no
8014fi
8015rm -f core conftest.err conftest.$ac_objext \
8016 conftest$ac_exeext conftest.$ac_ext
8017LIBS=$ac_check_lib_save_LIBS
8018fi
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8020$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8021if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8022 gl_have_pthread=yes
8023 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8024 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8025fi
8026
8027 fi
8028 fi
8029 if test -n "$gl_have_pthread"; then
8030 gl_threads_api=posix
8031
8032$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8033
8034 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8035 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8036
8037$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8038
8039 LIBTHREAD=
8040 LTLIBTHREAD=
8041 fi
8042 fi
8043 fi
8044 fi
8045 fi
8046 if test -z "$gl_have_pthread"; then
8047 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8048 gl_have_solaristhread=
8049 gl_save_LIBS="$LIBS"
8050 LIBS="$LIBS -lthread"
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052/* end confdefs.h. */
8053
8054#include <thread.h>
8055#include <synch.h>
8056
8057int
8058main ()
8059{
8060thr_self();
8061 ;
8062 return 0;
8063}
8064_ACEOF
8065if ac_fn_c_try_link "$LINENO"; then :
8066 gl_have_solaristhread=yes
8067fi
8068rm -f core conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8070 LIBS="$gl_save_LIBS"
8071 if test -n "$gl_have_solaristhread"; then
8072 gl_threads_api=solaris
8073 LIBTHREAD=-lthread
8074 LTLIBTHREAD=-lthread
8075 LIBMULTITHREAD="$LIBTHREAD"
8076 LTLIBMULTITHREAD="$LTLIBTHREAD"
8077
8078$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8079
8080 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8081
8082$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8083
8084 LIBTHREAD=
8085 LTLIBTHREAD=
8086 fi
8087 fi
8088 fi
8089 fi
8090 if test "$gl_use_threads" = pth; then
8091 gl_save_CPPFLAGS="$CPPFLAGS"
8092
8093
8094
8095
8096
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8098$as_echo_n "checking how to link with libpth... " >&6; }
8099if ${ac_cv_libpth_libs+:} false; then :
8100 $as_echo_n "(cached) " >&6
8101else
8102
8103
8104
8105
8106
8107
8108
8109
8110 use_additional=yes
8111
8112 acl_save_prefix="$prefix"
8113 prefix="$acl_final_prefix"
8114 acl_save_exec_prefix="$exec_prefix"
8115 exec_prefix="$acl_final_exec_prefix"
8116
8117 eval additional_includedir=\"$includedir\"
8118 eval additional_libdir=\"$libdir\"
8119
8120 exec_prefix="$acl_save_exec_prefix"
8121 prefix="$acl_save_prefix"
8122
8123
8124# Check whether --with-libpth-prefix was given.
8125if test "${with_libpth_prefix+set}" = set; then :
8126 withval=$with_libpth_prefix;
8127 if test "X$withval" = "Xno"; then
8128 use_additional=no
8129 else
8130 if test "X$withval" = "X"; then
8131
8132 acl_save_prefix="$prefix"
8133 prefix="$acl_final_prefix"
8134 acl_save_exec_prefix="$exec_prefix"
8135 exec_prefix="$acl_final_exec_prefix"
8136
8137 eval additional_includedir=\"$includedir\"
8138 eval additional_libdir=\"$libdir\"
8139
8140 exec_prefix="$acl_save_exec_prefix"
8141 prefix="$acl_save_prefix"
8142
8143 else
8144 additional_includedir="$withval/include"
8145 additional_libdir="$withval/$acl_libdirstem"
8146 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8147 && ! test -d "$withval/$acl_libdirstem"; then
8148 additional_libdir="$withval/$acl_libdirstem2"
8149 fi
8150 fi
8151 fi
8152
8153fi
8154
8155 LIBPTH=
8156 LTLIBPTH=
8157 INCPTH=
8158 LIBPTH_PREFIX=
8159 HAVE_LIBPTH=
8160 rpathdirs=
8161 ltrpathdirs=
8162 names_already_handled=
8163 names_next_round='pth '
8164 while test -n "$names_next_round"; do
8165 names_this_round="$names_next_round"
8166 names_next_round=
8167 for name in $names_this_round; do
8168 already_handled=
8169 for n in $names_already_handled; do
8170 if test "$n" = "$name"; then
8171 already_handled=yes
8172 break
8173 fi
8174 done
8175 if test -z "$already_handled"; then
8176 names_already_handled="$names_already_handled $name"
8177 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8178 eval value=\"\$HAVE_LIB$uppername\"
8179 if test -n "$value"; then
8180 if test "$value" = yes; then
8181 eval value=\"\$LIB$uppername\"
8182 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8183 eval value=\"\$LTLIB$uppername\"
8184 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8185 else
8186 :
8187 fi
8188 else
8189 found_dir=
8190 found_la=
8191 found_so=
8192 found_a=
8193 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8194 if test -n "$acl_shlibext"; then
8195 shrext=".$acl_shlibext" # typically: shrext=.so
8196 else
8197 shrext=
8198 fi
8199 if test $use_additional = yes; then
8200 dir="$additional_libdir"
8201 if test -n "$acl_shlibext"; then
8202 if test -f "$dir/$libname$shrext"; then
8203 found_dir="$dir"
8204 found_so="$dir/$libname$shrext"
8205 else
8206 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8207 ver=`(cd "$dir" && \
8208 for f in "$libname$shrext".*; do echo "$f"; done \
8209 | sed -e "s,^$libname$shrext\\\\.,," \
8210 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8211 | sed 1q ) 2>/dev/null`
8212 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8213 found_dir="$dir"
8214 found_so="$dir/$libname$shrext.$ver"
8215 fi
8216 else
8217 eval library_names=\"$acl_library_names_spec\"
8218 for f in $library_names; do
8219 if test -f "$dir/$f"; then
8220 found_dir="$dir"
8221 found_so="$dir/$f"
8222 break
8223 fi
8224 done
8225 fi
8226 fi
8227 fi
8228 if test "X$found_dir" = "X"; then
8229 if test -f "$dir/$libname.$acl_libext"; then
8230 found_dir="$dir"
8231 found_a="$dir/$libname.$acl_libext"
8232 fi
8233 fi
8234 if test "X$found_dir" != "X"; then
8235 if test -f "$dir/$libname.la"; then
8236 found_la="$dir/$libname.la"
8237 fi
8238 fi
8239 fi
8240 if test "X$found_dir" = "X"; then
8241 for x in $LDFLAGS $LTLIBPTH; do
8242
8243 acl_save_prefix="$prefix"
8244 prefix="$acl_final_prefix"
8245 acl_save_exec_prefix="$exec_prefix"
8246 exec_prefix="$acl_final_exec_prefix"
8247 eval x=\"$x\"
8248 exec_prefix="$acl_save_exec_prefix"
8249 prefix="$acl_save_prefix"
8250
8251 case "$x" in
8252 -L*)
8253 dir=`echo "X$x" | sed -e 's/^X-L//'`
8254 if test -n "$acl_shlibext"; then
8255 if test -f "$dir/$libname$shrext"; then
8256 found_dir="$dir"
8257 found_so="$dir/$libname$shrext"
8258 else
8259 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8260 ver=`(cd "$dir" && \
8261 for f in "$libname$shrext".*; do echo "$f"; done \
8262 | sed -e "s,^$libname$shrext\\\\.,," \
8263 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8264 | sed 1q ) 2>/dev/null`
8265 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8266 found_dir="$dir"
8267 found_so="$dir/$libname$shrext.$ver"
8268 fi
8269 else
8270 eval library_names=\"$acl_library_names_spec\"
8271 for f in $library_names; do
8272 if test -f "$dir/$f"; then
8273 found_dir="$dir"
8274 found_so="$dir/$f"
8275 break
8276 fi
8277 done
8278 fi
8279 fi
8280 fi
8281 if test "X$found_dir" = "X"; then
8282 if test -f "$dir/$libname.$acl_libext"; then
8283 found_dir="$dir"
8284 found_a="$dir/$libname.$acl_libext"
8285 fi
8286 fi
8287 if test "X$found_dir" != "X"; then
8288 if test -f "$dir/$libname.la"; then
8289 found_la="$dir/$libname.la"
8290 fi
8291 fi
8292 ;;
8293 esac
8294 if test "X$found_dir" != "X"; then
8295 break
8296 fi
8297 done
8298 fi
8299 if test "X$found_dir" != "X"; then
8300 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8301 if test "X$found_so" != "X"; then
8302 if test "$enable_rpath" = no \
8303 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8304 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8305 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8306 else
8307 haveit=
8308 for x in $ltrpathdirs; do
8309 if test "X$x" = "X$found_dir"; then
8310 haveit=yes
8311 break
8312 fi
8313 done
8314 if test -z "$haveit"; then
8315 ltrpathdirs="$ltrpathdirs $found_dir"
8316 fi
8317 if test "$acl_hardcode_direct" = yes; then
8318 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8319 else
8320 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8321 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8322 haveit=
8323 for x in $rpathdirs; do
8324 if test "X$x" = "X$found_dir"; then
8325 haveit=yes
8326 break
8327 fi
8328 done
8329 if test -z "$haveit"; then
8330 rpathdirs="$rpathdirs $found_dir"
8331 fi
8332 else
8333 haveit=
8334 for x in $LDFLAGS $LIBPTH; do
8335
8336 acl_save_prefix="$prefix"
8337 prefix="$acl_final_prefix"
8338 acl_save_exec_prefix="$exec_prefix"
8339 exec_prefix="$acl_final_exec_prefix"
8340 eval x=\"$x\"
8341 exec_prefix="$acl_save_exec_prefix"
8342 prefix="$acl_save_prefix"
8343
8344 if test "X$x" = "X-L$found_dir"; then
8345 haveit=yes
8346 break
8347 fi
8348 done
8349 if test -z "$haveit"; then
8350 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8351 fi
8352 if test "$acl_hardcode_minus_L" != no; then
8353 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8354 else
8355 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8356 fi
8357 fi
8358 fi
8359 fi
8360 else
8361 if test "X$found_a" != "X"; then
8362 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8363 else
8364 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8365 fi
8366 fi
8367 additional_includedir=
8368 case "$found_dir" in
8369 */$acl_libdirstem | */$acl_libdirstem/)
8370 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8371 if test "$name" = 'pth'; then
8372 LIBPTH_PREFIX="$basedir"
8373 fi
8374 additional_includedir="$basedir/include"
8375 ;;
8376 */$acl_libdirstem2 | */$acl_libdirstem2/)
8377 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8378 if test "$name" = 'pth'; then
8379 LIBPTH_PREFIX="$basedir"
8380 fi
8381 additional_includedir="$basedir/include"
8382 ;;
8383 esac
8384 if test "X$additional_includedir" != "X"; then
8385 if test "X$additional_includedir" != "X/usr/include"; then
8386 haveit=
8387 if test "X$additional_includedir" = "X/usr/local/include"; then
8388 if test -n "$GCC"; then
8389 case $host_os in
8390 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8391 esac
8392 fi
8393 fi
8394 if test -z "$haveit"; then
8395 for x in $CPPFLAGS $INCPTH; do
8396
8397 acl_save_prefix="$prefix"
8398 prefix="$acl_final_prefix"
8399 acl_save_exec_prefix="$exec_prefix"
8400 exec_prefix="$acl_final_exec_prefix"
8401 eval x=\"$x\"
8402 exec_prefix="$acl_save_exec_prefix"
8403 prefix="$acl_save_prefix"
8404
8405 if test "X$x" = "X-I$additional_includedir"; then
8406 haveit=yes
8407 break
8408 fi
8409 done
8410 if test -z "$haveit"; then
8411 if test -d "$additional_includedir"; then
8412 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8413 fi
8414 fi
8415 fi
8416 fi
8417 fi
8418 if test -n "$found_la"; then
8419 save_libdir="$libdir"
8420 case "$found_la" in
8421 */* | *\\*) . "$found_la" ;;
8422 *) . "./$found_la" ;;
8423 esac
8424 libdir="$save_libdir"
8425 for dep in $dependency_libs; do
8426 case "$dep" in
8427 -L*)
8428 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8429 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8430 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8431 haveit=
8432 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8433 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8434 if test -n "$GCC"; then
8435 case $host_os in
8436 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8437 esac
8438 fi
8439 fi
8440 if test -z "$haveit"; then
8441 haveit=
8442 for x in $LDFLAGS $LIBPTH; do
8443
8444 acl_save_prefix="$prefix"
8445 prefix="$acl_final_prefix"
8446 acl_save_exec_prefix="$exec_prefix"
8447 exec_prefix="$acl_final_exec_prefix"
8448 eval x=\"$x\"
8449 exec_prefix="$acl_save_exec_prefix"
8450 prefix="$acl_save_prefix"
8451
8452 if test "X$x" = "X-L$additional_libdir"; then
8453 haveit=yes
8454 break
8455 fi
8456 done
8457 if test -z "$haveit"; then
8458 if test -d "$additional_libdir"; then
8459 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8460 fi
8461 fi
8462 haveit=
8463 for x in $LDFLAGS $LTLIBPTH; do
8464
8465 acl_save_prefix="$prefix"
8466 prefix="$acl_final_prefix"
8467 acl_save_exec_prefix="$exec_prefix"
8468 exec_prefix="$acl_final_exec_prefix"
8469 eval x=\"$x\"
8470 exec_prefix="$acl_save_exec_prefix"
8471 prefix="$acl_save_prefix"
8472
8473 if test "X$x" = "X-L$additional_libdir"; then
8474 haveit=yes
8475 break
8476 fi
8477 done
8478 if test -z "$haveit"; then
8479 if test -d "$additional_libdir"; then
8480 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8481 fi
8482 fi
8483 fi
8484 fi
8485 ;;
8486 -R*)
8487 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8488 if test "$enable_rpath" != no; then
8489 haveit=
8490 for x in $rpathdirs; do
8491 if test "X$x" = "X$dir"; then
8492 haveit=yes
8493 break
8494 fi
8495 done
8496 if test -z "$haveit"; then
8497 rpathdirs="$rpathdirs $dir"
8498 fi
8499 haveit=
8500 for x in $ltrpathdirs; do
8501 if test "X$x" = "X$dir"; then
8502 haveit=yes
8503 break
8504 fi
8505 done
8506 if test -z "$haveit"; then
8507 ltrpathdirs="$ltrpathdirs $dir"
8508 fi
8509 fi
8510 ;;
8511 -l*)
8512 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8513 ;;
8514 *.la)
8515 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8516 ;;
8517 *)
8518 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8519 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8520 ;;
8521 esac
8522 done
8523 fi
8524 else
8525 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8526 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8527 fi
8528 fi
8529 fi
8530 done
8531 done
8532 if test "X$rpathdirs" != "X"; then
8533 if test -n "$acl_hardcode_libdir_separator"; then
8534 alldirs=
8535 for found_dir in $rpathdirs; do
8536 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8537 done
8538 acl_save_libdir="$libdir"
8539 libdir="$alldirs"
8540 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8541 libdir="$acl_save_libdir"
8542 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8543 else
8544 for found_dir in $rpathdirs; do
8545 acl_save_libdir="$libdir"
8546 libdir="$found_dir"
8547 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8548 libdir="$acl_save_libdir"
8549 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8550 done
8551 fi
8552 fi
8553 if test "X$ltrpathdirs" != "X"; then
8554 for found_dir in $ltrpathdirs; do
8555 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8556 done
8557 fi
8558
8559
8560
8561
8562
8563
8564 ac_cv_libpth_libs="$LIBPTH"
8565 ac_cv_libpth_ltlibs="$LTLIBPTH"
8566 ac_cv_libpth_cppflags="$INCPTH"
8567 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8568
8569fi
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8571$as_echo "$ac_cv_libpth_libs" >&6; }
8572 LIBPTH="$ac_cv_libpth_libs"
8573 LTLIBPTH="$ac_cv_libpth_ltlibs"
8574 INCPTH="$ac_cv_libpth_cppflags"
8575 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8576
8577 for element in $INCPTH; do
8578 haveit=
8579 for x in $CPPFLAGS; do
8580
8581 acl_save_prefix="$prefix"
8582 prefix="$acl_final_prefix"
8583 acl_save_exec_prefix="$exec_prefix"
8584 exec_prefix="$acl_final_exec_prefix"
8585 eval x=\"$x\"
8586 exec_prefix="$acl_save_exec_prefix"
8587 prefix="$acl_save_prefix"
8588
8589 if test "X$x" = "X$element"; then
8590 haveit=yes
8591 break
8592 fi
8593 done
8594 if test -z "$haveit"; then
8595 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8596 fi
8597 done
8598
8599
8600
8601
8602 HAVE_LIBPTH=yes
8603
8604
8605
8606 gl_have_pth=
8607 gl_save_LIBS="$LIBS"
8608 LIBS="$LIBS $LIBPTH"
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610/* end confdefs.h. */
8611#include <pth.h>
8612int
8613main ()
8614{
8615pth_self();
8616 ;
8617 return 0;
8618}
8619_ACEOF
8620if ac_fn_c_try_link "$LINENO"; then :
8621 gl_have_pth=yes
8622fi
8623rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8625 LIBS="$gl_save_LIBS"
8626 if test -n "$gl_have_pth"; then
8627 gl_threads_api=pth
8628 LIBTHREAD="$LIBPTH"
8629 LTLIBTHREAD="$LTLIBPTH"
8630 LIBMULTITHREAD="$LIBTHREAD"
8631 LTLIBMULTITHREAD="$LTLIBTHREAD"
8632
8633$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8634
8635 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8636 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8637
8638$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8639
8640 LIBTHREAD=
8641 LTLIBTHREAD=
8642 fi
8643 fi
8644 else
8645 CPPFLAGS="$gl_save_CPPFLAGS"
8646 fi
8647 fi
8648 if test -z "$gl_have_pthread"; then
8649 case "$gl_use_threads" in
8650 yes | windows | win32) # The 'win32' is for backward compatibility.
8651 if { case "$host_os" in
8652 mingw*) true;;
8653 *) false;;
8654 esac
8655 }; then
8656 gl_threads_api=windows
8657
8658$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8659
8660 fi
8661 ;;
8662 esac
8663 fi
8664 fi
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8666$as_echo_n "checking for multithread API to use... " >&6; }
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8668$as_echo "$gl_threads_api" >&6; }
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680 if test "$gl_threads_api" = posix; then
8681 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8682 # pthread_rwlock_* functions.
8683 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8684"
8685if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8686
8687$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8688
8689fi
8690
8691 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693/* end confdefs.h. */
8694
8695 #include <pthread.h>
8696int
8697main ()
8698{
8699
8700#if __FreeBSD__ == 4
8701error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8702#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8703 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8704error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8705#else
8706int x = (int)PTHREAD_MUTEX_RECURSIVE;
8707return !x;
8708#endif
8709
8710 ;
8711 return 0;
8712}
8713_ACEOF
8714if ac_fn_c_try_compile "$LINENO"; then :
8715
8716$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8717
8718fi
8719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 fi
8721 :
8722
8723
8724
8725
8726
8727
8728
8729
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008730
8731
8732
8733
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008734 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008735
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008736 acl_save_prefix="$prefix"
8737 prefix="$acl_final_prefix"
8738 acl_save_exec_prefix="$exec_prefix"
8739 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008740
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008741 eval additional_includedir=\"$includedir\"
8742 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008743
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008744 exec_prefix="$acl_save_exec_prefix"
8745 prefix="$acl_save_prefix"
8746
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008747
Theodore Ts'oe1052142006-10-21 21:46:47 -04008748# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008749if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008750 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008751 if test "X$withval" = "Xno"; then
8752 use_additional=no
8753 else
8754 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008755
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008756 acl_save_prefix="$prefix"
8757 prefix="$acl_final_prefix"
8758 acl_save_exec_prefix="$exec_prefix"
8759 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008760
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008761 eval additional_includedir=\"$includedir\"
8762 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008763
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008764 exec_prefix="$acl_save_exec_prefix"
8765 prefix="$acl_save_prefix"
8766
8767 else
8768 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008769 additional_libdir="$withval/$acl_libdirstem"
8770 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8771 && ! test -d "$withval/$acl_libdirstem"; then
8772 additional_libdir="$withval/$acl_libdirstem2"
8773 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008774 fi
8775 fi
8776
Theodore Ts'oe1052142006-10-21 21:46:47 -04008777fi
8778
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008779 LIBICONV=
8780 LTLIBICONV=
8781 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008782 LIBICONV_PREFIX=
8783 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008784 rpathdirs=
8785 ltrpathdirs=
8786 names_already_handled=
8787 names_next_round='iconv '
8788 while test -n "$names_next_round"; do
8789 names_this_round="$names_next_round"
8790 names_next_round=
8791 for name in $names_this_round; do
8792 already_handled=
8793 for n in $names_already_handled; do
8794 if test "$n" = "$name"; then
8795 already_handled=yes
8796 break
8797 fi
8798 done
8799 if test -z "$already_handled"; then
8800 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008801 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008802 eval value=\"\$HAVE_LIB$uppername\"
8803 if test -n "$value"; then
8804 if test "$value" = yes; then
8805 eval value=\"\$LIB$uppername\"
8806 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8807 eval value=\"\$LTLIB$uppername\"
8808 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8809 else
8810 :
8811 fi
8812 else
8813 found_dir=
8814 found_la=
8815 found_so=
8816 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008817 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8818 if test -n "$acl_shlibext"; then
8819 shrext=".$acl_shlibext" # typically: shrext=.so
8820 else
8821 shrext=
8822 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008823 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008824 dir="$additional_libdir"
8825 if test -n "$acl_shlibext"; then
8826 if test -f "$dir/$libname$shrext"; then
8827 found_dir="$dir"
8828 found_so="$dir/$libname$shrext"
8829 else
8830 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8831 ver=`(cd "$dir" && \
8832 for f in "$libname$shrext".*; do echo "$f"; done \
8833 | sed -e "s,^$libname$shrext\\\\.,," \
8834 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8835 | sed 1q ) 2>/dev/null`
8836 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8837 found_dir="$dir"
8838 found_so="$dir/$libname$shrext.$ver"
8839 fi
8840 else
8841 eval library_names=\"$acl_library_names_spec\"
8842 for f in $library_names; do
8843 if test -f "$dir/$f"; then
8844 found_dir="$dir"
8845 found_so="$dir/$f"
8846 break
8847 fi
8848 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008849 fi
8850 fi
8851 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008852 if test "X$found_dir" = "X"; then
8853 if test -f "$dir/$libname.$acl_libext"; then
8854 found_dir="$dir"
8855 found_a="$dir/$libname.$acl_libext"
8856 fi
8857 fi
8858 if test "X$found_dir" != "X"; then
8859 if test -f "$dir/$libname.la"; then
8860 found_la="$dir/$libname.la"
8861 fi
8862 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008863 fi
8864 if test "X$found_dir" = "X"; then
8865 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008866
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008867 acl_save_prefix="$prefix"
8868 prefix="$acl_final_prefix"
8869 acl_save_exec_prefix="$exec_prefix"
8870 exec_prefix="$acl_final_exec_prefix"
8871 eval x=\"$x\"
8872 exec_prefix="$acl_save_exec_prefix"
8873 prefix="$acl_save_prefix"
8874
8875 case "$x" in
8876 -L*)
8877 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008878 if test -n "$acl_shlibext"; then
8879 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008880 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008881 found_so="$dir/$libname$shrext"
8882 else
8883 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8884 ver=`(cd "$dir" && \
8885 for f in "$libname$shrext".*; do echo "$f"; done \
8886 | sed -e "s,^$libname$shrext\\\\.,," \
8887 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8888 | sed 1q ) 2>/dev/null`
8889 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8890 found_dir="$dir"
8891 found_so="$dir/$libname$shrext.$ver"
8892 fi
8893 else
8894 eval library_names=\"$acl_library_names_spec\"
8895 for f in $library_names; do
8896 if test -f "$dir/$f"; then
8897 found_dir="$dir"
8898 found_so="$dir/$f"
8899 break
8900 fi
8901 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008902 fi
8903 fi
8904 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008905 if test "X$found_dir" = "X"; then
8906 if test -f "$dir/$libname.$acl_libext"; then
8907 found_dir="$dir"
8908 found_a="$dir/$libname.$acl_libext"
8909 fi
8910 fi
8911 if test "X$found_dir" != "X"; then
8912 if test -f "$dir/$libname.la"; then
8913 found_la="$dir/$libname.la"
8914 fi
8915 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008916 ;;
8917 esac
8918 if test "X$found_dir" != "X"; then
8919 break
8920 fi
8921 done
8922 fi
8923 if test "X$found_dir" != "X"; then
8924 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8925 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008926 if test "$enable_rpath" = no \
8927 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8928 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008929 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8930 else
8931 haveit=
8932 for x in $ltrpathdirs; do
8933 if test "X$x" = "X$found_dir"; then
8934 haveit=yes
8935 break
8936 fi
8937 done
8938 if test -z "$haveit"; then
8939 ltrpathdirs="$ltrpathdirs $found_dir"
8940 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008941 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8943 else
Theodore Ts'o93613952014-07-03 23:44:13 -04008944 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008945 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8946 haveit=
8947 for x in $rpathdirs; do
8948 if test "X$x" = "X$found_dir"; then
8949 haveit=yes
8950 break
8951 fi
8952 done
8953 if test -z "$haveit"; then
8954 rpathdirs="$rpathdirs $found_dir"
8955 fi
8956 else
8957 haveit=
8958 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008959
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008960 acl_save_prefix="$prefix"
8961 prefix="$acl_final_prefix"
8962 acl_save_exec_prefix="$exec_prefix"
8963 exec_prefix="$acl_final_exec_prefix"
8964 eval x=\"$x\"
8965 exec_prefix="$acl_save_exec_prefix"
8966 prefix="$acl_save_prefix"
8967
8968 if test "X$x" = "X-L$found_dir"; then
8969 haveit=yes
8970 break
8971 fi
8972 done
8973 if test -z "$haveit"; then
8974 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8975 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008976 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008977 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8978 else
8979 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8980 fi
8981 fi
8982 fi
8983 fi
8984 else
8985 if test "X$found_a" != "X"; then
8986 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8987 else
8988 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8989 fi
8990 fi
8991 additional_includedir=
8992 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04008993 */$acl_libdirstem | */$acl_libdirstem/)
8994 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8995 if test "$name" = 'iconv'; then
8996 LIBICONV_PREFIX="$basedir"
8997 fi
8998 additional_includedir="$basedir/include"
8999 ;;
9000 */$acl_libdirstem2 | */$acl_libdirstem2/)
9001 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9002 if test "$name" = 'iconv'; then
9003 LIBICONV_PREFIX="$basedir"
9004 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009005 additional_includedir="$basedir/include"
9006 ;;
9007 esac
9008 if test "X$additional_includedir" != "X"; then
9009 if test "X$additional_includedir" != "X/usr/include"; then
9010 haveit=
9011 if test "X$additional_includedir" = "X/usr/local/include"; then
9012 if test -n "$GCC"; then
9013 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009014 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009015 esac
9016 fi
9017 fi
9018 if test -z "$haveit"; then
9019 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009020
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009021 acl_save_prefix="$prefix"
9022 prefix="$acl_final_prefix"
9023 acl_save_exec_prefix="$exec_prefix"
9024 exec_prefix="$acl_final_exec_prefix"
9025 eval x=\"$x\"
9026 exec_prefix="$acl_save_exec_prefix"
9027 prefix="$acl_save_prefix"
9028
9029 if test "X$x" = "X-I$additional_includedir"; then
9030 haveit=yes
9031 break
9032 fi
9033 done
9034 if test -z "$haveit"; then
9035 if test -d "$additional_includedir"; then
9036 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9037 fi
9038 fi
9039 fi
9040 fi
9041 fi
9042 if test -n "$found_la"; then
9043 save_libdir="$libdir"
9044 case "$found_la" in
9045 */* | *\\*) . "$found_la" ;;
9046 *) . "./$found_la" ;;
9047 esac
9048 libdir="$save_libdir"
9049 for dep in $dependency_libs; do
9050 case "$dep" in
9051 -L*)
9052 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009053 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9054 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009055 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009056 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9057 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009058 if test -n "$GCC"; then
9059 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009060 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009061 esac
9062 fi
9063 fi
9064 if test -z "$haveit"; then
9065 haveit=
9066 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009067
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009068 acl_save_prefix="$prefix"
9069 prefix="$acl_final_prefix"
9070 acl_save_exec_prefix="$exec_prefix"
9071 exec_prefix="$acl_final_exec_prefix"
9072 eval x=\"$x\"
9073 exec_prefix="$acl_save_exec_prefix"
9074 prefix="$acl_save_prefix"
9075
9076 if test "X$x" = "X-L$additional_libdir"; then
9077 haveit=yes
9078 break
9079 fi
9080 done
9081 if test -z "$haveit"; then
9082 if test -d "$additional_libdir"; then
9083 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9084 fi
9085 fi
9086 haveit=
9087 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009088
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009089 acl_save_prefix="$prefix"
9090 prefix="$acl_final_prefix"
9091 acl_save_exec_prefix="$exec_prefix"
9092 exec_prefix="$acl_final_exec_prefix"
9093 eval x=\"$x\"
9094 exec_prefix="$acl_save_exec_prefix"
9095 prefix="$acl_save_prefix"
9096
9097 if test "X$x" = "X-L$additional_libdir"; then
9098 haveit=yes
9099 break
9100 fi
9101 done
9102 if test -z "$haveit"; then
9103 if test -d "$additional_libdir"; then
9104 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9105 fi
9106 fi
9107 fi
9108 fi
9109 ;;
9110 -R*)
9111 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9112 if test "$enable_rpath" != no; then
9113 haveit=
9114 for x in $rpathdirs; do
9115 if test "X$x" = "X$dir"; then
9116 haveit=yes
9117 break
9118 fi
9119 done
9120 if test -z "$haveit"; then
9121 rpathdirs="$rpathdirs $dir"
9122 fi
9123 haveit=
9124 for x in $ltrpathdirs; do
9125 if test "X$x" = "X$dir"; then
9126 haveit=yes
9127 break
9128 fi
9129 done
9130 if test -z "$haveit"; then
9131 ltrpathdirs="$ltrpathdirs $dir"
9132 fi
9133 fi
9134 ;;
9135 -l*)
9136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9137 ;;
9138 *.la)
9139 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9140 ;;
9141 *)
9142 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9143 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9144 ;;
9145 esac
9146 done
9147 fi
9148 else
9149 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9150 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9151 fi
9152 fi
9153 fi
9154 done
9155 done
9156 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009157 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009158 alldirs=
9159 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009160 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009161 done
9162 acl_save_libdir="$libdir"
9163 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009164 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009165 libdir="$acl_save_libdir"
9166 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9167 else
9168 for found_dir in $rpathdirs; do
9169 acl_save_libdir="$libdir"
9170 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009171 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009172 libdir="$acl_save_libdir"
9173 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9174 done
9175 fi
9176 fi
9177 if test "X$ltrpathdirs" != "X"; then
9178 for found_dir in $ltrpathdirs; do
9179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9180 done
9181 fi
9182
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009183
9184
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009185
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009186
9187
9188
9189
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009190
9191
9192
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009193
9194 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009195
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009196 for element in $INCICONV; do
9197 haveit=
9198 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009199
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009200 acl_save_prefix="$prefix"
9201 prefix="$acl_final_prefix"
9202 acl_save_exec_prefix="$exec_prefix"
9203 exec_prefix="$acl_final_exec_prefix"
9204 eval x=\"$x\"
9205 exec_prefix="$acl_save_exec_prefix"
9206 prefix="$acl_save_prefix"
9207
9208 if test "X$x" = "X$element"; then
9209 haveit=yes
9210 break
9211 fi
9212 done
9213 if test -z "$haveit"; then
9214 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9215 fi
9216 done
9217
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009218
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009220$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009221if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009222 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009223else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009224
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009225 am_cv_func_iconv="no, consider installing GNU libiconv"
9226 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009228/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009229
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009230#include <stdlib.h>
9231#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009233int
9234main ()
9235{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009236iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009237 iconv(cd,NULL,NULL,NULL,NULL);
9238 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009239 ;
9240 return 0;
9241}
9242_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009243if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009244 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009245fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009246rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009248 if test "$am_cv_func_iconv" != yes; then
9249 am_save_LIBS="$LIBS"
9250 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009252/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009253
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009254#include <stdlib.h>
9255#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009256
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009257int
9258main ()
9259{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009260iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009261 iconv(cd,NULL,NULL,NULL,NULL);
9262 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009263 ;
9264 return 0;
9265}
9266_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009267if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009268 am_cv_lib_iconv=yes
9269 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 LIBS="$am_save_LIBS"
9274 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009275
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009276fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009278$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009279 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9281$as_echo_n "checking for working iconv... " >&6; }
9282if ${am_cv_func_iconv_works+:} false; then :
9283 $as_echo_n "(cached) " >&6
9284else
9285
9286 am_save_LIBS="$LIBS"
9287 if test $am_cv_lib_iconv = yes; then
9288 LIBS="$LIBS $LIBICONV"
9289 fi
9290 if test "$cross_compiling" = yes; then :
9291
9292 case "$host_os" in
9293 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9294 *) am_cv_func_iconv_works="guessing yes" ;;
9295 esac
9296
9297else
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299/* end confdefs.h. */
9300
9301#include <iconv.h>
9302#include <string.h>
9303int main ()
9304{
9305 int result = 0;
9306 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9307 returns. */
9308 {
9309 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9310 if (cd_utf8_to_88591 != (iconv_t)(-1))
9311 {
9312 static const char input[] = "\342\202\254"; /* EURO SIGN */
9313 char buf[10];
9314 const char *inptr = input;
9315 size_t inbytesleft = strlen (input);
9316 char *outptr = buf;
9317 size_t outbytesleft = sizeof (buf);
9318 size_t res = iconv (cd_utf8_to_88591,
9319 (char **) &inptr, &inbytesleft,
9320 &outptr, &outbytesleft);
9321 if (res == 0)
9322 result |= 1;
9323 iconv_close (cd_utf8_to_88591);
9324 }
9325 }
9326 /* Test against Solaris 10 bug: Failures are not distinguishable from
9327 successful returns. */
9328 {
9329 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9330 if (cd_ascii_to_88591 != (iconv_t)(-1))
9331 {
9332 static const char input[] = "\263";
9333 char buf[10];
9334 const char *inptr = input;
9335 size_t inbytesleft = strlen (input);
9336 char *outptr = buf;
9337 size_t outbytesleft = sizeof (buf);
9338 size_t res = iconv (cd_ascii_to_88591,
9339 (char **) &inptr, &inbytesleft,
9340 &outptr, &outbytesleft);
9341 if (res == 0)
9342 result |= 2;
9343 iconv_close (cd_ascii_to_88591);
9344 }
9345 }
9346 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9347 {
9348 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9349 if (cd_88591_to_utf8 != (iconv_t)(-1))
9350 {
9351 static const char input[] = "\304";
9352 static char buf[2] = { (char)0xDE, (char)0xAD };
9353 const char *inptr = input;
9354 size_t inbytesleft = 1;
9355 char *outptr = buf;
9356 size_t outbytesleft = 1;
9357 size_t res = iconv (cd_88591_to_utf8,
9358 (char **) &inptr, &inbytesleft,
9359 &outptr, &outbytesleft);
9360 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9361 result |= 4;
9362 iconv_close (cd_88591_to_utf8);
9363 }
9364 }
9365#if 0 /* This bug could be worked around by the caller. */
9366 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9367 {
9368 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9369 if (cd_88591_to_utf8 != (iconv_t)(-1))
9370 {
9371 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9372 char buf[50];
9373 const char *inptr = input;
9374 size_t inbytesleft = strlen (input);
9375 char *outptr = buf;
9376 size_t outbytesleft = sizeof (buf);
9377 size_t res = iconv (cd_88591_to_utf8,
9378 (char **) &inptr, &inbytesleft,
9379 &outptr, &outbytesleft);
9380 if ((int)res > 0)
9381 result |= 8;
9382 iconv_close (cd_88591_to_utf8);
9383 }
9384 }
9385#endif
9386 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9387 provided. */
9388 if (/* Try standardized names. */
9389 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9390 /* Try IRIX, OSF/1 names. */
9391 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9392 /* Try AIX names. */
9393 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9394 /* Try HP-UX names. */
9395 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9396 result |= 16;
9397 return result;
9398}
9399_ACEOF
9400if ac_fn_c_try_run "$LINENO"; then :
9401 am_cv_func_iconv_works=yes
9402else
9403 am_cv_func_iconv_works=no
9404fi
9405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9406 conftest.$ac_objext conftest.beam conftest.$ac_ext
9407fi
9408
9409 LIBS="$am_save_LIBS"
9410
9411fi
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9413$as_echo "$am_cv_func_iconv_works" >&6; }
9414 case "$am_cv_func_iconv_works" in
9415 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9416 *) am_func_iconv=yes ;;
9417 esac
9418 else
9419 am_func_iconv=no am_cv_lib_iconv=no
9420 fi
9421 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009422
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009423$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009424
9425 fi
9426 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009428$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009430$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009431 else
9432 CPPFLAGS="$am_save_CPPFLAGS"
9433 LIBICONV=
9434 LTLIBICONV=
9435 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009436
9437
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009438
9439 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009441$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009442 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009443 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009444else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009445
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009447/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009448
9449#include <stdlib.h>
9450#include <iconv.h>
9451extern
9452#ifdef __cplusplus
9453"C"
9454#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009455#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009456size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9457#else
9458size_t iconv();
9459#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009460
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009461int
9462main ()
9463{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009464
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009465 ;
9466 return 0;
9467}
9468_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009469if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009470 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009471else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009472 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009473fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009475 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 +00009476fi
9477
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009478 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009479 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9480 $am_cv_proto_iconv" >&5
9481$as_echo "
9482 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009483
9484cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009485#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009486_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009487
Theodore Ts'o93613952014-07-03 23:44:13 -04009488
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009489 fi
9490
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009491
Theodore Ts'o93613952014-07-03 23:44:13 -04009492
9493
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009495/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009496int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009497int
9498main ()
9499{
Theodore Ts'o93613952014-07-03 23:44:13 -04009500
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009501 ;
9502 return 0;
9503}
9504_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009505if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009506
9507$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9508
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009509fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009510rm -f core conftest.err conftest.$ac_objext \
9511 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009512
Theodore Ts'o93613952014-07-03 23:44:13 -04009513 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9514do :
9515 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9516ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9517if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9518 cat >>confdefs.h <<_ACEOF
9519#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009520_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009521
9522fi
9523
9524done
9525
9526 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9527 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9528 argz_stringify argz_next __fsetlocking
9529do :
9530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9531ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9532if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9533 cat >>confdefs.h <<_ACEOF
9534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9535_ACEOF
9536
9537fi
9538done
9539
9540
9541 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9542"
9543if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9544 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009545else
Theodore Ts'o93613952014-07-03 23:44:13 -04009546 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009547fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009548
9549cat >>confdefs.h <<_ACEOF
9550#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9551_ACEOF
9552ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9553"
9554if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9555 ac_have_decl=1
9556else
9557 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009558fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009559
Theodore Ts'o93613952014-07-03 23:44:13 -04009560cat >>confdefs.h <<_ACEOF
9561#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9562_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009563
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009564
Theodore Ts'o93613952014-07-03 23:44:13 -04009565
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009566
9567 for ac_prog in bison
9568do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009569 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009570set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009572$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009573if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009574 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009575else
9576 if test -n "$INTLBISON"; then
9577 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9578else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580for as_dir in $PATH
9581do
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009584 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -04009585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009586 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009588 break 2
9589 fi
9590done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009591 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009592IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009594fi
9595fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009596INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009597if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009599$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009600else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009602$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009603fi
9604
Theodore Ts'oe1052142006-10-21 21:46:47 -04009605
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009606 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009607done
9608
9609 if test -z "$INTLBISON"; then
9610 ac_verc_fail=yes
9611 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009613$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009614 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9615 case $ac_prog_version in
9616 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9617 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9618 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9619 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9620 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009622$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009623 fi
9624 if test $ac_verc_fail = yes; then
9625 INTLBISON=:
9626 fi
9627
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009628
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009629
Theodore Ts'o93613952014-07-03 23:44:13 -04009630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9631$as_echo_n "checking for long long int... " >&6; }
9632if ${ac_cv_type_long_long_int+:} false; then :
9633 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009634else
Theodore Ts'o93613952014-07-03 23:44:13 -04009635 ac_cv_type_long_long_int=yes
9636 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9637 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9638 if test $ac_cv_type_long_long_int = yes; then
9639 if test "$cross_compiling" = yes; then :
9640 :
9641else
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643/* end confdefs.h. */
9644#include <limits.h>
9645 #ifndef LLONG_MAX
9646 # define HALF \
9647 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9648 # define LLONG_MAX (HALF - 1 + HALF)
9649 #endif
9650int
9651main ()
9652{
9653long long int n = 1;
9654 int i;
9655 for (i = 0; ; i++)
9656 {
9657 long long int m = n << i;
9658 if (m >> i != n)
9659 return 1;
9660 if (LLONG_MAX / 2 < m)
9661 break;
9662 }
9663 return 0;
9664 ;
9665 return 0;
9666}
9667_ACEOF
9668if ac_fn_c_try_run "$LINENO"; then :
9669
9670else
9671 ac_cv_type_long_long_int=no
9672fi
9673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9674 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009675fi
9676
Theodore Ts'o93613952014-07-03 23:44:13 -04009677 fi
9678 fi
9679fi
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9681$as_echo "$ac_cv_type_long_long_int" >&6; }
9682 if test $ac_cv_type_long_long_int = yes; then
9683
9684$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9685
9686 fi
9687
9688
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9690$as_echo_n "checking for wchar_t... " >&6; }
9691if ${gt_cv_c_wchar_t+:} false; then :
9692 $as_echo_n "(cached) " >&6
9693else
9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695/* end confdefs.h. */
9696#include <stddef.h>
9697 wchar_t foo = (wchar_t)'\0';
9698int
9699main ()
9700{
9701
9702 ;
9703 return 0;
9704}
9705_ACEOF
9706if ac_fn_c_try_compile "$LINENO"; then :
9707 gt_cv_c_wchar_t=yes
9708else
9709 gt_cv_c_wchar_t=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712fi
9713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9714$as_echo "$gt_cv_c_wchar_t" >&6; }
9715 if test $gt_cv_c_wchar_t = yes; then
9716
9717$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9718
9719 fi
9720
9721
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9723$as_echo_n "checking for wint_t... " >&6; }
9724if ${gt_cv_c_wint_t+:} false; then :
9725 $as_echo_n "(cached) " >&6
9726else
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728/* end confdefs.h. */
9729
9730/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9731 <wchar.h>.
9732 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9733 before <wchar.h>. */
9734#include <stddef.h>
9735#include <stdio.h>
9736#include <time.h>
9737#include <wchar.h>
9738 wint_t foo = (wchar_t)'\0';
9739int
9740main ()
9741{
9742
9743 ;
9744 return 0;
9745}
9746_ACEOF
9747if ac_fn_c_try_compile "$LINENO"; then :
9748 gt_cv_c_wint_t=yes
9749else
9750 gt_cv_c_wint_t=no
9751fi
9752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9753fi
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9755$as_echo "$gt_cv_c_wint_t" >&6; }
9756 if test $gt_cv_c_wint_t = yes; then
9757
9758$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9759
9760 fi
9761
9762
9763
9764
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9766$as_echo_n "checking for intmax_t... " >&6; }
9767if ${gt_cv_c_intmax_t+:} false; then :
9768 $as_echo_n "(cached) " >&6
9769else
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771/* end confdefs.h. */
9772
9773#include <stddef.h>
9774#include <stdlib.h>
9775#if HAVE_STDINT_H_WITH_UINTMAX
9776#include <stdint.h>
9777#endif
9778#if HAVE_INTTYPES_H_WITH_UINTMAX
9779#include <inttypes.h>
9780#endif
9781
9782int
9783main ()
9784{
9785intmax_t x = -1;
9786 return !x;
9787 ;
9788 return 0;
9789}
9790_ACEOF
9791if ac_fn_c_try_compile "$LINENO"; then :
9792 gt_cv_c_intmax_t=yes
9793else
9794 gt_cv_c_intmax_t=no
9795fi
9796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797fi
9798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9799$as_echo "$gt_cv_c_intmax_t" >&6; }
9800 if test $gt_cv_c_intmax_t = yes; then
9801
9802$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9803
9804 fi
9805
9806
9807
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9809$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9810if ${gt_cv_func_printf_posix+:} false; then :
9811 $as_echo_n "(cached) " >&6
9812else
9813
9814 if test "$cross_compiling" = yes; then :
9815
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817/* end confdefs.h. */
9818
9819#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9820 notposix
9821#endif
9822
9823_ACEOF
9824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9825 $EGREP "notposix" >/dev/null 2>&1; then :
9826 gt_cv_func_printf_posix="guessing no"
9827else
9828 gt_cv_func_printf_posix="guessing yes"
9829fi
9830rm -f conftest*
9831
9832
9833else
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835/* end confdefs.h. */
9836
9837#include <stdio.h>
9838#include <string.h>
9839/* The string "%2$d %1$d", with dollar characters protected from the shell's
9840 dollar expansion (possibly an autoconf bug). */
9841static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9842static char buf[100];
9843int main ()
9844{
9845 sprintf (buf, format, 33, 55);
9846 return (strcmp (buf, "55 33") != 0);
9847}
9848_ACEOF
9849if ac_fn_c_try_run "$LINENO"; then :
9850 gt_cv_func_printf_posix=yes
9851else
9852 gt_cv_func_printf_posix=no
9853fi
9854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9855 conftest.$ac_objext conftest.beam conftest.$ac_ext
9856fi
9857
9858
9859fi
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9861$as_echo "$gt_cv_func_printf_posix" >&6; }
9862 case $gt_cv_func_printf_posix in
9863 *yes)
9864
9865$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9866
9867 ;;
9868 esac
9869
9870
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9872$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9873if ${ac_cv_gnu_library_2_1+:} false; then :
9874 $as_echo_n "(cached) " >&6
9875else
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877/* end confdefs.h. */
9878
9879#include <features.h>
9880#ifdef __GNU_LIBRARY__
9881 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9882 Lucky GNU user
9883 #endif
9884#endif
9885#ifdef __UCLIBC__
9886 Lucky user
9887#endif
9888
9889_ACEOF
9890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9891 $EGREP "Lucky" >/dev/null 2>&1; then :
9892 ac_cv_gnu_library_2_1=yes
9893else
9894 ac_cv_gnu_library_2_1=no
9895fi
9896rm -f conftest*
9897
9898
9899
9900fi
9901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9902$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9903
9904 GLIBC21="$ac_cv_gnu_library_2_1"
9905
9906
9907
9908 for ac_header in stdint.h
9909do :
9910 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9911if test "x$ac_cv_header_stdint_h" = xyes; then :
9912 cat >>confdefs.h <<_ACEOF
9913#define HAVE_STDINT_H 1
9914_ACEOF
9915
9916fi
9917
9918done
9919
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9921$as_echo_n "checking for SIZE_MAX... " >&6; }
9922if ${gl_cv_size_max+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924else
9925
9926 gl_cv_size_max=
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928/* end confdefs.h. */
9929
9930#include <limits.h>
9931#if HAVE_STDINT_H
9932#include <stdint.h>
9933#endif
9934#ifdef SIZE_MAX
9935Found it
9936#endif
9937
9938_ACEOF
9939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9940 $EGREP "Found it" >/dev/null 2>&1; then :
9941 gl_cv_size_max=yes
9942fi
9943rm -f conftest*
9944
9945 if test -z "$gl_cv_size_max"; then
9946 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9947#include <limits.h>"; then :
9948
9949else
9950 size_t_bits_minus_1=
9951fi
9952
9953 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9954
9955else
9956 fits_in_uint=
9957fi
9958
9959 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9960 if test $fits_in_uint = 1; then
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962/* end confdefs.h. */
9963#include <stddef.h>
9964 extern size_t foo;
9965 extern unsigned long foo;
9966
9967int
9968main ()
9969{
9970
9971 ;
9972 return 0;
9973}
9974_ACEOF
9975if ac_fn_c_try_compile "$LINENO"; then :
9976 fits_in_uint=0
9977fi
9978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 fi
9980 if test $fits_in_uint = 1; then
9981 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9982 else
9983 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9984 fi
9985 else
9986 gl_cv_size_max='((size_t)~(size_t)0)'
9987 fi
9988 fi
9989
9990fi
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9992$as_echo "$gl_cv_size_max" >&6; }
9993 if test "$gl_cv_size_max" != yes; then
9994
9995cat >>confdefs.h <<_ACEOF
9996#define SIZE_MAX $gl_cv_size_max
9997_ACEOF
9998
9999 fi
10000
10001
10002
10003
10004 for ac_header in stdint.h
10005do :
10006 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10007if test "x$ac_cv_header_stdint_h" = xyes; then :
10008 cat >>confdefs.h <<_ACEOF
10009#define HAVE_STDINT_H 1
10010_ACEOF
10011
10012fi
10013
10014done
10015
10016
10017
10018
10019
10020 for ac_func in $ac_func_list
10021do :
10022 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10023ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10024if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10025 cat >>confdefs.h <<_ACEOF
10026#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10027_ACEOF
10028
10029fi
10030done
10031
10032
10033
10034
10035
10036
10037
10038
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10040$as_echo_n "checking for working fcntl.h... " >&6; }
10041if ${gl_cv_header_working_fcntl_h+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043else
10044 if test "$cross_compiling" = yes; then :
10045 gl_cv_header_working_fcntl_h=cross-compiling
10046else
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048/* end confdefs.h. */
10049#include <sys/types.h>
10050 #include <sys/stat.h>
10051 #if HAVE_UNISTD_H
10052 # include <unistd.h>
10053 #else /* on Windows with MSVC */
10054 # include <io.h>
10055 # include <stdlib.h>
10056 # defined sleep(n) _sleep ((n) * 1000)
10057 #endif
10058 #include <fcntl.h>
10059 #ifndef O_NOATIME
10060 #define O_NOATIME 0
10061 #endif
10062 #ifndef O_NOFOLLOW
10063 #define O_NOFOLLOW 0
10064 #endif
10065 static int const constants[] =
10066 {
10067 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10068 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10069 };
10070
10071int
10072main ()
10073{
10074
10075 int result = !constants;
10076 #if HAVE_SYMLINK
10077 {
10078 static char const sym[] = "conftest.sym";
10079 if (symlink ("/dev/null", sym) != 0)
10080 result |= 2;
10081 else
10082 {
10083 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10084 if (fd >= 0)
10085 {
10086 close (fd);
10087 result |= 4;
10088 }
10089 }
10090 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10091 result |= 2;
10092 else
10093 {
10094 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10095 if (fd >= 0)
10096 {
10097 close (fd);
10098 result |= 4;
10099 }
10100 }
10101 unlink (sym);
10102 }
10103 #endif
10104 {
10105 static char const file[] = "confdefs.h";
10106 int fd = open (file, O_RDONLY | O_NOATIME);
10107 if (fd < 0)
10108 result |= 8;
10109 else
10110 {
10111 struct stat st0;
10112 if (fstat (fd, &st0) != 0)
10113 result |= 16;
10114 else
10115 {
10116 char c;
10117 sleep (1);
10118 if (read (fd, &c, 1) != 1)
10119 result |= 24;
10120 else
10121 {
10122 if (close (fd) != 0)
10123 result |= 32;
10124 else
10125 {
10126 struct stat st1;
10127 if (stat (file, &st1) != 0)
10128 result |= 40;
10129 else
10130 if (st0.st_atime != st1.st_atime)
10131 result |= 64;
10132 }
10133 }
10134 }
10135 }
10136 }
10137 return result;
10138 ;
10139 return 0;
10140}
10141_ACEOF
10142if ac_fn_c_try_run "$LINENO"; then :
10143 gl_cv_header_working_fcntl_h=yes
10144else
10145 case $? in #(
10146 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10147 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10148 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10149 *) gl_cv_header_working_fcntl_h='no';;
10150 esac
10151fi
10152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10153 conftest.$ac_objext conftest.beam conftest.$ac_ext
10154fi
10155
10156fi
10157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10158$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10159
10160 case $gl_cv_header_working_fcntl_h in #(
10161 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10162 *) ac_val=1;;
10163 esac
10164
10165cat >>confdefs.h <<_ACEOF
10166#define HAVE_WORKING_O_NOATIME $ac_val
10167_ACEOF
10168
10169
10170 case $gl_cv_header_working_fcntl_h in #(
10171 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10172 *) ac_val=1;;
10173 esac
10174
10175cat >>confdefs.h <<_ACEOF
10176#define HAVE_WORKING_O_NOFOLLOW $ac_val
10177_ACEOF
10178
10179
10180
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10182$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10183if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10184 $as_echo_n "(cached) " >&6
10185else
10186 gt_save_LIBS="$LIBS"
10187 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189/* end confdefs.h. */
10190#include <CoreFoundation/CFPreferences.h>
10191int
10192main ()
10193{
10194CFPreferencesCopyAppValue(NULL, NULL)
10195 ;
10196 return 0;
10197}
10198_ACEOF
10199if ac_fn_c_try_link "$LINENO"; then :
10200 gt_cv_func_CFPreferencesCopyAppValue=yes
10201else
10202 gt_cv_func_CFPreferencesCopyAppValue=no
10203fi
10204rm -f core conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LIBS="$gt_save_LIBS"
10207fi
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10209$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10210 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10211
10212$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10213
10214 fi
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10216$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10217if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219else
10220 gt_save_LIBS="$LIBS"
10221 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223/* end confdefs.h. */
10224#include <CoreFoundation/CFLocale.h>
10225int
10226main ()
10227{
10228CFLocaleCopyCurrent();
10229 ;
10230 return 0;
10231}
10232_ACEOF
10233if ac_fn_c_try_link "$LINENO"; then :
10234 gt_cv_func_CFLocaleCopyCurrent=yes
10235else
10236 gt_cv_func_CFLocaleCopyCurrent=no
10237fi
10238rm -f core conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LIBS="$gt_save_LIBS"
10241fi
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10243$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10244 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10245
10246$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10247
10248 fi
10249 INTL_MACOSX_LIBS=
10250 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10251 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10252 fi
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263 case "$enable_silent_rules" in
10264 yes) INTL_DEFAULT_VERBOSITY=0;;
10265 no) INTL_DEFAULT_VERBOSITY=1;;
10266 *) INTL_DEFAULT_VERBOSITY=1;;
10267 esac
10268
10269
10270 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10271if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10272
10273else
10274
10275$as_echo "#define ptrdiff_t long" >>confdefs.h
10276
10277
10278fi
10279
10280 for ac_header in features.h stddef.h stdlib.h string.h
10281do :
10282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10283ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10284if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10285 cat >>confdefs.h <<_ACEOF
10286#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10287_ACEOF
10288
10289fi
10290
10291done
10292
10293 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10294 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10295do :
10296 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10297ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10298if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10299 cat >>confdefs.h <<_ACEOF
10300#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10301_ACEOF
10302
10303fi
10304done
10305
10306
10307 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10308"
10309if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10310 ac_have_decl=1
10311else
10312 ac_have_decl=0
10313fi
10314
10315cat >>confdefs.h <<_ACEOF
10316#define HAVE_DECL__SNPRINTF $ac_have_decl
10317_ACEOF
10318ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10319"
10320if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10321 ac_have_decl=1
10322else
10323 ac_have_decl=0
10324fi
10325
10326cat >>confdefs.h <<_ACEOF
10327#define HAVE_DECL__SNWPRINTF $ac_have_decl
10328_ACEOF
10329
10330
10331 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10332"
10333if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10334 ac_have_decl=1
10335else
10336 ac_have_decl=0
10337fi
10338
10339cat >>confdefs.h <<_ACEOF
10340#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10341_ACEOF
10342
10343
10344 case $gt_cv_func_printf_posix in
10345 *yes) HAVE_POSIX_PRINTF=1 ;;
10346 *) HAVE_POSIX_PRINTF=0 ;;
10347 esac
10348
10349 if test "$ac_cv_func_asprintf" = yes; then
10350 HAVE_ASPRINTF=1
10351 else
10352 HAVE_ASPRINTF=0
10353 fi
10354
10355 if test "$ac_cv_func_snprintf" = yes; then
10356 HAVE_SNPRINTF=1
10357 else
10358 HAVE_SNPRINTF=0
10359 fi
10360
10361 if test "$ac_cv_func_newlocale" = yes; then
10362 HAVE_NEWLOCALE=1
10363 else
10364 HAVE_NEWLOCALE=0
10365 fi
10366
10367 if test "$ac_cv_func_wprintf" = yes; then
10368 HAVE_WPRINTF=1
10369 else
10370 HAVE_WPRINTF=0
10371 fi
10372
10373
10374
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10376$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10377if ${am_cv_langinfo_codeset+:} false; then :
10378 $as_echo_n "(cached) " >&6
10379else
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381/* end confdefs.h. */
10382#include <langinfo.h>
10383int
10384main ()
10385{
10386char* cs = nl_langinfo(CODESET); return !cs;
10387 ;
10388 return 0;
10389}
10390_ACEOF
10391if ac_fn_c_try_link "$LINENO"; then :
10392 am_cv_langinfo_codeset=yes
10393else
10394 am_cv_langinfo_codeset=no
10395fi
10396rm -f core conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
10398
10399fi
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10401$as_echo "$am_cv_langinfo_codeset" >&6; }
10402 if test $am_cv_langinfo_codeset = yes; then
10403
10404$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10405
10406 fi
10407
10408
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10410$as_echo_n "checking for LC_MESSAGES... " >&6; }
10411if ${gt_cv_val_LC_MESSAGES+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413else
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415/* end confdefs.h. */
10416#include <locale.h>
10417int
10418main ()
10419{
10420return LC_MESSAGES
10421 ;
10422 return 0;
10423}
10424_ACEOF
10425if ac_fn_c_try_link "$LINENO"; then :
10426 gt_cv_val_LC_MESSAGES=yes
10427else
10428 gt_cv_val_LC_MESSAGES=no
10429fi
10430rm -f core conftest.err conftest.$ac_objext \
10431 conftest$ac_exeext conftest.$ac_ext
10432fi
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10434$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10435 if test $gt_cv_val_LC_MESSAGES = yes; then
10436
10437$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10438
10439 fi
10440
10441
10442 if test "$enable_shared" = yes; then
10443 case "$host_os" in
10444 mingw* | cygwin*) is_woe32dll=yes ;;
10445 *) is_woe32dll=no ;;
10446 esac
10447 else
10448 is_woe32dll=no
10449 fi
10450 WOE32DLL=$is_woe32dll
10451
10452
10453 case "$host_os" in
10454 mingw* | cygwin*) is_woe32=yes ;;
10455 *) is_woe32=no ;;
10456 esac
10457 WOE32=$is_woe32
10458
10459 if test $WOE32 = yes; then
10460 if test -n "$ac_tool_prefix"; then
10461 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10462set dummy ${ac_tool_prefix}windres; ac_word=$2
10463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464$as_echo_n "checking for $ac_word... " >&6; }
10465if ${ac_cv_prog_WINDRES+:} false; then :
10466 $as_echo_n "(cached) " >&6
10467else
10468 if test -n "$WINDRES"; then
10469 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10470else
10471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10472for as_dir in $PATH
10473do
10474 IFS=$as_save_IFS
10475 test -z "$as_dir" && as_dir=.
10476 for ac_exec_ext in '' $ac_executable_extensions; do
10477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10478 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10480 break 2
10481 fi
10482done
10483 done
10484IFS=$as_save_IFS
10485
10486fi
10487fi
10488WINDRES=$ac_cv_prog_WINDRES
10489if test -n "$WINDRES"; then
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10491$as_echo "$WINDRES" >&6; }
10492else
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494$as_echo "no" >&6; }
10495fi
10496
10497
10498fi
10499if test -z "$ac_cv_prog_WINDRES"; then
10500 ac_ct_WINDRES=$WINDRES
10501 # Extract the first word of "windres", so it can be a program name with args.
10502set dummy windres; ac_word=$2
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504$as_echo_n "checking for $ac_word... " >&6; }
10505if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507else
10508 if test -n "$ac_ct_WINDRES"; then
10509 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10510else
10511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512for as_dir in $PATH
10513do
10514 IFS=$as_save_IFS
10515 test -z "$as_dir" && as_dir=.
10516 for ac_exec_ext in '' $ac_executable_extensions; do
10517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10518 ac_cv_prog_ac_ct_WINDRES="windres"
10519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10520 break 2
10521 fi
10522done
10523 done
10524IFS=$as_save_IFS
10525
10526fi
10527fi
10528ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10529if test -n "$ac_ct_WINDRES"; then
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10531$as_echo "$ac_ct_WINDRES" >&6; }
10532else
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534$as_echo "no" >&6; }
10535fi
10536
10537 if test "x$ac_ct_WINDRES" = x; then
10538 WINDRES=""
10539 else
10540 case $cross_compiling:$ac_tool_warned in
10541yes:)
10542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10544ac_tool_warned=yes ;;
10545esac
10546 WINDRES=$ac_ct_WINDRES
10547 fi
10548else
10549 WINDRES="$ac_cv_prog_WINDRES"
10550fi
10551
10552 fi
10553
10554 case "$host_os" in
10555 hpux*) LTLIBC="" ;;
10556 *) LTLIBC="-lc" ;;
10557 esac
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10586$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10587if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589else
10590 gt_save_LIBS="$LIBS"
10591 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593/* end confdefs.h. */
10594#include <CoreFoundation/CFPreferences.h>
10595int
10596main ()
10597{
10598CFPreferencesCopyAppValue(NULL, NULL)
10599 ;
10600 return 0;
10601}
10602_ACEOF
10603if ac_fn_c_try_link "$LINENO"; then :
10604 gt_cv_func_CFPreferencesCopyAppValue=yes
10605else
10606 gt_cv_func_CFPreferencesCopyAppValue=no
10607fi
10608rm -f core conftest.err conftest.$ac_objext \
10609 conftest$ac_exeext conftest.$ac_ext
10610 LIBS="$gt_save_LIBS"
10611fi
10612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10613$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10614 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10615
10616$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10617
10618 fi
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10620$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10621if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623else
10624 gt_save_LIBS="$LIBS"
10625 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627/* end confdefs.h. */
10628#include <CoreFoundation/CFLocale.h>
10629int
10630main ()
10631{
10632CFLocaleCopyCurrent();
10633 ;
10634 return 0;
10635}
10636_ACEOF
10637if ac_fn_c_try_link "$LINENO"; then :
10638 gt_cv_func_CFLocaleCopyCurrent=yes
10639else
10640 gt_cv_func_CFLocaleCopyCurrent=no
10641fi
10642rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644 LIBS="$gt_save_LIBS"
10645fi
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10647$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10648 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10649
10650$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10651
10652 fi
10653 INTL_MACOSX_LIBS=
10654 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10655 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10656 fi
10657
10658
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010659
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010661
10662
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010663 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010664 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010665
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010666 LIBINTL=
10667 LTLIBINTL=
10668 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010669
Theodore Ts'o93613952014-07-03 23:44:13 -040010670 case " $gt_needs " in
10671 *" need-formatstring-macros "*) gt_api_version=3 ;;
10672 *" need-ngettext "*) gt_api_version=2 ;;
10673 *) gt_api_version=1 ;;
10674 esac
10675 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10676 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10677
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010678 if test "$USE_NLS" = "yes"; then
10679 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010680
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010682$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010683
Theodore Ts'oe1052142006-10-21 21:46:47 -040010684# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010685if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010686 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010687else
10688 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010689fi
10690
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010692$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010693
10694 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10695 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010696
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010697
Theodore Ts'o93613952014-07-03 23:44:13 -040010698 if test $gt_api_version -ge 3; then
10699 gt_revision_test_code='
10700#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10701#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10702#endif
10703typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10704'
10705 else
10706 gt_revision_test_code=
10707 fi
10708 if test $gt_api_version -ge 2; then
10709 gt_expression_test_code=' + * ngettext ("", "", 0)'
10710 else
10711 gt_expression_test_code=
10712 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010713
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010715$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010716if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010717 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010718else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010720/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010721
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010722#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010723$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010724extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010725extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010726
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010727int
10728main ()
10729{
Theodore Ts'o93613952014-07-03 23:44:13 -040010730
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010731bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010732return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10733
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010734 ;
10735 return 0;
10736}
10737_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010738if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010739 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010740else
Theodore Ts'o93613952014-07-03 23:44:13 -040010741 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010742fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010743rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010746eval ac_res=\$$gt_func_gnugettext_libc
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10748$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010749
Theodore Ts'o93613952014-07-03 23:44:13 -040010750 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10751
10752
10753
10754
10755
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010756
10757
10758
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010759 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010760
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010761 acl_save_prefix="$prefix"
10762 prefix="$acl_final_prefix"
10763 acl_save_exec_prefix="$exec_prefix"
10764 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010765
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010766 eval additional_includedir=\"$includedir\"
10767 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010769 exec_prefix="$acl_save_exec_prefix"
10770 prefix="$acl_save_prefix"
10771
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010772
Theodore Ts'oe1052142006-10-21 21:46:47 -040010773# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010774if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010775 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010776 if test "X$withval" = "Xno"; then
10777 use_additional=no
10778 else
10779 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010780
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010781 acl_save_prefix="$prefix"
10782 prefix="$acl_final_prefix"
10783 acl_save_exec_prefix="$exec_prefix"
10784 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010785
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010786 eval additional_includedir=\"$includedir\"
10787 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010788
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010789 exec_prefix="$acl_save_exec_prefix"
10790 prefix="$acl_save_prefix"
10791
10792 else
10793 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010794 additional_libdir="$withval/$acl_libdirstem"
10795 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10796 && ! test -d "$withval/$acl_libdirstem"; then
10797 additional_libdir="$withval/$acl_libdirstem2"
10798 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010799 fi
10800 fi
10801
Theodore Ts'oe1052142006-10-21 21:46:47 -040010802fi
10803
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010804 LIBINTL=
10805 LTLIBINTL=
10806 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010807 LIBINTL_PREFIX=
10808 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010809 rpathdirs=
10810 ltrpathdirs=
10811 names_already_handled=
10812 names_next_round='intl '
10813 while test -n "$names_next_round"; do
10814 names_this_round="$names_next_round"
10815 names_next_round=
10816 for name in $names_this_round; do
10817 already_handled=
10818 for n in $names_already_handled; do
10819 if test "$n" = "$name"; then
10820 already_handled=yes
10821 break
10822 fi
10823 done
10824 if test -z "$already_handled"; then
10825 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010826 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010827 eval value=\"\$HAVE_LIB$uppername\"
10828 if test -n "$value"; then
10829 if test "$value" = yes; then
10830 eval value=\"\$LIB$uppername\"
10831 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10832 eval value=\"\$LTLIB$uppername\"
10833 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10834 else
10835 :
10836 fi
10837 else
10838 found_dir=
10839 found_la=
10840 found_so=
10841 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010842 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10843 if test -n "$acl_shlibext"; then
10844 shrext=".$acl_shlibext" # typically: shrext=.so
10845 else
10846 shrext=
10847 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010848 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010849 dir="$additional_libdir"
10850 if test -n "$acl_shlibext"; then
10851 if test -f "$dir/$libname$shrext"; then
10852 found_dir="$dir"
10853 found_so="$dir/$libname$shrext"
10854 else
10855 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10856 ver=`(cd "$dir" && \
10857 for f in "$libname$shrext".*; do echo "$f"; done \
10858 | sed -e "s,^$libname$shrext\\\\.,," \
10859 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10860 | sed 1q ) 2>/dev/null`
10861 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10862 found_dir="$dir"
10863 found_so="$dir/$libname$shrext.$ver"
10864 fi
10865 else
10866 eval library_names=\"$acl_library_names_spec\"
10867 for f in $library_names; do
10868 if test -f "$dir/$f"; then
10869 found_dir="$dir"
10870 found_so="$dir/$f"
10871 break
10872 fi
10873 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010874 fi
10875 fi
10876 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010877 if test "X$found_dir" = "X"; then
10878 if test -f "$dir/$libname.$acl_libext"; then
10879 found_dir="$dir"
10880 found_a="$dir/$libname.$acl_libext"
10881 fi
10882 fi
10883 if test "X$found_dir" != "X"; then
10884 if test -f "$dir/$libname.la"; then
10885 found_la="$dir/$libname.la"
10886 fi
10887 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010888 fi
10889 if test "X$found_dir" = "X"; then
10890 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010891
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010892 acl_save_prefix="$prefix"
10893 prefix="$acl_final_prefix"
10894 acl_save_exec_prefix="$exec_prefix"
10895 exec_prefix="$acl_final_exec_prefix"
10896 eval x=\"$x\"
10897 exec_prefix="$acl_save_exec_prefix"
10898 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010899
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010900 case "$x" in
10901 -L*)
10902 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010903 if test -n "$acl_shlibext"; then
10904 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010905 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010906 found_so="$dir/$libname$shrext"
10907 else
10908 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10909 ver=`(cd "$dir" && \
10910 for f in "$libname$shrext".*; do echo "$f"; done \
10911 | sed -e "s,^$libname$shrext\\\\.,," \
10912 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10913 | sed 1q ) 2>/dev/null`
10914 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10915 found_dir="$dir"
10916 found_so="$dir/$libname$shrext.$ver"
10917 fi
10918 else
10919 eval library_names=\"$acl_library_names_spec\"
10920 for f in $library_names; do
10921 if test -f "$dir/$f"; then
10922 found_dir="$dir"
10923 found_so="$dir/$f"
10924 break
10925 fi
10926 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010927 fi
10928 fi
10929 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010930 if test "X$found_dir" = "X"; then
10931 if test -f "$dir/$libname.$acl_libext"; then
10932 found_dir="$dir"
10933 found_a="$dir/$libname.$acl_libext"
10934 fi
10935 fi
10936 if test "X$found_dir" != "X"; then
10937 if test -f "$dir/$libname.la"; then
10938 found_la="$dir/$libname.la"
10939 fi
10940 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010941 ;;
10942 esac
10943 if test "X$found_dir" != "X"; then
10944 break
10945 fi
10946 done
10947 fi
10948 if test "X$found_dir" != "X"; then
10949 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10950 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010951 if test "$enable_rpath" = no \
10952 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10953 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010954 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10955 else
10956 haveit=
10957 for x in $ltrpathdirs; do
10958 if test "X$x" = "X$found_dir"; then
10959 haveit=yes
10960 break
10961 fi
10962 done
10963 if test -z "$haveit"; then
10964 ltrpathdirs="$ltrpathdirs $found_dir"
10965 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010966 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10968 else
Theodore Ts'o93613952014-07-03 23:44:13 -040010969 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010970 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10971 haveit=
10972 for x in $rpathdirs; do
10973 if test "X$x" = "X$found_dir"; then
10974 haveit=yes
10975 break
10976 fi
10977 done
10978 if test -z "$haveit"; then
10979 rpathdirs="$rpathdirs $found_dir"
10980 fi
10981 else
10982 haveit=
10983 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010984
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010985 acl_save_prefix="$prefix"
10986 prefix="$acl_final_prefix"
10987 acl_save_exec_prefix="$exec_prefix"
10988 exec_prefix="$acl_final_exec_prefix"
10989 eval x=\"$x\"
10990 exec_prefix="$acl_save_exec_prefix"
10991 prefix="$acl_save_prefix"
10992
10993 if test "X$x" = "X-L$found_dir"; then
10994 haveit=yes
10995 break
10996 fi
10997 done
10998 if test -z "$haveit"; then
10999 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11000 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011001 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011002 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11003 else
11004 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11005 fi
11006 fi
11007 fi
11008 fi
11009 else
11010 if test "X$found_a" != "X"; then
11011 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11012 else
11013 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11014 fi
11015 fi
11016 additional_includedir=
11017 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011018 */$acl_libdirstem | */$acl_libdirstem/)
11019 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11020 if test "$name" = 'intl'; then
11021 LIBINTL_PREFIX="$basedir"
11022 fi
11023 additional_includedir="$basedir/include"
11024 ;;
11025 */$acl_libdirstem2 | */$acl_libdirstem2/)
11026 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11027 if test "$name" = 'intl'; then
11028 LIBINTL_PREFIX="$basedir"
11029 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011030 additional_includedir="$basedir/include"
11031 ;;
11032 esac
11033 if test "X$additional_includedir" != "X"; then
11034 if test "X$additional_includedir" != "X/usr/include"; then
11035 haveit=
11036 if test "X$additional_includedir" = "X/usr/local/include"; then
11037 if test -n "$GCC"; then
11038 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011039 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011040 esac
11041 fi
11042 fi
11043 if test -z "$haveit"; then
11044 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011045
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011046 acl_save_prefix="$prefix"
11047 prefix="$acl_final_prefix"
11048 acl_save_exec_prefix="$exec_prefix"
11049 exec_prefix="$acl_final_exec_prefix"
11050 eval x=\"$x\"
11051 exec_prefix="$acl_save_exec_prefix"
11052 prefix="$acl_save_prefix"
11053
11054 if test "X$x" = "X-I$additional_includedir"; then
11055 haveit=yes
11056 break
11057 fi
11058 done
11059 if test -z "$haveit"; then
11060 if test -d "$additional_includedir"; then
11061 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11062 fi
11063 fi
11064 fi
11065 fi
11066 fi
11067 if test -n "$found_la"; then
11068 save_libdir="$libdir"
11069 case "$found_la" in
11070 */* | *\\*) . "$found_la" ;;
11071 *) . "./$found_la" ;;
11072 esac
11073 libdir="$save_libdir"
11074 for dep in $dependency_libs; do
11075 case "$dep" in
11076 -L*)
11077 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011078 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11079 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011080 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011081 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11082 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011083 if test -n "$GCC"; then
11084 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011085 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011086 esac
11087 fi
11088 fi
11089 if test -z "$haveit"; then
11090 haveit=
11091 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011092
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011093 acl_save_prefix="$prefix"
11094 prefix="$acl_final_prefix"
11095 acl_save_exec_prefix="$exec_prefix"
11096 exec_prefix="$acl_final_exec_prefix"
11097 eval x=\"$x\"
11098 exec_prefix="$acl_save_exec_prefix"
11099 prefix="$acl_save_prefix"
11100
11101 if test "X$x" = "X-L$additional_libdir"; then
11102 haveit=yes
11103 break
11104 fi
11105 done
11106 if test -z "$haveit"; then
11107 if test -d "$additional_libdir"; then
11108 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11109 fi
11110 fi
11111 haveit=
11112 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011113
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011114 acl_save_prefix="$prefix"
11115 prefix="$acl_final_prefix"
11116 acl_save_exec_prefix="$exec_prefix"
11117 exec_prefix="$acl_final_exec_prefix"
11118 eval x=\"$x\"
11119 exec_prefix="$acl_save_exec_prefix"
11120 prefix="$acl_save_prefix"
11121
11122 if test "X$x" = "X-L$additional_libdir"; then
11123 haveit=yes
11124 break
11125 fi
11126 done
11127 if test -z "$haveit"; then
11128 if test -d "$additional_libdir"; then
11129 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11130 fi
11131 fi
11132 fi
11133 fi
11134 ;;
11135 -R*)
11136 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11137 if test "$enable_rpath" != no; then
11138 haveit=
11139 for x in $rpathdirs; do
11140 if test "X$x" = "X$dir"; then
11141 haveit=yes
11142 break
11143 fi
11144 done
11145 if test -z "$haveit"; then
11146 rpathdirs="$rpathdirs $dir"
11147 fi
11148 haveit=
11149 for x in $ltrpathdirs; do
11150 if test "X$x" = "X$dir"; then
11151 haveit=yes
11152 break
11153 fi
11154 done
11155 if test -z "$haveit"; then
11156 ltrpathdirs="$ltrpathdirs $dir"
11157 fi
11158 fi
11159 ;;
11160 -l*)
11161 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11162 ;;
11163 *.la)
11164 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11165 ;;
11166 *)
11167 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11168 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11169 ;;
11170 esac
11171 done
11172 fi
11173 else
11174 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11175 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11176 fi
11177 fi
11178 fi
11179 done
11180 done
11181 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011182 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011183 alldirs=
11184 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011185 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011186 done
11187 acl_save_libdir="$libdir"
11188 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011189 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011190 libdir="$acl_save_libdir"
11191 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11192 else
11193 for found_dir in $rpathdirs; do
11194 acl_save_libdir="$libdir"
11195 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011196 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011197 libdir="$acl_save_libdir"
11198 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11199 done
11200 fi
11201 fi
11202 if test "X$ltrpathdirs" != "X"; then
11203 for found_dir in $ltrpathdirs; do
11204 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11205 done
11206 fi
11207
Theodore Ts'o93613952014-07-03 23:44:13 -040011208
11209
11210
11211
11212
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011214$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011215if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011216 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011217else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011218 gt_save_CPPFLAGS="$CPPFLAGS"
11219 CPPFLAGS="$CPPFLAGS $INCINTL"
11220 gt_save_LIBS="$LIBS"
11221 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011223/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011224
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011225#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011226$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011227extern int _nl_msg_cat_cntr;
11228extern
11229#ifdef __cplusplus
11230"C"
11231#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011232const char *_nl_expand_alias (const char *);
11233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011234int
11235main ()
11236{
Theodore Ts'o93613952014-07-03 23:44:13 -040011237
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011238bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011239return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11240
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011241 ;
11242 return 0;
11243}
11244_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011245if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011246 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011247else
Theodore Ts'o93613952014-07-03 23:44:13 -040011248 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011249fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011250rm -f core conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011252 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011253 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011255/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011256
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011257#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011258$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011259extern int _nl_msg_cat_cntr;
11260extern
11261#ifdef __cplusplus
11262"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011263#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011264const char *_nl_expand_alias (const char *);
11265
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011266int
11267main ()
11268{
Theodore Ts'o93613952014-07-03 23:44:13 -040011269
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011270bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011271return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11272
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011273 ;
11274 return 0;
11275}
11276_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011277if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011278 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011279 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11280 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011281
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011282fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011283rm -f core conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011285 fi
11286 CPPFLAGS="$gt_save_CPPFLAGS"
11287 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011288fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011289eval ac_res=\$$gt_func_gnugettext_libintl
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11291$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011292 fi
11293
Theodore Ts'o93613952014-07-03 23:44:13 -040011294 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11295 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011296 && test "$PACKAGE" != gettext-runtime \
11297 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011298 gt_use_preinstalled_gnugettext=yes
11299 else
11300 LIBINTL=
11301 LTLIBINTL=
11302 INCINTL=
11303 fi
11304
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011305
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011306 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11307 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011308 fi
11309 fi
11310
11311 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011312 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011313 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011314 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11315 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011316 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011317 fi
11318
Theodore Ts'o93613952014-07-03 23:44:13 -040011319 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011320 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11321 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11322 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011323 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011324
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011325
Theodore Ts'o93613952014-07-03 23:44:13 -040011326 if test -n "$INTL_MACOSX_LIBS"; then
11327 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11328 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11329 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11330 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11331 fi
11332 fi
11333
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011334 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11335 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011336
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011337$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011338
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011339 else
11340 USE_NLS=no
11341 fi
11342 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011343
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011345$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011347$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011348 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011350$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011351 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011352 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011353 gt_source="external libintl"
11354 else
11355 gt_source="libc"
11356 fi
11357 else
11358 gt_source="included intl directory"
11359 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011361$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011362 fi
11363
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011364 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011365
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011366 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011367 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011369$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011371$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011372
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011373 for element in $INCINTL; do
11374 haveit=
11375 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011376
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011377 acl_save_prefix="$prefix"
11378 prefix="$acl_final_prefix"
11379 acl_save_exec_prefix="$exec_prefix"
11380 exec_prefix="$acl_final_exec_prefix"
11381 eval x=\"$x\"
11382 exec_prefix="$acl_save_exec_prefix"
11383 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011384
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011385 if test "X$x" = "X$element"; then
11386 haveit=yes
11387 break
11388 fi
11389 done
11390 if test -z "$haveit"; then
11391 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11392 fi
11393 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011394
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011395 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011396
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011397
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011398$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011399
11400
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011401$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011402
11403 fi
11404
11405 POSUB=po
11406 fi
11407
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011408
11409 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011410 BUILD_INCLUDED_LIBINTL=yes
11411 fi
11412
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011413
11414
11415
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011416
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011417 nls_cv_header_intl=
11418 nls_cv_header_libgt=
11419
11420 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011421
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011422
11423 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011424
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011425
11426 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011427
11428
Theodore Ts'o93613952014-07-03 23:44:13 -040011429 INTLOBJS=
11430 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011431 INTLOBJS="\$(GETTOBJS)"
11432 fi
11433
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011434
11435 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011436
11437
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011438
11439 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011440
11441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011442
11443
11444
11445
11446
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011448$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11449set x ${MAKE-make}
11450ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011451if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011452 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011453else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011454 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011455SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011456all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011457 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011458_ACEOF
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011459# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011460case `${MAKE-make} -f conftest.make 2>/dev/null` in
11461 *@@@%%%=?*=@@@%%%*)
11462 eval ac_cv_prog_make_${ac_make}_set=yes;;
11463 *)
11464 eval ac_cv_prog_make_${ac_make}_set=no;;
11465esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011466rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011467fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011468if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011470$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011471 SET_MAKE=
11472else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011474$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011475 SET_MAKE="MAKE=${MAKE-make}"
11476fi
11477
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011479$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011480if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011481 $as_echo_n "(cached) " >&6
11482else
11483 _cv_gnu_make_command='' ;
11484 for a in "$MAKE" make gmake gnumake ; do
11485 if test -z "$a" ; then continue ; fi ;
11486 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11487 _cv_gnu_make_command=$a ;
11488 break;
11489 fi
11490 done ;
11491
11492fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011494$as_echo "$_cv_gnu_make_command" >&6; } ;
11495 if test "x$_cv_gnu_make_command" != "x" ; then
11496 ifGNUmake='' ;
11497 ifNotGNUmake='#' ;
11498 else
11499 ifGNUmake='#' ;
11500 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011502$as_echo "\"Not found\"" >&6; };
11503 fi
11504
11505
11506
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011507# Extract the first word of "ln", so it can be a program name with args.
11508set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011510$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011511if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011512 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011513else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011514 case $LN in
11515 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011516 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11517 ;;
11518 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520for as_dir in $PATH
11521do
11522 IFS=$as_save_IFS
11523 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011524 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011526 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011528 break 2
11529 fi
11530done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011531 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011532IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011533
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011534 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11535 ;;
11536esac
11537fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011538LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011539if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011541$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011542else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011544$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011545fi
11546
Theodore Ts'oe1052142006-10-21 21:46:47 -040011547
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011549$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011550LN_S=$as_ln_s
11551if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011553$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011554else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011556$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011557fi
11558
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011559# Extract the first word of "mv", so it can be a program name with args.
11560set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011562$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011563if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011564 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011565else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011566 case $MV in
11567 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011568 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11569 ;;
11570 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572for as_dir in $PATH
11573do
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011576 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011578 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011580 break 2
11581 fi
11582done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011583 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011584IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011585
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011586 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11587 ;;
11588esac
11589fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011590MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011591if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011593$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011594else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011596$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011597fi
11598
Theodore Ts'oe1052142006-10-21 21:46:47 -040011599
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011600# Extract the first word of "cp", so it can be a program name with args.
11601set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011603$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011604if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011605 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011606else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011607 case $CP in
11608 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011609 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11610 ;;
11611 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613for as_dir in $PATH
11614do
11615 IFS=$as_save_IFS
11616 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011617 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011619 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011621 break 2
11622 fi
11623done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011624 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011625IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011626
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011627 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11628 ;;
11629esac
11630fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011631CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011632if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011634$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011635else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011637$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011638fi
11639
Theodore Ts'oe1052142006-10-21 21:46:47 -040011640
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011641# Extract the first word of "rm", so it can be a program name with args.
11642set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011644$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011645if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011646 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011647else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011648 case $RM in
11649 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011650 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11651 ;;
11652 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11654for as_dir in $PATH
11655do
11656 IFS=$as_save_IFS
11657 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011658 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011660 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011662 break 2
11663 fi
11664done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011665 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011666IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011667
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011668 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11669 ;;
11670esac
11671fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011672RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011673if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011675$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011676else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011678$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011679fi
11680
Theodore Ts'oe1052142006-10-21 21:46:47 -040011681
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011682# Extract the first word of "chmod", so it can be a program name with args.
11683set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011685$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011686if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011687 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011688else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011689 case $CHMOD in
11690 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011691 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11692 ;;
11693 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695for as_dir in $PATH
11696do
11697 IFS=$as_save_IFS
11698 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011699 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011701 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011703 break 2
11704 fi
11705done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011706 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011707IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011708
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011709 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11710 ;;
11711esac
11712fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011713CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011714if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011716$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011717else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011719$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011720fi
11721
Theodore Ts'oe1052142006-10-21 21:46:47 -040011722
Theodore Ts'o32237012005-01-17 19:13:39 -050011723for ac_prog in gawk mawk nawk awk
11724do
11725 # Extract the first word of "$ac_prog", so it can be a program name with args.
11726set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011728$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011729if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011730 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011731else
Theodore Ts'o32237012005-01-17 19:13:39 -050011732 if test -n "$AWK"; then
11733 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11734else
11735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011736for as_dir in $PATH
11737do
11738 IFS=$as_save_IFS
11739 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011740 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011742 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011744 break 2
11745 fi
11746done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011747 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011748IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011749
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011750fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011751fi
11752AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011753if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011755$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011756else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011758$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011759fi
11760
Theodore Ts'oe1052142006-10-21 21:46:47 -040011761
Theodore Ts'o32237012005-01-17 19:13:39 -050011762 test -n "$AWK" && break
11763done
11764
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011766$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011767if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011768 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011769else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011770 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11771 then ac_cv_path_EGREP="$GREP -E"
11772 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011773 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011774 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011775 # Loop through the user's path and test for each of PROGNAME-LIST
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011777for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11778do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011781 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011784 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011785# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011786 # Check for GNU $ac_path_EGREP
11787case `"$ac_path_EGREP" --version 2>&1` in
11788*GNU*)
11789 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11790*)
11791 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011792 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011793 while :
11794 do
11795 cat "conftest.in" "conftest.in" >"conftest.tmp"
11796 mv "conftest.tmp" "conftest.in"
11797 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011798 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011799 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011801 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011802 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11803 # Best one so far, save it but keep looking for a better one
11804 ac_cv_path_EGREP="$ac_path_EGREP"
11805 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011806 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011807 # 10*(2^10) chars as input seems more than enough
11808 test $ac_count -gt 10 && break
11809 done
11810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11811esac
11812
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011813 $ac_path_EGREP_found && break 3
11814 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011815 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011816 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011817IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011818 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011819 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 +010011820 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011821else
11822 ac_cv_path_EGREP=$EGREP
11823fi
11824
Theodore Ts'oe1052142006-10-21 21:46:47 -040011825 fi
11826fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011828$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011829 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011830
11831
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011832# Extract the first word of "sed", so it can be a program name with args.
11833set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011835$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011836if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011837 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011838else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011839 case $SED in
11840 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011841 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11842 ;;
11843 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845for as_dir in $PATH
11846do
11847 IFS=$as_save_IFS
11848 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011849 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011851 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011853 break 2
11854 fi
11855done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011856 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011857IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011858
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011859 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11860 ;;
11861esac
11862fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011863SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011864if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011866$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011867else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011869$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011870fi
11871
Theodore Ts'oe1052142006-10-21 21:46:47 -040011872
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011873# Extract the first word of "perl", so it can be a program name with args.
11874set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011876$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011877if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011878 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011879else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011880 case $PERL in
11881 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011882 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11883 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011884 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886for as_dir in $PATH
11887do
11888 IFS=$as_save_IFS
11889 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011890 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011892 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011894 break 2
11895 fi
11896done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011897 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011898IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011899
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011900 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11901 ;;
11902esac
11903fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011904PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011905if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011907$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011908else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011910$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011911fi
11912
Theodore Ts'oe1052142006-10-21 21:46:47 -040011913
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011914# Extract the first word of "ldconfig", so it can be a program name with args.
11915set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011917$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011918if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011919 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011920else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011921 case $LDCONFIG in
11922 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011923 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11924 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011925 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927for as_dir in $PATH
11928do
11929 IFS=$as_save_IFS
11930 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011931 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011933 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011935 break 2
11936 fi
11937done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011938 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011939IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011940
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011941 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11942 ;;
11943esac
11944fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011945LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011946if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011948$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011949else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011951$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011952fi
11953
Theodore Ts'oe1052142006-10-21 21:46:47 -040011954
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011955if test -n "$ac_tool_prefix"; then
11956 # 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 +000011957set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011959$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011960if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011961 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011962else
11963 if test -n "$AR"; then
11964 ac_cv_prog_AR="$AR" # Let the user override the test.
11965else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967for as_dir in $PATH
11968do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011971 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040011972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011973 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011975 break 2
11976 fi
11977done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011978 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011979IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011980
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011981fi
11982fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011983AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011984if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011986$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011987else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011989$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011990fi
11991
Theodore Ts'oe1052142006-10-21 21:46:47 -040011992
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011993fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011994if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011995 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011996 # Extract the first word of "ar", so it can be a program name with args.
11997set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011999$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012000if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012001 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012003 if test -n "$ac_ct_AR"; then
12004 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012005else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $PATH
12008do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012011 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012013 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012015 break 2
12016 fi
12017done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012018 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012019IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012021fi
12022fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012023ac_ct_AR=$ac_cv_prog_ac_ct_AR
12024if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012026$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012027else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012029$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012030fi
12031
Theodore Ts'oe1052142006-10-21 21:46:47 -040012032 if test "x$ac_ct_AR" = x; then
12033 AR="ar"
12034 else
12035 case $cross_compiling:$ac_tool_warned in
12036yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012037{ $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 +010012038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012039ac_tool_warned=yes ;;
12040esac
12041 AR=$ac_ct_AR
12042 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012043else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012044 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012045fi
12046
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012047if test -n "$ac_tool_prefix"; then
12048 # 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 +000012049set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012051$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012052if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012053 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012054else
12055 if test -n "$RANLIB"; then
12056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12057else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059for as_dir in $PATH
12060do
12061 IFS=$as_save_IFS
12062 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012063 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012065 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067 break 2
12068 fi
12069done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012070 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012071IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012072
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012073fi
12074fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012075RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012076if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012078$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012079else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012081$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012082fi
12083
Theodore Ts'oe1052142006-10-21 21:46:47 -040012084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012085fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012086if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012087 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012088 # Extract the first word of "ranlib", so it can be a program name with args.
12089set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012091$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012092if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012093 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012094else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012095 if test -n "$ac_ct_RANLIB"; then
12096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012097else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099for as_dir in $PATH
12100do
12101 IFS=$as_save_IFS
12102 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012103 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012107 break 2
12108 fi
12109done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012110 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012111IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012112
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012113fi
12114fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012115ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12116if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012118$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012119else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012121$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012122fi
12123
Theodore Ts'oe1052142006-10-21 21:46:47 -040012124 if test "x$ac_ct_RANLIB" = x; then
12125 RANLIB=":"
12126 else
12127 case $cross_compiling:$ac_tool_warned in
12128yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012129{ $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 +010012130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012131ac_tool_warned=yes ;;
12132esac
12133 RANLIB=$ac_ct_RANLIB
12134 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012135else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012136 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012137fi
12138
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012139if test -n "$ac_tool_prefix"; then
12140 # 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 +000012141set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012143$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012144if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012145 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012146else
12147 if test -n "$STRIP"; then
12148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12149else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151for as_dir in $PATH
12152do
12153 IFS=$as_save_IFS
12154 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012155 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012157 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012159 break 2
12160 fi
12161done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012162 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012163IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012164
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012165fi
12166fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012167STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012168if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012170$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012171else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012173$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012174fi
12175
Theodore Ts'oe1052142006-10-21 21:46:47 -040012176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012177fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012178if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012179 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012180 # Extract the first word of "strip", so it can be a program name with args.
12181set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012183$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012184if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012185 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012186else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012187 if test -n "$ac_ct_STRIP"; then
12188 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012189else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012195 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012199 break 2
12200 fi
12201done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012202 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012203IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012205fi
12206fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012207ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12208if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012210$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012211else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012213$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012214fi
12215
Theodore Ts'oe1052142006-10-21 21:46:47 -040012216 if test "x$ac_ct_STRIP" = x; then
12217 STRIP=":"
12218 else
12219 case $cross_compiling:$ac_tool_warned in
12220yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012221{ $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 +010012222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012223ac_tool_warned=yes ;;
12224esac
12225 STRIP=$ac_ct_STRIP
12226 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012227else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012228 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012229fi
12230
Manish Katiyar7321d942008-04-14 17:20:03 +053012231# Extract the first word of "makeinfo", so it can be a program name with args.
12232set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012234$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012235if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012236 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012237else
12238 if test -n "$MAKEINFO"; then
12239 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12240else
12241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242for as_dir in $PATH
12243do
12244 IFS=$as_save_IFS
12245 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012246 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012248 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012250 break 2
12251 fi
12252done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012253 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012254IFS=$as_save_IFS
12255
12256fi
12257fi
12258MAKEINFO=$ac_cv_prog_MAKEINFO
12259if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012261$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012262else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012264$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012265fi
12266
12267
12268if test "_$MAKEINFO" = "_"; then
12269 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12270else
12271 case "$MAKEINFO" in
12272 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012274*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012275$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012276*** Makeinfo is missing. Info documentation will not be built." >&2;}
12277 ;;
12278 *)
12279 ;;
12280 esac
12281fi
12282
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012283
Theodore Ts'o6c133521999-07-03 20:37:03 +000012284# See if we need a separate native compiler.
12285if test $cross_compiling = no; then
12286 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012287
Theodore Ts'o6c133521999-07-03 20:37:03 +000012288else
12289 for ac_prog in gcc cc
12290do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012291 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012292set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012294$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012295if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012296 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012297else
12298 if test -n "$BUILD_CC"; then
12299 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12300else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012303do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012306 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012308 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012310 break 2
12311 fi
12312done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012313 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012314IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012316fi
12317fi
12318BUILD_CC=$ac_cv_prog_BUILD_CC
12319if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012321$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012322else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012324$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012325fi
12326
Theodore Ts'oe1052142006-10-21 21:46:47 -040012327
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012328 test -n "$BUILD_CC" && break
12329done
12330
12331fi
Andreas Dilger51050542014-06-11 12:59:05 -060012332for 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/disk.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012333do :
12334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12335ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012336if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012337 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012338#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012339_ACEOF
12340
12341fi
12342
12343done
12344
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012345for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012346do :
12347 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012348#if HAVE_SYS_TYPES_H
12349#include <sys/types.h>
12350#endif
12351#if HAVE_SYS_SOCKET
12352#include <sys/socket.h>
12353#endif
12354
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012355"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012356if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012357 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012358#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012359_ACEOF
12360
12361fi
12362
12363done
12364
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012365for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012366do :
12367 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012368if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012369 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012370#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012371_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012372
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012373ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012374if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012375
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012376$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012377
12378fi
12379
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012380fi
12381done
12382
12383
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012384ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12385"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012386if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012387
12388$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012389
12390fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012391
Theodore Ts'o28739272014-01-03 00:26:43 -050012392ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12393if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12394
12395cat >>confdefs.h <<_ACEOF
12396#define HAVE_STRUCT_STAT_ST_ATIM 1
12397_ACEOF
12398
12399
12400fi
12401
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012402ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12403"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012404if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012405
12406$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012407
Theodore Ts'offf45482003-04-13 00:44:19 -040012408fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012409
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012410ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12411"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012412if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012413
12414$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012415
12416fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012417
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012418ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012419 #define _LARGEFILE64_SOURCE
12420 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012421"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012422if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012423
12424$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012425
12426fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012427
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012428# The cast to long int works around a bug in the HP C Compiler
12429# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12430# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12431# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012433$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012434if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012435 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012436else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012437 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 -050012438
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012439else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012440 if test "$ac_cv_type_short" = yes; then
12441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012443as_fn_error 77 "cannot compute sizeof (short)
12444See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012445 else
12446 ac_cv_sizeof_short=0
12447 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012448fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012450fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012452$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012453
12454
12455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012456cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012457#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012458_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012459
12460
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012461# The cast to long int works around a bug in the HP C Compiler
12462# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12463# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12464# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012466$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012467if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012468 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012469else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012470 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 -050012471
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012472else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012473 if test "$ac_cv_type_int" = yes; then
12474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012476as_fn_error 77 "cannot compute sizeof (int)
12477See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012478 else
12479 ac_cv_sizeof_int=0
12480 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012481fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012482
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012483fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012485$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012486
12487
12488
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012489cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012490#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012491_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012492
12493
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012494# The cast to long int works around a bug in the HP C Compiler
12495# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12496# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12497# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012499$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012500if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012501 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012502else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012503 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 -050012504
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012505else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012506 if test "$ac_cv_type_long" = yes; then
12507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012509as_fn_error 77 "cannot compute sizeof (long)
12510See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012511 else
12512 ac_cv_sizeof_long=0
12513 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012514fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012515
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012516fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012518$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012519
12520
12521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012522cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012523#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012524_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012525
12526
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012527# The cast to long int works around a bug in the HP C Compiler
12528# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12529# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12530# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012532$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012533if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012534 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012535else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012536 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 -050012537
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012538else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012539 if test "$ac_cv_type_long_long" = yes; then
12540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012542as_fn_error 77 "cannot compute sizeof (long long)
12543See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012544 else
12545 ac_cv_sizeof_long_long=0
12546 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012547fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012548
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012549fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012551$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012552
12553
12554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012555cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012556#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012557_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012558
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012559
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012560# The cast to long int works around a bug in the HP C Compiler
12561# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12562# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12563# This bug is HP SR number 8606223364.
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12565$as_echo_n "checking size of off_t... " >&6; }
12566if ${ac_cv_sizeof_off_t+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568else
12569 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12570
12571else
12572 if test "$ac_cv_type_off_t" = yes; then
12573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12575as_fn_error 77 "cannot compute sizeof (off_t)
12576See \`config.log' for more details" "$LINENO" 5; }
12577 else
12578 ac_cv_sizeof_off_t=0
12579 fi
12580fi
12581
12582fi
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12584$as_echo "$ac_cv_sizeof_off_t" >&6; }
12585
12586
12587
12588cat >>confdefs.h <<_ACEOF
12589#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12590_ACEOF
12591
12592
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012593SIZEOF_SHORT=$ac_cv_sizeof_short
12594SIZEOF_INT=$ac_cv_sizeof_int
12595SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012596SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012597SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12598
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012599
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012600
12601
12602
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012604$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012605if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012606 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012607else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012608 ac_cv_c_bigendian=unknown
12609 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012611/* end confdefs.h. */
12612#ifndef __APPLE_CC__
12613 not a universal capable compiler
12614 #endif
12615 typedef int dummy;
12616
12617_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012618if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012619
12620 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012621 # there are at least two -arch flags with different values.
12622 ac_arch=
12623 ac_prev=
12624 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12625 if test -n "$ac_prev"; then
12626 case $ac_word in
12627 i?86 | x86_64 | ppc | ppc64)
12628 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12629 ac_arch=$ac_word
12630 else
12631 ac_cv_c_bigendian=universal
12632 break
12633 fi
12634 ;;
12635 esac
12636 ac_prev=
12637 elif test "x$ac_word" = "x-arch"; then
12638 ac_prev=arch
12639 fi
12640 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012641fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643 if test $ac_cv_c_bigendian = unknown; then
12644 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012646/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012647#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012648 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012649
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012650int
12651main ()
12652{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012653#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12654 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12655 && LITTLE_ENDIAN)
12656 bogus endian macros
12657 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012658
12659 ;
12660 return 0;
12661}
12662_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012663if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012664 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012666/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012667#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012668 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012669
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012670int
12671main ()
12672{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012673#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012674 not big endian
12675 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012676
12677 ;
12678 return 0;
12679}
12680_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012681if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012682 ac_cv_c_bigendian=yes
12683else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012684 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012685fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012687fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12689 fi
12690 if test $ac_cv_c_bigendian = unknown; then
12691 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012693/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012694#include <limits.h>
12695
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012696int
12697main ()
12698{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012699#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12700 bogus endian macros
12701 #endif
12702
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012703 ;
12704 return 0;
12705}
12706_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012707if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012708 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012710/* end confdefs.h. */
12711#include <limits.h>
12712
12713int
12714main ()
12715{
12716#ifndef _BIG_ENDIAN
12717 not big endian
12718 #endif
12719
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'ob0cacab2004-11-30 19:00:19 -050012725 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012726else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012727 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012728fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012729rm -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 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012735 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012736 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012738/* end confdefs.h. */
12739short int ascii_mm[] =
12740 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12741 short int ascii_ii[] =
12742 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12743 int use_ascii (int i) {
12744 return ascii_mm[i] + ascii_ii[i];
12745 }
12746 short int ebcdic_ii[] =
12747 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12748 short int ebcdic_mm[] =
12749 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12750 int use_ebcdic (int i) {
12751 return ebcdic_mm[i] + ebcdic_ii[i];
12752 }
12753 extern int foo;
12754
12755int
12756main ()
12757{
12758return use_ascii (foo) == use_ebcdic (foo);
12759 ;
12760 return 0;
12761}
12762_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012763if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012764 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12765 ac_cv_c_bigendian=yes
12766 fi
12767 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12768 if test "$ac_cv_c_bigendian" = unknown; then
12769 ac_cv_c_bigendian=no
12770 else
12771 # finding both strings is unlikely to happen, but who knows?
12772 ac_cv_c_bigendian=unknown
12773 fi
12774 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012775fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012777else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012779/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012780$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012781int
12782main ()
12783{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012784
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012785 /* Are we little or big endian? From Harbison&Steele. */
12786 union
12787 {
12788 long int l;
12789 char c[sizeof (long int)];
12790 } u;
12791 u.l = 1;
12792 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012793
12794 ;
12795 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012796}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012797_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012798if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012799 ac_cv_c_bigendian=no
12800else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012801 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012802fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12804 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012805fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012806
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012807 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012808fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012810$as_echo "$ac_cv_c_bigendian" >&6; }
12811 case $ac_cv_c_bigendian in #(
12812 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012813 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012814;; #(
12815 no)
12816 ;; #(
12817 universal)
12818
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012819$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012820
12821 ;; #(
12822 *)
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012823 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012824 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012825 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012826
Chen Qi91f04682014-05-05 21:08:42 -040012827if test $cross_compiling = no; then
12828 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12829else
12830 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12831fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012832ASM_TYPES_HEADER=./asm_types.h
12833
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012834echo "/* These defines are needed for the public ext2fs.h header file */" \
12835 > public_config.h
12836if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12837 uniq tmp_config.$$ >> public_config.h
12838else
12839 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12840fi
12841if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12842 uniq tmp_config.$$ >> public_config.h
12843else
12844 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12845fi
12846rm -f tmp_config.$$
12847PUBLIC_CONFIG_HEADER=./public_config.h
12848
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012849for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012850do :
12851 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 -040012852if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012853 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012854#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012855_ACEOF
12856
12857fi
12858
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012859done
12860
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012861ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012862if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012863
12864cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012865#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012866_ACEOF
12867
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012868
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012869fi
12870
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012871{ $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 +010012872$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012873if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012874 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012875else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012877/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012878#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012879int
12880main ()
12881{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012882struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012883 ;
12884 return 0;
12885}
12886_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012887if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012888 e2fsprogs_cv_struct_st_flags=yes
12889else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012890 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012891fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893fi
12894
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012896$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012897if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012899$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012900 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012901 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012902else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012904/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012905#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012906int
12907main ()
12908{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012909struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012910 ;
12911 return 0;
12912}
12913_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012914if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012915 e2fsprogs_cv_struct_st_flags_immut=yes
12916else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012917 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012918fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920fi
12921
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012923$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012924 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012925
12926$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012927
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012928 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012929fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012930ac_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 -050012931 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012932"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012933if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012934
12935cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012936#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012937_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012938
12939fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012940
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012941if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012943$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012944if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012945 $as_echo_n "(cached) " >&6
12946else
12947 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012949/* end confdefs.h. */
12950
12951/* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12954#ifdef __cplusplus
12955extern "C"
12956#endif
12957char blkid_probe_all ();
12958int
12959main ()
12960{
12961return blkid_probe_all ();
12962 ;
12963 return 0;
12964}
12965_ACEOF
12966for ac_lib in '' blkid; do
12967 if test -z "$ac_lib"; then
12968 ac_res="none required"
12969 else
12970 ac_res=-l$ac_lib
12971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12972 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012973 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012974 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012975fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012976rm -f core conftest.err conftest.$ac_objext \
12977 conftest$ac_exeext
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012978 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012979 break
12980fi
12981done
Theodore Ts'o91d11da2012-09-06 23:01:14 -040012982if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012983
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012984else
12985 ac_cv_search_blkid_probe_all=no
12986fi
12987rm conftest.$ac_ext
12988LIBS=$ac_func_search_save_LIBS
12989fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012991$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12992ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012993if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12995
12996fi
12997
12998fi
Theodore Ts'of00948a2014-08-08 16:42:05 -040012999for 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 pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013000do :
13001 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13002ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013003if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013004 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013005#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013006_ACEOF
13007
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013008fi
13009done
13010
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013011SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013013$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013014if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013015 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013016else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013017 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013018LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013020/* end confdefs.h. */
13021
Theodore Ts'oe1052142006-10-21 21:46:47 -040013022/* Override any GCC internal prototype to avoid an error.
13023 Use char because int might match the return type of a GCC
13024 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013025#ifdef __cplusplus
13026extern "C"
13027#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013028char socket ();
13029int
13030main ()
13031{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013032return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013033 ;
13034 return 0;
13035}
13036_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013037if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013038 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013039else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013040 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013041fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013042rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013044LIBS=$ac_check_lib_save_LIBS
13045fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013047$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013048if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013049 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013050fi
13051
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013052
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013054$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013055if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013056 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013057else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013059/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013060#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013061
13062_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013064 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013065 ac_cv_have_optreset=yes
13066else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013067 ac_cv_have_optreset=no
13068fi
13069rm -f conftest*
13070
13071fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013073$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013074if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013075
13076$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013077
13078fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013079
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013080SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013081ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013082if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013083
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013084else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013086$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013087if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013088 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013089else
13090 ac_check_lib_save_LIBS=$LIBS
13091LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013093/* end confdefs.h. */
13094
13095/* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
13098#ifdef __cplusplus
13099extern "C"
13100#endif
13101char sem_init ();
13102int
13103main ()
13104{
13105return sem_init ();
13106 ;
13107 return 0;
13108}
13109_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013110if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013111 ac_cv_lib_pthread_sem_init=yes
13112else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013113 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013114fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013115rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013117LIBS=$ac_check_lib_save_LIBS
13118fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013120$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013121if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013122 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013123
13124 SEM_INIT_LIB=-lpthread
13125else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013127$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013128if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013129 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013130else
13131 ac_check_lib_save_LIBS=$LIBS
13132LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013134/* end confdefs.h. */
13135
13136/* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13139#ifdef __cplusplus
13140extern "C"
13141#endif
13142char sem_init ();
13143int
13144main ()
13145{
13146return sem_init ();
13147 ;
13148 return 0;
13149}
13150_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013151if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013152 ac_cv_lib_rt_sem_init=yes
13153else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013154 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013155fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013156rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013158LIBS=$ac_check_lib_save_LIBS
13159fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013161$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013162if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013163 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013164
13165 SEM_INIT_LIB=-lrt
13166else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013168$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013169if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013170 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013171else
13172 ac_check_lib_save_LIBS=$LIBS
13173LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013175/* end confdefs.h. */
13176
13177/* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
13180#ifdef __cplusplus
13181extern "C"
13182#endif
13183char sem_init ();
13184int
13185main ()
13186{
13187return sem_init ();
13188 ;
13189 return 0;
13190}
13191_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013192if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013193 ac_cv_lib_posix4_sem_init=yes
13194else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013195 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013196fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013197rm -f core conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013199LIBS=$ac_check_lib_save_LIBS
13200fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013202$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013203if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013204 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013205
13206 SEM_INIT_LIB=-lposix4
13207fi
13208
13209fi
13210
13211fi
13212
13213fi
13214
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013216$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013217if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013218 UNI_DIFF_OPTS=-u
13219else
13220 UNI_DIFF_OPTS=-c
13221fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013223$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013224
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013225case "$host_os" in
13226linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013227
13228$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013229
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013230 ;;
13231esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013232LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013233CYGWIN_CMT="#"
13234UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013235case "$host_os" in
13236linux*)
13237 LINUX_CMT=
13238 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013239cygwin)
13240 CYGWIN_CMT=
13241 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013242 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013243esac
13244
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013245
13246
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013247case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013248linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013249 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13250 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013251 { $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 +010013252$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013253 fi
13254 ;;
13255esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013256case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013257linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013258 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013259 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013260 { $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 +010013261$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013262 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013264$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013265 mandir=/usr/share/man
13266 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013267 fi
13268;;
13269esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013270if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013271 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013272 root_prefix="$ac_default_prefix"
13273 else
13274 root_prefix="$prefix"
13275 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013276 root_bindir=$bindir
13277 root_sbindir=$sbindir
13278 root_libdir=$libdir
13279 root_sysconfdir=$sysconfdir
13280else
13281 root_bindir='${root_prefix}/bin'
13282 root_sbindir='${root_prefix}/sbin'
13283 root_libdir='${root_prefix}/lib'
13284 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013285fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013286if test "$bindir" != '${exec_prefix}/bin'; then
13287 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013289$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013290fi
13291if test "$sbindir" != '${exec_prefix}/sbin'; then
13292 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013294$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013295fi
13296if test "$libdir" != '${exec_prefix}/lib'; then
13297 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013299$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013300fi
13301if test "$sysconfdir" != '${prefix}/etc'; then
13302 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013304$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013305fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013306
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013307
13308
13309
13310
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013311
13312# Check whether --with-multiarch was given.
13313if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013314 withval=$with_multiarch; if test "$withval" = "lib64"; then
13315 libdir=/usr/lib64
13316 root_libdir=/lib64
13317else
13318 libdir=$libdir/$withval
13319 root_libdir=$root_libdir/$withval
13320fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013321
13322fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13324$as_echo_n "checking whether we can link with -static... " >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013325if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013326 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013327else
13328 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013330/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013331#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013332int
13333main ()
13334{
Theodore Ts'oae851481997-04-29 18:13:24 +000013335fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013336 ;
13337 return 0;
13338}
13339_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013340if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013341 ac_cv_e2fsprogs_use_static=yes
13342else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013343 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013344fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013345rm -f core conftest.err conftest.$ac_objext \
13346 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013347LDFLAGS=$SAVE_LDFLAGS
13348fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013349
Theodore Ts'odefde781999-01-04 07:39:19 +000013350case "$host_os" in
13351solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013352 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013353;;
13354esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013356$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000013357LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000013358if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013359 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000013360fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013361
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013362case "$host_os" in
13363darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013365$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013366
13367$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013368
13369 ;;
13370esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013371SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13372ET_DIR=`cd ${srcdir}/lib/et; pwd`
13373
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013374
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013375if test "$cross_compiling" = yes ; then
13376 DO_TEST_SUITE=
13377else
13378 DO_TEST_SUITE=check
13379fi
13380
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013381INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13382if test -n "$CPPFLAGS" ; then
13383 INCLUDES="$INCLUDES $CPPFLAGS"
13384fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013385if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013386 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013387fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013388if test -n "$WITH_DIET_LIBC" ; then
13389 INCLUDES="$INCLUDES -D_REENTRANT"
13390fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013391
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013392
13393 MKINSTALLDIRS=
13394 if test -n "$ac_aux_dir"; then
13395 case "$ac_aux_dir" in
13396 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13397 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13398 esac
13399 fi
13400 if test -z "$MKINSTALLDIRS"; then
13401 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13402 fi
13403
13404
Theodore Ts'odd947da2005-11-09 18:37:07 -040013405if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013406 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013407 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013408fi
13409
13410
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013411test -d lib || mkdir lib
13412test -d include || mkdir include
13413test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013414test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013415for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013416 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013417 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13418 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013419 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070013420 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050013421 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13422 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050013423 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013424 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013425 resize/Makefile doc/Makefile intl/Makefile \
13426 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013427 if test -d `dirname ${srcdir}/$i` ; then
13428 outlist="$outlist $i"
13429 fi
13430done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013431ac_config_files="$ac_config_files $outlist"
13432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013433cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013434# This file is a shell script that caches the results of configure
13435# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013436# scripts and configure runs, see configure's option --config-cache.
13437# It is not useful on other systems. If it contains results you don't
13438# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013439#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013440# config.status only pays attention to the cache file if you give it
13441# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013442#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013443# `ac_cv_env_foo' variables (set or unset) will be overridden when
13444# loading this file, other *unset* `ac_cv_foo' will be assigned the
13445# following values.
13446
13447_ACEOF
13448
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013449# The following way of writing the cache mishandles newlines in values,
13450# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013451# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013452# Ultrix sh set writes to stderr and can't be redirected directly,
13453# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013454(
13455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13456 eval ac_val=\$$ac_var
13457 case $ac_val in #(
13458 *${as_nl}*)
13459 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013460 *_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 +010013461$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013462 esac
13463 case $ac_var in #(
13464 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013466 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013467 esac ;;
13468 esac
13469 done
13470
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013471 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13473 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013474 # `set' does not quote correctly, so add quotes: double-quote
13475 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013476 sed -n \
13477 "s/'/'\\\\''/g;
13478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013479 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013480 *)
13481 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013483 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013484 esac |
13485 sort
13486) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013487 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013488 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013489 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013490 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13492 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13494 :end' >>confcache
13495if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13496 if test -w "$cache_file"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013497 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013499$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013500 if test ! -f "$cache_file" || test -h "$cache_file"; then
13501 cat confcache >"$cache_file"
13502 else
13503 case $cache_file in #(
13504 */* | ?:*)
13505 mv -f confcache "$cache_file"$$ &&
13506 mv -f "$cache_file"$$ "$cache_file" ;; #(
13507 *)
13508 mv -f confcache "$cache_file" ;;
13509 esac
13510 fi
13511 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013512 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013513 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013514$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013515 fi
13516fi
13517rm -f confcache
13518
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013519test "x$prefix" = xNONE && prefix=$ac_default_prefix
13520# Let make expand exec_prefix.
13521test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13522
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013523DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013525ac_libobjs=
13526ac_ltlibobjs=
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013527U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013528for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13529 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013531 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13533 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013534 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13535 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013536done
13537LIBOBJS=$ac_libobjs
13538
13539LTLIBOBJS=$ac_ltlibobjs
13540
13541
13542
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013543
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013544: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013545ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013546ac_clean_files_save=$ac_clean_files
13547ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013548{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013549$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013550as_write_fail=0
13551cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013552#! $SHELL
13553# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013554# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013555# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013556# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013557
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013558debug=false
13559ac_cs_recheck=false
13560ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013561
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013562SHELL=\${CONFIG_SHELL-$SHELL}
13563export SHELL
13564_ASEOF
13565cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13566## -------------------- ##
13567## M4sh Initialization. ##
13568## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013569
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013570# Be more Bourne compatible
13571DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013572if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013573 emulate sh
13574 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013576 # is contrary to our usage. Disable this feature.
13577 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013578 setopt NO_GLOB_SUBST
13579else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013580 case `(set -o) 2>/dev/null` in #(
13581 *posix*) :
13582 set -o posix ;; #(
13583 *) :
13584 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013585esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013586fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013587
13588
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013589as_nl='
13590'
13591export as_nl
13592# Printing a long string crashes Solaris 7 /usr/bin/printf.
13593as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13594as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13595as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013596# Prefer a ksh shell builtin over an external printf program on Solaris,
13597# but without wasting forks for bash or zsh.
13598if test -z "$BASH_VERSION$ZSH_VERSION" \
13599 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13600 as_echo='print -r --'
13601 as_echo_n='print -rn --'
13602elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013603 as_echo='printf %s\n'
13604 as_echo_n='printf %s'
13605else
13606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13607 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13608 as_echo_n='/usr/ucb/echo -n'
13609 else
13610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13611 as_echo_n_body='eval
13612 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013613 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013614 *"$as_nl"*)
13615 expr "X$arg" : "X\\(.*\\)$as_nl";
13616 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13617 esac;
13618 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13619 '
13620 export as_echo_n_body
13621 as_echo_n='sh -c $as_echo_n_body as_echo'
13622 fi
13623 export as_echo_body
13624 as_echo='sh -c $as_echo_body as_echo'
13625fi
13626
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013627# The user is always right.
13628if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013629 PATH_SEPARATOR=:
13630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13631 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13632 PATH_SEPARATOR=';'
13633 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013634fi
13635
Theodore Ts'oe1052142006-10-21 21:46:47 -040013636
13637# IFS
13638# We need space, tab and new line, in precisely that order. Quoting is
13639# there to prevent editors from complaining about space-tab.
13640# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13641# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013642IFS=" "" $as_nl"
13643
13644# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013645as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013646case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013647 *[\\/]* ) as_myself=$0 ;;
13648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013649for as_dir in $PATH
13650do
13651 IFS=$as_save_IFS
13652 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013653 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13654 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013655IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013656
Theodore Ts'oe1052142006-10-21 21:46:47 -040013657 ;;
13658esac
13659# We did not find ourselves, most probably we were run as `sh COMMAND'
13660# in which case we are not to be found in the path.
13661if test "x$as_myself" = x; then
13662 as_myself=$0
13663fi
13664if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013665 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013666 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040013667fi
13668
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013669# Unset variables that we do not need and which cause bugs (e.g. in
13670# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13671# suppresses any "Segmentation fault" message there. '((' could
13672# trigger a bug in pdksh 5.2.14.
13673for as_var in BASH_ENV ENV MAIL MAILPATH
13674do eval test x\${$as_var+set} = xset \
13675 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040013676done
13677PS1='$ '
13678PS2='> '
13679PS4='+ '
13680
13681# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013682LC_ALL=C
13683export LC_ALL
13684LANGUAGE=C
13685export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040013686
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013687# CDPATH.
13688(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13689
13690
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013691# as_fn_error STATUS ERROR [LINENO LOG_FD]
13692# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013693# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13694# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013695# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013696as_fn_error ()
13697{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013698 as_status=$1; test $as_status -eq 0 && as_status=1
13699 if test "$4"; then
13700 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13701 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013702 fi
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013703 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013704 as_fn_exit $as_status
13705} # as_fn_error
13706
13707
13708# as_fn_set_status STATUS
13709# -----------------------
13710# Set $? to STATUS, without forking.
13711as_fn_set_status ()
13712{
13713 return $1
13714} # as_fn_set_status
13715
13716# as_fn_exit STATUS
13717# -----------------
13718# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13719as_fn_exit ()
13720{
13721 set +e
13722 as_fn_set_status $1
13723 exit $1
13724} # as_fn_exit
13725
13726# as_fn_unset VAR
13727# ---------------
13728# Portably unset VAR.
13729as_fn_unset ()
13730{
13731 { eval $1=; unset $1;}
13732}
13733as_unset=as_fn_unset
13734# as_fn_append VAR VALUE
13735# ----------------------
13736# Append the text in VALUE to the end of the definition contained in VAR. Take
13737# advantage of any shell optimizations that allow amortized linear growth over
13738# repeated appends, instead of the typical quadratic growth present in naive
13739# implementations.
13740if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13741 eval 'as_fn_append ()
13742 {
13743 eval $1+=\$2
13744 }'
13745else
13746 as_fn_append ()
13747 {
13748 eval $1=\$$1\$2
13749 }
13750fi # as_fn_append
13751
13752# as_fn_arith ARG...
13753# ------------------
13754# Perform arithmetic evaluation on the ARGs, and store the result in the
13755# global $as_val. Take advantage of shells that can avoid forks. The arguments
13756# must be portable across $(()) and expr.
13757if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13758 eval 'as_fn_arith ()
13759 {
13760 as_val=$(( $* ))
13761 }'
13762else
13763 as_fn_arith ()
13764 {
13765 as_val=`expr "$@" || test $? -eq 1`
13766 }
13767fi # as_fn_arith
13768
13769
Theodore Ts'oe1052142006-10-21 21:46:47 -040013770if expr a : '\(a\)' >/dev/null 2>&1 &&
13771 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13772 as_expr=expr
13773else
13774 as_expr=false
13775fi
13776
13777if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13778 as_basename=basename
13779else
13780 as_basename=false
13781fi
13782
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013783if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13784 as_dirname=dirname
13785else
13786 as_dirname=false
13787fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013788
Theodore Ts'oe1052142006-10-21 21:46:47 -040013789as_me=`$as_basename -- "$0" ||
13790$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13791 X"$0" : 'X\(//\)$' \| \
13792 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013793$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013794 sed '/^.*\/\([^/][^/]*\)\/*$/{
13795 s//\1/
13796 q
13797 }
13798 /^X\/\(\/\/\)$/{
13799 s//\1/
13800 q
13801 }
13802 /^X\/\(\/\).*/{
13803 s//\1/
13804 q
13805 }
13806 s/.*/./; q'`
13807
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013808# Avoid depending upon Character Ranges.
13809as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13810as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13811as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13812as_cr_digits='0123456789'
13813as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040013814
13815ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013816case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013817-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013818 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040013819 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013820 xy) ECHO_C='\c';;
13821 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13822 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013823 esac;;
13824*)
13825 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013826esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013827
13828rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040013829if test -d conf$$.dir; then
13830 rm -f conf$$.dir/conf$$.file
13831else
13832 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013833 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040013834fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013835if (echo >conf$$.file) 2>/dev/null; then
13836 if ln -s conf$$.file conf$$ 2>/dev/null; then
13837 as_ln_s='ln -s'
13838 # ... but there are two gotchas:
13839 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13840 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013841 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013842 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013843 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013844 elif ln conf$$.file conf$$ 2>/dev/null; then
13845 as_ln_s=ln
13846 else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013847 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013848 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013849else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013850 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013851fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013852rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13853rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013854
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013855
13856# as_fn_mkdir_p
13857# -------------
13858# Create "$as_dir" as a directory, including parents if necessary.
13859as_fn_mkdir_p ()
13860{
13861
13862 case $as_dir in #(
13863 -*) as_dir=./$as_dir;;
13864 esac
13865 test -d "$as_dir" || eval $as_mkdir_p || {
13866 as_dirs=
13867 while :; do
13868 case $as_dir in #(
13869 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13870 *) as_qdir=$as_dir;;
13871 esac
13872 as_dirs="'$as_qdir' $as_dirs"
13873 as_dir=`$as_dirname -- "$as_dir" ||
13874$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13875 X"$as_dir" : 'X\(//\)[^/]' \| \
13876 X"$as_dir" : 'X\(//\)$' \| \
13877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13878$as_echo X"$as_dir" |
13879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13880 s//\1/
13881 q
13882 }
13883 /^X\(\/\/\)[^/].*/{
13884 s//\1/
13885 q
13886 }
13887 /^X\(\/\/\)$/{
13888 s//\1/
13889 q
13890 }
13891 /^X\(\/\).*/{
13892 s//\1/
13893 q
13894 }
13895 s/.*/./; q'`
13896 test -d "$as_dir" && break
13897 done
13898 test -z "$as_dirs" || eval "mkdir $as_dirs"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013899 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013900
13901
13902} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013903if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013904 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013905else
13906 test -d ./-p && rmdir ./-p
13907 as_mkdir_p=false
13908fi
13909
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013910
13911# as_fn_executable_p FILE
13912# -----------------------
13913# Test if FILE is an executable regular file.
13914as_fn_executable_p ()
13915{
13916 test -f "$1" && test -x "$1"
13917} # as_fn_executable_p
13918as_test_x='test -x'
13919as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013920
13921# Sed expression to map a string onto a valid CPP name.
13922as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13923
13924# Sed expression to map a string onto a valid variable name.
13925as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13926
13927
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013928exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013929## ----------------------------------- ##
13930## Main body of $CONFIG_STATUS script. ##
13931## ----------------------------------- ##
13932_ASEOF
13933test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013934
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13936# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013937# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040013938# values after options handling.
13939ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013940This file was extended by $as_me, which was
Theodore Ts'o91d11da2012-09-06 23:01:14 -040013941generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013942
13943 CONFIG_FILES = $CONFIG_FILES
13944 CONFIG_HEADERS = $CONFIG_HEADERS
13945 CONFIG_LINKS = $CONFIG_LINKS
13946 CONFIG_COMMANDS = $CONFIG_COMMANDS
13947 $ $0 $@
13948
Theodore Ts'oe1052142006-10-21 21:46:47 -040013949on `(hostname || uname -n) 2>/dev/null | sed 1q`
13950"
13951
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013952_ACEOF
13953
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013954case $ac_config_files in *"
13955"*) set x $ac_config_files; shift; ac_config_files=$*;;
13956esac
13957
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013958case $ac_config_headers in *"
13959"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13960esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013961
13962
13963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013964# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013965config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013966config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013967config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013968
Theodore Ts'oe1052142006-10-21 21:46:47 -040013969_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013970
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013972ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013973\`$as_me' instantiates files and other configuration actions
13974from templates according to the current configuration. Unless the files
13975and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013976
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013977Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013978
13979 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013980 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040013981 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013982 -q, --quiet, --silent
13983 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013984 -d, --debug don't remove temporary files
13985 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013986 --file=FILE[:TEMPLATE]
13987 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013988 --header=FILE[:TEMPLATE]
13989 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013990
13991Configuration files:
13992$config_files
13993
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013994Configuration headers:
13995$config_headers
13996
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013997Configuration commands:
13998$config_commands
13999
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014000Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014001
Theodore Ts'oe1052142006-10-21 21:46:47 -040014002_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014004ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014005ac_cs_version="\\
14006config.status
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014007configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014008 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014009
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014010Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014011This config.status script is free software; the Free Software Foundation
14012gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014013
14014ac_pwd='$ac_pwd'
14015srcdir='$srcdir'
14016INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014017MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014018AWK='$AWK'
14019test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014020_ACEOF
14021
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014024ac_need_defaults=:
14025while test $# != 0
14026do
14027 case $1 in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014028 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014029 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14030 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014031 ac_shift=:
14032 ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014033 --*=)
14034 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14035 ac_optarg=
14036 ac_shift=:
14037 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014038 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014039 ac_option=$1
14040 ac_optarg=$2
14041 ac_shift=shift
14042 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014043 esac
14044
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014045 case $ac_option in
14046 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014047 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14048 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014049 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014050 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014051 --config | --confi | --conf | --con | --co | --c )
14052 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014053 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014054 debug=: ;;
14055 --file | --fil | --fi | --f )
14056 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014057 case $ac_optarg in
14058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014059 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014060 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014061 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014062 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014063 --header | --heade | --head | --hea )
14064 $ac_shift
14065 case $ac_optarg in
14066 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14067 esac
14068 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14069 ac_need_defaults=false;;
14070 --he | --h)
14071 # Conflict between --help and --header
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014072 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014073Try \`$0 --help' for more information.";;
14074 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014075 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14077 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14078 ac_cs_silent=: ;;
14079
14080 # This is an error.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014081 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014082Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014083
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014084 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014085 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014086
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014087 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014088 shift
14089done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014090
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014091ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014092
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014093if $ac_cs_silent; then
14094 exec 6>/dev/null
14095 ac_configure_extra_args="$ac_configure_extra_args --silent"
14096fi
14097
14098_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014100if \$ac_cs_recheck; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014101 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014102 shift
14103 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14104 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014105 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014106 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014107fi
14108
14109_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014111exec 5>>config.log
14112{
14113 echo
14114 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14115## Running $as_me. ##
14116_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014117 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014118} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014119
Theodore Ts'oe1052142006-10-21 21:46:47 -040014120_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014122#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014123# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014124#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014125# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014126 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014127 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014128 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014129 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14130 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014131
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014132
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014133_ACEOF
14134
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014136
14137# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014138for ac_config_target in $ac_config_targets
14139do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014140 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014141 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014142 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014143 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14144
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014145 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014146 esac
14147done
14148
Theodore Ts'oe1052142006-10-21 21:46:47 -040014149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014150# If the user did not use the arguments to specify the items to instantiate,
14151# then the envvar interface is used. Set only those that are not.
14152# We use the long form for the default assignment because of an extremely
14153# bizarre bug on SunOS 4.1.3.
14154if $ac_need_defaults; then
14155 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014156 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014157 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14158fi
14159
14160# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014161# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014162# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014163# Hook for its removal unless debugging.
14164# Note that there is a small window in which the directory will not be cleaned:
14165# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014166$debug ||
14167{
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014168 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014169 trap 'exit_status=$?
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014170 : "${ac_tmp:=$tmp}"
14171 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014172' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014173 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014174}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014175# Create a (secure) tmp directory for tmp files.
14176
14177{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014178 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014179 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014180} ||
14181{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014182 tmp=./conf$$-$RANDOM
14183 (umask 077 && mkdir "$tmp")
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014184} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14185ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014186
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014187# Set up the scripts for CONFIG_FILES section.
14188# No need to generate them if there are no CONFIG_FILES.
14189# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014190if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014191
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014192if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14193 ac_cs_awk_getline=:
14194 ac_cs_awk_pipe_init=
14195 ac_cs_awk_read_file='
14196 while ((getline aline < (F[key])) > 0)
14197 print(aline)
14198 close(F[key])'
14199 ac_cs_awk_pipe_fini=
14200else
14201 ac_cs_awk_getline=false
14202 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14203 ac_cs_awk_read_file='
14204 print "|#_!!_#|"
14205 print "cat " F[key] " &&"
14206 '$ac_cs_awk_pipe_init
14207 # The final `:' finishes the AND list.
14208 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14209fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014210ac_cr=`echo X | tr X '\015'`
14211# On cygwin, bash can eat \r inside `` if the user requested igncr.
14212# But we know of no other shell where ac_cr would be empty at this
14213# point, so we can use a bashism as a fallback.
14214if test "x$ac_cr" = x; then
14215 eval ac_cr=\$\'\\r\'
14216fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014217ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14218if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014219 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014220else
14221 ac_cs_awk_cr=$ac_cr
14222fi
14223
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014224echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014225_ACEOF
14226
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014227# Create commands to substitute file output variables.
14228{
14229 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014230 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014231 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14232 echo "_ACAWK" &&
14233 echo "_ACEOF"
14234} >conf$$files.sh &&
14235. ./conf$$files.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014237rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014238
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014239{
14240 echo "cat >conf$$subs.awk <<_ACEOF" &&
14241 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14242 echo "_ACEOF"
14243} >conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014244 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14245ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014246ac_delim='%!_!# '
14247for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014248 . ./conf$$subs.sh ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014249 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014250
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014251 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14252 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014253 break
14254 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014255 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014256 else
14257 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014258 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014259done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014260rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014261
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014263cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014264_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014265sed -n '
14266h
14267s/^/S["/; s/!.*/"]=/
14268p
14269g
14270s/^[^!]*!//
14271:repl
14272t repl
14273s/'"$ac_delim"'$//
14274t delim
14275:nl
14276h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014277s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014278t more1
14279s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14280p
14281n
14282b repl
14283:more1
14284s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14285p
14286g
14287s/.\{148\}//
14288t nl
14289:delim
14290h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014291s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014292t more2
14293s/["\\]/\\&/g; s/^/"/; s/$/"/
14294p
14295b
14296:more2
14297s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14298p
14299g
14300s/.\{148\}//
14301t delim
14302' <conf$$subs.awk | sed '
14303/^[^""]/{
14304 N
14305 s/\n//
14306}
14307' >>$CONFIG_STATUS || ac_write_fail=1
14308rm -f conf$$subs.awk
14309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14310_ACAWK
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014311cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014312 for (key in S) S_is_set[key] = 1
14313 FS = ""
14314 \$ac_cs_awk_pipe_init
14315}
14316{
14317 line = $ 0
14318 nfields = split(line, field, "@")
14319 substed = 0
14320 len = length(field[1])
14321 for (i = 2; i < nfields; i++) {
14322 key = field[i]
14323 keylen = length(key)
14324 if (S_is_set[key]) {
14325 value = S[key]
14326 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14327 len += length(value) + length(field[++i])
14328 substed = 1
14329 } else
14330 len += 1 + keylen
14331 }
14332 if (nfields == 3 && !substed) {
14333 key = field[2]
14334 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14335 \$ac_cs_awk_read_file
14336 next
14337 }
14338 }
14339 print line
14340}
14341\$ac_cs_awk_pipe_fini
14342_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014343_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14345if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14346 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14347else
14348 cat
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014349fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14350 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014351_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014352
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014353# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14354# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014355# trailing colons and then remove the whole line if VPATH becomes empty
14356# (actually we leave an empty line to preserve line numbers).
14357if test "x$srcdir" = x.; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014358 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14359h
14360s///
14361s/^/:/
14362s/[ ]*$/:/
14363s/:\$(srcdir):/:/g
14364s/:\${srcdir}:/:/g
14365s/:@srcdir@:/:/g
14366s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014367s/:*$//
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014368x
14369s/\(=[ ]*\).*/\1/
14370G
14371s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014372s/^[^=]*=[ ]*$//
14373}'
14374fi
14375
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014377fi # test -n "$CONFIG_FILES"
14378
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014379# Set up the scripts for CONFIG_HEADERS section.
14380# No need to generate them if there are no CONFIG_HEADERS.
14381# This happens for instance with `./config.status Makefile'.
14382if test -n "$CONFIG_HEADERS"; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014383cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014384BEGIN {
14385_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014386
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014387# Transform confdefs.h into an awk script `defines.awk', embedded as
14388# here-document in config.status, that substitutes the proper values into
14389# config.h.in to produce config.h.
14390
14391# Create a delimiter string that does not exist in confdefs.h, to ease
14392# handling of long lines.
14393ac_delim='%!_!# '
14394for ac_last_try in false false :; do
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014395 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14396 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014397 break
14398 elif $ac_last_try; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014399 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014400 else
14401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14402 fi
14403done
14404
14405# For the awk script, D is an array of macro values keyed by name,
14406# likewise P contains macro parameters if any. Preserve backslash
14407# newline sequences.
14408
14409ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14410sed -n '
14411s/.\{148\}/&'"$ac_delim"'/g
14412t rset
14413:rset
14414s/^[ ]*#[ ]*define[ ][ ]*/ /
14415t def
14416d
14417:def
14418s/\\$//
14419t bsnl
14420s/["\\]/\\&/g
14421s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14422D["\1"]=" \3"/p
14423s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14424d
14425:bsnl
14426s/["\\]/\\&/g
14427s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14428D["\1"]=" \3\\\\\\n"\\/p
14429t cont
14430s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14431t cont
14432d
14433:cont
14434n
14435s/.\{148\}/&'"$ac_delim"'/g
14436t clear
14437:clear
14438s/\\$//
14439t bsnlc
14440s/["\\]/\\&/g; s/^/"/; s/$/"/p
14441d
14442:bsnlc
14443s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14444b cont
14445' <confdefs.h | sed '
14446s/'"$ac_delim"'/"\\\
14447"/g' >>$CONFIG_STATUS || ac_write_fail=1
14448
14449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14450 for (key in D) D_is_set[key] = 1
14451 FS = ""
14452}
14453/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14454 line = \$ 0
14455 split(line, arg, " ")
14456 if (arg[1] == "#") {
14457 defundef = arg[2]
14458 mac1 = arg[3]
14459 } else {
14460 defundef = substr(arg[1], 2)
14461 mac1 = arg[2]
14462 }
14463 split(mac1, mac2, "(") #)
14464 macro = mac2[1]
14465 prefix = substr(line, 1, index(line, defundef) - 1)
14466 if (D_is_set[macro]) {
14467 # Preserve the white space surrounding the "#".
14468 print prefix "define", macro P[macro] D[macro]
14469 next
14470 } else {
14471 # Replace #undef with comments. This is necessary, for example,
14472 # in the case of _POSIX_SOURCE, which is predefined and required
14473 # on some systems where configure will not decide to define it.
14474 if (defundef == "undef") {
14475 print "/*", prefix defundef, macro, "*/"
14476 next
14477 }
14478 }
14479}
14480{ print }
14481_ACAWK
14482_ACEOF
14483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014484 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014485fi # test -n "$CONFIG_HEADERS"
14486
14487
14488eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014489shift
14490for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014491do
14492 case $ac_tag in
14493 :[FHLC]) ac_mode=$ac_tag; continue;;
14494 esac
14495 case $ac_mode$ac_tag in
14496 :[FHL]*:*);;
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014497 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014498 :[FH]-) ac_tag=-:-;;
14499 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14500 esac
14501 ac_save_IFS=$IFS
14502 IFS=:
14503 set x $ac_tag
14504 IFS=$ac_save_IFS
14505 shift
14506 ac_file=$1
14507 shift
14508
14509 case $ac_mode in
14510 :L) ac_source=$1;;
14511 :[FH])
14512 ac_file_inputs=
14513 for ac_f
14514 do
14515 case $ac_f in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014516 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014517 *) # Look for the file first in the build tree, then in the source tree
14518 # (if the path is not absolute). The absolute path cannot be DOS-style,
14519 # because $ac_f cannot contain `:'.
14520 test -f "$ac_f" ||
14521 case $ac_f in
14522 [\\/$]*) false;;
14523 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14524 esac ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014525 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014526 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014527 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014528 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014529 done
14530
14531 # Let's still pretend it is `configure' which instantiates (i.e., don't
14532 # use $as_me), people would be surprised to read:
14533 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014534 configure_input='Generated from '`
14535 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14536 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014537 if test x"$ac_file" != x-; then
14538 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014540$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014541 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014542 # Neutralize special characters interpreted by sed in replacement strings.
14543 case $configure_input in #(
14544 *\&* | *\|* | *\\* )
14545 ac_sed_conf_input=`$as_echo "$configure_input" |
14546 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14547 *) ac_sed_conf_input=$configure_input;;
14548 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014549
14550 case $ac_tag in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014551 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14552 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014553 esac
14554 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014555 esac
14556
Theodore Ts'oe1052142006-10-21 21:46:47 -040014557 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014558$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14559 X"$ac_file" : 'X\(//\)[^/]' \| \
14560 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040014561 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014562$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14564 s//\1/
14565 q
14566 }
14567 /^X\(\/\/\)[^/].*/{
14568 s//\1/
14569 q
14570 }
14571 /^X\(\/\/\)$/{
14572 s//\1/
14573 q
14574 }
14575 /^X\(\/\).*/{
14576 s//\1/
14577 q
14578 }
14579 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014580 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014581 ac_builddir=.
14582
Theodore Ts'oe1052142006-10-21 21:46:47 -040014583case "$ac_dir" in
14584.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14585*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014586 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014587 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014588 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014589 case $ac_top_builddir_sub in
14590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14592 esac ;;
14593esac
14594ac_abs_top_builddir=$ac_pwd
14595ac_abs_builddir=$ac_pwd$ac_dir_suffix
14596# for backward compatibility:
14597ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014598
14599case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014600 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014601 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014602 ac_top_srcdir=$ac_top_builddir_sub
14603 ac_abs_top_srcdir=$ac_pwd ;;
14604 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014605 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014606 ac_top_srcdir=$srcdir
14607 ac_abs_top_srcdir=$srcdir ;;
14608 *) # Relative name.
14609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14610 ac_top_srcdir=$ac_top_build_prefix$srcdir
14611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014612esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014613ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014614
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014615
Theodore Ts'oe1052142006-10-21 21:46:47 -040014616 case $ac_mode in
14617 :F)
14618 #
14619 # CONFIG_FILE
14620 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014621
14622 case $INSTALL in
14623 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014624 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014625 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014626 ac_MKDIR_P=$MKDIR_P
14627 case $MKDIR_P in
14628 [\\/$]* | ?:[\\/]* ) ;;
14629 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14630 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014631_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014632
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014634# If the template does not know about datarootdir, expand it.
14635# FIXME: This hack should be removed a few years after 2.60.
14636ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014637ac_sed_dataroot='
14638/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014639 p
14640 q
14641}
14642/@datadir@/p
14643/@docdir@/p
14644/@infodir@/p
14645/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014646/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014647case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014648*datarootdir*) ac_datarootdir_seen=yes;;
14649*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014650 { $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 +010014651$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014652_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014654 ac_datarootdir_hack='
14655 s&@datadir@&$datadir&g
14656 s&@docdir@&$docdir&g
14657 s&@infodir@&$infodir&g
14658 s&@localedir@&$localedir&g
14659 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014660 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014661esac
14662_ACEOF
14663
14664# Neutralize VPATH when `$srcdir' = `.'.
14665# Shell code in configure.ac might set extrasub.
14666# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14668ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014669$extrasub
14670_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014672:t
14673/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014674s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014675s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014676s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014677s&@srcdir@&$ac_srcdir&;t t
14678s&@abs_srcdir@&$ac_abs_srcdir&;t t
14679s&@top_srcdir@&$ac_top_srcdir&;t t
14680s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14681s&@builddir@&$ac_builddir&;t t
14682s&@abs_builddir@&$ac_abs_builddir&;t t
14683s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14684s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040014685s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014686$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014687"
14688eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14689if $ac_cs_awk_getline; then
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014690 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014691else
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014692 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14693fi \
14694 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014695
Theodore Ts'oe1052142006-10-21 21:46:47 -040014696test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014697 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14699 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014700 { $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 -040014701which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014702$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014703which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014704
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014705 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014706 case $ac_file in
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014707 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14708 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014709 esac \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014711 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014712 :H)
14713 #
14714 # CONFIG_HEADER
14715 #
14716 if test x"$ac_file" != x-; then
14717 {
14718 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14720 } >"$ac_tmp/config.h" \
14721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14722 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014723 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14724$as_echo "$as_me: $ac_file is unchanged" >&6;}
14725 else
14726 rm -f "$ac_file"
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014727 mv "$ac_tmp/config.h" "$ac_file" \
14728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014729 fi
14730 else
14731 $as_echo "/* $configure_input */" \
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14733 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014734 fi
14735 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014736
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014737 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014738$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014739 ;;
14740 esac
14741
14742
14743 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040014744 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014745 for ac_file in $CONFIG_FILES; do
14746 # Support "outfile[:infile[:infile...]]"
14747 case "$ac_file" in
14748 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000014749 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014750 # PO directories have a Makefile.in generated from Makefile.in.in.
14751 case "$ac_file" in */Makefile.in)
14752 # Adjust a relative srcdir.
14753 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040014754 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014755 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14756 # In autoconf-2.13 it is called $ac_given_srcdir.
14757 # In autoconf-2.50 it is called $srcdir.
14758 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14759 case "$ac_given_srcdir" in
14760 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14761 /*) top_srcdir="$ac_given_srcdir" ;;
14762 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14763 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014764 # Treat a directory as a PO directory if and only if it has a
14765 # POTFILES.in file. This allows packages to have multiple PO
14766 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014767 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14768 rm -f "$ac_dir/POTFILES"
14769 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040014770 gt_tab=`printf '\t'`
14771 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 -050014772 POMAKEFILEDEPS="POTFILES.in"
14773 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014774 # on $ac_dir but don't depend on user-specified configuration
14775 # parameters.
14776 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14777 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014778 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014779 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14780 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040014781 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14782 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014783 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014784 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14785 else
14786 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040014787 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014788 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014789 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014790 # Compute POFILES
14791 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14792 # Compute UPDATEPOFILES
14793 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14794 # Compute DUMMYPOFILES
14795 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14796 # Compute GMOFILES
14797 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014798 case "$ac_given_srcdir" in
14799 .) srcdirpre= ;;
14800 *) srcdirpre='$(srcdir)/' ;;
14801 esac
14802 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014803 UPDATEPOFILES=
14804 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014805 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014806 for lang in $ALL_LINGUAS; do
14807 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014808 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14809 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014810 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014811 done
14812 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14813 # environment variable.
14814 INST_LINGUAS=
14815 if test -n "$ALL_LINGUAS"; then
14816 for presentlang in $ALL_LINGUAS; do
14817 useit=no
14818 if test "%UNSET%" != "$LINGUAS"; then
14819 desiredlanguages="$LINGUAS"
14820 else
14821 desiredlanguages="$ALL_LINGUAS"
14822 fi
14823 for desiredlang in $desiredlanguages; do
14824 # Use the presentlang catalog if desiredlang is
14825 # a. equal to presentlang, or
14826 # b. a variant of presentlang (because in this case,
14827 # presentlang can be used as a fallback for messages
14828 # which are not translated in the desiredlang catalog).
14829 case "$desiredlang" in
14830 "$presentlang"*) useit=yes;;
14831 esac
14832 done
14833 if test $useit = yes; then
14834 INST_LINGUAS="$INST_LINGUAS $presentlang"
14835 fi
14836 done
14837 fi
14838 CATALOGS=
14839 if test -n "$INST_LINGUAS"; then
14840 for lang in $INST_LINGUAS; do
14841 CATALOGS="$CATALOGS $lang.gmo"
14842 done
14843 fi
14844 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014845 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 -040014846 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14847 if test -f "$f"; then
14848 case "$f" in
14849 *.orig | *.bak | *~) ;;
14850 *) cat "$f" >> "$ac_dir/Makefile" ;;
14851 esac
14852 fi
14853 done
14854 fi
14855 ;;
14856 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014857 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014858
Theodore Ts'oe1052142006-10-21 21:46:47 -040014859 esac
14860done # for ac_tag
14861
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014862
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014863as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014864_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014865ac_clean_files=$ac_clean_files_save
14866
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014867test $ac_write_fail = 0 ||
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014868 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014869
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014870
14871# configure is writing to config.log, and then calls config.status.
14872# config.status does its own redirection, appending to config.log.
14873# Unfortunately, on DOS this fails, as config.log is still kept open
14874# by configure, so config.status won't be able to write to it; its
14875# output is simply discarded. So we exec the FD to /dev/null,
14876# effectively closing config.log, so it can be properly (re)opened and
14877# appended to by config.status. When coming back to configure, we
14878# need to make the FD available again.
14879if test "$no_create" != yes; then
14880 ac_cs_success=:
14881 ac_config_status_args=
14882 test "$silent" = yes &&
14883 ac_config_status_args="$ac_config_status_args --quiet"
14884 exec 5>/dev/null
14885 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14886 exec 5>>config.log
14887 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14888 # would make configure fail if this is the last instruction.
Theodore Ts'o91d11da2012-09-06 23:01:14 -040014889 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014890fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014891if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014893$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14894fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014895
Theodore Ts'oee683a12005-02-05 15:53:56 -050014896if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi