blob: ae78adb5f285b017e0b46bb805d3f356f227c865 [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
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100646SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400647SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100648SIZEOF_LONG_LONG
649SIZEOF_LONG
650SIZEOF_INT
651SIZEOF_SHORT
652BUILD_CC
653MAKEINFO
654STRIP
655AR
656LDCONFIG
657PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100658AWK
659CHMOD
660RM
661CP
662MV
663LN_S
664LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400665ifNotGNUmake
666ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100667BINARY_TYPE
668POSUB
669LTLIBINTL
670LIBINTL
671INTLLIBS
672INTL_LIBTOOL_SUFFIX_PREFIX
673INTLOBJS
674GENCAT
675INSTOBJEXT
676DATADIRNAME
677CATOBJEXT
678USE_INCLUDED_LIBINTL
679BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400680LTLIBC
681WINDRES
682WOE32
683WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100684HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400685HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100686HAVE_SNPRINTF
687HAVE_ASPRINTF
688HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400689INTL_DEFAULT_VERBOSITY
690INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100691GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400692INTLBISON
693LTLIBICONV
694LIBICONV
695LTLIBMULTITHREAD
696LIBMULTITHREAD
697LTLIBTHREAD
698LIBTHREAD
699LIBPTH_PREFIX
700LTLIBPTH
701LIBPTH
702PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100703ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400704HAVE_VISIBILITY
705CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100706RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400707GLIBC2
708XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100709MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400710XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100711XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400712GMSGFMT_015
713MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100714GMSGFMT
715MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400716GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100717USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400718SED
719MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723SET_MAKE
724VERSION
725PACKAGE
726GETTEXT_PACKAGE
727UUIDD_CMT
728E2INITRD_MAN
729E2INITRD_PROG
730FSCK_MAN
731FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500732DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100733RESIZER_CMT
734IMAGER_CMT
735DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700736QUOTA_CMT
737DEPPROFILED_LIBQUOTA
738PROFILED_LIBQUOTA
739DEPSTATIC_LIBQUOTA
740STATIC_LIBQUOTA
741DEPLIBQUOTA
742LIBQUOTA
Eric Sandeenf5589f42013-10-14 08:54:15 -0400743QUOTA_MAN_COMMENT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100744BLKID_CMT
745DEPPROFILED_LIBBLKID
746PROFILED_LIBBLKID
747DEPSTATIC_LIBBLKID
748STATIC_LIBBLKID
749DEPLIBBLKID
750LIBBLKID
751UUID_CMT
752DEPPROFILED_LIBUUID
753PROFILED_LIBUUID
754DEPSTATIC_LIBUUID
755STATIC_LIBUUID
756DEPLIBUUID
757LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400758PKG_CONFIG_LIBDIR
759PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100760PKG_CONFIG
761TEST_IO_CMT
762PRIVATE_LIBS_CMT
763LDFLAG_DYNAMIC
764PROFILED_LIB_EXT
765STATIC_LIB_EXT
766LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100767PROFILE_CMT
768BSDLIB_CMT
769ELF_CMT
770HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400771Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400772ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400773E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400774LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400775SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400776LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100777MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400778EGREP
779GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100780CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400781RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500782DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100783OBJEXT
784EXEEXT
785ac_ct_CC
786CPPFLAGS
787LDFLAGS
788CFLAGS
789CC
790host_os
791host_vendor
792host_cpu
793host
794build_os
795build_vendor
796build_cpu
797build
798E2FSPROGS_PKGVER
799E2FSPROGS_VERSION
800E2FSPROGS_DAY
801E2FSPROGS_MONTH
802E2FSPROGS_YEAR
803target_alias
804host_alias
805build_alias
806LIBS
807ECHO_T
808ECHO_N
809ECHO_C
810DEFS
811mandir
812localedir
813libdir
814psdir
815pdfdir
816dvidir
817htmldir
818infodir
819docdir
820oldincludedir
821includedir
822localstatedir
823sharedstatedir
824sysconfdir
825datadir
826datarootdir
827libexecdir
828sbindir
829bindir
830program_transform_name
831prefix
832exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500833PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100834PACKAGE_BUGREPORT
835PACKAGE_STRING
836PACKAGE_VERSION
837PACKAGE_TARNAME
838PACKAGE_NAME
839PATH_SEPARATOR
840SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400841ac_subst_files='MCONFIG
842MAKEFILE_ELF
843MAKEFILE_BSDLIB
844MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400845MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400846ASM_TYPES_HEADER
847PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100848ac_user_opts='
849enable_option_checking
850with_diet_libc
851with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100852with_ccopts
853with_ldopts
854with_root_prefix
855enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400856enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400857enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400858enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400859enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400860enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100861enable_compression
862enable_htree
863enable_elf_shlibs
864enable_bsd_shlibs
865enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500866enable_gcov
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100867enable_jbd_debug
868enable_blkid_debug
869enable_testio_debug
870enable_libuuid
871enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500872enable_quota
Theodore Ts'o3df60142013-06-16 16:14:40 -0400873enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100874enable_debugfs
875enable_imager
876enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500877enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100878enable_fsck
879enable_e2initrd_helper
880enable_tls
881enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000882enable_mmp
Tony Breeds1625bf42012-07-30 14:44:12 -0400883enable_bmap_stats
884enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100885enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400886enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100887with_gnu_ld
888enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400889with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100890with_libiconv_prefix
891with_included_gettext
892with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400893with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100894'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400895 ac_precious_vars='build_alias
896host_alias
897target_alias
898CC
899CFLAGS
900LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400901LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400902CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400903CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400904PKG_CONFIG
905PKG_CONFIG_PATH
906PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400907
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000908
909# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500910ac_init_help=
911ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100912ac_unrecognized_opts=
913ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000914# The variables have the same names as the options, with
915# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500916cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000917exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000918no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000927verbose=
928x_includes=NONE
929x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400936# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000945includedir='${prefix}/include'
946oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400947docdir='${datarootdir}/doc/${PACKAGE}'
948infodir='${datarootdir}/info'
949htmldir='${docdir}'
950dvidir='${docdir}'
951pdfdir='${docdir}'
952psdir='${docdir}'
953libdir='${exec_prefix}/lib'
954localedir='${datarootdir}/locale'
955mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000956
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000957ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400958ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000959for ac_option
960do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400963 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000964 ac_prev=
965 continue
966 fi
967
Theodore Ts'oe1052142006-10-21 21:46:47 -0400968 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000969 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *=) ac_optarg= ;;
971 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400972 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000973
974 # Accept the important Cygnus configure options, so we can diagnose typos.
975
Theodore Ts'oe1052142006-10-21 21:46:47 -0400976 case $ac_dashdash$ac_option in
977 --)
978 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000979
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000980 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 ac_prev=bindir ;;
982 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500983 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000984
985 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500986 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000987 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500988 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000989
990 -cache-file | --cache-file | --cache-fil | --cache-fi \
991 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992 ac_prev=cache_file ;;
993 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500995 cache_file=$ac_optarg ;;
996
997 --config-cache | -C)
998 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000999
Theodore Ts'oe1052142006-10-21 21:46:47 -04001000 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001001 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001002 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001003 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001004
Theodore Ts'oe1052142006-10-21 21:46:47 -04001005 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006 | --dataroo | --dataro | --datar)
1007 ac_prev=datarootdir ;;
1008 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010 datarootdir=$ac_optarg ;;
1011
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001012 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001013 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001014 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001016 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021"enable_$ac_useropt"
1022"*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001027
1028 -docdir | --docdir | --docdi | --doc | --do)
1029 ac_prev=docdir ;;
1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031 docdir=$ac_optarg ;;
1032
1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 ac_prev=dvidir ;;
1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001037
1038 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001040 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001042 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047"enable_$ac_useropt"
1048"*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001053
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001061 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1065 with_gas=yes ;;
1066
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001073
1074 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001075 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001076 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001077 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001078
Theodore Ts'oe1052142006-10-21 21:46:47 -04001079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 ac_prev=htmldir ;;
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 | --ht=*)
1083 htmldir=$ac_optarg ;;
1084
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001090 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001091
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 ac_prev=infodir ;;
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001095 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001096
1097 -libdir | --libdir | --libdi | --libd)
1098 ac_prev=libdir ;;
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001100 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001101
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001107 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001108
Theodore Ts'oe1052142006-10-21 21:46:47 -04001109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1113
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001114 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001115 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001119 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001120
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 ac_prev=mandir ;;
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001124 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001125
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1128 with_fp=no ;;
1129
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001131 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001132 no_create=yes ;;
1133
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136 no_recursion=yes ;;
1137
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001145 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001146
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 ac_prev=prefix ;;
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001150 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001151
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001157 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001158
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001164 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001165
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001181 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001182
Theodore Ts'oe1052142006-10-21 21:46:47 -04001183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 ac_prev=pdfdir ;;
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1187
1188 -psdir | --psdir | --psdi | --psd | --ps)
1189 ac_prev=psdir ;;
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191 psdir=$ac_optarg ;;
1192
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1195 silent=yes ;;
1196
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 ac_prev=sbindir ;;
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001201 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001202
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1206 | --sha | --sh)
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001212 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001213
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001214 -site | --site | --sit)
1215 ac_prev=site ;;
1216 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001217 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001218
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 ac_prev=srcdir ;;
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001222 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001223
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001229 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001230
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001231 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001232 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001234 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001235
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237 verbose=yes ;;
1238
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001241
1242 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001244 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001246 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251"with_$ac_useropt"
1252"*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001257
1258 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001259 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001260 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001262 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267"with_$ac_useropt"
1268"*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001273
1274 --x)
1275 # Obsolete; use --with-x.
1276 with_x=yes ;;
1277
1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279 | --x-incl | --x-inc | --x-in | --x-i)
1280 ac_prev=x_includes ;;
1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001283 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001284
1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287 ac_prev=x_libraries ;;
1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001290 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001291
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001292 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001294 ;;
1295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001296 *=*)
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001299 case $ac_envvar in #(
1300 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001301 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001302 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001303 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001304 export $ac_envvar ;;
1305
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001306 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001307 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001311 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001312 ;;
1313
1314 esac
1315done
1316
1317if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001319 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001320fi
1321
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001322if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1324 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001325 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 esac
1328fi
1329
1330# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001331for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001335do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001336 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001337 # Remove trailing slashes.
1338 case $ac_val in
1339 */ )
1340 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\$ac_val;;
1342 esac
1343 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001344 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001345 [\\/$]* | ?:[\\/]* ) continue;;
1346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001347 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001348 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001349done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001350
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001351# There might be people who depend on the old broken behavior: `$host'
1352# used to hold the argument of --host etc.
1353# FIXME: To remove some day.
1354build=$build_alias
1355host=$host_alias
1356target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001358# FIXME: To remove some day.
1359if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001362 elif test "x$build_alias" != "x$host_alias"; then
1363 cross_compiling=yes
1364 fi
1365fi
1366
1367ac_tool_prefix=
1368test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370test "$silent" = yes && exec 6>/dev/null
1371
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001372
Theodore Ts'oe1052142006-10-21 21:46:47 -04001373ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374ac_ls_di=`ls -di .` &&
1375ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001376 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001377test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001378 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001379
1380
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001381# Find the source files, if location was not specified.
1382if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001384 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001385 ac_confdir=`$as_dirname -- "$as_myself" ||
1386$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)[^/].*/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\).*/{
1404 s//\1/
1405 q
1406 }
1407 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001408 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001409 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001410 srcdir=..
1411 fi
1412else
1413 ac_srcdir_defaulted=no
1414fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001415if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001417 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001418fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001419ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001422 pwd)`
1423# When building in place, set srcdir=.
1424if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 srcdir=.
1426fi
1427# Remove unnecessary trailing slashes from srcdir.
1428# Double slashes in file names in object file debugging info
1429# mess up M-x gdb in Emacs.
1430case $srcdir in
1431*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432esac
1433for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001439
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001440#
1441# Report the --help message.
1442#
1443if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1446 cat <<_ACEOF
1447\`configure' configures this package to adapt to many kinds of systems.
1448
1449Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452VAR=VALUE. See below for descriptions of some of the useful variables.
1453
1454Defaults for the options are specified in brackets.
1455
1456Configuration:
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001461 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001467Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001469 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001471 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001472
1473By default, \`make install' will install all the files in
1474\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476for instance \`--prefix=\$HOME'.
1477
1478For better control, use the options below.
1479
1480Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001500_ACEOF
1501
1502 cat <<\_ACEOF
1503
1504System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507_ACEOF
1508fi
1509
1510if test -n "$ac_init_help"; then
1511
1512 cat <<\_ACEOF
1513
1514Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001515 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001518 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001519 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001520 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001521
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001522 --enable-symlink-build use symlinks while building instead of hard links
1523 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001524 --enable-compression enable EXPERIMENTAL compression support
1525 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001526 --enable-elf-shlibs select ELF shared libraries
1527 --enable-bsd-shlibs select BSD shared libraries
1528 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001529 --enable-gcov build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001530 --enable-jbd-debug enable journal debugging
1531 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001532 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001533 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001534 --disable-libblkid do not build private blkid library
Eric Sandeen7b8912e2012-11-27 12:21:56 -06001535 --enable-quota enable quota support
Theodore Ts'o3df60142013-06-16 16:14:40 -04001536 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001537 --disable-debugfs disable support of debugfs program
1538 --disable-imager disable support of e2image program
1539 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001540 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001541 --enable-fsck build fsck wrapper program
1542 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001543 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001544 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001545 --disable-mmp disable support mmp, Multi Mount Protection
Tony Breeds1625bf42012-07-30 14:44:12 -04001546 --disable-bmap-stats disable collection of bitmap stats.
1547 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001548 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001549 --enable-threads={posix|solaris|pth|windows}
1550 specify multithreading API
1551 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001552 --disable-rpath do not hardcode runtime library paths
1553
1554Optional Packages:
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001557 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001558 --with-cc no longer supported, use CC= instead
1559 --with-ccopts no longer supported, use CFLAGS= instead
1560 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001561 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1564 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001565 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1566 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1567 --with-included-gettext use the GNU gettext library included here
1568 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1569 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001570 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001571
1572Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001577 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001578 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001579 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001580 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001581 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001582 PKG_CONFIG_PATH
1583 directories to add to pkg-config's search path
1584 PKG_CONFIG_LIBDIR
1585 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001586
1587Use these variables to override the choices made by `configure' or to help
1588it to find libraries and programs with nonstandard names/locations.
1589
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001590Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001591_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001592ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001593fi
1594
1595if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001601 ac_builddir=.
1602
Theodore Ts'oe1052142006-10-21 21:46:47 -04001603case "$ac_dir" in
1604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001607 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612 esac ;;
1613esac
1614ac_abs_top_builddir=$ac_pwd
1615ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616# for backward compatibility:
1617ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001618
1619case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001620 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001621 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001625 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1628 *) # Relative name.
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001632esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001634
Theodore Ts'oe1052142006-10-21 21:46:47 -04001635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001643 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001645 fi || ac_status=$?
1646 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001647 done
1648fi
1649
Theodore Ts'oe1052142006-10-21 21:46:47 -04001650test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001651if $ac_init_version; then
1652 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001653configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001654generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001655
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001656Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001657This configure script is free software; the Free Software Foundation
1658gives unlimited permission to copy, distribute and modify it.
1659_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001660 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001661fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001662
1663## ------------------------ ##
1664## Autoconf initialization. ##
1665## ------------------------ ##
1666
1667# ac_fn_c_try_compile LINENO
1668# --------------------------
1669# Try to compile conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_compile ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext
1674 if { { ac_try="$ac_compile"
1675case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1693 ac_retval=0
1694else
1695 $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001701 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001702
1703} # ac_fn_c_try_compile
1704
1705# ac_fn_c_try_link LINENO
1706# -----------------------
1707# Try to link conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_link ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext conftest$ac_exeext
1712 if { { ac_try="$ac_link"
1713case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest$ac_exeext && {
1731 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001732 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001733 }; then :
1734 ac_retval=0
1735else
1736 $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=1
1740fi
1741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743 # interfere with the next link command; also delete a directory that is
1744 # left behind by Apple's compiler. We do this before executing the actions.
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001747 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001748
1749} # ac_fn_c_try_link
1750
1751# ac_fn_c_try_cpp LINENO
1752# ----------------------
1753# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754ac_fn_c_try_cpp ()
1755{
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_cpp conftest.$ac_ext"
1758case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001772 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 }; then :
1776 ac_retval=0
1777else
1778 $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=1
1782fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001784 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001785
1786} # ac_fn_c_try_cpp
1787
1788# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789# -------------------------------------------------------
1790# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791# the include files in INCLUDES and setting the cache variable VAR
1792# accordingly.
1793ac_fn_c_check_header_mongrel ()
1794{
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001796 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001799if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001800 $as_echo_n "(cached) " >&6
1801fi
1802eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805else
1806 # Is the header compilable?
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808$as_echo_n "checking $2 usability... " >&6; }
1809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h. */
1811$4
1812#include <$2>
1813_ACEOF
1814if ac_fn_c_try_compile "$LINENO"; then :
1815 ac_header_compiler=yes
1816else
1817 ac_header_compiler=no
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821$as_echo "$ac_header_compiler" >&6; }
1822
1823# Is the header present?
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825$as_echo_n "checking $2 presence... " >&6; }
1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h. */
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_cpp "$LINENO"; then :
1831 ac_header_preproc=yes
1832else
1833 ac_header_preproc=no
1834fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001835rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837$as_echo "$ac_header_preproc" >&6; }
1838
1839# So? What about this header?
1840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841 yes:no: )
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846 ;;
1847 no:yes:* )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1851$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1855$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 ;;
1859esac
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001862if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001863 $as_echo_n "(cached) " >&6
1864else
1865 eval "$3=\$ac_header_compiler"
1866fi
1867eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001872
1873} # ac_fn_c_check_header_mongrel
1874
Theodore Ts'o93613952014-07-03 23:44:13 -04001875# ac_fn_c_try_run LINENO
1876# ----------------------
1877# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878# that executables *can* be run.
1879ac_fn_c_try_run ()
1880{
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_link"
1883case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893 { { case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896esac
1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898$as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_try") 2>&5
1900 ac_status=$?
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; }; }; then :
1903 ac_retval=0
1904else
1905 $as_echo "$as_me: program exited with status $ac_status" >&5
1906 $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=$ac_status
1910fi
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1914
1915} # ac_fn_c_try_run
1916
1917# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1918# -------------------------------------------------------
1919# Tests whether HEADER exists and can be compiled using the include files in
1920# INCLUDES, setting the cache variable VAR accordingly.
1921ac_fn_c_check_header_compile ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1928else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931$4
1932#include <$2>
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935 eval "$3=yes"
1936else
1937 eval "$3=no"
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940fi
1941eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946} # ac_fn_c_check_header_compile
1947
1948# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1949# -------------------------------------------
1950# Tests whether TYPE exists after having included INCLUDES, setting cache
1951# variable VAR accordingly.
1952ac_fn_c_check_type ()
1953{
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956$as_echo_n "checking for $2... " >&6; }
1957if eval \${$3+:} false; then :
1958 $as_echo_n "(cached) " >&6
1959else
1960 eval "$3=no"
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963$4
1964int
1965main ()
1966{
1967if (sizeof ($2))
1968 return 0;
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h. */
1976$4
1977int
1978main ()
1979{
1980if (sizeof (($2)))
1981 return 0;
1982 ;
1983 return 0;
1984}
1985_ACEOF
1986if ac_fn_c_try_compile "$LINENO"; then :
1987
1988else
1989 eval "$3=yes"
1990fi
1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992fi
1993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994fi
1995eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997$as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000} # ac_fn_c_check_type
2001
2002# ac_fn_c_check_func LINENO FUNC VAR
2003# ----------------------------------
2004# Tests whether FUNC exists, setting the cache variable VAR accordingly
2005ac_fn_c_check_func ()
2006{
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009$as_echo_n "checking for $2... " >&6; }
2010if eval \${$3+:} false; then :
2011 $as_echo_n "(cached) " >&6
2012else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h. */
2015/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2017#define $2 innocuous_$2
2018
2019/* System header to define __stub macros and hopefully few prototypes,
2020 which can conflict with char $2 (); below.
2021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2022 <limits.h> exists even on freestanding compilers. */
2023
2024#ifdef __STDC__
2025# include <limits.h>
2026#else
2027# include <assert.h>
2028#endif
2029
2030#undef $2
2031
2032/* Override any GCC internal prototype to avoid an error.
2033 Use char because int might match the return type of a GCC
2034 builtin and then its argument prototype would still apply. */
2035#ifdef __cplusplus
2036extern "C"
2037#endif
2038char $2 ();
2039/* The GNU C library defines this for functions which it implements
2040 to always fail with ENOSYS. Some functions are actually named
2041 something starting with __ and the normal name is an alias. */
2042#if defined __stub_$2 || defined __stub___$2
2043choke me
2044#endif
2045
2046int
2047main ()
2048{
2049return $2 ();
2050 ;
2051 return 0;
2052}
2053_ACEOF
2054if ac_fn_c_try_link "$LINENO"; then :
2055 eval "$3=yes"
2056else
2057 eval "$3=no"
2058fi
2059rm -f core conftest.err conftest.$ac_objext \
2060 conftest$ac_exeext conftest.$ac_ext
2061fi
2062eval ac_res=\$$3
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064$as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066
2067} # ac_fn_c_check_func
2068
2069# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2070# ---------------------------------------------
2071# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2072# accordingly.
2073ac_fn_c_check_decl ()
2074{
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 as_decl_name=`echo $2|sed 's/ *(.*//'`
2077 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2079$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2080if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086int
2087main ()
2088{
2089#ifndef $as_decl_name
2090#ifdef __cplusplus
2091 (void) $as_decl_use;
2092#else
2093 (void) $as_decl_name;
2094#endif
2095#endif
2096
2097 ;
2098 return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102 eval "$3=yes"
2103else
2104 eval "$3=no"
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113} # ac_fn_c_check_decl
2114
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002115# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2116# --------------------------------------------
2117# Tries to find the compile-time value of EXPR in a program that includes
2118# INCLUDES, setting VAR accordingly. Returns whether the value could be
2119# computed
2120ac_fn_c_compute_int ()
2121{
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if test "$cross_compiling" = yes; then
2124 # Depending upon the size, compute the lo and hi bounds.
2125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126/* end confdefs.h. */
2127$4
2128int
2129main ()
2130{
2131static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002132test_array [0] = 0;
2133return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_compile "$LINENO"; then :
2140 ac_lo=0 ac_mid=0
2141 while :; do
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h. */
2144$4
2145int
2146main ()
2147{
2148static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002149test_array [0] = 0;
2150return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002151
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_hi=$ac_mid; break
2158else
2159 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2160 if test $ac_lo -le $ac_mid; then
2161 ac_lo= ac_hi=
2162 break
2163 fi
2164 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168else
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170/* end confdefs.h. */
2171$4
2172int
2173main ()
2174{
2175static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002176test_array [0] = 0;
2177return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002178
2179 ;
2180 return 0;
2181}
2182_ACEOF
2183if ac_fn_c_try_compile "$LINENO"; then :
2184 ac_hi=-1 ac_mid=-1
2185 while :; do
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h. */
2188$4
2189int
2190main ()
2191{
2192static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002193test_array [0] = 0;
2194return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002195
2196 ;
2197 return 0;
2198}
2199_ACEOF
2200if ac_fn_c_try_compile "$LINENO"; then :
2201 ac_lo=$ac_mid; break
2202else
2203 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2204 if test $ac_mid -le $ac_hi; then
2205 ac_lo= ac_hi=
2206 break
2207 fi
2208 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2209fi
2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 done
2212else
2213 ac_lo= ac_hi=
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218# Binary search between lo and hi bounds.
2219while test "x$ac_lo" != "x$ac_hi"; do
2220 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222/* end confdefs.h. */
2223$4
2224int
2225main ()
2226{
2227static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002228test_array [0] = 0;
2229return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002230
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235if ac_fn_c_try_compile "$LINENO"; then :
2236 ac_hi=$ac_mid
2237else
2238 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2239fi
2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241done
2242case $ac_lo in #((
2243?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2244'') ac_retval=1 ;;
2245esac
2246 else
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248/* end confdefs.h. */
2249$4
2250static long int longval () { return $2; }
2251static unsigned long int ulongval () { return $2; }
2252#include <stdio.h>
2253#include <stdlib.h>
2254int
2255main ()
2256{
2257
2258 FILE *f = fopen ("conftest.val", "w");
2259 if (! f)
2260 return 1;
2261 if (($2) < 0)
2262 {
2263 long int i = longval ();
2264 if (i != ($2))
2265 return 1;
2266 fprintf (f, "%ld", i);
2267 }
2268 else
2269 {
2270 unsigned long int i = ulongval ();
2271 if (i != ($2))
2272 return 1;
2273 fprintf (f, "%lu", i);
2274 }
2275 /* Do not output a trailing newline, as this causes \r\n confusion
2276 on some platforms. */
2277 return ferror (f) || fclose (f) != 0;
2278
2279 ;
2280 return 0;
2281}
2282_ACEOF
2283if ac_fn_c_try_run "$LINENO"; then :
2284 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2285else
2286 ac_retval=1
2287fi
2288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2289 conftest.$ac_objext conftest.beam conftest.$ac_ext
2290rm -f conftest.val
2291
2292 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002294 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002295
2296} # ac_fn_c_compute_int
2297
2298# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2299# ----------------------------------------------------
2300# Tries to find if the field MEMBER exists in type AGGR, after including
2301# INCLUDES, setting cache variable VAR accordingly.
2302ac_fn_c_check_member ()
2303{
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2306$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002307if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002308 $as_echo_n "(cached) " >&6
2309else
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h. */
2312$5
2313int
2314main ()
2315{
2316static $2 ac_aggr;
2317if (ac_aggr.$3)
2318return 0;
2319 ;
2320 return 0;
2321}
2322_ACEOF
2323if ac_fn_c_try_compile "$LINENO"; then :
2324 eval "$4=yes"
2325else
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327/* end confdefs.h. */
2328$5
2329int
2330main ()
2331{
2332static $2 ac_aggr;
2333if (sizeof ac_aggr.$3)
2334return 0;
2335 ;
2336 return 0;
2337}
2338_ACEOF
2339if ac_fn_c_try_compile "$LINENO"; then :
2340 eval "$4=yes"
2341else
2342 eval "$4=no"
2343fi
2344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345fi
2346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347fi
2348eval ac_res=\$$4
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002352
2353} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002354cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002355This file contains any messages produced by compilers while
2356running configure, to aid debugging if configure makes a mistake.
2357
2358It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002359generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002360
2361 $ $0 $@
2362
2363_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002364exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002365{
2366cat <<_ASUNAME
2367## --------- ##
2368## Platform. ##
2369## --------- ##
2370
2371hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2372uname -m = `(uname -m) 2>/dev/null || echo unknown`
2373uname -r = `(uname -r) 2>/dev/null || echo unknown`
2374uname -s = `(uname -s) 2>/dev/null || echo unknown`
2375uname -v = `(uname -v) 2>/dev/null || echo unknown`
2376
2377/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2378/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2379
2380/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2381/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2382/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002383/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002384/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2385/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2386/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2387
2388_ASUNAME
2389
2390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391for as_dir in $PATH
2392do
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002395 $as_echo "PATH: $as_dir"
2396 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002397IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002398
2399} >&5
2400
2401cat >&5 <<_ACEOF
2402
2403
2404## ----------- ##
2405## Core tests. ##
2406## ----------- ##
2407
2408_ACEOF
2409
2410
2411# Keep a trace of the command line.
2412# Strip out --no-create and --no-recursion so they do not pile up.
2413# Strip out --silent because we don't want to record it for future runs.
2414# Also quote any args containing shell meta-characters.
2415# Make two passes to allow for proper duplicate-argument suppression.
2416ac_configure_args=
2417ac_configure_args0=
2418ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002419ac_must_keep_next=false
2420for ac_pass in 1 2
2421do
2422 for ac_arg
2423 do
2424 case $ac_arg in
2425 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2427 | -silent | --silent | --silen | --sile | --sil)
2428 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002429 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002430 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002431 esac
2432 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002433 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002434 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002435 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002436 if test $ac_must_keep_next = true; then
2437 ac_must_keep_next=false # Got value, back to normal.
2438 else
2439 case $ac_arg in
2440 *=* | --config-cache | -C | -disable-* | --disable-* \
2441 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2442 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2443 | -with-* | --with-* | -without-* | --without-* | --x)
2444 case "$ac_configure_args0 " in
2445 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2446 esac
2447 ;;
2448 -* ) ac_must_keep_next=true ;;
2449 esac
2450 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002451 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002452 ;;
2453 esac
2454 done
2455done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002456{ ac_configure_args0=; unset ac_configure_args0;}
2457{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002458
2459# When interrupted or exit'd, cleanup temporary files, and complete
2460# config.log. We remove comments because anyway the quotes in there
2461# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002462# WARNING: Use '\'' to represent an apostrophe within the trap.
2463# 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 -05002464trap 'exit_status=$?
2465 # Save into config.log some information that might help in debugging.
2466 {
2467 echo
2468
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002469 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002470## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002471## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002472 echo
2473 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002474(
2475 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2476 eval ac_val=\$$ac_var
2477 case $ac_val in #(
2478 *${as_nl}*)
2479 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002480 *_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 +01002481$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002482 esac
2483 case $ac_var in #(
2484 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002485 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002486 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002487 esac ;;
2488 esac
2489 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002490 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002491 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2492 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002493 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002494 "s/'\''/'\''\\\\'\'''\''/g;
2495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2496 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002497 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002499 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002500 esac |
2501 sort
2502)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002503 echo
2504
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002505 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002506## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002507## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002508 echo
2509 for ac_var in $ac_subst_vars
2510 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002511 eval ac_val=\$$ac_var
2512 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002514 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002515 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516 done | sort
2517 echo
2518
2519 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002520 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002521## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002522## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002523 echo
2524 for ac_var in $ac_subst_files
2525 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002526 eval ac_val=\$$ac_var
2527 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002529 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002530 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531 done | sort
2532 echo
2533 fi
2534
2535 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002536 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002537## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002538## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002539 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002540 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002541 echo
2542 fi
2543 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002544 $as_echo "$as_me: caught signal $ac_signal"
2545 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002546 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002547 rm -f core *.core core.conftest.* &&
2548 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002549 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002550' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002551for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002552 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002553done
2554ac_signal=0
2555
2556# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002557rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002558
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002559$as_echo "/* confdefs.h */" > confdefs.h
2560
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002561# Predefined preprocessor variables.
2562
2563cat >>confdefs.h <<_ACEOF
2564#define PACKAGE_NAME "$PACKAGE_NAME"
2565_ACEOF
2566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002567cat >>confdefs.h <<_ACEOF
2568#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2569_ACEOF
2570
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002571cat >>confdefs.h <<_ACEOF
2572#define PACKAGE_VERSION "$PACKAGE_VERSION"
2573_ACEOF
2574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002575cat >>confdefs.h <<_ACEOF
2576#define PACKAGE_STRING "$PACKAGE_STRING"
2577_ACEOF
2578
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002579cat >>confdefs.h <<_ACEOF
2580#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2581_ACEOF
2582
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002583cat >>confdefs.h <<_ACEOF
2584#define PACKAGE_URL "$PACKAGE_URL"
2585_ACEOF
2586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002587
2588# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002589# Prefer an explicitly selected file to automatically selected ones.
2590ac_site_file1=NONE
2591ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002592if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002593 # We do not want a PATH search for config.site.
2594 case $CONFIG_SITE in #((
2595 -*) ac_site_file1=./$CONFIG_SITE;;
2596 */*) ac_site_file1=$CONFIG_SITE;;
2597 *) ac_site_file1=./$CONFIG_SITE;;
2598 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002599elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002600 ac_site_file1=$prefix/share/config.site
2601 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002602else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002603 ac_site_file1=$ac_default_prefix/share/config.site
2604 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002605fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002606for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002607do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002608 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002609 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002611$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002612 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002613 . "$ac_site_file" \
2614 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616as_fn_error $? "failed to load site script $ac_site_file
2617See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002618 fi
2619done
2620
2621if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002622 # Some versions of bash will fail to source /dev/null (special files
2623 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2624 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002626$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002627 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002628 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2629 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002630 esac
2631 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002632else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002634$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002635 >$cache_file
2636fi
2637
Theodore Ts'o93613952014-07-03 23:44:13 -04002638gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002639as_fn_append ac_header_list " stdlib.h"
2640as_fn_append ac_header_list " unistd.h"
2641as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002642as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002643# Check that the precious variables saved in the cache have kept the same
2644# value.
2645ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002646for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002647 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002649 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002651 case $ac_old_set,$ac_new_set in
2652 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002653 { $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 +01002654$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 -05002655 ac_cache_corrupted=: ;;
2656 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002657 { $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 +01002658$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002659 ac_cache_corrupted=: ;;
2660 ,);;
2661 *)
2662 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002663 # differences in whitespace do not lead to failure.
2664 ac_old_val_w=`echo x $ac_old_val`
2665 ac_new_val_w=`echo x $ac_new_val`
2666 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002667 { $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 +01002668$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2669 ac_cache_corrupted=:
2670 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002671 { $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 +01002672$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2673 eval $ac_var=\$ac_old_val
2674 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002675 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002676$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002677 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002678$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002679 fi;;
2680 esac
2681 # Pass precious variables to config.status.
2682 if test "$ac_new_set" = set; then
2683 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002684 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002685 *) ac_arg=$ac_var=$ac_new_val ;;
2686 esac
2687 case " $ac_configure_args " in
2688 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002689 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002690 esac
2691 fi
2692done
2693if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002696 { $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 +01002697$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002698 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002699fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002700## -------------------- ##
2701## Main body of script. ##
2702## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002703
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002704ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002705ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002709
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002710
2711
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002712ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002713for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002714 if test -f "$ac_dir/install-sh"; then
2715 ac_aux_dir=$ac_dir
2716 ac_install_sh="$ac_aux_dir/install-sh -c"
2717 break
2718 elif test -f "$ac_dir/install.sh"; then
2719 ac_aux_dir=$ac_dir
2720 ac_install_sh="$ac_aux_dir/install.sh -c"
2721 break
2722 elif test -f "$ac_dir/shtool"; then
2723 ac_aux_dir=$ac_dir
2724 ac_install_sh="$ac_aux_dir/shtool install -c"
2725 break
2726 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002727done
2728if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002729 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 +00002730fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002731
2732# These three variables are undocumented and unsupported,
2733# and are intended to be withdrawn in a future Autoconf release.
2734# They can cause serious problems if a builder's source tree is in a directory
2735# whose full name contains unusual characters.
2736ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2737ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2738ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2739
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002740
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002741ac_config_headers="$ac_config_headers lib/config.h"
2742
2743
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002744MCONFIG=./MCONFIG
2745
Theodore Ts'o74becf31997-04-26 14:37:06 +00002746BINARY_TYPE=bin
2747E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2748 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2749DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2750 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002751E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002752MONTH=`echo $DATE | awk -F- '{print $2}'`
2753YEAR=`echo $DATE | awk -F- '{print $3}'`
2754
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002755if expr $YEAR ">" 1900 > /dev/null ; then
2756 E2FSPROGS_YEAR=$YEAR
2757elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002758 E2FSPROGS_YEAR=19$YEAR
2759else
2760 E2FSPROGS_YEAR=20$YEAR
2761fi
2762
2763case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002764Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2765Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2766Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2767Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2768May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2769Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2770Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2771Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2772Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2773Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2774Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2775Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002776*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002777$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002778esac
2779
Andreas Dilger927566a2006-11-12 19:41:25 -05002780base_ver=`echo $E2FSPROGS_VERSION | \
2781 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002782
2783date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2784
2785case $E2FSPROGS_VERSION in
2786*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002787 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002788 ;;
2789*)
2790 E2FSPROGS_PKGVER="$base_ver"
2791 ;;
2792esac
2793
2794unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002795{ $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 +01002796$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002798$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002799
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002800
2801
2802
Andreas Dilger927566a2006-11-12 19:41:25 -05002803
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002804WITH_DIET_LIBC=
2805
2806# Check whether --with-diet-libc was given.
2807if test "${with_diet_libc+set}" = set; then :
2808 withval=$with_diet_libc; CC="diet cc -nostdinc"
2809WITH_DIET_LIBC=yes
2810if test -z "$LIBS"
2811then
2812 LIBS="-lcompat"
2813else
2814 LIBS="$LIBS -lcompat"
2815fi
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2817$as_echo "CC=$CC" >&6; }
2818fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002819# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002820$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002821 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002822
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002824$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002825if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002826 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002827else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002828 ac_build_alias=$build_alias
2829test "x$ac_build_alias" = x &&
2830 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2831test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002832 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002833ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002834 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002835
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002836fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002838$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002839case $ac_cv_build in
2840*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002841*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002842esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002843build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002844ac_save_IFS=$IFS; IFS='-'
2845set x $ac_cv_build
2846shift
2847build_cpu=$1
2848build_vendor=$2
2849shift; shift
2850# Remember, the first character of IFS is used to create $*,
2851# except with old shells:
2852build_os=$*
2853IFS=$ac_save_IFS
2854case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002855
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002856
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002858$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002859if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002860 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002861else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002862 if test "x$host_alias" = x; then
2863 ac_cv_host=$ac_cv_build
2864else
2865 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002866 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002867fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002868
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002869fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002871$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002872case $ac_cv_host in
2873*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002874*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002875esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002876host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002877ac_save_IFS=$IFS; IFS='-'
2878set x $ac_cv_host
2879shift
2880host_cpu=$1
2881host_vendor=$2
2882shift; shift
2883# Remember, the first character of IFS is used to create $*,
2884# except with old shells:
2885host_os=$*
2886IFS=$ac_save_IFS
2887case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002888
2889
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002890DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002891ac_ext=c
2892ac_cpp='$CPP $CPPFLAGS'
2893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895ac_compiler_gnu=$ac_cv_c_compiler_gnu
2896if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2898set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002900$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002901if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002902 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002903else
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2906else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002912 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002914 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002916 break 2
2917 fi
2918done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002919 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002920IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002922fi
2923fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002924CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002925if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002927$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002928else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002930$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002931fi
2932
Theodore Ts'oe1052142006-10-21 21:46:47 -04002933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002934fi
2935if test -z "$ac_cv_prog_CC"; then
2936 ac_ct_CC=$CC
2937 # Extract the first word of "gcc", so it can be a program name with args.
2938set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002940$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002941if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002942 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002943else
2944 if test -n "$ac_ct_CC"; then
2945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002952 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002954 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002956 break 2
2957 fi
2958done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002959 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002960IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002967$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002968else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002970$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002971fi
2972
Theodore Ts'oe1052142006-10-21 21:46:47 -04002973 if test "x$ac_ct_CC" = x; then
2974 CC=""
2975 else
2976 case $cross_compiling:$ac_tool_warned in
2977yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002978{ $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 +01002979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002980ac_tool_warned=yes ;;
2981esac
2982 CC=$ac_ct_CC
2983 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002984else
2985 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002986fi
2987
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002988if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002989 if test -n "$ac_tool_prefix"; then
2990 # 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 -05002991set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002993$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002994if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002995 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002996else
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
2999else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003005 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003007 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003009 break 2
3010 fi
3011done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003012 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003013IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003014
3015fi
3016fi
3017CC=$ac_cv_prog_CC
3018if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003020$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003023$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003024fi
3025
Theodore Ts'oe1052142006-10-21 21:46:47 -04003026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003027 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003028fi
3029if test -z "$CC"; then
3030 # Extract the first word of "cc", so it can be a program name with args.
3031set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003033$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003034if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003035 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036else
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003040 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH
3043do
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003046 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3049 ac_prog_rejected=yes
3050 continue
3051 fi
3052 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003054 break 2
3055 fi
3056done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003057 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003058IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003059
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003060if test $ac_prog_rejected = yes; then
3061 # We found a bogon in the path, so make sure we never use it.
3062 set dummy $ac_cv_prog_CC
3063 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003064 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003065 # We chose a different compiler from the bogus one.
3066 # However, it has the same basename, so the bogon will be chosen
3067 # first if we set CC to just the basename; use the full file name.
3068 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003070 fi
3071fi
3072fi
3073fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003074CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003075if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003077$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003078else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003080$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003081fi
3082
Theodore Ts'oe1052142006-10-21 21:46:47 -04003083
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003084fi
3085if test -z "$CC"; then
3086 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003087 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003088 do
3089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3090set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003092$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003093if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003094 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003095else
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3098else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003104 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003108 break 2
3109 fi
3110done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003111 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003112IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003113
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003114fi
3115fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003116CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003117if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003119$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003120else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003122$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003123fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003124
Theodore Ts'oe1052142006-10-21 21:46:47 -04003125
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003126 test -n "$CC" && break
3127 done
3128fi
3129if test -z "$CC"; then
3130 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003131 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003132do
3133 # Extract the first word of "$ac_prog", so it can be a program name with args.
3134set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003136$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003137if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003138 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003139else
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142else
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003148 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003150 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003152 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003153 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003154done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003155 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003156IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003157
3158fi
3159fi
3160ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003163$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003164else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003166$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003167fi
3168
Theodore Ts'oe1052142006-10-21 21:46:47 -04003169
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003170 test -n "$ac_ct_CC" && break
3171done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003172
Theodore Ts'oe1052142006-10-21 21:46:47 -04003173 if test "x$ac_ct_CC" = x; then
3174 CC=""
3175 else
3176 case $cross_compiling:$ac_tool_warned in
3177yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003178{ $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 +01003179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003180ac_tool_warned=yes ;;
3181esac
3182 CC=$ac_ct_CC
3183 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003184fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003185
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003186fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003187
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003188
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003189test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003191as_fn_error $? "no acceptable C compiler found in \$PATH
3192See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003193
3194# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003195$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003196set X $ac_compile
3197ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003198for ac_option in --version -v -V -qversion; do
3199 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003200case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205$as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003207 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003208 if test -s conftest.err; then
3209 sed '10a\
3210... rest of stderr output deleted ...
3211 10q' conftest.err >conftest.er1
3212 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003213 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003214 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }
3217done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003218
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003220/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003221
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003222int
3223main ()
3224{
3225
3226 ;
3227 return 0;
3228}
3229_ACEOF
3230ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003231ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003232# Try to create an executable without -o first, disregard a.out.
3233# It will help us diagnose broken compilers, and finding out an intuition
3234# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3236$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003237ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3238
3239# The possible output files:
3240ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3241
Theodore Ts'oe1052142006-10-21 21:46:47 -04003242ac_rmfiles=
3243for ac_file in $ac_files
3244do
3245 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003247 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3248 esac
3249done
3250rm -f $ac_rmfiles
3251
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003252if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003253case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003259 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003260 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003263 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3264# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3265# in a Makefile. We should not override ac_cv_exeext if it was cached,
3266# so that the user can short-circuit this test for compilers unknown to
3267# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003268for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003269do
3270 test -f "$ac_file" || continue
3271 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003273 ;;
3274 [ab].out )
3275 # We found the default executable, but exeext='' is most
3276 # certainly right.
3277 break;;
3278 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003279 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003280 then :; else
3281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282 fi
3283 # We set ac_cv_exeext here because the later test for it is not
3284 # safe: cross compilers may not add the suffix if given an `-o'
3285 # argument, so we may need to know it at that point already.
3286 # Even if this section looks crufty: it has the advantage of
3287 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003288 break;;
3289 * )
3290 break;;
3291 esac
3292done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003293test "$ac_cv_exeext" = no && ac_cv_exeext=
3294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003295else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003296 ac_file=''
3297fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003298if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300$as_echo "no" >&6; }
3301$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003302sed 's/^/| /' conftest.$ac_ext >&5
3303
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003304{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003306as_fn_error 77 "C compiler cannot create executables
3307See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003308else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003311fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3313$as_echo_n "checking for C compiler default output file name... " >&6; }
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3315$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003316ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003317
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003318rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003319ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003321$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003322if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003323case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003329 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003330 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003333 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3334# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3335# work properly (i.e., refer to `conftest.exe'), while it won't with
3336# `rm'.
3337for ac_file in conftest.exe conftest conftest.*; do
3338 test -f "$ac_file" || continue
3339 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003341 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003342 break;;
3343 * ) break;;
3344 esac
3345done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003346else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003349as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3350See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003351fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003352rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003354$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003355
3356rm -f conftest.$ac_ext
3357EXEEXT=$ac_cv_exeext
3358ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360/* end confdefs.h. */
3361#include <stdio.h>
3362int
3363main ()
3364{
3365FILE *f = fopen ("conftest.out", "w");
3366 return ferror (f) || fclose (f) != 0;
3367
3368 ;
3369 return 0;
3370}
3371_ACEOF
3372ac_clean_files="$ac_clean_files conftest.out"
3373# Check that the compiler produces executables we can run. If not, either
3374# the compiler is broken, or we cross compile.
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3376$as_echo_n "checking whether we are cross compiling... " >&6; }
3377if test "$cross_compiling" != yes; then
3378 { { ac_try="$ac_link"
3379case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382esac
3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384$as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_link") 2>&5
3386 ac_status=$?
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }
3389 if { ac_try='./conftest$ac_cv_exeext'
3390 { { case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393esac
3394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395$as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_try") 2>&5
3397 ac_status=$?
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }; }; then
3400 cross_compiling=no
3401 else
3402 if test "$cross_compiling" = maybe; then
3403 cross_compiling=yes
3404 else
3405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003407as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003408If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003409See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003410 fi
3411 fi
3412fi
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3414$as_echo "$cross_compiling" >&6; }
3415
3416rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3417ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003419$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003420if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003421 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003422else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003424/* end confdefs.h. */
3425
3426int
3427main ()
3428{
3429
3430 ;
3431 return 0;
3432}
3433_ACEOF
3434rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003435if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003436case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003442 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003443 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003446 for ac_file in conftest.o conftest.obj conftest.*; do
3447 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003448 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003450 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3451 break;;
3452 esac
3453done
3454else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003455 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003456sed 's/^/| /' conftest.$ac_ext >&5
3457
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003458{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003460as_fn_error $? "cannot compute suffix of object files: cannot compile
3461See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003462fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003463rm -f conftest.$ac_cv_objext conftest.$ac_ext
3464fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003466$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003467OBJEXT=$ac_cv_objext
3468ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003469{ $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 +01003470$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003471if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003472 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003473else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003475/* end confdefs.h. */
3476
3477int
3478main ()
3479{
3480#ifndef __GNUC__
3481 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003482#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003483
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003484 ;
3485 return 0;
3486}
3487_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003488if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003489 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003490else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003491 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003492fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003494ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003495
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003496fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003498$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3499if test $ac_compiler_gnu = yes; then
3500 GCC=yes
3501else
3502 GCC=
3503fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003504ac_test_CFLAGS=${CFLAGS+set}
3505ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003507$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003508if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003509 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003510else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003511 ac_save_c_werror_flag=$ac_c_werror_flag
3512 ac_c_werror_flag=yes
3513 ac_cv_prog_cc_g=no
3514 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003516/* end confdefs.h. */
3517
3518int
3519main ()
3520{
3521
3522 ;
3523 return 0;
3524}
3525_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003526if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003527 ac_cv_prog_cc_g=yes
3528else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003529 CFLAGS=""
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003531/* end confdefs.h. */
3532
3533int
3534main ()
3535{
3536
3537 ;
3538 return 0;
3539}
3540_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003541if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003542
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003543else
3544 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003545 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003547/* end confdefs.h. */
3548
3549int
3550main ()
3551{
3552
3553 ;
3554 return 0;
3555}
3556_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003557if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003558 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003559fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_c_werror_flag=$ac_save_c_werror_flag
3566fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003568$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003569if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003570 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003571elif test $ac_cv_prog_cc_g = yes; then
3572 if test "$GCC" = yes; then
3573 CFLAGS="-g -O2"
3574 else
3575 CFLAGS="-g"
3576 fi
3577else
3578 if test "$GCC" = yes; then
3579 CFLAGS="-O2"
3580 else
3581 CFLAGS=
3582 fi
3583fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003585$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003586if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003587 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003588else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003589 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003590ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003592/* end confdefs.h. */
3593#include <stdarg.h>
3594#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003595struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003596/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3597struct buf { int x; };
3598FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599static char *e (p, i)
3600 char **p;
3601 int i;
3602{
3603 return p[i];
3604}
3605static char *f (char * (*g) (char **, int), char **p, ...)
3606{
3607 char *s;
3608 va_list v;
3609 va_start (v,p);
3610 s = g (p, va_arg (v,int));
3611 va_end (v);
3612 return s;
3613}
3614
3615/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3616 function prototypes and stuff, but not '\xHH' hex character constants.
3617 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003618 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3620 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003621 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003622int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3623
Theodore Ts'oe1052142006-10-21 21:46:47 -04003624/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3625 inside strings and character constants. */
3626#define FOO(x) 'x'
3627int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3628
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003629int test (int i, double x);
3630struct s1 {int (*f) (int a);};
3631struct s2 {int (*f) (double a);};
3632int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3633int argc;
3634char **argv;
3635int
3636main ()
3637{
3638return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3639 ;
3640 return 0;
3641}
3642_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003645do
3646 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003647 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003648 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003650rm -f core conftest.err conftest.$ac_objext
3651 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003652done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003653rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003654CC=$ac_save_CC
3655
3656fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003657# AC_CACHE_VAL
3658case "x$ac_cv_prog_cc_c89" in
3659 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003661$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003662 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003664$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003665 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003666 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003668$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003669esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003670if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003671
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003672fi
3673
3674ac_ext=c
3675ac_cpp='$CPP $CPPFLAGS'
3676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679
3680
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3682$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003683if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003684 $as_echo_n "(cached) " >&6
3685else
3686 ac_check_lib_save_LIBS=$LIBS
3687LIBS="-ldl $LIBS"
3688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689/* end confdefs.h. */
3690
3691/* Override any GCC internal prototype to avoid an error.
3692 Use char because int might match the return type of a GCC
3693 builtin and then its argument prototype would still apply. */
3694#ifdef __cplusplus
3695extern "C"
3696#endif
3697char dlopen ();
3698int
3699main ()
3700{
3701return dlopen ();
3702 ;
3703 return 0;
3704}
3705_ACEOF
3706if ac_fn_c_try_link "$LINENO"; then :
3707 ac_cv_lib_dl_dlopen=yes
3708else
3709 ac_cv_lib_dl_dlopen=no
3710fi
3711rm -f core conftest.err conftest.$ac_objext \
3712 conftest$ac_exeext conftest.$ac_ext
3713LIBS=$ac_check_lib_save_LIBS
3714fi
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3716$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003717if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003718 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003719
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003720$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3721
3722fi
3723
3724
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003725
3726# Check whether --with-cc was given.
3727if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003728 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003729fi
3730
3731
3732# Check whether --with-ccopts was given.
3733if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003734 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003735fi
3736
3737
3738# Check whether --with-ldopts was given.
3739if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003740 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003741fi
3742
3743ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3750set dummy ${ac_tool_prefix}gcc; ac_word=$2
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003753if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003754 $as_echo_n "(cached) " >&6
3755else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758else
3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760for as_dir in $PATH
3761do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
3769 fi
3770done
3771 done
3772IFS=$as_save_IFS
3773
3774fi
3775fi
3776CC=$ac_cv_prog_CC
3777if test -n "$CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779$as_echo "$CC" >&6; }
3780else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782$as_echo "no" >&6; }
3783fi
3784
3785
3786fi
3787if test -z "$ac_cv_prog_CC"; then
3788 ac_ct_CC=$CC
3789 # Extract the first word of "gcc", so it can be a program name with args.
3790set dummy gcc; ac_word=$2
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003793if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003794 $as_echo_n "(cached) " >&6
3795else
3796 if test -n "$ac_ct_CC"; then
3797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3798else
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH
3801do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003806 ac_cv_prog_ac_ct_CC="gcc"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3809 fi
3810done
3811 done
3812IFS=$as_save_IFS
3813
3814fi
3815fi
3816ac_ct_CC=$ac_cv_prog_ac_ct_CC
3817if test -n "$ac_ct_CC"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3819$as_echo "$ac_ct_CC" >&6; }
3820else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822$as_echo "no" >&6; }
3823fi
3824
3825 if test "x$ac_ct_CC" = x; then
3826 CC=""
3827 else
3828 case $cross_compiling:$ac_tool_warned in
3829yes:)
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832ac_tool_warned=yes ;;
3833esac
3834 CC=$ac_ct_CC
3835 fi
3836else
3837 CC="$ac_cv_prog_CC"
3838fi
3839
3840if test -z "$CC"; then
3841 if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3843set dummy ${ac_tool_prefix}cc; ac_word=$2
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003846if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003847 $as_echo_n "(cached) " >&6
3848else
3849 if test -n "$CC"; then
3850 ac_cv_prog_CC="$CC" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003859 ac_cv_prog_CC="${ac_tool_prefix}cc"
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863done
3864 done
3865IFS=$as_save_IFS
3866
3867fi
3868fi
3869CC=$ac_cv_prog_CC
3870if test -n "$CC"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3872$as_echo "$CC" >&6; }
3873else
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875$as_echo "no" >&6; }
3876fi
3877
3878
3879 fi
3880fi
3881if test -z "$CC"; then
3882 # Extract the first word of "cc", so it can be a program name with args.
3883set dummy cc; ac_word=$2
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003886if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003887 $as_echo_n "(cached) " >&6
3888else
3889 if test -n "$CC"; then
3890 ac_cv_prog_CC="$CC" # Let the user override the test.
3891else
3892 ac_prog_rejected=no
3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH
3895do
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3901 ac_prog_rejected=yes
3902 continue
3903 fi
3904 ac_cv_prog_CC="cc"
3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3907 fi
3908done
3909 done
3910IFS=$as_save_IFS
3911
3912if test $ac_prog_rejected = yes; then
3913 # We found a bogon in the path, so make sure we never use it.
3914 set dummy $ac_cv_prog_CC
3915 shift
3916 if test $# != 0; then
3917 # We chose a different compiler from the bogus one.
3918 # However, it has the same basename, so the bogon will be chosen
3919 # first if we set CC to just the basename; use the full file name.
3920 shift
3921 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3922 fi
3923fi
3924fi
3925fi
3926CC=$ac_cv_prog_CC
3927if test -n "$CC"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3929$as_echo "$CC" >&6; }
3930else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932$as_echo "no" >&6; }
3933fi
3934
3935
3936fi
3937if test -z "$CC"; then
3938 if test -n "$ac_tool_prefix"; then
3939 for ac_prog in cl.exe
3940 do
3941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3942set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003945if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003946 $as_echo_n "(cached) " >&6
3947else
3948 if test -n "$CC"; then
3949 ac_cv_prog_CC="$CC" # Let the user override the test.
3950else
3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH
3953do
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003958 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 break 2
3961 fi
3962done
3963 done
3964IFS=$as_save_IFS
3965
3966fi
3967fi
3968CC=$ac_cv_prog_CC
3969if test -n "$CC"; then
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3971$as_echo "$CC" >&6; }
3972else
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974$as_echo "no" >&6; }
3975fi
3976
3977
3978 test -n "$CC" && break
3979 done
3980fi
3981if test -z "$CC"; then
3982 ac_ct_CC=$CC
3983 for ac_prog in cl.exe
3984do
3985 # Extract the first word of "$ac_prog", so it can be a program name with args.
3986set dummy $ac_prog; ac_word=$2
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003989if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003990 $as_echo_n "(cached) " >&6
3991else
3992 if test -n "$ac_ct_CC"; then
3993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3994else
3995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996for as_dir in $PATH
3997do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004002 ac_cv_prog_ac_ct_CC="$ac_prog"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4005 fi
4006done
4007 done
4008IFS=$as_save_IFS
4009
4010fi
4011fi
4012ac_ct_CC=$ac_cv_prog_ac_ct_CC
4013if test -n "$ac_ct_CC"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4015$as_echo "$ac_ct_CC" >&6; }
4016else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018$as_echo "no" >&6; }
4019fi
4020
4021
4022 test -n "$ac_ct_CC" && break
4023done
4024
4025 if test "x$ac_ct_CC" = x; then
4026 CC=""
4027 else
4028 case $cross_compiling:$ac_tool_warned in
4029yes:)
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4032ac_tool_warned=yes ;;
4033esac
4034 CC=$ac_ct_CC
4035 fi
4036fi
4037
4038fi
4039
4040
4041test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004043as_fn_error $? "no acceptable C compiler found in \$PATH
4044See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004045
4046# Provide some information about the compiler.
4047$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4048set X $ac_compile
4049ac_compiler=$2
4050for ac_option in --version -v -V -qversion; do
4051 { { ac_try="$ac_compiler $ac_option >&5"
4052case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055esac
4056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057$as_echo "$ac_try_echo"; } >&5
4058 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4059 ac_status=$?
4060 if test -s conftest.err; then
4061 sed '10a\
4062... rest of stderr output deleted ...
4063 10q' conftest.err >conftest.er1
4064 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004065 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004066 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068 test $ac_status = 0; }
4069done
4070
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4072$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004073if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004074 $as_echo_n "(cached) " >&6
4075else
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077/* end confdefs.h. */
4078
4079int
4080main ()
4081{
4082#ifndef __GNUC__
4083 choke me
4084#endif
4085
4086 ;
4087 return 0;
4088}
4089_ACEOF
4090if ac_fn_c_try_compile "$LINENO"; then :
4091 ac_compiler_gnu=yes
4092else
4093 ac_compiler_gnu=no
4094fi
4095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096ac_cv_c_compiler_gnu=$ac_compiler_gnu
4097
4098fi
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4100$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4101if test $ac_compiler_gnu = yes; then
4102 GCC=yes
4103else
4104 GCC=
4105fi
4106ac_test_CFLAGS=${CFLAGS+set}
4107ac_save_CFLAGS=$CFLAGS
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4109$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004110if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004111 $as_echo_n "(cached) " >&6
4112else
4113 ac_save_c_werror_flag=$ac_c_werror_flag
4114 ac_c_werror_flag=yes
4115 ac_cv_prog_cc_g=no
4116 CFLAGS="-g"
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h. */
4119
4120int
4121main ()
4122{
4123
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_g=yes
4130else
4131 CFLAGS=""
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133/* end confdefs.h. */
4134
4135int
4136main ()
4137{
4138
4139 ;
4140 return 0;
4141}
4142_ACEOF
4143if ac_fn_c_try_compile "$LINENO"; then :
4144
4145else
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4147 CFLAGS="-g"
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149/* end confdefs.h. */
4150
4151int
4152main ()
4153{
4154
4155 ;
4156 return 0;
4157}
4158_ACEOF
4159if ac_fn_c_try_compile "$LINENO"; then :
4160 ac_cv_prog_cc_g=yes
4161fi
4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163fi
4164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165fi
4166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 ac_c_werror_flag=$ac_save_c_werror_flag
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4170$as_echo "$ac_cv_prog_cc_g" >&6; }
4171if test "$ac_test_CFLAGS" = set; then
4172 CFLAGS=$ac_save_CFLAGS
4173elif test $ac_cv_prog_cc_g = yes; then
4174 if test "$GCC" = yes; then
4175 CFLAGS="-g -O2"
4176 else
4177 CFLAGS="-g"
4178 fi
4179else
4180 if test "$GCC" = yes; then
4181 CFLAGS="-O2"
4182 else
4183 CFLAGS=
4184 fi
4185fi
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4187$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004188if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004189 $as_echo_n "(cached) " >&6
4190else
4191 ac_cv_prog_cc_c89=no
4192ac_save_CC=$CC
4193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h. */
4195#include <stdarg.h>
4196#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004197struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004198/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4199struct buf { int x; };
4200FILE * (*rcsopen) (struct buf *, struct stat *, int);
4201static char *e (p, i)
4202 char **p;
4203 int i;
4204{
4205 return p[i];
4206}
4207static char *f (char * (*g) (char **, int), char **p, ...)
4208{
4209 char *s;
4210 va_list v;
4211 va_start (v,p);
4212 s = g (p, va_arg (v,int));
4213 va_end (v);
4214 return s;
4215}
4216
4217/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4218 function prototypes and stuff, but not '\xHH' hex character constants.
4219 These don't provoke an error unfortunately, instead are silently treated
4220 as 'x'. The following induces an error, until -std is added to get
4221 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4222 array size at least. It's necessary to write '\x00'==0 to get something
4223 that's true only with -std. */
4224int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4225
4226/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4227 inside strings and character constants. */
4228#define FOO(x) 'x'
4229int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4230
4231int test (int i, double x);
4232struct s1 {int (*f) (int a);};
4233struct s2 {int (*f) (double a);};
4234int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4235int argc;
4236char **argv;
4237int
4238main ()
4239{
4240return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4241 ;
4242 return 0;
4243}
4244_ACEOF
4245for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4246 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4247do
4248 CC="$ac_save_CC $ac_arg"
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250 ac_cv_prog_cc_c89=$ac_arg
4251fi
4252rm -f core conftest.err conftest.$ac_objext
4253 test "x$ac_cv_prog_cc_c89" != "xno" && break
4254done
4255rm -f conftest.$ac_ext
4256CC=$ac_save_CC
4257
4258fi
4259# AC_CACHE_VAL
4260case "x$ac_cv_prog_cc_c89" in
4261 x)
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4263$as_echo "none needed" >&6; } ;;
4264 xno)
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4266$as_echo "unsupported" >&6; } ;;
4267 *)
4268 CC="$CC $ac_cv_prog_cc_c89"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4270$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4271esac
4272if test "x$ac_cv_prog_cc_c89" != xno; then :
4273
4274fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004275
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004276ac_ext=c
4277ac_cpp='$CPP $CPPFLAGS'
4278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004282if test "$GCC" = yes; then
4283 RDYNAMIC="-rdynamic"
4284
4285fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004286ac_ext=c
4287ac_cpp='$CPP $CPPFLAGS'
4288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004292$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004293# On Suns, sometimes $CPP names a directory.
4294if test -n "$CPP" && test -d "$CPP"; then
4295 CPP=
4296fi
4297if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004298 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004299 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004300else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004301 # Double quotes because CPP needs to be expanded
4302 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4303 do
4304 ac_preproc_ok=false
4305for ac_c_preproc_warn_flag in '' yes
4306do
4307 # Use a header file that comes with gcc, so configuring glibc
4308 # with a fresh cross-compiler works.
4309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4310 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004311 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004312 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004314/* end confdefs.h. */
4315#ifdef __STDC__
4316# include <limits.h>
4317#else
4318# include <assert.h>
4319#endif
4320 Syntax error
4321_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004322if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004323
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004324else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004325 # Broken: fails on valid input.
4326continue
4327fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004328rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004329
Theodore Ts'oe1052142006-10-21 21:46:47 -04004330 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004331 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004333/* end confdefs.h. */
4334#include <ac_nonexistent.h>
4335_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004336if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004337 # Broken: success on invalid input.
4338continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004339else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004340 # Passes both tests.
4341ac_preproc_ok=:
4342break
4343fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004344rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004345
4346done
4347# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004348rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004349if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004350 break
4351fi
4352
4353 done
4354 ac_cv_prog_CPP=$CPP
4355
4356fi
4357 CPP=$ac_cv_prog_CPP
4358else
4359 ac_cv_prog_CPP=$CPP
4360fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004362$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004363ac_preproc_ok=false
4364for ac_c_preproc_warn_flag in '' yes
4365do
4366 # Use a header file that comes with gcc, so configuring glibc
4367 # with a fresh cross-compiler works.
4368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4369 # <limits.h> exists even on freestanding compilers.
4370 # On the NeXT, cc -E runs the code through the compiler's parser,
4371 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004373/* end confdefs.h. */
4374#ifdef __STDC__
4375# include <limits.h>
4376#else
4377# include <assert.h>
4378#endif
4379 Syntax error
4380_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004381if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004382
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004383else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004384 # Broken: fails on valid input.
4385continue
4386fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004387rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004388
Theodore Ts'oe1052142006-10-21 21:46:47 -04004389 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004390 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004392/* end confdefs.h. */
4393#include <ac_nonexistent.h>
4394_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004395if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004396 # Broken: success on invalid input.
4397continue
4398else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004399 # Passes both tests.
4400ac_preproc_ok=:
4401break
4402fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004403rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004404
4405done
4406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004407rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004408if $ac_preproc_ok; then :
4409
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004410else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004413as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4414See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004415fi
4416
4417ac_ext=c
4418ac_cpp='$CPP $CPPFLAGS'
4419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004424$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004425if test "$GCC" = yes
4426then
4427 case "$host_cpu" in
4428 alpha) addcflags="-mieee" ;;
4429 esac
4430fi
4431if test "x$addcflags" != x
4432then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004434$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004435 CFLAGS="$addcflags $CFLAGS"
4436else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004438$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004439fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004440
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4442$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4443if ${ac_cv_path_GREP+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445else
4446 if test -z "$GREP"; then
4447 ac_path_GREP_found=false
4448 # Loop through the user's path and test for each of PROGNAME-LIST
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4451do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_prog in grep ggrep; do
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4457 as_fn_executable_p "$ac_path_GREP" || continue
4458# Check for GNU ac_path_GREP and select it if it is found.
4459 # Check for GNU $ac_path_GREP
4460case `"$ac_path_GREP" --version 2>&1` in
4461*GNU*)
4462 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4463*)
4464 ac_count=0
4465 $as_echo_n 0123456789 >"conftest.in"
4466 while :
4467 do
4468 cat "conftest.in" "conftest.in" >"conftest.tmp"
4469 mv "conftest.tmp" "conftest.in"
4470 cp "conftest.in" "conftest.nl"
4471 $as_echo 'GREP' >> "conftest.nl"
4472 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474 as_fn_arith $ac_count + 1 && ac_count=$as_val
4475 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4476 # Best one so far, save it but keep looking for a better one
4477 ac_cv_path_GREP="$ac_path_GREP"
4478 ac_path_GREP_max=$ac_count
4479 fi
4480 # 10*(2^10) chars as input seems more than enough
4481 test $ac_count -gt 10 && break
4482 done
4483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484esac
4485
4486 $ac_path_GREP_found && break 3
4487 done
4488 done
4489 done
4490IFS=$as_save_IFS
4491 if test -z "$ac_cv_path_GREP"; then
4492 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4493 fi
4494else
4495 ac_cv_path_GREP=$GREP
4496fi
4497
4498fi
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4500$as_echo "$ac_cv_path_GREP" >&6; }
4501 GREP="$ac_cv_path_GREP"
4502
4503
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4505$as_echo_n "checking for egrep... " >&6; }
4506if ${ac_cv_path_EGREP+:} false; then :
4507 $as_echo_n "(cached) " >&6
4508else
4509 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4510 then ac_cv_path_EGREP="$GREP -E"
4511 else
4512 if test -z "$EGREP"; then
4513 ac_path_EGREP_found=false
4514 # Loop through the user's path and test for each of PROGNAME-LIST
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4517do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_prog in egrep; do
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4523 as_fn_executable_p "$ac_path_EGREP" || continue
4524# Check for GNU ac_path_EGREP and select it if it is found.
4525 # Check for GNU $ac_path_EGREP
4526case `"$ac_path_EGREP" --version 2>&1` in
4527*GNU*)
4528 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4529*)
4530 ac_count=0
4531 $as_echo_n 0123456789 >"conftest.in"
4532 while :
4533 do
4534 cat "conftest.in" "conftest.in" >"conftest.tmp"
4535 mv "conftest.tmp" "conftest.in"
4536 cp "conftest.in" "conftest.nl"
4537 $as_echo 'EGREP' >> "conftest.nl"
4538 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4540 as_fn_arith $ac_count + 1 && ac_count=$as_val
4541 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4542 # Best one so far, save it but keep looking for a better one
4543 ac_cv_path_EGREP="$ac_path_EGREP"
4544 ac_path_EGREP_max=$ac_count
4545 fi
4546 # 10*(2^10) chars as input seems more than enough
4547 test $ac_count -gt 10 && break
4548 done
4549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4550esac
4551
4552 $ac_path_EGREP_found && break 3
4553 done
4554 done
4555 done
4556IFS=$as_save_IFS
4557 if test -z "$ac_cv_path_EGREP"; then
4558 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4559 fi
4560else
4561 ac_cv_path_EGREP=$EGREP
4562fi
4563
4564 fi
4565fi
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4567$as_echo "$ac_cv_path_EGREP" >&6; }
4568 EGREP="$ac_cv_path_EGREP"
4569
4570
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4572$as_echo_n "checking for ANSI C header files... " >&6; }
4573if ${ac_cv_header_stdc+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575else
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577/* end confdefs.h. */
4578#include <stdlib.h>
4579#include <stdarg.h>
4580#include <string.h>
4581#include <float.h>
4582
4583int
4584main ()
4585{
4586
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591if ac_fn_c_try_compile "$LINENO"; then :
4592 ac_cv_header_stdc=yes
4593else
4594 ac_cv_header_stdc=no
4595fi
4596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597
4598if test $ac_cv_header_stdc = yes; then
4599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601/* end confdefs.h. */
4602#include <string.h>
4603
4604_ACEOF
4605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606 $EGREP "memchr" >/dev/null 2>&1; then :
4607
4608else
4609 ac_cv_header_stdc=no
4610fi
4611rm -f conftest*
4612
4613fi
4614
4615if test $ac_cv_header_stdc = yes; then
4616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618/* end confdefs.h. */
4619#include <stdlib.h>
4620
4621_ACEOF
4622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623 $EGREP "free" >/dev/null 2>&1; then :
4624
4625else
4626 ac_cv_header_stdc=no
4627fi
4628rm -f conftest*
4629
4630fi
4631
4632if test $ac_cv_header_stdc = yes; then
4633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4634 if test "$cross_compiling" = yes; then :
4635 :
4636else
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638/* end confdefs.h. */
4639#include <ctype.h>
4640#include <stdlib.h>
4641#if ((' ' & 0x0FF) == 0x020)
4642# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4643# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4644#else
4645# define ISLOWER(c) \
4646 (('a' <= (c) && (c) <= 'i') \
4647 || ('j' <= (c) && (c) <= 'r') \
4648 || ('s' <= (c) && (c) <= 'z'))
4649# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4650#endif
4651
4652#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4653int
4654main ()
4655{
4656 int i;
4657 for (i = 0; i < 256; i++)
4658 if (XOR (islower (i), ISLOWER (i))
4659 || toupper (i) != TOUPPER (i))
4660 return 2;
4661 return 0;
4662}
4663_ACEOF
4664if ac_fn_c_try_run "$LINENO"; then :
4665
4666else
4667 ac_cv_header_stdc=no
4668fi
4669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4670 conftest.$ac_objext conftest.beam conftest.$ac_ext
4671fi
4672
4673fi
4674fi
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4676$as_echo "$ac_cv_header_stdc" >&6; }
4677if test $ac_cv_header_stdc = yes; then
4678
4679$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4680
4681fi
4682
4683# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4684for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4685 inttypes.h stdint.h unistd.h
4686do :
4687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4688ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4689"
4690if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4691 cat >>confdefs.h <<_ACEOF
4692#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4693_ACEOF
4694
4695fi
4696
4697done
4698
4699
4700
4701 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4702if test "x$ac_cv_header_minix_config_h" = xyes; then :
4703 MINIX=yes
4704else
4705 MINIX=
4706fi
4707
4708
4709 if test "$MINIX" = yes; then
4710
4711$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4712
4713
4714$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4715
4716
4717$as_echo "#define _MINIX 1" >>confdefs.h
4718
4719 fi
4720
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4723$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4724if ${ac_cv_safe_to_define___extensions__+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728/* end confdefs.h. */
4729
4730# define __EXTENSIONS__ 1
4731 $ac_includes_default
4732int
4733main ()
4734{
4735
4736 ;
4737 return 0;
4738}
4739_ACEOF
4740if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_cv_safe_to_define___extensions__=yes
4742else
4743 ac_cv_safe_to_define___extensions__=no
4744fi
4745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746fi
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4748$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4749 test $ac_cv_safe_to_define___extensions__ = yes &&
4750 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4751
4752 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4753
4754 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4755
4756 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4757
4758 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4759
4760
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004761LIB_EXT=.a
4762STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004763PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004764
Theodore Ts'oe1052142006-10-21 21:46:47 -04004765# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004766if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004767 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004768else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004769 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004770fi
4771# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004772if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004773 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004774then
4775 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004777$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004778else
4779 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004781$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004782fi
4783
4784else
4785 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004787$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004788
Theodore Ts'oe1052142006-10-21 21:46:47 -04004789fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004790
Theodore Ts'oe1052142006-10-21 21:46:47 -04004791
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004792# Check whether --enable-symlink-install was given.
4793if test "${enable_symlink_install+set}" = set; then :
4794 enableval=$enable_symlink_install; if test "$enableval" = "no"
4795then
4796 LINK_INSTALL_FLAGS=-f
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4798$as_echo "Disabling symlinks for install" >&6; }
4799else
4800 LINK_INSTALL_FLAGS=-sf
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4802$as_echo "Enabling symlinks for install" >&6; }
4803fi
4804
4805else
4806 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4808$as_echo "Disabling symlinks for install by default" >&6; }
4809
4810fi
4811
4812
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004813relative_symlink_defined=
4814# Check whether --enable-relative-symlinks was given.
4815if test "${enable_relative_symlinks+set}" = set; then :
4816 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004817then
4818 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004819 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4821$as_echo "Disabling relative symlinks for install" >&6; }
4822else
4823 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004824 relative_symlink_defined=yes
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4826$as_echo "Enabling relative symlinks for install" >&6; }
4827fi
4828fi
4829
4830# Check whether --enable-symlink-relative-symlinks was given.
4831if test "${enable_symlink_relative_symlinks+set}" = set; then :
4832 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4833then
4834 SYMLINK_RELATIVE=yes
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4836$as_echo "Disabling relative symlinks for install" >&6; }
4837else
4838 SYMLINK_RELATIVE=--relative
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4840$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004841fi
4842
4843else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004844 if test -z "$relative_symlink_defined"
4845then
4846 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4848$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004849fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004850
4851fi
4852
4853
4854# Check whether --enable-symlink-build was given.
4855if test "${enable_symlink_build+set}" = set; then :
4856 enableval=$enable_symlink_build; if test "$enableval" = "no"
4857then
4858 LINK_BUILD_FLAGS=
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4860$as_echo "Disabling symlinks for build" >&6; }
4861else
4862 LINK_BUILD_FLAGS=-s
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4864$as_echo "Enabling symlinks for build" >&6; }
4865fi
4866
4867else
4868 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4870$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004871
4872fi
4873
4874
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004875# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004876if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004877 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4878then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004880$as_echo "Disabling verbose make commands" >&6; }
4881 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004882 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004883 Q=@
4884else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004886$as_echo "Enabling verbose make commands" >&6; }
4887 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004888 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004889 Q=
4890fi
4891
4892else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004894$as_echo "Disabling verbose make commands" >&6; }
4895E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004896ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004897Q=@
4898
4899fi
4900
4901
4902
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004903
Theodore Ts'oe1052142006-10-21 21:46:47 -04004904# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004905if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004906 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004907then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004909$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004910else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004911
4912$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004913
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004915$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004917$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004918fi
4919
4920else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004922$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004923
Theodore Ts'oe1052142006-10-21 21:46:47 -04004924fi
4925
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004926
Theodore Ts'oe1052142006-10-21 21:46:47 -04004927# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004928if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004929 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004930then
4931 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004933$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004934else
4935 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004936 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004937
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004939$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004940fi
4941
4942else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004943 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004944$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004945
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004947$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004948
Theodore Ts'oe1052142006-10-21 21:46:47 -04004949fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004950
Theodore Ts'oe1052142006-10-21 21:46:47 -04004951
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004952E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004953LDFLAG_DYNAMIC=
4954PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004955# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004956if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004957 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004958then
4959 ELF_CMT=#
4960 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004962$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004963else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004964 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004965 ELF_CMT=
4966 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004967 case "$host_os" in
4968 solaris2.*)
4969 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4970 ;;
4971 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004972 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004973 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004974 PRIVATE_LIBS_CMT=#
4975 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004977$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004978fi
4979
4980else
4981 MAKEFILE_ELF=/dev/null
4982ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004984$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004985
Theodore Ts'oe1052142006-10-21 21:46:47 -04004986fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004987
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004988
Theodore Ts'oe1052142006-10-21 21:46:47 -04004989
4990# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004991if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004992 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004993then
4994 BSDLIB_CMT=#
4995 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004997$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004998else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004999 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005000 BSDLIB_CMT=
5001 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00005002 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05005003 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05005004 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05005005 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5006 LIB_EXT=.dylib
5007 ;;
5008 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005010$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005011fi
5012
5013else
5014 MAKEFILE_BSDLIB=/dev/null
5015BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005017$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005018
Theodore Ts'oe1052142006-10-21 21:46:47 -04005019fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005020
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005021
Theodore Ts'oe1052142006-10-21 21:46:47 -04005022
5023# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005024if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005025 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005026then
5027 PROFILE_CMT=#
5028 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005030$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005031else
5032 PROFILE_CMT=
5033 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5034 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005036$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005037fi
5038
5039else
5040 PROFILE_CMT=#
5041MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005043$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005044
Theodore Ts'oe1052142006-10-21 21:46:47 -04005045fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005046
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005047
Theodore Ts'oe1052142006-10-21 21:46:47 -04005048
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005049# Check whether --enable-gcov was given.
5050if test "${enable_gcov+set}" = set; then :
5051 enableval=$enable_gcov; if test "$enableval" = "yes"
5052then
5053 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5054 LDFLAGS="-fprofile-arcs -ftest-coverage"
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5056$as_echo "Enabling gcov support" >&6; }
5057fi
5058
5059fi
5060
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005061
5062
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005063
Theodore Ts'oe1052142006-10-21 21:46:47 -04005064
Theodore Ts'o55da9872008-09-02 23:12:38 -04005065
5066
Theodore Ts'oe1052142006-10-21 21:46:47 -04005067# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005068if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005069 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005070then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005072$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005073else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005074
5075$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005076
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005078$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005079fi
5080
5081else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005083$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005084
Theodore Ts'oe1052142006-10-21 21:46:47 -04005085fi
5086
5087# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005088if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005089 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005090then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005092$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005093else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005094
5095$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005096
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005098$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005099fi
5100
5101else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005103$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005104
Theodore Ts'oe1052142006-10-21 21:46:47 -04005105fi
5106
5107# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005108if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005109 enableval=$enable_testio_debug;
5110if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005111then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005113$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005114 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005115else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005116 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005117 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005118
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005120$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005121fi
5122
5123else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005125$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005126$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005127
5128TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005129
Theodore Ts'oe1052142006-10-21 21:46:47 -04005130fi
5131
Theodore Ts'oaf773652008-09-01 11:27:27 -04005132
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005133
5134
Theodore Ts'o93613952014-07-03 23:44:13 -04005135
5136
5137
5138
5139
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005140if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005141 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005142 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5143set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005145$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005146if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005147 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005148else
5149 case $PKG_CONFIG in
5150 [\\/]* | ?:[\\/]*)
5151 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5152 ;;
5153 *)
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155for as_dir in $PATH
5156do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005159 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005161 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005163 break 2
5164 fi
5165done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005166 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005167IFS=$as_save_IFS
5168
5169 ;;
5170esac
5171fi
5172PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5173if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005175$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005176else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005178$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005179fi
5180
5181
5182fi
5183if test -z "$ac_cv_path_PKG_CONFIG"; then
5184 ac_pt_PKG_CONFIG=$PKG_CONFIG
5185 # Extract the first word of "pkg-config", so it can be a program name with args.
5186set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005188$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005189if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005190 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005191else
5192 case $ac_pt_PKG_CONFIG in
5193 [\\/]* | ?:[\\/]*)
5194 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5195 ;;
5196 *)
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005202 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005204 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005206 break 2
5207 fi
5208done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005209 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005210IFS=$as_save_IFS
5211
5212 ;;
5213esac
5214fi
5215ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5216if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005218$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005219else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005221$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005222fi
5223
5224 if test "x$ac_pt_PKG_CONFIG" = x; then
5225 PKG_CONFIG=""
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005229{ $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 +01005230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005231ac_tool_warned=yes ;;
5232esac
5233 PKG_CONFIG=$ac_pt_PKG_CONFIG
5234 fi
5235else
5236 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5237fi
5238
5239fi
5240if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005241 _pkg_min_version=0.9.0
5242 { $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 +01005243$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005244 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005246$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005247 else
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005249$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005250 PKG_CONFIG=""
5251 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005252fi
5253LIBUUID=
5254DEPLIBUUID=
5255STATIC_LIBUUID=
5256DEPSTATIC_LIBUUID=
5257PROFILED_LIBUUID=
5258DEPPROFILED_LIBUUID=
5259UUID_CMT=
5260# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005261if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005262 enableval=$enable_libuuid; if test "$enableval" = "no"
5263then
5264 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005265 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005266 fi
5267
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005269$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005270if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005271 $as_echo_n "(cached) " >&6
5272else
5273 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005274LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005276/* end confdefs.h. */
5277
5278/* Override any GCC internal prototype to avoid an error.
5279 Use char because int might match the return type of a GCC
5280 builtin and then its argument prototype would still apply. */
5281#ifdef __cplusplus
5282extern "C"
5283#endif
5284char uuid_generate ();
5285int
5286main ()
5287{
5288return uuid_generate ();
5289 ;
5290 return 0;
5291}
5292_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005293if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005294 ac_cv_lib_uuid_uuid_generate=yes
5295else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005296 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005297fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005298rm -f core conftest.err conftest.$ac_objext \
5299 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005300LIBS=$ac_check_lib_save_LIBS
5301fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005303$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005304if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005305 LIBUUID=`$PKG_CONFIG --libs uuid`;
5306 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5307else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005308 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005309fi
5310
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005311 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005312 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005314$as_echo "Disabling private uuid library" >&6; }
5315else
5316 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5317 DEPLIBUUID=$LIBUUID
5318 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5319 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5320 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5321 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005323$as_echo "Enabling private uuid library" >&6; }
5324fi
5325
5326else
5327 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5328DEPLIBUUID=$LIBUUID
5329STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5330DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5331PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5332DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005334$as_echo "Enabling private uuid library by default" >&6; }
5335
5336fi
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
Theodore Ts'o93613952014-07-03 23:44:13 -04005347
5348
5349
5350
5351
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005352if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005353 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005354 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5355set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005357$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005358if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005359 $as_echo_n "(cached) " >&6
5360else
5361 case $PKG_CONFIG in
5362 [\\/]* | ?:[\\/]*)
5363 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5364 ;;
5365 *)
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005371 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005373 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005375 break 2
5376 fi
5377done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005378 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005379IFS=$as_save_IFS
5380
5381 ;;
5382esac
5383fi
5384PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5385if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005387$as_echo "$PKG_CONFIG" >&6; }
5388else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005390$as_echo "no" >&6; }
5391fi
5392
5393
5394fi
5395if test -z "$ac_cv_path_PKG_CONFIG"; then
5396 ac_pt_PKG_CONFIG=$PKG_CONFIG
5397 # Extract the first word of "pkg-config", so it can be a program name with args.
5398set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005400$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005401if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005402 $as_echo_n "(cached) " >&6
5403else
5404 case $ac_pt_PKG_CONFIG in
5405 [\\/]* | ?:[\\/]*)
5406 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5407 ;;
5408 *)
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005414 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005416 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005418 break 2
5419 fi
5420done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005421 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005422IFS=$as_save_IFS
5423
5424 ;;
5425esac
5426fi
5427ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5428if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005430$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5431else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005433$as_echo "no" >&6; }
5434fi
5435
5436 if test "x$ac_pt_PKG_CONFIG" = x; then
5437 PKG_CONFIG=""
5438 else
5439 case $cross_compiling:$ac_tool_warned in
5440yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005441{ $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 +01005442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5443ac_tool_warned=yes ;;
5444esac
5445 PKG_CONFIG=$ac_pt_PKG_CONFIG
5446 fi
5447else
5448 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5449fi
5450
5451fi
5452if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005453 _pkg_min_version=0.9.0
5454 { $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 +01005455$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005456 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005458$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005459 else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005461$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005462 PKG_CONFIG=""
5463 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005464fi
5465LIBBLKID=
5466DEPLIBBLKID=
5467STATIC_LIBBLKID=
5468DEPSTATIC_LIBBLKID=
5469PROFILED_LIBBLKID=
5470DEPPROFILED_LIBBLKID=
5471BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005472
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005473# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005474if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005475 enableval=$enable_libblkid; if test "$enableval" = "no"
5476then
5477 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005478 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005479 fi
5480
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005482$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005483if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005484 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005485else
5486 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005487LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005489/* end confdefs.h. */
5490
5491/* Override any GCC internal prototype to avoid an error.
5492 Use char because int might match the return type of a GCC
5493 builtin and then its argument prototype would still apply. */
5494#ifdef __cplusplus
5495extern "C"
5496#endif
5497char blkid_get_cache ();
5498int
5499main ()
5500{
5501return blkid_get_cache ();
5502 ;
5503 return 0;
5504}
5505_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005506if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005507 ac_cv_lib_blkid_blkid_get_cache=yes
5508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005509 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005510fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005511rm -f core conftest.err conftest.$ac_objext \
5512 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005513LIBS=$ac_check_lib_save_LIBS
5514fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005516$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005517if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005518 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5519 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5520else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005521 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005522fi
5523
5524 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005525 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005527$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005528else
5529 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5530 DEPLIBBLKID=$LIBBLKID
5531 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5532 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5533 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5534 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005535 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005536
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005538$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005539fi
5540
5541else
5542 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5543DEPLIBBLKID=$LIBBLKID
5544STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5545DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5546PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5547DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005548$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005549
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005551$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005552
5553fi
5554
5555
5556
5557
5558
5559
5560
5561
Eric Sandeenf5589f42013-10-14 08:54:15 -04005562QUOTA_MAN_COMMENT='.\"'
Niu Yawei43075b42013-10-14 09:49:27 -04005563QUOTA_CMT=
Eric Sandeenf5589f42013-10-14 08:54:15 -04005564
Aditya Kalif239fef2011-07-20 11:40:02 -07005565
5566
Theodore Ts'o93613952014-07-03 23:44:13 -04005567
5568
5569
5570
5571
Aditya Kalif239fef2011-07-20 11:40:02 -07005572if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005573 if test -n "$ac_tool_prefix"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005574 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5575set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005578if ${ac_cv_path_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005579 $as_echo_n "(cached) " >&6
5580else
5581 case $PKG_CONFIG in
5582 [\\/]* | ?:[\\/]*)
5583 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5584 ;;
5585 *)
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
5588do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005593 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597done
5598 done
5599IFS=$as_save_IFS
5600
5601 ;;
5602esac
5603fi
5604PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5605if test -n "$PKG_CONFIG"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5607$as_echo "$PKG_CONFIG" >&6; }
5608else
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610$as_echo "no" >&6; }
5611fi
5612
5613
5614fi
5615if test -z "$ac_cv_path_PKG_CONFIG"; then
5616 ac_pt_PKG_CONFIG=$PKG_CONFIG
5617 # Extract the first word of "pkg-config", so it can be a program name with args.
5618set dummy pkg-config; ac_word=$2
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005621if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Aditya Kalif239fef2011-07-20 11:40:02 -07005622 $as_echo_n "(cached) " >&6
5623else
5624 case $ac_pt_PKG_CONFIG in
5625 [\\/]* | ?:[\\/]*)
5626 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5627 ;;
5628 *)
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Aditya Kalif239fef2011-07-20 11:40:02 -07005636 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 break 2
5639 fi
5640done
5641 done
5642IFS=$as_save_IFS
5643
5644 ;;
5645esac
5646fi
5647ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5648if test -n "$ac_pt_PKG_CONFIG"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5650$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5651else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }
5654fi
5655
5656 if test "x$ac_pt_PKG_CONFIG" = x; then
5657 PKG_CONFIG=""
5658 else
5659 case $cross_compiling:$ac_tool_warned in
5660yes:)
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663ac_tool_warned=yes ;;
5664esac
5665 PKG_CONFIG=$ac_pt_PKG_CONFIG
5666 fi
5667else
5668 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5669fi
5670
5671fi
5672if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005673 _pkg_min_version=0.9.0
5674 { $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 -07005675$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005676 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005678$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Aditya Kalif239fef2011-07-20 11:40:02 -07005681$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005682 PKG_CONFIG=""
5683 fi
Aditya Kalif239fef2011-07-20 11:40:02 -07005684fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005685
5686# Check whether --enable-quota was given.
5687if test "${enable_quota+set}" = set; then :
5688 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005689then
Niu Yawei43075b42013-10-14 09:49:27 -04005690 QUOTA_CMT=#
Theodore Ts'o7becb202011-11-14 10:40:43 -05005691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5692$as_echo "Disabling quota support" >&6; }
5693else
Niu Yawei43075b42013-10-14 09:49:27 -04005694 QUOTA_CMT=
Theodore Ts'o7becb202011-11-14 10:40:43 -05005695 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005696
Theodore Ts'o7becb202011-11-14 10:40:43 -05005697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5698$as_echo "Enabling quota support" >&6; }
Eric Sandeenf5589f42013-10-14 08:54:15 -04005699 QUOTA_MAN_COMMENT=""
5700
Aditya Kalif239fef2011-07-20 11:40:02 -07005701fi
5702
5703else
Niu Yawei43075b42013-10-14 09:49:27 -04005704 QUOTA_CMT=#
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
Theodore Ts'o7becb202011-11-14 10:40:43 -05005706$as_echo "Disabling quota support by default" >&6; }
5707
5708fi
5709
5710LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005711DEPLIBQUOTA=$LIBQUOTA
5712STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5713DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5714PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5715DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005716
5717
5718
5719
5720
5721
5722
Theodore Ts'o3df60142013-06-16 16:14:40 -04005723
5724# Check whether --enable-backtrace was given.
5725if test "${enable_backtrace+set}" = set; then :
5726 enableval=$enable_backtrace; if test "$enableval" = "no"
5727then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5729$as_echo "Disabling use of backtrace" >&6; }
5730 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5731
5732else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5734$as_echo "Enabling use of backtrace" >&6; }
5735fi
5736
5737else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5739$as_echo "Enabling use of backtrace by default" >&6; }
5740
5741fi
5742
Theodore Ts'oe1052142006-10-21 21:46:47 -04005743# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005744if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005745 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005746then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005748$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005749 DEBUGFS_CMT="#"
5750else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005751 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005753$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005754fi
5755
5756else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005758$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005759DEBUGFS_CMT=
5760
Theodore Ts'oe1052142006-10-21 21:46:47 -04005761fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005762
Theodore Ts'oe1052142006-10-21 21:46:47 -04005763
5764# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005765if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005766 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005767then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005769$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005770 IMAGER_CMT="#"
5771else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005772 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005774$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005775fi
5776
5777else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005779$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005780IMAGER_CMT=
5781
Theodore Ts'oe1052142006-10-21 21:46:47 -04005782fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005783
Theodore Ts'oe1052142006-10-21 21:46:47 -04005784
5785# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005786if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005787 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005788then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005790$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005791 RESIZER_CMT="#"
5792else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005793 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005795$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005796fi
5797
5798else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005800$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005801RESIZER_CMT=
5802
Theodore Ts'oe1052142006-10-21 21:46:47 -04005803fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005804
Theodore Ts'oe1052142006-10-21 21:46:47 -04005805
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005806# Check whether --enable-defrag was given.
5807if test "${enable_defrag+set}" = set; then :
5808 enableval=$enable_defrag; if test "$enableval" = "no"
5809then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5811$as_echo "Disabling e4defrag support" >&6; }
5812 DEFRAG_CMT="#"
5813else
5814 DEFRAG_CMT=
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5816$as_echo "Enabling e4defrag support" >&6; }
5817fi
5818
5819else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005820 if test -z "$WITH_DIET_LIBC"
5821then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005823$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005824 DEFRAG_CMT=
5825else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5827$as_echo "Disabling e4defrag support by default" >&6; }
5828 DEFRAG_CMT="#"
5829fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005830
5831fi
5832
5833
Theodore Ts'oe1052142006-10-21 21:46:47 -04005834# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005835if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005836 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005837then
5838 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005840$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005841else
5842 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005844$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005845fi
5846
5847else
5848 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005849 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005850 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005852$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005853 ;;
5854 *)
5855 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005857$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005858esac
5859
Theodore Ts'oe1052142006-10-21 21:46:47 -04005860fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005861
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005862
Theodore Ts'oe1052142006-10-21 21:46:47 -04005863
5864# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005865if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005866 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005867then
5868 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005870$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005871else
5872 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005874$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005875fi
5876
5877else
5878 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005880$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005881
Theodore Ts'oe1052142006-10-21 21:46:47 -04005882fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005883
5884
Theodore Ts'oe1052142006-10-21 21:46:47 -04005885
Theodore Ts'o32493942007-12-31 10:45:01 -05005886# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005887if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005888 enableval=$enable_tls; if test "$enableval" = "no"
5889then
5890 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005892$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005893else
5894 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005896$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005897fi
5898
5899else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005900 if test -n "$WITH_DIET_LIBC"
5901then
5902 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005903 { $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 +01005904$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005905else
5906 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005908$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005909fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005910
5911fi
5912
5913if test "$try_tls" = "yes"
5914then
5915
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005917$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005918 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005919 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005920else
5921
5922 ax_tls_keywords="__thread __declspec(thread) none"
5923 for ax_tls_keyword in $ax_tls_keywords; do
5924 case $ax_tls_keyword in
5925 none) ac_cv_tls=none ; break ;;
5926 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005928/* end confdefs.h. */
5929#include <stdlib.h>
5930 static void
5931 foo(void) {
5932 static $ax_tls_keyword int bar;
5933 exit(1);
5934 }
5935int
5936main ()
5937{
5938
5939 ;
5940 return 0;
5941}
5942_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005943if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005944 ac_cv_tls=$ax_tls_keyword ; break
5945else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005946 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005947
5948fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 esac
5951 done
5952
5953fi
5954
5955
5956 if test "$ac_cv_tls" != "none"; then
5957
5958cat >>confdefs.h <<_ACEOF
5959#define TLS $ac_cv_tls
5960_ACEOF
5961
5962 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005964$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005965
5966fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005967
Theodore Ts'o5610f992007-12-31 11:16:56 -05005968# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005969if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005970 enableval=$enable_uuidd; if test "$enableval" = "no"
5971then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005973$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005974 UUIDD_CMT="#"
5975else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005976 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005977
5978 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005980$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005981fi
5982
5983else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005984 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005985
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005986if test -z "$UUID_CMT"
5987then
5988 UUIDD_CMT=""
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005990$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005991else
5992 UUIDD_CMT="#"
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5994$as_echo "Disabling uuidd by default" >&6; }
5995fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005996
5997fi
5998
5999
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006000
6001# Check whether --enable-mmp was given.
6002if test "${enable_mmp+set}" = set; then :
6003 enableval=$enable_mmp; if test "$enableval" = "no"
6004then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6006$as_echo "Disabling mmp support" >&6; }
6007else
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6009$as_echo "Enabling mmp support" >&6; }
6010 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6011
6012fi
6013
6014else
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6016$as_echo "Enabling mmp support by default" >&6; }
6017$as_echo "#define CONFIG_MMP 1" >>confdefs.h
6018
6019
6020fi
6021
Tony Breeds1625bf42012-07-30 14:44:12 -04006022
6023# Check whether --enable-bmap-stats was given.
6024if test "${enable_bmap_stats+set}" = set; then :
6025 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6026then
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6028$as_echo "Disabling bitmap statistics support" >&6; }
6029else
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6031$as_echo "Enabling bitmap statistics support" >&6; }
6032 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6033
6034fi
6035
6036else
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6038$as_echo "Enabling bitmap statistics support by default" >&6; }
6039$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6040
6041
6042fi
6043
6044
6045# Check whether --enable-bmap-stats-ops was given.
6046if test "${enable_bmap_stats_ops+set}" = set; then :
6047 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6048then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6050$as_echo "Disabling additional bitmap statistics" >&6; }
6051else
6052 if test "x${enable_bmap_stats}" = "xno"; then :
6053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6055as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6056See \`config.log' for more details" "$LINENO" 5; }
6057fi
6058
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6060$as_echo "Enabling additional bitmap statistics" >&6; }
6061 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6062
6063fi
6064
6065else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6067$as_echo "Disabling additional bitmap statistics by default" >&6; }
6068
6069fi
6070
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006071MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6072
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006073GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006074PACKAGE=e2fsprogs
6075VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006076VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006077
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006078cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006079#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006080_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006081
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006082
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006083cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006084#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006085_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006086
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006087
6088
6089
6090
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006092$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6093set x ${MAKE-make}
6094ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006095if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006096 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006097else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006098 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006099SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006100all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006101 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006102_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006103# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006104case `${MAKE-make} -f conftest.make 2>/dev/null` in
6105 *@@@%%%=?*=@@@%%%*)
6106 eval ac_cv_prog_make_${ac_make}_set=yes;;
6107 *)
6108 eval ac_cv_prog_make_${ac_make}_set=no;;
6109esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006110rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006111fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006112if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006114$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006115 SET_MAKE=
6116else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006118$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006119 SET_MAKE="MAKE=${MAKE-make}"
6120fi
6121
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006122# Find a good install program. We prefer a C program (faster),
6123# so one script is as good as another. But avoid the broken or
6124# incompatible versions:
6125# SysV /etc/install, /usr/sbin/install
6126# SunOS /usr/etc/install
6127# IRIX /sbin/install
6128# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006129# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006130# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6131# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6132# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006133# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006134# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006135# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006137$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006138if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006139if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006140 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006147 # Account for people who put trailing slashes in PATH elements.
6148case $as_dir/ in #((
6149 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006151 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006152 /usr/ucb/* ) ;;
6153 *)
6154 # OSF1 and SCO ODT 3.0 have their own names for install.
6155 # Don't use installbsd from OSF since it installs stuff as root
6156 # by default.
6157 for ac_prog in ginstall scoinst install; do
6158 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006159 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006160 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006162 # AIX install. It has an incompatible calling convention.
6163 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006164 elif test $ac_prog = install &&
6165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6166 # program-specific install script used by HP pwplus--don't use.
6167 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006168 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006169 rm -rf conftest.one conftest.two conftest.dir
6170 echo one > conftest.one
6171 echo two > conftest.two
6172 mkdir conftest.dir
6173 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6174 test -s conftest.one && test -s conftest.two &&
6175 test -s conftest.dir/conftest.one &&
6176 test -s conftest.dir/conftest.two
6177 then
6178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6179 break 3
6180 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006181 fi
6182 fi
6183 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006184 done
6185 ;;
6186esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006187
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006188 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006189IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006190
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006191rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006192
6193fi
6194 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006195 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006196 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006197 # As a last resort, use the slow shell script. Don't cache a
6198 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006199 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006200 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006201 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006202 fi
6203fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006205$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006206
6207# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6208# It thinks the first close brace ends the variable substitution.
6209test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6210
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006211test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006212
6213test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6214
Theodore Ts'o93613952014-07-03 23:44:13 -04006215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6216$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6217if test -z "$MKDIR_P"; then
6218 if ${ac_cv_path_mkdir+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6223do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_prog in mkdir gmkdir; do
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6229 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6230 'mkdir (GNU coreutils) '* | \
6231 'mkdir (coreutils) '* | \
6232 'mkdir (fileutils) '4.1*)
6233 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6234 break 3;;
6235 esac
6236 done
6237 done
6238 done
6239IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006240
Theodore Ts'o93613952014-07-03 23:44:13 -04006241fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006242
Theodore Ts'o93613952014-07-03 23:44:13 -04006243 test -d ./--version && rmdir ./--version
6244 if test "${ac_cv_path_mkdir+set}" = set; then
6245 MKDIR_P="$ac_cv_path_mkdir -p"
6246 else
6247 # As a last resort, use the slow shell script. Don't cache a
6248 # value for MKDIR_P within a source directory, because that will
6249 # break other packages using the cache if that directory is
6250 # removed, or if the value is a relative name.
6251 MKDIR_P="$ac_install_sh -d"
6252 fi
6253fi
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6255$as_echo "$MKDIR_P" >&6; }
6256
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6258$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6259if ${ac_cv_path_SED+:} false; then :
6260 $as_echo_n "(cached) " >&6
6261else
6262 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6263 for ac_i in 1 2 3 4 5 6 7; do
6264 ac_script="$ac_script$as_nl$ac_script"
6265 done
6266 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6267 { ac_script=; unset ac_script;}
6268 if test -z "$SED"; then
6269 ac_path_SED_found=false
6270 # Loop through the user's path and test for each of PROGNAME-LIST
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_prog in sed gsed; do
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6279 as_fn_executable_p "$ac_path_SED" || continue
6280# Check for GNU ac_path_SED and select it if it is found.
6281 # Check for GNU $ac_path_SED
6282case `"$ac_path_SED" --version 2>&1` in
6283*GNU*)
6284 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6285*)
6286 ac_count=0
6287 $as_echo_n 0123456789 >"conftest.in"
6288 while :
6289 do
6290 cat "conftest.in" "conftest.in" >"conftest.tmp"
6291 mv "conftest.tmp" "conftest.in"
6292 cp "conftest.in" "conftest.nl"
6293 $as_echo '' >> "conftest.nl"
6294 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6296 as_fn_arith $ac_count + 1 && ac_count=$as_val
6297 if test $ac_count -gt ${ac_path_SED_max-0}; then
6298 # Best one so far, save it but keep looking for a better one
6299 ac_cv_path_SED="$ac_path_SED"
6300 ac_path_SED_max=$ac_count
6301 fi
6302 # 10*(2^10) chars as input seems more than enough
6303 test $ac_count -gt 10 && break
6304 done
6305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6306esac
6307
6308 $ac_path_SED_found && break 3
6309 done
6310 done
6311 done
6312IFS=$as_save_IFS
6313 if test -z "$ac_cv_path_SED"; then
6314 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6315 fi
6316else
6317 ac_cv_path_SED=$SED
6318fi
6319
6320fi
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6322$as_echo "$ac_cv_path_SED" >&6; }
6323 SED="$ac_cv_path_SED"
6324 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006325
6326
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006328$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006329 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006330if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006331 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006332else
6333 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006334fi
6335
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006337$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006338
6339
6340
6341
Theodore Ts'o93613952014-07-03 23:44:13 -04006342 GETTEXT_MACRO_VERSION=0.18
6343
6344
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006345
6346
6347# Prepare PATH_SEPARATOR.
6348# The user is always right.
6349if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006350 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6351 # contains only /bin. Note that ksh looks also at the FPATH variable,
6352 # so we have to set that as well for the test.
6353 PATH_SEPARATOR=:
6354 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6355 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6356 || PATH_SEPARATOR=';'
6357 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006358fi
6359
6360# Find out how to test for executable files. Don't use a zero-byte file,
6361# as systems may use methods other than mode bits to determine executability.
6362cat >conf$$.file <<_ASEOF
6363#! /bin/sh
6364exit 0
6365_ASEOF
6366chmod +x conf$$.file
6367if test -x conf$$.file >/dev/null 2>&1; then
6368 ac_executable_p="test -x"
6369else
6370 ac_executable_p="test -f"
6371fi
6372rm -f conf$$.file
6373
6374# Extract the first word of "msgfmt", so it can be a program name with args.
6375set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006377$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006378if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006379 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006380else
6381 case "$MSGFMT" in
6382 [\\/]* | ?:[\\/]*)
6383 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6384 ;;
6385 *)
6386 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6387 for ac_dir in $PATH; do
6388 IFS="$ac_save_IFS"
6389 test -z "$ac_dir" && ac_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006392 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6393 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006394 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6395 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6396 break 2
6397 fi
6398 fi
6399 done
6400 done
6401 IFS="$ac_save_IFS"
6402 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6403 ;;
6404esac
6405fi
6406MSGFMT="$ac_cv_path_MSGFMT"
6407if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006409$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006410else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006412$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006413fi
6414
6415 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6416set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006418$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006419if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006420 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006421else
6422 case $GMSGFMT in
6423 [\\/]* | ?:[\\/]*)
6424 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6425 ;;
6426 *)
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006432 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006434 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006436 break 2
6437 fi
6438done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006439 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006440IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006441
6442 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6443 ;;
6444esac
6445fi
6446GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006447if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006449$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006450else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006452$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006453fi
6454
6455
6456
Theodore Ts'o93613952014-07-03 23:44:13 -04006457 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6458 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6459 *) MSGFMT_015=$MSGFMT ;;
6460 esac
6461
6462 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6463 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6464 *) GMSGFMT_015=$GMSGFMT ;;
6465 esac
6466
6467
Theodore Ts'oe1052142006-10-21 21:46:47 -04006468
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006469# Prepare PATH_SEPARATOR.
6470# The user is always right.
6471if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006472 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6473 # contains only /bin. Note that ksh looks also at the FPATH variable,
6474 # so we have to set that as well for the test.
6475 PATH_SEPARATOR=:
6476 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6477 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6478 || PATH_SEPARATOR=';'
6479 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006480fi
6481
6482# Find out how to test for executable files. Don't use a zero-byte file,
6483# as systems may use methods other than mode bits to determine executability.
6484cat >conf$$.file <<_ASEOF
6485#! /bin/sh
6486exit 0
6487_ASEOF
6488chmod +x conf$$.file
6489if test -x conf$$.file >/dev/null 2>&1; then
6490 ac_executable_p="test -x"
6491else
6492 ac_executable_p="test -f"
6493fi
6494rm -f conf$$.file
6495
6496# Extract the first word of "xgettext", so it can be a program name with args.
6497set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006499$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006500if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006501 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006502else
6503 case "$XGETTEXT" in
6504 [\\/]* | ?:[\\/]*)
6505 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6506 ;;
6507 *)
6508 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6509 for ac_dir in $PATH; do
6510 IFS="$ac_save_IFS"
6511 test -z "$ac_dir" && ac_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006514 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6515 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 -05006516 (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
6517 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6518 break 2
6519 fi
6520 fi
6521 done
6522 done
6523 IFS="$ac_save_IFS"
6524 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6525 ;;
6526esac
6527fi
6528XGETTEXT="$ac_cv_path_XGETTEXT"
6529if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006531$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006532else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006534$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006535fi
6536
6537 rm -f messages.po
6538
Theodore Ts'o93613952014-07-03 23:44:13 -04006539 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6540 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6541 *) XGETTEXT_015=$XGETTEXT ;;
6542 esac
6543
6544
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006545
6546# Prepare PATH_SEPARATOR.
6547# The user is always right.
6548if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006549 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6550 # contains only /bin. Note that ksh looks also at the FPATH variable,
6551 # so we have to set that as well for the test.
6552 PATH_SEPARATOR=:
6553 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6554 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6555 || PATH_SEPARATOR=';'
6556 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006557fi
6558
6559# Find out how to test for executable files. Don't use a zero-byte file,
6560# as systems may use methods other than mode bits to determine executability.
6561cat >conf$$.file <<_ASEOF
6562#! /bin/sh
6563exit 0
6564_ASEOF
6565chmod +x conf$$.file
6566if test -x conf$$.file >/dev/null 2>&1; then
6567 ac_executable_p="test -x"
6568else
6569 ac_executable_p="test -f"
6570fi
6571rm -f conf$$.file
6572
6573# Extract the first word of "msgmerge", so it can be a program name with args.
6574set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006576$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006577if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006578 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006579else
6580 case "$MSGMERGE" in
6581 [\\/]* | ?:[\\/]*)
6582 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6583 ;;
6584 *)
6585 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6586 for ac_dir in $PATH; do
6587 IFS="$ac_save_IFS"
6588 test -z "$ac_dir" && ac_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006591 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6592 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6594 break 2
6595 fi
6596 fi
6597 done
6598 done
6599 IFS="$ac_save_IFS"
6600 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6601 ;;
6602esac
6603fi
6604MSGMERGE="$ac_cv_path_MSGMERGE"
6605if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006607$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006608else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006610$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006611fi
6612
6613
Theodore Ts'o93613952014-07-03 23:44:13 -04006614 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006616
Theodore Ts'o93613952014-07-03 23:44:13 -04006617 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6618
6619
6620 ac_config_commands="$ac_config_commands po-directories"
6621
6622
6623
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6625$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6626if ${ac_cv_gnu_library_2+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628else
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h. */
6631
6632#include <features.h>
6633#ifdef __GNU_LIBRARY__
6634 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6635 Lucky GNU user
6636 #endif
6637#endif
6638
6639_ACEOF
6640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6641 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6642 ac_cv_gnu_library_2=yes
6643else
6644 ac_cv_gnu_library_2=no
6645fi
6646rm -f conftest*
6647
6648
6649
6650fi
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6652$as_echo "$ac_cv_gnu_library_2" >&6; }
6653
6654 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006655
6656
6657if test -n "$ac_tool_prefix"; then
6658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6659set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006661$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006662if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006663 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006664else
6665 if test -n "$RANLIB"; then
6666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6667else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669for as_dir in $PATH
6670do
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006673 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677 break 2
6678 fi
6679done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006680 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006681IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006682
6683fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006684fi
6685RANLIB=$ac_cv_prog_RANLIB
6686if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006688$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006689else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006691$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006692fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006693
Theodore Ts'oe1052142006-10-21 21:46:47 -04006694
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006695fi
6696if test -z "$ac_cv_prog_RANLIB"; then
6697 ac_ct_RANLIB=$RANLIB
6698 # Extract the first word of "ranlib", so it can be a program name with args.
6699set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006701$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006702if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006703 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006704else
6705 if test -n "$ac_ct_RANLIB"; then
6706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6707else
6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006713 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006715 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006717 break 2
6718 fi
6719done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006720 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006721IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006722
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723fi
6724fi
6725ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6726if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006728$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006729else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006731$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732fi
6733
Theodore Ts'oe1052142006-10-21 21:46:47 -04006734 if test "x$ac_ct_RANLIB" = x; then
6735 RANLIB=":"
6736 else
6737 case $cross_compiling:$ac_tool_warned in
6738yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006739{ $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 +01006740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006741ac_tool_warned=yes ;;
6742esac
6743 RANLIB=$ac_ct_RANLIB
6744 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006745else
6746 RANLIB="$ac_cv_prog_RANLIB"
6747fi
6748
6749
Theodore Ts'o93613952014-07-03 23:44:13 -04006750
6751 CFLAG_VISIBILITY=
6752 HAVE_VISIBILITY=0
6753 if test -n "$GCC"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6755$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6756 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006757 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006758else
Theodore Ts'o93613952014-07-03 23:44:13 -04006759
6760 gl_save_CFLAGS="$CFLAGS"
6761 CFLAGS="$CFLAGS -Werror"
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006763/* end confdefs.h. */
6764
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006765int
6766main ()
6767{
Theodore Ts'o93613952014-07-03 23:44:13 -04006768
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006769 ;
6770 return 0;
6771}
6772_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006773if ac_fn_c_try_compile "$LINENO"; then :
6774 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006775else
Theodore Ts'o93613952014-07-03 23:44:13 -04006776 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006777fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006780fi
6781
Theodore Ts'o93613952014-07-03 23:44:13 -04006782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6783$as_echo "$gl_cv_cc_vis_werror" >&6; }
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6785$as_echo_n "checking for simple visibility declarations... " >&6; }
6786 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006787 $as_echo_n "(cached) " >&6
6788else
Theodore Ts'o93613952014-07-03 23:44:13 -04006789
6790 gl_save_CFLAGS="$CFLAGS"
6791 CFLAGS="$CFLAGS -fvisibility=hidden"
6792 if test $gl_cv_cc_vis_werror = yes; then
6793 CFLAGS="$CFLAGS -Werror"
6794 fi
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796/* end confdefs.h. */
6797extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6798 extern __attribute__((__visibility__("default"))) int exportedvar;
6799 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6800 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6801 void dummyfunc (void) {}
6802
6803int
6804main ()
6805{
6806
6807 ;
6808 return 0;
6809}
6810_ACEOF
6811if ac_fn_c_try_compile "$LINENO"; then :
6812 gl_cv_cc_visibility=yes
6813else
6814 gl_cv_cc_visibility=no
6815fi
6816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6817 CFLAGS="$gl_save_CFLAGS"
6818fi
6819
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6821$as_echo "$gl_cv_cc_visibility" >&6; }
6822 if test $gl_cv_cc_visibility = yes; then
6823 CFLAG_VISIBILITY="-fvisibility=hidden"
6824 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006825 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006826 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006827
6828
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006829
Theodore Ts'o93613952014-07-03 23:44:13 -04006830cat >>confdefs.h <<_ACEOF
6831#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006832_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006834
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006836$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006837if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006838 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006839else
6840 ac_cv_c_inline=no
6841for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006843/* end confdefs.h. */
6844#ifndef __cplusplus
6845typedef int foo_t;
6846static $ac_kw foo_t static_foo () {return 0; }
6847$ac_kw foo_t foo () {return 0; }
6848#endif
6849
6850_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006851if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006852 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006856done
6857
6858fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006860$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006861
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006863 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006864 *)
6865 case $ac_cv_c_inline in
6866 no) ac_val=;;
6867 *) ac_val=$ac_cv_c_inline;;
6868 esac
6869 cat >>confdefs.h <<_ACEOF
6870#ifndef __cplusplus
6871#define inline $ac_val
6872#endif
6873_ACEOF
6874 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006875esac
6876
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006877ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006878if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006879
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006880else
6881
6882cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006883#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884_ACEOF
6885
6886fi
6887
6888
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006890$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006891if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006892 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006893else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006895/* end confdefs.h. */
6896#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006897 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006898int
6899main ()
6900{
Theodore Ts'o93613952014-07-03 23:44:13 -04006901uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006902 ;
6903 return 0;
6904}
6905_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006906if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006907 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006908else
Theodore Ts'o93613952014-07-03 23:44:13 -04006909 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006910fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006912fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6914$as_echo "$gl_cv_header_stdint_h" >&6; }
6915 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006916
6917cat >>confdefs.h <<_ACEOF
6918#define HAVE_STDINT_H_WITH_UINTMAX 1
6919_ACEOF
6920
6921 fi
6922
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006923# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6924# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006926$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006927if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006928 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006929else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006931/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006932#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006933int
6934main ()
6935{
6936char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006937 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006938 ;
6939 return 0;
6940}
6941_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006942if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006944else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006945 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006946fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006947rm -f core conftest.err conftest.$ac_objext \
6948 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006949fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006951$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006952if test $ac_cv_working_alloca_h = yes; then
6953
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006954$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006955
6956fi
6957
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006959$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006960if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006961 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006962else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006964/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006965#ifdef __GNUC__
6966# define alloca __builtin_alloca
6967#else
6968# ifdef _MSC_VER
6969# include <malloc.h>
6970# define alloca _alloca
6971# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006972# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006973# include <alloca.h>
6974# else
6975# ifdef _AIX
6976 #pragma alloca
6977# else
6978# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006979void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006980# endif
6981# endif
6982# endif
6983# endif
6984#endif
6985
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006986int
6987main ()
6988{
6989char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006990 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006991 ;
6992 return 0;
6993}
6994_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006995if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006996 ac_cv_func_alloca_works=yes
6997else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006998 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006999fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007000rm -f core conftest.err conftest.$ac_objext \
7001 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007002fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007004$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007005
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007006if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007007
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007008$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007009
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007010else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007011 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7012# that cause trouble. Some versions do not even contain alloca or
7013# contain a buggy version. If you still want to use their alloca,
7014# use ar to extract alloca.o from them instead of compiling alloca.c.
7015
Theodore Ts'oe1052142006-10-21 21:46:47 -04007016ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007017
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007018$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007019
7020
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007022$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007023if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007024 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007025else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007028#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007029webecray
7030#else
7031wenotbecray
7032#endif
7033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007034_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007036 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007037 ac_cv_os_cray=yes
7038else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007039 ac_cv_os_cray=no
7040fi
7041rm -f conftest*
7042
7043fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007045$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007046if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007047 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007049ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007050if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051
7052cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007053#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007054_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007055
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007056 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007057fi
7058
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007059 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007060fi
7061
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007063$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007064if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007065 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007066else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007067 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007068 ac_cv_c_stack_direction=0
7069else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007071/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007072$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007073int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007074find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007075{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007076 int dir, dummy = 0;
7077 if (! addr)
7078 addr = &dummy;
7079 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7080 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7081 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007082}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007083
7084int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007085main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007086{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007087 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007088}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007090if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007091 ac_cv_c_stack_direction=1
7092else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007093 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007094fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7096 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007097fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007098
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007099fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007101$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007102cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007103#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007104_ACEOF
7105
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007106
7107fi
7108
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007109
7110
7111
7112 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007113do :
7114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007115ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7116"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007117if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007118 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007119#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120_ACEOF
7121
7122fi
7123
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007124done
7125
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007126
7127
7128
7129
7130
7131
7132
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007133for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007134do :
7135 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007136if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007137 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007138#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007139_ACEOF
7140
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007141fi
7142done
7143
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007145$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007146if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007147 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007148else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007149 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007150 ac_cv_func_mmap_fixed_mapped=no
7151else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007153/* end confdefs.h. */
7154$ac_includes_default
7155/* malloc might have been renamed as rpl_malloc. */
7156#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007157
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007158/* Thanks to Mike Haertel and Jim Avera for this test.
7159 Here is a matrix of mmap possibilities:
7160 mmap private not fixed
7161 mmap private fixed at somewhere currently unmapped
7162 mmap private fixed at somewhere already mapped
7163 mmap shared not fixed
7164 mmap shared fixed at somewhere currently unmapped
7165 mmap shared fixed at somewhere already mapped
7166 For private mappings, we should verify that changes cannot be read()
7167 back from the file, nor mmap's back from the file at a different
7168 address. (There have been systems where private was not correctly
7169 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007170 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007171 like early versions of FreeBSD and possibly contemporary NetBSD.)
7172 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007173 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007174
7175 Grep wants private fixed already mapped.
7176 The main things grep needs to know about mmap are:
7177 * does it exist and is it safe to write into the mmap'd area
7178 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007179
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007180#include <fcntl.h>
7181#include <sys/mman.h>
7182
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007183#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007184char *malloc ();
7185#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007186
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007187/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007188#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007189# ifdef _SC_PAGESIZE
7190# define getpagesize() sysconf(_SC_PAGESIZE)
7191# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007192# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007193# include <sys/param.h>
7194# ifdef EXEC_PAGESIZE
7195# define getpagesize() EXEC_PAGESIZE
7196# else /* no EXEC_PAGESIZE */
7197# ifdef NBPG
7198# define getpagesize() NBPG * CLSIZE
7199# ifndef CLSIZE
7200# define CLSIZE 1
7201# endif /* no CLSIZE */
7202# else /* no NBPG */
7203# ifdef NBPC
7204# define getpagesize() NBPC
7205# else /* no NBPC */
7206# ifdef PAGESIZE
7207# define getpagesize() PAGESIZE
7208# endif /* PAGESIZE */
7209# endif /* no NBPC */
7210# endif /* no NBPG */
7211# endif /* no EXEC_PAGESIZE */
7212# else /* no HAVE_SYS_PARAM_H */
7213# define getpagesize() 8192 /* punt totally */
7214# endif /* no HAVE_SYS_PARAM_H */
7215# endif /* no _SC_PAGESIZE */
7216
7217#endif /* no HAVE_GETPAGESIZE */
7218
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007219int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007220main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007221{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007222 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007223 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007224 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007225 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007226
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007227 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007228
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007229 /* First, make a file with some known garbage in it. */
7230 data = (char *) malloc (pagesize);
7231 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007232 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007233 for (i = 0; i < pagesize; ++i)
7234 *(data + i) = rand ();
7235 umask (0);
7236 fd = creat ("conftest.mmap", 0600);
7237 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007238 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007239 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007240 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007241 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007242
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007243 /* Next, check that the tail of a page is zero-filled. File must have
7244 non-zero length, otherwise we risk SIGBUS for entire page. */
7245 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7246 if (fd2 < 0)
7247 return 4;
7248 cdata2 = "";
7249 if (write (fd2, cdata2, 1) != 1)
7250 return 5;
7251 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7252 if (data2 == MAP_FAILED)
7253 return 6;
7254 for (i = 0; i < pagesize; ++i)
7255 if (*(data2 + i))
7256 return 7;
7257 close (fd2);
7258 if (munmap (data2, pagesize))
7259 return 8;
7260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007261 /* Next, try to mmap the file at a fixed address which already has
7262 something else allocated at it. If we can, also make sure that
7263 we see the same garbage. */
7264 fd = open ("conftest.mmap", O_RDWR);
7265 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007266 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007267 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7268 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007269 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007270 for (i = 0; i < pagesize; ++i)
7271 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007272 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007273
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007274 /* Finally, make sure that changes to the mapped area do not
7275 percolate back to the file as seen by read(). (This is a bug on
7276 some variants of i386 svr4.0.) */
7277 for (i = 0; i < pagesize; ++i)
7278 *(data2 + i) = *(data2 + i) + 1;
7279 data3 = (char *) malloc (pagesize);
7280 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007281 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007282 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007283 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007284 for (i = 0; i < pagesize; ++i)
7285 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007286 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007287 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007288 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007289}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007290_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007291if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007292 ac_cv_func_mmap_fixed_mapped=yes
7293else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007294 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007295fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7297 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007298fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007299
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007300fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007302$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007303if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007304
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007305$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007306
7307fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007308rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007309
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007310
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007311
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007313$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007314if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007315 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007316else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007317
Theodore Ts'o93613952014-07-03 23:44:13 -04007318 gt_cv_int_divbyzero_sigfpe=
7319 case "$host_os" in
7320 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7321 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7322 # compiling. If we were to perform the real test, 1 Crash Report
7323 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007324 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007325 i[34567]86 | x86_64)
7326 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007327 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007328 ;;
7329 esac
7330 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7331 if test "$cross_compiling" = yes; then :
7332
7333 # Guess based on the CPU.
7334 case "$host_cpu" in
7335 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7336 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7337 *)
7338 gt_cv_int_divbyzero_sigfpe="guessing no";;
7339 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007340
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007341else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007343/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007344
7345#include <stdlib.h>
7346#include <signal.h>
7347
7348static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007349sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007350{
7351 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7352 exit (sig != SIGFPE);
7353}
7354
7355int x = 1;
7356int y = 0;
7357int z;
7358int nan;
7359
7360int main ()
7361{
7362 signal (SIGFPE, sigfpe_handler);
7363/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7364#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7365 signal (SIGTRAP, sigfpe_handler);
7366#endif
7367/* Linux/SPARC yields signal SIGILL. */
7368#if defined (__sparc__) && defined (__linux__)
7369 signal (SIGILL, sigfpe_handler);
7370#endif
7371
7372 z = x / y;
7373 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007374 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007375}
7376
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007377_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007378if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007379 gt_cv_int_divbyzero_sigfpe=yes
7380else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007381 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007382fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7384 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007385fi
7386
Theodore Ts'o93613952014-07-03 23:44:13 -04007387 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007388
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007389fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007391$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007392 case "$gt_cv_int_divbyzero_sigfpe" in
7393 *yes) value=1;;
7394 *) value=0;;
7395 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007396
7397cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007398#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007399_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007400
7401
7402
Theodore Ts'o93613952014-07-03 23:44:13 -04007403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7404$as_echo_n "checking for inttypes.h... " >&6; }
7405if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007406 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007407else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007409/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007410
7411#include <sys/types.h>
7412#include <inttypes.h>
7413
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007414int
7415main ()
7416{
Theodore Ts'o93613952014-07-03 23:44:13 -04007417uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007418 ;
7419 return 0;
7420}
7421_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007422if ac_fn_c_try_compile "$LINENO"; then :
7423 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007424else
Theodore Ts'o93613952014-07-03 23:44:13 -04007425 gl_cv_header_inttypes_h=no
7426fi
7427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428fi
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7430$as_echo "$gl_cv_header_inttypes_h" >&6; }
7431 if test $gl_cv_header_inttypes_h = yes; then
7432
7433cat >>confdefs.h <<_ACEOF
7434#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7435_ACEOF
7436
7437 fi
7438
7439
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7441$as_echo_n "checking for unsigned long long int... " >&6; }
7442if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7443 $as_echo_n "(cached) " >&6
7444else
7445 ac_cv_type_unsigned_long_long_int=yes
7446 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h. */
7449
7450 /* For now, do not test the preprocessor; as of 2007 there are too many
7451 implementations with broken preprocessors. Perhaps this can
7452 be revisited in 2012. In the meantime, code should not expect
7453 #if to work with literals wider than 32 bits. */
7454 /* Test literals. */
7455 long long int ll = 9223372036854775807ll;
7456 long long int nll = -9223372036854775807LL;
7457 unsigned long long int ull = 18446744073709551615ULL;
7458 /* Test constant expressions. */
7459 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7460 ? 1 : -1)];
7461 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7462 ? 1 : -1)];
7463 int i = 63;
7464int
7465main ()
7466{
7467/* Test availability of runtime routines for shift and division. */
7468 long long int llmax = 9223372036854775807ll;
7469 unsigned long long int ullmax = 18446744073709551615ull;
7470 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7471 | (llmax / ll) | (llmax % ll)
7472 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7473 | (ullmax / ull) | (ullmax % ull));
7474 ;
7475 return 0;
7476}
7477
7478_ACEOF
7479if ac_fn_c_try_link "$LINENO"; then :
7480
7481else
7482 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007483fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007484rm -f core conftest.err conftest.$ac_objext \
7485 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007486 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007487fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7489$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7490 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007491
Theodore Ts'o93613952014-07-03 23:44:13 -04007492$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007493
7494 fi
7495
7496
7497
7498
Theodore Ts'o93613952014-07-03 23:44:13 -04007499 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007500
Theodore Ts'o93613952014-07-03 23:44:13 -04007501 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007502 && ac_type='unsigned long long' \
7503 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007504
7505cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007506#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007507_ACEOF
7508
7509 else
7510
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007511$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007512
7513 fi
7514
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007515
Theodore Ts'o93613952014-07-03 23:44:13 -04007516 for ac_header in inttypes.h
7517do :
7518 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7519if test "x$ac_cv_header_inttypes_h" = xyes; then :
7520 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007521#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007522_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007523
Theodore Ts'o93613952014-07-03 23:44:13 -04007524fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007525
Theodore Ts'o93613952014-07-03 23:44:13 -04007526done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007527
Theodore Ts'o93613952014-07-03 23:44:13 -04007528 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007529 { $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 +01007530$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007531if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007532 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007533else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007534
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007536/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007537
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007538#include <inttypes.h>
7539#ifdef PRId32
7540char *p = PRId32;
7541#endif
7542
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007543int
7544main ()
7545{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007546
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007547 ;
7548 return 0;
7549}
7550_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007551if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007552 gt_cv_inttypes_pri_broken=no
7553else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007554 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007555fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007557
7558fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007560$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007561 fi
7562 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007563
7564cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007565#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007566_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007567
Theodore Ts'o93613952014-07-03 23:44:13 -04007568 PRI_MACROS_BROKEN=1
7569 else
7570 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007571 fi
7572
7573
7574
Theodore Ts'o93613952014-07-03 23:44:13 -04007575
7576
7577
7578
7579 # Check whether --enable-threads was given.
7580if test "${enable_threads+set}" = set; then :
7581 enableval=$enable_threads; gl_use_threads=$enableval
7582else
7583 if test -n "$gl_use_threads_default"; then
7584 gl_use_threads="$gl_use_threads_default"
7585 else
7586 case "$host_os" in
7587 osf*) gl_use_threads=no ;;
7588 cygwin*)
7589 case `uname -r` in
7590 1.[0-5].*) gl_use_threads=no ;;
7591 *) gl_use_threads=yes ;;
7592 esac
7593 ;;
7594 *) gl_use_threads=yes ;;
7595 esac
7596 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007597
7598fi
7599
Theodore Ts'o93613952014-07-03 23:44:13 -04007600 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7601 # For using <pthread.h>:
7602 case "$host_os" in
7603 osf*)
7604 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7605 # groks <pthread.h>. cc also understands the flag -pthread, but
7606 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7607 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7608 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7609 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7610 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7611 ;;
7612 esac
7613 # Some systems optimize for single-threaded programs by default, and
7614 # need special flags to disable these optimizations. For example, the
7615 # definition of 'errno' in <errno.h>.
7616 case "$host_os" in
7617 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7618 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7619 esac
7620 fi
7621
7622
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007623
7624
7625
7626 if test "X$prefix" = "XNONE"; then
7627 acl_final_prefix="$ac_default_prefix"
7628 else
7629 acl_final_prefix="$prefix"
7630 fi
7631 if test "X$exec_prefix" = "XNONE"; then
7632 acl_final_exec_prefix='${prefix}'
7633 else
7634 acl_final_exec_prefix="$exec_prefix"
7635 fi
7636 acl_save_prefix="$prefix"
7637 prefix="$acl_final_prefix"
7638 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7639 prefix="$acl_save_prefix"
7640
7641
Theodore Ts'o93613952014-07-03 23:44:13 -04007642
Theodore Ts'oe1052142006-10-21 21:46:47 -04007643# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007644if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007645 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007646else
7647 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007648fi
7649
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007650# Prepare PATH_SEPARATOR.
7651# The user is always right.
7652if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007653 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7654 # contains only /bin. Note that ksh looks also at the FPATH variable,
7655 # so we have to set that as well for the test.
7656 PATH_SEPARATOR=:
7657 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7658 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7659 || PATH_SEPARATOR=';'
7660 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007661fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007662
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007663ac_prog=ld
7664if test "$GCC" = yes; then
7665 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7667$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007668 case $host in
7669 *-*-mingw*)
7670 # gcc leaves a trailing carriage return which upsets mingw
7671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7672 *)
7673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7674 esac
7675 case $ac_prog in
7676 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007677 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007678 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007679 # Canonicalize the pathname of ld
7680 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7681 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7682 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007683 done
7684 test -z "$LD" && LD="$ac_prog"
7685 ;;
7686 "")
7687 # If it fails, then pretend we aren't using GCC.
7688 ac_prog=ld
7689 ;;
7690 *)
7691 # If it is relative, then search for the first ld in PATH.
7692 with_gnu_ld=unknown
7693 ;;
7694 esac
7695elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007697$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007698else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007700$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007701fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007702if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007703 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007704else
7705 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007706 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007707 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007708 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007709 test -z "$ac_dir" && ac_dir=.
7710 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7711 acl_cv_path_LD="$ac_dir/$ac_prog"
7712 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007713 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007714 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007715 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007716 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007717 test "$with_gnu_ld" != no && break
7718 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007719 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007720 test "$with_gnu_ld" != yes && break
7721 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007722 esac
7723 fi
7724 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007725 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007726else
7727 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7728fi
7729fi
7730
7731LD="$acl_cv_path_LD"
7732if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007734$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007735else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007737$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007738fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007739test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007741$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007742if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007743 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007744else
Theodore Ts'o93613952014-07-03 23:44:13 -04007745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007746case `$LD -v 2>&1 </dev/null` in
7747*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007748 acl_cv_prog_gnu_ld=yes
7749 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007750*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007751 acl_cv_prog_gnu_ld=no
7752 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007753esac
7754fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007756$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007757with_gnu_ld=$acl_cv_prog_gnu_ld
7758
7759
7760
Theodore Ts'o93613952014-07-03 23:44:13 -04007761
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007763$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007764if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007765 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007766else
7767
7768 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7769 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7770 . ./conftest.sh
7771 rm -f ./conftest.sh
7772 acl_cv_rpath=done
7773
7774fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007776$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007777 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007778 acl_libext="$acl_cv_libext"
7779 acl_shlibext="$acl_cv_shlibext"
7780 acl_libname_spec="$acl_cv_libname_spec"
7781 acl_library_names_spec="$acl_cv_library_names_spec"
7782 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7783 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7784 acl_hardcode_direct="$acl_cv_hardcode_direct"
7785 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007786 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007787if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007788 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007789else
7790 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007791fi
7792
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007793
7794
7795
Theodore Ts'o93613952014-07-03 23:44:13 -04007796 acl_libdirstem=lib
7797 acl_libdirstem2=
7798 case "$host_os" in
7799 solaris*)
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7801$as_echo_n "checking for 64-bit host... " >&6; }
7802if ${gl_cv_solaris_64bit+:} false; then :
7803 $as_echo_n "(cached) " >&6
7804else
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806/* end confdefs.h. */
7807
7808#ifdef _LP64
7809sixtyfour bits
7810#endif
7811
7812_ACEOF
7813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7814 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7815 gl_cv_solaris_64bit=yes
7816else
7817 gl_cv_solaris_64bit=no
7818fi
7819rm -f conftest*
7820
7821
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7824$as_echo "$gl_cv_solaris_64bit" >&6; }
7825 if test $gl_cv_solaris_64bit = yes; then
7826 acl_libdirstem=lib/64
7827 case "$host_cpu" in
7828 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7829 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7830 esac
7831 fi
7832 ;;
7833 *)
7834 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7835 if test -n "$searchpath"; then
7836 acl_save_IFS="${IFS= }"; IFS=":"
7837 for searchdir in $searchpath; do
7838 if test -d "$searchdir"; then
7839 case "$searchdir" in
7840 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7841 */../ | */.. )
7842 # Better ignore directories of this form. They are misleading.
7843 ;;
7844 *) searchdir=`cd "$searchdir" && pwd`
7845 case "$searchdir" in
7846 */lib64 ) acl_libdirstem=lib64 ;;
7847 esac ;;
7848 esac
7849 fi
7850 done
7851 IFS="$acl_save_IFS"
7852 fi
7853 ;;
7854 esac
7855 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7856
7857
7858
7859 gl_threads_api=none
7860 LIBTHREAD=
7861 LTLIBTHREAD=
7862 LIBMULTITHREAD=
7863 LTLIBMULTITHREAD=
7864 if test "$gl_use_threads" != no; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7866$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7867if ${gl_cv_have_weak+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869else
7870 gl_cv_have_weak=no
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872/* end confdefs.h. */
7873extern void xyzzy ();
7874#pragma weak xyzzy
7875int
7876main ()
7877{
7878xyzzy();
7879 ;
7880 return 0;
7881}
7882_ACEOF
7883if ac_fn_c_try_link "$LINENO"; then :
7884 gl_cv_have_weak=maybe
7885fi
7886rm -f core conftest.err conftest.$ac_objext \
7887 conftest$ac_exeext conftest.$ac_ext
7888 if test $gl_cv_have_weak = maybe; then
7889 if test "$cross_compiling" = yes; then :
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891/* end confdefs.h. */
7892#ifdef __ELF__
7893 Extensible Linking Format
7894 #endif
7895
7896_ACEOF
7897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7898 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7899 gl_cv_have_weak="guessing yes"
7900else
7901 gl_cv_have_weak="guessing no"
7902fi
7903rm -f conftest*
7904
7905
7906else
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908/* end confdefs.h. */
7909
7910#include <stdio.h>
7911#pragma weak fputs
7912int main ()
7913{
7914 return (fputs == NULL);
7915}
7916_ACEOF
7917if ac_fn_c_try_run "$LINENO"; then :
7918 gl_cv_have_weak=yes
7919else
7920 gl_cv_have_weak=no
7921fi
7922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7923 conftest.$ac_objext conftest.beam conftest.$ac_ext
7924fi
7925
7926 fi
7927
7928fi
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7930$as_echo "$gl_cv_have_weak" >&6; }
7931 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7932 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7933 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7934 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7935if test "x$ac_cv_header_pthread_h" = xyes; then :
7936 gl_have_pthread_h=yes
7937else
7938 gl_have_pthread_h=no
7939fi
7940
7941
7942 if test "$gl_have_pthread_h" = yes; then
7943 # Other possible tests:
7944 # -lpthreads (FSU threads, PCthreads)
7945 # -lgthreads
7946 gl_have_pthread=
7947 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7948 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7949 # the second one only in libpthread, and lock.c needs it.
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951/* end confdefs.h. */
7952#include <pthread.h>
7953int
7954main ()
7955{
7956pthread_mutex_lock((pthread_mutex_t*)0);
7957 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7958 ;
7959 return 0;
7960}
7961_ACEOF
7962if ac_fn_c_try_link "$LINENO"; then :
7963 gl_have_pthread=yes
7964fi
7965rm -f core conftest.err conftest.$ac_objext \
7966 conftest$ac_exeext conftest.$ac_ext
7967 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7968 # since it is defined as a macro on OSF/1.)
7969 if test -n "$gl_have_pthread"; then
7970 # The program links fine without libpthread. But it may actually
7971 # need to link with libpthread in order to create multiple threads.
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7973$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7974if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7975 $as_echo_n "(cached) " >&6
7976else
7977 ac_check_lib_save_LIBS=$LIBS
7978LIBS="-lpthread $LIBS"
7979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980/* end confdefs.h. */
7981
7982/* Override any GCC internal prototype to avoid an error.
7983 Use char because int might match the return type of a GCC
7984 builtin and then its argument prototype would still apply. */
7985#ifdef __cplusplus
7986extern "C"
7987#endif
7988char pthread_kill ();
7989int
7990main ()
7991{
7992return pthread_kill ();
7993 ;
7994 return 0;
7995}
7996_ACEOF
7997if ac_fn_c_try_link "$LINENO"; then :
7998 ac_cv_lib_pthread_pthread_kill=yes
7999else
8000 ac_cv_lib_pthread_pthread_kill=no
8001fi
8002rm -f core conftest.err conftest.$ac_objext \
8003 conftest$ac_exeext conftest.$ac_ext
8004LIBS=$ac_check_lib_save_LIBS
8005fi
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8007$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8008if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8009 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8010 # On Solaris and HP-UX, most pthread functions exist also in libc.
8011 # Therefore pthread_in_use() needs to actually try to create a
8012 # thread: pthread_create from libc will fail, whereas
8013 # pthread_create will actually create a thread.
8014 case "$host_os" in
8015 solaris* | hpux*)
8016
8017$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8018
8019 esac
8020
8021fi
8022
8023 else
8024 # Some library is needed. Try libpthread and libc_r.
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8026$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8027if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8028 $as_echo_n "(cached) " >&6
8029else
8030 ac_check_lib_save_LIBS=$LIBS
8031LIBS="-lpthread $LIBS"
8032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033/* end confdefs.h. */
8034
8035/* Override any GCC internal prototype to avoid an error.
8036 Use char because int might match the return type of a GCC
8037 builtin and then its argument prototype would still apply. */
8038#ifdef __cplusplus
8039extern "C"
8040#endif
8041char pthread_kill ();
8042int
8043main ()
8044{
8045return pthread_kill ();
8046 ;
8047 return 0;
8048}
8049_ACEOF
8050if ac_fn_c_try_link "$LINENO"; then :
8051 ac_cv_lib_pthread_pthread_kill=yes
8052else
8053 ac_cv_lib_pthread_pthread_kill=no
8054fi
8055rm -f core conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057LIBS=$ac_check_lib_save_LIBS
8058fi
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8060$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8061if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8062 gl_have_pthread=yes
8063 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8064 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8065fi
8066
8067 if test -z "$gl_have_pthread"; then
8068 # For FreeBSD 4.
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8070$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8071if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073else
8074 ac_check_lib_save_LIBS=$LIBS
8075LIBS="-lc_r $LIBS"
8076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077/* end confdefs.h. */
8078
8079/* Override any GCC internal prototype to avoid an error.
8080 Use char because int might match the return type of a GCC
8081 builtin and then its argument prototype would still apply. */
8082#ifdef __cplusplus
8083extern "C"
8084#endif
8085char pthread_kill ();
8086int
8087main ()
8088{
8089return pthread_kill ();
8090 ;
8091 return 0;
8092}
8093_ACEOF
8094if ac_fn_c_try_link "$LINENO"; then :
8095 ac_cv_lib_c_r_pthread_kill=yes
8096else
8097 ac_cv_lib_c_r_pthread_kill=no
8098fi
8099rm -f core conftest.err conftest.$ac_objext \
8100 conftest$ac_exeext conftest.$ac_ext
8101LIBS=$ac_check_lib_save_LIBS
8102fi
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8104$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8105if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8106 gl_have_pthread=yes
8107 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8108 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8109fi
8110
8111 fi
8112 fi
8113 if test -n "$gl_have_pthread"; then
8114 gl_threads_api=posix
8115
8116$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8117
8118 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8119 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8120
8121$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8122
8123 LIBTHREAD=
8124 LTLIBTHREAD=
8125 fi
8126 fi
8127 fi
8128 fi
8129 fi
8130 if test -z "$gl_have_pthread"; then
8131 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8132 gl_have_solaristhread=
8133 gl_save_LIBS="$LIBS"
8134 LIBS="$LIBS -lthread"
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136/* end confdefs.h. */
8137
8138#include <thread.h>
8139#include <synch.h>
8140
8141int
8142main ()
8143{
8144thr_self();
8145 ;
8146 return 0;
8147}
8148_ACEOF
8149if ac_fn_c_try_link "$LINENO"; then :
8150 gl_have_solaristhread=yes
8151fi
8152rm -f core conftest.err conftest.$ac_objext \
8153 conftest$ac_exeext conftest.$ac_ext
8154 LIBS="$gl_save_LIBS"
8155 if test -n "$gl_have_solaristhread"; then
8156 gl_threads_api=solaris
8157 LIBTHREAD=-lthread
8158 LTLIBTHREAD=-lthread
8159 LIBMULTITHREAD="$LIBTHREAD"
8160 LTLIBMULTITHREAD="$LTLIBTHREAD"
8161
8162$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8163
8164 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8165
8166$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8167
8168 LIBTHREAD=
8169 LTLIBTHREAD=
8170 fi
8171 fi
8172 fi
8173 fi
8174 if test "$gl_use_threads" = pth; then
8175 gl_save_CPPFLAGS="$CPPFLAGS"
8176
8177
8178
8179
8180
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8182$as_echo_n "checking how to link with libpth... " >&6; }
8183if ${ac_cv_libpth_libs+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185else
8186
8187
8188
8189
8190
8191
8192
8193
8194 use_additional=yes
8195
8196 acl_save_prefix="$prefix"
8197 prefix="$acl_final_prefix"
8198 acl_save_exec_prefix="$exec_prefix"
8199 exec_prefix="$acl_final_exec_prefix"
8200
8201 eval additional_includedir=\"$includedir\"
8202 eval additional_libdir=\"$libdir\"
8203
8204 exec_prefix="$acl_save_exec_prefix"
8205 prefix="$acl_save_prefix"
8206
8207
8208# Check whether --with-libpth-prefix was given.
8209if test "${with_libpth_prefix+set}" = set; then :
8210 withval=$with_libpth_prefix;
8211 if test "X$withval" = "Xno"; then
8212 use_additional=no
8213 else
8214 if test "X$withval" = "X"; then
8215
8216 acl_save_prefix="$prefix"
8217 prefix="$acl_final_prefix"
8218 acl_save_exec_prefix="$exec_prefix"
8219 exec_prefix="$acl_final_exec_prefix"
8220
8221 eval additional_includedir=\"$includedir\"
8222 eval additional_libdir=\"$libdir\"
8223
8224 exec_prefix="$acl_save_exec_prefix"
8225 prefix="$acl_save_prefix"
8226
8227 else
8228 additional_includedir="$withval/include"
8229 additional_libdir="$withval/$acl_libdirstem"
8230 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8231 && ! test -d "$withval/$acl_libdirstem"; then
8232 additional_libdir="$withval/$acl_libdirstem2"
8233 fi
8234 fi
8235 fi
8236
8237fi
8238
8239 LIBPTH=
8240 LTLIBPTH=
8241 INCPTH=
8242 LIBPTH_PREFIX=
8243 HAVE_LIBPTH=
8244 rpathdirs=
8245 ltrpathdirs=
8246 names_already_handled=
8247 names_next_round='pth '
8248 while test -n "$names_next_round"; do
8249 names_this_round="$names_next_round"
8250 names_next_round=
8251 for name in $names_this_round; do
8252 already_handled=
8253 for n in $names_already_handled; do
8254 if test "$n" = "$name"; then
8255 already_handled=yes
8256 break
8257 fi
8258 done
8259 if test -z "$already_handled"; then
8260 names_already_handled="$names_already_handled $name"
8261 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8262 eval value=\"\$HAVE_LIB$uppername\"
8263 if test -n "$value"; then
8264 if test "$value" = yes; then
8265 eval value=\"\$LIB$uppername\"
8266 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8267 eval value=\"\$LTLIB$uppername\"
8268 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8269 else
8270 :
8271 fi
8272 else
8273 found_dir=
8274 found_la=
8275 found_so=
8276 found_a=
8277 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8278 if test -n "$acl_shlibext"; then
8279 shrext=".$acl_shlibext" # typically: shrext=.so
8280 else
8281 shrext=
8282 fi
8283 if test $use_additional = yes; then
8284 dir="$additional_libdir"
8285 if test -n "$acl_shlibext"; then
8286 if test -f "$dir/$libname$shrext"; then
8287 found_dir="$dir"
8288 found_so="$dir/$libname$shrext"
8289 else
8290 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8291 ver=`(cd "$dir" && \
8292 for f in "$libname$shrext".*; do echo "$f"; done \
8293 | sed -e "s,^$libname$shrext\\\\.,," \
8294 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8295 | sed 1q ) 2>/dev/null`
8296 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8297 found_dir="$dir"
8298 found_so="$dir/$libname$shrext.$ver"
8299 fi
8300 else
8301 eval library_names=\"$acl_library_names_spec\"
8302 for f in $library_names; do
8303 if test -f "$dir/$f"; then
8304 found_dir="$dir"
8305 found_so="$dir/$f"
8306 break
8307 fi
8308 done
8309 fi
8310 fi
8311 fi
8312 if test "X$found_dir" = "X"; then
8313 if test -f "$dir/$libname.$acl_libext"; then
8314 found_dir="$dir"
8315 found_a="$dir/$libname.$acl_libext"
8316 fi
8317 fi
8318 if test "X$found_dir" != "X"; then
8319 if test -f "$dir/$libname.la"; then
8320 found_la="$dir/$libname.la"
8321 fi
8322 fi
8323 fi
8324 if test "X$found_dir" = "X"; then
8325 for x in $LDFLAGS $LTLIBPTH; do
8326
8327 acl_save_prefix="$prefix"
8328 prefix="$acl_final_prefix"
8329 acl_save_exec_prefix="$exec_prefix"
8330 exec_prefix="$acl_final_exec_prefix"
8331 eval x=\"$x\"
8332 exec_prefix="$acl_save_exec_prefix"
8333 prefix="$acl_save_prefix"
8334
8335 case "$x" in
8336 -L*)
8337 dir=`echo "X$x" | sed -e 's/^X-L//'`
8338 if test -n "$acl_shlibext"; then
8339 if test -f "$dir/$libname$shrext"; then
8340 found_dir="$dir"
8341 found_so="$dir/$libname$shrext"
8342 else
8343 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8344 ver=`(cd "$dir" && \
8345 for f in "$libname$shrext".*; do echo "$f"; done \
8346 | sed -e "s,^$libname$shrext\\\\.,," \
8347 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8348 | sed 1q ) 2>/dev/null`
8349 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8350 found_dir="$dir"
8351 found_so="$dir/$libname$shrext.$ver"
8352 fi
8353 else
8354 eval library_names=\"$acl_library_names_spec\"
8355 for f in $library_names; do
8356 if test -f "$dir/$f"; then
8357 found_dir="$dir"
8358 found_so="$dir/$f"
8359 break
8360 fi
8361 done
8362 fi
8363 fi
8364 fi
8365 if test "X$found_dir" = "X"; then
8366 if test -f "$dir/$libname.$acl_libext"; then
8367 found_dir="$dir"
8368 found_a="$dir/$libname.$acl_libext"
8369 fi
8370 fi
8371 if test "X$found_dir" != "X"; then
8372 if test -f "$dir/$libname.la"; then
8373 found_la="$dir/$libname.la"
8374 fi
8375 fi
8376 ;;
8377 esac
8378 if test "X$found_dir" != "X"; then
8379 break
8380 fi
8381 done
8382 fi
8383 if test "X$found_dir" != "X"; then
8384 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8385 if test "X$found_so" != "X"; then
8386 if test "$enable_rpath" = no \
8387 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8388 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8389 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8390 else
8391 haveit=
8392 for x in $ltrpathdirs; do
8393 if test "X$x" = "X$found_dir"; then
8394 haveit=yes
8395 break
8396 fi
8397 done
8398 if test -z "$haveit"; then
8399 ltrpathdirs="$ltrpathdirs $found_dir"
8400 fi
8401 if test "$acl_hardcode_direct" = yes; then
8402 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8403 else
8404 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8405 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8406 haveit=
8407 for x in $rpathdirs; do
8408 if test "X$x" = "X$found_dir"; then
8409 haveit=yes
8410 break
8411 fi
8412 done
8413 if test -z "$haveit"; then
8414 rpathdirs="$rpathdirs $found_dir"
8415 fi
8416 else
8417 haveit=
8418 for x in $LDFLAGS $LIBPTH; do
8419
8420 acl_save_prefix="$prefix"
8421 prefix="$acl_final_prefix"
8422 acl_save_exec_prefix="$exec_prefix"
8423 exec_prefix="$acl_final_exec_prefix"
8424 eval x=\"$x\"
8425 exec_prefix="$acl_save_exec_prefix"
8426 prefix="$acl_save_prefix"
8427
8428 if test "X$x" = "X-L$found_dir"; then
8429 haveit=yes
8430 break
8431 fi
8432 done
8433 if test -z "$haveit"; then
8434 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8435 fi
8436 if test "$acl_hardcode_minus_L" != no; then
8437 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8438 else
8439 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8440 fi
8441 fi
8442 fi
8443 fi
8444 else
8445 if test "X$found_a" != "X"; then
8446 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8447 else
8448 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8449 fi
8450 fi
8451 additional_includedir=
8452 case "$found_dir" in
8453 */$acl_libdirstem | */$acl_libdirstem/)
8454 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8455 if test "$name" = 'pth'; then
8456 LIBPTH_PREFIX="$basedir"
8457 fi
8458 additional_includedir="$basedir/include"
8459 ;;
8460 */$acl_libdirstem2 | */$acl_libdirstem2/)
8461 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8462 if test "$name" = 'pth'; then
8463 LIBPTH_PREFIX="$basedir"
8464 fi
8465 additional_includedir="$basedir/include"
8466 ;;
8467 esac
8468 if test "X$additional_includedir" != "X"; then
8469 if test "X$additional_includedir" != "X/usr/include"; then
8470 haveit=
8471 if test "X$additional_includedir" = "X/usr/local/include"; then
8472 if test -n "$GCC"; then
8473 case $host_os in
8474 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8475 esac
8476 fi
8477 fi
8478 if test -z "$haveit"; then
8479 for x in $CPPFLAGS $INCPTH; do
8480
8481 acl_save_prefix="$prefix"
8482 prefix="$acl_final_prefix"
8483 acl_save_exec_prefix="$exec_prefix"
8484 exec_prefix="$acl_final_exec_prefix"
8485 eval x=\"$x\"
8486 exec_prefix="$acl_save_exec_prefix"
8487 prefix="$acl_save_prefix"
8488
8489 if test "X$x" = "X-I$additional_includedir"; then
8490 haveit=yes
8491 break
8492 fi
8493 done
8494 if test -z "$haveit"; then
8495 if test -d "$additional_includedir"; then
8496 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8497 fi
8498 fi
8499 fi
8500 fi
8501 fi
8502 if test -n "$found_la"; then
8503 save_libdir="$libdir"
8504 case "$found_la" in
8505 */* | *\\*) . "$found_la" ;;
8506 *) . "./$found_la" ;;
8507 esac
8508 libdir="$save_libdir"
8509 for dep in $dependency_libs; do
8510 case "$dep" in
8511 -L*)
8512 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8513 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8514 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8515 haveit=
8516 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8517 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8518 if test -n "$GCC"; then
8519 case $host_os in
8520 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8521 esac
8522 fi
8523 fi
8524 if test -z "$haveit"; then
8525 haveit=
8526 for x in $LDFLAGS $LIBPTH; do
8527
8528 acl_save_prefix="$prefix"
8529 prefix="$acl_final_prefix"
8530 acl_save_exec_prefix="$exec_prefix"
8531 exec_prefix="$acl_final_exec_prefix"
8532 eval x=\"$x\"
8533 exec_prefix="$acl_save_exec_prefix"
8534 prefix="$acl_save_prefix"
8535
8536 if test "X$x" = "X-L$additional_libdir"; then
8537 haveit=yes
8538 break
8539 fi
8540 done
8541 if test -z "$haveit"; then
8542 if test -d "$additional_libdir"; then
8543 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8544 fi
8545 fi
8546 haveit=
8547 for x in $LDFLAGS $LTLIBPTH; do
8548
8549 acl_save_prefix="$prefix"
8550 prefix="$acl_final_prefix"
8551 acl_save_exec_prefix="$exec_prefix"
8552 exec_prefix="$acl_final_exec_prefix"
8553 eval x=\"$x\"
8554 exec_prefix="$acl_save_exec_prefix"
8555 prefix="$acl_save_prefix"
8556
8557 if test "X$x" = "X-L$additional_libdir"; then
8558 haveit=yes
8559 break
8560 fi
8561 done
8562 if test -z "$haveit"; then
8563 if test -d "$additional_libdir"; then
8564 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8565 fi
8566 fi
8567 fi
8568 fi
8569 ;;
8570 -R*)
8571 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8572 if test "$enable_rpath" != no; then
8573 haveit=
8574 for x in $rpathdirs; do
8575 if test "X$x" = "X$dir"; then
8576 haveit=yes
8577 break
8578 fi
8579 done
8580 if test -z "$haveit"; then
8581 rpathdirs="$rpathdirs $dir"
8582 fi
8583 haveit=
8584 for x in $ltrpathdirs; do
8585 if test "X$x" = "X$dir"; then
8586 haveit=yes
8587 break
8588 fi
8589 done
8590 if test -z "$haveit"; then
8591 ltrpathdirs="$ltrpathdirs $dir"
8592 fi
8593 fi
8594 ;;
8595 -l*)
8596 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8597 ;;
8598 *.la)
8599 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8600 ;;
8601 *)
8602 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8603 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8604 ;;
8605 esac
8606 done
8607 fi
8608 else
8609 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8610 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8611 fi
8612 fi
8613 fi
8614 done
8615 done
8616 if test "X$rpathdirs" != "X"; then
8617 if test -n "$acl_hardcode_libdir_separator"; then
8618 alldirs=
8619 for found_dir in $rpathdirs; do
8620 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8621 done
8622 acl_save_libdir="$libdir"
8623 libdir="$alldirs"
8624 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8625 libdir="$acl_save_libdir"
8626 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8627 else
8628 for found_dir in $rpathdirs; do
8629 acl_save_libdir="$libdir"
8630 libdir="$found_dir"
8631 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8632 libdir="$acl_save_libdir"
8633 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8634 done
8635 fi
8636 fi
8637 if test "X$ltrpathdirs" != "X"; then
8638 for found_dir in $ltrpathdirs; do
8639 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8640 done
8641 fi
8642
8643
8644
8645
8646
8647
8648 ac_cv_libpth_libs="$LIBPTH"
8649 ac_cv_libpth_ltlibs="$LTLIBPTH"
8650 ac_cv_libpth_cppflags="$INCPTH"
8651 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8652
8653fi
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8655$as_echo "$ac_cv_libpth_libs" >&6; }
8656 LIBPTH="$ac_cv_libpth_libs"
8657 LTLIBPTH="$ac_cv_libpth_ltlibs"
8658 INCPTH="$ac_cv_libpth_cppflags"
8659 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8660
8661 for element in $INCPTH; do
8662 haveit=
8663 for x in $CPPFLAGS; do
8664
8665 acl_save_prefix="$prefix"
8666 prefix="$acl_final_prefix"
8667 acl_save_exec_prefix="$exec_prefix"
8668 exec_prefix="$acl_final_exec_prefix"
8669 eval x=\"$x\"
8670 exec_prefix="$acl_save_exec_prefix"
8671 prefix="$acl_save_prefix"
8672
8673 if test "X$x" = "X$element"; then
8674 haveit=yes
8675 break
8676 fi
8677 done
8678 if test -z "$haveit"; then
8679 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8680 fi
8681 done
8682
8683
8684
8685
8686 HAVE_LIBPTH=yes
8687
8688
8689
8690 gl_have_pth=
8691 gl_save_LIBS="$LIBS"
8692 LIBS="$LIBS $LIBPTH"
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694/* end confdefs.h. */
8695#include <pth.h>
8696int
8697main ()
8698{
8699pth_self();
8700 ;
8701 return 0;
8702}
8703_ACEOF
8704if ac_fn_c_try_link "$LINENO"; then :
8705 gl_have_pth=yes
8706fi
8707rm -f core conftest.err conftest.$ac_objext \
8708 conftest$ac_exeext conftest.$ac_ext
8709 LIBS="$gl_save_LIBS"
8710 if test -n "$gl_have_pth"; then
8711 gl_threads_api=pth
8712 LIBTHREAD="$LIBPTH"
8713 LTLIBTHREAD="$LTLIBPTH"
8714 LIBMULTITHREAD="$LIBTHREAD"
8715 LTLIBMULTITHREAD="$LTLIBTHREAD"
8716
8717$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8718
8719 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8720 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8721
8722$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8723
8724 LIBTHREAD=
8725 LTLIBTHREAD=
8726 fi
8727 fi
8728 else
8729 CPPFLAGS="$gl_save_CPPFLAGS"
8730 fi
8731 fi
8732 if test -z "$gl_have_pthread"; then
8733 case "$gl_use_threads" in
8734 yes | windows | win32) # The 'win32' is for backward compatibility.
8735 if { case "$host_os" in
8736 mingw*) true;;
8737 *) false;;
8738 esac
8739 }; then
8740 gl_threads_api=windows
8741
8742$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8743
8744 fi
8745 ;;
8746 esac
8747 fi
8748 fi
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8750$as_echo_n "checking for multithread API to use... " >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8752$as_echo "$gl_threads_api" >&6; }
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764 if test "$gl_threads_api" = posix; then
8765 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8766 # pthread_rwlock_* functions.
8767 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8768"
8769if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8770
8771$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8772
8773fi
8774
8775 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777/* end confdefs.h. */
8778
8779 #include <pthread.h>
8780int
8781main ()
8782{
8783
8784#if __FreeBSD__ == 4
8785error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8786#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8787 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8788error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8789#else
8790int x = (int)PTHREAD_MUTEX_RECURSIVE;
8791return !x;
8792#endif
8793
8794 ;
8795 return 0;
8796}
8797_ACEOF
8798if ac_fn_c_try_compile "$LINENO"; then :
8799
8800$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8801
8802fi
8803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8804 fi
8805 :
8806
8807
8808
8809
8810
8811
8812
8813
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008814
8815
8816
8817
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008818 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008819
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008820 acl_save_prefix="$prefix"
8821 prefix="$acl_final_prefix"
8822 acl_save_exec_prefix="$exec_prefix"
8823 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008824
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008825 eval additional_includedir=\"$includedir\"
8826 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008827
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008828 exec_prefix="$acl_save_exec_prefix"
8829 prefix="$acl_save_prefix"
8830
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008831
Theodore Ts'oe1052142006-10-21 21:46:47 -04008832# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008833if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008834 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008835 if test "X$withval" = "Xno"; then
8836 use_additional=no
8837 else
8838 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008839
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008840 acl_save_prefix="$prefix"
8841 prefix="$acl_final_prefix"
8842 acl_save_exec_prefix="$exec_prefix"
8843 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008844
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008845 eval additional_includedir=\"$includedir\"
8846 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008847
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008848 exec_prefix="$acl_save_exec_prefix"
8849 prefix="$acl_save_prefix"
8850
8851 else
8852 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008853 additional_libdir="$withval/$acl_libdirstem"
8854 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8855 && ! test -d "$withval/$acl_libdirstem"; then
8856 additional_libdir="$withval/$acl_libdirstem2"
8857 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008858 fi
8859 fi
8860
Theodore Ts'oe1052142006-10-21 21:46:47 -04008861fi
8862
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008863 LIBICONV=
8864 LTLIBICONV=
8865 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008866 LIBICONV_PREFIX=
8867 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008868 rpathdirs=
8869 ltrpathdirs=
8870 names_already_handled=
8871 names_next_round='iconv '
8872 while test -n "$names_next_round"; do
8873 names_this_round="$names_next_round"
8874 names_next_round=
8875 for name in $names_this_round; do
8876 already_handled=
8877 for n in $names_already_handled; do
8878 if test "$n" = "$name"; then
8879 already_handled=yes
8880 break
8881 fi
8882 done
8883 if test -z "$already_handled"; then
8884 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008885 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008886 eval value=\"\$HAVE_LIB$uppername\"
8887 if test -n "$value"; then
8888 if test "$value" = yes; then
8889 eval value=\"\$LIB$uppername\"
8890 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8891 eval value=\"\$LTLIB$uppername\"
8892 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8893 else
8894 :
8895 fi
8896 else
8897 found_dir=
8898 found_la=
8899 found_so=
8900 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008901 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8902 if test -n "$acl_shlibext"; then
8903 shrext=".$acl_shlibext" # typically: shrext=.so
8904 else
8905 shrext=
8906 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008907 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008908 dir="$additional_libdir"
8909 if test -n "$acl_shlibext"; then
8910 if test -f "$dir/$libname$shrext"; then
8911 found_dir="$dir"
8912 found_so="$dir/$libname$shrext"
8913 else
8914 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8915 ver=`(cd "$dir" && \
8916 for f in "$libname$shrext".*; do echo "$f"; done \
8917 | sed -e "s,^$libname$shrext\\\\.,," \
8918 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8919 | sed 1q ) 2>/dev/null`
8920 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8921 found_dir="$dir"
8922 found_so="$dir/$libname$shrext.$ver"
8923 fi
8924 else
8925 eval library_names=\"$acl_library_names_spec\"
8926 for f in $library_names; do
8927 if test -f "$dir/$f"; then
8928 found_dir="$dir"
8929 found_so="$dir/$f"
8930 break
8931 fi
8932 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008933 fi
8934 fi
8935 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008936 if test "X$found_dir" = "X"; then
8937 if test -f "$dir/$libname.$acl_libext"; then
8938 found_dir="$dir"
8939 found_a="$dir/$libname.$acl_libext"
8940 fi
8941 fi
8942 if test "X$found_dir" != "X"; then
8943 if test -f "$dir/$libname.la"; then
8944 found_la="$dir/$libname.la"
8945 fi
8946 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008947 fi
8948 if test "X$found_dir" = "X"; then
8949 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008950
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008951 acl_save_prefix="$prefix"
8952 prefix="$acl_final_prefix"
8953 acl_save_exec_prefix="$exec_prefix"
8954 exec_prefix="$acl_final_exec_prefix"
8955 eval x=\"$x\"
8956 exec_prefix="$acl_save_exec_prefix"
8957 prefix="$acl_save_prefix"
8958
8959 case "$x" in
8960 -L*)
8961 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008962 if test -n "$acl_shlibext"; then
8963 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008964 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008965 found_so="$dir/$libname$shrext"
8966 else
8967 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8968 ver=`(cd "$dir" && \
8969 for f in "$libname$shrext".*; do echo "$f"; done \
8970 | sed -e "s,^$libname$shrext\\\\.,," \
8971 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8972 | sed 1q ) 2>/dev/null`
8973 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8974 found_dir="$dir"
8975 found_so="$dir/$libname$shrext.$ver"
8976 fi
8977 else
8978 eval library_names=\"$acl_library_names_spec\"
8979 for f in $library_names; do
8980 if test -f "$dir/$f"; then
8981 found_dir="$dir"
8982 found_so="$dir/$f"
8983 break
8984 fi
8985 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008986 fi
8987 fi
8988 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008989 if test "X$found_dir" = "X"; then
8990 if test -f "$dir/$libname.$acl_libext"; then
8991 found_dir="$dir"
8992 found_a="$dir/$libname.$acl_libext"
8993 fi
8994 fi
8995 if test "X$found_dir" != "X"; then
8996 if test -f "$dir/$libname.la"; then
8997 found_la="$dir/$libname.la"
8998 fi
8999 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009000 ;;
9001 esac
9002 if test "X$found_dir" != "X"; then
9003 break
9004 fi
9005 done
9006 fi
9007 if test "X$found_dir" != "X"; then
9008 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9009 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009010 if test "$enable_rpath" = no \
9011 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9012 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009013 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9014 else
9015 haveit=
9016 for x in $ltrpathdirs; do
9017 if test "X$x" = "X$found_dir"; then
9018 haveit=yes
9019 break
9020 fi
9021 done
9022 if test -z "$haveit"; then
9023 ltrpathdirs="$ltrpathdirs $found_dir"
9024 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009025 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009026 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9027 else
Theodore Ts'o93613952014-07-03 23:44:13 -04009028 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009029 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9030 haveit=
9031 for x in $rpathdirs; do
9032 if test "X$x" = "X$found_dir"; then
9033 haveit=yes
9034 break
9035 fi
9036 done
9037 if test -z "$haveit"; then
9038 rpathdirs="$rpathdirs $found_dir"
9039 fi
9040 else
9041 haveit=
9042 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009043
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009044 acl_save_prefix="$prefix"
9045 prefix="$acl_final_prefix"
9046 acl_save_exec_prefix="$exec_prefix"
9047 exec_prefix="$acl_final_exec_prefix"
9048 eval x=\"$x\"
9049 exec_prefix="$acl_save_exec_prefix"
9050 prefix="$acl_save_prefix"
9051
9052 if test "X$x" = "X-L$found_dir"; then
9053 haveit=yes
9054 break
9055 fi
9056 done
9057 if test -z "$haveit"; then
9058 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9059 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009060 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009061 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9062 else
9063 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9064 fi
9065 fi
9066 fi
9067 fi
9068 else
9069 if test "X$found_a" != "X"; then
9070 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9071 else
9072 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9073 fi
9074 fi
9075 additional_includedir=
9076 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04009077 */$acl_libdirstem | */$acl_libdirstem/)
9078 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9079 if test "$name" = 'iconv'; then
9080 LIBICONV_PREFIX="$basedir"
9081 fi
9082 additional_includedir="$basedir/include"
9083 ;;
9084 */$acl_libdirstem2 | */$acl_libdirstem2/)
9085 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9086 if test "$name" = 'iconv'; then
9087 LIBICONV_PREFIX="$basedir"
9088 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009089 additional_includedir="$basedir/include"
9090 ;;
9091 esac
9092 if test "X$additional_includedir" != "X"; then
9093 if test "X$additional_includedir" != "X/usr/include"; then
9094 haveit=
9095 if test "X$additional_includedir" = "X/usr/local/include"; then
9096 if test -n "$GCC"; then
9097 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009098 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009099 esac
9100 fi
9101 fi
9102 if test -z "$haveit"; then
9103 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009104
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009105 acl_save_prefix="$prefix"
9106 prefix="$acl_final_prefix"
9107 acl_save_exec_prefix="$exec_prefix"
9108 exec_prefix="$acl_final_exec_prefix"
9109 eval x=\"$x\"
9110 exec_prefix="$acl_save_exec_prefix"
9111 prefix="$acl_save_prefix"
9112
9113 if test "X$x" = "X-I$additional_includedir"; then
9114 haveit=yes
9115 break
9116 fi
9117 done
9118 if test -z "$haveit"; then
9119 if test -d "$additional_includedir"; then
9120 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9121 fi
9122 fi
9123 fi
9124 fi
9125 fi
9126 if test -n "$found_la"; then
9127 save_libdir="$libdir"
9128 case "$found_la" in
9129 */* | *\\*) . "$found_la" ;;
9130 *) . "./$found_la" ;;
9131 esac
9132 libdir="$save_libdir"
9133 for dep in $dependency_libs; do
9134 case "$dep" in
9135 -L*)
9136 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009137 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9138 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009139 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009140 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9141 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009142 if test -n "$GCC"; then
9143 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009144 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009145 esac
9146 fi
9147 fi
9148 if test -z "$haveit"; then
9149 haveit=
9150 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009151
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009152 acl_save_prefix="$prefix"
9153 prefix="$acl_final_prefix"
9154 acl_save_exec_prefix="$exec_prefix"
9155 exec_prefix="$acl_final_exec_prefix"
9156 eval x=\"$x\"
9157 exec_prefix="$acl_save_exec_prefix"
9158 prefix="$acl_save_prefix"
9159
9160 if test "X$x" = "X-L$additional_libdir"; then
9161 haveit=yes
9162 break
9163 fi
9164 done
9165 if test -z "$haveit"; then
9166 if test -d "$additional_libdir"; then
9167 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9168 fi
9169 fi
9170 haveit=
9171 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009172
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009173 acl_save_prefix="$prefix"
9174 prefix="$acl_final_prefix"
9175 acl_save_exec_prefix="$exec_prefix"
9176 exec_prefix="$acl_final_exec_prefix"
9177 eval x=\"$x\"
9178 exec_prefix="$acl_save_exec_prefix"
9179 prefix="$acl_save_prefix"
9180
9181 if test "X$x" = "X-L$additional_libdir"; then
9182 haveit=yes
9183 break
9184 fi
9185 done
9186 if test -z "$haveit"; then
9187 if test -d "$additional_libdir"; then
9188 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9189 fi
9190 fi
9191 fi
9192 fi
9193 ;;
9194 -R*)
9195 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9196 if test "$enable_rpath" != no; then
9197 haveit=
9198 for x in $rpathdirs; do
9199 if test "X$x" = "X$dir"; then
9200 haveit=yes
9201 break
9202 fi
9203 done
9204 if test -z "$haveit"; then
9205 rpathdirs="$rpathdirs $dir"
9206 fi
9207 haveit=
9208 for x in $ltrpathdirs; do
9209 if test "X$x" = "X$dir"; then
9210 haveit=yes
9211 break
9212 fi
9213 done
9214 if test -z "$haveit"; then
9215 ltrpathdirs="$ltrpathdirs $dir"
9216 fi
9217 fi
9218 ;;
9219 -l*)
9220 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9221 ;;
9222 *.la)
9223 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9224 ;;
9225 *)
9226 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9227 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9228 ;;
9229 esac
9230 done
9231 fi
9232 else
9233 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9234 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9235 fi
9236 fi
9237 fi
9238 done
9239 done
9240 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009241 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009242 alldirs=
9243 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009244 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009245 done
9246 acl_save_libdir="$libdir"
9247 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009248 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009249 libdir="$acl_save_libdir"
9250 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9251 else
9252 for found_dir in $rpathdirs; do
9253 acl_save_libdir="$libdir"
9254 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009255 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009256 libdir="$acl_save_libdir"
9257 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9258 done
9259 fi
9260 fi
9261 if test "X$ltrpathdirs" != "X"; then
9262 for found_dir in $ltrpathdirs; do
9263 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9264 done
9265 fi
9266
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009267
9268
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009270
9271
9272
9273
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009274
9275
9276
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009277
9278 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009279
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009280 for element in $INCICONV; do
9281 haveit=
9282 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009283
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009284 acl_save_prefix="$prefix"
9285 prefix="$acl_final_prefix"
9286 acl_save_exec_prefix="$exec_prefix"
9287 exec_prefix="$acl_final_exec_prefix"
9288 eval x=\"$x\"
9289 exec_prefix="$acl_save_exec_prefix"
9290 prefix="$acl_save_prefix"
9291
9292 if test "X$x" = "X$element"; then
9293 haveit=yes
9294 break
9295 fi
9296 done
9297 if test -z "$haveit"; then
9298 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9299 fi
9300 done
9301
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009302
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009304$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009305if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009306 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009307else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009308
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009309 am_cv_func_iconv="no, consider installing GNU libiconv"
9310 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009312/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009313
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009314#include <stdlib.h>
9315#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009316
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009317int
9318main ()
9319{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009320iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009321 iconv(cd,NULL,NULL,NULL,NULL);
9322 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009323 ;
9324 return 0;
9325}
9326_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009327if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009328 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009329fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009330rm -f core conftest.err conftest.$ac_objext \
9331 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009332 if test "$am_cv_func_iconv" != yes; then
9333 am_save_LIBS="$LIBS"
9334 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009336/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009337
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009338#include <stdlib.h>
9339#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009340
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009341int
9342main ()
9343{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009344iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009345 iconv(cd,NULL,NULL,NULL,NULL);
9346 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009347 ;
9348 return 0;
9349}
9350_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009351if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009352 am_cv_lib_iconv=yes
9353 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009354fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009355rm -f core conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009357 LIBS="$am_save_LIBS"
9358 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009359
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009360fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009362$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009363 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9365$as_echo_n "checking for working iconv... " >&6; }
9366if ${am_cv_func_iconv_works+:} false; then :
9367 $as_echo_n "(cached) " >&6
9368else
9369
9370 am_save_LIBS="$LIBS"
9371 if test $am_cv_lib_iconv = yes; then
9372 LIBS="$LIBS $LIBICONV"
9373 fi
9374 if test "$cross_compiling" = yes; then :
9375
9376 case "$host_os" in
9377 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9378 *) am_cv_func_iconv_works="guessing yes" ;;
9379 esac
9380
9381else
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383/* end confdefs.h. */
9384
9385#include <iconv.h>
9386#include <string.h>
9387int main ()
9388{
9389 int result = 0;
9390 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9391 returns. */
9392 {
9393 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9394 if (cd_utf8_to_88591 != (iconv_t)(-1))
9395 {
9396 static const char input[] = "\342\202\254"; /* EURO SIGN */
9397 char buf[10];
9398 const char *inptr = input;
9399 size_t inbytesleft = strlen (input);
9400 char *outptr = buf;
9401 size_t outbytesleft = sizeof (buf);
9402 size_t res = iconv (cd_utf8_to_88591,
9403 (char **) &inptr, &inbytesleft,
9404 &outptr, &outbytesleft);
9405 if (res == 0)
9406 result |= 1;
9407 iconv_close (cd_utf8_to_88591);
9408 }
9409 }
9410 /* Test against Solaris 10 bug: Failures are not distinguishable from
9411 successful returns. */
9412 {
9413 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9414 if (cd_ascii_to_88591 != (iconv_t)(-1))
9415 {
9416 static const char input[] = "\263";
9417 char buf[10];
9418 const char *inptr = input;
9419 size_t inbytesleft = strlen (input);
9420 char *outptr = buf;
9421 size_t outbytesleft = sizeof (buf);
9422 size_t res = iconv (cd_ascii_to_88591,
9423 (char **) &inptr, &inbytesleft,
9424 &outptr, &outbytesleft);
9425 if (res == 0)
9426 result |= 2;
9427 iconv_close (cd_ascii_to_88591);
9428 }
9429 }
9430 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9431 {
9432 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9433 if (cd_88591_to_utf8 != (iconv_t)(-1))
9434 {
9435 static const char input[] = "\304";
9436 static char buf[2] = { (char)0xDE, (char)0xAD };
9437 const char *inptr = input;
9438 size_t inbytesleft = 1;
9439 char *outptr = buf;
9440 size_t outbytesleft = 1;
9441 size_t res = iconv (cd_88591_to_utf8,
9442 (char **) &inptr, &inbytesleft,
9443 &outptr, &outbytesleft);
9444 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9445 result |= 4;
9446 iconv_close (cd_88591_to_utf8);
9447 }
9448 }
9449#if 0 /* This bug could be worked around by the caller. */
9450 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9451 {
9452 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9453 if (cd_88591_to_utf8 != (iconv_t)(-1))
9454 {
9455 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9456 char buf[50];
9457 const char *inptr = input;
9458 size_t inbytesleft = strlen (input);
9459 char *outptr = buf;
9460 size_t outbytesleft = sizeof (buf);
9461 size_t res = iconv (cd_88591_to_utf8,
9462 (char **) &inptr, &inbytesleft,
9463 &outptr, &outbytesleft);
9464 if ((int)res > 0)
9465 result |= 8;
9466 iconv_close (cd_88591_to_utf8);
9467 }
9468 }
9469#endif
9470 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9471 provided. */
9472 if (/* Try standardized names. */
9473 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9474 /* Try IRIX, OSF/1 names. */
9475 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9476 /* Try AIX names. */
9477 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9478 /* Try HP-UX names. */
9479 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9480 result |= 16;
9481 return result;
9482}
9483_ACEOF
9484if ac_fn_c_try_run "$LINENO"; then :
9485 am_cv_func_iconv_works=yes
9486else
9487 am_cv_func_iconv_works=no
9488fi
9489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9490 conftest.$ac_objext conftest.beam conftest.$ac_ext
9491fi
9492
9493 LIBS="$am_save_LIBS"
9494
9495fi
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9497$as_echo "$am_cv_func_iconv_works" >&6; }
9498 case "$am_cv_func_iconv_works" in
9499 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9500 *) am_func_iconv=yes ;;
9501 esac
9502 else
9503 am_func_iconv=no am_cv_lib_iconv=no
9504 fi
9505 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009506
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009507$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009508
9509 fi
9510 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009512$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009514$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009515 else
9516 CPPFLAGS="$am_save_CPPFLAGS"
9517 LIBICONV=
9518 LTLIBICONV=
9519 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009520
9521
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009522
9523 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009525$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009526 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009527 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009528else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009529
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009531/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009532
9533#include <stdlib.h>
9534#include <iconv.h>
9535extern
9536#ifdef __cplusplus
9537"C"
9538#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009539#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009540size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9541#else
9542size_t iconv();
9543#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009544
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009545int
9546main ()
9547{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009548
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009549 ;
9550 return 0;
9551}
9552_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009553if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009554 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009555else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009556 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009557fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009559 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 +00009560fi
9561
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009562 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009563 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9564 $am_cv_proto_iconv" >&5
9565$as_echo "
9566 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009567
9568cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009569#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009570_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009571
Theodore Ts'o93613952014-07-03 23:44:13 -04009572
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009573 fi
9574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009575
Theodore Ts'o93613952014-07-03 23:44:13 -04009576
9577
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009579/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009580int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009581int
9582main ()
9583{
Theodore Ts'o93613952014-07-03 23:44:13 -04009584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009585 ;
9586 return 0;
9587}
9588_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009589if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009590
9591$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009593fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009594rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009596
Theodore Ts'o93613952014-07-03 23:44:13 -04009597 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9598do :
9599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9600ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9601if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9602 cat >>confdefs.h <<_ACEOF
9603#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009604_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009605
9606fi
9607
9608done
9609
9610 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9611 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9612 argz_stringify argz_next __fsetlocking
9613do :
9614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9615ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9616if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9617 cat >>confdefs.h <<_ACEOF
9618#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9619_ACEOF
9620
9621fi
9622done
9623
9624
9625 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9626"
9627if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9628 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009629else
Theodore Ts'o93613952014-07-03 23:44:13 -04009630 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009631fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009632
9633cat >>confdefs.h <<_ACEOF
9634#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9635_ACEOF
9636ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9637"
9638if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9639 ac_have_decl=1
9640else
9641 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009642fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009643
Theodore Ts'o93613952014-07-03 23:44:13 -04009644cat >>confdefs.h <<_ACEOF
9645#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9646_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009647
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009648
Theodore Ts'o93613952014-07-03 23:44:13 -04009649
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009650
9651 for ac_prog in bison
9652do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009653 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009654set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009656$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009657if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009658 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009659else
9660 if test -n "$INTLBISON"; then
9661 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9662else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664for as_dir in $PATH
9665do
9666 IFS=$as_save_IFS
9667 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009668 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009670 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009672 break 2
9673 fi
9674done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009675 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009676IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009677
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009678fi
9679fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009680INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009681if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009683$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009684else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009686$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009687fi
9688
Theodore Ts'oe1052142006-10-21 21:46:47 -04009689
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009690 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009691done
9692
9693 if test -z "$INTLBISON"; then
9694 ac_verc_fail=yes
9695 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009697$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009698 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9699 case $ac_prog_version in
9700 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9701 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9702 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9703 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9704 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009706$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009707 fi
9708 if test $ac_verc_fail = yes; then
9709 INTLBISON=:
9710 fi
9711
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009712
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009713
Theodore Ts'o93613952014-07-03 23:44:13 -04009714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9715$as_echo_n "checking for long long int... " >&6; }
9716if ${ac_cv_type_long_long_int+:} false; then :
9717 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009718else
Theodore Ts'o93613952014-07-03 23:44:13 -04009719 ac_cv_type_long_long_int=yes
9720 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9721 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9722 if test $ac_cv_type_long_long_int = yes; then
9723 if test "$cross_compiling" = yes; then :
9724 :
9725else
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727/* end confdefs.h. */
9728#include <limits.h>
9729 #ifndef LLONG_MAX
9730 # define HALF \
9731 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9732 # define LLONG_MAX (HALF - 1 + HALF)
9733 #endif
9734int
9735main ()
9736{
9737long long int n = 1;
9738 int i;
9739 for (i = 0; ; i++)
9740 {
9741 long long int m = n << i;
9742 if (m >> i != n)
9743 return 1;
9744 if (LLONG_MAX / 2 < m)
9745 break;
9746 }
9747 return 0;
9748 ;
9749 return 0;
9750}
9751_ACEOF
9752if ac_fn_c_try_run "$LINENO"; then :
9753
9754else
9755 ac_cv_type_long_long_int=no
9756fi
9757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9758 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009759fi
9760
Theodore Ts'o93613952014-07-03 23:44:13 -04009761 fi
9762 fi
9763fi
9764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9765$as_echo "$ac_cv_type_long_long_int" >&6; }
9766 if test $ac_cv_type_long_long_int = yes; then
9767
9768$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9769
9770 fi
9771
9772
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9774$as_echo_n "checking for wchar_t... " >&6; }
9775if ${gt_cv_c_wchar_t+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777else
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779/* end confdefs.h. */
9780#include <stddef.h>
9781 wchar_t foo = (wchar_t)'\0';
9782int
9783main ()
9784{
9785
9786 ;
9787 return 0;
9788}
9789_ACEOF
9790if ac_fn_c_try_compile "$LINENO"; then :
9791 gt_cv_c_wchar_t=yes
9792else
9793 gt_cv_c_wchar_t=no
9794fi
9795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796fi
9797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9798$as_echo "$gt_cv_c_wchar_t" >&6; }
9799 if test $gt_cv_c_wchar_t = yes; then
9800
9801$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9802
9803 fi
9804
9805
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9807$as_echo_n "checking for wint_t... " >&6; }
9808if ${gt_cv_c_wint_t+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810else
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h. */
9813
9814/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9815 <wchar.h>.
9816 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9817 before <wchar.h>. */
9818#include <stddef.h>
9819#include <stdio.h>
9820#include <time.h>
9821#include <wchar.h>
9822 wint_t foo = (wchar_t)'\0';
9823int
9824main ()
9825{
9826
9827 ;
9828 return 0;
9829}
9830_ACEOF
9831if ac_fn_c_try_compile "$LINENO"; then :
9832 gt_cv_c_wint_t=yes
9833else
9834 gt_cv_c_wint_t=no
9835fi
9836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9837fi
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9839$as_echo "$gt_cv_c_wint_t" >&6; }
9840 if test $gt_cv_c_wint_t = yes; then
9841
9842$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9843
9844 fi
9845
9846
9847
9848
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9850$as_echo_n "checking for intmax_t... " >&6; }
9851if ${gt_cv_c_intmax_t+:} false; then :
9852 $as_echo_n "(cached) " >&6
9853else
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855/* end confdefs.h. */
9856
9857#include <stddef.h>
9858#include <stdlib.h>
9859#if HAVE_STDINT_H_WITH_UINTMAX
9860#include <stdint.h>
9861#endif
9862#if HAVE_INTTYPES_H_WITH_UINTMAX
9863#include <inttypes.h>
9864#endif
9865
9866int
9867main ()
9868{
9869intmax_t x = -1;
9870 return !x;
9871 ;
9872 return 0;
9873}
9874_ACEOF
9875if ac_fn_c_try_compile "$LINENO"; then :
9876 gt_cv_c_intmax_t=yes
9877else
9878 gt_cv_c_intmax_t=no
9879fi
9880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9881fi
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9883$as_echo "$gt_cv_c_intmax_t" >&6; }
9884 if test $gt_cv_c_intmax_t = yes; then
9885
9886$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9887
9888 fi
9889
9890
9891
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9893$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9894if ${gt_cv_func_printf_posix+:} false; then :
9895 $as_echo_n "(cached) " >&6
9896else
9897
9898 if test "$cross_compiling" = yes; then :
9899
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901/* end confdefs.h. */
9902
9903#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9904 notposix
9905#endif
9906
9907_ACEOF
9908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9909 $EGREP "notposix" >/dev/null 2>&1; then :
9910 gt_cv_func_printf_posix="guessing no"
9911else
9912 gt_cv_func_printf_posix="guessing yes"
9913fi
9914rm -f conftest*
9915
9916
9917else
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919/* end confdefs.h. */
9920
9921#include <stdio.h>
9922#include <string.h>
9923/* The string "%2$d %1$d", with dollar characters protected from the shell's
9924 dollar expansion (possibly an autoconf bug). */
9925static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9926static char buf[100];
9927int main ()
9928{
9929 sprintf (buf, format, 33, 55);
9930 return (strcmp (buf, "55 33") != 0);
9931}
9932_ACEOF
9933if ac_fn_c_try_run "$LINENO"; then :
9934 gt_cv_func_printf_posix=yes
9935else
9936 gt_cv_func_printf_posix=no
9937fi
9938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9939 conftest.$ac_objext conftest.beam conftest.$ac_ext
9940fi
9941
9942
9943fi
9944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9945$as_echo "$gt_cv_func_printf_posix" >&6; }
9946 case $gt_cv_func_printf_posix in
9947 *yes)
9948
9949$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9950
9951 ;;
9952 esac
9953
9954
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9956$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9957if ${ac_cv_gnu_library_2_1+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959else
9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961/* end confdefs.h. */
9962
9963#include <features.h>
9964#ifdef __GNU_LIBRARY__
9965 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9966 Lucky GNU user
9967 #endif
9968#endif
9969#ifdef __UCLIBC__
9970 Lucky user
9971#endif
9972
9973_ACEOF
9974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9975 $EGREP "Lucky" >/dev/null 2>&1; then :
9976 ac_cv_gnu_library_2_1=yes
9977else
9978 ac_cv_gnu_library_2_1=no
9979fi
9980rm -f conftest*
9981
9982
9983
9984fi
9985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9986$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9987
9988 GLIBC21="$ac_cv_gnu_library_2_1"
9989
9990
9991
9992 for ac_header in stdint.h
9993do :
9994 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9995if test "x$ac_cv_header_stdint_h" = xyes; then :
9996 cat >>confdefs.h <<_ACEOF
9997#define HAVE_STDINT_H 1
9998_ACEOF
9999
10000fi
10001
10002done
10003
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10005$as_echo_n "checking for SIZE_MAX... " >&6; }
10006if ${gl_cv_size_max+:} false; then :
10007 $as_echo_n "(cached) " >&6
10008else
10009
10010 gl_cv_size_max=
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h. */
10013
10014#include <limits.h>
10015#if HAVE_STDINT_H
10016#include <stdint.h>
10017#endif
10018#ifdef SIZE_MAX
10019Found it
10020#endif
10021
10022_ACEOF
10023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10024 $EGREP "Found it" >/dev/null 2>&1; then :
10025 gl_cv_size_max=yes
10026fi
10027rm -f conftest*
10028
10029 if test -z "$gl_cv_size_max"; then
10030 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10031#include <limits.h>"; then :
10032
10033else
10034 size_t_bits_minus_1=
10035fi
10036
10037 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10038
10039else
10040 fits_in_uint=
10041fi
10042
10043 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10044 if test $fits_in_uint = 1; then
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046/* end confdefs.h. */
10047#include <stddef.h>
10048 extern size_t foo;
10049 extern unsigned long foo;
10050
10051int
10052main ()
10053{
10054
10055 ;
10056 return 0;
10057}
10058_ACEOF
10059if ac_fn_c_try_compile "$LINENO"; then :
10060 fits_in_uint=0
10061fi
10062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 fi
10064 if test $fits_in_uint = 1; then
10065 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10066 else
10067 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10068 fi
10069 else
10070 gl_cv_size_max='((size_t)~(size_t)0)'
10071 fi
10072 fi
10073
10074fi
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10076$as_echo "$gl_cv_size_max" >&6; }
10077 if test "$gl_cv_size_max" != yes; then
10078
10079cat >>confdefs.h <<_ACEOF
10080#define SIZE_MAX $gl_cv_size_max
10081_ACEOF
10082
10083 fi
10084
10085
10086
10087
10088 for ac_header in stdint.h
10089do :
10090 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10091if test "x$ac_cv_header_stdint_h" = xyes; then :
10092 cat >>confdefs.h <<_ACEOF
10093#define HAVE_STDINT_H 1
10094_ACEOF
10095
10096fi
10097
10098done
10099
10100
10101
10102
10103
10104 for ac_func in $ac_func_list
10105do :
10106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10107ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10108if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10109 cat >>confdefs.h <<_ACEOF
10110#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10111_ACEOF
10112
10113fi
10114done
10115
10116
10117
10118
10119
10120
10121
10122
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10124$as_echo_n "checking for working fcntl.h... " >&6; }
10125if ${gl_cv_header_working_fcntl_h+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127else
10128 if test "$cross_compiling" = yes; then :
10129 gl_cv_header_working_fcntl_h=cross-compiling
10130else
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132/* end confdefs.h. */
10133#include <sys/types.h>
10134 #include <sys/stat.h>
10135 #if HAVE_UNISTD_H
10136 # include <unistd.h>
10137 #else /* on Windows with MSVC */
10138 # include <io.h>
10139 # include <stdlib.h>
10140 # defined sleep(n) _sleep ((n) * 1000)
10141 #endif
10142 #include <fcntl.h>
10143 #ifndef O_NOATIME
10144 #define O_NOATIME 0
10145 #endif
10146 #ifndef O_NOFOLLOW
10147 #define O_NOFOLLOW 0
10148 #endif
10149 static int const constants[] =
10150 {
10151 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10152 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10153 };
10154
10155int
10156main ()
10157{
10158
10159 int result = !constants;
10160 #if HAVE_SYMLINK
10161 {
10162 static char const sym[] = "conftest.sym";
10163 if (symlink ("/dev/null", sym) != 0)
10164 result |= 2;
10165 else
10166 {
10167 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10168 if (fd >= 0)
10169 {
10170 close (fd);
10171 result |= 4;
10172 }
10173 }
10174 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10175 result |= 2;
10176 else
10177 {
10178 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10179 if (fd >= 0)
10180 {
10181 close (fd);
10182 result |= 4;
10183 }
10184 }
10185 unlink (sym);
10186 }
10187 #endif
10188 {
10189 static char const file[] = "confdefs.h";
10190 int fd = open (file, O_RDONLY | O_NOATIME);
10191 if (fd < 0)
10192 result |= 8;
10193 else
10194 {
10195 struct stat st0;
10196 if (fstat (fd, &st0) != 0)
10197 result |= 16;
10198 else
10199 {
10200 char c;
10201 sleep (1);
10202 if (read (fd, &c, 1) != 1)
10203 result |= 24;
10204 else
10205 {
10206 if (close (fd) != 0)
10207 result |= 32;
10208 else
10209 {
10210 struct stat st1;
10211 if (stat (file, &st1) != 0)
10212 result |= 40;
10213 else
10214 if (st0.st_atime != st1.st_atime)
10215 result |= 64;
10216 }
10217 }
10218 }
10219 }
10220 }
10221 return result;
10222 ;
10223 return 0;
10224}
10225_ACEOF
10226if ac_fn_c_try_run "$LINENO"; then :
10227 gl_cv_header_working_fcntl_h=yes
10228else
10229 case $? in #(
10230 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10231 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10232 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10233 *) gl_cv_header_working_fcntl_h='no';;
10234 esac
10235fi
10236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10237 conftest.$ac_objext conftest.beam conftest.$ac_ext
10238fi
10239
10240fi
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10242$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10243
10244 case $gl_cv_header_working_fcntl_h in #(
10245 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10246 *) ac_val=1;;
10247 esac
10248
10249cat >>confdefs.h <<_ACEOF
10250#define HAVE_WORKING_O_NOATIME $ac_val
10251_ACEOF
10252
10253
10254 case $gl_cv_header_working_fcntl_h in #(
10255 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10256 *) ac_val=1;;
10257 esac
10258
10259cat >>confdefs.h <<_ACEOF
10260#define HAVE_WORKING_O_NOFOLLOW $ac_val
10261_ACEOF
10262
10263
10264
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10266$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10267if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10268 $as_echo_n "(cached) " >&6
10269else
10270 gt_save_LIBS="$LIBS"
10271 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273/* end confdefs.h. */
10274#include <CoreFoundation/CFPreferences.h>
10275int
10276main ()
10277{
10278CFPreferencesCopyAppValue(NULL, NULL)
10279 ;
10280 return 0;
10281}
10282_ACEOF
10283if ac_fn_c_try_link "$LINENO"; then :
10284 gt_cv_func_CFPreferencesCopyAppValue=yes
10285else
10286 gt_cv_func_CFPreferencesCopyAppValue=no
10287fi
10288rm -f core conftest.err conftest.$ac_objext \
10289 conftest$ac_exeext conftest.$ac_ext
10290 LIBS="$gt_save_LIBS"
10291fi
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10293$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10294 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10295
10296$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10297
10298 fi
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10300$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10301if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10302 $as_echo_n "(cached) " >&6
10303else
10304 gt_save_LIBS="$LIBS"
10305 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307/* end confdefs.h. */
10308#include <CoreFoundation/CFLocale.h>
10309int
10310main ()
10311{
10312CFLocaleCopyCurrent();
10313 ;
10314 return 0;
10315}
10316_ACEOF
10317if ac_fn_c_try_link "$LINENO"; then :
10318 gt_cv_func_CFLocaleCopyCurrent=yes
10319else
10320 gt_cv_func_CFLocaleCopyCurrent=no
10321fi
10322rm -f core conftest.err conftest.$ac_objext \
10323 conftest$ac_exeext conftest.$ac_ext
10324 LIBS="$gt_save_LIBS"
10325fi
10326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10327$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10328 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10329
10330$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10331
10332 fi
10333 INTL_MACOSX_LIBS=
10334 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10335 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10336 fi
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347 case "$enable_silent_rules" in
10348 yes) INTL_DEFAULT_VERBOSITY=0;;
10349 no) INTL_DEFAULT_VERBOSITY=1;;
10350 *) INTL_DEFAULT_VERBOSITY=1;;
10351 esac
10352
10353
10354 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10355if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10356
10357else
10358
10359$as_echo "#define ptrdiff_t long" >>confdefs.h
10360
10361
10362fi
10363
10364 for ac_header in features.h stddef.h stdlib.h string.h
10365do :
10366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10367ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10368if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10369 cat >>confdefs.h <<_ACEOF
10370#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10371_ACEOF
10372
10373fi
10374
10375done
10376
10377 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10378 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10379do :
10380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10381ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10382if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10383 cat >>confdefs.h <<_ACEOF
10384#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10385_ACEOF
10386
10387fi
10388done
10389
10390
10391 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10392"
10393if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10394 ac_have_decl=1
10395else
10396 ac_have_decl=0
10397fi
10398
10399cat >>confdefs.h <<_ACEOF
10400#define HAVE_DECL__SNPRINTF $ac_have_decl
10401_ACEOF
10402ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10403"
10404if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10405 ac_have_decl=1
10406else
10407 ac_have_decl=0
10408fi
10409
10410cat >>confdefs.h <<_ACEOF
10411#define HAVE_DECL__SNWPRINTF $ac_have_decl
10412_ACEOF
10413
10414
10415 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10416"
10417if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10418 ac_have_decl=1
10419else
10420 ac_have_decl=0
10421fi
10422
10423cat >>confdefs.h <<_ACEOF
10424#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10425_ACEOF
10426
10427
10428 case $gt_cv_func_printf_posix in
10429 *yes) HAVE_POSIX_PRINTF=1 ;;
10430 *) HAVE_POSIX_PRINTF=0 ;;
10431 esac
10432
10433 if test "$ac_cv_func_asprintf" = yes; then
10434 HAVE_ASPRINTF=1
10435 else
10436 HAVE_ASPRINTF=0
10437 fi
10438
10439 if test "$ac_cv_func_snprintf" = yes; then
10440 HAVE_SNPRINTF=1
10441 else
10442 HAVE_SNPRINTF=0
10443 fi
10444
10445 if test "$ac_cv_func_newlocale" = yes; then
10446 HAVE_NEWLOCALE=1
10447 else
10448 HAVE_NEWLOCALE=0
10449 fi
10450
10451 if test "$ac_cv_func_wprintf" = yes; then
10452 HAVE_WPRINTF=1
10453 else
10454 HAVE_WPRINTF=0
10455 fi
10456
10457
10458
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10460$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10461if ${am_cv_langinfo_codeset+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463else
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465/* end confdefs.h. */
10466#include <langinfo.h>
10467int
10468main ()
10469{
10470char* cs = nl_langinfo(CODESET); return !cs;
10471 ;
10472 return 0;
10473}
10474_ACEOF
10475if ac_fn_c_try_link "$LINENO"; then :
10476 am_cv_langinfo_codeset=yes
10477else
10478 am_cv_langinfo_codeset=no
10479fi
10480rm -f core conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482
10483fi
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10485$as_echo "$am_cv_langinfo_codeset" >&6; }
10486 if test $am_cv_langinfo_codeset = yes; then
10487
10488$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10489
10490 fi
10491
10492
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10494$as_echo_n "checking for LC_MESSAGES... " >&6; }
10495if ${gt_cv_val_LC_MESSAGES+:} false; then :
10496 $as_echo_n "(cached) " >&6
10497else
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499/* end confdefs.h. */
10500#include <locale.h>
10501int
10502main ()
10503{
10504return LC_MESSAGES
10505 ;
10506 return 0;
10507}
10508_ACEOF
10509if ac_fn_c_try_link "$LINENO"; then :
10510 gt_cv_val_LC_MESSAGES=yes
10511else
10512 gt_cv_val_LC_MESSAGES=no
10513fi
10514rm -f core conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10516fi
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10518$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10519 if test $gt_cv_val_LC_MESSAGES = yes; then
10520
10521$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10522
10523 fi
10524
10525
10526 if test "$enable_shared" = yes; then
10527 case "$host_os" in
10528 mingw* | cygwin*) is_woe32dll=yes ;;
10529 *) is_woe32dll=no ;;
10530 esac
10531 else
10532 is_woe32dll=no
10533 fi
10534 WOE32DLL=$is_woe32dll
10535
10536
10537 case "$host_os" in
10538 mingw* | cygwin*) is_woe32=yes ;;
10539 *) is_woe32=no ;;
10540 esac
10541 WOE32=$is_woe32
10542
10543 if test $WOE32 = yes; then
10544 if test -n "$ac_tool_prefix"; then
10545 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10546set dummy ${ac_tool_prefix}windres; ac_word=$2
10547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10548$as_echo_n "checking for $ac_word... " >&6; }
10549if ${ac_cv_prog_WINDRES+:} false; then :
10550 $as_echo_n "(cached) " >&6
10551else
10552 if test -n "$WINDRES"; then
10553 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10554else
10555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556for as_dir in $PATH
10557do
10558 IFS=$as_save_IFS
10559 test -z "$as_dir" && as_dir=.
10560 for ac_exec_ext in '' $ac_executable_extensions; do
10561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10562 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10564 break 2
10565 fi
10566done
10567 done
10568IFS=$as_save_IFS
10569
10570fi
10571fi
10572WINDRES=$ac_cv_prog_WINDRES
10573if test -n "$WINDRES"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10575$as_echo "$WINDRES" >&6; }
10576else
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578$as_echo "no" >&6; }
10579fi
10580
10581
10582fi
10583if test -z "$ac_cv_prog_WINDRES"; then
10584 ac_ct_WINDRES=$WINDRES
10585 # Extract the first word of "windres", so it can be a program name with args.
10586set dummy windres; ac_word=$2
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588$as_echo_n "checking for $ac_word... " >&6; }
10589if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10590 $as_echo_n "(cached) " >&6
10591else
10592 if test -n "$ac_ct_WINDRES"; then
10593 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10594else
10595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596for as_dir in $PATH
10597do
10598 IFS=$as_save_IFS
10599 test -z "$as_dir" && as_dir=.
10600 for ac_exec_ext in '' $ac_executable_extensions; do
10601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10602 ac_cv_prog_ac_ct_WINDRES="windres"
10603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10604 break 2
10605 fi
10606done
10607 done
10608IFS=$as_save_IFS
10609
10610fi
10611fi
10612ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10613if test -n "$ac_ct_WINDRES"; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10615$as_echo "$ac_ct_WINDRES" >&6; }
10616else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618$as_echo "no" >&6; }
10619fi
10620
10621 if test "x$ac_ct_WINDRES" = x; then
10622 WINDRES=""
10623 else
10624 case $cross_compiling:$ac_tool_warned in
10625yes:)
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10628ac_tool_warned=yes ;;
10629esac
10630 WINDRES=$ac_ct_WINDRES
10631 fi
10632else
10633 WINDRES="$ac_cv_prog_WINDRES"
10634fi
10635
10636 fi
10637
10638 case "$host_os" in
10639 hpux*) LTLIBC="" ;;
10640 *) LTLIBC="-lc" ;;
10641 esac
10642
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10670$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10671if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10672 $as_echo_n "(cached) " >&6
10673else
10674 gt_save_LIBS="$LIBS"
10675 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677/* end confdefs.h. */
10678#include <CoreFoundation/CFPreferences.h>
10679int
10680main ()
10681{
10682CFPreferencesCopyAppValue(NULL, NULL)
10683 ;
10684 return 0;
10685}
10686_ACEOF
10687if ac_fn_c_try_link "$LINENO"; then :
10688 gt_cv_func_CFPreferencesCopyAppValue=yes
10689else
10690 gt_cv_func_CFPreferencesCopyAppValue=no
10691fi
10692rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS="$gt_save_LIBS"
10695fi
10696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10697$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10698 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10699
10700$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10701
10702 fi
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10704$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10705if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10706 $as_echo_n "(cached) " >&6
10707else
10708 gt_save_LIBS="$LIBS"
10709 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711/* end confdefs.h. */
10712#include <CoreFoundation/CFLocale.h>
10713int
10714main ()
10715{
10716CFLocaleCopyCurrent();
10717 ;
10718 return 0;
10719}
10720_ACEOF
10721if ac_fn_c_try_link "$LINENO"; then :
10722 gt_cv_func_CFLocaleCopyCurrent=yes
10723else
10724 gt_cv_func_CFLocaleCopyCurrent=no
10725fi
10726rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 LIBS="$gt_save_LIBS"
10729fi
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10731$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10732 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10733
10734$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10735
10736 fi
10737 INTL_MACOSX_LIBS=
10738 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10739 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10740 fi
10741
10742
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010743
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010744
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745
10746
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010747 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010748 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010749
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010750 LIBINTL=
10751 LTLIBINTL=
10752 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010753
Theodore Ts'o93613952014-07-03 23:44:13 -040010754 case " $gt_needs " in
10755 *" need-formatstring-macros "*) gt_api_version=3 ;;
10756 *" need-ngettext "*) gt_api_version=2 ;;
10757 *) gt_api_version=1 ;;
10758 esac
10759 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10760 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10761
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010762 if test "$USE_NLS" = "yes"; then
10763 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010764
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010766$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010767
Theodore Ts'oe1052142006-10-21 21:46:47 -040010768# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010769if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010770 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010771else
10772 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010773fi
10774
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010776$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010777
10778 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10779 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010780
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010781
Theodore Ts'o93613952014-07-03 23:44:13 -040010782 if test $gt_api_version -ge 3; then
10783 gt_revision_test_code='
10784#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10785#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10786#endif
10787typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10788'
10789 else
10790 gt_revision_test_code=
10791 fi
10792 if test $gt_api_version -ge 2; then
10793 gt_expression_test_code=' + * ngettext ("", "", 0)'
10794 else
10795 gt_expression_test_code=
10796 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010797
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010799$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010800if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010801 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010802else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010804/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010805
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010806#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010807$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010808extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010809extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010810
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010811int
10812main ()
10813{
Theodore Ts'o93613952014-07-03 23:44:13 -040010814
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010815bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010816return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10817
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010818 ;
10819 return 0;
10820}
10821_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010822if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010823 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010824else
Theodore Ts'o93613952014-07-03 23:44:13 -040010825 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010826fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010827rm -f core conftest.err conftest.$ac_objext \
10828 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010829fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010830eval ac_res=\$$gt_func_gnugettext_libc
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10832$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010833
Theodore Ts'o93613952014-07-03 23:44:13 -040010834 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10835
10836
10837
10838
10839
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010840
10841
10842
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010843 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010844
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010845 acl_save_prefix="$prefix"
10846 prefix="$acl_final_prefix"
10847 acl_save_exec_prefix="$exec_prefix"
10848 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010849
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010850 eval additional_includedir=\"$includedir\"
10851 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010852
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010853 exec_prefix="$acl_save_exec_prefix"
10854 prefix="$acl_save_prefix"
10855
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010856
Theodore Ts'oe1052142006-10-21 21:46:47 -040010857# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010858if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010859 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010860 if test "X$withval" = "Xno"; then
10861 use_additional=no
10862 else
10863 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010864
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010865 acl_save_prefix="$prefix"
10866 prefix="$acl_final_prefix"
10867 acl_save_exec_prefix="$exec_prefix"
10868 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010869
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010870 eval additional_includedir=\"$includedir\"
10871 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010872
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010873 exec_prefix="$acl_save_exec_prefix"
10874 prefix="$acl_save_prefix"
10875
10876 else
10877 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010878 additional_libdir="$withval/$acl_libdirstem"
10879 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10880 && ! test -d "$withval/$acl_libdirstem"; then
10881 additional_libdir="$withval/$acl_libdirstem2"
10882 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010883 fi
10884 fi
10885
Theodore Ts'oe1052142006-10-21 21:46:47 -040010886fi
10887
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010888 LIBINTL=
10889 LTLIBINTL=
10890 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010891 LIBINTL_PREFIX=
10892 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010893 rpathdirs=
10894 ltrpathdirs=
10895 names_already_handled=
10896 names_next_round='intl '
10897 while test -n "$names_next_round"; do
10898 names_this_round="$names_next_round"
10899 names_next_round=
10900 for name in $names_this_round; do
10901 already_handled=
10902 for n in $names_already_handled; do
10903 if test "$n" = "$name"; then
10904 already_handled=yes
10905 break
10906 fi
10907 done
10908 if test -z "$already_handled"; then
10909 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010910 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010911 eval value=\"\$HAVE_LIB$uppername\"
10912 if test -n "$value"; then
10913 if test "$value" = yes; then
10914 eval value=\"\$LIB$uppername\"
10915 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10916 eval value=\"\$LTLIB$uppername\"
10917 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10918 else
10919 :
10920 fi
10921 else
10922 found_dir=
10923 found_la=
10924 found_so=
10925 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010926 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10927 if test -n "$acl_shlibext"; then
10928 shrext=".$acl_shlibext" # typically: shrext=.so
10929 else
10930 shrext=
10931 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010932 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010933 dir="$additional_libdir"
10934 if test -n "$acl_shlibext"; then
10935 if test -f "$dir/$libname$shrext"; then
10936 found_dir="$dir"
10937 found_so="$dir/$libname$shrext"
10938 else
10939 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10940 ver=`(cd "$dir" && \
10941 for f in "$libname$shrext".*; do echo "$f"; done \
10942 | sed -e "s,^$libname$shrext\\\\.,," \
10943 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10944 | sed 1q ) 2>/dev/null`
10945 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10946 found_dir="$dir"
10947 found_so="$dir/$libname$shrext.$ver"
10948 fi
10949 else
10950 eval library_names=\"$acl_library_names_spec\"
10951 for f in $library_names; do
10952 if test -f "$dir/$f"; then
10953 found_dir="$dir"
10954 found_so="$dir/$f"
10955 break
10956 fi
10957 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010958 fi
10959 fi
10960 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010961 if test "X$found_dir" = "X"; then
10962 if test -f "$dir/$libname.$acl_libext"; then
10963 found_dir="$dir"
10964 found_a="$dir/$libname.$acl_libext"
10965 fi
10966 fi
10967 if test "X$found_dir" != "X"; then
10968 if test -f "$dir/$libname.la"; then
10969 found_la="$dir/$libname.la"
10970 fi
10971 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010972 fi
10973 if test "X$found_dir" = "X"; then
10974 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010975
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010976 acl_save_prefix="$prefix"
10977 prefix="$acl_final_prefix"
10978 acl_save_exec_prefix="$exec_prefix"
10979 exec_prefix="$acl_final_exec_prefix"
10980 eval x=\"$x\"
10981 exec_prefix="$acl_save_exec_prefix"
10982 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010983
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010984 case "$x" in
10985 -L*)
10986 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010987 if test -n "$acl_shlibext"; then
10988 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010989 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010990 found_so="$dir/$libname$shrext"
10991 else
10992 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10993 ver=`(cd "$dir" && \
10994 for f in "$libname$shrext".*; do echo "$f"; done \
10995 | sed -e "s,^$libname$shrext\\\\.,," \
10996 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10997 | sed 1q ) 2>/dev/null`
10998 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10999 found_dir="$dir"
11000 found_so="$dir/$libname$shrext.$ver"
11001 fi
11002 else
11003 eval library_names=\"$acl_library_names_spec\"
11004 for f in $library_names; do
11005 if test -f "$dir/$f"; then
11006 found_dir="$dir"
11007 found_so="$dir/$f"
11008 break
11009 fi
11010 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011011 fi
11012 fi
11013 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011014 if test "X$found_dir" = "X"; then
11015 if test -f "$dir/$libname.$acl_libext"; then
11016 found_dir="$dir"
11017 found_a="$dir/$libname.$acl_libext"
11018 fi
11019 fi
11020 if test "X$found_dir" != "X"; then
11021 if test -f "$dir/$libname.la"; then
11022 found_la="$dir/$libname.la"
11023 fi
11024 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011025 ;;
11026 esac
11027 if test "X$found_dir" != "X"; then
11028 break
11029 fi
11030 done
11031 fi
11032 if test "X$found_dir" != "X"; then
11033 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11034 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011035 if test "$enable_rpath" = no \
11036 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11037 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011038 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11039 else
11040 haveit=
11041 for x in $ltrpathdirs; do
11042 if test "X$x" = "X$found_dir"; then
11043 haveit=yes
11044 break
11045 fi
11046 done
11047 if test -z "$haveit"; then
11048 ltrpathdirs="$ltrpathdirs $found_dir"
11049 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011050 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011051 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11052 else
Theodore Ts'o93613952014-07-03 23:44:13 -040011053 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011054 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11055 haveit=
11056 for x in $rpathdirs; do
11057 if test "X$x" = "X$found_dir"; then
11058 haveit=yes
11059 break
11060 fi
11061 done
11062 if test -z "$haveit"; then
11063 rpathdirs="$rpathdirs $found_dir"
11064 fi
11065 else
11066 haveit=
11067 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011068
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011069 acl_save_prefix="$prefix"
11070 prefix="$acl_final_prefix"
11071 acl_save_exec_prefix="$exec_prefix"
11072 exec_prefix="$acl_final_exec_prefix"
11073 eval x=\"$x\"
11074 exec_prefix="$acl_save_exec_prefix"
11075 prefix="$acl_save_prefix"
11076
11077 if test "X$x" = "X-L$found_dir"; then
11078 haveit=yes
11079 break
11080 fi
11081 done
11082 if test -z "$haveit"; then
11083 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11084 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011085 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011086 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11087 else
11088 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11089 fi
11090 fi
11091 fi
11092 fi
11093 else
11094 if test "X$found_a" != "X"; then
11095 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11096 else
11097 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11098 fi
11099 fi
11100 additional_includedir=
11101 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011102 */$acl_libdirstem | */$acl_libdirstem/)
11103 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11104 if test "$name" = 'intl'; then
11105 LIBINTL_PREFIX="$basedir"
11106 fi
11107 additional_includedir="$basedir/include"
11108 ;;
11109 */$acl_libdirstem2 | */$acl_libdirstem2/)
11110 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11111 if test "$name" = 'intl'; then
11112 LIBINTL_PREFIX="$basedir"
11113 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011114 additional_includedir="$basedir/include"
11115 ;;
11116 esac
11117 if test "X$additional_includedir" != "X"; then
11118 if test "X$additional_includedir" != "X/usr/include"; then
11119 haveit=
11120 if test "X$additional_includedir" = "X/usr/local/include"; then
11121 if test -n "$GCC"; then
11122 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011123 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011124 esac
11125 fi
11126 fi
11127 if test -z "$haveit"; then
11128 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011129
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011130 acl_save_prefix="$prefix"
11131 prefix="$acl_final_prefix"
11132 acl_save_exec_prefix="$exec_prefix"
11133 exec_prefix="$acl_final_exec_prefix"
11134 eval x=\"$x\"
11135 exec_prefix="$acl_save_exec_prefix"
11136 prefix="$acl_save_prefix"
11137
11138 if test "X$x" = "X-I$additional_includedir"; then
11139 haveit=yes
11140 break
11141 fi
11142 done
11143 if test -z "$haveit"; then
11144 if test -d "$additional_includedir"; then
11145 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11146 fi
11147 fi
11148 fi
11149 fi
11150 fi
11151 if test -n "$found_la"; then
11152 save_libdir="$libdir"
11153 case "$found_la" in
11154 */* | *\\*) . "$found_la" ;;
11155 *) . "./$found_la" ;;
11156 esac
11157 libdir="$save_libdir"
11158 for dep in $dependency_libs; do
11159 case "$dep" in
11160 -L*)
11161 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011162 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11163 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011164 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011165 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11166 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011167 if test -n "$GCC"; then
11168 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011169 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011170 esac
11171 fi
11172 fi
11173 if test -z "$haveit"; then
11174 haveit=
11175 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011176
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011177 acl_save_prefix="$prefix"
11178 prefix="$acl_final_prefix"
11179 acl_save_exec_prefix="$exec_prefix"
11180 exec_prefix="$acl_final_exec_prefix"
11181 eval x=\"$x\"
11182 exec_prefix="$acl_save_exec_prefix"
11183 prefix="$acl_save_prefix"
11184
11185 if test "X$x" = "X-L$additional_libdir"; then
11186 haveit=yes
11187 break
11188 fi
11189 done
11190 if test -z "$haveit"; then
11191 if test -d "$additional_libdir"; then
11192 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11193 fi
11194 fi
11195 haveit=
11196 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011197
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011198 acl_save_prefix="$prefix"
11199 prefix="$acl_final_prefix"
11200 acl_save_exec_prefix="$exec_prefix"
11201 exec_prefix="$acl_final_exec_prefix"
11202 eval x=\"$x\"
11203 exec_prefix="$acl_save_exec_prefix"
11204 prefix="$acl_save_prefix"
11205
11206 if test "X$x" = "X-L$additional_libdir"; then
11207 haveit=yes
11208 break
11209 fi
11210 done
11211 if test -z "$haveit"; then
11212 if test -d "$additional_libdir"; then
11213 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11214 fi
11215 fi
11216 fi
11217 fi
11218 ;;
11219 -R*)
11220 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11221 if test "$enable_rpath" != no; then
11222 haveit=
11223 for x in $rpathdirs; do
11224 if test "X$x" = "X$dir"; then
11225 haveit=yes
11226 break
11227 fi
11228 done
11229 if test -z "$haveit"; then
11230 rpathdirs="$rpathdirs $dir"
11231 fi
11232 haveit=
11233 for x in $ltrpathdirs; do
11234 if test "X$x" = "X$dir"; then
11235 haveit=yes
11236 break
11237 fi
11238 done
11239 if test -z "$haveit"; then
11240 ltrpathdirs="$ltrpathdirs $dir"
11241 fi
11242 fi
11243 ;;
11244 -l*)
11245 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11246 ;;
11247 *.la)
11248 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11249 ;;
11250 *)
11251 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11252 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11253 ;;
11254 esac
11255 done
11256 fi
11257 else
11258 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11259 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11260 fi
11261 fi
11262 fi
11263 done
11264 done
11265 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011266 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011267 alldirs=
11268 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011269 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011270 done
11271 acl_save_libdir="$libdir"
11272 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011273 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011274 libdir="$acl_save_libdir"
11275 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11276 else
11277 for found_dir in $rpathdirs; do
11278 acl_save_libdir="$libdir"
11279 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011280 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011281 libdir="$acl_save_libdir"
11282 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11283 done
11284 fi
11285 fi
11286 if test "X$ltrpathdirs" != "X"; then
11287 for found_dir in $ltrpathdirs; do
11288 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11289 done
11290 fi
11291
Theodore Ts'o93613952014-07-03 23:44:13 -040011292
11293
11294
11295
11296
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011298$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011299if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011300 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011301else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011302 gt_save_CPPFLAGS="$CPPFLAGS"
11303 CPPFLAGS="$CPPFLAGS $INCINTL"
11304 gt_save_LIBS="$LIBS"
11305 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011307/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011308
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011309#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011310$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011311extern int _nl_msg_cat_cntr;
11312extern
11313#ifdef __cplusplus
11314"C"
11315#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011316const char *_nl_expand_alias (const char *);
11317
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011318int
11319main ()
11320{
Theodore Ts'o93613952014-07-03 23:44:13 -040011321
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011322bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011323return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11324
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011325 ;
11326 return 0;
11327}
11328_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011329if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011330 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011331else
Theodore Ts'o93613952014-07-03 23:44:13 -040011332 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011333fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011334rm -f core conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011336 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011337 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011339/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011340
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011341#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011342$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011343extern int _nl_msg_cat_cntr;
11344extern
11345#ifdef __cplusplus
11346"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011347#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011348const char *_nl_expand_alias (const char *);
11349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011350int
11351main ()
11352{
Theodore Ts'o93613952014-07-03 23:44:13 -040011353
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011354bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011355return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011357 ;
11358 return 0;
11359}
11360_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011361if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011362 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011363 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11364 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011365
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011366fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011367rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011369 fi
11370 CPPFLAGS="$gt_save_CPPFLAGS"
11371 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011372fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011373eval ac_res=\$$gt_func_gnugettext_libintl
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11375$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011376 fi
11377
Theodore Ts'o93613952014-07-03 23:44:13 -040011378 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11379 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380 && test "$PACKAGE" != gettext-runtime \
11381 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011382 gt_use_preinstalled_gnugettext=yes
11383 else
11384 LIBINTL=
11385 LTLIBINTL=
11386 INCINTL=
11387 fi
11388
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011389
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011390 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11391 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011392 fi
11393 fi
11394
11395 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011396 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011397 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011398 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11399 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011400 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011401 fi
11402
Theodore Ts'o93613952014-07-03 23:44:13 -040011403 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011404 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11405 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11406 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011407 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011408
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011409
Theodore Ts'o93613952014-07-03 23:44:13 -040011410 if test -n "$INTL_MACOSX_LIBS"; then
11411 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11412 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11413 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11414 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11415 fi
11416 fi
11417
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011418 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11419 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011420
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011421$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011422
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011423 else
11424 USE_NLS=no
11425 fi
11426 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011427
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011429$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011431$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011432 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011434$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011435 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011436 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011437 gt_source="external libintl"
11438 else
11439 gt_source="libc"
11440 fi
11441 else
11442 gt_source="included intl directory"
11443 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011445$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011446 fi
11447
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011448 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011449
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011450 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011451 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011453$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011455$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011456
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011457 for element in $INCINTL; do
11458 haveit=
11459 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011460
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011461 acl_save_prefix="$prefix"
11462 prefix="$acl_final_prefix"
11463 acl_save_exec_prefix="$exec_prefix"
11464 exec_prefix="$acl_final_exec_prefix"
11465 eval x=\"$x\"
11466 exec_prefix="$acl_save_exec_prefix"
11467 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011468
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011469 if test "X$x" = "X$element"; then
11470 haveit=yes
11471 break
11472 fi
11473 done
11474 if test -z "$haveit"; then
11475 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11476 fi
11477 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011478
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011479 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011480
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011481
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011482$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011483
11484
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011485$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011486
11487 fi
11488
11489 POSUB=po
11490 fi
11491
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011492
11493 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011494 BUILD_INCLUDED_LIBINTL=yes
11495 fi
11496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011497
11498
11499
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011500
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011501 nls_cv_header_intl=
11502 nls_cv_header_libgt=
11503
11504 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011505
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011506
11507 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011508
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011509
11510 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011511
11512
Theodore Ts'o93613952014-07-03 23:44:13 -040011513 INTLOBJS=
11514 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011515 INTLOBJS="\$(GETTOBJS)"
11516 fi
11517
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011518
11519 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011520
11521
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011522
11523 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011524
11525
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011526
11527
11528
11529
11530
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011532$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11533set x ${MAKE-make}
11534ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011535if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011536 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011537else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011538 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011539SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011540all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011541 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011542_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011543# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011544case `${MAKE-make} -f conftest.make 2>/dev/null` in
11545 *@@@%%%=?*=@@@%%%*)
11546 eval ac_cv_prog_make_${ac_make}_set=yes;;
11547 *)
11548 eval ac_cv_prog_make_${ac_make}_set=no;;
11549esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011550rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011551fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011552if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011554$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011555 SET_MAKE=
11556else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011558$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011559 SET_MAKE="MAKE=${MAKE-make}"
11560fi
11561
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011563$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011564if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011565 $as_echo_n "(cached) " >&6
11566else
11567 _cv_gnu_make_command='' ;
11568 for a in "$MAKE" make gmake gnumake ; do
11569 if test -z "$a" ; then continue ; fi ;
11570 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11571 _cv_gnu_make_command=$a ;
11572 break;
11573 fi
11574 done ;
11575
11576fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011578$as_echo "$_cv_gnu_make_command" >&6; } ;
11579 if test "x$_cv_gnu_make_command" != "x" ; then
11580 ifGNUmake='' ;
11581 ifNotGNUmake='#' ;
11582 else
11583 ifGNUmake='#' ;
11584 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011586$as_echo "\"Not found\"" >&6; };
11587 fi
11588
11589
11590
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011591# Extract the first word of "ln", so it can be a program name with args.
11592set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011594$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011595if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011596 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011597else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011598 case $LN in
11599 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011600 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11601 ;;
11602 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604for as_dir in $PATH
11605do
11606 IFS=$as_save_IFS
11607 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011608 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011610 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011612 break 2
11613 fi
11614done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011615 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011616IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011617
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011618 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11619 ;;
11620esac
11621fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011622LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011623if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011625$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011626else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011628$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011629fi
11630
Theodore Ts'oe1052142006-10-21 21:46:47 -040011631
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011633$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011634LN_S=$as_ln_s
11635if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011637$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011638else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011640$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011641fi
11642
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011643# Extract the first word of "mv", so it can be a program name with args.
11644set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011646$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011647if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011648 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011649else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011650 case $MV in
11651 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011652 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11653 ;;
11654 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656for as_dir in $PATH
11657do
11658 IFS=$as_save_IFS
11659 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011660 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011662 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011664 break 2
11665 fi
11666done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011667 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011668IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011669
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011670 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11671 ;;
11672esac
11673fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011674MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011675if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011677$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011678else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011680$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011681fi
11682
Theodore Ts'oe1052142006-10-21 21:46:47 -040011683
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011684# Extract the first word of "cp", so it can be a program name with args.
11685set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011687$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011688if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011689 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011690else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011691 case $CP in
11692 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011693 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11694 ;;
11695 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697for as_dir in $PATH
11698do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011701 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011703 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011705 break 2
11706 fi
11707done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011708 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011709IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011710
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011711 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11712 ;;
11713esac
11714fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011715CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011716if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011718$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011719else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011721$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011722fi
11723
Theodore Ts'oe1052142006-10-21 21:46:47 -040011724
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011725# Extract the first word of "rm", so it can be a program name with args.
11726set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011728$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011729if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011730 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011731else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011732 case $RM in
11733 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011734 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11735 ;;
11736 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738for as_dir in $PATH
11739do
11740 IFS=$as_save_IFS
11741 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011742 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011744 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011746 break 2
11747 fi
11748done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011749 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011750IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011751
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011752 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11753 ;;
11754esac
11755fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011756RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011757if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011759$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011760else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011762$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011763fi
11764
Theodore Ts'oe1052142006-10-21 21:46:47 -040011765
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011766# Extract the first word of "chmod", so it can be a program name with args.
11767set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011769$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011770if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011771 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011772else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011773 case $CHMOD in
11774 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011775 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11776 ;;
11777 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779for as_dir in $PATH
11780do
11781 IFS=$as_save_IFS
11782 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011783 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011785 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011787 break 2
11788 fi
11789done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011790 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011791IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011792
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011793 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11794 ;;
11795esac
11796fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011797CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011798if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011800$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011801else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011803$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011804fi
11805
Theodore Ts'oe1052142006-10-21 21:46:47 -040011806
Theodore Ts'o32237012005-01-17 19:13:39 -050011807for ac_prog in gawk mawk nawk awk
11808do
11809 # Extract the first word of "$ac_prog", so it can be a program name with args.
11810set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011812$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011813if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011814 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011815else
Theodore Ts'o32237012005-01-17 19:13:39 -050011816 if test -n "$AWK"; then
11817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11818else
11819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011820for as_dir in $PATH
11821do
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011824 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011826 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011828 break 2
11829 fi
11830done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011831 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011832IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011833
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011834fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011835fi
11836AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011837if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011839$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011840else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011842$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011843fi
11844
Theodore Ts'oe1052142006-10-21 21:46:47 -040011845
Theodore Ts'o32237012005-01-17 19:13:39 -050011846 test -n "$AWK" && break
11847done
11848
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011850$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011851if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011852 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011853else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011854 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11855 then ac_cv_path_EGREP="$GREP -E"
11856 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011857 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011858 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011859 # Loop through the user's path and test for each of PROGNAME-LIST
11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011861for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11862do
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011865 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011868 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011869# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011870 # Check for GNU $ac_path_EGREP
11871case `"$ac_path_EGREP" --version 2>&1` in
11872*GNU*)
11873 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11874*)
11875 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011876 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011877 while :
11878 do
11879 cat "conftest.in" "conftest.in" >"conftest.tmp"
11880 mv "conftest.tmp" "conftest.in"
11881 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011882 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011883 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011885 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011886 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11887 # Best one so far, save it but keep looking for a better one
11888 ac_cv_path_EGREP="$ac_path_EGREP"
11889 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011890 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011891 # 10*(2^10) chars as input seems more than enough
11892 test $ac_count -gt 10 && break
11893 done
11894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11895esac
11896
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011897 $ac_path_EGREP_found && break 3
11898 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011899 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011900 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011901IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011902 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011903 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 +010011904 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011905else
11906 ac_cv_path_EGREP=$EGREP
11907fi
11908
Theodore Ts'oe1052142006-10-21 21:46:47 -040011909 fi
11910fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011912$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011913 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011914
11915
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011916# Extract the first word of "sed", so it can be a program name with args.
11917set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011919$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011920if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011921 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011922else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011923 case $SED in
11924 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011925 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11926 ;;
11927 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929for as_dir in $PATH
11930do
11931 IFS=$as_save_IFS
11932 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011933 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011935 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011937 break 2
11938 fi
11939done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011940 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011941IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011942
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011943 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11944 ;;
11945esac
11946fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011947SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011948if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011950$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011951else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011953$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011954fi
11955
Theodore Ts'oe1052142006-10-21 21:46:47 -040011956
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011957# Extract the first word of "perl", so it can be a program name with args.
11958set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011960$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011961if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011962 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011963else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011964 case $PERL in
11965 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011966 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11967 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011968 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970for as_dir in $PATH
11971do
11972 IFS=$as_save_IFS
11973 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011974 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011976 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011978 break 2
11979 fi
11980done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011981 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011982IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011983
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011984 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11985 ;;
11986esac
11987fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011988PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011989if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011991$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011992else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011994$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011995fi
11996
Theodore Ts'oe1052142006-10-21 21:46:47 -040011997
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011998# Extract the first word of "ldconfig", so it can be a program name with args.
11999set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012001$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012002if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012003 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012004else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012005 case $LDCONFIG in
12006 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012007 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12008 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012009 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011for as_dir in $PATH
12012do
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012015 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012017 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012019 break 2
12020 fi
12021done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012022 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012023IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012024
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012025 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12026 ;;
12027esac
12028fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012029LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012030if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012032$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012033else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012035$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012036fi
12037
Theodore Ts'oe1052142006-10-21 21:46:47 -040012038
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012039if test -n "$ac_tool_prefix"; then
12040 # 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 +000012041set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012043$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012044if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012045 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012046else
12047 if test -n "$AR"; then
12048 ac_cv_prog_AR="$AR" # Let the user override the test.
12049else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051for as_dir in $PATH
12052do
12053 IFS=$as_save_IFS
12054 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012055 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012057 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012059 break 2
12060 fi
12061done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012062 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012063IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012065fi
12066fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012068if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012070$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012071else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012073$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012074fi
12075
Theodore Ts'oe1052142006-10-21 21:46:47 -040012076
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012077fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012078if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012079 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012080 # Extract the first word of "ar", so it can be a program name with args.
12081set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012083$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012084if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012085 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012086else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012087 if test -n "$ac_ct_AR"; then
12088 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012089else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091for as_dir in $PATH
12092do
12093 IFS=$as_save_IFS
12094 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012095 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012097 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012099 break 2
12100 fi
12101done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012102 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012103IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012104
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012105fi
12106fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012107ac_ct_AR=$ac_cv_prog_ac_ct_AR
12108if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012110$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012111else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012113$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012114fi
12115
Theodore Ts'oe1052142006-10-21 21:46:47 -040012116 if test "x$ac_ct_AR" = x; then
12117 AR="ar"
12118 else
12119 case $cross_compiling:$ac_tool_warned in
12120yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012121{ $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 +010012122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012123ac_tool_warned=yes ;;
12124esac
12125 AR=$ac_ct_AR
12126 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012127else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012128 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012129fi
12130
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012131if test -n "$ac_tool_prefix"; then
12132 # 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 +000012133set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012135$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012136if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012137 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012138else
12139 if test -n "$RANLIB"; then
12140 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12143for as_dir in $PATH
12144do
12145 IFS=$as_save_IFS
12146 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012147 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012149 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012151 break 2
12152 fi
12153done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012154 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012155IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012156
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012157fi
12158fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012159RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012160if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012162$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012163else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012165$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012166fi
12167
Theodore Ts'oe1052142006-10-21 21:46:47 -040012168
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012169fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012170if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012171 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012172 # Extract the first word of "ranlib", so it can be a program name with args.
12173set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012175$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012176if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012177 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012178else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012179 if test -n "$ac_ct_RANLIB"; then
12180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012181else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183for as_dir in $PATH
12184do
12185 IFS=$as_save_IFS
12186 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012187 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012189 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012191 break 2
12192 fi
12193done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012194 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012195IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012196
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012197fi
12198fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012199ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12200if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012202$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012203else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012205$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012206fi
12207
Theodore Ts'oe1052142006-10-21 21:46:47 -040012208 if test "x$ac_ct_RANLIB" = x; then
12209 RANLIB=":"
12210 else
12211 case $cross_compiling:$ac_tool_warned in
12212yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012213{ $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 +010012214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012215ac_tool_warned=yes ;;
12216esac
12217 RANLIB=$ac_ct_RANLIB
12218 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012219else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012220 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012221fi
12222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012223if test -n "$ac_tool_prefix"; then
12224 # 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 +000012225set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012227$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012228if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012229 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012230else
12231 if test -n "$STRIP"; then
12232 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12233else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235for as_dir in $PATH
12236do
12237 IFS=$as_save_IFS
12238 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012239 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012241 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012243 break 2
12244 fi
12245done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012246 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012247IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012248
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012249fi
12250fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012251STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012252if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012254$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012255else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012257$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012258fi
12259
Theodore Ts'oe1052142006-10-21 21:46:47 -040012260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012261fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012262if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012263 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012264 # Extract the first word of "strip", so it can be a program name with args.
12265set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012267$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012268if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012269 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012271 if test -n "$ac_ct_STRIP"; then
12272 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012273else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275for as_dir in $PATH
12276do
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012279 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012281 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012283 break 2
12284 fi
12285done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012286 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012287IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012288
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012289fi
12290fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012291ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12292if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012294$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012295else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012297$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012298fi
12299
Theodore Ts'oe1052142006-10-21 21:46:47 -040012300 if test "x$ac_ct_STRIP" = x; then
12301 STRIP=":"
12302 else
12303 case $cross_compiling:$ac_tool_warned in
12304yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012305{ $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 +010012306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012307ac_tool_warned=yes ;;
12308esac
12309 STRIP=$ac_ct_STRIP
12310 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012311else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012312 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012313fi
12314
Manish Katiyar7321d942008-04-14 17:20:03 +053012315# Extract the first word of "makeinfo", so it can be a program name with args.
12316set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012318$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012319if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012320 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012321else
12322 if test -n "$MAKEINFO"; then
12323 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12324else
12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $PATH
12327do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012330 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012332 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012334 break 2
12335 fi
12336done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012337 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012338IFS=$as_save_IFS
12339
12340fi
12341fi
12342MAKEINFO=$ac_cv_prog_MAKEINFO
12343if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012345$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012346else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012348$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012349fi
12350
12351
12352if test "_$MAKEINFO" = "_"; then
12353 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12354else
12355 case "$MAKEINFO" in
12356 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012358*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012359$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012360*** Makeinfo is missing. Info documentation will not be built." >&2;}
12361 ;;
12362 *)
12363 ;;
12364 esac
12365fi
12366
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012367
Theodore Ts'o6c133521999-07-03 20:37:03 +000012368# See if we need a separate native compiler.
12369if test $cross_compiling = no; then
12370 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012371
Theodore Ts'o6c133521999-07-03 20:37:03 +000012372else
12373 for ac_prog in gcc cc
12374do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012375 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012376set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012378$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012379if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012380 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012381else
12382 if test -n "$BUILD_CC"; then
12383 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12384else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012387do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012388 IFS=$as_save_IFS
12389 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012390 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012392 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012394 break 2
12395 fi
12396done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012397 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012398IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012399
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012400fi
12401fi
12402BUILD_CC=$ac_cv_prog_BUILD_CC
12403if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012405$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012406else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012408$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012409fi
12410
Theodore Ts'oe1052142006-10-21 21:46:47 -040012411
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012412 test -n "$BUILD_CC" && break
12413done
12414
12415fi
Ross Burtonc84da2e2014-07-10 17:44:38 +010012416for 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 -050012417do :
12418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12419ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012420if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012421 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012422#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012423_ACEOF
12424
12425fi
12426
12427done
12428
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012429for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012430do :
12431 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012432#if HAVE_SYS_TYPES_H
12433#include <sys/types.h>
12434#endif
12435#if HAVE_SYS_SOCKET
12436#include <sys/socket.h>
12437#endif
12438
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012439"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012440if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012441 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012442#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012443_ACEOF
12444
12445fi
12446
12447done
12448
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012449for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012450do :
12451 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012452if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012453 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012454#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012455_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012457ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012458if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012459
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012460$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012461
12462fi
12463
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012464fi
12465done
12466
12467
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012468ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12469"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012470if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012471
12472$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012473
12474fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012475
Theodore Ts'o28739272014-01-03 00:26:43 -050012476ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12477if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12478
12479cat >>confdefs.h <<_ACEOF
12480#define HAVE_STRUCT_STAT_ST_ATIM 1
12481_ACEOF
12482
12483
12484fi
12485
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012486ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12487"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012488if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012489
12490$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012491
Theodore Ts'offf45482003-04-13 00:44:19 -040012492fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012493
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012494ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12495"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012496if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012497
12498$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012499
12500fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012501
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012502ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012503 #define _LARGEFILE64_SOURCE
12504 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012505"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012506if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012507
12508$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012509
12510fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012511
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012512# The cast to long int works around a bug in the HP C Compiler
12513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12515# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012517$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012518if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012519 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012520else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012521 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 -050012522
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012523else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012524 if test "$ac_cv_type_short" = yes; then
12525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012527as_fn_error 77 "cannot compute sizeof (short)
12528See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012529 else
12530 ac_cv_sizeof_short=0
12531 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012533
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012534fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012536$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012537
12538
12539
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012540cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012541#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012542_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012543
12544
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012545# The cast to long int works around a bug in the HP C Compiler
12546# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12547# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12548# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012550$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012551if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012552 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012553else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012554 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 -050012555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012556else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012557 if test "$ac_cv_type_int" = yes; then
12558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012560as_fn_error 77 "cannot compute sizeof (int)
12561See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012562 else
12563 ac_cv_sizeof_int=0
12564 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012565fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012567fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012569$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012570
12571
12572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012573cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012574#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012575_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012576
12577
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012578# The cast to long int works around a bug in the HP C Compiler
12579# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12580# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12581# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012583$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012584if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012585 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012586else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012587 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 -050012588
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012589else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012590 if test "$ac_cv_type_long" = yes; then
12591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012593as_fn_error 77 "cannot compute sizeof (long)
12594See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012595 else
12596 ac_cv_sizeof_long=0
12597 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012598fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012600fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012602$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012603
12604
12605
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012606cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012607#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012608_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012609
12610
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012611# The cast to long int works around a bug in the HP C Compiler
12612# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12613# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12614# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012616$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012617if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012618 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012619else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012620 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 -050012621
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012622else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012623 if test "$ac_cv_type_long_long" = yes; then
12624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012626as_fn_error 77 "cannot compute sizeof (long long)
12627See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012628 else
12629 ac_cv_sizeof_long_long=0
12630 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012631fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012632
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012633fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012635$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012636
12637
12638
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012639cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012640#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012641_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012642
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012643
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012644# The cast to long int works around a bug in the HP C Compiler
12645# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12646# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12647# This bug is HP SR number 8606223364.
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12649$as_echo_n "checking size of off_t... " >&6; }
12650if ${ac_cv_sizeof_off_t+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652else
12653 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12654
12655else
12656 if test "$ac_cv_type_off_t" = yes; then
12657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12659as_fn_error 77 "cannot compute sizeof (off_t)
12660See \`config.log' for more details" "$LINENO" 5; }
12661 else
12662 ac_cv_sizeof_off_t=0
12663 fi
12664fi
12665
12666fi
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12668$as_echo "$ac_cv_sizeof_off_t" >&6; }
12669
12670
12671
12672cat >>confdefs.h <<_ACEOF
12673#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12674_ACEOF
12675
12676
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012677SIZEOF_SHORT=$ac_cv_sizeof_short
12678SIZEOF_INT=$ac_cv_sizeof_int
12679SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012680SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012681SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12682
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012683
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012684
12685
12686
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012688$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012689if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012690 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012691else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012692 ac_cv_c_bigendian=unknown
12693 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012695/* end confdefs.h. */
12696#ifndef __APPLE_CC__
12697 not a universal capable compiler
12698 #endif
12699 typedef int dummy;
12700
12701_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012702if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012703
12704 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012705 # there are at least two -arch flags with different values.
12706 ac_arch=
12707 ac_prev=
12708 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12709 if test -n "$ac_prev"; then
12710 case $ac_word in
12711 i?86 | x86_64 | ppc | ppc64)
12712 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12713 ac_arch=$ac_word
12714 else
12715 ac_cv_c_bigendian=universal
12716 break
12717 fi
12718 ;;
12719 esac
12720 ac_prev=
12721 elif test "x$ac_word" = "x-arch"; then
12722 ac_prev=arch
12723 fi
12724 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012725fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12727 if test $ac_cv_c_bigendian = unknown; then
12728 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012730/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012731#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012732 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012733
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012734int
12735main ()
12736{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012737#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12738 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12739 && LITTLE_ENDIAN)
12740 bogus endian macros
12741 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012742
12743 ;
12744 return 0;
12745}
12746_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012747if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012748 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012750/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012751#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012752 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012753
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012754int
12755main ()
12756{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012757#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012758 not big endian
12759 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012760
12761 ;
12762 return 0;
12763}
12764_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012765if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012766 ac_cv_c_bigendian=yes
12767else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012768 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012769fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012771fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773 fi
12774 if test $ac_cv_c_bigendian = unknown; then
12775 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012777/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012778#include <limits.h>
12779
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012780int
12781main ()
12782{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012783#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12784 bogus endian macros
12785 #endif
12786
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012787 ;
12788 return 0;
12789}
12790_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012791if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012792 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012794/* end confdefs.h. */
12795#include <limits.h>
12796
12797int
12798main ()
12799{
12800#ifndef _BIG_ENDIAN
12801 not big endian
12802 #endif
12803
12804 ;
12805 return 0;
12806}
12807_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012808if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012809 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012810else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012811 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012812fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012814fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816 fi
12817 if test $ac_cv_c_bigendian = unknown; then
12818 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012819 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012820 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012822/* end confdefs.h. */
12823short int ascii_mm[] =
12824 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12825 short int ascii_ii[] =
12826 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12827 int use_ascii (int i) {
12828 return ascii_mm[i] + ascii_ii[i];
12829 }
12830 short int ebcdic_ii[] =
12831 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12832 short int ebcdic_mm[] =
12833 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12834 int use_ebcdic (int i) {
12835 return ebcdic_mm[i] + ebcdic_ii[i];
12836 }
12837 extern int foo;
12838
12839int
12840main ()
12841{
12842return use_ascii (foo) == use_ebcdic (foo);
12843 ;
12844 return 0;
12845}
12846_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012847if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012848 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12849 ac_cv_c_bigendian=yes
12850 fi
12851 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12852 if test "$ac_cv_c_bigendian" = unknown; then
12853 ac_cv_c_bigendian=no
12854 else
12855 # finding both strings is unlikely to happen, but who knows?
12856 ac_cv_c_bigendian=unknown
12857 fi
12858 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012859fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012861else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012863/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012864$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012865int
12866main ()
12867{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012868
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012869 /* Are we little or big endian? From Harbison&Steele. */
12870 union
12871 {
12872 long int l;
12873 char c[sizeof (long int)];
12874 } u;
12875 u.l = 1;
12876 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012877
12878 ;
12879 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012880}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012881_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012882if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012883 ac_cv_c_bigendian=no
12884else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012885 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012886fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12888 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012889fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012890
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012891 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012892fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012894$as_echo "$ac_cv_c_bigendian" >&6; }
12895 case $ac_cv_c_bigendian in #(
12896 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012897 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012898;; #(
12899 no)
12900 ;; #(
12901 universal)
12902
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012903$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012904
12905 ;; #(
12906 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012907 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012908 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012909 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012910
Chen Qi91f04682014-05-05 21:08:42 -040012911if test $cross_compiling = no; then
12912 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12913else
12914 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12915fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012916ASM_TYPES_HEADER=./asm_types.h
12917
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012918echo "/* These defines are needed for the public ext2fs.h header file */" \
12919 > public_config.h
12920if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12921 uniq tmp_config.$$ >> public_config.h
12922else
12923 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12924fi
12925if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12926 uniq tmp_config.$$ >> public_config.h
12927else
12928 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12929fi
12930rm -f tmp_config.$$
12931PUBLIC_CONFIG_HEADER=./public_config.h
12932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012933for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012934do :
12935 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012936if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012937 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012938#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012939_ACEOF
12940
12941fi
12942
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012943done
12944
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012945ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012946if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012947
12948cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012949#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012950_ACEOF
12951
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012952
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012953fi
12954
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012955{ $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 +010012956$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012957if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012958 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012959else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012961/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012962#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012963int
12964main ()
12965{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012966struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012967 ;
12968 return 0;
12969}
12970_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012971if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012972 e2fsprogs_cv_struct_st_flags=yes
12973else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012974 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012975fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977fi
12978
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012980$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012981if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012983$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012984 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012985 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012986else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012988/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012989#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012990int
12991main ()
12992{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012993struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012994 ;
12995 return 0;
12996}
12997_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012998if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012999 e2fsprogs_cv_struct_st_flags_immut=yes
13000else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013001 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013002fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13004fi
13005
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013007$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013008 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013009
13010$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013011
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013012 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013013fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013014ac_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 -050013015 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013016"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013017if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013018
13019cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013020#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013021_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013022
13023fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013024
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013025if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013027$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013028if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013029 $as_echo_n "(cached) " >&6
13030else
13031 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013033/* end confdefs.h. */
13034
13035/* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13038#ifdef __cplusplus
13039extern "C"
13040#endif
13041char blkid_probe_all ();
13042int
13043main ()
13044{
13045return blkid_probe_all ();
13046 ;
13047 return 0;
13048}
13049_ACEOF
13050for ac_lib in '' blkid; do
13051 if test -z "$ac_lib"; then
13052 ac_res="none required"
13053 else
13054 ac_res=-l$ac_lib
13055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13056 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013057 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013058 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013059fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013060rm -f core conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013062 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013063 break
13064fi
13065done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013066if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013067
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013068else
13069 ac_cv_search_blkid_probe_all=no
13070fi
13071rm conftest.$ac_ext
13072LIBS=$ac_func_search_save_LIBS
13073fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013075$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13076ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013077if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13079
13080fi
13081
13082fi
Theodore Ts'o489ff4a2014-08-08 17:02:34 -040013083for 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 -050013084do :
13085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13086ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013087if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013088 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013089#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013090_ACEOF
13091
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013092fi
13093done
13094
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013095SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013097$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013098if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013099 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013100else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013101 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013102LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013104/* end confdefs.h. */
13105
Theodore Ts'oe1052142006-10-21 21:46:47 -040013106/* Override any GCC internal prototype to avoid an error.
13107 Use char because int might match the return type of a GCC
13108 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013109#ifdef __cplusplus
13110extern "C"
13111#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013112char socket ();
13113int
13114main ()
13115{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013116return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013117 ;
13118 return 0;
13119}
13120_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013121if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013122 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013123else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013124 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013125fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013126rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013128LIBS=$ac_check_lib_save_LIBS
13129fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013131$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013132if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013133 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013134fi
13135
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013136
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013138$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013139if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013140 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013141else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013143/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013144#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013145
13146_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013148 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013149 ac_cv_have_optreset=yes
13150else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013151 ac_cv_have_optreset=no
13152fi
13153rm -f conftest*
13154
13155fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013157$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013158if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013159
13160$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013161
13162fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013163
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013164SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013165ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013166if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013167
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013168else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013170$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013171if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013172 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013173else
13174 ac_check_lib_save_LIBS=$LIBS
13175LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013177/* end confdefs.h. */
13178
13179/* Override any GCC internal prototype to avoid an error.
13180 Use char because int might match the return type of a GCC
13181 builtin and then its argument prototype would still apply. */
13182#ifdef __cplusplus
13183extern "C"
13184#endif
13185char sem_init ();
13186int
13187main ()
13188{
13189return sem_init ();
13190 ;
13191 return 0;
13192}
13193_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013194if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013195 ac_cv_lib_pthread_sem_init=yes
13196else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013197 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013198fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013199rm -f core conftest.err conftest.$ac_objext \
13200 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013201LIBS=$ac_check_lib_save_LIBS
13202fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013204$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013205if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013206 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013207
13208 SEM_INIT_LIB=-lpthread
13209else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013211$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013212if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013213 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013214else
13215 ac_check_lib_save_LIBS=$LIBS
13216LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013218/* end confdefs.h. */
13219
13220/* Override any GCC internal prototype to avoid an error.
13221 Use char because int might match the return type of a GCC
13222 builtin and then its argument prototype would still apply. */
13223#ifdef __cplusplus
13224extern "C"
13225#endif
13226char sem_init ();
13227int
13228main ()
13229{
13230return sem_init ();
13231 ;
13232 return 0;
13233}
13234_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013235if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013236 ac_cv_lib_rt_sem_init=yes
13237else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013238 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013239fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013240rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013242LIBS=$ac_check_lib_save_LIBS
13243fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013245$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013246if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013247 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013248
13249 SEM_INIT_LIB=-lrt
13250else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013252$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013253if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013254 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013255else
13256 ac_check_lib_save_LIBS=$LIBS
13257LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013259/* end confdefs.h. */
13260
13261/* Override any GCC internal prototype to avoid an error.
13262 Use char because int might match the return type of a GCC
13263 builtin and then its argument prototype would still apply. */
13264#ifdef __cplusplus
13265extern "C"
13266#endif
13267char sem_init ();
13268int
13269main ()
13270{
13271return sem_init ();
13272 ;
13273 return 0;
13274}
13275_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013276if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013277 ac_cv_lib_posix4_sem_init=yes
13278else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013279 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013280fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013281rm -f core conftest.err conftest.$ac_objext \
13282 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013283LIBS=$ac_check_lib_save_LIBS
13284fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013286$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013287if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013288 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013289
13290 SEM_INIT_LIB=-lposix4
13291fi
13292
13293fi
13294
13295fi
13296
13297fi
13298
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013300$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013301if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013302 UNI_DIFF_OPTS=-u
13303else
13304 UNI_DIFF_OPTS=-c
13305fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013307$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013308
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013309case "$host_os" in
13310linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013311
13312$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013313
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013314 ;;
13315esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013316LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013317CYGWIN_CMT="#"
13318UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013319case "$host_os" in
13320linux*)
13321 LINUX_CMT=
13322 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013323cygwin)
13324 CYGWIN_CMT=
13325 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013326 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013327esac
13328
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013329
13330
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013331case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013332linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013333 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13334 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013335 { $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 +010013336$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013337 fi
13338 ;;
13339esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013340case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013341linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013342 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013343 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013344 { $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 +010013345$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013346 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013348$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013349 mandir=/usr/share/man
13350 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013351 fi
13352;;
13353esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013354if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013355 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013356 root_prefix="$ac_default_prefix"
13357 else
13358 root_prefix="$prefix"
13359 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013360 root_bindir=$bindir
13361 root_sbindir=$sbindir
13362 root_libdir=$libdir
13363 root_sysconfdir=$sysconfdir
13364else
13365 root_bindir='${root_prefix}/bin'
13366 root_sbindir='${root_prefix}/sbin'
13367 root_libdir='${root_prefix}/lib'
13368 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013369fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013370if test "$bindir" != '${exec_prefix}/bin'; then
13371 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013373$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013374fi
13375if test "$sbindir" != '${exec_prefix}/sbin'; then
13376 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013378$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013379fi
13380if test "$libdir" != '${exec_prefix}/lib'; then
13381 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013383$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013384fi
13385if test "$sysconfdir" != '${prefix}/etc'; then
13386 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013388$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013389fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013390
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013391
13392
13393
13394
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013395
13396# Check whether --with-multiarch was given.
13397if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013398 withval=$with_multiarch; if test "$withval" = "lib64"; then
13399 libdir=/usr/lib64
13400 root_libdir=/lib64
13401else
13402 libdir=$libdir/$withval
13403 root_libdir=$root_libdir/$withval
13404fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013405
13406fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13408$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013409if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013410 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013411else
13412 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013414/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013415#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013416int
13417main ()
13418{
Theodore Ts'oae851481997-04-29 18:13:24 +000013419fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013420 ;
13421 return 0;
13422}
13423_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013424if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013425 ac_cv_e2fsprogs_use_static=yes
13426else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013427 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013428fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013429rm -f core conftest.err conftest.$ac_objext \
13430 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013431LDFLAGS=$SAVE_LDFLAGS
13432fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013433
Theodore Ts'odefde781999-01-04 07:39:19 +000013434case "$host_os" in
13435solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013436 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013437;;
13438esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013440$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000013441LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000013442if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013443 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000013444fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013445
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013446case "$host_os" in
13447darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013449$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013450
13451$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013452
13453 ;;
13454esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013455SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13456ET_DIR=`cd ${srcdir}/lib/et; pwd`
13457
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013458
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013459if test "$cross_compiling" = yes ; then
13460 DO_TEST_SUITE=
13461else
13462 DO_TEST_SUITE=check
13463fi
13464
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013465INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13466if test -n "$CPPFLAGS" ; then
13467 INCLUDES="$INCLUDES $CPPFLAGS"
13468fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013469if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013470 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013471fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013472if test -n "$WITH_DIET_LIBC" ; then
13473 INCLUDES="$INCLUDES -D_REENTRANT"
13474fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013475
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013476
13477 MKINSTALLDIRS=
13478 if test -n "$ac_aux_dir"; then
13479 case "$ac_aux_dir" in
13480 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13481 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13482 esac
13483 fi
13484 if test -z "$MKINSTALLDIRS"; then
13485 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13486 fi
13487
13488
Theodore Ts'odd947da2005-11-09 18:37:07 -040013489if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013490 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013491 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013492fi
13493
13494
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013495test -d lib || mkdir lib
13496test -d include || mkdir include
13497test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013498test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013499for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013500 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013501 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13502 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013503 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070013504 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050013505 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13506 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050013507 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013508 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013509 resize/Makefile doc/Makefile intl/Makefile \
13510 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013511 if test -d `dirname ${srcdir}/$i` ; then
13512 outlist="$outlist $i"
13513 fi
13514done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013515ac_config_files="$ac_config_files $outlist"
13516
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013517cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013518# This file is a shell script that caches the results of configure
13519# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013520# scripts and configure runs, see configure's option --config-cache.
13521# It is not useful on other systems. If it contains results you don't
13522# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013523#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013524# config.status only pays attention to the cache file if you give it
13525# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013526#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013527# `ac_cv_env_foo' variables (set or unset) will be overridden when
13528# loading this file, other *unset* `ac_cv_foo' will be assigned the
13529# following values.
13530
13531_ACEOF
13532
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013533# The following way of writing the cache mishandles newlines in values,
13534# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013535# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013536# Ultrix sh set writes to stderr and can't be redirected directly,
13537# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013538(
13539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13540 eval ac_val=\$$ac_var
13541 case $ac_val in #(
13542 *${as_nl}*)
13543 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013544 *_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 +010013545$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013546 esac
13547 case $ac_var in #(
13548 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013550 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013551 esac ;;
13552 esac
13553 done
13554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013555 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13557 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013558 # `set' does not quote correctly, so add quotes: double-quote
13559 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013560 sed -n \
13561 "s/'/'\\\\''/g;
13562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013563 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013564 *)
13565 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013567 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013568 esac |
13569 sort
13570) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013571 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013572 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013573 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013574 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13576 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13578 :end' >>confcache
13579if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13580 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013581 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013582 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013583$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013584 if test ! -f "$cache_file" || test -h "$cache_file"; then
13585 cat confcache >"$cache_file"
13586 else
13587 case $cache_file in #(
13588 */* | ?:*)
13589 mv -f confcache "$cache_file"$$ &&
13590 mv -f "$cache_file"$$ "$cache_file" ;; #(
13591 *)
13592 mv -f confcache "$cache_file" ;;
13593 esac
13594 fi
13595 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013596 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013597 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013598$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013599 fi
13600fi
13601rm -f confcache
13602
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013603test "x$prefix" = xNONE && prefix=$ac_default_prefix
13604# Let make expand exec_prefix.
13605test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13606
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013607DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013608
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013609ac_libobjs=
13610ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013611U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013612for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13613 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013614 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013615 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013616 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13617 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013618 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13619 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013620done
13621LIBOBJS=$ac_libobjs
13622
13623LTLIBOBJS=$ac_ltlibobjs
13624
13625
13626
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013627
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013628: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013629ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013630ac_clean_files_save=$ac_clean_files
13631ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013632{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013633$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013634as_write_fail=0
13635cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013636#! $SHELL
13637# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013638# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013639# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013640# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013641
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013642debug=false
13643ac_cs_recheck=false
13644ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013645
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013646SHELL=\${CONFIG_SHELL-$SHELL}
13647export SHELL
13648_ASEOF
13649cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13650## -------------------- ##
13651## M4sh Initialization. ##
13652## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013653
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013654# Be more Bourne compatible
13655DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013656if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013657 emulate sh
13658 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013659 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013660 # is contrary to our usage. Disable this feature.
13661 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013662 setopt NO_GLOB_SUBST
13663else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013664 case `(set -o) 2>/dev/null` in #(
13665 *posix*) :
13666 set -o posix ;; #(
13667 *) :
13668 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013669esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013670fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013671
13672
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013673as_nl='
13674'
13675export as_nl
13676# Printing a long string crashes Solaris 7 /usr/bin/printf.
13677as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13678as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13679as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013680# Prefer a ksh shell builtin over an external printf program on Solaris,
13681# but without wasting forks for bash or zsh.
13682if test -z "$BASH_VERSION$ZSH_VERSION" \
13683 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13684 as_echo='print -r --'
13685 as_echo_n='print -rn --'
13686elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013687 as_echo='printf %s\n'
13688 as_echo_n='printf %s'
13689else
13690 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13691 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13692 as_echo_n='/usr/ucb/echo -n'
13693 else
13694 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13695 as_echo_n_body='eval
13696 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013697 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013698 *"$as_nl"*)
13699 expr "X$arg" : "X\\(.*\\)$as_nl";
13700 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13701 esac;
13702 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13703 '
13704 export as_echo_n_body
13705 as_echo_n='sh -c $as_echo_n_body as_echo'
13706 fi
13707 export as_echo_body
13708 as_echo='sh -c $as_echo_body as_echo'
13709fi
13710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013711# The user is always right.
13712if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013713 PATH_SEPARATOR=:
13714 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13715 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13716 PATH_SEPARATOR=';'
13717 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013718fi
13719
Theodore Ts'oe1052142006-10-21 21:46:47 -040013720
13721# IFS
13722# We need space, tab and new line, in precisely that order. Quoting is
13723# there to prevent editors from complaining about space-tab.
13724# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13725# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013726IFS=" "" $as_nl"
13727
13728# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013729as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013730case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013731 *[\\/]* ) as_myself=$0 ;;
13732 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013733for as_dir in $PATH
13734do
13735 IFS=$as_save_IFS
13736 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013737 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13738 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013739IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013740
Theodore Ts'oe1052142006-10-21 21:46:47 -040013741 ;;
13742esac
13743# We did not find ourselves, most probably we were run as `sh COMMAND'
13744# in which case we are not to be found in the path.
13745if test "x$as_myself" = x; then
13746 as_myself=$0
13747fi
13748if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013749 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013750 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040013751fi
13752
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013753# Unset variables that we do not need and which cause bugs (e.g. in
13754# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13755# suppresses any "Segmentation fault" message there. '((' could
13756# trigger a bug in pdksh 5.2.14.
13757for as_var in BASH_ENV ENV MAIL MAILPATH
13758do eval test x\${$as_var+set} = xset \
13759 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040013760done
13761PS1='$ '
13762PS2='> '
13763PS4='+ '
13764
13765# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013766LC_ALL=C
13767export LC_ALL
13768LANGUAGE=C
13769export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040013770
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013771# CDPATH.
13772(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13773
13774
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013775# as_fn_error STATUS ERROR [LINENO LOG_FD]
13776# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013777# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13778# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013779# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013780as_fn_error ()
13781{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013782 as_status=$1; test $as_status -eq 0 && as_status=1
13783 if test "$4"; then
13784 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13785 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013786 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013787 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013788 as_fn_exit $as_status
13789} # as_fn_error
13790
13791
13792# as_fn_set_status STATUS
13793# -----------------------
13794# Set $? to STATUS, without forking.
13795as_fn_set_status ()
13796{
13797 return $1
13798} # as_fn_set_status
13799
13800# as_fn_exit STATUS
13801# -----------------
13802# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13803as_fn_exit ()
13804{
13805 set +e
13806 as_fn_set_status $1
13807 exit $1
13808} # as_fn_exit
13809
13810# as_fn_unset VAR
13811# ---------------
13812# Portably unset VAR.
13813as_fn_unset ()
13814{
13815 { eval $1=; unset $1;}
13816}
13817as_unset=as_fn_unset
13818# as_fn_append VAR VALUE
13819# ----------------------
13820# Append the text in VALUE to the end of the definition contained in VAR. Take
13821# advantage of any shell optimizations that allow amortized linear growth over
13822# repeated appends, instead of the typical quadratic growth present in naive
13823# implementations.
13824if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13825 eval 'as_fn_append ()
13826 {
13827 eval $1+=\$2
13828 }'
13829else
13830 as_fn_append ()
13831 {
13832 eval $1=\$$1\$2
13833 }
13834fi # as_fn_append
13835
13836# as_fn_arith ARG...
13837# ------------------
13838# Perform arithmetic evaluation on the ARGs, and store the result in the
13839# global $as_val. Take advantage of shells that can avoid forks. The arguments
13840# must be portable across $(()) and expr.
13841if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13842 eval 'as_fn_arith ()
13843 {
13844 as_val=$(( $* ))
13845 }'
13846else
13847 as_fn_arith ()
13848 {
13849 as_val=`expr "$@" || test $? -eq 1`
13850 }
13851fi # as_fn_arith
13852
13853
Theodore Ts'oe1052142006-10-21 21:46:47 -040013854if expr a : '\(a\)' >/dev/null 2>&1 &&
13855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13856 as_expr=expr
13857else
13858 as_expr=false
13859fi
13860
13861if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13862 as_basename=basename
13863else
13864 as_basename=false
13865fi
13866
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013867if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13868 as_dirname=dirname
13869else
13870 as_dirname=false
13871fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013872
Theodore Ts'oe1052142006-10-21 21:46:47 -040013873as_me=`$as_basename -- "$0" ||
13874$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13875 X"$0" : 'X\(//\)$' \| \
13876 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013877$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013878 sed '/^.*\/\([^/][^/]*\)\/*$/{
13879 s//\1/
13880 q
13881 }
13882 /^X\/\(\/\/\)$/{
13883 s//\1/
13884 q
13885 }
13886 /^X\/\(\/\).*/{
13887 s//\1/
13888 q
13889 }
13890 s/.*/./; q'`
13891
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013892# Avoid depending upon Character Ranges.
13893as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13894as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13895as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13896as_cr_digits='0123456789'
13897as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040013898
13899ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013900case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013901-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013902 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040013903 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013904 xy) ECHO_C='\c';;
13905 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13906 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013907 esac;;
13908*)
13909 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013910esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013911
13912rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040013913if test -d conf$$.dir; then
13914 rm -f conf$$.dir/conf$$.file
13915else
13916 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013917 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040013918fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013919if (echo >conf$$.file) 2>/dev/null; then
13920 if ln -s conf$$.file conf$$ 2>/dev/null; then
13921 as_ln_s='ln -s'
13922 # ... but there are two gotchas:
13923 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13924 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013925 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013926 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013927 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013928 elif ln conf$$.file conf$$ 2>/dev/null; then
13929 as_ln_s=ln
13930 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013931 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013932 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013933else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013934 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013935fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013936rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13937rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013938
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013939
13940# as_fn_mkdir_p
13941# -------------
13942# Create "$as_dir" as a directory, including parents if necessary.
13943as_fn_mkdir_p ()
13944{
13945
13946 case $as_dir in #(
13947 -*) as_dir=./$as_dir;;
13948 esac
13949 test -d "$as_dir" || eval $as_mkdir_p || {
13950 as_dirs=
13951 while :; do
13952 case $as_dir in #(
13953 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13954 *) as_qdir=$as_dir;;
13955 esac
13956 as_dirs="'$as_qdir' $as_dirs"
13957 as_dir=`$as_dirname -- "$as_dir" ||
13958$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13959 X"$as_dir" : 'X\(//\)[^/]' \| \
13960 X"$as_dir" : 'X\(//\)$' \| \
13961 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13962$as_echo X"$as_dir" |
13963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13964 s//\1/
13965 q
13966 }
13967 /^X\(\/\/\)[^/].*/{
13968 s//\1/
13969 q
13970 }
13971 /^X\(\/\/\)$/{
13972 s//\1/
13973 q
13974 }
13975 /^X\(\/\).*/{
13976 s//\1/
13977 q
13978 }
13979 s/.*/./; q'`
13980 test -d "$as_dir" && break
13981 done
13982 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013983 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013984
13985
13986} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013987if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013988 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013989else
13990 test -d ./-p && rmdir ./-p
13991 as_mkdir_p=false
13992fi
13993
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013994
13995# as_fn_executable_p FILE
13996# -----------------------
13997# Test if FILE is an executable regular file.
13998as_fn_executable_p ()
13999{
14000 test -f "$1" && test -x "$1"
14001} # as_fn_executable_p
14002as_test_x='test -x'
14003as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014004
14005# Sed expression to map a string onto a valid CPP name.
14006as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14007
14008# Sed expression to map a string onto a valid variable name.
14009as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14010
14011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014012exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014013## ----------------------------------- ##
14014## Main body of $CONFIG_STATUS script. ##
14015## ----------------------------------- ##
14016_ASEOF
14017test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014018
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14020# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014021# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014022# values after options handling.
14023ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014024This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014025generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014026
14027 CONFIG_FILES = $CONFIG_FILES
14028 CONFIG_HEADERS = $CONFIG_HEADERS
14029 CONFIG_LINKS = $CONFIG_LINKS
14030 CONFIG_COMMANDS = $CONFIG_COMMANDS
14031 $ $0 $@
14032
Theodore Ts'oe1052142006-10-21 21:46:47 -040014033on `(hostname || uname -n) 2>/dev/null | sed 1q`
14034"
14035
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014036_ACEOF
14037
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014038case $ac_config_files in *"
14039"*) set x $ac_config_files; shift; ac_config_files=$*;;
14040esac
14041
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014042case $ac_config_headers in *"
14043"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14044esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014045
14046
14047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014048# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014049config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014050config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014051config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014052
Theodore Ts'oe1052142006-10-21 21:46:47 -040014053_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014054
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014056ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014057\`$as_me' instantiates files and other configuration actions
14058from templates according to the current configuration. Unless the files
14059and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014060
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014061Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014062
14063 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014064 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014065 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014066 -q, --quiet, --silent
14067 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014068 -d, --debug don't remove temporary files
14069 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014070 --file=FILE[:TEMPLATE]
14071 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014072 --header=FILE[:TEMPLATE]
14073 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014074
14075Configuration files:
14076$config_files
14077
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014078Configuration headers:
14079$config_headers
14080
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014081Configuration commands:
14082$config_commands
14083
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014084Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014085
Theodore Ts'oe1052142006-10-21 21:46:47 -040014086_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014088ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014089ac_cs_version="\\
14090config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014091configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014092 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014093
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014094Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014095This config.status script is free software; the Free Software Foundation
14096gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014097
14098ac_pwd='$ac_pwd'
14099srcdir='$srcdir'
14100INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014101MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014102AWK='$AWK'
14103test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014104_ACEOF
14105
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14107# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014108ac_need_defaults=:
14109while test $# != 0
14110do
14111 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014112 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014115 ac_shift=:
14116 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014117 --*=)
14118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14119 ac_optarg=
14120 ac_shift=:
14121 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014122 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014123 ac_option=$1
14124 ac_optarg=$2
14125 ac_shift=shift
14126 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014127 esac
14128
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014129 case $ac_option in
14130 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14132 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014134 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014135 --config | --confi | --conf | --con | --co | --c )
14136 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014137 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014138 debug=: ;;
14139 --file | --fil | --fi | --f )
14140 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014141 case $ac_optarg in
14142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014143 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014144 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014145 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014146 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014147 --header | --heade | --head | --hea )
14148 $ac_shift
14149 case $ac_optarg in
14150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14151 esac
14152 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14153 ac_need_defaults=false;;
14154 --he | --h)
14155 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014156 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014157Try \`$0 --help' for more information.";;
14158 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014159 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14161 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14162 ac_cs_silent=: ;;
14163
14164 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014165 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014166Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014167
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014168 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014169 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014170
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014171 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014172 shift
14173done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014174
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014175ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014177if $ac_cs_silent; then
14178 exec 6>/dev/null
14179 ac_configure_extra_args="$ac_configure_extra_args --silent"
14180fi
14181
14182_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014184if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014185 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014186 shift
14187 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14188 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014189 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014190 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014191fi
14192
14193_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014195exec 5>>config.log
14196{
14197 echo
14198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14199## Running $as_me. ##
14200_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014201 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014202} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014203
Theodore Ts'oe1052142006-10-21 21:46:47 -040014204_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014206#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014207# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014208#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014209# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014210 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014211 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014212 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014213 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14214 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014215
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014216
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014217_ACEOF
14218
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014220
14221# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014222for ac_config_target in $ac_config_targets
14223do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014224 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014225 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014226 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014227 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14228
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014229 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014230 esac
14231done
14232
Theodore Ts'oe1052142006-10-21 21:46:47 -040014233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014234# If the user did not use the arguments to specify the items to instantiate,
14235# then the envvar interface is used. Set only those that are not.
14236# We use the long form for the default assignment because of an extremely
14237# bizarre bug on SunOS 4.1.3.
14238if $ac_need_defaults; then
14239 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014240 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14242fi
14243
14244# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014245# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014246# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014247# Hook for its removal unless debugging.
14248# Note that there is a small window in which the directory will not be cleaned:
14249# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014250$debug ||
14251{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014252 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014253 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014254 : "${ac_tmp:=$tmp}"
14255 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014256' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014257 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014258}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014259# Create a (secure) tmp directory for tmp files.
14260
14261{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014262 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014263 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014264} ||
14265{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014266 tmp=./conf$$-$RANDOM
14267 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014268} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14269ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014270
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014271# Set up the scripts for CONFIG_FILES section.
14272# No need to generate them if there are no CONFIG_FILES.
14273# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014274if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014275
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014276if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14277 ac_cs_awk_getline=:
14278 ac_cs_awk_pipe_init=
14279 ac_cs_awk_read_file='
14280 while ((getline aline < (F[key])) > 0)
14281 print(aline)
14282 close(F[key])'
14283 ac_cs_awk_pipe_fini=
14284else
14285 ac_cs_awk_getline=false
14286 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14287 ac_cs_awk_read_file='
14288 print "|#_!!_#|"
14289 print "cat " F[key] " &&"
14290 '$ac_cs_awk_pipe_init
14291 # The final `:' finishes the AND list.
14292 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14293fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014294ac_cr=`echo X | tr X '\015'`
14295# On cygwin, bash can eat \r inside `` if the user requested igncr.
14296# But we know of no other shell where ac_cr would be empty at this
14297# point, so we can use a bashism as a fallback.
14298if test "x$ac_cr" = x; then
14299 eval ac_cr=\$\'\\r\'
14300fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014301ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14302if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014303 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014304else
14305 ac_cs_awk_cr=$ac_cr
14306fi
14307
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014308echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014309_ACEOF
14310
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014311# Create commands to substitute file output variables.
14312{
14313 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014314 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014315 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14316 echo "_ACAWK" &&
14317 echo "_ACEOF"
14318} >conf$$files.sh &&
14319. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014321rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014322
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014323{
14324 echo "cat >conf$$subs.awk <<_ACEOF" &&
14325 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14326 echo "_ACEOF"
14327} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14329ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014330ac_delim='%!_!# '
14331for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014332 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014334
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014335 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14336 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014337 break
14338 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014340 else
14341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014342 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014343done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014344rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014345
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014347cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014348_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014349sed -n '
14350h
14351s/^/S["/; s/!.*/"]=/
14352p
14353g
14354s/^[^!]*!//
14355:repl
14356t repl
14357s/'"$ac_delim"'$//
14358t delim
14359:nl
14360h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014361s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014362t more1
14363s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14364p
14365n
14366b repl
14367:more1
14368s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14369p
14370g
14371s/.\{148\}//
14372t nl
14373:delim
14374h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014375s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014376t more2
14377s/["\\]/\\&/g; s/^/"/; s/$/"/
14378p
14379b
14380:more2
14381s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14382p
14383g
14384s/.\{148\}//
14385t delim
14386' <conf$$subs.awk | sed '
14387/^[^""]/{
14388 N
14389 s/\n//
14390}
14391' >>$CONFIG_STATUS || ac_write_fail=1
14392rm -f conf$$subs.awk
14393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14394_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014395cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014396 for (key in S) S_is_set[key] = 1
14397 FS = ""
14398 \$ac_cs_awk_pipe_init
14399}
14400{
14401 line = $ 0
14402 nfields = split(line, field, "@")
14403 substed = 0
14404 len = length(field[1])
14405 for (i = 2; i < nfields; i++) {
14406 key = field[i]
14407 keylen = length(key)
14408 if (S_is_set[key]) {
14409 value = S[key]
14410 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14411 len += length(value) + length(field[++i])
14412 substed = 1
14413 } else
14414 len += 1 + keylen
14415 }
14416 if (nfields == 3 && !substed) {
14417 key = field[2]
14418 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14419 \$ac_cs_awk_read_file
14420 next
14421 }
14422 }
14423 print line
14424}
14425\$ac_cs_awk_pipe_fini
14426_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014427_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14429if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14430 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14431else
14432 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014433fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14434 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014435_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014436
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014437# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14438# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014439# trailing colons and then remove the whole line if VPATH becomes empty
14440# (actually we leave an empty line to preserve line numbers).
14441if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014442 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14443h
14444s///
14445s/^/:/
14446s/[ ]*$/:/
14447s/:\$(srcdir):/:/g
14448s/:\${srcdir}:/:/g
14449s/:@srcdir@:/:/g
14450s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014451s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014452x
14453s/\(=[ ]*\).*/\1/
14454G
14455s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014456s/^[^=]*=[ ]*$//
14457}'
14458fi
14459
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014461fi # test -n "$CONFIG_FILES"
14462
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014463# Set up the scripts for CONFIG_HEADERS section.
14464# No need to generate them if there are no CONFIG_HEADERS.
14465# This happens for instance with `./config.status Makefile'.
14466if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014467cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014468BEGIN {
14469_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014470
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014471# Transform confdefs.h into an awk script `defines.awk', embedded as
14472# here-document in config.status, that substitutes the proper values into
14473# config.h.in to produce config.h.
14474
14475# Create a delimiter string that does not exist in confdefs.h, to ease
14476# handling of long lines.
14477ac_delim='%!_!# '
14478for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014479 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14480 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014481 break
14482 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014483 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014484 else
14485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14486 fi
14487done
14488
14489# For the awk script, D is an array of macro values keyed by name,
14490# likewise P contains macro parameters if any. Preserve backslash
14491# newline sequences.
14492
14493ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14494sed -n '
14495s/.\{148\}/&'"$ac_delim"'/g
14496t rset
14497:rset
14498s/^[ ]*#[ ]*define[ ][ ]*/ /
14499t def
14500d
14501:def
14502s/\\$//
14503t bsnl
14504s/["\\]/\\&/g
14505s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14506D["\1"]=" \3"/p
14507s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14508d
14509:bsnl
14510s/["\\]/\\&/g
14511s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14512D["\1"]=" \3\\\\\\n"\\/p
14513t cont
14514s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14515t cont
14516d
14517:cont
14518n
14519s/.\{148\}/&'"$ac_delim"'/g
14520t clear
14521:clear
14522s/\\$//
14523t bsnlc
14524s/["\\]/\\&/g; s/^/"/; s/$/"/p
14525d
14526:bsnlc
14527s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14528b cont
14529' <confdefs.h | sed '
14530s/'"$ac_delim"'/"\\\
14531"/g' >>$CONFIG_STATUS || ac_write_fail=1
14532
14533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14534 for (key in D) D_is_set[key] = 1
14535 FS = ""
14536}
14537/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14538 line = \$ 0
14539 split(line, arg, " ")
14540 if (arg[1] == "#") {
14541 defundef = arg[2]
14542 mac1 = arg[3]
14543 } else {
14544 defundef = substr(arg[1], 2)
14545 mac1 = arg[2]
14546 }
14547 split(mac1, mac2, "(") #)
14548 macro = mac2[1]
14549 prefix = substr(line, 1, index(line, defundef) - 1)
14550 if (D_is_set[macro]) {
14551 # Preserve the white space surrounding the "#".
14552 print prefix "define", macro P[macro] D[macro]
14553 next
14554 } else {
14555 # Replace #undef with comments. This is necessary, for example,
14556 # in the case of _POSIX_SOURCE, which is predefined and required
14557 # on some systems where configure will not decide to define it.
14558 if (defundef == "undef") {
14559 print "/*", prefix defundef, macro, "*/"
14560 next
14561 }
14562 }
14563}
14564{ print }
14565_ACAWK
14566_ACEOF
14567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014568 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014569fi # test -n "$CONFIG_HEADERS"
14570
14571
14572eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014573shift
14574for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014575do
14576 case $ac_tag in
14577 :[FHLC]) ac_mode=$ac_tag; continue;;
14578 esac
14579 case $ac_mode$ac_tag in
14580 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014581 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014582 :[FH]-) ac_tag=-:-;;
14583 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14584 esac
14585 ac_save_IFS=$IFS
14586 IFS=:
14587 set x $ac_tag
14588 IFS=$ac_save_IFS
14589 shift
14590 ac_file=$1
14591 shift
14592
14593 case $ac_mode in
14594 :L) ac_source=$1;;
14595 :[FH])
14596 ac_file_inputs=
14597 for ac_f
14598 do
14599 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014600 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014601 *) # Look for the file first in the build tree, then in the source tree
14602 # (if the path is not absolute). The absolute path cannot be DOS-style,
14603 # because $ac_f cannot contain `:'.
14604 test -f "$ac_f" ||
14605 case $ac_f in
14606 [\\/$]*) false;;
14607 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14608 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014609 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014610 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014611 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014612 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014613 done
14614
14615 # Let's still pretend it is `configure' which instantiates (i.e., don't
14616 # use $as_me), people would be surprised to read:
14617 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014618 configure_input='Generated from '`
14619 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14620 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014621 if test x"$ac_file" != x-; then
14622 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014624$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014625 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014626 # Neutralize special characters interpreted by sed in replacement strings.
14627 case $configure_input in #(
14628 *\&* | *\|* | *\\* )
14629 ac_sed_conf_input=`$as_echo "$configure_input" |
14630 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14631 *) ac_sed_conf_input=$configure_input;;
14632 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014633
14634 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014635 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014637 esac
14638 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014639 esac
14640
Theodore Ts'oe1052142006-10-21 21:46:47 -040014641 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014642$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14643 X"$ac_file" : 'X\(//\)[^/]' \| \
14644 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040014645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014646$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14648 s//\1/
14649 q
14650 }
14651 /^X\(\/\/\)[^/].*/{
14652 s//\1/
14653 q
14654 }
14655 /^X\(\/\/\)$/{
14656 s//\1/
14657 q
14658 }
14659 /^X\(\/\).*/{
14660 s//\1/
14661 q
14662 }
14663 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014664 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014665 ac_builddir=.
14666
Theodore Ts'oe1052142006-10-21 21:46:47 -040014667case "$ac_dir" in
14668.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14669*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014671 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014673 case $ac_top_builddir_sub in
14674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14676 esac ;;
14677esac
14678ac_abs_top_builddir=$ac_pwd
14679ac_abs_builddir=$ac_pwd$ac_dir_suffix
14680# for backward compatibility:
14681ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014682
14683case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014684 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014685 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014686 ac_top_srcdir=$ac_top_builddir_sub
14687 ac_abs_top_srcdir=$ac_pwd ;;
14688 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014689 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014690 ac_top_srcdir=$srcdir
14691 ac_abs_top_srcdir=$srcdir ;;
14692 *) # Relative name.
14693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14694 ac_top_srcdir=$ac_top_build_prefix$srcdir
14695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014696esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014697ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014698
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014699
Theodore Ts'oe1052142006-10-21 21:46:47 -040014700 case $ac_mode in
14701 :F)
14702 #
14703 # CONFIG_FILE
14704 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014705
14706 case $INSTALL in
14707 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014708 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014709 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014710 ac_MKDIR_P=$MKDIR_P
14711 case $MKDIR_P in
14712 [\\/$]* | ?:[\\/]* ) ;;
14713 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14714 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014715_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014716
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014718# If the template does not know about datarootdir, expand it.
14719# FIXME: This hack should be removed a few years after 2.60.
14720ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014721ac_sed_dataroot='
14722/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014723 p
14724 q
14725}
14726/@datadir@/p
14727/@docdir@/p
14728/@infodir@/p
14729/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014730/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014731case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014732*datarootdir*) ac_datarootdir_seen=yes;;
14733*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014734 { $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 +010014735$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014736_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014738 ac_datarootdir_hack='
14739 s&@datadir@&$datadir&g
14740 s&@docdir@&$docdir&g
14741 s&@infodir@&$infodir&g
14742 s&@localedir@&$localedir&g
14743 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014744 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014745esac
14746_ACEOF
14747
14748# Neutralize VPATH when `$srcdir' = `.'.
14749# Shell code in configure.ac might set extrasub.
14750# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14752ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014753$extrasub
14754_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014756:t
14757/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014758s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014759s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014760s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014761s&@srcdir@&$ac_srcdir&;t t
14762s&@abs_srcdir@&$ac_abs_srcdir&;t t
14763s&@top_srcdir@&$ac_top_srcdir&;t t
14764s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14765s&@builddir@&$ac_builddir&;t t
14766s&@abs_builddir@&$ac_abs_builddir&;t t
14767s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14768s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040014769s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040014770$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014771"
14772eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14773if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014774 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014775else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014776 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14777fi \
14778 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014779
Theodore Ts'oe1052142006-10-21 21:46:47 -040014780test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014781 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14782 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14783 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014785which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014786$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014787which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014788
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014789 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014790 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014791 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14792 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014793 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014795 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014796 :H)
14797 #
14798 # CONFIG_HEADER
14799 #
14800 if test x"$ac_file" != x-; then
14801 {
14802 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14804 } >"$ac_tmp/config.h" \
14805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14806 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014807 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14808$as_echo "$as_me: $ac_file is unchanged" >&6;}
14809 else
14810 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014811 mv "$ac_tmp/config.h" "$ac_file" \
14812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014813 fi
14814 else
14815 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014816 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14817 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014818 fi
14819 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014820
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014821 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014822$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014823 ;;
14824 esac
14825
14826
14827 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040014828 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014829 for ac_file in $CONFIG_FILES; do
14830 # Support "outfile[:infile[:infile...]]"
14831 case "$ac_file" in
14832 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000014833 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014834 # PO directories have a Makefile.in generated from Makefile.in.in.
14835 case "$ac_file" in */Makefile.in)
14836 # Adjust a relative srcdir.
14837 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040014838 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014839 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14840 # In autoconf-2.13 it is called $ac_given_srcdir.
14841 # In autoconf-2.50 it is called $srcdir.
14842 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14843 case "$ac_given_srcdir" in
14844 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14845 /*) top_srcdir="$ac_given_srcdir" ;;
14846 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14847 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014848 # Treat a directory as a PO directory if and only if it has a
14849 # POTFILES.in file. This allows packages to have multiple PO
14850 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014851 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14852 rm -f "$ac_dir/POTFILES"
14853 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040014854 gt_tab=`printf '\t'`
14855 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 -050014856 POMAKEFILEDEPS="POTFILES.in"
14857 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014858 # on $ac_dir but don't depend on user-specified configuration
14859 # parameters.
14860 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14861 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014862 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014863 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14864 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040014865 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14866 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014867 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014868 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14869 else
14870 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040014871 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014872 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014873 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014874 # Compute POFILES
14875 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14876 # Compute UPDATEPOFILES
14877 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14878 # Compute DUMMYPOFILES
14879 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14880 # Compute GMOFILES
14881 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014882 case "$ac_given_srcdir" in
14883 .) srcdirpre= ;;
14884 *) srcdirpre='$(srcdir)/' ;;
14885 esac
14886 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014887 UPDATEPOFILES=
14888 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014889 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014890 for lang in $ALL_LINGUAS; do
14891 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014892 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14893 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014894 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014895 done
14896 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14897 # environment variable.
14898 INST_LINGUAS=
14899 if test -n "$ALL_LINGUAS"; then
14900 for presentlang in $ALL_LINGUAS; do
14901 useit=no
14902 if test "%UNSET%" != "$LINGUAS"; then
14903 desiredlanguages="$LINGUAS"
14904 else
14905 desiredlanguages="$ALL_LINGUAS"
14906 fi
14907 for desiredlang in $desiredlanguages; do
14908 # Use the presentlang catalog if desiredlang is
14909 # a. equal to presentlang, or
14910 # b. a variant of presentlang (because in this case,
14911 # presentlang can be used as a fallback for messages
14912 # which are not translated in the desiredlang catalog).
14913 case "$desiredlang" in
14914 "$presentlang"*) useit=yes;;
14915 esac
14916 done
14917 if test $useit = yes; then
14918 INST_LINGUAS="$INST_LINGUAS $presentlang"
14919 fi
14920 done
14921 fi
14922 CATALOGS=
14923 if test -n "$INST_LINGUAS"; then
14924 for lang in $INST_LINGUAS; do
14925 CATALOGS="$CATALOGS $lang.gmo"
14926 done
14927 fi
14928 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014929 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 -040014930 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14931 if test -f "$f"; then
14932 case "$f" in
14933 *.orig | *.bak | *~) ;;
14934 *) cat "$f" >> "$ac_dir/Makefile" ;;
14935 esac
14936 fi
14937 done
14938 fi
14939 ;;
14940 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014941 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014942
Theodore Ts'oe1052142006-10-21 21:46:47 -040014943 esac
14944done # for ac_tag
14945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014946
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014947as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014948_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014949ac_clean_files=$ac_clean_files_save
14950
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014951test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014953
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014954
14955# configure is writing to config.log, and then calls config.status.
14956# config.status does its own redirection, appending to config.log.
14957# Unfortunately, on DOS this fails, as config.log is still kept open
14958# by configure, so config.status won't be able to write to it; its
14959# output is simply discarded. So we exec the FD to /dev/null,
14960# effectively closing config.log, so it can be properly (re)opened and
14961# appended to by config.status. When coming back to configure, we
14962# need to make the FD available again.
14963if test "$no_create" != yes; then
14964 ac_cs_success=:
14965 ac_config_status_args=
14966 test "$silent" = yes &&
14967 ac_config_status_args="$ac_config_status_args --quiet"
14968 exec 5>/dev/null
14969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14970 exec 5>>config.log
14971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14972 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014973 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014974fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014975if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014977$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14978fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014979
Theodore Ts'oee683a12005-02-05 15:53:56 -050014980if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi