blob: 7ee63231ab53512a6ad237f95da99d9d340d624c [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018 emulate sh
19 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040023 setopt NO_GLOB_SUBST
24else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040030esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032
33
Scott James Remnant39fd3d42009-05-14 13:03:25 +010034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010048 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050058 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010059 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100090as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050091case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500101
Theodore Ts'oe1052142006-10-21 21:46:47 -0400102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500111 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400112fi
113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500356
357
358} # as_fn_mkdir_p
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500414 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000415 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500416 as_fn_exit $as_status
417} # as_fn_error
418
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437
Theodore Ts'oe1052142006-10-21 21:46:47 -0400438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100442$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463
464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500474 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500482 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500487
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500496 # Exit status is that of the last command.
497 exit
498}
499
Theodore Ts'oe1052142006-10-21 21:46:47 -0400500ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500501case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500503 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400508 esac;;
509*)
510 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500512
513rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100518 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000526 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000528 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000535 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500539
540if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500541 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559
560# Name of the host.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565#
566# Initializations.
567#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000568ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400569ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500570ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400571LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500583PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <sys/types.h>
591#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400592#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593# include <sys/stat.h>
594#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400595#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596# include <stdlib.h>
597# include <stddef.h>
598#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400599# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600# include <stdlib.h>
601# endif
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500605# include <memory.h>
606# endif
607# include <string.h>
608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500610# include <strings.h>
611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400614#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400618#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500619# include <unistd.h>
620#endif"
621
Theodore Ts'o93613952014-07-03 23:44:13 -0400622gt_needs=
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400623ac_header_list=
Theodore Ts'o93613952014-07-03 23:44:13 -0400624gl_use_threads_default=
625ac_func_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100626ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400627LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100628BUILD_LDFLAGS
629BUILD_CFLAGS
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -0400630MKINSTALLDIRS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400631INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100632DO_TEST_SUITE
633ET_DIR
634SS_DIR
635LDFLAG_STATIC
636root_sysconfdir
637root_libdir
638root_sbindir
639root_bindir
640root_prefix
641UNIX_CMT
642CYGWIN_CMT
643LINUX_CMT
644UNI_DIFF_OPTS
645SEM_INIT_LIB
Darrick J. Wongb291c112014-09-13 15:12:46 -0700646MAGIC_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100647SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400648SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100649SIZEOF_LONG_LONG
650SIZEOF_LONG
651SIZEOF_INT
652SIZEOF_SHORT
653BUILD_CC
654MAKEINFO
655STRIP
656AR
657LDCONFIG
658PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100659AWK
660CHMOD
661RM
662CP
663MV
664LN_S
665LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400666ifNotGNUmake
667ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100668BINARY_TYPE
669POSUB
670LTLIBINTL
671LIBINTL
672INTLLIBS
673INTL_LIBTOOL_SUFFIX_PREFIX
674INTLOBJS
675GENCAT
676INSTOBJEXT
677DATADIRNAME
678CATOBJEXT
679USE_INCLUDED_LIBINTL
680BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400681LTLIBC
682WINDRES
683WOE32
684WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100685HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400686HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100687HAVE_SNPRINTF
688HAVE_ASPRINTF
689HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400690INTL_DEFAULT_VERBOSITY
691INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100692GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400693INTLBISON
694LTLIBICONV
695LIBICONV
696LTLIBMULTITHREAD
697LIBMULTITHREAD
698LTLIBTHREAD
699LIBTHREAD
700LIBPTH_PREFIX
701LTLIBPTH
702LIBPTH
703PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100704ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400705HAVE_VISIBILITY
706CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100707RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400708GLIBC2
709XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100710MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400711XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100712XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400713GMSGFMT_015
714MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100715GMSGFMT
716MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400717GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100718USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400719SED
720MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724SET_MAKE
725VERSION
726PACKAGE
727GETTEXT_PACKAGE
728UUIDD_CMT
729E2INITRD_MAN
730E2INITRD_PROG
731FSCK_MAN
732FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500733DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100734RESIZER_CMT
735IMAGER_CMT
736DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700737QUOTA_CMT
738DEPPROFILED_LIBQUOTA
739PROFILED_LIBQUOTA
740DEPSTATIC_LIBQUOTA
741STATIC_LIBQUOTA
742DEPLIBQUOTA
743LIBQUOTA
Eric Sandeenf5589f42013-10-14 08:54:15 -0400744QUOTA_MAN_COMMENT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100745BLKID_CMT
746DEPPROFILED_LIBBLKID
747PROFILED_LIBBLKID
748DEPSTATIC_LIBBLKID
749STATIC_LIBBLKID
750DEPLIBBLKID
751LIBBLKID
752UUID_CMT
753DEPPROFILED_LIBUUID
754PROFILED_LIBUUID
755DEPSTATIC_LIBUUID
756STATIC_LIBUUID
757DEPLIBUUID
758LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400759PKG_CONFIG_LIBDIR
760PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100761PKG_CONFIG
762TEST_IO_CMT
763PRIVATE_LIBS_CMT
764LDFLAG_DYNAMIC
765PROFILED_LIB_EXT
766STATIC_LIB_EXT
767LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100768PROFILE_CMT
769BSDLIB_CMT
770ELF_CMT
771HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400772Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400773ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400774E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400775LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400776SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400777LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100778MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400779EGREP
780GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100781CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400782RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500783DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100784OBJEXT
785EXEEXT
786ac_ct_CC
787CPPFLAGS
788LDFLAGS
789CFLAGS
790CC
791host_os
792host_vendor
793host_cpu
794host
795build_os
796build_vendor
797build_cpu
798build
799E2FSPROGS_PKGVER
800E2FSPROGS_VERSION
801E2FSPROGS_DAY
802E2FSPROGS_MONTH
803E2FSPROGS_YEAR
804target_alias
805host_alias
806build_alias
807LIBS
808ECHO_T
809ECHO_N
810ECHO_C
811DEFS
812mandir
813localedir
814libdir
815psdir
816pdfdir
817dvidir
818htmldir
819infodir
820docdir
821oldincludedir
822includedir
823localstatedir
824sharedstatedir
825sysconfdir
826datadir
827datarootdir
828libexecdir
829sbindir
830bindir
831program_transform_name
832prefix
833exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500834PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100835PACKAGE_BUGREPORT
836PACKAGE_STRING
837PACKAGE_VERSION
838PACKAGE_TARNAME
839PACKAGE_NAME
840PATH_SEPARATOR
841SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400842ac_subst_files='MCONFIG
843MAKEFILE_ELF
844MAKEFILE_BSDLIB
845MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400846MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400847ASM_TYPES_HEADER
848PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100849ac_user_opts='
850enable_option_checking
851with_diet_libc
852with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100853with_ccopts
854with_ldopts
855with_root_prefix
856enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400857enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400858enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400859enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400860enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400861enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100862enable_compression
863enable_htree
864enable_elf_shlibs
865enable_bsd_shlibs
866enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500867enable_gcov
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100868enable_jbd_debug
869enable_blkid_debug
870enable_testio_debug
871enable_libuuid
872enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500873enable_quota
Theodore Ts'o3df60142013-06-16 16:14:40 -0400874enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100875enable_debugfs
876enable_imager
877enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500878enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100879enable_fsck
880enable_e2initrd_helper
881enable_tls
882enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000883enable_mmp
Tony Breeds1625bf42012-07-30 14:44:12 -0400884enable_bmap_stats
885enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100886enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400887enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100888with_gnu_ld
889enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400890with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100891with_libiconv_prefix
892with_included_gettext
893with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400894with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100895'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400896 ac_precious_vars='build_alias
897host_alias
898target_alias
899CC
900CFLAGS
901LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400902LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400903CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400904CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400905PKG_CONFIG
906PKG_CONFIG_PATH
907PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400908
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000909
910# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500911ac_init_help=
912ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100913ac_unrecognized_opts=
914ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000915# The variables have the same names as the options, with
916# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500917cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000918exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000920no_recursion=
921prefix=NONE
922program_prefix=NONE
923program_suffix=NONE
924program_transform_name=s,x,x,
925silent=
926site=
927srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000928verbose=
929x_includes=NONE
930x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500931
932# Installation directory options.
933# These are left unexpanded so users can "make install exec_prefix=/foo"
934# and all the variables that are supposed to be based on exec_prefix
935# by default will actually change.
936# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400937# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000938bindir='${exec_prefix}/bin'
939sbindir='${exec_prefix}/sbin'
940libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400941datarootdir='${prefix}/share'
942datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000943sysconfdir='${prefix}/etc'
944sharedstatedir='${prefix}/com'
945localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000946includedir='${prefix}/include'
947oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400948docdir='${datarootdir}/doc/${PACKAGE}'
949infodir='${datarootdir}/info'
950htmldir='${docdir}'
951dvidir='${docdir}'
952pdfdir='${docdir}'
953psdir='${docdir}'
954libdir='${exec_prefix}/lib'
955localedir='${datarootdir}/locale'
956mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000957
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000958ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400959ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000960for ac_option
961do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400964 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000965 ac_prev=
966 continue
967 fi
968
Theodore Ts'oe1052142006-10-21 21:46:47 -0400969 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 *=) ac_optarg= ;;
972 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400973 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000974
975 # Accept the important Cygnus configure options, so we can diagnose typos.
976
Theodore Ts'oe1052142006-10-21 21:46:47 -0400977 case $ac_dashdash$ac_option in
978 --)
979 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000980
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 ac_prev=bindir ;;
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500984 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000985
986 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500987 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500989 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000990
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500996 cache_file=$ac_optarg ;;
997
998 --config-cache | -C)
999 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001000
Theodore Ts'oe1052142006-10-21 21:46:47 -04001001 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001002 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001004 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001005
Theodore Ts'oe1052142006-10-21 21:46:47 -04001006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1012
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001013 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001015 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001017 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1021 *"
1022"enable_$ac_useropt"
1023"*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001028
1029 -docdir | --docdir | --docdi | --doc | --do)
1030 ac_prev=docdir ;;
1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032 docdir=$ac_optarg ;;
1033
1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035 ac_prev=dvidir ;;
1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001038
1039 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001041 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001043 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048"enable_$ac_useropt"
1049"*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001054
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001062 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001063
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1066 with_gas=yes ;;
1067
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001074
1075 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001076 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001077 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001078 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001079
Theodore Ts'oe1052142006-10-21 21:46:47 -04001080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 ac_prev=htmldir ;;
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 | --ht=*)
1084 htmldir=$ac_optarg ;;
1085
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001091 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001092
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 ac_prev=infodir ;;
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001096 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001097
1098 -libdir | --libdir | --libdi | --libd)
1099 ac_prev=libdir ;;
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001101 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001102
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001108 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001109
Theodore Ts'oe1052142006-10-21 21:46:47 -04001110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1114
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001115 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001116 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001120 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001121
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 ac_prev=mandir ;;
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001125 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001126
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1129 with_fp=no ;;
1130
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001132 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001133 no_create=yes ;;
1134
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 no_recursion=yes ;;
1138
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001146 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001147
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 ac_prev=prefix ;;
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001151 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001152
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001158 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001159
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001165 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001166
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001182 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001183
Theodore Ts'oe1052142006-10-21 21:46:47 -04001184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 ac_prev=pdfdir ;;
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1188
1189 -psdir | --psdir | --psdi | --psd | --ps)
1190 ac_prev=psdir ;;
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 psdir=$ac_optarg ;;
1193
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1196 silent=yes ;;
1197
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 ac_prev=sbindir ;;
1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001202 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001203
1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206 | --sharedst | --shareds | --shared | --share | --shar \
1207 | --sha | --sh)
1208 ac_prev=sharedstatedir ;;
1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001213 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001214
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001215 -site | --site | --sit)
1216 ac_prev=site ;;
1217 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001218 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001219
1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 ac_prev=srcdir ;;
1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001223 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001224
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226 | --syscon | --sysco | --sysc | --sys | --sy)
1227 ac_prev=sysconfdir ;;
1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001230 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001231
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001232 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001233 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001235 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001236
1237 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238 verbose=yes ;;
1239
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001240 -version | --version | --versio | --versi | --vers | -V)
1241 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001242
1243 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001245 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001247 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252"with_$ac_useropt"
1253"*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001258
1259 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001261 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001263 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1267 *"
1268"with_$ac_useropt"
1269"*) ;;
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1272 esac
1273 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001274
1275 --x)
1276 # Obsolete; use --with-x.
1277 with_x=yes ;;
1278
1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280 | --x-incl | --x-inc | --x-in | --x-i)
1281 ac_prev=x_includes ;;
1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001284 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001285
1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288 ac_prev=x_libraries ;;
1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001291 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001292
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001293 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1294Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001295 ;;
1296
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001297 *=*)
1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001300 case $ac_envvar in #(
1301 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001302 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001303 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001304 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001305 export $ac_envvar ;;
1306
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001307 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001308 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001312 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001313 ;;
1314
1315 esac
1316done
1317
1318if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001319 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001320 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001321fi
1322
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001323if test -n "$ac_unrecognized_opts"; then
1324 case $enable_option_checking in
1325 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001326 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328 esac
1329fi
1330
1331# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001332for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001336do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001337 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001338 # Remove trailing slashes.
1339 case $ac_val in
1340 */ )
1341 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342 eval $ac_var=\$ac_val;;
1343 esac
1344 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001345 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001348 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001349 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001350done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001351
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001352# There might be people who depend on the old broken behavior: `$host'
1353# used to hold the argument of --host etc.
1354# FIXME: To remove some day.
1355build=$build_alias
1356host=$host_alias
1357target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001358
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001359# FIXME: To remove some day.
1360if test "x$host_alias" != x; then
1361 if test "x$build_alias" = x; then
1362 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001363 elif test "x$build_alias" != "x$host_alias"; then
1364 cross_compiling=yes
1365 fi
1366fi
1367
1368ac_tool_prefix=
1369test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371test "$silent" = yes && exec 6>/dev/null
1372
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001373
Theodore Ts'oe1052142006-10-21 21:46:47 -04001374ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375ac_ls_di=`ls -di .` &&
1376ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001377 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001378test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001379 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001380
1381
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001382# Find the source files, if location was not specified.
1383if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001385 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001386 ac_confdir=`$as_dirname -- "$as_myself" ||
1387$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$as_myself" : 'X\(//\)[^/]' \| \
1389 X"$as_myself" : 'X\(//\)$' \| \
1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)[^/].*/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\).*/{
1405 s//\1/
1406 q
1407 }
1408 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001409 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001410 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001411 srcdir=..
1412 fi
1413else
1414 ac_srcdir_defaulted=no
1415fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001416if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001418 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001419fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001420ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001422 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001423 pwd)`
1424# When building in place, set srcdir=.
1425if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 srcdir=.
1427fi
1428# Remove unnecessary trailing slashes from srcdir.
1429# Double slashes in file names in object file debugging info
1430# mess up M-x gdb in Emacs.
1431case $srcdir in
1432*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433esac
1434for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001440
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001441#
1442# Report the --help message.
1443#
1444if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
1448\`configure' configures this package to adapt to many kinds of systems.
1449
1450Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453VAR=VALUE. See below for descriptions of some of the useful variables.
1454
1455Defaults for the options are specified in brackets.
1456
1457Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001462 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001468Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001470 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001472 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001473
1474By default, \`make install' will install all the files in
1475\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477for instance \`--prefix=\$HOME'.
1478
1479For better control, use the options below.
1480
1481Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001501_ACEOF
1502
1503 cat <<\_ACEOF
1504
1505System types:
1506 --build=BUILD configure for building on BUILD [guessed]
1507 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1508_ACEOF
1509fi
1510
1511if test -n "$ac_init_help"; then
1512
1513 cat <<\_ACEOF
1514
1515Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001516 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001519 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001520 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001521 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001522
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001523 --enable-symlink-build use symlinks while building instead of hard links
1524 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001525 --enable-compression enable EXPERIMENTAL compression support
1526 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001527 --enable-elf-shlibs select ELF shared libraries
1528 --enable-bsd-shlibs select BSD shared libraries
1529 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001530 --enable-gcov build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001531 --enable-jbd-debug enable journal debugging
1532 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001533 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001534 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001535 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001536 --enable-quota enable quota support
Theodore Ts'o3df60142013-06-16 16:14:40 -04001537 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001538 --disable-debugfs disable support of debugfs program
1539 --disable-imager disable support of e2image program
1540 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001541 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001542 --enable-fsck build fsck wrapper program
1543 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001544 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001545 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001546 --disable-mmp disable support mmp, Multi Mount Protection
Tony Breeds1625bf42012-07-30 14:44:12 -04001547 --disable-bmap-stats disable collection of bitmap stats.
1548 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001549 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001550 --enable-threads={posix|solaris|pth|windows}
1551 specify multithreading API
1552 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001553 --disable-rpath do not hardcode runtime library paths
1554
1555Optional Packages:
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001558 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001559 --with-cc no longer supported, use CC= instead
1560 --with-ccopts no longer supported, use CFLAGS= instead
1561 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001562 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001563 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1564 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1565 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001566 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1567 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1568 --with-included-gettext use the GNU gettext library included here
1569 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1570 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001571 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001572
1573Some influential environment variables:
1574 CC C compiler command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001578 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001579 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001580 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001581 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001582 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001583 PKG_CONFIG_PATH
1584 directories to add to pkg-config's search path
1585 PKG_CONFIG_LIBDIR
1586 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001587
1588Use these variables to override the choices made by `configure' or to help
1589it to find libraries and programs with nonstandard names/locations.
1590
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001591Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001592_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001593ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001594fi
1595
1596if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001602 ac_builddir=.
1603
Theodore Ts'oe1052142006-10-21 21:46:47 -04001604case "$ac_dir" in
1605.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001608 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613 esac ;;
1614esac
1615ac_abs_top_builddir=$ac_pwd
1616ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617# for backward compatibility:
1618ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001619
1620case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001621 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001622 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001626 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1629 *) # Relative name.
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001633esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001634ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001635
Theodore Ts'oe1052142006-10-21 21:46:47 -04001636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001644 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001645 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001646 fi || ac_status=$?
1647 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001648 done
1649fi
1650
Theodore Ts'oe1052142006-10-21 21:46:47 -04001651test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001652if $ac_init_version; then
1653 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001654configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001655generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001656
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001657Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001658This configure script is free software; the Free Software Foundation
1659gives unlimited permission to copy, distribute and modify it.
1660_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001661 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001662fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001663
1664## ------------------------ ##
1665## Autoconf initialization. ##
1666## ------------------------ ##
1667
1668# ac_fn_c_try_compile LINENO
1669# --------------------------
1670# Try to compile conftest.$ac_ext, and return whether this succeeded.
1671ac_fn_c_try_compile ()
1672{
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext
1675 if { { ac_try="$ac_compile"
1676case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext; then :
1694 ac_retval=0
1695else
1696 $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001702 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001703
1704} # ac_fn_c_try_compile
1705
1706# ac_fn_c_try_link LINENO
1707# -----------------------
1708# Try to link conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_c_try_link ()
1710{
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest$ac_exeext
1713 if { { ac_try="$ac_link"
1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest$ac_exeext && {
1732 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001733 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001734 }; then :
1735 ac_retval=0
1736else
1737 $as_echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741fi
1742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744 # interfere with the next link command; also delete a directory that is
1745 # left behind by Apple's compiler. We do this before executing the actions.
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001748 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001749
1750} # ac_fn_c_try_link
1751
1752# ac_fn_c_try_cpp LINENO
1753# ----------------------
1754# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755ac_fn_c_try_cpp ()
1756{
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if { { ac_try="$ac_cpp conftest.$ac_ext"
1759case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1771 fi
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001773 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 }; then :
1777 ac_retval=0
1778else
1779 $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782 ac_retval=1
1783fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001785 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001786
1787} # ac_fn_c_try_cpp
1788
1789# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790# -------------------------------------------------------
1791# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792# the include files in INCLUDES and setting the cache variable VAR
1793# accordingly.
1794ac_fn_c_check_header_mongrel ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001797 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001800if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001801 $as_echo_n "(cached) " >&6
1802fi
1803eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805$as_echo "$ac_res" >&6; }
1806else
1807 # Is the header compilable?
1808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809$as_echo_n "checking $2 usability... " >&6; }
1810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h. */
1812$4
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_compile "$LINENO"; then :
1816 ac_header_compiler=yes
1817else
1818 ac_header_compiler=no
1819fi
1820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822$as_echo "$ac_header_compiler" >&6; }
1823
1824# Is the header present?
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826$as_echo_n "checking $2 presence... " >&6; }
1827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h. */
1829#include <$2>
1830_ACEOF
1831if ac_fn_c_try_cpp "$LINENO"; then :
1832 ac_header_preproc=yes
1833else
1834 ac_header_preproc=no
1835fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001836rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838$as_echo "$ac_header_preproc" >&6; }
1839
1840# So? What about this header?
1841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842 yes:no: )
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 ;;
1848 no:yes:* )
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1852$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1856$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 ;;
1860esac
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001863if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001864 $as_echo_n "(cached) " >&6
1865else
1866 eval "$3=\$ac_header_compiler"
1867fi
1868eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870$as_echo "$ac_res" >&6; }
1871fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001873
1874} # ac_fn_c_check_header_mongrel
1875
Theodore Ts'o93613952014-07-03 23:44:13 -04001876# ac_fn_c_try_run LINENO
1877# ----------------------
1878# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1879# that executables *can* be run.
1880ac_fn_c_try_run ()
1881{
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { { ac_try="$ac_link"
1884case "(($ac_try" in
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1887esac
1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889$as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>&5
1891 ac_status=$?
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1894 { { case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899$as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_try") 2>&5
1901 ac_status=$?
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; }; }; then :
1904 ac_retval=0
1905else
1906 $as_echo "$as_me: program exited with status $ac_status" >&5
1907 $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_retval=$ac_status
1911fi
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1915
1916} # ac_fn_c_try_run
1917
1918# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1919# -------------------------------------------------------
1920# Tests whether HEADER exists and can be compiled using the include files in
1921# INCLUDES, setting the cache variable VAR accordingly.
1922ac_fn_c_check_header_compile ()
1923{
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926$as_echo_n "checking for $2... " >&6; }
1927if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1929else
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h. */
1932$4
1933#include <$2>
1934_ACEOF
1935if ac_fn_c_try_compile "$LINENO"; then :
1936 eval "$3=yes"
1937else
1938 eval "$3=no"
1939fi
1940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941fi
1942eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944$as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947} # ac_fn_c_check_header_compile
1948
1949# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1950# -------------------------------------------
1951# Tests whether TYPE exists after having included INCLUDES, setting cache
1952# variable VAR accordingly.
1953ac_fn_c_check_type ()
1954{
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957$as_echo_n "checking for $2... " >&6; }
1958if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1960else
1961 eval "$3=no"
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h. */
1964$4
1965int
1966main ()
1967{
1968if (sizeof ($2))
1969 return 0;
1970 ;
1971 return 0;
1972}
1973_ACEOF
1974if ac_fn_c_try_compile "$LINENO"; then :
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h. */
1977$4
1978int
1979main ()
1980{
1981if (sizeof (($2)))
1982 return 0;
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987if ac_fn_c_try_compile "$LINENO"; then :
1988
1989else
1990 eval "$3=yes"
1991fi
1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995fi
1996eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998$as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001} # ac_fn_c_check_type
2002
2003# ac_fn_c_check_func LINENO FUNC VAR
2004# ----------------------------------
2005# Tests whether FUNC exists, setting the cache variable VAR accordingly
2006ac_fn_c_check_func ()
2007{
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010$as_echo_n "checking for $2... " >&6; }
2011if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2018#define $2 innocuous_$2
2019
2020/* System header to define __stub macros and hopefully few prototypes,
2021 which can conflict with char $2 (); below.
2022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2023 <limits.h> exists even on freestanding compilers. */
2024
2025#ifdef __STDC__
2026# include <limits.h>
2027#else
2028# include <assert.h>
2029#endif
2030
2031#undef $2
2032
2033/* Override any GCC internal prototype to avoid an error.
2034 Use char because int might match the return type of a GCC
2035 builtin and then its argument prototype would still apply. */
2036#ifdef __cplusplus
2037extern "C"
2038#endif
2039char $2 ();
2040/* The GNU C library defines this for functions which it implements
2041 to always fail with ENOSYS. Some functions are actually named
2042 something starting with __ and the normal name is an alias. */
2043#if defined __stub_$2 || defined __stub___$2
2044choke me
2045#endif
2046
2047int
2048main ()
2049{
2050return $2 ();
2051 ;
2052 return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_link "$LINENO"; then :
2056 eval "$3=yes"
2057else
2058 eval "$3=no"
2059fi
2060rm -f core conftest.err conftest.$ac_objext \
2061 conftest$ac_exeext conftest.$ac_ext
2062fi
2063eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065$as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067
2068} # ac_fn_c_check_func
2069
2070# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2071# ---------------------------------------------
2072# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2073# accordingly.
2074ac_fn_c_check_decl ()
2075{
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 as_decl_name=`echo $2|sed 's/ *(.*//'`
2078 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2080$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2081if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086$4
2087int
2088main ()
2089{
2090#ifndef $as_decl_name
2091#ifdef __cplusplus
2092 (void) $as_decl_use;
2093#else
2094 (void) $as_decl_name;
2095#endif
2096#endif
2097
2098 ;
2099 return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103 eval "$3=yes"
2104else
2105 eval "$3=no"
2106fi
2107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108fi
2109eval ac_res=\$$3
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111$as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2114} # ac_fn_c_check_decl
2115
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002116# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2117# --------------------------------------------
2118# Tries to find the compile-time value of EXPR in a program that includes
2119# INCLUDES, setting VAR accordingly. Returns whether the value could be
2120# computed
2121ac_fn_c_compute_int ()
2122{
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 if test "$cross_compiling" = yes; then
2125 # Depending upon the size, compute the lo and hi bounds.
2126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127/* end confdefs.h. */
2128$4
2129int
2130main ()
2131{
2132static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002133test_array [0] = 0;
2134return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002135
2136 ;
2137 return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_lo=0 ac_mid=0
2142 while :; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$4
2146int
2147main ()
2148{
2149static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002150test_array [0] = 0;
2151return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002152
2153 ;
2154 return 0;
2155}
2156_ACEOF
2157if ac_fn_c_try_compile "$LINENO"; then :
2158 ac_hi=$ac_mid; break
2159else
2160 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2161 if test $ac_lo -le $ac_mid; then
2162 ac_lo= ac_hi=
2163 break
2164 fi
2165 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2166fi
2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 done
2169else
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h. */
2172$4
2173int
2174main ()
2175{
2176static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002177test_array [0] = 0;
2178return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002179
2180 ;
2181 return 0;
2182}
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185 ac_hi=-1 ac_mid=-1
2186 while :; do
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h. */
2189$4
2190int
2191main ()
2192{
2193static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002194test_array [0] = 0;
2195return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002196
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201if ac_fn_c_try_compile "$LINENO"; then :
2202 ac_lo=$ac_mid; break
2203else
2204 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2205 if test $ac_mid -le $ac_hi; then
2206 ac_lo= ac_hi=
2207 break
2208 fi
2209 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2210fi
2211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 done
2213else
2214 ac_lo= ac_hi=
2215fi
2216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217fi
2218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219# Binary search between lo and hi bounds.
2220while test "x$ac_lo" != "x$ac_hi"; do
2221 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223/* end confdefs.h. */
2224$4
2225int
2226main ()
2227{
2228static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002229test_array [0] = 0;
2230return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002231
2232 ;
2233 return 0;
2234}
2235_ACEOF
2236if ac_fn_c_try_compile "$LINENO"; then :
2237 ac_hi=$ac_mid
2238else
2239 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2240fi
2241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242done
2243case $ac_lo in #((
2244?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2245'') ac_retval=1 ;;
2246esac
2247 else
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249/* end confdefs.h. */
2250$4
2251static long int longval () { return $2; }
2252static unsigned long int ulongval () { return $2; }
2253#include <stdio.h>
2254#include <stdlib.h>
2255int
2256main ()
2257{
2258
2259 FILE *f = fopen ("conftest.val", "w");
2260 if (! f)
2261 return 1;
2262 if (($2) < 0)
2263 {
2264 long int i = longval ();
2265 if (i != ($2))
2266 return 1;
2267 fprintf (f, "%ld", i);
2268 }
2269 else
2270 {
2271 unsigned long int i = ulongval ();
2272 if (i != ($2))
2273 return 1;
2274 fprintf (f, "%lu", i);
2275 }
2276 /* Do not output a trailing newline, as this causes \r\n confusion
2277 on some platforms. */
2278 return ferror (f) || fclose (f) != 0;
2279
2280 ;
2281 return 0;
2282}
2283_ACEOF
2284if ac_fn_c_try_run "$LINENO"; then :
2285 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2286else
2287 ac_retval=1
2288fi
2289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2290 conftest.$ac_objext conftest.beam conftest.$ac_ext
2291rm -f conftest.val
2292
2293 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002295 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002296
2297} # ac_fn_c_compute_int
2298
2299# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2300# ----------------------------------------------------
2301# Tries to find if the field MEMBER exists in type AGGR, after including
2302# INCLUDES, setting cache variable VAR accordingly.
2303ac_fn_c_check_member ()
2304{
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2307$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002308if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002309 $as_echo_n "(cached) " >&6
2310else
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312/* end confdefs.h. */
2313$5
2314int
2315main ()
2316{
2317static $2 ac_aggr;
2318if (ac_aggr.$3)
2319return 0;
2320 ;
2321 return 0;
2322}
2323_ACEOF
2324if ac_fn_c_try_compile "$LINENO"; then :
2325 eval "$4=yes"
2326else
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328/* end confdefs.h. */
2329$5
2330int
2331main ()
2332{
2333static $2 ac_aggr;
2334if (sizeof ac_aggr.$3)
2335return 0;
2336 ;
2337 return 0;
2338}
2339_ACEOF
2340if ac_fn_c_try_compile "$LINENO"; then :
2341 eval "$4=yes"
2342else
2343 eval "$4=no"
2344fi
2345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346fi
2347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348fi
2349eval ac_res=\$$4
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002353
2354} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002355cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002356This file contains any messages produced by compilers while
2357running configure, to aid debugging if configure makes a mistake.
2358
2359It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002360generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002361
2362 $ $0 $@
2363
2364_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002365exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002366{
2367cat <<_ASUNAME
2368## --------- ##
2369## Platform. ##
2370## --------- ##
2371
2372hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2373uname -m = `(uname -m) 2>/dev/null || echo unknown`
2374uname -r = `(uname -r) 2>/dev/null || echo unknown`
2375uname -s = `(uname -s) 2>/dev/null || echo unknown`
2376uname -v = `(uname -v) 2>/dev/null || echo unknown`
2377
2378/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2379/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2380
2381/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2382/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2383/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002384/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002385/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2386/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2387/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2388
2389_ASUNAME
2390
2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392for as_dir in $PATH
2393do
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002396 $as_echo "PATH: $as_dir"
2397 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002398IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002399
2400} >&5
2401
2402cat >&5 <<_ACEOF
2403
2404
2405## ----------- ##
2406## Core tests. ##
2407## ----------- ##
2408
2409_ACEOF
2410
2411
2412# Keep a trace of the command line.
2413# Strip out --no-create and --no-recursion so they do not pile up.
2414# Strip out --silent because we don't want to record it for future runs.
2415# Also quote any args containing shell meta-characters.
2416# Make two passes to allow for proper duplicate-argument suppression.
2417ac_configure_args=
2418ac_configure_args0=
2419ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002420ac_must_keep_next=false
2421for ac_pass in 1 2
2422do
2423 for ac_arg
2424 do
2425 case $ac_arg in
2426 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2428 | -silent | --silent | --silen | --sile | --sil)
2429 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002430 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002431 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002432 esac
2433 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002434 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002435 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002436 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002437 if test $ac_must_keep_next = true; then
2438 ac_must_keep_next=false # Got value, back to normal.
2439 else
2440 case $ac_arg in
2441 *=* | --config-cache | -C | -disable-* | --disable-* \
2442 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2443 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2444 | -with-* | --with-* | -without-* | --without-* | --x)
2445 case "$ac_configure_args0 " in
2446 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2447 esac
2448 ;;
2449 -* ) ac_must_keep_next=true ;;
2450 esac
2451 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002452 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002453 ;;
2454 esac
2455 done
2456done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002457{ ac_configure_args0=; unset ac_configure_args0;}
2458{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002459
2460# When interrupted or exit'd, cleanup temporary files, and complete
2461# config.log. We remove comments because anyway the quotes in there
2462# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002463# WARNING: Use '\'' to represent an apostrophe within the trap.
2464# 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 -05002465trap 'exit_status=$?
2466 # Save into config.log some information that might help in debugging.
2467 {
2468 echo
2469
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002470 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002471## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002472## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002473 echo
2474 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002475(
2476 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2477 eval ac_val=\$$ac_var
2478 case $ac_val in #(
2479 *${as_nl}*)
2480 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002481 *_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 +01002482$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002483 esac
2484 case $ac_var in #(
2485 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002487 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002488 esac ;;
2489 esac
2490 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002492 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2493 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002494 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002495 "s/'\''/'\''\\\\'\'''\''/g;
2496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2497 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002498 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002500 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002501 esac |
2502 sort
2503)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002504 echo
2505
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002506 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002507## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002508## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002509 echo
2510 for ac_var in $ac_subst_vars
2511 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002512 eval ac_val=\$$ac_var
2513 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002514 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002515 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002516 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002517 done | sort
2518 echo
2519
2520 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002521 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002522## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002523## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002524 echo
2525 for ac_var in $ac_subst_files
2526 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002527 eval ac_val=\$$ac_var
2528 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002529 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002530 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002531 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002532 done | sort
2533 echo
2534 fi
2535
2536 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002537 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002538## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002539## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002540 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002541 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 echo
2543 fi
2544 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002545 $as_echo "$as_me: caught signal $ac_signal"
2546 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002547 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002548 rm -f core *.core core.conftest.* &&
2549 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002550 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002551' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002552for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002553 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002554done
2555ac_signal=0
2556
2557# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002558rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002559
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002560$as_echo "/* confdefs.h */" > confdefs.h
2561
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002562# Predefined preprocessor variables.
2563
2564cat >>confdefs.h <<_ACEOF
2565#define PACKAGE_NAME "$PACKAGE_NAME"
2566_ACEOF
2567
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002568cat >>confdefs.h <<_ACEOF
2569#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2570_ACEOF
2571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002572cat >>confdefs.h <<_ACEOF
2573#define PACKAGE_VERSION "$PACKAGE_VERSION"
2574_ACEOF
2575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_STRING "$PACKAGE_STRING"
2578_ACEOF
2579
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002580cat >>confdefs.h <<_ACEOF
2581#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2582_ACEOF
2583
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002584cat >>confdefs.h <<_ACEOF
2585#define PACKAGE_URL "$PACKAGE_URL"
2586_ACEOF
2587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002588
2589# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002590# Prefer an explicitly selected file to automatically selected ones.
2591ac_site_file1=NONE
2592ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002593if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002594 # We do not want a PATH search for config.site.
2595 case $CONFIG_SITE in #((
2596 -*) ac_site_file1=./$CONFIG_SITE;;
2597 */*) ac_site_file1=$CONFIG_SITE;;
2598 *) ac_site_file1=./$CONFIG_SITE;;
2599 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002600elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002601 ac_site_file1=$prefix/share/config.site
2602 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002603else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002604 ac_site_file1=$ac_default_prefix/share/config.site
2605 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002606fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002607for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002608do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002609 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002610 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002611 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002612$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002613 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002614 . "$ac_site_file" \
2615 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617as_fn_error $? "failed to load site script $ac_site_file
2618See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002619 fi
2620done
2621
2622if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002623 # Some versions of bash will fail to source /dev/null (special files
2624 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2625 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002627$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002628 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002629 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2630 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002631 esac
2632 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002633else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002635$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002636 >$cache_file
2637fi
2638
Theodore Ts'o93613952014-07-03 23:44:13 -04002639gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002640as_fn_append ac_header_list " stdlib.h"
2641as_fn_append ac_header_list " unistd.h"
2642as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002643as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002644# Check that the precious variables saved in the cache have kept the same
2645# value.
2646ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002647for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002648 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2649 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002650 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2651 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002652 case $ac_old_set,$ac_new_set in
2653 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002654 { $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 +01002655$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 -05002656 ac_cache_corrupted=: ;;
2657 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002658 { $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 +01002659$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002660 ac_cache_corrupted=: ;;
2661 ,);;
2662 *)
2663 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002664 # differences in whitespace do not lead to failure.
2665 ac_old_val_w=`echo x $ac_old_val`
2666 ac_new_val_w=`echo x $ac_new_val`
2667 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002668 { $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 +01002669$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2670 ac_cache_corrupted=:
2671 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002672 { $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 +01002673$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2674 eval $ac_var=\$ac_old_val
2675 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002676 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002677$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002678 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002679$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002680 fi;;
2681 esac
2682 # Pass precious variables to config.status.
2683 if test "$ac_new_set" = set; then
2684 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002685 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002686 *) ac_arg=$ac_var=$ac_new_val ;;
2687 esac
2688 case " $ac_configure_args " in
2689 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002690 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002691 esac
2692 fi
2693done
2694if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002697 { $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 +01002698$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002699 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002700fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002701## -------------------- ##
2702## Main body of script. ##
2703## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002704
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002705ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002706ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002711
2712
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002713ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002714for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002715 if test -f "$ac_dir/install-sh"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/install-sh -c"
2718 break
2719 elif test -f "$ac_dir/install.sh"; then
2720 ac_aux_dir=$ac_dir
2721 ac_install_sh="$ac_aux_dir/install.sh -c"
2722 break
2723 elif test -f "$ac_dir/shtool"; then
2724 ac_aux_dir=$ac_dir
2725 ac_install_sh="$ac_aux_dir/shtool install -c"
2726 break
2727 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002728done
2729if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002730 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 +00002731fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002732
2733# These three variables are undocumented and unsupported,
2734# and are intended to be withdrawn in a future Autoconf release.
2735# They can cause serious problems if a builder's source tree is in a directory
2736# whose full name contains unusual characters.
2737ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2738ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2739ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2740
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002741
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002742ac_config_headers="$ac_config_headers lib/config.h"
2743
2744
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002745MCONFIG=./MCONFIG
2746
Theodore Ts'o74becf31997-04-26 14:37:06 +00002747BINARY_TYPE=bin
2748E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2749 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2750DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2751 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002752E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002753MONTH=`echo $DATE | awk -F- '{print $2}'`
2754YEAR=`echo $DATE | awk -F- '{print $3}'`
2755
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002756if expr $YEAR ">" 1900 > /dev/null ; then
2757 E2FSPROGS_YEAR=$YEAR
2758elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002759 E2FSPROGS_YEAR=19$YEAR
2760else
2761 E2FSPROGS_YEAR=20$YEAR
2762fi
2763
2764case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002765Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2766Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2767Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2768Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2769May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2770Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2771Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2772Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2773Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2774Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2775Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2776Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002777*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002778$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002779esac
2780
Andreas Dilger927566a2006-11-12 19:41:25 -05002781base_ver=`echo $E2FSPROGS_VERSION | \
2782 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002783
2784date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2785
2786case $E2FSPROGS_VERSION in
2787*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002788 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002789 ;;
2790*)
2791 E2FSPROGS_PKGVER="$base_ver"
2792 ;;
2793esac
2794
2795unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002796{ $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 +01002797$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002799$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002800
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002801
2802
2803
Andreas Dilger927566a2006-11-12 19:41:25 -05002804
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002805WITH_DIET_LIBC=
2806
2807# Check whether --with-diet-libc was given.
2808if test "${with_diet_libc+set}" = set; then :
2809 withval=$with_diet_libc; CC="diet cc -nostdinc"
2810WITH_DIET_LIBC=yes
2811if test -z "$LIBS"
2812then
2813 LIBS="-lcompat"
2814else
2815 LIBS="$LIBS -lcompat"
2816fi
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2818$as_echo "CC=$CC" >&6; }
2819fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002820# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002821$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002822 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002823
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002825$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002826if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002827 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002829 ac_build_alias=$build_alias
2830test "x$ac_build_alias" = x &&
2831 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2832test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002833 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002834ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002836
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002837fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002839$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002840case $ac_cv_build in
2841*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002842*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002843esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002844build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002845ac_save_IFS=$IFS; IFS='-'
2846set x $ac_cv_build
2847shift
2848build_cpu=$1
2849build_vendor=$2
2850shift; shift
2851# Remember, the first character of IFS is used to create $*,
2852# except with old shells:
2853build_os=$*
2854IFS=$ac_save_IFS
2855case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002856
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002857
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002859$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002860if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002861 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002862else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002863 if test "x$host_alias" = x; then
2864 ac_cv_host=$ac_cv_build
2865else
2866 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002867 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002868fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002869
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002870fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002872$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002873case $ac_cv_host in
2874*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002875*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002876esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002877host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002878ac_save_IFS=$IFS; IFS='-'
2879set x $ac_cv_host
2880shift
2881host_cpu=$1
2882host_vendor=$2
2883shift; shift
2884# Remember, the first character of IFS is used to create $*,
2885# except with old shells:
2886host_os=$*
2887IFS=$ac_save_IFS
2888case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002889
2890
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002891DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002892ac_ext=c
2893ac_cpp='$CPP $CPPFLAGS'
2894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2896ac_compiler_gnu=$ac_cv_c_compiler_gnu
2897if test -n "$ac_tool_prefix"; then
2898 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2899set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002901$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002902if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002903 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002904else
2905 if test -n "$CC"; then
2906 ac_cv_prog_CC="$CC" # Let the user override the test.
2907else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002913 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002915 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002917 break 2
2918 fi
2919done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002920 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002921IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002922
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002923fi
2924fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002925CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002926if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002928$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002929else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002931$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002932fi
2933
Theodore Ts'oe1052142006-10-21 21:46:47 -04002934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002935fi
2936if test -z "$ac_cv_prog_CC"; then
2937 ac_ct_CC=$CC
2938 # Extract the first word of "gcc", so it can be a program name with args.
2939set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002941$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002942if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002943 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002944else
2945 if test -n "$ac_ct_CC"; then
2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002953 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002955 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002957 break 2
2958 fi
2959done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002960 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002961IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002962
2963fi
2964fi
2965ac_ct_CC=$ac_cv_prog_ac_ct_CC
2966if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002968$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002969else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002971$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002972fi
2973
Theodore Ts'oe1052142006-10-21 21:46:47 -04002974 if test "x$ac_ct_CC" = x; then
2975 CC=""
2976 else
2977 case $cross_compiling:$ac_tool_warned in
2978yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002979{ $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 +01002980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002981ac_tool_warned=yes ;;
2982esac
2983 CC=$ac_ct_CC
2984 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002985else
2986 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002987fi
2988
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002989if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002990 if test -n "$ac_tool_prefix"; then
2991 # 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 -05002992set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002994$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002995if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002996 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002997else
2998 if test -n "$CC"; then
2999 ac_cv_prog_CC="$CC" # Let the user override the test.
3000else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003006 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003010 break 2
3011 fi
3012done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003013 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003014IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003015
3016fi
3017fi
3018CC=$ac_cv_prog_CC
3019if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003021$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003022else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003024$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003025fi
3026
Theodore Ts'oe1052142006-10-21 21:46:47 -04003027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003028 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003029fi
3030if test -z "$CC"; then
3031 # Extract the first word of "cc", so it can be a program name with args.
3032set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003034$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003035if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003036 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003037else
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3040else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003041 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003047 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003049 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3050 ac_prog_rejected=yes
3051 continue
3052 fi
3053 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003055 break 2
3056 fi
3057done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003058 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003059IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003060
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003061if test $ac_prog_rejected = yes; then
3062 # We found a bogon in the path, so make sure we never use it.
3063 set dummy $ac_cv_prog_CC
3064 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003065 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003066 # We chose a different compiler from the bogus one.
3067 # However, it has the same basename, so the bogon will be chosen
3068 # first if we set CC to just the basename; use the full file name.
3069 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003070 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003071 fi
3072fi
3073fi
3074fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003075CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003076if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003078$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003079else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003081$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003082fi
3083
Theodore Ts'oe1052142006-10-21 21:46:47 -04003084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003085fi
3086if test -z "$CC"; then
3087 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003088 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003089 do
3090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3091set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003093$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003094if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003095 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003096else
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC="$CC" # Let the user override the test.
3099else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101for as_dir in $PATH
3102do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003105 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003107 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003109 break 2
3110 fi
3111done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003112 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003113IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003114
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003115fi
3116fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003117CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003118if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003120$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003121else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003123$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003124fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003125
Theodore Ts'oe1052142006-10-21 21:46:47 -04003126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003127 test -n "$CC" && break
3128 done
3129fi
3130if test -z "$CC"; then
3131 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003132 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003133do
3134 # Extract the first word of "$ac_prog", so it can be a program name with args.
3135set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003137$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003138if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003139 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003140else
3141 if test -n "$ac_ct_CC"; then
3142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3143else
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003149 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003151 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003153 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003154 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003155done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003156 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003157IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003158
3159fi
3160fi
3161ac_ct_CC=$ac_cv_prog_ac_ct_CC
3162if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003164$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003165else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003167$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003168fi
3169
Theodore Ts'oe1052142006-10-21 21:46:47 -04003170
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003171 test -n "$ac_ct_CC" && break
3172done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003173
Theodore Ts'oe1052142006-10-21 21:46:47 -04003174 if test "x$ac_ct_CC" = x; then
3175 CC=""
3176 else
3177 case $cross_compiling:$ac_tool_warned in
3178yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003179{ $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 +01003180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003181ac_tool_warned=yes ;;
3182esac
3183 CC=$ac_ct_CC
3184 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003185fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003186
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003187fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003188
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003189
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003190test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003192as_fn_error $? "no acceptable C compiler found in \$PATH
3193See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003194
3195# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003196$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003197set X $ac_compile
3198ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003199for ac_option in --version -v -V -qversion; do
3200 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003201case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206$as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003208 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003209 if test -s conftest.err; then
3210 sed '10a\
3211... rest of stderr output deleted ...
3212 10q' conftest.err >conftest.er1
3213 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003214 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003215 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }
3218done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003219
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003221/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003223int
3224main ()
3225{
3226
3227 ;
3228 return 0;
3229}
3230_ACEOF
3231ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003232ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003233# Try to create an executable without -o first, disregard a.out.
3234# It will help us diagnose broken compilers, and finding out an intuition
3235# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3237$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003238ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3239
3240# The possible output files:
3241ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3242
Theodore Ts'oe1052142006-10-21 21:46:47 -04003243ac_rmfiles=
3244for ac_file in $ac_files
3245do
3246 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003248 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3249 esac
3250done
3251rm -f $ac_rmfiles
3252
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003253if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003254case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003260 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003261 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3263 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003264 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3265# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3266# in a Makefile. We should not override ac_cv_exeext if it was cached,
3267# so that the user can short-circuit this test for compilers unknown to
3268# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003269for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003270do
3271 test -f "$ac_file" || continue
3272 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003274 ;;
3275 [ab].out )
3276 # We found the default executable, but exeext='' is most
3277 # certainly right.
3278 break;;
3279 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003280 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003281 then :; else
3282 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283 fi
3284 # We set ac_cv_exeext here because the later test for it is not
3285 # safe: cross compilers may not add the suffix if given an `-o'
3286 # argument, so we may need to know it at that point already.
3287 # Even if this section looks crufty: it has the advantage of
3288 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003289 break;;
3290 * )
3291 break;;
3292 esac
3293done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003294test "$ac_cv_exeext" = no && ac_cv_exeext=
3295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003296else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003297 ac_file=''
3298fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003299if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301$as_echo "no" >&6; }
3302$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003303sed 's/^/| /' conftest.$ac_ext >&5
3304
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003305{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003307as_fn_error 77 "C compiler cannot create executables
3308See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003309else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003312fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3314$as_echo_n "checking for C compiler default output file name... " >&6; }
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3316$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003317ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003318
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003319rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003320ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003322$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003323if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003324case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003330 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003331 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003334 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3335# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3336# work properly (i.e., refer to `conftest.exe'), while it won't with
3337# `rm'.
3338for ac_file in conftest.exe conftest conftest.*; do
3339 test -f "$ac_file" || continue
3340 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003343 break;;
3344 * ) break;;
3345 esac
3346done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003347else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003350as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3351See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003352fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003353rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003355$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003356
3357rm -f conftest.$ac_ext
3358EXEEXT=$ac_cv_exeext
3359ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361/* end confdefs.h. */
3362#include <stdio.h>
3363int
3364main ()
3365{
3366FILE *f = fopen ("conftest.out", "w");
3367 return ferror (f) || fclose (f) != 0;
3368
3369 ;
3370 return 0;
3371}
3372_ACEOF
3373ac_clean_files="$ac_clean_files conftest.out"
3374# Check that the compiler produces executables we can run. If not, either
3375# the compiler is broken, or we cross compile.
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3377$as_echo_n "checking whether we are cross compiling... " >&6; }
3378if test "$cross_compiling" != yes; then
3379 { { ac_try="$ac_link"
3380case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
3384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385$as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_link") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }
3390 if { ac_try='./conftest$ac_cv_exeext'
3391 { { case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394esac
3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396$as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_try") 2>&5
3398 ac_status=$?
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }; }; then
3401 cross_compiling=no
3402 else
3403 if test "$cross_compiling" = maybe; then
3404 cross_compiling=yes
3405 else
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003408as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003409If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003410See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003411 fi
3412 fi
3413fi
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3415$as_echo "$cross_compiling" >&6; }
3416
3417rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3418ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003420$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003421if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003422 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003423else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003425/* end confdefs.h. */
3426
3427int
3428main ()
3429{
3430
3431 ;
3432 return 0;
3433}
3434_ACEOF
3435rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003436if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003437case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003443 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003444 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003447 for ac_file in conftest.o conftest.obj conftest.*; do
3448 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003449 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003451 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3452 break;;
3453 esac
3454done
3455else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003456 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003457sed 's/^/| /' conftest.$ac_ext >&5
3458
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003459{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003461as_fn_error $? "cannot compute suffix of object files: cannot compile
3462See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003463fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003464rm -f conftest.$ac_cv_objext conftest.$ac_ext
3465fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003467$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003468OBJEXT=$ac_cv_objext
3469ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003470{ $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 +01003471$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003472if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003473 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003474else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003476/* end confdefs.h. */
3477
3478int
3479main ()
3480{
3481#ifndef __GNUC__
3482 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003483#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003484
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003485 ;
3486 return 0;
3487}
3488_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003489if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003490 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003491else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003492 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003493fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003495ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003497fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003499$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3500if test $ac_compiler_gnu = yes; then
3501 GCC=yes
3502else
3503 GCC=
3504fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003505ac_test_CFLAGS=${CFLAGS+set}
3506ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003508$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003509if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003510 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003511else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003512 ac_save_c_werror_flag=$ac_c_werror_flag
3513 ac_c_werror_flag=yes
3514 ac_cv_prog_cc_g=no
3515 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003517/* end confdefs.h. */
3518
3519int
3520main ()
3521{
3522
3523 ;
3524 return 0;
3525}
3526_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003527if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003528 ac_cv_prog_cc_g=yes
3529else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003530 CFLAGS=""
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003532/* end confdefs.h. */
3533
3534int
3535main ()
3536{
3537
3538 ;
3539 return 0;
3540}
3541_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003542if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003543
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003544else
3545 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003546 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003548/* end confdefs.h. */
3549
3550int
3551main ()
3552{
3553
3554 ;
3555 return 0;
3556}
3557_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003558if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003559 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003560fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003562fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_c_werror_flag=$ac_save_c_werror_flag
3567fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003569$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003570if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003571 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003572elif test $ac_cv_prog_cc_g = yes; then
3573 if test "$GCC" = yes; then
3574 CFLAGS="-g -O2"
3575 else
3576 CFLAGS="-g"
3577 fi
3578else
3579 if test "$GCC" = yes; then
3580 CFLAGS="-O2"
3581 else
3582 CFLAGS=
3583 fi
3584fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003586$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003587if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003588 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003589else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003590 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003591ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003593/* end confdefs.h. */
3594#include <stdarg.h>
3595#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003596struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003597/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3598struct buf { int x; };
3599FILE * (*rcsopen) (struct buf *, struct stat *, int);
3600static char *e (p, i)
3601 char **p;
3602 int i;
3603{
3604 return p[i];
3605}
3606static char *f (char * (*g) (char **, int), char **p, ...)
3607{
3608 char *s;
3609 va_list v;
3610 va_start (v,p);
3611 s = g (p, va_arg (v,int));
3612 va_end (v);
3613 return s;
3614}
3615
3616/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3617 function prototypes and stuff, but not '\xHH' hex character constants.
3618 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003619 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3621 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003622 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003623int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3624
Theodore Ts'oe1052142006-10-21 21:46:47 -04003625/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3626 inside strings and character constants. */
3627#define FOO(x) 'x'
3628int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3629
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003630int test (int i, double x);
3631struct s1 {int (*f) (int a);};
3632struct s2 {int (*f) (double a);};
3633int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3634int argc;
3635char **argv;
3636int
3637main ()
3638{
3639return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3640 ;
3641 return 0;
3642}
3643_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003644for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3645 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003646do
3647 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003648 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003649 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003650fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003651rm -f core conftest.err conftest.$ac_objext
3652 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003653done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003654rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003655CC=$ac_save_CC
3656
3657fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003658# AC_CACHE_VAL
3659case "x$ac_cv_prog_cc_c89" in
3660 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003662$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003663 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003665$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003666 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003667 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003669$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003670esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003671if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003672
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003673fi
3674
3675ac_ext=c
3676ac_cpp='$CPP $CPPFLAGS'
3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3683$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003684if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003685 $as_echo_n "(cached) " >&6
3686else
3687 ac_check_lib_save_LIBS=$LIBS
3688LIBS="-ldl $LIBS"
3689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h. */
3691
3692/* Override any GCC internal prototype to avoid an error.
3693 Use char because int might match the return type of a GCC
3694 builtin and then its argument prototype would still apply. */
3695#ifdef __cplusplus
3696extern "C"
3697#endif
3698char dlopen ();
3699int
3700main ()
3701{
3702return dlopen ();
3703 ;
3704 return 0;
3705}
3706_ACEOF
3707if ac_fn_c_try_link "$LINENO"; then :
3708 ac_cv_lib_dl_dlopen=yes
3709else
3710 ac_cv_lib_dl_dlopen=no
3711fi
3712rm -f core conftest.err conftest.$ac_objext \
3713 conftest$ac_exeext conftest.$ac_ext
3714LIBS=$ac_check_lib_save_LIBS
3715fi
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3717$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003718if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003719 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003720
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003721$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3722
3723fi
3724
3725
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003726
3727# Check whether --with-cc was given.
3728if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003729 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003730fi
3731
3732
3733# Check whether --with-ccopts was given.
3734if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003735 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003736fi
3737
3738
3739# Check whether --with-ldopts was given.
3740if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003741 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003742fi
3743
3744ac_ext=c
3745ac_cpp='$CPP $CPPFLAGS'
3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749if test -n "$ac_tool_prefix"; then
3750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3751set dummy ${ac_tool_prefix}gcc; ac_word=$2
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003754if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003755 $as_echo_n "(cached) " >&6
3756else
3757 if test -n "$CC"; then
3758 ac_cv_prog_CC="$CC" # Let the user override the test.
3759else
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3770 fi
3771done
3772 done
3773IFS=$as_save_IFS
3774
3775fi
3776fi
3777CC=$ac_cv_prog_CC
3778if test -n "$CC"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3780$as_echo "$CC" >&6; }
3781else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783$as_echo "no" >&6; }
3784fi
3785
3786
3787fi
3788if test -z "$ac_cv_prog_CC"; then
3789 ac_ct_CC=$CC
3790 # Extract the first word of "gcc", so it can be a program name with args.
3791set dummy gcc; ac_word=$2
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003794if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003795 $as_echo_n "(cached) " >&6
3796else
3797 if test -n "$ac_ct_CC"; then
3798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3799else
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003807 ac_cv_prog_ac_ct_CC="gcc"
3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 break 2
3810 fi
3811done
3812 done
3813IFS=$as_save_IFS
3814
3815fi
3816fi
3817ac_ct_CC=$ac_cv_prog_ac_ct_CC
3818if test -n "$ac_ct_CC"; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3820$as_echo "$ac_ct_CC" >&6; }
3821else
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823$as_echo "no" >&6; }
3824fi
3825
3826 if test "x$ac_ct_CC" = x; then
3827 CC=""
3828 else
3829 case $cross_compiling:$ac_tool_warned in
3830yes:)
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3833ac_tool_warned=yes ;;
3834esac
3835 CC=$ac_ct_CC
3836 fi
3837else
3838 CC="$ac_cv_prog_CC"
3839fi
3840
3841if test -z "$CC"; then
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3844set dummy ${ac_tool_prefix}cc; ac_word=$2
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003847if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003848 $as_echo_n "(cached) " >&6
3849else
3850 if test -n "$CC"; then
3851 ac_cv_prog_CC="$CC" # Let the user override the test.
3852else
3853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH
3855do
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003860 ac_cv_prog_CC="${ac_tool_prefix}cc"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3863 fi
3864done
3865 done
3866IFS=$as_save_IFS
3867
3868fi
3869fi
3870CC=$ac_cv_prog_CC
3871if test -n "$CC"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3873$as_echo "$CC" >&6; }
3874else
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876$as_echo "no" >&6; }
3877fi
3878
3879
3880 fi
3881fi
3882if test -z "$CC"; then
3883 # Extract the first word of "cc", so it can be a program name with args.
3884set dummy cc; ac_word=$2
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003887if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003888 $as_echo_n "(cached) " >&6
3889else
3890 if test -n "$CC"; then
3891 ac_cv_prog_CC="$CC" # Let the user override the test.
3892else
3893 ac_prog_rejected=no
3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3902 ac_prog_rejected=yes
3903 continue
3904 fi
3905 ac_cv_prog_CC="cc"
3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3908 fi
3909done
3910 done
3911IFS=$as_save_IFS
3912
3913if test $ac_prog_rejected = yes; then
3914 # We found a bogon in the path, so make sure we never use it.
3915 set dummy $ac_cv_prog_CC
3916 shift
3917 if test $# != 0; then
3918 # We chose a different compiler from the bogus one.
3919 # However, it has the same basename, so the bogon will be chosen
3920 # first if we set CC to just the basename; use the full file name.
3921 shift
3922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3923 fi
3924fi
3925fi
3926fi
3927CC=$ac_cv_prog_CC
3928if test -n "$CC"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3930$as_echo "$CC" >&6; }
3931else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933$as_echo "no" >&6; }
3934fi
3935
3936
3937fi
3938if test -z "$CC"; then
3939 if test -n "$ac_tool_prefix"; then
3940 for ac_prog in cl.exe
3941 do
3942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3943set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003946if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003947 $as_echo_n "(cached) " >&6
3948else
3949 if test -n "$CC"; then
3950 ac_cv_prog_CC="$CC" # Let the user override the test.
3951else
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963done
3964 done
3965IFS=$as_save_IFS
3966
3967fi
3968fi
3969CC=$ac_cv_prog_CC
3970if test -n "$CC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972$as_echo "$CC" >&6; }
3973else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975$as_echo "no" >&6; }
3976fi
3977
3978
3979 test -n "$CC" && break
3980 done
3981fi
3982if test -z "$CC"; then
3983 ac_ct_CC=$CC
3984 for ac_prog in cl.exe
3985do
3986 # Extract the first word of "$ac_prog", so it can be a program name with args.
3987set dummy $ac_prog; ac_word=$2
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003990if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003991 $as_echo_n "(cached) " >&6
3992else
3993 if test -n "$ac_ct_CC"; then
3994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3995else
3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH
3998do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004003 ac_cv_prog_ac_ct_CC="$ac_prog"
4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007done
4008 done
4009IFS=$as_save_IFS
4010
4011fi
4012fi
4013ac_ct_CC=$ac_cv_prog_ac_ct_CC
4014if test -n "$ac_ct_CC"; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4016$as_echo "$ac_ct_CC" >&6; }
4017else
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019$as_echo "no" >&6; }
4020fi
4021
4022
4023 test -n "$ac_ct_CC" && break
4024done
4025
4026 if test "x$ac_ct_CC" = x; then
4027 CC=""
4028 else
4029 case $cross_compiling:$ac_tool_warned in
4030yes:)
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4033ac_tool_warned=yes ;;
4034esac
4035 CC=$ac_ct_CC
4036 fi
4037fi
4038
4039fi
4040
4041
4042test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004044as_fn_error $? "no acceptable C compiler found in \$PATH
4045See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004046
4047# Provide some information about the compiler.
4048$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4049set X $ac_compile
4050ac_compiler=$2
4051for ac_option in --version -v -V -qversion; do
4052 { { ac_try="$ac_compiler $ac_option >&5"
4053case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058$as_echo "$ac_try_echo"; } >&5
4059 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4060 ac_status=$?
4061 if test -s conftest.err; then
4062 sed '10a\
4063... rest of stderr output deleted ...
4064 10q' conftest.err >conftest.er1
4065 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004066 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004067 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4069 test $ac_status = 0; }
4070done
4071
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4073$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004074if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004075 $as_echo_n "(cached) " >&6
4076else
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078/* end confdefs.h. */
4079
4080int
4081main ()
4082{
4083#ifndef __GNUC__
4084 choke me
4085#endif
4086
4087 ;
4088 return 0;
4089}
4090_ACEOF
4091if ac_fn_c_try_compile "$LINENO"; then :
4092 ac_compiler_gnu=yes
4093else
4094 ac_compiler_gnu=no
4095fi
4096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097ac_cv_c_compiler_gnu=$ac_compiler_gnu
4098
4099fi
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4101$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4102if test $ac_compiler_gnu = yes; then
4103 GCC=yes
4104else
4105 GCC=
4106fi
4107ac_test_CFLAGS=${CFLAGS+set}
4108ac_save_CFLAGS=$CFLAGS
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4110$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004111if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004112 $as_echo_n "(cached) " >&6
4113else
4114 ac_save_c_werror_flag=$ac_c_werror_flag
4115 ac_c_werror_flag=yes
4116 ac_cv_prog_cc_g=no
4117 CFLAGS="-g"
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119/* end confdefs.h. */
4120
4121int
4122main ()
4123{
4124
4125 ;
4126 return 0;
4127}
4128_ACEOF
4129if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_cv_prog_cc_g=yes
4131else
4132 CFLAGS=""
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134/* end confdefs.h. */
4135
4136int
4137main ()
4138{
4139
4140 ;
4141 return 0;
4142}
4143_ACEOF
4144if ac_fn_c_try_compile "$LINENO"; then :
4145
4146else
4147 ac_c_werror_flag=$ac_save_c_werror_flag
4148 CFLAGS="-g"
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h. */
4151
4152int
4153main ()
4154{
4155
4156 ;
4157 return 0;
4158}
4159_ACEOF
4160if ac_fn_c_try_compile "$LINENO"; then :
4161 ac_cv_prog_cc_g=yes
4162fi
4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164fi
4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166fi
4167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 ac_c_werror_flag=$ac_save_c_werror_flag
4169fi
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4171$as_echo "$ac_cv_prog_cc_g" >&6; }
4172if test "$ac_test_CFLAGS" = set; then
4173 CFLAGS=$ac_save_CFLAGS
4174elif test $ac_cv_prog_cc_g = yes; then
4175 if test "$GCC" = yes; then
4176 CFLAGS="-g -O2"
4177 else
4178 CFLAGS="-g"
4179 fi
4180else
4181 if test "$GCC" = yes; then
4182 CFLAGS="-O2"
4183 else
4184 CFLAGS=
4185 fi
4186fi
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4188$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004189if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004190 $as_echo_n "(cached) " >&6
4191else
4192 ac_cv_prog_cc_c89=no
4193ac_save_CC=$CC
4194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h. */
4196#include <stdarg.h>
4197#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004198struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004199/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4200struct buf { int x; };
4201FILE * (*rcsopen) (struct buf *, struct stat *, int);
4202static char *e (p, i)
4203 char **p;
4204 int i;
4205{
4206 return p[i];
4207}
4208static char *f (char * (*g) (char **, int), char **p, ...)
4209{
4210 char *s;
4211 va_list v;
4212 va_start (v,p);
4213 s = g (p, va_arg (v,int));
4214 va_end (v);
4215 return s;
4216}
4217
4218/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4219 function prototypes and stuff, but not '\xHH' hex character constants.
4220 These don't provoke an error unfortunately, instead are silently treated
4221 as 'x'. The following induces an error, until -std is added to get
4222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4223 array size at least. It's necessary to write '\x00'==0 to get something
4224 that's true only with -std. */
4225int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4226
4227/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4228 inside strings and character constants. */
4229#define FOO(x) 'x'
4230int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4231
4232int test (int i, double x);
4233struct s1 {int (*f) (int a);};
4234struct s2 {int (*f) (double a);};
4235int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4236int argc;
4237char **argv;
4238int
4239main ()
4240{
4241return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4242 ;
4243 return 0;
4244}
4245_ACEOF
4246for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4247 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4248do
4249 CC="$ac_save_CC $ac_arg"
4250 if ac_fn_c_try_compile "$LINENO"; then :
4251 ac_cv_prog_cc_c89=$ac_arg
4252fi
4253rm -f core conftest.err conftest.$ac_objext
4254 test "x$ac_cv_prog_cc_c89" != "xno" && break
4255done
4256rm -f conftest.$ac_ext
4257CC=$ac_save_CC
4258
4259fi
4260# AC_CACHE_VAL
4261case "x$ac_cv_prog_cc_c89" in
4262 x)
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4264$as_echo "none needed" >&6; } ;;
4265 xno)
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4267$as_echo "unsupported" >&6; } ;;
4268 *)
4269 CC="$CC $ac_cv_prog_cc_c89"
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4271$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4272esac
4273if test "x$ac_cv_prog_cc_c89" != xno; then :
4274
4275fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004277ac_ext=c
4278ac_cpp='$CPP $CPPFLAGS'
4279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004283if test "$GCC" = yes; then
4284 RDYNAMIC="-rdynamic"
4285
4286fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004287ac_ext=c
4288ac_cpp='$CPP $CPPFLAGS'
4289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004293$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004294# On Suns, sometimes $CPP names a directory.
4295if test -n "$CPP" && test -d "$CPP"; then
4296 CPP=
4297fi
4298if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004299 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004300 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004301else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004302 # Double quotes because CPP needs to be expanded
4303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4304 do
4305 ac_preproc_ok=false
4306for ac_c_preproc_warn_flag in '' yes
4307do
4308 # Use a header file that comes with gcc, so configuring glibc
4309 # with a fresh cross-compiler works.
4310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4311 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004312 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004313 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004315/* end confdefs.h. */
4316#ifdef __STDC__
4317# include <limits.h>
4318#else
4319# include <assert.h>
4320#endif
4321 Syntax error
4322_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004323if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004324
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004325else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004326 # Broken: fails on valid input.
4327continue
4328fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004329rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004330
Theodore Ts'oe1052142006-10-21 21:46:47 -04004331 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004332 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004334/* end confdefs.h. */
4335#include <ac_nonexistent.h>
4336_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004337if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004338 # Broken: success on invalid input.
4339continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004340else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004341 # Passes both tests.
4342ac_preproc_ok=:
4343break
4344fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004345rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004346
4347done
4348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004349rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004350if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004351 break
4352fi
4353
4354 done
4355 ac_cv_prog_CPP=$CPP
4356
4357fi
4358 CPP=$ac_cv_prog_CPP
4359else
4360 ac_cv_prog_CPP=$CPP
4361fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004363$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004364ac_preproc_ok=false
4365for ac_c_preproc_warn_flag in '' yes
4366do
4367 # Use a header file that comes with gcc, so configuring glibc
4368 # with a fresh cross-compiler works.
4369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4370 # <limits.h> exists even on freestanding compilers.
4371 # On the NeXT, cc -E runs the code through the compiler's parser,
4372 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004374/* end confdefs.h. */
4375#ifdef __STDC__
4376# include <limits.h>
4377#else
4378# include <assert.h>
4379#endif
4380 Syntax error
4381_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004382if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004383
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004384else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004385 # Broken: fails on valid input.
4386continue
4387fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004388rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004389
Theodore Ts'oe1052142006-10-21 21:46:47 -04004390 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004391 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004393/* end confdefs.h. */
4394#include <ac_nonexistent.h>
4395_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004396if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004397 # Broken: success on invalid input.
4398continue
4399else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004400 # Passes both tests.
4401ac_preproc_ok=:
4402break
4403fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004404rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004405
4406done
4407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004408rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004409if $ac_preproc_ok; then :
4410
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004411else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004414as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4415See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004416fi
4417
4418ac_ext=c
4419ac_cpp='$CPP $CPPFLAGS'
4420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004425$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004426if test "$GCC" = yes
4427then
4428 case "$host_cpu" in
4429 alpha) addcflags="-mieee" ;;
4430 esac
4431fi
4432if test "x$addcflags" != x
4433then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004435$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004436 CFLAGS="$addcflags $CFLAGS"
4437else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004439$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004440fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004441
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4443$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4444if ${ac_cv_path_GREP+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446else
4447 if test -z "$GREP"; then
4448 ac_path_GREP_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4452do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in grep ggrep; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4458 as_fn_executable_p "$ac_path_GREP" || continue
4459# Check for GNU ac_path_GREP and select it if it is found.
4460 # Check for GNU $ac_path_GREP
4461case `"$ac_path_GREP" --version 2>&1` in
4462*GNU*)
4463 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4464*)
4465 ac_count=0
4466 $as_echo_n 0123456789 >"conftest.in"
4467 while :
4468 do
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 $as_echo 'GREP' >> "conftest.nl"
4473 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475 as_fn_arith $ac_count + 1 && ac_count=$as_val
4476 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_GREP="$ac_path_GREP"
4479 ac_path_GREP_max=$ac_count
4480 fi
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4483 done
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485esac
4486
4487 $ac_path_GREP_found && break 3
4488 done
4489 done
4490 done
4491IFS=$as_save_IFS
4492 if test -z "$ac_cv_path_GREP"; then
4493 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4494 fi
4495else
4496 ac_cv_path_GREP=$GREP
4497fi
4498
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4501$as_echo "$ac_cv_path_GREP" >&6; }
4502 GREP="$ac_cv_path_GREP"
4503
4504
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4506$as_echo_n "checking for egrep... " >&6; }
4507if ${ac_cv_path_EGREP+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509else
4510 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4511 then ac_cv_path_EGREP="$GREP -E"
4512 else
4513 if test -z "$EGREP"; then
4514 ac_path_EGREP_found=false
4515 # Loop through the user's path and test for each of PROGNAME-LIST
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4518do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_prog in egrep; do
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4524 as_fn_executable_p "$ac_path_EGREP" || continue
4525# Check for GNU ac_path_EGREP and select it if it is found.
4526 # Check for GNU $ac_path_EGREP
4527case `"$ac_path_EGREP" --version 2>&1` in
4528*GNU*)
4529 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4530*)
4531 ac_count=0
4532 $as_echo_n 0123456789 >"conftest.in"
4533 while :
4534 do
4535 cat "conftest.in" "conftest.in" >"conftest.tmp"
4536 mv "conftest.tmp" "conftest.in"
4537 cp "conftest.in" "conftest.nl"
4538 $as_echo 'EGREP' >> "conftest.nl"
4539 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4541 as_fn_arith $ac_count + 1 && ac_count=$as_val
4542 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4543 # Best one so far, save it but keep looking for a better one
4544 ac_cv_path_EGREP="$ac_path_EGREP"
4545 ac_path_EGREP_max=$ac_count
4546 fi
4547 # 10*(2^10) chars as input seems more than enough
4548 test $ac_count -gt 10 && break
4549 done
4550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4551esac
4552
4553 $ac_path_EGREP_found && break 3
4554 done
4555 done
4556 done
4557IFS=$as_save_IFS
4558 if test -z "$ac_cv_path_EGREP"; then
4559 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4560 fi
4561else
4562 ac_cv_path_EGREP=$EGREP
4563fi
4564
4565 fi
4566fi
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4568$as_echo "$ac_cv_path_EGREP" >&6; }
4569 EGREP="$ac_cv_path_EGREP"
4570
4571
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4573$as_echo_n "checking for ANSI C header files... " >&6; }
4574if ${ac_cv_header_stdc+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576else
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578/* end confdefs.h. */
4579#include <stdlib.h>
4580#include <stdarg.h>
4581#include <string.h>
4582#include <float.h>
4583
4584int
4585main ()
4586{
4587
4588 ;
4589 return 0;
4590}
4591_ACEOF
4592if ac_fn_c_try_compile "$LINENO"; then :
4593 ac_cv_header_stdc=yes
4594else
4595 ac_cv_header_stdc=no
4596fi
4597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598
4599if test $ac_cv_header_stdc = yes; then
4600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h. */
4603#include <string.h>
4604
4605_ACEOF
4606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4607 $EGREP "memchr" >/dev/null 2>&1; then :
4608
4609else
4610 ac_cv_header_stdc=no
4611fi
4612rm -f conftest*
4613
4614fi
4615
4616if test $ac_cv_header_stdc = yes; then
4617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619/* end confdefs.h. */
4620#include <stdlib.h>
4621
4622_ACEOF
4623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624 $EGREP "free" >/dev/null 2>&1; then :
4625
4626else
4627 ac_cv_header_stdc=no
4628fi
4629rm -f conftest*
4630
4631fi
4632
4633if test $ac_cv_header_stdc = yes; then
4634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4635 if test "$cross_compiling" = yes; then :
4636 :
4637else
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639/* end confdefs.h. */
4640#include <ctype.h>
4641#include <stdlib.h>
4642#if ((' ' & 0x0FF) == 0x020)
4643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4645#else
4646# define ISLOWER(c) \
4647 (('a' <= (c) && (c) <= 'i') \
4648 || ('j' <= (c) && (c) <= 'r') \
4649 || ('s' <= (c) && (c) <= 'z'))
4650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4651#endif
4652
4653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4654int
4655main ()
4656{
4657 int i;
4658 for (i = 0; i < 256; i++)
4659 if (XOR (islower (i), ISLOWER (i))
4660 || toupper (i) != TOUPPER (i))
4661 return 2;
4662 return 0;
4663}
4664_ACEOF
4665if ac_fn_c_try_run "$LINENO"; then :
4666
4667else
4668 ac_cv_header_stdc=no
4669fi
4670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4671 conftest.$ac_objext conftest.beam conftest.$ac_ext
4672fi
4673
4674fi
4675fi
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4677$as_echo "$ac_cv_header_stdc" >&6; }
4678if test $ac_cv_header_stdc = yes; then
4679
4680$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4681
4682fi
4683
4684# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4685for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4686 inttypes.h stdint.h unistd.h
4687do :
4688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4689ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4690"
4691if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4692 cat >>confdefs.h <<_ACEOF
4693#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4694_ACEOF
4695
4696fi
4697
4698done
4699
4700
4701
4702 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4703if test "x$ac_cv_header_minix_config_h" = xyes; then :
4704 MINIX=yes
4705else
4706 MINIX=
4707fi
4708
4709
4710 if test "$MINIX" = yes; then
4711
4712$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4713
4714
4715$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4716
4717
4718$as_echo "#define _MINIX 1" >>confdefs.h
4719
4720 fi
4721
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4724$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4725if ${ac_cv_safe_to_define___extensions__+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727else
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729/* end confdefs.h. */
4730
4731# define __EXTENSIONS__ 1
4732 $ac_includes_default
4733int
4734main ()
4735{
4736
4737 ;
4738 return 0;
4739}
4740_ACEOF
4741if ac_fn_c_try_compile "$LINENO"; then :
4742 ac_cv_safe_to_define___extensions__=yes
4743else
4744 ac_cv_safe_to_define___extensions__=no
4745fi
4746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747fi
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4749$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4750 test $ac_cv_safe_to_define___extensions__ = yes &&
4751 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4752
4753 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4754
4755 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4756
4757 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4758
4759 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4760
4761
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004762LIB_EXT=.a
4763STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004764PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004765
Theodore Ts'oe1052142006-10-21 21:46:47 -04004766# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004767if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004768 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004769else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004770 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004771fi
4772# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004773if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004774 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004775then
4776 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004778$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004779else
4780 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004782$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004783fi
4784
4785else
4786 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004788$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004789
Theodore Ts'oe1052142006-10-21 21:46:47 -04004790fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004791
Theodore Ts'oe1052142006-10-21 21:46:47 -04004792
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004793# Check whether --enable-symlink-install was given.
4794if test "${enable_symlink_install+set}" = set; then :
4795 enableval=$enable_symlink_install; if test "$enableval" = "no"
4796then
4797 LINK_INSTALL_FLAGS=-f
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4799$as_echo "Disabling symlinks for install" >&6; }
4800else
4801 LINK_INSTALL_FLAGS=-sf
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4803$as_echo "Enabling symlinks for install" >&6; }
4804fi
4805
4806else
4807 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4809$as_echo "Disabling symlinks for install by default" >&6; }
4810
4811fi
4812
4813
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004814relative_symlink_defined=
4815# Check whether --enable-relative-symlinks was given.
4816if test "${enable_relative_symlinks+set}" = set; then :
4817 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004818then
4819 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004820 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4822$as_echo "Disabling relative symlinks for install" >&6; }
4823else
4824 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004825 relative_symlink_defined=yes
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4827$as_echo "Enabling relative symlinks for install" >&6; }
4828fi
4829fi
4830
4831# Check whether --enable-symlink-relative-symlinks was given.
4832if test "${enable_symlink_relative_symlinks+set}" = set; then :
4833 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4834then
4835 SYMLINK_RELATIVE=yes
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4837$as_echo "Disabling relative symlinks for install" >&6; }
4838else
4839 SYMLINK_RELATIVE=--relative
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4841$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004842fi
4843
4844else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004845 if test -z "$relative_symlink_defined"
4846then
4847 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4849$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004850fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004851
4852fi
4853
4854
4855# Check whether --enable-symlink-build was given.
4856if test "${enable_symlink_build+set}" = set; then :
4857 enableval=$enable_symlink_build; if test "$enableval" = "no"
4858then
4859 LINK_BUILD_FLAGS=
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4861$as_echo "Disabling symlinks for build" >&6; }
4862else
4863 LINK_BUILD_FLAGS=-s
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4865$as_echo "Enabling symlinks for build" >&6; }
4866fi
4867
4868else
4869 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4871$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004872
4873fi
4874
4875
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004876# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004877if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004878 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4879then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004881$as_echo "Disabling verbose make commands" >&6; }
4882 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004883 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004884 Q=@
4885else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004887$as_echo "Enabling verbose make commands" >&6; }
4888 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004889 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004890 Q=
4891fi
4892
4893else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004895$as_echo "Disabling verbose make commands" >&6; }
4896E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004897ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004898Q=@
4899
4900fi
4901
4902
4903
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004904
Theodore Ts'oe1052142006-10-21 21:46:47 -04004905# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004906if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004907 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004908then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004910$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004911else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004912
4913$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004914
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004916$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004918$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004919fi
4920
4921else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004923$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004924
Theodore Ts'oe1052142006-10-21 21:46:47 -04004925fi
4926
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004927
Theodore Ts'oe1052142006-10-21 21:46:47 -04004928# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004929if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004930 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004931then
4932 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004934$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004935else
4936 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004937 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004938
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004940$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004941fi
4942
4943else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004944 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004945$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004946
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004948$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004949
Theodore Ts'oe1052142006-10-21 21:46:47 -04004950fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004951
Theodore Ts'oe1052142006-10-21 21:46:47 -04004952
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004953E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004954LDFLAG_DYNAMIC=
4955PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004956# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004957if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004958 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004959then
4960 ELF_CMT=#
4961 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004963$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004964else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004965 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004966 ELF_CMT=
4967 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004968 case "$host_os" in
4969 solaris2.*)
4970 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4971 ;;
4972 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004973 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004974 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004975 PRIVATE_LIBS_CMT=#
4976 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004978$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004979fi
4980
4981else
4982 MAKEFILE_ELF=/dev/null
4983ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004985$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004986
Theodore Ts'oe1052142006-10-21 21:46:47 -04004987fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004988
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004989
Theodore Ts'oe1052142006-10-21 21:46:47 -04004990
4991# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004992if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004993 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004994then
4995 BSDLIB_CMT=#
4996 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004998$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004999else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05005000 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005001 BSDLIB_CMT=
5002 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00005003 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05005004 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05005005 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05005006 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5007 LIB_EXT=.dylib
5008 ;;
5009 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005011$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005012fi
5013
5014else
5015 MAKEFILE_BSDLIB=/dev/null
5016BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005018$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005019
Theodore Ts'oe1052142006-10-21 21:46:47 -04005020fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005021
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005022
Theodore Ts'oe1052142006-10-21 21:46:47 -04005023
5024# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005025if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005026 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005027then
5028 PROFILE_CMT=#
5029 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005031$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005032else
5033 PROFILE_CMT=
5034 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5035 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005037$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005038fi
5039
5040else
5041 PROFILE_CMT=#
5042MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005044$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005045
Theodore Ts'oe1052142006-10-21 21:46:47 -04005046fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005047
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005048
Theodore Ts'oe1052142006-10-21 21:46:47 -04005049
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005050# Check whether --enable-gcov was given.
5051if test "${enable_gcov+set}" = set; then :
5052 enableval=$enable_gcov; if test "$enableval" = "yes"
5053then
5054 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5055 LDFLAGS="-fprofile-arcs -ftest-coverage"
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5057$as_echo "Enabling gcov support" >&6; }
5058fi
5059
5060fi
5061
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005062
5063
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005064
Theodore Ts'oe1052142006-10-21 21:46:47 -04005065
Theodore Ts'o55da9872008-09-02 23:12:38 -04005066
5067
Theodore Ts'oe1052142006-10-21 21:46:47 -04005068# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005069if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005070 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005071then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005073$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005074else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005075
5076$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005077
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005079$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005080fi
5081
5082else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005084$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005085
Theodore Ts'oe1052142006-10-21 21:46:47 -04005086fi
5087
5088# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005089if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005090 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005091then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005093$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005094else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005095
5096$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005097
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005099$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005100fi
5101
5102else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005104$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005105
Theodore Ts'oe1052142006-10-21 21:46:47 -04005106fi
5107
5108# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005109if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005110 enableval=$enable_testio_debug;
5111if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005112then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005114$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005115 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005116else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005117 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005118 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005119
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005121$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005122fi
5123
5124else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005126$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005127$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005128
5129TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005130
Theodore Ts'oe1052142006-10-21 21:46:47 -04005131fi
5132
Theodore Ts'oaf773652008-09-01 11:27:27 -04005133
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005134
5135
Theodore Ts'o93613952014-07-03 23:44:13 -04005136
5137
5138
5139
5140
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005141if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005142 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005143 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5144set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005146$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005147if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005148 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005149else
5150 case $PKG_CONFIG in
5151 [\\/]* | ?:[\\/]*)
5152 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5153 ;;
5154 *)
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH
5157do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005160 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005162 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005164 break 2
5165 fi
5166done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005167 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005168IFS=$as_save_IFS
5169
5170 ;;
5171esac
5172fi
5173PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5174if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005176$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005177else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005179$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005180fi
5181
5182
5183fi
5184if test -z "$ac_cv_path_PKG_CONFIG"; then
5185 ac_pt_PKG_CONFIG=$PKG_CONFIG
5186 # Extract the first word of "pkg-config", so it can be a program name with args.
5187set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005189$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005190if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005191 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005192else
5193 case $ac_pt_PKG_CONFIG in
5194 [\\/]* | ?:[\\/]*)
5195 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5196 ;;
5197 *)
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005203 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005205 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005207 break 2
5208 fi
5209done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005210 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005211IFS=$as_save_IFS
5212
5213 ;;
5214esac
5215fi
5216ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5217if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005219$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005220else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005222$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005223fi
5224
5225 if test "x$ac_pt_PKG_CONFIG" = x; then
5226 PKG_CONFIG=""
5227 else
5228 case $cross_compiling:$ac_tool_warned in
5229yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005230{ $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 +01005231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005232ac_tool_warned=yes ;;
5233esac
5234 PKG_CONFIG=$ac_pt_PKG_CONFIG
5235 fi
5236else
5237 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5238fi
5239
5240fi
5241if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005242 _pkg_min_version=0.9.0
5243 { $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 +01005244$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005245 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005247$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005250$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005251 PKG_CONFIG=""
5252 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005253fi
5254LIBUUID=
5255DEPLIBUUID=
5256STATIC_LIBUUID=
5257DEPSTATIC_LIBUUID=
5258PROFILED_LIBUUID=
5259DEPPROFILED_LIBUUID=
5260UUID_CMT=
5261# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005262if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005263 enableval=$enable_libuuid; if test "$enableval" = "no"
5264then
5265 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005266 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005267 fi
5268
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005270$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005271if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005272 $as_echo_n "(cached) " >&6
5273else
5274 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005275LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005277/* end confdefs.h. */
5278
5279/* Override any GCC internal prototype to avoid an error.
5280 Use char because int might match the return type of a GCC
5281 builtin and then its argument prototype would still apply. */
5282#ifdef __cplusplus
5283extern "C"
5284#endif
5285char uuid_generate ();
5286int
5287main ()
5288{
5289return uuid_generate ();
5290 ;
5291 return 0;
5292}
5293_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005294if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005295 ac_cv_lib_uuid_uuid_generate=yes
5296else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005297 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005298fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005299rm -f core conftest.err conftest.$ac_objext \
5300 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005301LIBS=$ac_check_lib_save_LIBS
5302fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005304$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005305if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005306 LIBUUID=`$PKG_CONFIG --libs uuid`;
5307 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5308else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005309 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005310fi
5311
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005312 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005313 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005315$as_echo "Disabling private uuid library" >&6; }
5316else
5317 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5318 DEPLIBUUID=$LIBUUID
5319 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5320 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5321 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5322 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005324$as_echo "Enabling private uuid library" >&6; }
5325fi
5326
5327else
5328 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5329DEPLIBUUID=$LIBUUID
5330STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5331DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5332PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5333DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005335$as_echo "Enabling private uuid library by default" >&6; }
5336
5337fi
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
Theodore Ts'o93613952014-07-03 23:44:13 -04005348
5349
5350
5351
5352
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005353if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005354 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005355 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5356set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005358$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005359if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005360 $as_echo_n "(cached) " >&6
5361else
5362 case $PKG_CONFIG in
5363 [\\/]* | ?:[\\/]*)
5364 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5365 ;;
5366 *)
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368for as_dir in $PATH
5369do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005372 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005374 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005376 break 2
5377 fi
5378done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005379 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005380IFS=$as_save_IFS
5381
5382 ;;
5383esac
5384fi
5385PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5386if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005388$as_echo "$PKG_CONFIG" >&6; }
5389else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005391$as_echo "no" >&6; }
5392fi
5393
5394
5395fi
5396if test -z "$ac_cv_path_PKG_CONFIG"; then
5397 ac_pt_PKG_CONFIG=$PKG_CONFIG
5398 # Extract the first word of "pkg-config", so it can be a program name with args.
5399set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005401$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005402if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005403 $as_echo_n "(cached) " >&6
5404else
5405 case $ac_pt_PKG_CONFIG in
5406 [\\/]* | ?:[\\/]*)
5407 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5408 ;;
5409 *)
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411for as_dir in $PATH
5412do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005415 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005417 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005419 break 2
5420 fi
5421done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005422 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005423IFS=$as_save_IFS
5424
5425 ;;
5426esac
5427fi
5428ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5429if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005431$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5432else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005434$as_echo "no" >&6; }
5435fi
5436
5437 if test "x$ac_pt_PKG_CONFIG" = x; then
5438 PKG_CONFIG=""
5439 else
5440 case $cross_compiling:$ac_tool_warned in
5441yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005442{ $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 +01005443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5444ac_tool_warned=yes ;;
5445esac
5446 PKG_CONFIG=$ac_pt_PKG_CONFIG
5447 fi
5448else
5449 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5450fi
5451
5452fi
5453if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005454 _pkg_min_version=0.9.0
5455 { $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 +01005456$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005457 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005459$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005460 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005462$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005463 PKG_CONFIG=""
5464 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005465fi
5466LIBBLKID=
5467DEPLIBBLKID=
5468STATIC_LIBBLKID=
5469DEPSTATIC_LIBBLKID=
5470PROFILED_LIBBLKID=
5471DEPPROFILED_LIBBLKID=
5472BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005473
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005474# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005475if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005476 enableval=$enable_libblkid; if test "$enableval" = "no"
5477then
5478 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005479 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005480 fi
5481
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005483$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005484if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005485 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005486else
5487 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005488LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005490/* end confdefs.h. */
5491
5492/* Override any GCC internal prototype to avoid an error.
5493 Use char because int might match the return type of a GCC
5494 builtin and then its argument prototype would still apply. */
5495#ifdef __cplusplus
5496extern "C"
5497#endif
5498char blkid_get_cache ();
5499int
5500main ()
5501{
5502return blkid_get_cache ();
5503 ;
5504 return 0;
5505}
5506_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005507if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005508 ac_cv_lib_blkid_blkid_get_cache=yes
5509else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005510 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005511fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005512rm -f core conftest.err conftest.$ac_objext \
5513 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005514LIBS=$ac_check_lib_save_LIBS
5515fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005517$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005518if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005519 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5520 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5521else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005522 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005523fi
5524
5525 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005526 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005528$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005529else
5530 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5531 DEPLIBBLKID=$LIBBLKID
5532 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5533 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5534 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5535 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005536 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005537
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005539$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005540fi
5541
5542else
5543 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5544DEPLIBBLKID=$LIBBLKID
5545STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5546DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5547PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5548DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005549$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005550
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005552$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005553
5554fi
5555
5556
5557
5558
5559
5560
5561
5562
Eric Sandeenf5589f42013-10-14 08:54:15 -04005563QUOTA_MAN_COMMENT='.\"'
Niu Yawei43075b42013-10-14 09:49:27 -04005564QUOTA_CMT=
Eric Sandeenf5589f42013-10-14 08:54:15 -04005565
Aditya Kalif239fef2011-07-20 11:40:02 -07005566
5567
Theodore Ts'o93613952014-07-03 23:44:13 -04005568
5569
5570
5571
5572
Aditya Kalif239fef2011-07-20 11:40:02 -07005573if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005574 if test -n "$ac_tool_prefix"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005575 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5576set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005579if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005580 $as_echo_n "(cached) " >&6
5581else
5582 case $PKG_CONFIG in
5583 [\\/]* | ?:[\\/]*)
5584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5585 ;;
5586 *)
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH
5589do
5590 IFS=$as_save_IFS
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 break 2
5597 fi
5598done
5599 done
5600IFS=$as_save_IFS
5601
5602 ;;
5603esac
5604fi
5605PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5606if test -n "$PKG_CONFIG"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5608$as_echo "$PKG_CONFIG" >&6; }
5609else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611$as_echo "no" >&6; }
5612fi
5613
5614
5615fi
5616if test -z "$ac_cv_path_PKG_CONFIG"; then
5617 ac_pt_PKG_CONFIG=$PKG_CONFIG
5618 # Extract the first word of "pkg-config", so it can be a program name with args.
5619set dummy pkg-config; ac_word=$2
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005622if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005623 $as_echo_n "(cached) " >&6
5624else
5625 case $ac_pt_PKG_CONFIG in
5626 [\\/]* | ?:[\\/]*)
5627 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5628 ;;
5629 *)
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005637 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641done
5642 done
5643IFS=$as_save_IFS
5644
5645 ;;
5646esac
5647fi
5648ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5649if test -n "$ac_pt_PKG_CONFIG"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5651$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5652else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654$as_echo "no" >&6; }
5655fi
5656
5657 if test "x$ac_pt_PKG_CONFIG" = x; then
5658 PKG_CONFIG=""
5659 else
5660 case $cross_compiling:$ac_tool_warned in
5661yes:)
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5664ac_tool_warned=yes ;;
5665esac
5666 PKG_CONFIG=$ac_pt_PKG_CONFIG
5667 fi
5668else
5669 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5670fi
5671
5672fi
5673if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005674 _pkg_min_version=0.9.0
5675 { $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 -07005676$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005677 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005679$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005680 else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005682$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005683 PKG_CONFIG=""
5684 fi
Aditya Kalif239fef2011-07-20 11:40:02 -07005685fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005686
5687# Check whether --enable-quota was given.
5688if test "${enable_quota+set}" = set; then :
5689 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005690then
Niu Yawei43075b42013-10-14 09:49:27 -04005691 QUOTA_CMT=#
Theodore Ts'o7becb202011-11-14 10:40:43 -05005692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5693$as_echo "Disabling quota support" >&6; }
5694else
Niu Yawei43075b42013-10-14 09:49:27 -04005695 QUOTA_CMT=
Theodore Ts'o7becb202011-11-14 10:40:43 -05005696 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005697
Theodore Ts'o7becb202011-11-14 10:40:43 -05005698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5699$as_echo "Enabling quota support" >&6; }
Eric Sandeenf5589f42013-10-14 08:54:15 -04005700 QUOTA_MAN_COMMENT=""
5701
Aditya Kalif239fef2011-07-20 11:40:02 -07005702fi
5703
5704else
Niu Yawei43075b42013-10-14 09:49:27 -04005705 QUOTA_CMT=#
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
Theodore Ts'o7becb202011-11-14 10:40:43 -05005707$as_echo "Disabling quota support by default" >&6; }
5708
5709fi
5710
5711LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005712DEPLIBQUOTA=$LIBQUOTA
5713STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5714DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5715PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5716DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005717
5718
5719
5720
5721
5722
5723
Theodore Ts'o3df60142013-06-16 16:14:40 -04005724
5725# Check whether --enable-backtrace was given.
5726if test "${enable_backtrace+set}" = set; then :
5727 enableval=$enable_backtrace; if test "$enableval" = "no"
5728then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5730$as_echo "Disabling use of backtrace" >&6; }
5731 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5732
5733else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5735$as_echo "Enabling use of backtrace" >&6; }
5736fi
5737
5738else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5740$as_echo "Enabling use of backtrace by default" >&6; }
5741
5742fi
5743
Theodore Ts'oe1052142006-10-21 21:46:47 -04005744# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005745if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005746 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005747then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005749$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005750 DEBUGFS_CMT="#"
5751else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005752 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005754$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005755fi
5756
5757else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005759$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005760DEBUGFS_CMT=
5761
Theodore Ts'oe1052142006-10-21 21:46:47 -04005762fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005763
Theodore Ts'oe1052142006-10-21 21:46:47 -04005764
5765# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005766if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005767 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005768then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005770$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005771 IMAGER_CMT="#"
5772else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005773 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005775$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005776fi
5777
5778else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005780$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005781IMAGER_CMT=
5782
Theodore Ts'oe1052142006-10-21 21:46:47 -04005783fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005784
Theodore Ts'oe1052142006-10-21 21:46:47 -04005785
5786# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005787if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005788 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005789then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005791$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005792 RESIZER_CMT="#"
5793else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005794 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005796$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005797fi
5798
5799else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005801$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005802RESIZER_CMT=
5803
Theodore Ts'oe1052142006-10-21 21:46:47 -04005804fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005805
Theodore Ts'oe1052142006-10-21 21:46:47 -04005806
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005807# Check whether --enable-defrag was given.
5808if test "${enable_defrag+set}" = set; then :
5809 enableval=$enable_defrag; if test "$enableval" = "no"
5810then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5812$as_echo "Disabling e4defrag support" >&6; }
5813 DEFRAG_CMT="#"
5814else
5815 DEFRAG_CMT=
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5817$as_echo "Enabling e4defrag support" >&6; }
5818fi
5819
5820else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005821 if test -z "$WITH_DIET_LIBC"
5822then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005824$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005825 DEFRAG_CMT=
5826else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5828$as_echo "Disabling e4defrag support by default" >&6; }
5829 DEFRAG_CMT="#"
5830fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005831
5832fi
5833
5834
Theodore Ts'oe1052142006-10-21 21:46:47 -04005835# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005836if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005837 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005838then
5839 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005841$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005842else
5843 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005845$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005846fi
5847
5848else
5849 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005850 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005851 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005853$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005854 ;;
5855 *)
5856 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005858$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005859esac
5860
Theodore Ts'oe1052142006-10-21 21:46:47 -04005861fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005862
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005863
Theodore Ts'oe1052142006-10-21 21:46:47 -04005864
5865# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005866if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005867 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005868then
5869 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005871$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005872else
5873 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005875$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005876fi
5877
5878else
5879 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005881$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005882
Theodore Ts'oe1052142006-10-21 21:46:47 -04005883fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005884
5885
Theodore Ts'oe1052142006-10-21 21:46:47 -04005886
Theodore Ts'o32493942007-12-31 10:45:01 -05005887# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005888if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005889 enableval=$enable_tls; if test "$enableval" = "no"
5890then
5891 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005893$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005894else
5895 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005897$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005898fi
5899
5900else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005901 if test -n "$WITH_DIET_LIBC"
5902then
5903 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005904 { $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 +01005905$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005906else
5907 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005909$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005910fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005911
5912fi
5913
5914if test "$try_tls" = "yes"
5915then
5916
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005918$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005919 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005920 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005921else
5922
5923 ax_tls_keywords="__thread __declspec(thread) none"
5924 for ax_tls_keyword in $ax_tls_keywords; do
5925 case $ax_tls_keyword in
5926 none) ac_cv_tls=none ; break ;;
5927 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005929/* end confdefs.h. */
5930#include <stdlib.h>
5931 static void
5932 foo(void) {
5933 static $ax_tls_keyword int bar;
5934 exit(1);
5935 }
5936int
5937main ()
5938{
5939
5940 ;
5941 return 0;
5942}
5943_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005944if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005945 ac_cv_tls=$ax_tls_keyword ; break
5946else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005947 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005948
5949fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 esac
5952 done
5953
5954fi
5955
5956
5957 if test "$ac_cv_tls" != "none"; then
5958
5959cat >>confdefs.h <<_ACEOF
5960#define TLS $ac_cv_tls
5961_ACEOF
5962
5963 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005965$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005966
5967fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005968
Theodore Ts'o5610f992007-12-31 11:16:56 -05005969# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005970if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005971 enableval=$enable_uuidd; if test "$enableval" = "no"
5972then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005974$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005975 UUIDD_CMT="#"
5976else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005977 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005978
5979 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005981$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005982fi
5983
5984else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005985 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005986
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005987if test -z "$UUID_CMT"
5988then
5989 UUIDD_CMT=""
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005991$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005992else
5993 UUIDD_CMT="#"
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5995$as_echo "Disabling uuidd by default" >&6; }
5996fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005997
5998fi
5999
6000
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006001
6002# Check whether --enable-mmp was given.
6003if test "${enable_mmp+set}" = set; then :
6004 enableval=$enable_mmp; if test "$enableval" = "no"
6005then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6007$as_echo "Disabling mmp support" >&6; }
6008else
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6010$as_echo "Enabling mmp support" >&6; }
6011 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6012
6013fi
6014
6015else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6017$as_echo "Enabling mmp support by default" >&6; }
6018$as_echo "#define CONFIG_MMP 1" >>confdefs.h
6019
6020
6021fi
6022
Tony Breeds1625bf42012-07-30 14:44:12 -04006023
6024# Check whether --enable-bmap-stats was given.
6025if test "${enable_bmap_stats+set}" = set; then :
6026 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6027then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6029$as_echo "Disabling bitmap statistics support" >&6; }
6030else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6032$as_echo "Enabling bitmap statistics support" >&6; }
6033 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6034
6035fi
6036
6037else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6039$as_echo "Enabling bitmap statistics support by default" >&6; }
6040$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6041
6042
6043fi
6044
6045
6046# Check whether --enable-bmap-stats-ops was given.
6047if test "${enable_bmap_stats_ops+set}" = set; then :
6048 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6049then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6051$as_echo "Disabling additional bitmap statistics" >&6; }
6052else
6053 if test "x${enable_bmap_stats}" = "xno"; then :
6054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6056as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6057See \`config.log' for more details" "$LINENO" 5; }
6058fi
6059
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6061$as_echo "Enabling additional bitmap statistics" >&6; }
6062 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6063
6064fi
6065
6066else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6068$as_echo "Disabling additional bitmap statistics by default" >&6; }
6069
6070fi
6071
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006072MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6073
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006074GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006075PACKAGE=e2fsprogs
6076VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006077VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006078
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006080#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006081_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006082
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006083
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006084cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006085#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006086_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006087
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006088
6089
6090
6091
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006093$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6094set x ${MAKE-make}
6095ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006096if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006097 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006098else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006099 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006100SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006101all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006102 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006103_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006104# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006105case `${MAKE-make} -f conftest.make 2>/dev/null` in
6106 *@@@%%%=?*=@@@%%%*)
6107 eval ac_cv_prog_make_${ac_make}_set=yes;;
6108 *)
6109 eval ac_cv_prog_make_${ac_make}_set=no;;
6110esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006111rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006112fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006113if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006115$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006116 SET_MAKE=
6117else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006119$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006120 SET_MAKE="MAKE=${MAKE-make}"
6121fi
6122
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006123# Find a good install program. We prefer a C program (faster),
6124# so one script is as good as another. But avoid the broken or
6125# incompatible versions:
6126# SysV /etc/install, /usr/sbin/install
6127# SunOS /usr/etc/install
6128# IRIX /sbin/install
6129# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006130# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006131# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6132# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6133# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006134# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006135# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006136# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006138$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006139if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006140if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006141 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006142else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006148 # Account for people who put trailing slashes in PATH elements.
6149case $as_dir/ in #((
6150 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006151 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006152 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006153 /usr/ucb/* ) ;;
6154 *)
6155 # OSF1 and SCO ODT 3.0 have their own names for install.
6156 # Don't use installbsd from OSF since it installs stuff as root
6157 # by default.
6158 for ac_prog in ginstall scoinst install; do
6159 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006160 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006161 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006162 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006163 # AIX install. It has an incompatible calling convention.
6164 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006165 elif test $ac_prog = install &&
6166 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6167 # program-specific install script used by HP pwplus--don't use.
6168 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006169 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006170 rm -rf conftest.one conftest.two conftest.dir
6171 echo one > conftest.one
6172 echo two > conftest.two
6173 mkdir conftest.dir
6174 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6175 test -s conftest.one && test -s conftest.two &&
6176 test -s conftest.dir/conftest.one &&
6177 test -s conftest.dir/conftest.two
6178 then
6179 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6180 break 3
6181 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006182 fi
6183 fi
6184 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006185 done
6186 ;;
6187esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006188
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006189 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006190IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006191
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006192rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006193
6194fi
6195 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006196 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006197 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006198 # As a last resort, use the slow shell script. Don't cache a
6199 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006200 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006201 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006202 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006203 fi
6204fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006206$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006207
6208# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6209# It thinks the first close brace ends the variable substitution.
6210test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6211
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006212test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006213
6214test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6215
Theodore Ts'o93613952014-07-03 23:44:13 -04006216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6217$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6218if test -z "$MKDIR_P"; then
6219 if ${ac_cv_path_mkdir+:} false; then :
6220 $as_echo_n "(cached) " >&6
6221else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6224do
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_prog in mkdir gmkdir; do
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6230 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6231 'mkdir (GNU coreutils) '* | \
6232 'mkdir (coreutils) '* | \
6233 'mkdir (fileutils) '4.1*)
6234 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6235 break 3;;
6236 esac
6237 done
6238 done
6239 done
6240IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006241
Theodore Ts'o93613952014-07-03 23:44:13 -04006242fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006243
Theodore Ts'o93613952014-07-03 23:44:13 -04006244 test -d ./--version && rmdir ./--version
6245 if test "${ac_cv_path_mkdir+set}" = set; then
6246 MKDIR_P="$ac_cv_path_mkdir -p"
6247 else
6248 # As a last resort, use the slow shell script. Don't cache a
6249 # value for MKDIR_P within a source directory, because that will
6250 # break other packages using the cache if that directory is
6251 # removed, or if the value is a relative name.
6252 MKDIR_P="$ac_install_sh -d"
6253 fi
6254fi
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6256$as_echo "$MKDIR_P" >&6; }
6257
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6259$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6260if ${ac_cv_path_SED+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262else
6263 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6264 for ac_i in 1 2 3 4 5 6 7; do
6265 ac_script="$ac_script$as_nl$ac_script"
6266 done
6267 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6268 { ac_script=; unset ac_script;}
6269 if test -z "$SED"; then
6270 ac_path_SED_found=false
6271 # Loop through the user's path and test for each of PROGNAME-LIST
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273for as_dir in $PATH
6274do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_prog in sed gsed; do
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6280 as_fn_executable_p "$ac_path_SED" || continue
6281# Check for GNU ac_path_SED and select it if it is found.
6282 # Check for GNU $ac_path_SED
6283case `"$ac_path_SED" --version 2>&1` in
6284*GNU*)
6285 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6286*)
6287 ac_count=0
6288 $as_echo_n 0123456789 >"conftest.in"
6289 while :
6290 do
6291 cat "conftest.in" "conftest.in" >"conftest.tmp"
6292 mv "conftest.tmp" "conftest.in"
6293 cp "conftest.in" "conftest.nl"
6294 $as_echo '' >> "conftest.nl"
6295 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6297 as_fn_arith $ac_count + 1 && ac_count=$as_val
6298 if test $ac_count -gt ${ac_path_SED_max-0}; then
6299 # Best one so far, save it but keep looking for a better one
6300 ac_cv_path_SED="$ac_path_SED"
6301 ac_path_SED_max=$ac_count
6302 fi
6303 # 10*(2^10) chars as input seems more than enough
6304 test $ac_count -gt 10 && break
6305 done
6306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6307esac
6308
6309 $ac_path_SED_found && break 3
6310 done
6311 done
6312 done
6313IFS=$as_save_IFS
6314 if test -z "$ac_cv_path_SED"; then
6315 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6316 fi
6317else
6318 ac_cv_path_SED=$SED
6319fi
6320
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6323$as_echo "$ac_cv_path_SED" >&6; }
6324 SED="$ac_cv_path_SED"
6325 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006326
6327
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006329$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006330 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006331if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006332 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006333else
6334 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006335fi
6336
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006338$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006339
6340
6341
6342
Theodore Ts'o93613952014-07-03 23:44:13 -04006343 GETTEXT_MACRO_VERSION=0.18
6344
6345
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006346
6347
6348# Prepare PATH_SEPARATOR.
6349# The user is always right.
6350if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006351 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6352 # contains only /bin. Note that ksh looks also at the FPATH variable,
6353 # so we have to set that as well for the test.
6354 PATH_SEPARATOR=:
6355 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6356 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6357 || PATH_SEPARATOR=';'
6358 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006359fi
6360
6361# Find out how to test for executable files. Don't use a zero-byte file,
6362# as systems may use methods other than mode bits to determine executability.
6363cat >conf$$.file <<_ASEOF
6364#! /bin/sh
6365exit 0
6366_ASEOF
6367chmod +x conf$$.file
6368if test -x conf$$.file >/dev/null 2>&1; then
6369 ac_executable_p="test -x"
6370else
6371 ac_executable_p="test -f"
6372fi
6373rm -f conf$$.file
6374
6375# Extract the first word of "msgfmt", so it can be a program name with args.
6376set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006378$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006379if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006380 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006381else
6382 case "$MSGFMT" in
6383 [\\/]* | ?:[\\/]*)
6384 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6385 ;;
6386 *)
6387 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6388 for ac_dir in $PATH; do
6389 IFS="$ac_save_IFS"
6390 test -z "$ac_dir" && ac_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006393 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6394 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006395 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6396 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6397 break 2
6398 fi
6399 fi
6400 done
6401 done
6402 IFS="$ac_save_IFS"
6403 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6404 ;;
6405esac
6406fi
6407MSGFMT="$ac_cv_path_MSGFMT"
6408if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006410$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006411else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006413$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006414fi
6415
6416 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6417set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006419$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006420if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006421 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006422else
6423 case $GMSGFMT in
6424 [\\/]* | ?:[\\/]*)
6425 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6426 ;;
6427 *)
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH
6430do
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006433 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006435 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006437 break 2
6438 fi
6439done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006440 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006441IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006442
6443 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6444 ;;
6445esac
6446fi
6447GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006448if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006450$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006451else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006453$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006454fi
6455
6456
6457
Theodore Ts'o93613952014-07-03 23:44:13 -04006458 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6459 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6460 *) MSGFMT_015=$MSGFMT ;;
6461 esac
6462
6463 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6464 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6465 *) GMSGFMT_015=$GMSGFMT ;;
6466 esac
6467
6468
Theodore Ts'oe1052142006-10-21 21:46:47 -04006469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006470# Prepare PATH_SEPARATOR.
6471# The user is always right.
6472if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006473 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6474 # contains only /bin. Note that ksh looks also at the FPATH variable,
6475 # so we have to set that as well for the test.
6476 PATH_SEPARATOR=:
6477 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6478 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6479 || PATH_SEPARATOR=';'
6480 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006481fi
6482
6483# Find out how to test for executable files. Don't use a zero-byte file,
6484# as systems may use methods other than mode bits to determine executability.
6485cat >conf$$.file <<_ASEOF
6486#! /bin/sh
6487exit 0
6488_ASEOF
6489chmod +x conf$$.file
6490if test -x conf$$.file >/dev/null 2>&1; then
6491 ac_executable_p="test -x"
6492else
6493 ac_executable_p="test -f"
6494fi
6495rm -f conf$$.file
6496
6497# Extract the first word of "xgettext", so it can be a program name with args.
6498set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006500$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006501if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006502 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006503else
6504 case "$XGETTEXT" in
6505 [\\/]* | ?:[\\/]*)
6506 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6507 ;;
6508 *)
6509 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6510 for ac_dir in $PATH; do
6511 IFS="$ac_save_IFS"
6512 test -z "$ac_dir" && ac_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006515 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6516 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 -05006517 (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
6518 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6519 break 2
6520 fi
6521 fi
6522 done
6523 done
6524 IFS="$ac_save_IFS"
6525 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6526 ;;
6527esac
6528fi
6529XGETTEXT="$ac_cv_path_XGETTEXT"
6530if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006532$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006533else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006535$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006536fi
6537
6538 rm -f messages.po
6539
Theodore Ts'o93613952014-07-03 23:44:13 -04006540 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6541 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6542 *) XGETTEXT_015=$XGETTEXT ;;
6543 esac
6544
6545
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006546
6547# Prepare PATH_SEPARATOR.
6548# The user is always right.
6549if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006550 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6551 # contains only /bin. Note that ksh looks also at the FPATH variable,
6552 # so we have to set that as well for the test.
6553 PATH_SEPARATOR=:
6554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6555 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6556 || PATH_SEPARATOR=';'
6557 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006558fi
6559
6560# Find out how to test for executable files. Don't use a zero-byte file,
6561# as systems may use methods other than mode bits to determine executability.
6562cat >conf$$.file <<_ASEOF
6563#! /bin/sh
6564exit 0
6565_ASEOF
6566chmod +x conf$$.file
6567if test -x conf$$.file >/dev/null 2>&1; then
6568 ac_executable_p="test -x"
6569else
6570 ac_executable_p="test -f"
6571fi
6572rm -f conf$$.file
6573
6574# Extract the first word of "msgmerge", so it can be a program name with args.
6575set dummy msgmerge; 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; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006578if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006579 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006580else
6581 case "$MSGMERGE" in
6582 [\\/]* | ?:[\\/]*)
6583 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6584 ;;
6585 *)
6586 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6587 for ac_dir in $PATH; do
6588 IFS="$ac_save_IFS"
6589 test -z "$ac_dir" && ac_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006592 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6593 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006594 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6595 break 2
6596 fi
6597 fi
6598 done
6599 done
6600 IFS="$ac_save_IFS"
6601 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6602 ;;
6603esac
6604fi
6605MSGMERGE="$ac_cv_path_MSGMERGE"
6606if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006608$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006609else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006611$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006612fi
6613
6614
Theodore Ts'o93613952014-07-03 23:44:13 -04006615 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006616
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006617
Theodore Ts'o93613952014-07-03 23:44:13 -04006618 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6619
6620
6621 ac_config_commands="$ac_config_commands po-directories"
6622
6623
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6626$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6627if ${ac_cv_gnu_library_2+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629else
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631/* end confdefs.h. */
6632
6633#include <features.h>
6634#ifdef __GNU_LIBRARY__
6635 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6636 Lucky GNU user
6637 #endif
6638#endif
6639
6640_ACEOF
6641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6642 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6643 ac_cv_gnu_library_2=yes
6644else
6645 ac_cv_gnu_library_2=no
6646fi
6647rm -f conftest*
6648
6649
6650
6651fi
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6653$as_echo "$ac_cv_gnu_library_2" >&6; }
6654
6655 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006656
6657
6658if test -n "$ac_tool_prefix"; then
6659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6660set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006662$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006663if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006664 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006665else
6666 if test -n "$RANLIB"; then
6667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6668else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670for as_dir in $PATH
6671do
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006674 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006678 break 2
6679 fi
6680done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006681 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006682IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006683
6684fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685fi
6686RANLIB=$ac_cv_prog_RANLIB
6687if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006689$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006690else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006692$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006693fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006694
Theodore Ts'oe1052142006-10-21 21:46:47 -04006695
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006696fi
6697if test -z "$ac_cv_prog_RANLIB"; then
6698 ac_ct_RANLIB=$RANLIB
6699 # Extract the first word of "ranlib", so it can be a program name with args.
6700set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006702$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006703if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006704 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006705else
6706 if test -n "$ac_ct_RANLIB"; then
6707 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6708else
6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006714 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006716 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006718 break 2
6719 fi
6720done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006721 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006722IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006724fi
6725fi
6726ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6727if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006729$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006730else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006732$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006733fi
6734
Theodore Ts'oe1052142006-10-21 21:46:47 -04006735 if test "x$ac_ct_RANLIB" = x; then
6736 RANLIB=":"
6737 else
6738 case $cross_compiling:$ac_tool_warned in
6739yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006740{ $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 +01006741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006742ac_tool_warned=yes ;;
6743esac
6744 RANLIB=$ac_ct_RANLIB
6745 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006746else
6747 RANLIB="$ac_cv_prog_RANLIB"
6748fi
6749
6750
Theodore Ts'o93613952014-07-03 23:44:13 -04006751
6752 CFLAG_VISIBILITY=
6753 HAVE_VISIBILITY=0
6754 if test -n "$GCC"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6756$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6757 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006758 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006759else
Theodore Ts'o93613952014-07-03 23:44:13 -04006760
6761 gl_save_CFLAGS="$CFLAGS"
6762 CFLAGS="$CFLAGS -Werror"
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006764/* end confdefs.h. */
6765
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006766int
6767main ()
6768{
Theodore Ts'o93613952014-07-03 23:44:13 -04006769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006770 ;
6771 return 0;
6772}
6773_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006774if ac_fn_c_try_compile "$LINENO"; then :
6775 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006776else
Theodore Ts'o93613952014-07-03 23:44:13 -04006777 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006778fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781fi
6782
Theodore Ts'o93613952014-07-03 23:44:13 -04006783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6784$as_echo "$gl_cv_cc_vis_werror" >&6; }
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6786$as_echo_n "checking for simple visibility declarations... " >&6; }
6787 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006788 $as_echo_n "(cached) " >&6
6789else
Theodore Ts'o93613952014-07-03 23:44:13 -04006790
6791 gl_save_CFLAGS="$CFLAGS"
6792 CFLAGS="$CFLAGS -fvisibility=hidden"
6793 if test $gl_cv_cc_vis_werror = yes; then
6794 CFLAGS="$CFLAGS -Werror"
6795 fi
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797/* end confdefs.h. */
6798extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6799 extern __attribute__((__visibility__("default"))) int exportedvar;
6800 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6801 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6802 void dummyfunc (void) {}
6803
6804int
6805main ()
6806{
6807
6808 ;
6809 return 0;
6810}
6811_ACEOF
6812if ac_fn_c_try_compile "$LINENO"; then :
6813 gl_cv_cc_visibility=yes
6814else
6815 gl_cv_cc_visibility=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818 CFLAGS="$gl_save_CFLAGS"
6819fi
6820
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6822$as_echo "$gl_cv_cc_visibility" >&6; }
6823 if test $gl_cv_cc_visibility = yes; then
6824 CFLAG_VISIBILITY="-fvisibility=hidden"
6825 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006826 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006827 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006828
6829
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006830
Theodore Ts'o93613952014-07-03 23:44:13 -04006831cat >>confdefs.h <<_ACEOF
6832#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006833_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006834
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006835
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006837$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006838if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006839 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006840else
6841 ac_cv_c_inline=no
6842for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006844/* end confdefs.h. */
6845#ifndef __cplusplus
6846typedef int foo_t;
6847static $ac_kw foo_t static_foo () {return 0; }
6848$ac_kw foo_t foo () {return 0; }
6849#endif
6850
6851_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006852if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006853 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006854fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006857done
6858
6859fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006861$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006863case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006864 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006865 *)
6866 case $ac_cv_c_inline in
6867 no) ac_val=;;
6868 *) ac_val=$ac_cv_c_inline;;
6869 esac
6870 cat >>confdefs.h <<_ACEOF
6871#ifndef __cplusplus
6872#define inline $ac_val
6873#endif
6874_ACEOF
6875 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006876esac
6877
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006878ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006879if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006880
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006881else
6882
6883cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006884#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006885_ACEOF
6886
6887fi
6888
6889
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006891$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006892if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006893 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006894else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006896/* end confdefs.h. */
6897#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006898 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006899int
6900main ()
6901{
Theodore Ts'o93613952014-07-03 23:44:13 -04006902uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006903 ;
6904 return 0;
6905}
6906_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006907if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006908 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006909else
Theodore Ts'o93613952014-07-03 23:44:13 -04006910 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006911fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006913fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6915$as_echo "$gl_cv_header_stdint_h" >&6; }
6916 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006917
6918cat >>confdefs.h <<_ACEOF
6919#define HAVE_STDINT_H_WITH_UINTMAX 1
6920_ACEOF
6921
6922 fi
6923
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006924# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6925# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006927$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006928if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006929 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006930else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006932/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006933#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006934int
6935main ()
6936{
6937char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006938 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006939 ;
6940 return 0;
6941}
6942_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006943if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006944 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006945else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006946 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006947fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006948rm -f core conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006950fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006952$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006953if test $ac_cv_working_alloca_h = yes; then
6954
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006955$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006956
6957fi
6958
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006960$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006961if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006962 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006963else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006965/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006966#ifdef __GNUC__
6967# define alloca __builtin_alloca
6968#else
6969# ifdef _MSC_VER
6970# include <malloc.h>
6971# define alloca _alloca
6972# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006973# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006974# include <alloca.h>
6975# else
6976# ifdef _AIX
6977 #pragma alloca
6978# else
6979# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006980void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006981# endif
6982# endif
6983# endif
6984# endif
6985#endif
6986
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006987int
6988main ()
6989{
6990char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006991 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992 ;
6993 return 0;
6994}
6995_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006996if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006997 ac_cv_func_alloca_works=yes
6998else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006999 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007000fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007001rm -f core conftest.err conftest.$ac_objext \
7002 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007003fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007005$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007006
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007007if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007008
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007009$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007010
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007011else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007012 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7013# that cause trouble. Some versions do not even contain alloca or
7014# contain a buggy version. If you still want to use their alloca,
7015# use ar to extract alloca.o from them instead of compiling alloca.c.
7016
Theodore Ts'oe1052142006-10-21 21:46:47 -04007017ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007018
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007019$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007020
7021
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007023$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007024if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007025 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007026else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007028/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007029#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007030webecray
7031#else
7032wenotbecray
7033#endif
7034
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007035_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007037 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007038 ac_cv_os_cray=yes
7039else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007040 ac_cv_os_cray=no
7041fi
7042rm -f conftest*
7043
7044fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007046$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007047if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007048 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007049 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007050ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007051if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007052
7053cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007054#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007055_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007056
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007057 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007058fi
7059
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007060 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007061fi
7062
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007064$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007065if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007066 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007067else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007068 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007069 ac_cv_c_stack_direction=0
7070else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007072/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007073$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007074int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007075find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007076{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007077 int dir, dummy = 0;
7078 if (! addr)
7079 addr = &dummy;
7080 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7081 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7082 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007083}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007084
7085int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007086main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007087{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007088 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007089}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007090_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007091if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007092 ac_cv_c_stack_direction=1
7093else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007094 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007095fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7097 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007098fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007099
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007100fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007102$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007103cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007104#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007105_ACEOF
7106
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007107
7108fi
7109
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007110
7111
7112
7113 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007114do :
7115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007116ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7117"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007118if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007119 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007120#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007121_ACEOF
7122
7123fi
7124
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007125done
7126
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007127
7128
7129
7130
7131
7132
7133
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007134for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007135do :
7136 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007137if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007138 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007139#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007140_ACEOF
7141
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007142fi
7143done
7144
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007146$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007147if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007148 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007149else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007150 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007151 ac_cv_func_mmap_fixed_mapped=no
7152else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007154/* end confdefs.h. */
7155$ac_includes_default
7156/* malloc might have been renamed as rpl_malloc. */
7157#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007158
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007159/* Thanks to Mike Haertel and Jim Avera for this test.
7160 Here is a matrix of mmap possibilities:
7161 mmap private not fixed
7162 mmap private fixed at somewhere currently unmapped
7163 mmap private fixed at somewhere already mapped
7164 mmap shared not fixed
7165 mmap shared fixed at somewhere currently unmapped
7166 mmap shared fixed at somewhere already mapped
7167 For private mappings, we should verify that changes cannot be read()
7168 back from the file, nor mmap's back from the file at a different
7169 address. (There have been systems where private was not correctly
7170 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007171 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007172 like early versions of FreeBSD and possibly contemporary NetBSD.)
7173 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007174 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007175
7176 Grep wants private fixed already mapped.
7177 The main things grep needs to know about mmap are:
7178 * does it exist and is it safe to write into the mmap'd area
7179 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007181#include <fcntl.h>
7182#include <sys/mman.h>
7183
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007184#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007185char *malloc ();
7186#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007187
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007188/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007189#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007190# ifdef _SC_PAGESIZE
7191# define getpagesize() sysconf(_SC_PAGESIZE)
7192# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007193# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007194# include <sys/param.h>
7195# ifdef EXEC_PAGESIZE
7196# define getpagesize() EXEC_PAGESIZE
7197# else /* no EXEC_PAGESIZE */
7198# ifdef NBPG
7199# define getpagesize() NBPG * CLSIZE
7200# ifndef CLSIZE
7201# define CLSIZE 1
7202# endif /* no CLSIZE */
7203# else /* no NBPG */
7204# ifdef NBPC
7205# define getpagesize() NBPC
7206# else /* no NBPC */
7207# ifdef PAGESIZE
7208# define getpagesize() PAGESIZE
7209# endif /* PAGESIZE */
7210# endif /* no NBPC */
7211# endif /* no NBPG */
7212# endif /* no EXEC_PAGESIZE */
7213# else /* no HAVE_SYS_PARAM_H */
7214# define getpagesize() 8192 /* punt totally */
7215# endif /* no HAVE_SYS_PARAM_H */
7216# endif /* no _SC_PAGESIZE */
7217
7218#endif /* no HAVE_GETPAGESIZE */
7219
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007220int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007221main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007222{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007223 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007224 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007225 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007226 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007228 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007229
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007230 /* First, make a file with some known garbage in it. */
7231 data = (char *) malloc (pagesize);
7232 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007233 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007234 for (i = 0; i < pagesize; ++i)
7235 *(data + i) = rand ();
7236 umask (0);
7237 fd = creat ("conftest.mmap", 0600);
7238 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007239 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007240 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007241 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007242 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007243
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007244 /* Next, check that the tail of a page is zero-filled. File must have
7245 non-zero length, otherwise we risk SIGBUS for entire page. */
7246 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7247 if (fd2 < 0)
7248 return 4;
7249 cdata2 = "";
7250 if (write (fd2, cdata2, 1) != 1)
7251 return 5;
7252 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7253 if (data2 == MAP_FAILED)
7254 return 6;
7255 for (i = 0; i < pagesize; ++i)
7256 if (*(data2 + i))
7257 return 7;
7258 close (fd2);
7259 if (munmap (data2, pagesize))
7260 return 8;
7261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007262 /* Next, try to mmap the file at a fixed address which already has
7263 something else allocated at it. If we can, also make sure that
7264 we see the same garbage. */
7265 fd = open ("conftest.mmap", O_RDWR);
7266 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007267 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007268 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7269 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007270 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271 for (i = 0; i < pagesize; ++i)
7272 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007273 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007275 /* Finally, make sure that changes to the mapped area do not
7276 percolate back to the file as seen by read(). (This is a bug on
7277 some variants of i386 svr4.0.) */
7278 for (i = 0; i < pagesize; ++i)
7279 *(data2 + i) = *(data2 + i) + 1;
7280 data3 = (char *) malloc (pagesize);
7281 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007282 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007283 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007284 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007285 for (i = 0; i < pagesize; ++i)
7286 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007287 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007288 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007289 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007290}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007291_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007292if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007293 ac_cv_func_mmap_fixed_mapped=yes
7294else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007295 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007296fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7298 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007299fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007300
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007301fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007303$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007304if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007305
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007306$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007307
7308fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007309rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007310
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007312
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007314$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007315if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007316 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007317else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318
Theodore Ts'o93613952014-07-03 23:44:13 -04007319 gt_cv_int_divbyzero_sigfpe=
7320 case "$host_os" in
7321 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7322 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7323 # compiling. If we were to perform the real test, 1 Crash Report
7324 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007325 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007326 i[34567]86 | x86_64)
7327 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007328 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007329 ;;
7330 esac
7331 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7332 if test "$cross_compiling" = yes; then :
7333
7334 # Guess based on the CPU.
7335 case "$host_cpu" in
7336 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7337 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7338 *)
7339 gt_cv_int_divbyzero_sigfpe="guessing no";;
7340 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007341
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007342else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007344/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007345
7346#include <stdlib.h>
7347#include <signal.h>
7348
7349static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007350sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007351{
7352 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7353 exit (sig != SIGFPE);
7354}
7355
7356int x = 1;
7357int y = 0;
7358int z;
7359int nan;
7360
7361int main ()
7362{
7363 signal (SIGFPE, sigfpe_handler);
7364/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7365#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7366 signal (SIGTRAP, sigfpe_handler);
7367#endif
7368/* Linux/SPARC yields signal SIGILL. */
7369#if defined (__sparc__) && defined (__linux__)
7370 signal (SIGILL, sigfpe_handler);
7371#endif
7372
7373 z = x / y;
7374 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007375 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007376}
7377
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007378_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007379if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007380 gt_cv_int_divbyzero_sigfpe=yes
7381else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007382 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007383fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7385 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007386fi
7387
Theodore Ts'o93613952014-07-03 23:44:13 -04007388 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007389
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007390fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007392$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007393 case "$gt_cv_int_divbyzero_sigfpe" in
7394 *yes) value=1;;
7395 *) value=0;;
7396 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007397
7398cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007399#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007400_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007401
7402
7403
Theodore Ts'o93613952014-07-03 23:44:13 -04007404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7405$as_echo_n "checking for inttypes.h... " >&6; }
7406if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007407 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007408else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007410/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007411
7412#include <sys/types.h>
7413#include <inttypes.h>
7414
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007415int
7416main ()
7417{
Theodore Ts'o93613952014-07-03 23:44:13 -04007418uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007419 ;
7420 return 0;
7421}
7422_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007423if ac_fn_c_try_compile "$LINENO"; then :
7424 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007425else
Theodore Ts'o93613952014-07-03 23:44:13 -04007426 gl_cv_header_inttypes_h=no
7427fi
7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429fi
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7431$as_echo "$gl_cv_header_inttypes_h" >&6; }
7432 if test $gl_cv_header_inttypes_h = yes; then
7433
7434cat >>confdefs.h <<_ACEOF
7435#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7436_ACEOF
7437
7438 fi
7439
7440
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7442$as_echo_n "checking for unsigned long long int... " >&6; }
7443if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445else
7446 ac_cv_type_unsigned_long_long_int=yes
7447 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h. */
7450
7451 /* For now, do not test the preprocessor; as of 2007 there are too many
7452 implementations with broken preprocessors. Perhaps this can
7453 be revisited in 2012. In the meantime, code should not expect
7454 #if to work with literals wider than 32 bits. */
7455 /* Test literals. */
7456 long long int ll = 9223372036854775807ll;
7457 long long int nll = -9223372036854775807LL;
7458 unsigned long long int ull = 18446744073709551615ULL;
7459 /* Test constant expressions. */
7460 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7461 ? 1 : -1)];
7462 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7463 ? 1 : -1)];
7464 int i = 63;
7465int
7466main ()
7467{
7468/* Test availability of runtime routines for shift and division. */
7469 long long int llmax = 9223372036854775807ll;
7470 unsigned long long int ullmax = 18446744073709551615ull;
7471 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7472 | (llmax / ll) | (llmax % ll)
7473 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7474 | (ullmax / ull) | (ullmax % ull));
7475 ;
7476 return 0;
7477}
7478
7479_ACEOF
7480if ac_fn_c_try_link "$LINENO"; then :
7481
7482else
7483 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007484fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007485rm -f core conftest.err conftest.$ac_objext \
7486 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007487 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007488fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7490$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7491 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007492
Theodore Ts'o93613952014-07-03 23:44:13 -04007493$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007494
7495 fi
7496
7497
7498
7499
Theodore Ts'o93613952014-07-03 23:44:13 -04007500 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007501
Theodore Ts'o93613952014-07-03 23:44:13 -04007502 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007503 && ac_type='unsigned long long' \
7504 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007505
7506cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007507#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007508_ACEOF
7509
7510 else
7511
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007512$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007513
7514 fi
7515
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007516
Theodore Ts'o93613952014-07-03 23:44:13 -04007517 for ac_header in inttypes.h
7518do :
7519 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7520if test "x$ac_cv_header_inttypes_h" = xyes; then :
7521 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007522#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007524
Theodore Ts'o93613952014-07-03 23:44:13 -04007525fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007526
Theodore Ts'o93613952014-07-03 23:44:13 -04007527done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007528
Theodore Ts'o93613952014-07-03 23:44:13 -04007529 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007530 { $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 +01007531$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007532if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007533 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007534else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007535
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007537/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007538
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007539#include <inttypes.h>
7540#ifdef PRId32
7541char *p = PRId32;
7542#endif
7543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007544int
7545main ()
7546{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007547
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007548 ;
7549 return 0;
7550}
7551_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007552if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007553 gt_cv_inttypes_pri_broken=no
7554else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007555 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007556fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007558
7559fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007561$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007562 fi
7563 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007564
7565cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007566#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007567_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007568
Theodore Ts'o93613952014-07-03 23:44:13 -04007569 PRI_MACROS_BROKEN=1
7570 else
7571 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007572 fi
7573
7574
7575
Theodore Ts'o93613952014-07-03 23:44:13 -04007576
7577
7578
7579
7580 # Check whether --enable-threads was given.
7581if test "${enable_threads+set}" = set; then :
7582 enableval=$enable_threads; gl_use_threads=$enableval
7583else
7584 if test -n "$gl_use_threads_default"; then
7585 gl_use_threads="$gl_use_threads_default"
7586 else
7587 case "$host_os" in
7588 osf*) gl_use_threads=no ;;
7589 cygwin*)
7590 case `uname -r` in
7591 1.[0-5].*) gl_use_threads=no ;;
7592 *) gl_use_threads=yes ;;
7593 esac
7594 ;;
7595 *) gl_use_threads=yes ;;
7596 esac
7597 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007598
7599fi
7600
Theodore Ts'o93613952014-07-03 23:44:13 -04007601 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7602 # For using <pthread.h>:
7603 case "$host_os" in
7604 osf*)
7605 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7606 # groks <pthread.h>. cc also understands the flag -pthread, but
7607 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7608 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7609 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7610 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7611 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7612 ;;
7613 esac
7614 # Some systems optimize for single-threaded programs by default, and
7615 # need special flags to disable these optimizations. For example, the
7616 # definition of 'errno' in <errno.h>.
7617 case "$host_os" in
7618 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7619 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7620 esac
7621 fi
7622
7623
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007624
7625
7626
7627 if test "X$prefix" = "XNONE"; then
7628 acl_final_prefix="$ac_default_prefix"
7629 else
7630 acl_final_prefix="$prefix"
7631 fi
7632 if test "X$exec_prefix" = "XNONE"; then
7633 acl_final_exec_prefix='${prefix}'
7634 else
7635 acl_final_exec_prefix="$exec_prefix"
7636 fi
7637 acl_save_prefix="$prefix"
7638 prefix="$acl_final_prefix"
7639 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7640 prefix="$acl_save_prefix"
7641
7642
Theodore Ts'o93613952014-07-03 23:44:13 -04007643
Theodore Ts'oe1052142006-10-21 21:46:47 -04007644# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007645if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007646 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007647else
7648 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007649fi
7650
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007651# Prepare PATH_SEPARATOR.
7652# The user is always right.
7653if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007654 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7655 # contains only /bin. Note that ksh looks also at the FPATH variable,
7656 # so we have to set that as well for the test.
7657 PATH_SEPARATOR=:
7658 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7659 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7660 || PATH_SEPARATOR=';'
7661 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007662fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007664ac_prog=ld
7665if test "$GCC" = yes; then
7666 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7668$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007669 case $host in
7670 *-*-mingw*)
7671 # gcc leaves a trailing carriage return which upsets mingw
7672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7673 *)
7674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7675 esac
7676 case $ac_prog in
7677 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007678 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007679 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007680 # Canonicalize the pathname of ld
7681 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7682 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7683 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007684 done
7685 test -z "$LD" && LD="$ac_prog"
7686 ;;
7687 "")
7688 # If it fails, then pretend we aren't using GCC.
7689 ac_prog=ld
7690 ;;
7691 *)
7692 # If it is relative, then search for the first ld in PATH.
7693 with_gnu_ld=unknown
7694 ;;
7695 esac
7696elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007698$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007699else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007701$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007702fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007703if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007704 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007705else
7706 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007707 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007708 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007709 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007710 test -z "$ac_dir" && ac_dir=.
7711 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7712 acl_cv_path_LD="$ac_dir/$ac_prog"
7713 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007714 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007715 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007716 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007717 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007718 test "$with_gnu_ld" != no && break
7719 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007720 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007721 test "$with_gnu_ld" != yes && break
7722 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007723 esac
7724 fi
7725 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007726 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007727else
7728 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7729fi
7730fi
7731
7732LD="$acl_cv_path_LD"
7733if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007735$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007736else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007738$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007739fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007740test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007742$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007743if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007744 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007745else
Theodore Ts'o93613952014-07-03 23:44:13 -04007746 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007747case `$LD -v 2>&1 </dev/null` in
7748*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007749 acl_cv_prog_gnu_ld=yes
7750 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007751*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007752 acl_cv_prog_gnu_ld=no
7753 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007754esac
7755fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007757$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007758with_gnu_ld=$acl_cv_prog_gnu_ld
7759
7760
7761
Theodore Ts'o93613952014-07-03 23:44:13 -04007762
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007764$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007765if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007766 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007767else
7768
7769 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7770 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7771 . ./conftest.sh
7772 rm -f ./conftest.sh
7773 acl_cv_rpath=done
7774
7775fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007777$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007778 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007779 acl_libext="$acl_cv_libext"
7780 acl_shlibext="$acl_cv_shlibext"
7781 acl_libname_spec="$acl_cv_libname_spec"
7782 acl_library_names_spec="$acl_cv_library_names_spec"
7783 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7784 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7785 acl_hardcode_direct="$acl_cv_hardcode_direct"
7786 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007787 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007788if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007789 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007790else
7791 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007792fi
7793
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007794
7795
7796
Theodore Ts'o93613952014-07-03 23:44:13 -04007797 acl_libdirstem=lib
7798 acl_libdirstem2=
7799 case "$host_os" in
7800 solaris*)
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7802$as_echo_n "checking for 64-bit host... " >&6; }
7803if ${gl_cv_solaris_64bit+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805else
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807/* end confdefs.h. */
7808
7809#ifdef _LP64
7810sixtyfour bits
7811#endif
7812
7813_ACEOF
7814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7815 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7816 gl_cv_solaris_64bit=yes
7817else
7818 gl_cv_solaris_64bit=no
7819fi
7820rm -f conftest*
7821
7822
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7825$as_echo "$gl_cv_solaris_64bit" >&6; }
7826 if test $gl_cv_solaris_64bit = yes; then
7827 acl_libdirstem=lib/64
7828 case "$host_cpu" in
7829 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7830 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7831 esac
7832 fi
7833 ;;
7834 *)
7835 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7836 if test -n "$searchpath"; then
7837 acl_save_IFS="${IFS= }"; IFS=":"
7838 for searchdir in $searchpath; do
7839 if test -d "$searchdir"; then
7840 case "$searchdir" in
7841 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7842 */../ | */.. )
7843 # Better ignore directories of this form. They are misleading.
7844 ;;
7845 *) searchdir=`cd "$searchdir" && pwd`
7846 case "$searchdir" in
7847 */lib64 ) acl_libdirstem=lib64 ;;
7848 esac ;;
7849 esac
7850 fi
7851 done
7852 IFS="$acl_save_IFS"
7853 fi
7854 ;;
7855 esac
7856 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7857
7858
7859
7860 gl_threads_api=none
7861 LIBTHREAD=
7862 LTLIBTHREAD=
7863 LIBMULTITHREAD=
7864 LTLIBMULTITHREAD=
7865 if test "$gl_use_threads" != no; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7867$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7868if ${gl_cv_have_weak+:} false; then :
7869 $as_echo_n "(cached) " >&6
7870else
7871 gl_cv_have_weak=no
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h. */
7874extern void xyzzy ();
7875#pragma weak xyzzy
7876int
7877main ()
7878{
7879xyzzy();
7880 ;
7881 return 0;
7882}
7883_ACEOF
7884if ac_fn_c_try_link "$LINENO"; then :
7885 gl_cv_have_weak=maybe
7886fi
7887rm -f core conftest.err conftest.$ac_objext \
7888 conftest$ac_exeext conftest.$ac_ext
7889 if test $gl_cv_have_weak = maybe; then
7890 if test "$cross_compiling" = yes; then :
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892/* end confdefs.h. */
7893#ifdef __ELF__
7894 Extensible Linking Format
7895 #endif
7896
7897_ACEOF
7898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7900 gl_cv_have_weak="guessing yes"
7901else
7902 gl_cv_have_weak="guessing no"
7903fi
7904rm -f conftest*
7905
7906
7907else
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909/* end confdefs.h. */
7910
7911#include <stdio.h>
7912#pragma weak fputs
7913int main ()
7914{
7915 return (fputs == NULL);
7916}
7917_ACEOF
7918if ac_fn_c_try_run "$LINENO"; then :
7919 gl_cv_have_weak=yes
7920else
7921 gl_cv_have_weak=no
7922fi
7923rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7924 conftest.$ac_objext conftest.beam conftest.$ac_ext
7925fi
7926
7927 fi
7928
7929fi
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7931$as_echo "$gl_cv_have_weak" >&6; }
7932 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7933 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7934 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7935 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7936if test "x$ac_cv_header_pthread_h" = xyes; then :
7937 gl_have_pthread_h=yes
7938else
7939 gl_have_pthread_h=no
7940fi
7941
7942
7943 if test "$gl_have_pthread_h" = yes; then
7944 # Other possible tests:
7945 # -lpthreads (FSU threads, PCthreads)
7946 # -lgthreads
7947 gl_have_pthread=
7948 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7949 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7950 # the second one only in libpthread, and lock.c needs it.
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952/* end confdefs.h. */
7953#include <pthread.h>
7954int
7955main ()
7956{
7957pthread_mutex_lock((pthread_mutex_t*)0);
7958 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7959 ;
7960 return 0;
7961}
7962_ACEOF
7963if ac_fn_c_try_link "$LINENO"; then :
7964 gl_have_pthread=yes
7965fi
7966rm -f core conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
7968 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7969 # since it is defined as a macro on OSF/1.)
7970 if test -n "$gl_have_pthread"; then
7971 # The program links fine without libpthread. But it may actually
7972 # need to link with libpthread in order to create multiple threads.
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7974$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7975if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7976 $as_echo_n "(cached) " >&6
7977else
7978 ac_check_lib_save_LIBS=$LIBS
7979LIBS="-lpthread $LIBS"
7980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981/* end confdefs.h. */
7982
7983/* Override any GCC internal prototype to avoid an error.
7984 Use char because int might match the return type of a GCC
7985 builtin and then its argument prototype would still apply. */
7986#ifdef __cplusplus
7987extern "C"
7988#endif
7989char pthread_kill ();
7990int
7991main ()
7992{
7993return pthread_kill ();
7994 ;
7995 return 0;
7996}
7997_ACEOF
7998if ac_fn_c_try_link "$LINENO"; then :
7999 ac_cv_lib_pthread_pthread_kill=yes
8000else
8001 ac_cv_lib_pthread_pthread_kill=no
8002fi
8003rm -f core conftest.err conftest.$ac_objext \
8004 conftest$ac_exeext conftest.$ac_ext
8005LIBS=$ac_check_lib_save_LIBS
8006fi
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8008$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8009if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8010 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8011 # On Solaris and HP-UX, most pthread functions exist also in libc.
8012 # Therefore pthread_in_use() needs to actually try to create a
8013 # thread: pthread_create from libc will fail, whereas
8014 # pthread_create will actually create a thread.
8015 case "$host_os" in
8016 solaris* | hpux*)
8017
8018$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8019
8020 esac
8021
8022fi
8023
8024 else
8025 # Some library is needed. Try libpthread and libc_r.
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8027$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8028if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030else
8031 ac_check_lib_save_LIBS=$LIBS
8032LIBS="-lpthread $LIBS"
8033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034/* end confdefs.h. */
8035
8036/* Override any GCC internal prototype to avoid an error.
8037 Use char because int might match the return type of a GCC
8038 builtin and then its argument prototype would still apply. */
8039#ifdef __cplusplus
8040extern "C"
8041#endif
8042char pthread_kill ();
8043int
8044main ()
8045{
8046return pthread_kill ();
8047 ;
8048 return 0;
8049}
8050_ACEOF
8051if ac_fn_c_try_link "$LINENO"; then :
8052 ac_cv_lib_pthread_pthread_kill=yes
8053else
8054 ac_cv_lib_pthread_pthread_kill=no
8055fi
8056rm -f core conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
8058LIBS=$ac_check_lib_save_LIBS
8059fi
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8061$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8062if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8063 gl_have_pthread=yes
8064 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8065 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8066fi
8067
8068 if test -z "$gl_have_pthread"; then
8069 # For FreeBSD 4.
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8071$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8072if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8073 $as_echo_n "(cached) " >&6
8074else
8075 ac_check_lib_save_LIBS=$LIBS
8076LIBS="-lc_r $LIBS"
8077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h. */
8079
8080/* Override any GCC internal prototype to avoid an error.
8081 Use char because int might match the return type of a GCC
8082 builtin and then its argument prototype would still apply. */
8083#ifdef __cplusplus
8084extern "C"
8085#endif
8086char pthread_kill ();
8087int
8088main ()
8089{
8090return pthread_kill ();
8091 ;
8092 return 0;
8093}
8094_ACEOF
8095if ac_fn_c_try_link "$LINENO"; then :
8096 ac_cv_lib_c_r_pthread_kill=yes
8097else
8098 ac_cv_lib_c_r_pthread_kill=no
8099fi
8100rm -f core conftest.err conftest.$ac_objext \
8101 conftest$ac_exeext conftest.$ac_ext
8102LIBS=$ac_check_lib_save_LIBS
8103fi
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8105$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8106if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8107 gl_have_pthread=yes
8108 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8109 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8110fi
8111
8112 fi
8113 fi
8114 if test -n "$gl_have_pthread"; then
8115 gl_threads_api=posix
8116
8117$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8118
8119 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8120 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8121
8122$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8123
8124 LIBTHREAD=
8125 LTLIBTHREAD=
8126 fi
8127 fi
8128 fi
8129 fi
8130 fi
8131 if test -z "$gl_have_pthread"; then
8132 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8133 gl_have_solaristhread=
8134 gl_save_LIBS="$LIBS"
8135 LIBS="$LIBS -lthread"
8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137/* end confdefs.h. */
8138
8139#include <thread.h>
8140#include <synch.h>
8141
8142int
8143main ()
8144{
8145thr_self();
8146 ;
8147 return 0;
8148}
8149_ACEOF
8150if ac_fn_c_try_link "$LINENO"; then :
8151 gl_have_solaristhread=yes
8152fi
8153rm -f core conftest.err conftest.$ac_objext \
8154 conftest$ac_exeext conftest.$ac_ext
8155 LIBS="$gl_save_LIBS"
8156 if test -n "$gl_have_solaristhread"; then
8157 gl_threads_api=solaris
8158 LIBTHREAD=-lthread
8159 LTLIBTHREAD=-lthread
8160 LIBMULTITHREAD="$LIBTHREAD"
8161 LTLIBMULTITHREAD="$LTLIBTHREAD"
8162
8163$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8164
8165 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8166
8167$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8168
8169 LIBTHREAD=
8170 LTLIBTHREAD=
8171 fi
8172 fi
8173 fi
8174 fi
8175 if test "$gl_use_threads" = pth; then
8176 gl_save_CPPFLAGS="$CPPFLAGS"
8177
8178
8179
8180
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8183$as_echo_n "checking how to link with libpth... " >&6; }
8184if ${ac_cv_libpth_libs+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186else
8187
8188
8189
8190
8191
8192
8193
8194
8195 use_additional=yes
8196
8197 acl_save_prefix="$prefix"
8198 prefix="$acl_final_prefix"
8199 acl_save_exec_prefix="$exec_prefix"
8200 exec_prefix="$acl_final_exec_prefix"
8201
8202 eval additional_includedir=\"$includedir\"
8203 eval additional_libdir=\"$libdir\"
8204
8205 exec_prefix="$acl_save_exec_prefix"
8206 prefix="$acl_save_prefix"
8207
8208
8209# Check whether --with-libpth-prefix was given.
8210if test "${with_libpth_prefix+set}" = set; then :
8211 withval=$with_libpth_prefix;
8212 if test "X$withval" = "Xno"; then
8213 use_additional=no
8214 else
8215 if test "X$withval" = "X"; then
8216
8217 acl_save_prefix="$prefix"
8218 prefix="$acl_final_prefix"
8219 acl_save_exec_prefix="$exec_prefix"
8220 exec_prefix="$acl_final_exec_prefix"
8221
8222 eval additional_includedir=\"$includedir\"
8223 eval additional_libdir=\"$libdir\"
8224
8225 exec_prefix="$acl_save_exec_prefix"
8226 prefix="$acl_save_prefix"
8227
8228 else
8229 additional_includedir="$withval/include"
8230 additional_libdir="$withval/$acl_libdirstem"
8231 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8232 && ! test -d "$withval/$acl_libdirstem"; then
8233 additional_libdir="$withval/$acl_libdirstem2"
8234 fi
8235 fi
8236 fi
8237
8238fi
8239
8240 LIBPTH=
8241 LTLIBPTH=
8242 INCPTH=
8243 LIBPTH_PREFIX=
8244 HAVE_LIBPTH=
8245 rpathdirs=
8246 ltrpathdirs=
8247 names_already_handled=
8248 names_next_round='pth '
8249 while test -n "$names_next_round"; do
8250 names_this_round="$names_next_round"
8251 names_next_round=
8252 for name in $names_this_round; do
8253 already_handled=
8254 for n in $names_already_handled; do
8255 if test "$n" = "$name"; then
8256 already_handled=yes
8257 break
8258 fi
8259 done
8260 if test -z "$already_handled"; then
8261 names_already_handled="$names_already_handled $name"
8262 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8263 eval value=\"\$HAVE_LIB$uppername\"
8264 if test -n "$value"; then
8265 if test "$value" = yes; then
8266 eval value=\"\$LIB$uppername\"
8267 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8268 eval value=\"\$LTLIB$uppername\"
8269 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8270 else
8271 :
8272 fi
8273 else
8274 found_dir=
8275 found_la=
8276 found_so=
8277 found_a=
8278 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8279 if test -n "$acl_shlibext"; then
8280 shrext=".$acl_shlibext" # typically: shrext=.so
8281 else
8282 shrext=
8283 fi
8284 if test $use_additional = yes; then
8285 dir="$additional_libdir"
8286 if test -n "$acl_shlibext"; then
8287 if test -f "$dir/$libname$shrext"; then
8288 found_dir="$dir"
8289 found_so="$dir/$libname$shrext"
8290 else
8291 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8292 ver=`(cd "$dir" && \
8293 for f in "$libname$shrext".*; do echo "$f"; done \
8294 | sed -e "s,^$libname$shrext\\\\.,," \
8295 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8296 | sed 1q ) 2>/dev/null`
8297 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8298 found_dir="$dir"
8299 found_so="$dir/$libname$shrext.$ver"
8300 fi
8301 else
8302 eval library_names=\"$acl_library_names_spec\"
8303 for f in $library_names; do
8304 if test -f "$dir/$f"; then
8305 found_dir="$dir"
8306 found_so="$dir/$f"
8307 break
8308 fi
8309 done
8310 fi
8311 fi
8312 fi
8313 if test "X$found_dir" = "X"; then
8314 if test -f "$dir/$libname.$acl_libext"; then
8315 found_dir="$dir"
8316 found_a="$dir/$libname.$acl_libext"
8317 fi
8318 fi
8319 if test "X$found_dir" != "X"; then
8320 if test -f "$dir/$libname.la"; then
8321 found_la="$dir/$libname.la"
8322 fi
8323 fi
8324 fi
8325 if test "X$found_dir" = "X"; then
8326 for x in $LDFLAGS $LTLIBPTH; do
8327
8328 acl_save_prefix="$prefix"
8329 prefix="$acl_final_prefix"
8330 acl_save_exec_prefix="$exec_prefix"
8331 exec_prefix="$acl_final_exec_prefix"
8332 eval x=\"$x\"
8333 exec_prefix="$acl_save_exec_prefix"
8334 prefix="$acl_save_prefix"
8335
8336 case "$x" in
8337 -L*)
8338 dir=`echo "X$x" | sed -e 's/^X-L//'`
8339 if test -n "$acl_shlibext"; then
8340 if test -f "$dir/$libname$shrext"; then
8341 found_dir="$dir"
8342 found_so="$dir/$libname$shrext"
8343 else
8344 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8345 ver=`(cd "$dir" && \
8346 for f in "$libname$shrext".*; do echo "$f"; done \
8347 | sed -e "s,^$libname$shrext\\\\.,," \
8348 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8349 | sed 1q ) 2>/dev/null`
8350 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8351 found_dir="$dir"
8352 found_so="$dir/$libname$shrext.$ver"
8353 fi
8354 else
8355 eval library_names=\"$acl_library_names_spec\"
8356 for f in $library_names; do
8357 if test -f "$dir/$f"; then
8358 found_dir="$dir"
8359 found_so="$dir/$f"
8360 break
8361 fi
8362 done
8363 fi
8364 fi
8365 fi
8366 if test "X$found_dir" = "X"; then
8367 if test -f "$dir/$libname.$acl_libext"; then
8368 found_dir="$dir"
8369 found_a="$dir/$libname.$acl_libext"
8370 fi
8371 fi
8372 if test "X$found_dir" != "X"; then
8373 if test -f "$dir/$libname.la"; then
8374 found_la="$dir/$libname.la"
8375 fi
8376 fi
8377 ;;
8378 esac
8379 if test "X$found_dir" != "X"; then
8380 break
8381 fi
8382 done
8383 fi
8384 if test "X$found_dir" != "X"; then
8385 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8386 if test "X$found_so" != "X"; then
8387 if test "$enable_rpath" = no \
8388 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8389 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8390 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8391 else
8392 haveit=
8393 for x in $ltrpathdirs; do
8394 if test "X$x" = "X$found_dir"; then
8395 haveit=yes
8396 break
8397 fi
8398 done
8399 if test -z "$haveit"; then
8400 ltrpathdirs="$ltrpathdirs $found_dir"
8401 fi
8402 if test "$acl_hardcode_direct" = yes; then
8403 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8404 else
8405 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8406 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8407 haveit=
8408 for x in $rpathdirs; do
8409 if test "X$x" = "X$found_dir"; then
8410 haveit=yes
8411 break
8412 fi
8413 done
8414 if test -z "$haveit"; then
8415 rpathdirs="$rpathdirs $found_dir"
8416 fi
8417 else
8418 haveit=
8419 for x in $LDFLAGS $LIBPTH; do
8420
8421 acl_save_prefix="$prefix"
8422 prefix="$acl_final_prefix"
8423 acl_save_exec_prefix="$exec_prefix"
8424 exec_prefix="$acl_final_exec_prefix"
8425 eval x=\"$x\"
8426 exec_prefix="$acl_save_exec_prefix"
8427 prefix="$acl_save_prefix"
8428
8429 if test "X$x" = "X-L$found_dir"; then
8430 haveit=yes
8431 break
8432 fi
8433 done
8434 if test -z "$haveit"; then
8435 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8436 fi
8437 if test "$acl_hardcode_minus_L" != no; then
8438 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8439 else
8440 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8441 fi
8442 fi
8443 fi
8444 fi
8445 else
8446 if test "X$found_a" != "X"; then
8447 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8448 else
8449 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8450 fi
8451 fi
8452 additional_includedir=
8453 case "$found_dir" in
8454 */$acl_libdirstem | */$acl_libdirstem/)
8455 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8456 if test "$name" = 'pth'; then
8457 LIBPTH_PREFIX="$basedir"
8458 fi
8459 additional_includedir="$basedir/include"
8460 ;;
8461 */$acl_libdirstem2 | */$acl_libdirstem2/)
8462 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8463 if test "$name" = 'pth'; then
8464 LIBPTH_PREFIX="$basedir"
8465 fi
8466 additional_includedir="$basedir/include"
8467 ;;
8468 esac
8469 if test "X$additional_includedir" != "X"; then
8470 if test "X$additional_includedir" != "X/usr/include"; then
8471 haveit=
8472 if test "X$additional_includedir" = "X/usr/local/include"; then
8473 if test -n "$GCC"; then
8474 case $host_os in
8475 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8476 esac
8477 fi
8478 fi
8479 if test -z "$haveit"; then
8480 for x in $CPPFLAGS $INCPTH; do
8481
8482 acl_save_prefix="$prefix"
8483 prefix="$acl_final_prefix"
8484 acl_save_exec_prefix="$exec_prefix"
8485 exec_prefix="$acl_final_exec_prefix"
8486 eval x=\"$x\"
8487 exec_prefix="$acl_save_exec_prefix"
8488 prefix="$acl_save_prefix"
8489
8490 if test "X$x" = "X-I$additional_includedir"; then
8491 haveit=yes
8492 break
8493 fi
8494 done
8495 if test -z "$haveit"; then
8496 if test -d "$additional_includedir"; then
8497 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8498 fi
8499 fi
8500 fi
8501 fi
8502 fi
8503 if test -n "$found_la"; then
8504 save_libdir="$libdir"
8505 case "$found_la" in
8506 */* | *\\*) . "$found_la" ;;
8507 *) . "./$found_la" ;;
8508 esac
8509 libdir="$save_libdir"
8510 for dep in $dependency_libs; do
8511 case "$dep" in
8512 -L*)
8513 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8514 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8515 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8516 haveit=
8517 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8518 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8519 if test -n "$GCC"; then
8520 case $host_os in
8521 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8522 esac
8523 fi
8524 fi
8525 if test -z "$haveit"; then
8526 haveit=
8527 for x in $LDFLAGS $LIBPTH; do
8528
8529 acl_save_prefix="$prefix"
8530 prefix="$acl_final_prefix"
8531 acl_save_exec_prefix="$exec_prefix"
8532 exec_prefix="$acl_final_exec_prefix"
8533 eval x=\"$x\"
8534 exec_prefix="$acl_save_exec_prefix"
8535 prefix="$acl_save_prefix"
8536
8537 if test "X$x" = "X-L$additional_libdir"; then
8538 haveit=yes
8539 break
8540 fi
8541 done
8542 if test -z "$haveit"; then
8543 if test -d "$additional_libdir"; then
8544 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8545 fi
8546 fi
8547 haveit=
8548 for x in $LDFLAGS $LTLIBPTH; do
8549
8550 acl_save_prefix="$prefix"
8551 prefix="$acl_final_prefix"
8552 acl_save_exec_prefix="$exec_prefix"
8553 exec_prefix="$acl_final_exec_prefix"
8554 eval x=\"$x\"
8555 exec_prefix="$acl_save_exec_prefix"
8556 prefix="$acl_save_prefix"
8557
8558 if test "X$x" = "X-L$additional_libdir"; then
8559 haveit=yes
8560 break
8561 fi
8562 done
8563 if test -z "$haveit"; then
8564 if test -d "$additional_libdir"; then
8565 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8566 fi
8567 fi
8568 fi
8569 fi
8570 ;;
8571 -R*)
8572 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8573 if test "$enable_rpath" != no; then
8574 haveit=
8575 for x in $rpathdirs; do
8576 if test "X$x" = "X$dir"; then
8577 haveit=yes
8578 break
8579 fi
8580 done
8581 if test -z "$haveit"; then
8582 rpathdirs="$rpathdirs $dir"
8583 fi
8584 haveit=
8585 for x in $ltrpathdirs; do
8586 if test "X$x" = "X$dir"; then
8587 haveit=yes
8588 break
8589 fi
8590 done
8591 if test -z "$haveit"; then
8592 ltrpathdirs="$ltrpathdirs $dir"
8593 fi
8594 fi
8595 ;;
8596 -l*)
8597 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8598 ;;
8599 *.la)
8600 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8601 ;;
8602 *)
8603 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8604 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8605 ;;
8606 esac
8607 done
8608 fi
8609 else
8610 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8611 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8612 fi
8613 fi
8614 fi
8615 done
8616 done
8617 if test "X$rpathdirs" != "X"; then
8618 if test -n "$acl_hardcode_libdir_separator"; then
8619 alldirs=
8620 for found_dir in $rpathdirs; do
8621 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8622 done
8623 acl_save_libdir="$libdir"
8624 libdir="$alldirs"
8625 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8626 libdir="$acl_save_libdir"
8627 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8628 else
8629 for found_dir in $rpathdirs; do
8630 acl_save_libdir="$libdir"
8631 libdir="$found_dir"
8632 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8633 libdir="$acl_save_libdir"
8634 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8635 done
8636 fi
8637 fi
8638 if test "X$ltrpathdirs" != "X"; then
8639 for found_dir in $ltrpathdirs; do
8640 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8641 done
8642 fi
8643
8644
8645
8646
8647
8648
8649 ac_cv_libpth_libs="$LIBPTH"
8650 ac_cv_libpth_ltlibs="$LTLIBPTH"
8651 ac_cv_libpth_cppflags="$INCPTH"
8652 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8653
8654fi
8655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8656$as_echo "$ac_cv_libpth_libs" >&6; }
8657 LIBPTH="$ac_cv_libpth_libs"
8658 LTLIBPTH="$ac_cv_libpth_ltlibs"
8659 INCPTH="$ac_cv_libpth_cppflags"
8660 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8661
8662 for element in $INCPTH; do
8663 haveit=
8664 for x in $CPPFLAGS; do
8665
8666 acl_save_prefix="$prefix"
8667 prefix="$acl_final_prefix"
8668 acl_save_exec_prefix="$exec_prefix"
8669 exec_prefix="$acl_final_exec_prefix"
8670 eval x=\"$x\"
8671 exec_prefix="$acl_save_exec_prefix"
8672 prefix="$acl_save_prefix"
8673
8674 if test "X$x" = "X$element"; then
8675 haveit=yes
8676 break
8677 fi
8678 done
8679 if test -z "$haveit"; then
8680 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8681 fi
8682 done
8683
8684
8685
8686
8687 HAVE_LIBPTH=yes
8688
8689
8690
8691 gl_have_pth=
8692 gl_save_LIBS="$LIBS"
8693 LIBS="$LIBS $LIBPTH"
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695/* end confdefs.h. */
8696#include <pth.h>
8697int
8698main ()
8699{
8700pth_self();
8701 ;
8702 return 0;
8703}
8704_ACEOF
8705if ac_fn_c_try_link "$LINENO"; then :
8706 gl_have_pth=yes
8707fi
8708rm -f core conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8710 LIBS="$gl_save_LIBS"
8711 if test -n "$gl_have_pth"; then
8712 gl_threads_api=pth
8713 LIBTHREAD="$LIBPTH"
8714 LTLIBTHREAD="$LTLIBPTH"
8715 LIBMULTITHREAD="$LIBTHREAD"
8716 LTLIBMULTITHREAD="$LTLIBTHREAD"
8717
8718$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8719
8720 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8721 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8722
8723$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8724
8725 LIBTHREAD=
8726 LTLIBTHREAD=
8727 fi
8728 fi
8729 else
8730 CPPFLAGS="$gl_save_CPPFLAGS"
8731 fi
8732 fi
8733 if test -z "$gl_have_pthread"; then
8734 case "$gl_use_threads" in
8735 yes | windows | win32) # The 'win32' is for backward compatibility.
8736 if { case "$host_os" in
8737 mingw*) true;;
8738 *) false;;
8739 esac
8740 }; then
8741 gl_threads_api=windows
8742
8743$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8744
8745 fi
8746 ;;
8747 esac
8748 fi
8749 fi
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8751$as_echo_n "checking for multithread API to use... " >&6; }
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8753$as_echo "$gl_threads_api" >&6; }
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765 if test "$gl_threads_api" = posix; then
8766 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8767 # pthread_rwlock_* functions.
8768 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8769"
8770if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8771
8772$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8773
8774fi
8775
8776 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778/* end confdefs.h. */
8779
8780 #include <pthread.h>
8781int
8782main ()
8783{
8784
8785#if __FreeBSD__ == 4
8786error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8787#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8788 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8789error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8790#else
8791int x = (int)PTHREAD_MUTEX_RECURSIVE;
8792return !x;
8793#endif
8794
8795 ;
8796 return 0;
8797}
8798_ACEOF
8799if ac_fn_c_try_compile "$LINENO"; then :
8800
8801$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8802
8803fi
8804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 fi
8806 :
8807
8808
8809
8810
8811
8812
8813
8814
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008815
8816
8817
8818
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008819 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008820
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008821 acl_save_prefix="$prefix"
8822 prefix="$acl_final_prefix"
8823 acl_save_exec_prefix="$exec_prefix"
8824 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008825
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008826 eval additional_includedir=\"$includedir\"
8827 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008828
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008829 exec_prefix="$acl_save_exec_prefix"
8830 prefix="$acl_save_prefix"
8831
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008832
Theodore Ts'oe1052142006-10-21 21:46:47 -04008833# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008834if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008835 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008836 if test "X$withval" = "Xno"; then
8837 use_additional=no
8838 else
8839 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008840
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008841 acl_save_prefix="$prefix"
8842 prefix="$acl_final_prefix"
8843 acl_save_exec_prefix="$exec_prefix"
8844 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008845
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008846 eval additional_includedir=\"$includedir\"
8847 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008848
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008849 exec_prefix="$acl_save_exec_prefix"
8850 prefix="$acl_save_prefix"
8851
8852 else
8853 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008854 additional_libdir="$withval/$acl_libdirstem"
8855 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8856 && ! test -d "$withval/$acl_libdirstem"; then
8857 additional_libdir="$withval/$acl_libdirstem2"
8858 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008859 fi
8860 fi
8861
Theodore Ts'oe1052142006-10-21 21:46:47 -04008862fi
8863
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008864 LIBICONV=
8865 LTLIBICONV=
8866 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008867 LIBICONV_PREFIX=
8868 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008869 rpathdirs=
8870 ltrpathdirs=
8871 names_already_handled=
8872 names_next_round='iconv '
8873 while test -n "$names_next_round"; do
8874 names_this_round="$names_next_round"
8875 names_next_round=
8876 for name in $names_this_round; do
8877 already_handled=
8878 for n in $names_already_handled; do
8879 if test "$n" = "$name"; then
8880 already_handled=yes
8881 break
8882 fi
8883 done
8884 if test -z "$already_handled"; then
8885 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008886 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008887 eval value=\"\$HAVE_LIB$uppername\"
8888 if test -n "$value"; then
8889 if test "$value" = yes; then
8890 eval value=\"\$LIB$uppername\"
8891 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8892 eval value=\"\$LTLIB$uppername\"
8893 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8894 else
8895 :
8896 fi
8897 else
8898 found_dir=
8899 found_la=
8900 found_so=
8901 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008902 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8903 if test -n "$acl_shlibext"; then
8904 shrext=".$acl_shlibext" # typically: shrext=.so
8905 else
8906 shrext=
8907 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008908 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008909 dir="$additional_libdir"
8910 if test -n "$acl_shlibext"; then
8911 if test -f "$dir/$libname$shrext"; then
8912 found_dir="$dir"
8913 found_so="$dir/$libname$shrext"
8914 else
8915 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8916 ver=`(cd "$dir" && \
8917 for f in "$libname$shrext".*; do echo "$f"; done \
8918 | sed -e "s,^$libname$shrext\\\\.,," \
8919 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8920 | sed 1q ) 2>/dev/null`
8921 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8922 found_dir="$dir"
8923 found_so="$dir/$libname$shrext.$ver"
8924 fi
8925 else
8926 eval library_names=\"$acl_library_names_spec\"
8927 for f in $library_names; do
8928 if test -f "$dir/$f"; then
8929 found_dir="$dir"
8930 found_so="$dir/$f"
8931 break
8932 fi
8933 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008934 fi
8935 fi
8936 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008937 if test "X$found_dir" = "X"; then
8938 if test -f "$dir/$libname.$acl_libext"; then
8939 found_dir="$dir"
8940 found_a="$dir/$libname.$acl_libext"
8941 fi
8942 fi
8943 if test "X$found_dir" != "X"; then
8944 if test -f "$dir/$libname.la"; then
8945 found_la="$dir/$libname.la"
8946 fi
8947 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008948 fi
8949 if test "X$found_dir" = "X"; then
8950 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008951
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008952 acl_save_prefix="$prefix"
8953 prefix="$acl_final_prefix"
8954 acl_save_exec_prefix="$exec_prefix"
8955 exec_prefix="$acl_final_exec_prefix"
8956 eval x=\"$x\"
8957 exec_prefix="$acl_save_exec_prefix"
8958 prefix="$acl_save_prefix"
8959
8960 case "$x" in
8961 -L*)
8962 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008963 if test -n "$acl_shlibext"; then
8964 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008965 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008966 found_so="$dir/$libname$shrext"
8967 else
8968 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8969 ver=`(cd "$dir" && \
8970 for f in "$libname$shrext".*; do echo "$f"; done \
8971 | sed -e "s,^$libname$shrext\\\\.,," \
8972 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8973 | sed 1q ) 2>/dev/null`
8974 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8975 found_dir="$dir"
8976 found_so="$dir/$libname$shrext.$ver"
8977 fi
8978 else
8979 eval library_names=\"$acl_library_names_spec\"
8980 for f in $library_names; do
8981 if test -f "$dir/$f"; then
8982 found_dir="$dir"
8983 found_so="$dir/$f"
8984 break
8985 fi
8986 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008987 fi
8988 fi
8989 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008990 if test "X$found_dir" = "X"; then
8991 if test -f "$dir/$libname.$acl_libext"; then
8992 found_dir="$dir"
8993 found_a="$dir/$libname.$acl_libext"
8994 fi
8995 fi
8996 if test "X$found_dir" != "X"; then
8997 if test -f "$dir/$libname.la"; then
8998 found_la="$dir/$libname.la"
8999 fi
9000 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009001 ;;
9002 esac
9003 if test "X$found_dir" != "X"; then
9004 break
9005 fi
9006 done
9007 fi
9008 if test "X$found_dir" != "X"; then
9009 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9010 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009011 if test "$enable_rpath" = no \
9012 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9013 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9015 else
9016 haveit=
9017 for x in $ltrpathdirs; do
9018 if test "X$x" = "X$found_dir"; then
9019 haveit=yes
9020 break
9021 fi
9022 done
9023 if test -z "$haveit"; then
9024 ltrpathdirs="$ltrpathdirs $found_dir"
9025 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009026 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009027 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9028 else
Theodore Ts'o93613952014-07-03 23:44:13 -04009029 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009030 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9031 haveit=
9032 for x in $rpathdirs; do
9033 if test "X$x" = "X$found_dir"; then
9034 haveit=yes
9035 break
9036 fi
9037 done
9038 if test -z "$haveit"; then
9039 rpathdirs="$rpathdirs $found_dir"
9040 fi
9041 else
9042 haveit=
9043 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009044
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009045 acl_save_prefix="$prefix"
9046 prefix="$acl_final_prefix"
9047 acl_save_exec_prefix="$exec_prefix"
9048 exec_prefix="$acl_final_exec_prefix"
9049 eval x=\"$x\"
9050 exec_prefix="$acl_save_exec_prefix"
9051 prefix="$acl_save_prefix"
9052
9053 if test "X$x" = "X-L$found_dir"; then
9054 haveit=yes
9055 break
9056 fi
9057 done
9058 if test -z "$haveit"; then
9059 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9060 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009061 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009062 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9063 else
9064 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9065 fi
9066 fi
9067 fi
9068 fi
9069 else
9070 if test "X$found_a" != "X"; then
9071 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9072 else
9073 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9074 fi
9075 fi
9076 additional_includedir=
9077 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04009078 */$acl_libdirstem | */$acl_libdirstem/)
9079 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9080 if test "$name" = 'iconv'; then
9081 LIBICONV_PREFIX="$basedir"
9082 fi
9083 additional_includedir="$basedir/include"
9084 ;;
9085 */$acl_libdirstem2 | */$acl_libdirstem2/)
9086 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9087 if test "$name" = 'iconv'; then
9088 LIBICONV_PREFIX="$basedir"
9089 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009090 additional_includedir="$basedir/include"
9091 ;;
9092 esac
9093 if test "X$additional_includedir" != "X"; then
9094 if test "X$additional_includedir" != "X/usr/include"; then
9095 haveit=
9096 if test "X$additional_includedir" = "X/usr/local/include"; then
9097 if test -n "$GCC"; then
9098 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009099 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009100 esac
9101 fi
9102 fi
9103 if test -z "$haveit"; then
9104 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009105
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009106 acl_save_prefix="$prefix"
9107 prefix="$acl_final_prefix"
9108 acl_save_exec_prefix="$exec_prefix"
9109 exec_prefix="$acl_final_exec_prefix"
9110 eval x=\"$x\"
9111 exec_prefix="$acl_save_exec_prefix"
9112 prefix="$acl_save_prefix"
9113
9114 if test "X$x" = "X-I$additional_includedir"; then
9115 haveit=yes
9116 break
9117 fi
9118 done
9119 if test -z "$haveit"; then
9120 if test -d "$additional_includedir"; then
9121 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9122 fi
9123 fi
9124 fi
9125 fi
9126 fi
9127 if test -n "$found_la"; then
9128 save_libdir="$libdir"
9129 case "$found_la" in
9130 */* | *\\*) . "$found_la" ;;
9131 *) . "./$found_la" ;;
9132 esac
9133 libdir="$save_libdir"
9134 for dep in $dependency_libs; do
9135 case "$dep" in
9136 -L*)
9137 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009138 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9139 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009140 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009141 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9142 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009143 if test -n "$GCC"; then
9144 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009145 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009146 esac
9147 fi
9148 fi
9149 if test -z "$haveit"; then
9150 haveit=
9151 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009152
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009153 acl_save_prefix="$prefix"
9154 prefix="$acl_final_prefix"
9155 acl_save_exec_prefix="$exec_prefix"
9156 exec_prefix="$acl_final_exec_prefix"
9157 eval x=\"$x\"
9158 exec_prefix="$acl_save_exec_prefix"
9159 prefix="$acl_save_prefix"
9160
9161 if test "X$x" = "X-L$additional_libdir"; then
9162 haveit=yes
9163 break
9164 fi
9165 done
9166 if test -z "$haveit"; then
9167 if test -d "$additional_libdir"; then
9168 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9169 fi
9170 fi
9171 haveit=
9172 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009173
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009174 acl_save_prefix="$prefix"
9175 prefix="$acl_final_prefix"
9176 acl_save_exec_prefix="$exec_prefix"
9177 exec_prefix="$acl_final_exec_prefix"
9178 eval x=\"$x\"
9179 exec_prefix="$acl_save_exec_prefix"
9180 prefix="$acl_save_prefix"
9181
9182 if test "X$x" = "X-L$additional_libdir"; then
9183 haveit=yes
9184 break
9185 fi
9186 done
9187 if test -z "$haveit"; then
9188 if test -d "$additional_libdir"; then
9189 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9190 fi
9191 fi
9192 fi
9193 fi
9194 ;;
9195 -R*)
9196 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9197 if test "$enable_rpath" != no; then
9198 haveit=
9199 for x in $rpathdirs; do
9200 if test "X$x" = "X$dir"; then
9201 haveit=yes
9202 break
9203 fi
9204 done
9205 if test -z "$haveit"; then
9206 rpathdirs="$rpathdirs $dir"
9207 fi
9208 haveit=
9209 for x in $ltrpathdirs; do
9210 if test "X$x" = "X$dir"; then
9211 haveit=yes
9212 break
9213 fi
9214 done
9215 if test -z "$haveit"; then
9216 ltrpathdirs="$ltrpathdirs $dir"
9217 fi
9218 fi
9219 ;;
9220 -l*)
9221 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9222 ;;
9223 *.la)
9224 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9225 ;;
9226 *)
9227 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9228 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9229 ;;
9230 esac
9231 done
9232 fi
9233 else
9234 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9235 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9236 fi
9237 fi
9238 fi
9239 done
9240 done
9241 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009242 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009243 alldirs=
9244 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009245 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009246 done
9247 acl_save_libdir="$libdir"
9248 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009249 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009250 libdir="$acl_save_libdir"
9251 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9252 else
9253 for found_dir in $rpathdirs; do
9254 acl_save_libdir="$libdir"
9255 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009256 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009257 libdir="$acl_save_libdir"
9258 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9259 done
9260 fi
9261 fi
9262 if test "X$ltrpathdirs" != "X"; then
9263 for found_dir in $ltrpathdirs; do
9264 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9265 done
9266 fi
9267
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009268
9269
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009270
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009271
9272
9273
9274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009275
9276
9277
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009278
9279 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009280
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009281 for element in $INCICONV; do
9282 haveit=
9283 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009284
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009285 acl_save_prefix="$prefix"
9286 prefix="$acl_final_prefix"
9287 acl_save_exec_prefix="$exec_prefix"
9288 exec_prefix="$acl_final_exec_prefix"
9289 eval x=\"$x\"
9290 exec_prefix="$acl_save_exec_prefix"
9291 prefix="$acl_save_prefix"
9292
9293 if test "X$x" = "X$element"; then
9294 haveit=yes
9295 break
9296 fi
9297 done
9298 if test -z "$haveit"; then
9299 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9300 fi
9301 done
9302
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009303
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009305$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009306if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009307 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009308else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009309
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009310 am_cv_func_iconv="no, consider installing GNU libiconv"
9311 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009313/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009314
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009315#include <stdlib.h>
9316#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009317
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009318int
9319main ()
9320{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009321iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009322 iconv(cd,NULL,NULL,NULL,NULL);
9323 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009324 ;
9325 return 0;
9326}
9327_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009328if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009329 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009330fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009331rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009333 if test "$am_cv_func_iconv" != yes; then
9334 am_save_LIBS="$LIBS"
9335 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009337/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009338
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009339#include <stdlib.h>
9340#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009341
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009342int
9343main ()
9344{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009345iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009346 iconv(cd,NULL,NULL,NULL,NULL);
9347 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009348 ;
9349 return 0;
9350}
9351_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009352if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009353 am_cv_lib_iconv=yes
9354 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009355fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009356rm -f core conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009358 LIBS="$am_save_LIBS"
9359 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009360
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009361fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009363$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009364 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9366$as_echo_n "checking for working iconv... " >&6; }
9367if ${am_cv_func_iconv_works+:} false; then :
9368 $as_echo_n "(cached) " >&6
9369else
9370
9371 am_save_LIBS="$LIBS"
9372 if test $am_cv_lib_iconv = yes; then
9373 LIBS="$LIBS $LIBICONV"
9374 fi
9375 if test "$cross_compiling" = yes; then :
9376
9377 case "$host_os" in
9378 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9379 *) am_cv_func_iconv_works="guessing yes" ;;
9380 esac
9381
9382else
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384/* end confdefs.h. */
9385
9386#include <iconv.h>
9387#include <string.h>
9388int main ()
9389{
9390 int result = 0;
9391 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9392 returns. */
9393 {
9394 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9395 if (cd_utf8_to_88591 != (iconv_t)(-1))
9396 {
9397 static const char input[] = "\342\202\254"; /* EURO SIGN */
9398 char buf[10];
9399 const char *inptr = input;
9400 size_t inbytesleft = strlen (input);
9401 char *outptr = buf;
9402 size_t outbytesleft = sizeof (buf);
9403 size_t res = iconv (cd_utf8_to_88591,
9404 (char **) &inptr, &inbytesleft,
9405 &outptr, &outbytesleft);
9406 if (res == 0)
9407 result |= 1;
9408 iconv_close (cd_utf8_to_88591);
9409 }
9410 }
9411 /* Test against Solaris 10 bug: Failures are not distinguishable from
9412 successful returns. */
9413 {
9414 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9415 if (cd_ascii_to_88591 != (iconv_t)(-1))
9416 {
9417 static const char input[] = "\263";
9418 char buf[10];
9419 const char *inptr = input;
9420 size_t inbytesleft = strlen (input);
9421 char *outptr = buf;
9422 size_t outbytesleft = sizeof (buf);
9423 size_t res = iconv (cd_ascii_to_88591,
9424 (char **) &inptr, &inbytesleft,
9425 &outptr, &outbytesleft);
9426 if (res == 0)
9427 result |= 2;
9428 iconv_close (cd_ascii_to_88591);
9429 }
9430 }
9431 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9432 {
9433 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9434 if (cd_88591_to_utf8 != (iconv_t)(-1))
9435 {
9436 static const char input[] = "\304";
9437 static char buf[2] = { (char)0xDE, (char)0xAD };
9438 const char *inptr = input;
9439 size_t inbytesleft = 1;
9440 char *outptr = buf;
9441 size_t outbytesleft = 1;
9442 size_t res = iconv (cd_88591_to_utf8,
9443 (char **) &inptr, &inbytesleft,
9444 &outptr, &outbytesleft);
9445 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9446 result |= 4;
9447 iconv_close (cd_88591_to_utf8);
9448 }
9449 }
9450#if 0 /* This bug could be worked around by the caller. */
9451 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9452 {
9453 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9454 if (cd_88591_to_utf8 != (iconv_t)(-1))
9455 {
9456 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9457 char buf[50];
9458 const char *inptr = input;
9459 size_t inbytesleft = strlen (input);
9460 char *outptr = buf;
9461 size_t outbytesleft = sizeof (buf);
9462 size_t res = iconv (cd_88591_to_utf8,
9463 (char **) &inptr, &inbytesleft,
9464 &outptr, &outbytesleft);
9465 if ((int)res > 0)
9466 result |= 8;
9467 iconv_close (cd_88591_to_utf8);
9468 }
9469 }
9470#endif
9471 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9472 provided. */
9473 if (/* Try standardized names. */
9474 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9475 /* Try IRIX, OSF/1 names. */
9476 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9477 /* Try AIX names. */
9478 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9479 /* Try HP-UX names. */
9480 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9481 result |= 16;
9482 return result;
9483}
9484_ACEOF
9485if ac_fn_c_try_run "$LINENO"; then :
9486 am_cv_func_iconv_works=yes
9487else
9488 am_cv_func_iconv_works=no
9489fi
9490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9491 conftest.$ac_objext conftest.beam conftest.$ac_ext
9492fi
9493
9494 LIBS="$am_save_LIBS"
9495
9496fi
9497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9498$as_echo "$am_cv_func_iconv_works" >&6; }
9499 case "$am_cv_func_iconv_works" in
9500 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9501 *) am_func_iconv=yes ;;
9502 esac
9503 else
9504 am_func_iconv=no am_cv_lib_iconv=no
9505 fi
9506 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009507
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009508$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009509
9510 fi
9511 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009513$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009515$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009516 else
9517 CPPFLAGS="$am_save_CPPFLAGS"
9518 LIBICONV=
9519 LTLIBICONV=
9520 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009521
9522
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009523
9524 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009526$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009527 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009528 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009529else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009530
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009532/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009533
9534#include <stdlib.h>
9535#include <iconv.h>
9536extern
9537#ifdef __cplusplus
9538"C"
9539#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009540#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009541size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9542#else
9543size_t iconv();
9544#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009545
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009546int
9547main ()
9548{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009550 ;
9551 return 0;
9552}
9553_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009554if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009555 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009556else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009557 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009558fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009560 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 +00009561fi
9562
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009563 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009564 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9565 $am_cv_proto_iconv" >&5
9566$as_echo "
9567 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009568
9569cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009570#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009571_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009572
Theodore Ts'o93613952014-07-03 23:44:13 -04009573
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009574 fi
9575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009576
Theodore Ts'o93613952014-07-03 23:44:13 -04009577
9578
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009580/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009581int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009582int
9583main ()
9584{
Theodore Ts'o93613952014-07-03 23:44:13 -04009585
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009586 ;
9587 return 0;
9588}
9589_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009590if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009591
9592$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009594fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009595rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009597
Theodore Ts'o93613952014-07-03 23:44:13 -04009598 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9599do :
9600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9601ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9602if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9603 cat >>confdefs.h <<_ACEOF
9604#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009605_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009606
9607fi
9608
9609done
9610
9611 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9612 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9613 argz_stringify argz_next __fsetlocking
9614do :
9615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9616ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9617if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9618 cat >>confdefs.h <<_ACEOF
9619#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9620_ACEOF
9621
9622fi
9623done
9624
9625
9626 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9627"
9628if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9629 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009630else
Theodore Ts'o93613952014-07-03 23:44:13 -04009631 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009632fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009633
9634cat >>confdefs.h <<_ACEOF
9635#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9636_ACEOF
9637ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9638"
9639if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9640 ac_have_decl=1
9641else
9642 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009643fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009644
Theodore Ts'o93613952014-07-03 23:44:13 -04009645cat >>confdefs.h <<_ACEOF
9646#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9647_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009648
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009649
Theodore Ts'o93613952014-07-03 23:44:13 -04009650
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009651
9652 for ac_prog in bison
9653do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009654 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009655set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009657$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009658if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009659 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009660else
9661 if test -n "$INTLBISON"; then
9662 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9663else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665for as_dir in $PATH
9666do
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009669 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009671 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009673 break 2
9674 fi
9675done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009676 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009677IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009678
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009679fi
9680fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009681INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009682if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009684$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009685else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009687$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009688fi
9689
Theodore Ts'oe1052142006-10-21 21:46:47 -04009690
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009691 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009692done
9693
9694 if test -z "$INTLBISON"; then
9695 ac_verc_fail=yes
9696 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009698$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009699 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9700 case $ac_prog_version in
9701 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9702 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9703 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9704 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9705 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009707$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009708 fi
9709 if test $ac_verc_fail = yes; then
9710 INTLBISON=:
9711 fi
9712
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009713
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009714
Theodore Ts'o93613952014-07-03 23:44:13 -04009715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9716$as_echo_n "checking for long long int... " >&6; }
9717if ${ac_cv_type_long_long_int+:} false; then :
9718 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009719else
Theodore Ts'o93613952014-07-03 23:44:13 -04009720 ac_cv_type_long_long_int=yes
9721 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9722 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9723 if test $ac_cv_type_long_long_int = yes; then
9724 if test "$cross_compiling" = yes; then :
9725 :
9726else
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728/* end confdefs.h. */
9729#include <limits.h>
9730 #ifndef LLONG_MAX
9731 # define HALF \
9732 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9733 # define LLONG_MAX (HALF - 1 + HALF)
9734 #endif
9735int
9736main ()
9737{
9738long long int n = 1;
9739 int i;
9740 for (i = 0; ; i++)
9741 {
9742 long long int m = n << i;
9743 if (m >> i != n)
9744 return 1;
9745 if (LLONG_MAX / 2 < m)
9746 break;
9747 }
9748 return 0;
9749 ;
9750 return 0;
9751}
9752_ACEOF
9753if ac_fn_c_try_run "$LINENO"; then :
9754
9755else
9756 ac_cv_type_long_long_int=no
9757fi
9758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9759 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009760fi
9761
Theodore Ts'o93613952014-07-03 23:44:13 -04009762 fi
9763 fi
9764fi
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9766$as_echo "$ac_cv_type_long_long_int" >&6; }
9767 if test $ac_cv_type_long_long_int = yes; then
9768
9769$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9770
9771 fi
9772
9773
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9775$as_echo_n "checking for wchar_t... " >&6; }
9776if ${gt_cv_c_wchar_t+:} false; then :
9777 $as_echo_n "(cached) " >&6
9778else
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780/* end confdefs.h. */
9781#include <stddef.h>
9782 wchar_t foo = (wchar_t)'\0';
9783int
9784main ()
9785{
9786
9787 ;
9788 return 0;
9789}
9790_ACEOF
9791if ac_fn_c_try_compile "$LINENO"; then :
9792 gt_cv_c_wchar_t=yes
9793else
9794 gt_cv_c_wchar_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_wchar_t" >&5
9799$as_echo "$gt_cv_c_wchar_t" >&6; }
9800 if test $gt_cv_c_wchar_t = yes; then
9801
9802$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9803
9804 fi
9805
9806
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9808$as_echo_n "checking for wint_t... " >&6; }
9809if ${gt_cv_c_wint_t+:} false; then :
9810 $as_echo_n "(cached) " >&6
9811else
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813/* end confdefs.h. */
9814
9815/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9816 <wchar.h>.
9817 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9818 before <wchar.h>. */
9819#include <stddef.h>
9820#include <stdio.h>
9821#include <time.h>
9822#include <wchar.h>
9823 wint_t foo = (wchar_t)'\0';
9824int
9825main ()
9826{
9827
9828 ;
9829 return 0;
9830}
9831_ACEOF
9832if ac_fn_c_try_compile "$LINENO"; then :
9833 gt_cv_c_wint_t=yes
9834else
9835 gt_cv_c_wint_t=no
9836fi
9837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9838fi
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9840$as_echo "$gt_cv_c_wint_t" >&6; }
9841 if test $gt_cv_c_wint_t = yes; then
9842
9843$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9844
9845 fi
9846
9847
9848
9849
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9851$as_echo_n "checking for intmax_t... " >&6; }
9852if ${gt_cv_c_intmax_t+:} false; then :
9853 $as_echo_n "(cached) " >&6
9854else
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856/* end confdefs.h. */
9857
9858#include <stddef.h>
9859#include <stdlib.h>
9860#if HAVE_STDINT_H_WITH_UINTMAX
9861#include <stdint.h>
9862#endif
9863#if HAVE_INTTYPES_H_WITH_UINTMAX
9864#include <inttypes.h>
9865#endif
9866
9867int
9868main ()
9869{
9870intmax_t x = -1;
9871 return !x;
9872 ;
9873 return 0;
9874}
9875_ACEOF
9876if ac_fn_c_try_compile "$LINENO"; then :
9877 gt_cv_c_intmax_t=yes
9878else
9879 gt_cv_c_intmax_t=no
9880fi
9881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9882fi
9883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9884$as_echo "$gt_cv_c_intmax_t" >&6; }
9885 if test $gt_cv_c_intmax_t = yes; then
9886
9887$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9888
9889 fi
9890
9891
9892
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9894$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9895if ${gt_cv_func_printf_posix+:} false; then :
9896 $as_echo_n "(cached) " >&6
9897else
9898
9899 if test "$cross_compiling" = yes; then :
9900
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h. */
9903
9904#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9905 notposix
9906#endif
9907
9908_ACEOF
9909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9910 $EGREP "notposix" >/dev/null 2>&1; then :
9911 gt_cv_func_printf_posix="guessing no"
9912else
9913 gt_cv_func_printf_posix="guessing yes"
9914fi
9915rm -f conftest*
9916
9917
9918else
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920/* end confdefs.h. */
9921
9922#include <stdio.h>
9923#include <string.h>
9924/* The string "%2$d %1$d", with dollar characters protected from the shell's
9925 dollar expansion (possibly an autoconf bug). */
9926static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9927static char buf[100];
9928int main ()
9929{
9930 sprintf (buf, format, 33, 55);
9931 return (strcmp (buf, "55 33") != 0);
9932}
9933_ACEOF
9934if ac_fn_c_try_run "$LINENO"; then :
9935 gt_cv_func_printf_posix=yes
9936else
9937 gt_cv_func_printf_posix=no
9938fi
9939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9940 conftest.$ac_objext conftest.beam conftest.$ac_ext
9941fi
9942
9943
9944fi
9945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9946$as_echo "$gt_cv_func_printf_posix" >&6; }
9947 case $gt_cv_func_printf_posix in
9948 *yes)
9949
9950$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9951
9952 ;;
9953 esac
9954
9955
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9957$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9958if ${ac_cv_gnu_library_2_1+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960else
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962/* end confdefs.h. */
9963
9964#include <features.h>
9965#ifdef __GNU_LIBRARY__
9966 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9967 Lucky GNU user
9968 #endif
9969#endif
9970#ifdef __UCLIBC__
9971 Lucky user
9972#endif
9973
9974_ACEOF
9975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9976 $EGREP "Lucky" >/dev/null 2>&1; then :
9977 ac_cv_gnu_library_2_1=yes
9978else
9979 ac_cv_gnu_library_2_1=no
9980fi
9981rm -f conftest*
9982
9983
9984
9985fi
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9987$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9988
9989 GLIBC21="$ac_cv_gnu_library_2_1"
9990
9991
9992
9993 for ac_header in stdint.h
9994do :
9995 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9996if test "x$ac_cv_header_stdint_h" = xyes; then :
9997 cat >>confdefs.h <<_ACEOF
9998#define HAVE_STDINT_H 1
9999_ACEOF
10000
10001fi
10002
10003done
10004
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10006$as_echo_n "checking for SIZE_MAX... " >&6; }
10007if ${gl_cv_size_max+:} false; then :
10008 $as_echo_n "(cached) " >&6
10009else
10010
10011 gl_cv_size_max=
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013/* end confdefs.h. */
10014
10015#include <limits.h>
10016#if HAVE_STDINT_H
10017#include <stdint.h>
10018#endif
10019#ifdef SIZE_MAX
10020Found it
10021#endif
10022
10023_ACEOF
10024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10025 $EGREP "Found it" >/dev/null 2>&1; then :
10026 gl_cv_size_max=yes
10027fi
10028rm -f conftest*
10029
10030 if test -z "$gl_cv_size_max"; then
10031 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10032#include <limits.h>"; then :
10033
10034else
10035 size_t_bits_minus_1=
10036fi
10037
10038 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10039
10040else
10041 fits_in_uint=
10042fi
10043
10044 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10045 if test $fits_in_uint = 1; then
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h. */
10048#include <stddef.h>
10049 extern size_t foo;
10050 extern unsigned long foo;
10051
10052int
10053main ()
10054{
10055
10056 ;
10057 return 0;
10058}
10059_ACEOF
10060if ac_fn_c_try_compile "$LINENO"; then :
10061 fits_in_uint=0
10062fi
10063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064 fi
10065 if test $fits_in_uint = 1; then
10066 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10067 else
10068 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10069 fi
10070 else
10071 gl_cv_size_max='((size_t)~(size_t)0)'
10072 fi
10073 fi
10074
10075fi
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10077$as_echo "$gl_cv_size_max" >&6; }
10078 if test "$gl_cv_size_max" != yes; then
10079
10080cat >>confdefs.h <<_ACEOF
10081#define SIZE_MAX $gl_cv_size_max
10082_ACEOF
10083
10084 fi
10085
10086
10087
10088
10089 for ac_header in stdint.h
10090do :
10091 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10092if test "x$ac_cv_header_stdint_h" = xyes; then :
10093 cat >>confdefs.h <<_ACEOF
10094#define HAVE_STDINT_H 1
10095_ACEOF
10096
10097fi
10098
10099done
10100
10101
10102
10103
10104
10105 for ac_func in $ac_func_list
10106do :
10107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10108ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10109if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10110 cat >>confdefs.h <<_ACEOF
10111#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10112_ACEOF
10113
10114fi
10115done
10116
10117
10118
10119
10120
10121
10122
10123
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10125$as_echo_n "checking for working fcntl.h... " >&6; }
10126if ${gl_cv_header_working_fcntl_h+:} false; then :
10127 $as_echo_n "(cached) " >&6
10128else
10129 if test "$cross_compiling" = yes; then :
10130 gl_cv_header_working_fcntl_h=cross-compiling
10131else
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133/* end confdefs.h. */
10134#include <sys/types.h>
10135 #include <sys/stat.h>
10136 #if HAVE_UNISTD_H
10137 # include <unistd.h>
10138 #else /* on Windows with MSVC */
10139 # include <io.h>
10140 # include <stdlib.h>
10141 # defined sleep(n) _sleep ((n) * 1000)
10142 #endif
10143 #include <fcntl.h>
10144 #ifndef O_NOATIME
10145 #define O_NOATIME 0
10146 #endif
10147 #ifndef O_NOFOLLOW
10148 #define O_NOFOLLOW 0
10149 #endif
10150 static int const constants[] =
10151 {
10152 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10153 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10154 };
10155
10156int
10157main ()
10158{
10159
10160 int result = !constants;
10161 #if HAVE_SYMLINK
10162 {
10163 static char const sym[] = "conftest.sym";
10164 if (symlink ("/dev/null", sym) != 0)
10165 result |= 2;
10166 else
10167 {
10168 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10169 if (fd >= 0)
10170 {
10171 close (fd);
10172 result |= 4;
10173 }
10174 }
10175 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10176 result |= 2;
10177 else
10178 {
10179 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10180 if (fd >= 0)
10181 {
10182 close (fd);
10183 result |= 4;
10184 }
10185 }
10186 unlink (sym);
10187 }
10188 #endif
10189 {
10190 static char const file[] = "confdefs.h";
10191 int fd = open (file, O_RDONLY | O_NOATIME);
10192 if (fd < 0)
10193 result |= 8;
10194 else
10195 {
10196 struct stat st0;
10197 if (fstat (fd, &st0) != 0)
10198 result |= 16;
10199 else
10200 {
10201 char c;
10202 sleep (1);
10203 if (read (fd, &c, 1) != 1)
10204 result |= 24;
10205 else
10206 {
10207 if (close (fd) != 0)
10208 result |= 32;
10209 else
10210 {
10211 struct stat st1;
10212 if (stat (file, &st1) != 0)
10213 result |= 40;
10214 else
10215 if (st0.st_atime != st1.st_atime)
10216 result |= 64;
10217 }
10218 }
10219 }
10220 }
10221 }
10222 return result;
10223 ;
10224 return 0;
10225}
10226_ACEOF
10227if ac_fn_c_try_run "$LINENO"; then :
10228 gl_cv_header_working_fcntl_h=yes
10229else
10230 case $? in #(
10231 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10232 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10233 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10234 *) gl_cv_header_working_fcntl_h='no';;
10235 esac
10236fi
10237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10238 conftest.$ac_objext conftest.beam conftest.$ac_ext
10239fi
10240
10241fi
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10243$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10244
10245 case $gl_cv_header_working_fcntl_h in #(
10246 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10247 *) ac_val=1;;
10248 esac
10249
10250cat >>confdefs.h <<_ACEOF
10251#define HAVE_WORKING_O_NOATIME $ac_val
10252_ACEOF
10253
10254
10255 case $gl_cv_header_working_fcntl_h in #(
10256 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10257 *) ac_val=1;;
10258 esac
10259
10260cat >>confdefs.h <<_ACEOF
10261#define HAVE_WORKING_O_NOFOLLOW $ac_val
10262_ACEOF
10263
10264
10265
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10267$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10268if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10269 $as_echo_n "(cached) " >&6
10270else
10271 gt_save_LIBS="$LIBS"
10272 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274/* end confdefs.h. */
10275#include <CoreFoundation/CFPreferences.h>
10276int
10277main ()
10278{
10279CFPreferencesCopyAppValue(NULL, NULL)
10280 ;
10281 return 0;
10282}
10283_ACEOF
10284if ac_fn_c_try_link "$LINENO"; then :
10285 gt_cv_func_CFPreferencesCopyAppValue=yes
10286else
10287 gt_cv_func_CFPreferencesCopyAppValue=no
10288fi
10289rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10291 LIBS="$gt_save_LIBS"
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10294$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10295 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10296
10297$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10298
10299 fi
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10301$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10302if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10303 $as_echo_n "(cached) " >&6
10304else
10305 gt_save_LIBS="$LIBS"
10306 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h. */
10309#include <CoreFoundation/CFLocale.h>
10310int
10311main ()
10312{
10313CFLocaleCopyCurrent();
10314 ;
10315 return 0;
10316}
10317_ACEOF
10318if ac_fn_c_try_link "$LINENO"; then :
10319 gt_cv_func_CFLocaleCopyCurrent=yes
10320else
10321 gt_cv_func_CFLocaleCopyCurrent=no
10322fi
10323rm -f core conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
10325 LIBS="$gt_save_LIBS"
10326fi
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10328$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10329 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10330
10331$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10332
10333 fi
10334 INTL_MACOSX_LIBS=
10335 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10336 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10337 fi
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348 case "$enable_silent_rules" in
10349 yes) INTL_DEFAULT_VERBOSITY=0;;
10350 no) INTL_DEFAULT_VERBOSITY=1;;
10351 *) INTL_DEFAULT_VERBOSITY=1;;
10352 esac
10353
10354
10355 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10356if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10357
10358else
10359
10360$as_echo "#define ptrdiff_t long" >>confdefs.h
10361
10362
10363fi
10364
10365 for ac_header in features.h stddef.h stdlib.h string.h
10366do :
10367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10368ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10369if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10370 cat >>confdefs.h <<_ACEOF
10371#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10372_ACEOF
10373
10374fi
10375
10376done
10377
10378 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10379 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10380do :
10381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10382ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10383if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10384 cat >>confdefs.h <<_ACEOF
10385#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10386_ACEOF
10387
10388fi
10389done
10390
10391
10392 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10393"
10394if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10395 ac_have_decl=1
10396else
10397 ac_have_decl=0
10398fi
10399
10400cat >>confdefs.h <<_ACEOF
10401#define HAVE_DECL__SNPRINTF $ac_have_decl
10402_ACEOF
10403ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10404"
10405if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10406 ac_have_decl=1
10407else
10408 ac_have_decl=0
10409fi
10410
10411cat >>confdefs.h <<_ACEOF
10412#define HAVE_DECL__SNWPRINTF $ac_have_decl
10413_ACEOF
10414
10415
10416 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10417"
10418if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10419 ac_have_decl=1
10420else
10421 ac_have_decl=0
10422fi
10423
10424cat >>confdefs.h <<_ACEOF
10425#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10426_ACEOF
10427
10428
10429 case $gt_cv_func_printf_posix in
10430 *yes) HAVE_POSIX_PRINTF=1 ;;
10431 *) HAVE_POSIX_PRINTF=0 ;;
10432 esac
10433
10434 if test "$ac_cv_func_asprintf" = yes; then
10435 HAVE_ASPRINTF=1
10436 else
10437 HAVE_ASPRINTF=0
10438 fi
10439
10440 if test "$ac_cv_func_snprintf" = yes; then
10441 HAVE_SNPRINTF=1
10442 else
10443 HAVE_SNPRINTF=0
10444 fi
10445
10446 if test "$ac_cv_func_newlocale" = yes; then
10447 HAVE_NEWLOCALE=1
10448 else
10449 HAVE_NEWLOCALE=0
10450 fi
10451
10452 if test "$ac_cv_func_wprintf" = yes; then
10453 HAVE_WPRINTF=1
10454 else
10455 HAVE_WPRINTF=0
10456 fi
10457
10458
10459
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10461$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10462if ${am_cv_langinfo_codeset+:} false; then :
10463 $as_echo_n "(cached) " >&6
10464else
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466/* end confdefs.h. */
10467#include <langinfo.h>
10468int
10469main ()
10470{
10471char* cs = nl_langinfo(CODESET); return !cs;
10472 ;
10473 return 0;
10474}
10475_ACEOF
10476if ac_fn_c_try_link "$LINENO"; then :
10477 am_cv_langinfo_codeset=yes
10478else
10479 am_cv_langinfo_codeset=no
10480fi
10481rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483
10484fi
10485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10486$as_echo "$am_cv_langinfo_codeset" >&6; }
10487 if test $am_cv_langinfo_codeset = yes; then
10488
10489$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10490
10491 fi
10492
10493
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10495$as_echo_n "checking for LC_MESSAGES... " >&6; }
10496if ${gt_cv_val_LC_MESSAGES+:} false; then :
10497 $as_echo_n "(cached) " >&6
10498else
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500/* end confdefs.h. */
10501#include <locale.h>
10502int
10503main ()
10504{
10505return LC_MESSAGES
10506 ;
10507 return 0;
10508}
10509_ACEOF
10510if ac_fn_c_try_link "$LINENO"; then :
10511 gt_cv_val_LC_MESSAGES=yes
10512else
10513 gt_cv_val_LC_MESSAGES=no
10514fi
10515rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10517fi
10518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10519$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10520 if test $gt_cv_val_LC_MESSAGES = yes; then
10521
10522$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10523
10524 fi
10525
10526
10527 if test "$enable_shared" = yes; then
10528 case "$host_os" in
10529 mingw* | cygwin*) is_woe32dll=yes ;;
10530 *) is_woe32dll=no ;;
10531 esac
10532 else
10533 is_woe32dll=no
10534 fi
10535 WOE32DLL=$is_woe32dll
10536
10537
10538 case "$host_os" in
10539 mingw* | cygwin*) is_woe32=yes ;;
10540 *) is_woe32=no ;;
10541 esac
10542 WOE32=$is_woe32
10543
10544 if test $WOE32 = yes; then
10545 if test -n "$ac_tool_prefix"; then
10546 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10547set dummy ${ac_tool_prefix}windres; ac_word=$2
10548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10549$as_echo_n "checking for $ac_word... " >&6; }
10550if ${ac_cv_prog_WINDRES+:} false; then :
10551 $as_echo_n "(cached) " >&6
10552else
10553 if test -n "$WINDRES"; then
10554 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10555else
10556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557for as_dir in $PATH
10558do
10559 IFS=$as_save_IFS
10560 test -z "$as_dir" && as_dir=.
10561 for ac_exec_ext in '' $ac_executable_extensions; do
10562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10563 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10565 break 2
10566 fi
10567done
10568 done
10569IFS=$as_save_IFS
10570
10571fi
10572fi
10573WINDRES=$ac_cv_prog_WINDRES
10574if test -n "$WINDRES"; then
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10576$as_echo "$WINDRES" >&6; }
10577else
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579$as_echo "no" >&6; }
10580fi
10581
10582
10583fi
10584if test -z "$ac_cv_prog_WINDRES"; then
10585 ac_ct_WINDRES=$WINDRES
10586 # Extract the first word of "windres", so it can be a program name with args.
10587set dummy windres; ac_word=$2
10588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589$as_echo_n "checking for $ac_word... " >&6; }
10590if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10591 $as_echo_n "(cached) " >&6
10592else
10593 if test -n "$ac_ct_WINDRES"; then
10594 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10595else
10596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597for as_dir in $PATH
10598do
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10603 ac_cv_prog_ac_ct_WINDRES="windres"
10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 break 2
10606 fi
10607done
10608 done
10609IFS=$as_save_IFS
10610
10611fi
10612fi
10613ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10614if test -n "$ac_ct_WINDRES"; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10616$as_echo "$ac_ct_WINDRES" >&6; }
10617else
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619$as_echo "no" >&6; }
10620fi
10621
10622 if test "x$ac_ct_WINDRES" = x; then
10623 WINDRES=""
10624 else
10625 case $cross_compiling:$ac_tool_warned in
10626yes:)
10627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10629ac_tool_warned=yes ;;
10630esac
10631 WINDRES=$ac_ct_WINDRES
10632 fi
10633else
10634 WINDRES="$ac_cv_prog_WINDRES"
10635fi
10636
10637 fi
10638
10639 case "$host_os" in
10640 hpux*) LTLIBC="" ;;
10641 *) LTLIBC="-lc" ;;
10642 esac
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10671$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10672if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10673 $as_echo_n "(cached) " >&6
10674else
10675 gt_save_LIBS="$LIBS"
10676 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678/* end confdefs.h. */
10679#include <CoreFoundation/CFPreferences.h>
10680int
10681main ()
10682{
10683CFPreferencesCopyAppValue(NULL, NULL)
10684 ;
10685 return 0;
10686}
10687_ACEOF
10688if ac_fn_c_try_link "$LINENO"; then :
10689 gt_cv_func_CFPreferencesCopyAppValue=yes
10690else
10691 gt_cv_func_CFPreferencesCopyAppValue=no
10692fi
10693rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695 LIBS="$gt_save_LIBS"
10696fi
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10698$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10699 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10700
10701$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10702
10703 fi
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10705$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10706if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10707 $as_echo_n "(cached) " >&6
10708else
10709 gt_save_LIBS="$LIBS"
10710 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712/* end confdefs.h. */
10713#include <CoreFoundation/CFLocale.h>
10714int
10715main ()
10716{
10717CFLocaleCopyCurrent();
10718 ;
10719 return 0;
10720}
10721_ACEOF
10722if ac_fn_c_try_link "$LINENO"; then :
10723 gt_cv_func_CFLocaleCopyCurrent=yes
10724else
10725 gt_cv_func_CFLocaleCopyCurrent=no
10726fi
10727rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729 LIBS="$gt_save_LIBS"
10730fi
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10732$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10733 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10734
10735$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10736
10737 fi
10738 INTL_MACOSX_LIBS=
10739 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10740 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10741 fi
10742
10743
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010744
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010745
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010746
10747
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010748 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010749 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010750
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010751 LIBINTL=
10752 LTLIBINTL=
10753 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010754
Theodore Ts'o93613952014-07-03 23:44:13 -040010755 case " $gt_needs " in
10756 *" need-formatstring-macros "*) gt_api_version=3 ;;
10757 *" need-ngettext "*) gt_api_version=2 ;;
10758 *) gt_api_version=1 ;;
10759 esac
10760 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10761 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10762
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010763 if test "$USE_NLS" = "yes"; then
10764 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010765
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010767$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768
Theodore Ts'oe1052142006-10-21 21:46:47 -040010769# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010770if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010771 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010772else
10773 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010774fi
10775
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010777$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010778
10779 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10780 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010781
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010782
Theodore Ts'o93613952014-07-03 23:44:13 -040010783 if test $gt_api_version -ge 3; then
10784 gt_revision_test_code='
10785#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10786#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10787#endif
10788typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10789'
10790 else
10791 gt_revision_test_code=
10792 fi
10793 if test $gt_api_version -ge 2; then
10794 gt_expression_test_code=' + * ngettext ("", "", 0)'
10795 else
10796 gt_expression_test_code=
10797 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010798
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010800$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010801if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010802 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010803else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010805/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010806
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010807#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010808$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010809extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010810extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010811
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010812int
10813main ()
10814{
Theodore Ts'o93613952014-07-03 23:44:13 -040010815
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010816bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010817return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10818
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010819 ;
10820 return 0;
10821}
10822_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010823if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010824 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010825else
Theodore Ts'o93613952014-07-03 23:44:13 -040010826 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010827fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010828rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010830fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010831eval ac_res=\$$gt_func_gnugettext_libc
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10833$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010834
Theodore Ts'o93613952014-07-03 23:44:13 -040010835 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10836
10837
10838
10839
10840
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010841
10842
10843
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010844 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010845
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010846 acl_save_prefix="$prefix"
10847 prefix="$acl_final_prefix"
10848 acl_save_exec_prefix="$exec_prefix"
10849 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010850
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010851 eval additional_includedir=\"$includedir\"
10852 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010853
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010854 exec_prefix="$acl_save_exec_prefix"
10855 prefix="$acl_save_prefix"
10856
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010857
Theodore Ts'oe1052142006-10-21 21:46:47 -040010858# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010859if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010860 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010861 if test "X$withval" = "Xno"; then
10862 use_additional=no
10863 else
10864 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010865
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010866 acl_save_prefix="$prefix"
10867 prefix="$acl_final_prefix"
10868 acl_save_exec_prefix="$exec_prefix"
10869 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010870
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010871 eval additional_includedir=\"$includedir\"
10872 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010873
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010874 exec_prefix="$acl_save_exec_prefix"
10875 prefix="$acl_save_prefix"
10876
10877 else
10878 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010879 additional_libdir="$withval/$acl_libdirstem"
10880 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10881 && ! test -d "$withval/$acl_libdirstem"; then
10882 additional_libdir="$withval/$acl_libdirstem2"
10883 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010884 fi
10885 fi
10886
Theodore Ts'oe1052142006-10-21 21:46:47 -040010887fi
10888
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010889 LIBINTL=
10890 LTLIBINTL=
10891 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010892 LIBINTL_PREFIX=
10893 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010894 rpathdirs=
10895 ltrpathdirs=
10896 names_already_handled=
10897 names_next_round='intl '
10898 while test -n "$names_next_round"; do
10899 names_this_round="$names_next_round"
10900 names_next_round=
10901 for name in $names_this_round; do
10902 already_handled=
10903 for n in $names_already_handled; do
10904 if test "$n" = "$name"; then
10905 already_handled=yes
10906 break
10907 fi
10908 done
10909 if test -z "$already_handled"; then
10910 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010911 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010912 eval value=\"\$HAVE_LIB$uppername\"
10913 if test -n "$value"; then
10914 if test "$value" = yes; then
10915 eval value=\"\$LIB$uppername\"
10916 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10917 eval value=\"\$LTLIB$uppername\"
10918 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10919 else
10920 :
10921 fi
10922 else
10923 found_dir=
10924 found_la=
10925 found_so=
10926 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010927 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10928 if test -n "$acl_shlibext"; then
10929 shrext=".$acl_shlibext" # typically: shrext=.so
10930 else
10931 shrext=
10932 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010933 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010934 dir="$additional_libdir"
10935 if test -n "$acl_shlibext"; then
10936 if test -f "$dir/$libname$shrext"; then
10937 found_dir="$dir"
10938 found_so="$dir/$libname$shrext"
10939 else
10940 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10941 ver=`(cd "$dir" && \
10942 for f in "$libname$shrext".*; do echo "$f"; done \
10943 | sed -e "s,^$libname$shrext\\\\.,," \
10944 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10945 | sed 1q ) 2>/dev/null`
10946 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10947 found_dir="$dir"
10948 found_so="$dir/$libname$shrext.$ver"
10949 fi
10950 else
10951 eval library_names=\"$acl_library_names_spec\"
10952 for f in $library_names; do
10953 if test -f "$dir/$f"; then
10954 found_dir="$dir"
10955 found_so="$dir/$f"
10956 break
10957 fi
10958 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010959 fi
10960 fi
10961 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010962 if test "X$found_dir" = "X"; then
10963 if test -f "$dir/$libname.$acl_libext"; then
10964 found_dir="$dir"
10965 found_a="$dir/$libname.$acl_libext"
10966 fi
10967 fi
10968 if test "X$found_dir" != "X"; then
10969 if test -f "$dir/$libname.la"; then
10970 found_la="$dir/$libname.la"
10971 fi
10972 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010973 fi
10974 if test "X$found_dir" = "X"; then
10975 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010976
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010977 acl_save_prefix="$prefix"
10978 prefix="$acl_final_prefix"
10979 acl_save_exec_prefix="$exec_prefix"
10980 exec_prefix="$acl_final_exec_prefix"
10981 eval x=\"$x\"
10982 exec_prefix="$acl_save_exec_prefix"
10983 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010984
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010985 case "$x" in
10986 -L*)
10987 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010988 if test -n "$acl_shlibext"; then
10989 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010990 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010991 found_so="$dir/$libname$shrext"
10992 else
10993 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10994 ver=`(cd "$dir" && \
10995 for f in "$libname$shrext".*; do echo "$f"; done \
10996 | sed -e "s,^$libname$shrext\\\\.,," \
10997 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10998 | sed 1q ) 2>/dev/null`
10999 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11000 found_dir="$dir"
11001 found_so="$dir/$libname$shrext.$ver"
11002 fi
11003 else
11004 eval library_names=\"$acl_library_names_spec\"
11005 for f in $library_names; do
11006 if test -f "$dir/$f"; then
11007 found_dir="$dir"
11008 found_so="$dir/$f"
11009 break
11010 fi
11011 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011012 fi
11013 fi
11014 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011015 if test "X$found_dir" = "X"; then
11016 if test -f "$dir/$libname.$acl_libext"; then
11017 found_dir="$dir"
11018 found_a="$dir/$libname.$acl_libext"
11019 fi
11020 fi
11021 if test "X$found_dir" != "X"; then
11022 if test -f "$dir/$libname.la"; then
11023 found_la="$dir/$libname.la"
11024 fi
11025 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011026 ;;
11027 esac
11028 if test "X$found_dir" != "X"; then
11029 break
11030 fi
11031 done
11032 fi
11033 if test "X$found_dir" != "X"; then
11034 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11035 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011036 if test "$enable_rpath" = no \
11037 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11038 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011039 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11040 else
11041 haveit=
11042 for x in $ltrpathdirs; do
11043 if test "X$x" = "X$found_dir"; then
11044 haveit=yes
11045 break
11046 fi
11047 done
11048 if test -z "$haveit"; then
11049 ltrpathdirs="$ltrpathdirs $found_dir"
11050 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011051 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011052 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11053 else
Theodore Ts'o93613952014-07-03 23:44:13 -040011054 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011055 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11056 haveit=
11057 for x in $rpathdirs; do
11058 if test "X$x" = "X$found_dir"; then
11059 haveit=yes
11060 break
11061 fi
11062 done
11063 if test -z "$haveit"; then
11064 rpathdirs="$rpathdirs $found_dir"
11065 fi
11066 else
11067 haveit=
11068 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011069
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011070 acl_save_prefix="$prefix"
11071 prefix="$acl_final_prefix"
11072 acl_save_exec_prefix="$exec_prefix"
11073 exec_prefix="$acl_final_exec_prefix"
11074 eval x=\"$x\"
11075 exec_prefix="$acl_save_exec_prefix"
11076 prefix="$acl_save_prefix"
11077
11078 if test "X$x" = "X-L$found_dir"; then
11079 haveit=yes
11080 break
11081 fi
11082 done
11083 if test -z "$haveit"; then
11084 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11085 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011086 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011087 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11088 else
11089 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11090 fi
11091 fi
11092 fi
11093 fi
11094 else
11095 if test "X$found_a" != "X"; then
11096 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11097 else
11098 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11099 fi
11100 fi
11101 additional_includedir=
11102 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011103 */$acl_libdirstem | */$acl_libdirstem/)
11104 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11105 if test "$name" = 'intl'; then
11106 LIBINTL_PREFIX="$basedir"
11107 fi
11108 additional_includedir="$basedir/include"
11109 ;;
11110 */$acl_libdirstem2 | */$acl_libdirstem2/)
11111 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11112 if test "$name" = 'intl'; then
11113 LIBINTL_PREFIX="$basedir"
11114 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011115 additional_includedir="$basedir/include"
11116 ;;
11117 esac
11118 if test "X$additional_includedir" != "X"; then
11119 if test "X$additional_includedir" != "X/usr/include"; then
11120 haveit=
11121 if test "X$additional_includedir" = "X/usr/local/include"; then
11122 if test -n "$GCC"; then
11123 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011124 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011125 esac
11126 fi
11127 fi
11128 if test -z "$haveit"; then
11129 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011130
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011131 acl_save_prefix="$prefix"
11132 prefix="$acl_final_prefix"
11133 acl_save_exec_prefix="$exec_prefix"
11134 exec_prefix="$acl_final_exec_prefix"
11135 eval x=\"$x\"
11136 exec_prefix="$acl_save_exec_prefix"
11137 prefix="$acl_save_prefix"
11138
11139 if test "X$x" = "X-I$additional_includedir"; then
11140 haveit=yes
11141 break
11142 fi
11143 done
11144 if test -z "$haveit"; then
11145 if test -d "$additional_includedir"; then
11146 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11147 fi
11148 fi
11149 fi
11150 fi
11151 fi
11152 if test -n "$found_la"; then
11153 save_libdir="$libdir"
11154 case "$found_la" in
11155 */* | *\\*) . "$found_la" ;;
11156 *) . "./$found_la" ;;
11157 esac
11158 libdir="$save_libdir"
11159 for dep in $dependency_libs; do
11160 case "$dep" in
11161 -L*)
11162 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011163 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11164 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011165 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011166 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11167 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011168 if test -n "$GCC"; then
11169 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011170 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011171 esac
11172 fi
11173 fi
11174 if test -z "$haveit"; then
11175 haveit=
11176 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011177
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011178 acl_save_prefix="$prefix"
11179 prefix="$acl_final_prefix"
11180 acl_save_exec_prefix="$exec_prefix"
11181 exec_prefix="$acl_final_exec_prefix"
11182 eval x=\"$x\"
11183 exec_prefix="$acl_save_exec_prefix"
11184 prefix="$acl_save_prefix"
11185
11186 if test "X$x" = "X-L$additional_libdir"; then
11187 haveit=yes
11188 break
11189 fi
11190 done
11191 if test -z "$haveit"; then
11192 if test -d "$additional_libdir"; then
11193 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11194 fi
11195 fi
11196 haveit=
11197 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011198
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011199 acl_save_prefix="$prefix"
11200 prefix="$acl_final_prefix"
11201 acl_save_exec_prefix="$exec_prefix"
11202 exec_prefix="$acl_final_exec_prefix"
11203 eval x=\"$x\"
11204 exec_prefix="$acl_save_exec_prefix"
11205 prefix="$acl_save_prefix"
11206
11207 if test "X$x" = "X-L$additional_libdir"; then
11208 haveit=yes
11209 break
11210 fi
11211 done
11212 if test -z "$haveit"; then
11213 if test -d "$additional_libdir"; then
11214 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11215 fi
11216 fi
11217 fi
11218 fi
11219 ;;
11220 -R*)
11221 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11222 if test "$enable_rpath" != no; then
11223 haveit=
11224 for x in $rpathdirs; do
11225 if test "X$x" = "X$dir"; then
11226 haveit=yes
11227 break
11228 fi
11229 done
11230 if test -z "$haveit"; then
11231 rpathdirs="$rpathdirs $dir"
11232 fi
11233 haveit=
11234 for x in $ltrpathdirs; do
11235 if test "X$x" = "X$dir"; then
11236 haveit=yes
11237 break
11238 fi
11239 done
11240 if test -z "$haveit"; then
11241 ltrpathdirs="$ltrpathdirs $dir"
11242 fi
11243 fi
11244 ;;
11245 -l*)
11246 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11247 ;;
11248 *.la)
11249 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11250 ;;
11251 *)
11252 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11253 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11254 ;;
11255 esac
11256 done
11257 fi
11258 else
11259 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11260 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11261 fi
11262 fi
11263 fi
11264 done
11265 done
11266 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011267 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011268 alldirs=
11269 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011270 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011271 done
11272 acl_save_libdir="$libdir"
11273 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011274 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011275 libdir="$acl_save_libdir"
11276 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11277 else
11278 for found_dir in $rpathdirs; do
11279 acl_save_libdir="$libdir"
11280 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011281 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011282 libdir="$acl_save_libdir"
11283 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11284 done
11285 fi
11286 fi
11287 if test "X$ltrpathdirs" != "X"; then
11288 for found_dir in $ltrpathdirs; do
11289 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11290 done
11291 fi
11292
Theodore Ts'o93613952014-07-03 23:44:13 -040011293
11294
11295
11296
11297
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011299$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011300if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011301 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011302else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011303 gt_save_CPPFLAGS="$CPPFLAGS"
11304 CPPFLAGS="$CPPFLAGS $INCINTL"
11305 gt_save_LIBS="$LIBS"
11306 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011308/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011309
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011310#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011311$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011312extern int _nl_msg_cat_cntr;
11313extern
11314#ifdef __cplusplus
11315"C"
11316#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011317const char *_nl_expand_alias (const char *);
11318
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011319int
11320main ()
11321{
Theodore Ts'o93613952014-07-03 23:44:13 -040011322
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011323bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011324return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11325
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011326 ;
11327 return 0;
11328}
11329_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011330if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011331 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011332else
Theodore Ts'o93613952014-07-03 23:44:13 -040011333 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011334fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011335rm -f core conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011337 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011338 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011340/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011341
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011342#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011343$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011344extern int _nl_msg_cat_cntr;
11345extern
11346#ifdef __cplusplus
11347"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011348#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011349const char *_nl_expand_alias (const char *);
11350
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011351int
11352main ()
11353{
Theodore Ts'o93613952014-07-03 23:44:13 -040011354
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011355bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011356return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011358 ;
11359 return 0;
11360}
11361_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011362if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011363 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011364 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11365 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011366
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011367fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011368rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011370 fi
11371 CPPFLAGS="$gt_save_CPPFLAGS"
11372 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011373fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011374eval ac_res=\$$gt_func_gnugettext_libintl
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11376$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011377 fi
11378
Theodore Ts'o93613952014-07-03 23:44:13 -040011379 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11380 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011381 && test "$PACKAGE" != gettext-runtime \
11382 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011383 gt_use_preinstalled_gnugettext=yes
11384 else
11385 LIBINTL=
11386 LTLIBINTL=
11387 INCINTL=
11388 fi
11389
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011390
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011391 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11392 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011393 fi
11394 fi
11395
11396 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011397 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011398 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011399 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11400 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011401 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011402 fi
11403
Theodore Ts'o93613952014-07-03 23:44:13 -040011404 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011405 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11406 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11407 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011408 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011409
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011410
Theodore Ts'o93613952014-07-03 23:44:13 -040011411 if test -n "$INTL_MACOSX_LIBS"; then
11412 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11413 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11414 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11415 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11416 fi
11417 fi
11418
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011419 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11420 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011421
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011422$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011423
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011424 else
11425 USE_NLS=no
11426 fi
11427 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011428
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011430$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011432$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011433 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011435$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011436 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011437 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011438 gt_source="external libintl"
11439 else
11440 gt_source="libc"
11441 fi
11442 else
11443 gt_source="included intl directory"
11444 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011446$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011447 fi
11448
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011449 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011450
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011451 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011452 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011454$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011456$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011457
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011458 for element in $INCINTL; do
11459 haveit=
11460 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011461
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011462 acl_save_prefix="$prefix"
11463 prefix="$acl_final_prefix"
11464 acl_save_exec_prefix="$exec_prefix"
11465 exec_prefix="$acl_final_exec_prefix"
11466 eval x=\"$x\"
11467 exec_prefix="$acl_save_exec_prefix"
11468 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011469
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011470 if test "X$x" = "X$element"; then
11471 haveit=yes
11472 break
11473 fi
11474 done
11475 if test -z "$haveit"; then
11476 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11477 fi
11478 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011479
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011480 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011481
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011482
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011483$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011484
11485
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011486$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011487
11488 fi
11489
11490 POSUB=po
11491 fi
11492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011493
11494 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011495 BUILD_INCLUDED_LIBINTL=yes
11496 fi
11497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011498
11499
11500
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011501
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011502 nls_cv_header_intl=
11503 nls_cv_header_libgt=
11504
11505 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011506
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011507
11508 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011509
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011510
11511 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011512
11513
Theodore Ts'o93613952014-07-03 23:44:13 -040011514 INTLOBJS=
11515 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011516 INTLOBJS="\$(GETTOBJS)"
11517 fi
11518
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011519
11520 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011521
11522
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011523
11524 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011525
11526
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011527
11528
11529
11530
11531
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011533$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11534set x ${MAKE-make}
11535ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011536if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011537 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011538else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011539 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011540SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011541all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011542 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011543_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011544# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011545case `${MAKE-make} -f conftest.make 2>/dev/null` in
11546 *@@@%%%=?*=@@@%%%*)
11547 eval ac_cv_prog_make_${ac_make}_set=yes;;
11548 *)
11549 eval ac_cv_prog_make_${ac_make}_set=no;;
11550esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011551rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011552fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011553if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011555$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011556 SET_MAKE=
11557else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011559$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011560 SET_MAKE="MAKE=${MAKE-make}"
11561fi
11562
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011564$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011565if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011566 $as_echo_n "(cached) " >&6
11567else
11568 _cv_gnu_make_command='' ;
11569 for a in "$MAKE" make gmake gnumake ; do
11570 if test -z "$a" ; then continue ; fi ;
11571 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11572 _cv_gnu_make_command=$a ;
11573 break;
11574 fi
11575 done ;
11576
11577fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011579$as_echo "$_cv_gnu_make_command" >&6; } ;
11580 if test "x$_cv_gnu_make_command" != "x" ; then
11581 ifGNUmake='' ;
11582 ifNotGNUmake='#' ;
11583 else
11584 ifGNUmake='#' ;
11585 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011587$as_echo "\"Not found\"" >&6; };
11588 fi
11589
11590
11591
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011592# Extract the first word of "ln", so it can be a program name with args.
11593set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011595$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011596if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011597 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011598else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011599 case $LN in
11600 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011601 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11602 ;;
11603 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $PATH
11606do
11607 IFS=$as_save_IFS
11608 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011609 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011611 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011613 break 2
11614 fi
11615done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011616 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011617IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011618
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011619 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11620 ;;
11621esac
11622fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011623LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011624if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011626$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011627else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011629$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011630fi
11631
Theodore Ts'oe1052142006-10-21 21:46:47 -040011632
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011634$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011635LN_S=$as_ln_s
11636if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011638$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011639else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011641$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011642fi
11643
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011644# Extract the first word of "mv", so it can be a program name with args.
11645set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011647$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011648if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011649 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011650else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011651 case $MV in
11652 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011653 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11654 ;;
11655 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657for as_dir in $PATH
11658do
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011661 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011663 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011665 break 2
11666 fi
11667done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011668 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011669IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011670
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011671 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11672 ;;
11673esac
11674fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011675MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011676if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011678$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011679else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011681$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011682fi
11683
Theodore Ts'oe1052142006-10-21 21:46:47 -040011684
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011685# Extract the first word of "cp", so it can be a program name with args.
11686set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011688$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011689if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011690 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011691else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011692 case $CP in
11693 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011694 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11695 ;;
11696 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698for as_dir in $PATH
11699do
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011702 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011704 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011706 break 2
11707 fi
11708done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011709 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011710IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011711
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011712 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11713 ;;
11714esac
11715fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011716CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011717if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011719$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011720else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011722$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011723fi
11724
Theodore Ts'oe1052142006-10-21 21:46:47 -040011725
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011726# Extract the first word of "rm", so it can be a program name with args.
11727set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011729$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011730if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011731 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011732else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011733 case $RM in
11734 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011735 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11736 ;;
11737 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739for as_dir in $PATH
11740do
11741 IFS=$as_save_IFS
11742 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011743 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011745 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011747 break 2
11748 fi
11749done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011750 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011751IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011752
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011753 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11754 ;;
11755esac
11756fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011757RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011758if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011760$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011761else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011763$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011764fi
11765
Theodore Ts'oe1052142006-10-21 21:46:47 -040011766
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011767# Extract the first word of "chmod", so it can be a program name with args.
11768set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011770$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011771if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011772 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011773else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011774 case $CHMOD in
11775 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011776 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11777 ;;
11778 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780for as_dir in $PATH
11781do
11782 IFS=$as_save_IFS
11783 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011784 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011786 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011788 break 2
11789 fi
11790done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011791 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011792IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011793
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011794 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11795 ;;
11796esac
11797fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011798CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011799if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011801$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011802else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011804$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011805fi
11806
Theodore Ts'oe1052142006-10-21 21:46:47 -040011807
Theodore Ts'o32237012005-01-17 19:13:39 -050011808for ac_prog in gawk mawk nawk awk
11809do
11810 # Extract the first word of "$ac_prog", so it can be a program name with args.
11811set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011813$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011814if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011815 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011816else
Theodore Ts'o32237012005-01-17 19:13:39 -050011817 if test -n "$AWK"; then
11818 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11819else
11820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011821for as_dir in $PATH
11822do
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011825 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011827 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011829 break 2
11830 fi
11831done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011832 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011833IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011834
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011835fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011836fi
11837AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011838if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011840$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011841else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011843$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011844fi
11845
Theodore Ts'oe1052142006-10-21 21:46:47 -040011846
Theodore Ts'o32237012005-01-17 19:13:39 -050011847 test -n "$AWK" && break
11848done
11849
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011851$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011852if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011853 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011854else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011855 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11856 then ac_cv_path_EGREP="$GREP -E"
11857 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011858 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011859 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011860 # Loop through the user's path and test for each of PROGNAME-LIST
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011862for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011866 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011869 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011870# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011871 # Check for GNU $ac_path_EGREP
11872case `"$ac_path_EGREP" --version 2>&1` in
11873*GNU*)
11874 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11875*)
11876 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011877 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011878 while :
11879 do
11880 cat "conftest.in" "conftest.in" >"conftest.tmp"
11881 mv "conftest.tmp" "conftest.in"
11882 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011883 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011884 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011886 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011887 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11888 # Best one so far, save it but keep looking for a better one
11889 ac_cv_path_EGREP="$ac_path_EGREP"
11890 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011891 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011892 # 10*(2^10) chars as input seems more than enough
11893 test $ac_count -gt 10 && break
11894 done
11895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11896esac
11897
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011898 $ac_path_EGREP_found && break 3
11899 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011900 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011901 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011902IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011903 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011904 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 +010011905 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011906else
11907 ac_cv_path_EGREP=$EGREP
11908fi
11909
Theodore Ts'oe1052142006-10-21 21:46:47 -040011910 fi
11911fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011913$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011914 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011915
11916
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011917# Extract the first word of "sed", so it can be a program name with args.
11918set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011920$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011921if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011922 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011923else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924 case $SED in
11925 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011926 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11927 ;;
11928 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930for as_dir in $PATH
11931do
11932 IFS=$as_save_IFS
11933 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011934 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011938 break 2
11939 fi
11940done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011941 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011942IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011943
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011944 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11945 ;;
11946esac
11947fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011948SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011949if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011951$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011952else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011954$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011955fi
11956
Theodore Ts'oe1052142006-10-21 21:46:47 -040011957
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011958# Extract the first word of "perl", so it can be a program name with args.
11959set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011961$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011962if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011963 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011964else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011965 case $PERL in
11966 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011967 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11968 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011969 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971for as_dir in $PATH
11972do
11973 IFS=$as_save_IFS
11974 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011975 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011977 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011979 break 2
11980 fi
11981done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011982 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011983IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011984
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011985 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11986 ;;
11987esac
11988fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011989PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011990if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011992$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011993else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011995$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011996fi
11997
Theodore Ts'oe1052142006-10-21 21:46:47 -040011998
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011999# Extract the first word of "ldconfig", so it can be a program name with args.
12000set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012002$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012003if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012004 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012005else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012006 case $LDCONFIG in
12007 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012008 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12009 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012010 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012for as_dir in $PATH
12013do
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012016 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012018 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020 break 2
12021 fi
12022done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012023 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012024IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012025
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012026 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12027 ;;
12028esac
12029fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012030LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012031if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012033$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012034else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012036$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012037fi
12038
Theodore Ts'oe1052142006-10-21 21:46:47 -040012039
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012040if test -n "$ac_tool_prefix"; then
12041 # 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 +000012042set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012044$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012045if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012046 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012047else
12048 if test -n "$AR"; then
12049 ac_cv_prog_AR="$AR" # Let the user override the test.
12050else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052for as_dir in $PATH
12053do
12054 IFS=$as_save_IFS
12055 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012056 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012058 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012060 break 2
12061 fi
12062done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012063 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012064IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012065
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012066fi
12067fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012068AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012069if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012071$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012072else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012074$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012075fi
12076
Theodore Ts'oe1052142006-10-21 21:46:47 -040012077
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012078fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012079if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012080 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012081 # Extract the first word of "ar", so it can be a program name with args.
12082set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012084$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012085if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012086 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012087else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012088 if test -n "$ac_ct_AR"; then
12089 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012090else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092for as_dir in $PATH
12093do
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012096 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012098 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012100 break 2
12101 fi
12102done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012103 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012104IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012106fi
12107fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012108ac_ct_AR=$ac_cv_prog_ac_ct_AR
12109if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012111$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012112else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012114$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012115fi
12116
Theodore Ts'oe1052142006-10-21 21:46:47 -040012117 if test "x$ac_ct_AR" = x; then
12118 AR="ar"
12119 else
12120 case $cross_compiling:$ac_tool_warned in
12121yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012122{ $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 +010012123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012124ac_tool_warned=yes ;;
12125esac
12126 AR=$ac_ct_AR
12127 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012128else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012129 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012130fi
12131
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012132if test -n "$ac_tool_prefix"; then
12133 # 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 +000012134set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012136$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012137if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012138 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012139else
12140 if test -n "$RANLIB"; then
12141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12142else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144for as_dir in $PATH
12145do
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012148 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012152 break 2
12153 fi
12154done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012155 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012156IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012157
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012158fi
12159fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012161if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012163$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012164else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012166$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012167fi
12168
Theodore Ts'oe1052142006-10-21 21:46:47 -040012169
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012170fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012171if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012172 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012173 # Extract the first word of "ranlib", so it can be a program name with args.
12174set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012176$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012177if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012178 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012179else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012180 if test -n "$ac_ct_RANLIB"; then
12181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012182else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184for as_dir in $PATH
12185do
12186 IFS=$as_save_IFS
12187 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012188 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012190 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012192 break 2
12193 fi
12194done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012195 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012196IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012198fi
12199fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012200ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12201if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012203$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012204else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012206$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012207fi
12208
Theodore Ts'oe1052142006-10-21 21:46:47 -040012209 if test "x$ac_ct_RANLIB" = x; then
12210 RANLIB=":"
12211 else
12212 case $cross_compiling:$ac_tool_warned in
12213yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012214{ $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 +010012215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012216ac_tool_warned=yes ;;
12217esac
12218 RANLIB=$ac_ct_RANLIB
12219 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012220else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012221 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012222fi
12223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012224if test -n "$ac_tool_prefix"; then
12225 # 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 +000012226set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012228$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012229if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012230 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012231else
12232 if test -n "$STRIP"; then
12233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12234else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012240 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012242 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012244 break 2
12245 fi
12246done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012247 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012248IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012249
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012250fi
12251fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012252STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012253if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012255$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012256else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012258$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012259fi
12260
Theodore Ts'oe1052142006-10-21 21:46:47 -040012261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012262fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012263if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012264 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012265 # Extract the first word of "strip", so it can be a program name with args.
12266set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012268$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012269if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012270 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012271else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012272 if test -n "$ac_ct_STRIP"; then
12273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012274else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276for as_dir in $PATH
12277do
12278 IFS=$as_save_IFS
12279 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012280 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012282 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012284 break 2
12285 fi
12286done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012287 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012288IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012289
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012290fi
12291fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012292ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12293if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012295$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012296else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012298$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012299fi
12300
Theodore Ts'oe1052142006-10-21 21:46:47 -040012301 if test "x$ac_ct_STRIP" = x; then
12302 STRIP=":"
12303 else
12304 case $cross_compiling:$ac_tool_warned in
12305yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012306{ $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 +010012307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012308ac_tool_warned=yes ;;
12309esac
12310 STRIP=$ac_ct_STRIP
12311 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012312else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012313 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012314fi
12315
Manish Katiyar7321d942008-04-14 17:20:03 +053012316# Extract the first word of "makeinfo", so it can be a program name with args.
12317set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012319$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012320if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012321 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012322else
12323 if test -n "$MAKEINFO"; then
12324 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12325else
12326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327for as_dir in $PATH
12328do
12329 IFS=$as_save_IFS
12330 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012331 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012333 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012335 break 2
12336 fi
12337done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012338 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012339IFS=$as_save_IFS
12340
12341fi
12342fi
12343MAKEINFO=$ac_cv_prog_MAKEINFO
12344if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012346$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012347else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012349$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012350fi
12351
12352
12353if test "_$MAKEINFO" = "_"; then
12354 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12355else
12356 case "$MAKEINFO" in
12357 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012359*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012360$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012361*** Makeinfo is missing. Info documentation will not be built." >&2;}
12362 ;;
12363 *)
12364 ;;
12365 esac
12366fi
12367
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012368
Theodore Ts'o6c133521999-07-03 20:37:03 +000012369# See if we need a separate native compiler.
12370if test $cross_compiling = no; then
12371 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012372
Theodore Ts'o6c133521999-07-03 20:37:03 +000012373else
12374 for ac_prog in gcc cc
12375do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012376 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012377set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012379$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012380if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012381 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012382else
12383 if test -n "$BUILD_CC"; then
12384 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12385else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012388do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012389 IFS=$as_save_IFS
12390 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012391 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012393 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012395 break 2
12396 fi
12397done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012398 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012399IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012400
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012401fi
12402fi
12403BUILD_CC=$ac_cv_prog_BUILD_CC
12404if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012406$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012407else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012409$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012410fi
12411
Theodore Ts'oe1052142006-10-21 21:46:47 -040012412
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012413 test -n "$BUILD_CC" && break
12414done
12415
12416fi
Ross Burtonc84da2e2014-07-10 17:44:38 +010012417for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/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 -050012418do :
12419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12420ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012421if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012422 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012423#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012424_ACEOF
12425
12426fi
12427
12428done
12429
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012430for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012431do :
12432 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012433#if HAVE_SYS_TYPES_H
12434#include <sys/types.h>
12435#endif
12436#if HAVE_SYS_SOCKET
12437#include <sys/socket.h>
12438#endif
12439
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012440"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012441if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012442 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012443#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012444_ACEOF
12445
12446fi
12447
12448done
12449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012450for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012451do :
12452 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012453if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012454 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012455#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012456_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012457
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012458ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012459if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012460
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012461$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012462
12463fi
12464
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012465fi
12466done
12467
12468
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012469ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12470"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012471if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012472
12473$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012474
12475fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012476
Theodore Ts'o28739272014-01-03 00:26:43 -050012477ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12478if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12479
12480cat >>confdefs.h <<_ACEOF
12481#define HAVE_STRUCT_STAT_ST_ATIM 1
12482_ACEOF
12483
12484
12485fi
12486
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012487ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12488"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012489if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012490
12491$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012492
Theodore Ts'offf45482003-04-13 00:44:19 -040012493fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012494
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012495ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12496"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012497if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012498
12499$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012500
12501fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012502
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012503ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012504 #define _LARGEFILE64_SOURCE
12505 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012506"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012507if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012508
12509$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012510
12511fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012512
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012513# The cast to long int works around a bug in the HP C Compiler
12514# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12515# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12516# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012518$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012519if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012520 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012521else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012522 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 -050012523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012524else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012525 if test "$ac_cv_type_short" = yes; then
12526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012528as_fn_error 77 "cannot compute sizeof (short)
12529See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012530 else
12531 ac_cv_sizeof_short=0
12532 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012533fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012535fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012537$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012538
12539
12540
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012541cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012542#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012543_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012544
12545
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012546# The cast to long int works around a bug in the HP C Compiler
12547# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12548# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12549# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012551$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012552if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012553 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012554else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012555 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 -050012556
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012557else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012558 if test "$ac_cv_type_int" = yes; then
12559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012561as_fn_error 77 "cannot compute sizeof (int)
12562See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012563 else
12564 ac_cv_sizeof_int=0
12565 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012566fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012567
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012568fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012570$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012571
12572
12573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012574cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012575#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012576_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012577
12578
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012579# The cast to long int works around a bug in the HP C Compiler
12580# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12581# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12582# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012584$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012585if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012586 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012587else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012588 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 -050012589
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012590else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012591 if test "$ac_cv_type_long" = yes; then
12592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012594as_fn_error 77 "cannot compute sizeof (long)
12595See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012596 else
12597 ac_cv_sizeof_long=0
12598 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012599fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012600
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012601fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012603$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012604
12605
12606
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012607cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012608#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012609_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012610
12611
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012612# The cast to long int works around a bug in the HP C Compiler
12613# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12614# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12615# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012617$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012618if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012619 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012620else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012621 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 -050012622
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012623else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012624 if test "$ac_cv_type_long_long" = yes; then
12625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012627as_fn_error 77 "cannot compute sizeof (long long)
12628See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012629 else
12630 ac_cv_sizeof_long_long=0
12631 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012632fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012634fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012636$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012637
12638
12639
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012640cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012641#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012642_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012643
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012644
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012645# The cast to long int works around a bug in the HP C Compiler
12646# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12647# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12648# This bug is HP SR number 8606223364.
12649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12650$as_echo_n "checking size of off_t... " >&6; }
12651if ${ac_cv_sizeof_off_t+:} false; then :
12652 $as_echo_n "(cached) " >&6
12653else
12654 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12655
12656else
12657 if test "$ac_cv_type_off_t" = yes; then
12658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12660as_fn_error 77 "cannot compute sizeof (off_t)
12661See \`config.log' for more details" "$LINENO" 5; }
12662 else
12663 ac_cv_sizeof_off_t=0
12664 fi
12665fi
12666
12667fi
12668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12669$as_echo "$ac_cv_sizeof_off_t" >&6; }
12670
12671
12672
12673cat >>confdefs.h <<_ACEOF
12674#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12675_ACEOF
12676
12677
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012678SIZEOF_SHORT=$ac_cv_sizeof_short
12679SIZEOF_INT=$ac_cv_sizeof_int
12680SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012681SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012682SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12683
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012684
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012685
12686
12687
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012689$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012690if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012691 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012692else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012693 ac_cv_c_bigendian=unknown
12694 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012696/* end confdefs.h. */
12697#ifndef __APPLE_CC__
12698 not a universal capable compiler
12699 #endif
12700 typedef int dummy;
12701
12702_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012703if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012704
12705 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012706 # there are at least two -arch flags with different values.
12707 ac_arch=
12708 ac_prev=
12709 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12710 if test -n "$ac_prev"; then
12711 case $ac_word in
12712 i?86 | x86_64 | ppc | ppc64)
12713 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12714 ac_arch=$ac_word
12715 else
12716 ac_cv_c_bigendian=universal
12717 break
12718 fi
12719 ;;
12720 esac
12721 ac_prev=
12722 elif test "x$ac_word" = "x-arch"; then
12723 ac_prev=arch
12724 fi
12725 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012726fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 if test $ac_cv_c_bigendian = unknown; then
12729 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012731/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012732#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012733 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012734
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012735int
12736main ()
12737{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012738#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12739 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12740 && LITTLE_ENDIAN)
12741 bogus endian macros
12742 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012743
12744 ;
12745 return 0;
12746}
12747_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012748if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012749 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012751/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012752#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012753 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012754
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012755int
12756main ()
12757{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012758#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012759 not big endian
12760 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012761
12762 ;
12763 return 0;
12764}
12765_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012766if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012767 ac_cv_c_bigendian=yes
12768else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012769 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012770fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012772fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774 fi
12775 if test $ac_cv_c_bigendian = unknown; then
12776 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012778/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012779#include <limits.h>
12780
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012781int
12782main ()
12783{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012784#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12785 bogus endian macros
12786 #endif
12787
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012788 ;
12789 return 0;
12790}
12791_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012792if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012793 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012795/* end confdefs.h. */
12796#include <limits.h>
12797
12798int
12799main ()
12800{
12801#ifndef _BIG_ENDIAN
12802 not big endian
12803 #endif
12804
12805 ;
12806 return 0;
12807}
12808_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012809if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012810 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012811else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012812 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012813fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012815fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817 fi
12818 if test $ac_cv_c_bigendian = unknown; then
12819 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012820 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012821 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012823/* end confdefs.h. */
12824short int ascii_mm[] =
12825 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12826 short int ascii_ii[] =
12827 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12828 int use_ascii (int i) {
12829 return ascii_mm[i] + ascii_ii[i];
12830 }
12831 short int ebcdic_ii[] =
12832 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12833 short int ebcdic_mm[] =
12834 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12835 int use_ebcdic (int i) {
12836 return ebcdic_mm[i] + ebcdic_ii[i];
12837 }
12838 extern int foo;
12839
12840int
12841main ()
12842{
12843return use_ascii (foo) == use_ebcdic (foo);
12844 ;
12845 return 0;
12846}
12847_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012848if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012849 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12850 ac_cv_c_bigendian=yes
12851 fi
12852 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12853 if test "$ac_cv_c_bigendian" = unknown; then
12854 ac_cv_c_bigendian=no
12855 else
12856 # finding both strings is unlikely to happen, but who knows?
12857 ac_cv_c_bigendian=unknown
12858 fi
12859 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012860fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012862else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012864/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012865$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012866int
12867main ()
12868{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012869
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012870 /* Are we little or big endian? From Harbison&Steele. */
12871 union
12872 {
12873 long int l;
12874 char c[sizeof (long int)];
12875 } u;
12876 u.l = 1;
12877 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012878
12879 ;
12880 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012881}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012882_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012883if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012884 ac_cv_c_bigendian=no
12885else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012886 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012887fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12889 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012890fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012891
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012892 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012893fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012895$as_echo "$ac_cv_c_bigendian" >&6; }
12896 case $ac_cv_c_bigendian in #(
12897 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012898 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012899;; #(
12900 no)
12901 ;; #(
12902 universal)
12903
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012904$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012905
12906 ;; #(
12907 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012908 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012909 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012910 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012911
Chen Qi91f04682014-05-05 21:08:42 -040012912if test $cross_compiling = no; then
12913 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12914else
12915 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12916fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012917ASM_TYPES_HEADER=./asm_types.h
12918
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012919echo "/* These defines are needed for the public ext2fs.h header file */" \
12920 > public_config.h
12921if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12922 uniq tmp_config.$$ >> public_config.h
12923else
12924 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12925fi
12926if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12927 uniq tmp_config.$$ >> public_config.h
12928else
12929 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12930fi
12931rm -f tmp_config.$$
12932PUBLIC_CONFIG_HEADER=./public_config.h
12933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012934for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012935do :
12936 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012937if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012938 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012939#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012940_ACEOF
12941
12942fi
12943
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012944done
12945
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012946ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012947if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012948
12949cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012950#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012951_ACEOF
12952
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012953
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012954fi
12955
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012956{ $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 +010012957$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012958if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012959 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012960else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012962/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012963#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012964int
12965main ()
12966{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012967struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012968 ;
12969 return 0;
12970}
12971_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012972if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012973 e2fsprogs_cv_struct_st_flags=yes
12974else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012975 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012976fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12978fi
12979
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012981$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012982if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012984$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012985 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012986 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012987else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012989/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012990#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012991int
12992main ()
12993{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012994struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012995 ;
12996 return 0;
12997}
12998_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012999if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013000 e2fsprogs_cv_struct_st_flags_immut=yes
13001else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013002 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013003fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005fi
13006
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013008$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013009 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013010
13011$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013012
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013013 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013014fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013015ac_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 -050013016 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013017"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013018if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013019
13020cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013021#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013022_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013023
13024fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013025
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013026if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013028$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013029if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013030 $as_echo_n "(cached) " >&6
13031else
13032 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013034/* end confdefs.h. */
13035
13036/* Override any GCC internal prototype to avoid an error.
13037 Use char because int might match the return type of a GCC
13038 builtin and then its argument prototype would still apply. */
13039#ifdef __cplusplus
13040extern "C"
13041#endif
13042char blkid_probe_all ();
13043int
13044main ()
13045{
13046return blkid_probe_all ();
13047 ;
13048 return 0;
13049}
13050_ACEOF
13051for ac_lib in '' blkid; do
13052 if test -z "$ac_lib"; then
13053 ac_res="none required"
13054 else
13055 ac_res=-l$ac_lib
13056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13057 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013058 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013059 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013060fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013061rm -f core conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013063 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013064 break
13065fi
13066done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013067if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013068
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013069else
13070 ac_cv_search_blkid_probe_all=no
13071fi
13072rm conftest.$ac_ext
13073LIBS=$ac_func_search_save_LIBS
13074fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013076$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13077ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013078if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13080
13081fi
13082
13083fi
Theodore Ts'o489ff4a2014-08-08 17:02:34 -040013084for 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 llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013085do :
13086 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13087ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013088if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013089 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013090#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013091_ACEOF
13092
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013093fi
13094done
13095
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013096SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013098$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013099if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013100 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013101else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013102 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013103LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013105/* end confdefs.h. */
13106
Theodore Ts'oe1052142006-10-21 21:46:47 -040013107/* Override any GCC internal prototype to avoid an error.
13108 Use char because int might match the return type of a GCC
13109 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013110#ifdef __cplusplus
13111extern "C"
13112#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013113char socket ();
13114int
13115main ()
13116{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013117return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013118 ;
13119 return 0;
13120}
13121_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013122if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013123 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013124else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013125 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013126fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013127rm -f core conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013129LIBS=$ac_check_lib_save_LIBS
13130fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013132$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013133if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013134 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013135fi
13136
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013137
Darrick J. Wongb291c112014-09-13 15:12:46 -070013138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13139$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13140if ${ac_cv_lib_magic_magic_file+:} false; then :
13141 $as_echo_n "(cached) " >&6
13142else
13143 ac_check_lib_save_LIBS=$LIBS
13144LIBS="-lmagic $LIBS"
13145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146/* end confdefs.h. */
13147
13148/* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13151#ifdef __cplusplus
13152extern "C"
13153#endif
13154char magic_file ();
13155int
13156main ()
13157{
13158return magic_file ();
13159 ;
13160 return 0;
13161}
13162_ACEOF
13163if ac_fn_c_try_link "$LINENO"; then :
13164 ac_cv_lib_magic_magic_file=yes
13165else
13166 ac_cv_lib_magic_magic_file=no
13167fi
13168rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170LIBS=$ac_check_lib_save_LIBS
13171fi
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13173$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13174if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13175 MAGIC_LIB=-lmagic
13176for ac_header in magic.h
13177do :
13178 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13179if test "x$ac_cv_header_magic_h" = xyes; then :
13180 cat >>confdefs.h <<_ACEOF
13181#define HAVE_MAGIC_H 1
13182_ACEOF
13183
13184fi
13185
13186done
13187
13188fi
13189
13190
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013192$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013193if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013194 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013195else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013197/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013198#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013199
13200_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013202 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013203 ac_cv_have_optreset=yes
13204else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013205 ac_cv_have_optreset=no
13206fi
13207rm -f conftest*
13208
13209fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013211$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013212if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013213
13214$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013215
13216fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013217
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013218SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013219ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013220if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013221
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013222else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013224$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013225if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013226 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013227else
13228 ac_check_lib_save_LIBS=$LIBS
13229LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013231/* end confdefs.h. */
13232
13233/* Override any GCC internal prototype to avoid an error.
13234 Use char because int might match the return type of a GCC
13235 builtin and then its argument prototype would still apply. */
13236#ifdef __cplusplus
13237extern "C"
13238#endif
13239char sem_init ();
13240int
13241main ()
13242{
13243return sem_init ();
13244 ;
13245 return 0;
13246}
13247_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013248if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013249 ac_cv_lib_pthread_sem_init=yes
13250else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013251 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013252fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013253rm -f core conftest.err conftest.$ac_objext \
13254 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013255LIBS=$ac_check_lib_save_LIBS
13256fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013258$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013259if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013260 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013261
13262 SEM_INIT_LIB=-lpthread
13263else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013265$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013266if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013267 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013268else
13269 ac_check_lib_save_LIBS=$LIBS
13270LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013272/* end confdefs.h. */
13273
13274/* Override any GCC internal prototype to avoid an error.
13275 Use char because int might match the return type of a GCC
13276 builtin and then its argument prototype would still apply. */
13277#ifdef __cplusplus
13278extern "C"
13279#endif
13280char sem_init ();
13281int
13282main ()
13283{
13284return sem_init ();
13285 ;
13286 return 0;
13287}
13288_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013289if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013290 ac_cv_lib_rt_sem_init=yes
13291else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013292 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013293fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013294rm -f core conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013296LIBS=$ac_check_lib_save_LIBS
13297fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013299$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013300if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013301 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013302
13303 SEM_INIT_LIB=-lrt
13304else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013306$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013307if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013308 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013309else
13310 ac_check_lib_save_LIBS=$LIBS
13311LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013313/* end confdefs.h. */
13314
13315/* Override any GCC internal prototype to avoid an error.
13316 Use char because int might match the return type of a GCC
13317 builtin and then its argument prototype would still apply. */
13318#ifdef __cplusplus
13319extern "C"
13320#endif
13321char sem_init ();
13322int
13323main ()
13324{
13325return sem_init ();
13326 ;
13327 return 0;
13328}
13329_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013330if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013331 ac_cv_lib_posix4_sem_init=yes
13332else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013333 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013334fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013335rm -f core conftest.err conftest.$ac_objext \
13336 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013337LIBS=$ac_check_lib_save_LIBS
13338fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013340$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013341if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013342 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013343
13344 SEM_INIT_LIB=-lposix4
13345fi
13346
13347fi
13348
13349fi
13350
13351fi
13352
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013354$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013355if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013356 UNI_DIFF_OPTS=-u
13357else
13358 UNI_DIFF_OPTS=-c
13359fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013361$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013362
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013363case "$host_os" in
13364linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013365
13366$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013367
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013368 ;;
13369esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013370LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013371CYGWIN_CMT="#"
13372UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013373case "$host_os" in
13374linux*)
13375 LINUX_CMT=
13376 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013377cygwin)
13378 CYGWIN_CMT=
13379 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013380 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013381esac
13382
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013383
13384
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013385case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013386linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013387 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13388 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013389 { $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 +010013390$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013391 fi
13392 ;;
13393esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013394case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013395linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013396 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013397 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013398 { $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 +010013399$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013400 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013402$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013403 mandir=/usr/share/man
13404 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013405 fi
13406;;
13407esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013408if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013409 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013410 root_prefix="$ac_default_prefix"
13411 else
13412 root_prefix="$prefix"
13413 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013414 root_bindir=$bindir
13415 root_sbindir=$sbindir
13416 root_libdir=$libdir
13417 root_sysconfdir=$sysconfdir
13418else
13419 root_bindir='${root_prefix}/bin'
13420 root_sbindir='${root_prefix}/sbin'
13421 root_libdir='${root_prefix}/lib'
13422 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013423fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013424if test "$bindir" != '${exec_prefix}/bin'; then
13425 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013427$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013428fi
13429if test "$sbindir" != '${exec_prefix}/sbin'; then
13430 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013432$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013433fi
13434if test "$libdir" != '${exec_prefix}/lib'; then
13435 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013437$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013438fi
13439if test "$sysconfdir" != '${prefix}/etc'; then
13440 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013442$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013443fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013444
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013445
13446
13447
13448
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013449
13450# Check whether --with-multiarch was given.
13451if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013452 withval=$with_multiarch; if test "$withval" = "lib64"; then
13453 libdir=/usr/lib64
13454 root_libdir=/lib64
13455else
13456 libdir=$libdir/$withval
13457 root_libdir=$root_libdir/$withval
13458fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013459
13460fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13462$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013463if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013464 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013465else
13466 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013468/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013469#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013470int
13471main ()
13472{
Theodore Ts'oae851481997-04-29 18:13:24 +000013473fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013474 ;
13475 return 0;
13476}
13477_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013478if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013479 ac_cv_e2fsprogs_use_static=yes
13480else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013481 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013482fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013483rm -f core conftest.err conftest.$ac_objext \
13484 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013485LDFLAGS=$SAVE_LDFLAGS
13486fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013487
Theodore Ts'odefde781999-01-04 07:39:19 +000013488case "$host_os" in
13489solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013490 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013491;;
13492esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013494$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000013495LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000013496if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013497 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000013498fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013499
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013500case "$host_os" in
13501darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013503$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013504
13505$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013506
13507 ;;
13508esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013509SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13510ET_DIR=`cd ${srcdir}/lib/et; pwd`
13511
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013512
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013513if test "$cross_compiling" = yes ; then
13514 DO_TEST_SUITE=
13515else
13516 DO_TEST_SUITE=check
13517fi
13518
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013519INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13520if test -n "$CPPFLAGS" ; then
13521 INCLUDES="$INCLUDES $CPPFLAGS"
13522fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013523if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013524 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013525fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013526if test -n "$WITH_DIET_LIBC" ; then
13527 INCLUDES="$INCLUDES -D_REENTRANT"
13528fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013529
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013530
13531 MKINSTALLDIRS=
13532 if test -n "$ac_aux_dir"; then
13533 case "$ac_aux_dir" in
13534 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13535 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13536 esac
13537 fi
13538 if test -z "$MKINSTALLDIRS"; then
13539 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13540 fi
13541
13542
Theodore Ts'odd947da2005-11-09 18:37:07 -040013543if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013544 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013545 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013546fi
13547
13548
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013549test -d lib || mkdir lib
13550test -d include || mkdir include
13551test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013552test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013553for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013554 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013555 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13556 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013557 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070013558 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050013559 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13560 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050013561 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013562 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013563 resize/Makefile doc/Makefile intl/Makefile \
13564 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013565 if test -d `dirname ${srcdir}/$i` ; then
13566 outlist="$outlist $i"
13567 fi
13568done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013569ac_config_files="$ac_config_files $outlist"
13570
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013571cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013572# This file is a shell script that caches the results of configure
13573# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013574# scripts and configure runs, see configure's option --config-cache.
13575# It is not useful on other systems. If it contains results you don't
13576# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013577#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013578# config.status only pays attention to the cache file if you give it
13579# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013580#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013581# `ac_cv_env_foo' variables (set or unset) will be overridden when
13582# loading this file, other *unset* `ac_cv_foo' will be assigned the
13583# following values.
13584
13585_ACEOF
13586
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013587# The following way of writing the cache mishandles newlines in values,
13588# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013589# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013590# Ultrix sh set writes to stderr and can't be redirected directly,
13591# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013592(
13593 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13594 eval ac_val=\$$ac_var
13595 case $ac_val in #(
13596 *${as_nl}*)
13597 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013598 *_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 +010013599$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013600 esac
13601 case $ac_var in #(
13602 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013603 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013604 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013605 esac ;;
13606 esac
13607 done
13608
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013609 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013610 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13611 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013612 # `set' does not quote correctly, so add quotes: double-quote
13613 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013614 sed -n \
13615 "s/'/'\\\\''/g;
13616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013617 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013618 *)
13619 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013621 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013622 esac |
13623 sort
13624) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013625 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013626 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013627 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013628 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13630 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013631 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13632 :end' >>confcache
13633if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13634 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013635 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013636 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013637$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013638 if test ! -f "$cache_file" || test -h "$cache_file"; then
13639 cat confcache >"$cache_file"
13640 else
13641 case $cache_file in #(
13642 */* | ?:*)
13643 mv -f confcache "$cache_file"$$ &&
13644 mv -f "$cache_file"$$ "$cache_file" ;; #(
13645 *)
13646 mv -f confcache "$cache_file" ;;
13647 esac
13648 fi
13649 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013650 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013651 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013652$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013653 fi
13654fi
13655rm -f confcache
13656
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013657test "x$prefix" = xNONE && prefix=$ac_default_prefix
13658# Let make expand exec_prefix.
13659test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13660
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013661DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013662
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013663ac_libobjs=
13664ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013665U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013666for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13667 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013669 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13671 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013672 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13673 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013674done
13675LIBOBJS=$ac_libobjs
13676
13677LTLIBOBJS=$ac_ltlibobjs
13678
13679
13680
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013681
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013682: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013683ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013684ac_clean_files_save=$ac_clean_files
13685ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013686{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013687$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013688as_write_fail=0
13689cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013690#! $SHELL
13691# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013692# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013693# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013694# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013695
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013696debug=false
13697ac_cs_recheck=false
13698ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013699
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013700SHELL=\${CONFIG_SHELL-$SHELL}
13701export SHELL
13702_ASEOF
13703cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13704## -------------------- ##
13705## M4sh Initialization. ##
13706## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013707
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013708# Be more Bourne compatible
13709DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013710if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013711 emulate sh
13712 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013713 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013714 # is contrary to our usage. Disable this feature.
13715 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013716 setopt NO_GLOB_SUBST
13717else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013718 case `(set -o) 2>/dev/null` in #(
13719 *posix*) :
13720 set -o posix ;; #(
13721 *) :
13722 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013723esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013724fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013725
13726
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013727as_nl='
13728'
13729export as_nl
13730# Printing a long string crashes Solaris 7 /usr/bin/printf.
13731as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13732as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13733as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013734# Prefer a ksh shell builtin over an external printf program on Solaris,
13735# but without wasting forks for bash or zsh.
13736if test -z "$BASH_VERSION$ZSH_VERSION" \
13737 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13738 as_echo='print -r --'
13739 as_echo_n='print -rn --'
13740elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013741 as_echo='printf %s\n'
13742 as_echo_n='printf %s'
13743else
13744 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13745 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13746 as_echo_n='/usr/ucb/echo -n'
13747 else
13748 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13749 as_echo_n_body='eval
13750 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013751 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013752 *"$as_nl"*)
13753 expr "X$arg" : "X\\(.*\\)$as_nl";
13754 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13755 esac;
13756 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13757 '
13758 export as_echo_n_body
13759 as_echo_n='sh -c $as_echo_n_body as_echo'
13760 fi
13761 export as_echo_body
13762 as_echo='sh -c $as_echo_body as_echo'
13763fi
13764
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013765# The user is always right.
13766if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013767 PATH_SEPARATOR=:
13768 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13769 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13770 PATH_SEPARATOR=';'
13771 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013772fi
13773
Theodore Ts'oe1052142006-10-21 21:46:47 -040013774
13775# IFS
13776# We need space, tab and new line, in precisely that order. Quoting is
13777# there to prevent editors from complaining about space-tab.
13778# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13779# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013780IFS=" "" $as_nl"
13781
13782# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013783as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013784case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013785 *[\\/]* ) as_myself=$0 ;;
13786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013787for as_dir in $PATH
13788do
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13792 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013793IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013794
Theodore Ts'oe1052142006-10-21 21:46:47 -040013795 ;;
13796esac
13797# We did not find ourselves, most probably we were run as `sh COMMAND'
13798# in which case we are not to be found in the path.
13799if test "x$as_myself" = x; then
13800 as_myself=$0
13801fi
13802if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013803 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013804 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040013805fi
13806
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013807# Unset variables that we do not need and which cause bugs (e.g. in
13808# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13809# suppresses any "Segmentation fault" message there. '((' could
13810# trigger a bug in pdksh 5.2.14.
13811for as_var in BASH_ENV ENV MAIL MAILPATH
13812do eval test x\${$as_var+set} = xset \
13813 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040013814done
13815PS1='$ '
13816PS2='> '
13817PS4='+ '
13818
13819# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013820LC_ALL=C
13821export LC_ALL
13822LANGUAGE=C
13823export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040013824
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013825# CDPATH.
13826(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13827
13828
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013829# as_fn_error STATUS ERROR [LINENO LOG_FD]
13830# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013831# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13832# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013833# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013834as_fn_error ()
13835{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013836 as_status=$1; test $as_status -eq 0 && as_status=1
13837 if test "$4"; then
13838 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13839 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013840 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013841 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013842 as_fn_exit $as_status
13843} # as_fn_error
13844
13845
13846# as_fn_set_status STATUS
13847# -----------------------
13848# Set $? to STATUS, without forking.
13849as_fn_set_status ()
13850{
13851 return $1
13852} # as_fn_set_status
13853
13854# as_fn_exit STATUS
13855# -----------------
13856# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13857as_fn_exit ()
13858{
13859 set +e
13860 as_fn_set_status $1
13861 exit $1
13862} # as_fn_exit
13863
13864# as_fn_unset VAR
13865# ---------------
13866# Portably unset VAR.
13867as_fn_unset ()
13868{
13869 { eval $1=; unset $1;}
13870}
13871as_unset=as_fn_unset
13872# as_fn_append VAR VALUE
13873# ----------------------
13874# Append the text in VALUE to the end of the definition contained in VAR. Take
13875# advantage of any shell optimizations that allow amortized linear growth over
13876# repeated appends, instead of the typical quadratic growth present in naive
13877# implementations.
13878if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13879 eval 'as_fn_append ()
13880 {
13881 eval $1+=\$2
13882 }'
13883else
13884 as_fn_append ()
13885 {
13886 eval $1=\$$1\$2
13887 }
13888fi # as_fn_append
13889
13890# as_fn_arith ARG...
13891# ------------------
13892# Perform arithmetic evaluation on the ARGs, and store the result in the
13893# global $as_val. Take advantage of shells that can avoid forks. The arguments
13894# must be portable across $(()) and expr.
13895if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13896 eval 'as_fn_arith ()
13897 {
13898 as_val=$(( $* ))
13899 }'
13900else
13901 as_fn_arith ()
13902 {
13903 as_val=`expr "$@" || test $? -eq 1`
13904 }
13905fi # as_fn_arith
13906
13907
Theodore Ts'oe1052142006-10-21 21:46:47 -040013908if expr a : '\(a\)' >/dev/null 2>&1 &&
13909 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13910 as_expr=expr
13911else
13912 as_expr=false
13913fi
13914
13915if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13916 as_basename=basename
13917else
13918 as_basename=false
13919fi
13920
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013921if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13922 as_dirname=dirname
13923else
13924 as_dirname=false
13925fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013926
Theodore Ts'oe1052142006-10-21 21:46:47 -040013927as_me=`$as_basename -- "$0" ||
13928$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13929 X"$0" : 'X\(//\)$' \| \
13930 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013931$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013932 sed '/^.*\/\([^/][^/]*\)\/*$/{
13933 s//\1/
13934 q
13935 }
13936 /^X\/\(\/\/\)$/{
13937 s//\1/
13938 q
13939 }
13940 /^X\/\(\/\).*/{
13941 s//\1/
13942 q
13943 }
13944 s/.*/./; q'`
13945
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013946# Avoid depending upon Character Ranges.
13947as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13948as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13949as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13950as_cr_digits='0123456789'
13951as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040013952
13953ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013954case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013955-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013956 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040013957 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013958 xy) ECHO_C='\c';;
13959 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13960 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013961 esac;;
13962*)
13963 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013964esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013965
13966rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040013967if test -d conf$$.dir; then
13968 rm -f conf$$.dir/conf$$.file
13969else
13970 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013971 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040013972fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013973if (echo >conf$$.file) 2>/dev/null; then
13974 if ln -s conf$$.file conf$$ 2>/dev/null; then
13975 as_ln_s='ln -s'
13976 # ... but there are two gotchas:
13977 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13978 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013979 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013980 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013981 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013982 elif ln conf$$.file conf$$ 2>/dev/null; then
13983 as_ln_s=ln
13984 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013985 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013986 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013987else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013988 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013989fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013990rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13991rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013992
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013993
13994# as_fn_mkdir_p
13995# -------------
13996# Create "$as_dir" as a directory, including parents if necessary.
13997as_fn_mkdir_p ()
13998{
13999
14000 case $as_dir in #(
14001 -*) as_dir=./$as_dir;;
14002 esac
14003 test -d "$as_dir" || eval $as_mkdir_p || {
14004 as_dirs=
14005 while :; do
14006 case $as_dir in #(
14007 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14008 *) as_qdir=$as_dir;;
14009 esac
14010 as_dirs="'$as_qdir' $as_dirs"
14011 as_dir=`$as_dirname -- "$as_dir" ||
14012$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14013 X"$as_dir" : 'X\(//\)[^/]' \| \
14014 X"$as_dir" : 'X\(//\)$' \| \
14015 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14016$as_echo X"$as_dir" |
14017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14018 s//\1/
14019 q
14020 }
14021 /^X\(\/\/\)[^/].*/{
14022 s//\1/
14023 q
14024 }
14025 /^X\(\/\/\)$/{
14026 s//\1/
14027 q
14028 }
14029 /^X\(\/\).*/{
14030 s//\1/
14031 q
14032 }
14033 s/.*/./; q'`
14034 test -d "$as_dir" && break
14035 done
14036 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014037 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014038
14039
14040} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014041if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014042 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014043else
14044 test -d ./-p && rmdir ./-p
14045 as_mkdir_p=false
14046fi
14047
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014048
14049# as_fn_executable_p FILE
14050# -----------------------
14051# Test if FILE is an executable regular file.
14052as_fn_executable_p ()
14053{
14054 test -f "$1" && test -x "$1"
14055} # as_fn_executable_p
14056as_test_x='test -x'
14057as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014058
14059# Sed expression to map a string onto a valid CPP name.
14060as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14061
14062# Sed expression to map a string onto a valid variable name.
14063as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14064
14065
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014066exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014067## ----------------------------------- ##
14068## Main body of $CONFIG_STATUS script. ##
14069## ----------------------------------- ##
14070_ASEOF
14071test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014072
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14074# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014075# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014076# values after options handling.
14077ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014078This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014079generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014080
14081 CONFIG_FILES = $CONFIG_FILES
14082 CONFIG_HEADERS = $CONFIG_HEADERS
14083 CONFIG_LINKS = $CONFIG_LINKS
14084 CONFIG_COMMANDS = $CONFIG_COMMANDS
14085 $ $0 $@
14086
Theodore Ts'oe1052142006-10-21 21:46:47 -040014087on `(hostname || uname -n) 2>/dev/null | sed 1q`
14088"
14089
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014090_ACEOF
14091
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014092case $ac_config_files in *"
14093"*) set x $ac_config_files; shift; ac_config_files=$*;;
14094esac
14095
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014096case $ac_config_headers in *"
14097"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14098esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014099
14100
14101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014102# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014103config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014104config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014105config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014106
Theodore Ts'oe1052142006-10-21 21:46:47 -040014107_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014108
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014110ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014111\`$as_me' instantiates files and other configuration actions
14112from templates according to the current configuration. Unless the files
14113and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014114
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014115Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014116
14117 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014118 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014119 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014120 -q, --quiet, --silent
14121 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014122 -d, --debug don't remove temporary files
14123 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014124 --file=FILE[:TEMPLATE]
14125 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014126 --header=FILE[:TEMPLATE]
14127 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014128
14129Configuration files:
14130$config_files
14131
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014132Configuration headers:
14133$config_headers
14134
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014135Configuration commands:
14136$config_commands
14137
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014138Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014139
Theodore Ts'oe1052142006-10-21 21:46:47 -040014140_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014142ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014143ac_cs_version="\\
14144config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014145configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014146 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014147
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014148Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014149This config.status script is free software; the Free Software Foundation
14150gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014151
14152ac_pwd='$ac_pwd'
14153srcdir='$srcdir'
14154INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014155MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014156AWK='$AWK'
14157test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014158_ACEOF
14159
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14161# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014162ac_need_defaults=:
14163while test $# != 0
14164do
14165 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014166 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014167 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14168 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014169 ac_shift=:
14170 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014171 --*=)
14172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14173 ac_optarg=
14174 ac_shift=:
14175 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014176 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014177 ac_option=$1
14178 ac_optarg=$2
14179 ac_shift=shift
14180 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014181 esac
14182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014183 case $ac_option in
14184 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014185 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14186 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014187 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014188 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014189 --config | --confi | --conf | --con | --co | --c )
14190 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014191 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014192 debug=: ;;
14193 --file | --fil | --fi | --f )
14194 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014195 case $ac_optarg in
14196 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014197 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014198 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014199 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014200 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014201 --header | --heade | --head | --hea )
14202 $ac_shift
14203 case $ac_optarg in
14204 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14205 esac
14206 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14207 ac_need_defaults=false;;
14208 --he | --h)
14209 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014210 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014211Try \`$0 --help' for more information.";;
14212 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014213 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14215 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14216 ac_cs_silent=: ;;
14217
14218 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014219 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014220Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014221
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014222 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014223 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014224
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014225 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014226 shift
14227done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014228
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014229ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014231if $ac_cs_silent; then
14232 exec 6>/dev/null
14233 ac_configure_extra_args="$ac_configure_extra_args --silent"
14234fi
14235
14236_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014238if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014239 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014240 shift
14241 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14242 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014243 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014244 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014245fi
14246
14247_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014249exec 5>>config.log
14250{
14251 echo
14252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14253## Running $as_me. ##
14254_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014255 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014256} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014257
Theodore Ts'oe1052142006-10-21 21:46:47 -040014258_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014260#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014261# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014262#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014263# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014264 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014265 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014266 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014267 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14268 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014269
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014270
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014271_ACEOF
14272
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014274
14275# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014276for ac_config_target in $ac_config_targets
14277do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014278 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014279 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014280 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014281 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14282
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014283 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014284 esac
14285done
14286
Theodore Ts'oe1052142006-10-21 21:46:47 -040014287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014288# If the user did not use the arguments to specify the items to instantiate,
14289# then the envvar interface is used. Set only those that are not.
14290# We use the long form for the default assignment because of an extremely
14291# bizarre bug on SunOS 4.1.3.
14292if $ac_need_defaults; then
14293 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014294 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014295 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14296fi
14297
14298# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014299# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014300# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014301# Hook for its removal unless debugging.
14302# Note that there is a small window in which the directory will not be cleaned:
14303# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014304$debug ||
14305{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014306 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014307 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014308 : "${ac_tmp:=$tmp}"
14309 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014310' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014311 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014312}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014313# Create a (secure) tmp directory for tmp files.
14314
14315{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014316 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014317 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014318} ||
14319{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014320 tmp=./conf$$-$RANDOM
14321 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014322} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14323ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014324
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014325# Set up the scripts for CONFIG_FILES section.
14326# No need to generate them if there are no CONFIG_FILES.
14327# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014328if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014329
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014330if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14331 ac_cs_awk_getline=:
14332 ac_cs_awk_pipe_init=
14333 ac_cs_awk_read_file='
14334 while ((getline aline < (F[key])) > 0)
14335 print(aline)
14336 close(F[key])'
14337 ac_cs_awk_pipe_fini=
14338else
14339 ac_cs_awk_getline=false
14340 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14341 ac_cs_awk_read_file='
14342 print "|#_!!_#|"
14343 print "cat " F[key] " &&"
14344 '$ac_cs_awk_pipe_init
14345 # The final `:' finishes the AND list.
14346 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14347fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014348ac_cr=`echo X | tr X '\015'`
14349# On cygwin, bash can eat \r inside `` if the user requested igncr.
14350# But we know of no other shell where ac_cr would be empty at this
14351# point, so we can use a bashism as a fallback.
14352if test "x$ac_cr" = x; then
14353 eval ac_cr=\$\'\\r\'
14354fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014355ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14356if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014357 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014358else
14359 ac_cs_awk_cr=$ac_cr
14360fi
14361
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014362echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014363_ACEOF
14364
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014365# Create commands to substitute file output variables.
14366{
14367 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014368 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014369 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14370 echo "_ACAWK" &&
14371 echo "_ACEOF"
14372} >conf$$files.sh &&
14373. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014374 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014375rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014376
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014377{
14378 echo "cat >conf$$subs.awk <<_ACEOF" &&
14379 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14380 echo "_ACEOF"
14381} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014382 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14383ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014384ac_delim='%!_!# '
14385for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014386 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014388
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014389 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14390 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014391 break
14392 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014394 else
14395 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014396 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014397done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014398rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014399
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014401cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014402_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014403sed -n '
14404h
14405s/^/S["/; s/!.*/"]=/
14406p
14407g
14408s/^[^!]*!//
14409:repl
14410t repl
14411s/'"$ac_delim"'$//
14412t delim
14413:nl
14414h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014415s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014416t more1
14417s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14418p
14419n
14420b repl
14421:more1
14422s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14423p
14424g
14425s/.\{148\}//
14426t nl
14427:delim
14428h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014429s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014430t more2
14431s/["\\]/\\&/g; s/^/"/; s/$/"/
14432p
14433b
14434:more2
14435s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14436p
14437g
14438s/.\{148\}//
14439t delim
14440' <conf$$subs.awk | sed '
14441/^[^""]/{
14442 N
14443 s/\n//
14444}
14445' >>$CONFIG_STATUS || ac_write_fail=1
14446rm -f conf$$subs.awk
14447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14448_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014449cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014450 for (key in S) S_is_set[key] = 1
14451 FS = ""
14452 \$ac_cs_awk_pipe_init
14453}
14454{
14455 line = $ 0
14456 nfields = split(line, field, "@")
14457 substed = 0
14458 len = length(field[1])
14459 for (i = 2; i < nfields; i++) {
14460 key = field[i]
14461 keylen = length(key)
14462 if (S_is_set[key]) {
14463 value = S[key]
14464 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14465 len += length(value) + length(field[++i])
14466 substed = 1
14467 } else
14468 len += 1 + keylen
14469 }
14470 if (nfields == 3 && !substed) {
14471 key = field[2]
14472 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14473 \$ac_cs_awk_read_file
14474 next
14475 }
14476 }
14477 print line
14478}
14479\$ac_cs_awk_pipe_fini
14480_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014481_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14483if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14484 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14485else
14486 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014487fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14488 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014489_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014490
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014491# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14492# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014493# trailing colons and then remove the whole line if VPATH becomes empty
14494# (actually we leave an empty line to preserve line numbers).
14495if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014496 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14497h
14498s///
14499s/^/:/
14500s/[ ]*$/:/
14501s/:\$(srcdir):/:/g
14502s/:\${srcdir}:/:/g
14503s/:@srcdir@:/:/g
14504s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014505s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014506x
14507s/\(=[ ]*\).*/\1/
14508G
14509s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014510s/^[^=]*=[ ]*$//
14511}'
14512fi
14513
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014515fi # test -n "$CONFIG_FILES"
14516
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014517# Set up the scripts for CONFIG_HEADERS section.
14518# No need to generate them if there are no CONFIG_HEADERS.
14519# This happens for instance with `./config.status Makefile'.
14520if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014521cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014522BEGIN {
14523_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014524
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014525# Transform confdefs.h into an awk script `defines.awk', embedded as
14526# here-document in config.status, that substitutes the proper values into
14527# config.h.in to produce config.h.
14528
14529# Create a delimiter string that does not exist in confdefs.h, to ease
14530# handling of long lines.
14531ac_delim='%!_!# '
14532for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014533 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14534 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014535 break
14536 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014537 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014538 else
14539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14540 fi
14541done
14542
14543# For the awk script, D is an array of macro values keyed by name,
14544# likewise P contains macro parameters if any. Preserve backslash
14545# newline sequences.
14546
14547ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14548sed -n '
14549s/.\{148\}/&'"$ac_delim"'/g
14550t rset
14551:rset
14552s/^[ ]*#[ ]*define[ ][ ]*/ /
14553t def
14554d
14555:def
14556s/\\$//
14557t bsnl
14558s/["\\]/\\&/g
14559s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14560D["\1"]=" \3"/p
14561s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14562d
14563:bsnl
14564s/["\\]/\\&/g
14565s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14566D["\1"]=" \3\\\\\\n"\\/p
14567t cont
14568s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14569t cont
14570d
14571:cont
14572n
14573s/.\{148\}/&'"$ac_delim"'/g
14574t clear
14575:clear
14576s/\\$//
14577t bsnlc
14578s/["\\]/\\&/g; s/^/"/; s/$/"/p
14579d
14580:bsnlc
14581s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14582b cont
14583' <confdefs.h | sed '
14584s/'"$ac_delim"'/"\\\
14585"/g' >>$CONFIG_STATUS || ac_write_fail=1
14586
14587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14588 for (key in D) D_is_set[key] = 1
14589 FS = ""
14590}
14591/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14592 line = \$ 0
14593 split(line, arg, " ")
14594 if (arg[1] == "#") {
14595 defundef = arg[2]
14596 mac1 = arg[3]
14597 } else {
14598 defundef = substr(arg[1], 2)
14599 mac1 = arg[2]
14600 }
14601 split(mac1, mac2, "(") #)
14602 macro = mac2[1]
14603 prefix = substr(line, 1, index(line, defundef) - 1)
14604 if (D_is_set[macro]) {
14605 # Preserve the white space surrounding the "#".
14606 print prefix "define", macro P[macro] D[macro]
14607 next
14608 } else {
14609 # Replace #undef with comments. This is necessary, for example,
14610 # in the case of _POSIX_SOURCE, which is predefined and required
14611 # on some systems where configure will not decide to define it.
14612 if (defundef == "undef") {
14613 print "/*", prefix defundef, macro, "*/"
14614 next
14615 }
14616 }
14617}
14618{ print }
14619_ACAWK
14620_ACEOF
14621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014622 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014623fi # test -n "$CONFIG_HEADERS"
14624
14625
14626eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014627shift
14628for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014629do
14630 case $ac_tag in
14631 :[FHLC]) ac_mode=$ac_tag; continue;;
14632 esac
14633 case $ac_mode$ac_tag in
14634 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014635 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014636 :[FH]-) ac_tag=-:-;;
14637 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14638 esac
14639 ac_save_IFS=$IFS
14640 IFS=:
14641 set x $ac_tag
14642 IFS=$ac_save_IFS
14643 shift
14644 ac_file=$1
14645 shift
14646
14647 case $ac_mode in
14648 :L) ac_source=$1;;
14649 :[FH])
14650 ac_file_inputs=
14651 for ac_f
14652 do
14653 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014654 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014655 *) # Look for the file first in the build tree, then in the source tree
14656 # (if the path is not absolute). The absolute path cannot be DOS-style,
14657 # because $ac_f cannot contain `:'.
14658 test -f "$ac_f" ||
14659 case $ac_f in
14660 [\\/$]*) false;;
14661 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14662 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014663 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014664 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014665 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014666 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014667 done
14668
14669 # Let's still pretend it is `configure' which instantiates (i.e., don't
14670 # use $as_me), people would be surprised to read:
14671 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014672 configure_input='Generated from '`
14673 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14674 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014675 if test x"$ac_file" != x-; then
14676 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014677 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014678$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014679 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014680 # Neutralize special characters interpreted by sed in replacement strings.
14681 case $configure_input in #(
14682 *\&* | *\|* | *\\* )
14683 ac_sed_conf_input=`$as_echo "$configure_input" |
14684 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14685 *) ac_sed_conf_input=$configure_input;;
14686 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014687
14688 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014689 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014691 esac
14692 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014693 esac
14694
Theodore Ts'oe1052142006-10-21 21:46:47 -040014695 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014696$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14697 X"$ac_file" : 'X\(//\)[^/]' \| \
14698 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040014699 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014700$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14702 s//\1/
14703 q
14704 }
14705 /^X\(\/\/\)[^/].*/{
14706 s//\1/
14707 q
14708 }
14709 /^X\(\/\/\)$/{
14710 s//\1/
14711 q
14712 }
14713 /^X\(\/\).*/{
14714 s//\1/
14715 q
14716 }
14717 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014718 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014719 ac_builddir=.
14720
Theodore Ts'oe1052142006-10-21 21:46:47 -040014721case "$ac_dir" in
14722.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14723*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014724 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014725 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014726 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014727 case $ac_top_builddir_sub in
14728 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14729 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14730 esac ;;
14731esac
14732ac_abs_top_builddir=$ac_pwd
14733ac_abs_builddir=$ac_pwd$ac_dir_suffix
14734# for backward compatibility:
14735ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014736
14737case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014738 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014739 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014740 ac_top_srcdir=$ac_top_builddir_sub
14741 ac_abs_top_srcdir=$ac_pwd ;;
14742 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014743 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014744 ac_top_srcdir=$srcdir
14745 ac_abs_top_srcdir=$srcdir ;;
14746 *) # Relative name.
14747 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14748 ac_top_srcdir=$ac_top_build_prefix$srcdir
14749 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014750esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014751ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014752
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014753
Theodore Ts'oe1052142006-10-21 21:46:47 -040014754 case $ac_mode in
14755 :F)
14756 #
14757 # CONFIG_FILE
14758 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014759
14760 case $INSTALL in
14761 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014762 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014763 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014764 ac_MKDIR_P=$MKDIR_P
14765 case $MKDIR_P in
14766 [\\/$]* | ?:[\\/]* ) ;;
14767 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14768 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014769_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014770
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014772# If the template does not know about datarootdir, expand it.
14773# FIXME: This hack should be removed a few years after 2.60.
14774ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014775ac_sed_dataroot='
14776/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014777 p
14778 q
14779}
14780/@datadir@/p
14781/@docdir@/p
14782/@infodir@/p
14783/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014784/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014785case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014786*datarootdir*) ac_datarootdir_seen=yes;;
14787*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014788 { $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 +010014789$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014790_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014792 ac_datarootdir_hack='
14793 s&@datadir@&$datadir&g
14794 s&@docdir@&$docdir&g
14795 s&@infodir@&$infodir&g
14796 s&@localedir@&$localedir&g
14797 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014798 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014799esac
14800_ACEOF
14801
14802# Neutralize VPATH when `$srcdir' = `.'.
14803# Shell code in configure.ac might set extrasub.
14804# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14806ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014807$extrasub
14808_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014810:t
14811/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014812s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014813s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014814s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014815s&@srcdir@&$ac_srcdir&;t t
14816s&@abs_srcdir@&$ac_abs_srcdir&;t t
14817s&@top_srcdir@&$ac_top_srcdir&;t t
14818s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14819s&@builddir@&$ac_builddir&;t t
14820s&@abs_builddir@&$ac_abs_builddir&;t t
14821s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14822s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040014823s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014824$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014825"
14826eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14827if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014828 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014829else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014830 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14831fi \
14832 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014833
Theodore Ts'oe1052142006-10-21 21:46:47 -040014834test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014835 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14836 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14837 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014839which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014840$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014841which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014842
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014843 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014844 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014845 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14846 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014847 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014849 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014850 :H)
14851 #
14852 # CONFIG_HEADER
14853 #
14854 if test x"$ac_file" != x-; then
14855 {
14856 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014857 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14858 } >"$ac_tmp/config.h" \
14859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14860 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014861 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14862$as_echo "$as_me: $ac_file is unchanged" >&6;}
14863 else
14864 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014865 mv "$ac_tmp/config.h" "$ac_file" \
14866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014867 fi
14868 else
14869 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014870 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14871 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014872 fi
14873 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014874
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014875 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014876$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014877 ;;
14878 esac
14879
14880
14881 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040014882 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014883 for ac_file in $CONFIG_FILES; do
14884 # Support "outfile[:infile[:infile...]]"
14885 case "$ac_file" in
14886 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000014887 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014888 # PO directories have a Makefile.in generated from Makefile.in.in.
14889 case "$ac_file" in */Makefile.in)
14890 # Adjust a relative srcdir.
14891 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040014892 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014893 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14894 # In autoconf-2.13 it is called $ac_given_srcdir.
14895 # In autoconf-2.50 it is called $srcdir.
14896 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14897 case "$ac_given_srcdir" in
14898 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14899 /*) top_srcdir="$ac_given_srcdir" ;;
14900 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14901 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014902 # Treat a directory as a PO directory if and only if it has a
14903 # POTFILES.in file. This allows packages to have multiple PO
14904 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014905 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14906 rm -f "$ac_dir/POTFILES"
14907 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040014908 gt_tab=`printf '\t'`
14909 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 -050014910 POMAKEFILEDEPS="POTFILES.in"
14911 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014912 # on $ac_dir but don't depend on user-specified configuration
14913 # parameters.
14914 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14915 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014916 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014917 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14918 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040014919 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14920 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014921 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014922 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14923 else
14924 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040014925 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014926 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014927 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014928 # Compute POFILES
14929 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14930 # Compute UPDATEPOFILES
14931 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14932 # Compute DUMMYPOFILES
14933 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14934 # Compute GMOFILES
14935 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014936 case "$ac_given_srcdir" in
14937 .) srcdirpre= ;;
14938 *) srcdirpre='$(srcdir)/' ;;
14939 esac
14940 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014941 UPDATEPOFILES=
14942 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014943 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014944 for lang in $ALL_LINGUAS; do
14945 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014946 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14947 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014948 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014949 done
14950 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14951 # environment variable.
14952 INST_LINGUAS=
14953 if test -n "$ALL_LINGUAS"; then
14954 for presentlang in $ALL_LINGUAS; do
14955 useit=no
14956 if test "%UNSET%" != "$LINGUAS"; then
14957 desiredlanguages="$LINGUAS"
14958 else
14959 desiredlanguages="$ALL_LINGUAS"
14960 fi
14961 for desiredlang in $desiredlanguages; do
14962 # Use the presentlang catalog if desiredlang is
14963 # a. equal to presentlang, or
14964 # b. a variant of presentlang (because in this case,
14965 # presentlang can be used as a fallback for messages
14966 # which are not translated in the desiredlang catalog).
14967 case "$desiredlang" in
14968 "$presentlang"*) useit=yes;;
14969 esac
14970 done
14971 if test $useit = yes; then
14972 INST_LINGUAS="$INST_LINGUAS $presentlang"
14973 fi
14974 done
14975 fi
14976 CATALOGS=
14977 if test -n "$INST_LINGUAS"; then
14978 for lang in $INST_LINGUAS; do
14979 CATALOGS="$CATALOGS $lang.gmo"
14980 done
14981 fi
14982 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014983 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 -040014984 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14985 if test -f "$f"; then
14986 case "$f" in
14987 *.orig | *.bak | *~) ;;
14988 *) cat "$f" >> "$ac_dir/Makefile" ;;
14989 esac
14990 fi
14991 done
14992 fi
14993 ;;
14994 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014995 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014996
Theodore Ts'oe1052142006-10-21 21:46:47 -040014997 esac
14998done # for ac_tag
14999
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015000
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015001as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015002_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015003ac_clean_files=$ac_clean_files_save
15004
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015005test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015006 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015008
15009# configure is writing to config.log, and then calls config.status.
15010# config.status does its own redirection, appending to config.log.
15011# Unfortunately, on DOS this fails, as config.log is still kept open
15012# by configure, so config.status won't be able to write to it; its
15013# output is simply discarded. So we exec the FD to /dev/null,
15014# effectively closing config.log, so it can be properly (re)opened and
15015# appended to by config.status. When coming back to configure, we
15016# need to make the FD available again.
15017if test "$no_create" != yes; then
15018 ac_cs_success=:
15019 ac_config_status_args=
15020 test "$silent" = yes &&
15021 ac_config_status_args="$ac_config_status_args --quiet"
15022 exec 5>/dev/null
15023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15024 exec 5>>config.log
15025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15026 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015027 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015028fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015029if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015031$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15032fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015033
Theodore Ts'oee683a12005-02-05 15:53:56 -050015034if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi