]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
ext2fs: rename "s_overhead_blocks" to "s_overhead_clusters"
[thirdparty/e2fsprogs.git] / configure
CommitLineData
50e1e10f 1#! /bin/sh
50e1e10f 2# Guess values for system-dependent variables and create Makefiles.
d6a4bcb5 3# Generated by GNU Autoconf 2.69.
61ef2474 4#
50e1e10f 5#
d6a4bcb5 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
61ef2474 7#
57aa50d4 8#
50e1e10f
TT
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
57aa50d4
TT
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
b0cacab0 14
29a5deed
TT
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
57aa50d4 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b0cacab0
TT
18 emulate sh
19 NULLCMD=:
39fd3d4f 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
e1052144
TT
23 setopt NO_GLOB_SUBST
24else
57aa50d4
TT
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
29a5deed 30esac
b0cacab0 31fi
29a5deed
TT
32
33
39fd3d4f
SJR
34as_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
57aa50d4
TT
41# 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
39fd3d4f
SJR
48 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'
e1052144 54 else
39fd3d4f
SJR
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
57aa50d4 58 case $arg in #(
39fd3d4f
SJR
59 *"$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'
e1052144 67 fi
39fd3d4f
SJR
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 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 }
e1052144
TT
79fi
80
b0cacab0 81
e1052144
TT
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.)
e1052144
TT
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 90as_myself=
57aa50d4 91case $0 in #((
e1052144
TT
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
57aa50d4
TT
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
e1052144
TT
100IFS=$as_save_IFS
101
102 ;;
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
39fd3d4f 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 111 exit 1
e1052144
TT
112fi
113
57aa50d4
TT
114# 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 || :
e1052144 121done
b0cacab0
TT
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
39fd3d4f
SJR
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
b0cacab0 131
57aa50d4
TT
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d6a4bcb5
TB
135# 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;}
57aa50d4
TT
160if 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
d6a4bcb5
TB
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
57aa50d4
TT
195 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 :
d6a4bcb5
TB
239 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
57aa50d4
TT
258fi
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"
d6a4bcb5 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
356
357
358} # as_fn_mkdir_p
d6a4bcb5
TB
359
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
57aa50d4
TT
367# 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
d6a4bcb5
TB
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
57aa50d4
TT
405# 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
d6a4bcb5 407# script with STATUS, using 1 if that was 0.
57aa50d4
TT
408as_fn_error ()
409{
d6a4bcb5
TB
410 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
57aa50d4 414 fi
d6a4bcb5 415 $as_echo "$as_me: error: $2" >&2
57aa50d4
TT
416 as_fn_exit $as_status
417} # as_fn_error
418
e1052144
TT
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
421 as_expr=expr
422else
423 as_expr=false
424fi
425
e1052144 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
427 as_basename=basename
428else
429 as_basename=false
430fi
431
57aa50d4
TT
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
b0cacab0 437
e1052144 438as_me=`$as_basename -- "$0" ||
b0cacab0
TT
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
e1052144 441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 442$as_echo X/"$0" |
e1052144
TT
443 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'`
b0cacab0 456
57aa50d4
TT
457# 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
b0cacab0 463
b0cacab0 464
57aa50d4
TT
465 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. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
e1052144 487
d6a4bcb5
TB
488 # 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
57aa50d4
TT
492 # 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
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
e1052144
TT
498}
499
57aa50d4
TT
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
b0cacab0 512
57aa50d4
TT
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
e1052144 519fi
57aa50d4
TT
520if (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.
d6a4bcb5 526 # In both cases, we have to default to `cp -pR'.
57aa50d4 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 528 as_ln_s='cp -pR'
57aa50d4
TT
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d6a4bcb5 532 as_ln_s='cp -pR'
57aa50d4 533 fi
e1052144 534else
d6a4bcb5 535 as_ln_s='cp -pR'
e1052144 536fi
57aa50d4
TT
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
b0cacab0 539
57aa50d4
TT
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
e1052144
TT
545fi
546
d6a4bcb5
TB
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
e1052144 549
57aa50d4
TT
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'"
e1052144 552
57aa50d4
TT
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e1052144 555
29a5deed 556
61ef2474
TT
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
b0cacab0
TT
559
560# Name of the host.
d6a4bcb5 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b0cacab0
TT
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
50e1e10f 564
b0cacab0
TT
565#
566# Initializations.
567#
50e1e10f 568ac_default_prefix=/usr/local
e1052144 569ac_clean_files=
b0cacab0 570ac_config_libobj_dir=.
e1052144 571LIBOBJS=
b0cacab0
TT
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
b0cacab0 576
b0cacab0
TT
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
57aa50d4 583PACKAGE_URL=
b0cacab0
TT
584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
29a5deed 589#ifdef HAVE_SYS_TYPES_H
b0cacab0
TT
590# include <sys/types.h>
591#endif
29a5deed 592#ifdef HAVE_SYS_STAT_H
b0cacab0
TT
593# include <sys/stat.h>
594#endif
29a5deed 595#ifdef STDC_HEADERS
b0cacab0
TT
596# include <stdlib.h>
597# include <stddef.h>
598#else
29a5deed 599# ifdef HAVE_STDLIB_H
b0cacab0
TT
600# include <stdlib.h>
601# endif
602#endif
29a5deed
TT
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b0cacab0
TT
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
29a5deed 609#ifdef HAVE_STRINGS_H
b0cacab0
TT
610# include <strings.h>
611#endif
29a5deed 612#ifdef HAVE_INTTYPES_H
b0cacab0 613# include <inttypes.h>
e1052144 614#endif
29a5deed 615#ifdef HAVE_STDINT_H
e1052144 616# include <stdint.h>
b0cacab0 617#endif
29a5deed 618#ifdef HAVE_UNISTD_H
b0cacab0
TT
619# include <unistd.h>
620#endif"
621
93613951 622gt_needs=
61ef2474 623ac_header_list=
93613951
TT
624gl_use_threads_default=
625ac_func_list=
39fd3d4f 626ac_subst_vars='LTLIBOBJS
e1052144 627LIBOBJS
a2df5894
DW
628systemd_system_unit_dir
629have_systemd
630systemd_LIBS
631systemd_CFLAGS
632crond_dir
633have_crond
5ce368f0
DW
634pkg_udev_rules_dir
635have_udev
636udev_LIBS
637udev_CFLAGS
fd1677e8
TT
638LDFLAGS_SHLIB
639CFLAGS_STLIB
640CFLAGS_SHLIB
39fd3d4f
SJR
641BUILD_LDFLAGS
642BUILD_CFLAGS
d1154eb4 643INCLUDES
39fd3d4f 644DO_TEST_SUITE
fd1677e8 645LDFLAGS_STATIC
39fd3d4f
SJR
646root_sysconfdir
647root_libdir
648root_sbindir
649root_bindir
650root_prefix
5ce368f0 651E2SCRUB_CMT
39fd3d4f
SJR
652UNIX_CMT
653CYGWIN_CMT
654LINUX_CMT
bcca786b
DW
655threadsan_ldflags
656threadsan_cflags
657have_threadsan
5e666e3d
DW
658addrsan_ldflags
659addrsan_cflags
660have_addrsan
1c2a76ae
DW
661ubsan_ldflags
662ubsan_cflags
663have_ubsan
4aece328
DW
664lto_ldflags
665lto_cflags
666have_lto
667gcc_ranlib
668gcc_ar
39fd3d4f
SJR
669UNI_DIFF_OPTS
670SEM_INIT_LIB
81cbf1ef
DW
671FUSE_CMT
672FUSE_LIB
c94da047 673CLOCK_GETTIME_LIB
b291c11f 674MAGIC_LIB
39fd3d4f 675SOCKET_LIB
2dd680f3 676SIZEOF_TIME_T
cc68e8a6 677SIZEOF_OFF_T
39fd3d4f
SJR
678SIZEOF_LONG_LONG
679SIZEOF_LONG
680SIZEOF_INT
681SIZEOF_SHORT
ec3a69bb 682DD
39fd3d4f
SJR
683BUILD_CC
684MAKEINFO
685STRIP
686AR
687LDCONFIG
688PERL
39fd3d4f
SJR
689AWK
690CHMOD
691RM
692CP
693MV
694LN_S
695LN
bcb915b0
TT
696ifNotGNUmake
697ifGNUmake
39fd3d4f
SJR
698BINARY_TYPE
699POSUB
700LTLIBINTL
701LIBINTL
702INTLLIBS
703INTL_LIBTOOL_SUFFIX_PREFIX
704INTLOBJS
705GENCAT
706INSTOBJEXT
707DATADIRNAME
708CATOBJEXT
709USE_INCLUDED_LIBINTL
710BUILD_INCLUDED_LIBINTL
93613951
TT
711LTLIBC
712WINDRES
713WOE32
714WOE32DLL
39fd3d4f 715HAVE_WPRINTF
93613951 716HAVE_NEWLOCALE
39fd3d4f
SJR
717HAVE_SNPRINTF
718HAVE_ASPRINTF
719HAVE_POSIX_PRINTF
93613951
TT
720INTL_DEFAULT_VERBOSITY
721INTL_MACOSX_LIBS
39fd3d4f 722GLIBC21
93613951
TT
723INTLBISON
724LTLIBICONV
725LIBICONV
726LTLIBMULTITHREAD
727LIBMULTITHREAD
728LTLIBTHREAD
729LIBTHREAD
730LIBPTH_PREFIX
731LTLIBPTH
732LIBPTH
733PRI_MACROS_BROKEN
39fd3d4f 734ALLOCA
93613951
TT
735HAVE_VISIBILITY
736CFLAG_VISIBILITY
39fd3d4f 737RANLIB
93613951
TT
738GLIBC2
739XGETTEXT_EXTRA_OPTIONS
39fd3d4f 740MSGMERGE
93613951 741XGETTEXT_015
39fd3d4f 742XGETTEXT
93613951
TT
743GMSGFMT_015
744MSGFMT_015
39fd3d4f
SJR
745GMSGFMT
746MSGFMT
93613951 747GETTEXT_MACRO_VERSION
39fd3d4f 748USE_NLS
93613951
TT
749SED
750MKDIR_P
39fd3d4f
SJR
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754SET_MAKE
755VERSION
756PACKAGE
757GETTEXT_PACKAGE
749f0712
TT
758TDB_MAN_COMMENT
759TDB_CMT
39fd3d4f
SJR
760UUIDD_CMT
761E2INITRD_MAN
762E2INITRD_PROG
763FSCK_MAN
764FSCK_PROG
8d9c50c5 765DEFRAG_CMT
39fd3d4f
SJR
766RESIZER_CMT
767IMAGER_CMT
768DEBUGFS_CMT
feb235e0 769SUBSET_CMT
0afb9be6 770ALL_CMT
39fd3d4f
SJR
771BLKID_CMT
772DEPPROFILED_LIBBLKID
773PROFILED_LIBBLKID
774DEPSTATIC_LIBBLKID
775STATIC_LIBBLKID
776DEPLIBBLKID
777LIBBLKID
778UUID_CMT
779DEPPROFILED_LIBUUID
780PROFILED_LIBUUID
781DEPSTATIC_LIBUUID
782STATIC_LIBUUID
783DEPLIBUUID
784LIBUUID
93613951
TT
785PKG_CONFIG_LIBDIR
786PKG_CONFIG_PATH
39fd3d4f 787PKG_CONFIG
b9e66a18 788DEV_FEATURES_CMT
39fd3d4f
SJR
789TEST_IO_CMT
790PRIVATE_LIBS_CMT
791LDFLAG_DYNAMIC
792PROFILED_LIB_EXT
793STATIC_LIB_EXT
794LIB_EXT
39fd3d4f
SJR
795PROFILE_CMT
796BSDLIB_CMT
797ELF_CMT
c13351f6 798Q
c1986ecb 799ES
c13351f6 800E
5aa6c3f6 801LINK_BUILD_FLAGS
183c73b0 802SYMLINK_RELATIVE
5aa6c3f6 803LINK_INSTALL_FLAGS
39fd3d4f 804MAINTAINER_CMT
93613951
TT
805EGREP
806GREP
39fd3d4f 807CPP
9b3018a8 808RDYNAMIC
57aa50d4 809DLOPEN_LIB
39fd3d4f
SJR
810OBJEXT
811EXEEXT
812ac_ct_CC
813CPPFLAGS
814LDFLAGS
815CFLAGS
816CC
817host_os
818host_vendor
819host_cpu
820host
821build_os
822build_vendor
823build_cpu
824build
5ce368f0 825E2FSPROGS_DATE
39fd3d4f
SJR
826E2FSPROGS_PKGVER
827E2FSPROGS_VERSION
828E2FSPROGS_DAY
829E2FSPROGS_MONTH
830E2FSPROGS_YEAR
831target_alias
832host_alias
833build_alias
834LIBS
835ECHO_T
836ECHO_N
837ECHO_C
838DEFS
839mandir
840localedir
841libdir
842psdir
843pdfdir
844dvidir
845htmldir
846infodir
847docdir
848oldincludedir
849includedir
2ab53829 850runstatedir
39fd3d4f
SJR
851localstatedir
852sharedstatedir
853sysconfdir
854datadir
855datarootdir
856libexecdir
857sbindir
858bindir
859program_transform_name
860prefix
861exec_prefix
57aa50d4 862PACKAGE_URL
39fd3d4f
SJR
863PACKAGE_BUGREPORT
864PACKAGE_STRING
865PACKAGE_VERSION
866PACKAGE_TARNAME
867PACKAGE_NAME
868PATH_SEPARATOR
869SHELL'
e1052144
TT
870ac_subst_files='MCONFIG
871MAKEFILE_ELF
872MAKEFILE_BSDLIB
873MAKEFILE_PROFILE
e1052144 874MAKEFILE_LIBRARY
488c75a6
TT
875ASM_TYPES_HEADER
876PUBLIC_CONFIG_HEADER'
39fd3d4f
SJR
877ac_user_opts='
878enable_option_checking
879with_diet_libc
880with_cc
39fd3d4f
SJR
881with_ccopts
882with_ldopts
883with_root_prefix
884enable_maintainer_mode
5aa6c3f6 885enable_symlink_install
91d11da1 886enable_relative_symlinks
183c73b0 887enable_symlink_relative_symlinks
5aa6c3f6 888enable_symlink_build
c13351f6 889enable_verbose_makecmds
39fd3d4f
SJR
890enable_elf_shlibs
891enable_bsd_shlibs
892enable_profile
fedfb27f 893enable_gcov
fd1677e8 894enable_hardening
39fd3d4f
SJR
895enable_jbd_debug
896enable_blkid_debug
897enable_testio_debug
b9e66a18 898enable_developer_features
39fd3d4f
SJR
899enable_libuuid
900enable_libblkid
0afb9be6 901enable_subset
3df6014a 902enable_backtrace
39fd3d4f
SJR
903enable_debugfs
904enable_imager
905enable_resizer
8d9c50c5 906enable_defrag
39fd3d4f
SJR
907enable_fsck
908enable_e2initrd_helper
909enable_tls
910enable_uuidd
d6a4bcb5 911enable_mmp
749f0712 912enable_tdb
1625bf42
TB
913enable_bmap_stats
914enable_bmap_stats_ops
39fd3d4f 915enable_nls
93613951 916enable_threads
39fd3d4f
SJR
917with_gnu_ld
918enable_rpath
93613951 919with_libpth_prefix
39fd3d4f
SJR
920with_libiconv_prefix
921with_included_gettext
922with_libintl_prefix
81cbf1ef 923enable_fuse2fs
4aece328 924enable_lto
1c2a76ae 925enable_ubsan
5e666e3d 926enable_addrsan
bcca786b 927enable_threadsan
55e00a25 928with_multiarch
5ce368f0 929with_udev_rules_dir
a2df5894
DW
930with_crond_dir
931with_systemd_unit_dir
39fd3d4f 932'
e1052144
TT
933 ac_precious_vars='build_alias
934host_alias
935target_alias
936CC
937CFLAGS
938LDFLAGS
29a5deed 939LIBS
e1052144 940CPPFLAGS
14b596d4 941CPP
93613951
TT
942PKG_CONFIG
943PKG_CONFIG_PATH
5ce368f0
DW
944PKG_CONFIG_LIBDIR
945udev_CFLAGS
a2df5894
DW
946udev_LIBS
947systemd_CFLAGS
948systemd_LIBS'
e1052144 949
50e1e10f
TT
950
951# Initialize some variables set by options.
b0cacab0
TT
952ac_init_help=
953ac_init_version=false
39fd3d4f
SJR
954ac_unrecognized_opts=
955ac_unrecognized_sep=
50e1e10f
TT
956# The variables have the same names as the options, with
957# dashes changed to underlines.
b0cacab0 958cache_file=/dev/null
50e1e10f 959exec_prefix=NONE
50e1e10f 960no_create=
50e1e10f
TT
961no_recursion=
962prefix=NONE
963program_prefix=NONE
964program_suffix=NONE
965program_transform_name=s,x,x,
966silent=
967site=
968srcdir=
50e1e10f
TT
969verbose=
970x_includes=NONE
971x_libraries=NONE
b0cacab0
TT
972
973# Installation directory options.
974# These are left unexpanded so users can "make install exec_prefix=/foo"
975# and all the variables that are supposed to be based on exec_prefix
976# by default will actually change.
977# Use braces instead of parens because sh, perl, etc. also accept them.
e1052144 978# (The list follows the same order as the GNU Coding Standards.)
21c84b71
TT
979bindir='${exec_prefix}/bin'
980sbindir='${exec_prefix}/sbin'
981libexecdir='${exec_prefix}/libexec'
e1052144
TT
982datarootdir='${prefix}/share'
983datadir='${datarootdir}'
21c84b71
TT
984sysconfdir='${prefix}/etc'
985sharedstatedir='${prefix}/com'
986localstatedir='${prefix}/var'
2ab53829 987runstatedir='${localstatedir}/run'
21c84b71
TT
988includedir='${prefix}/include'
989oldincludedir='/usr/include'
e1052144
TT
990docdir='${datarootdir}/doc/${PACKAGE}'
991infodir='${datarootdir}/info'
992htmldir='${docdir}'
993dvidir='${docdir}'
994pdfdir='${docdir}'
995psdir='${docdir}'
996libdir='${exec_prefix}/lib'
997localedir='${datarootdir}/locale'
998mandir='${datarootdir}/man'
50e1e10f 999
50e1e10f 1000ac_prev=
e1052144 1001ac_dashdash=
50e1e10f
TT
1002for ac_option
1003do
50e1e10f
TT
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
e1052144 1006 eval $ac_prev=\$ac_option
50e1e10f
TT
1007 ac_prev=
1008 continue
1009 fi
1010
e1052144 1011 case $ac_option in
d6a4bcb5
TB
1012 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 *=) ac_optarg= ;;
1014 *) ac_optarg=yes ;;
e1052144 1015 esac
50e1e10f
TT
1016
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1018
e1052144
TT
1019 case $ac_dashdash$ac_option in
1020 --)
1021 ac_dashdash=yes ;;
50e1e10f 1022
21c84b71
TT
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b0cacab0 1026 bindir=$ac_optarg ;;
21c84b71
TT
1027
1028 -build | --build | --buil | --bui | --bu)
b0cacab0 1029 ac_prev=build_alias ;;
21c84b71 1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b0cacab0 1031 build_alias=$ac_optarg ;;
50e1e10f
TT
1032
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b0cacab0
TT
1038 cache_file=$ac_optarg ;;
1039
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
50e1e10f 1042
e1052144 1043 -datadir | --datadir | --datadi | --datad)
21c84b71 1044 ac_prev=datadir ;;
e1052144 1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b0cacab0 1046 datadir=$ac_optarg ;;
21c84b71 1047
e1052144
TT
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1054
50e1e10f 1055 -disable-* | --disable-*)
39fd3d4f 1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
50e1e10f 1057 # Reject names that are not valid shell variable names.
39fd3d4f 1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1059 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064"enable_$ac_useropt"
1065"*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
e1052144
TT
1070
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1075
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
50e1e10f
TT
1080
1081 -enable-* | --enable-*)
39fd3d4f 1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
50e1e10f 1083 # Reject names that are not valid shell variable names.
39fd3d4f 1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1085 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1089 *"
1090"enable_$ac_useropt"
1091"*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1096
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
b0cacab0 1104 exec_prefix=$ac_optarg ;;
50e1e10f
TT
1105
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1109
b0cacab0
TT
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
50e1e10f
TT
1116
1117 -host | --host | --hos | --ho)
b0cacab0 1118 ac_prev=host_alias ;;
50e1e10f 1119 -host=* | --host=* | --hos=* | --ho=*)
b0cacab0 1120 host_alias=$ac_optarg ;;
50e1e10f 1121
e1052144
TT
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1127
21c84b71
TT
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
b0cacab0 1133 includedir=$ac_optarg ;;
21c84b71
TT
1134
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b0cacab0 1138 infodir=$ac_optarg ;;
21c84b71
TT
1139
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b0cacab0 1143 libdir=$ac_optarg ;;
21c84b71
TT
1144
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
b0cacab0 1150 libexecdir=$ac_optarg ;;
21c84b71 1151
e1052144
TT
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1156
21c84b71 1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
e1052144 1158 | --localstate | --localstat | --localsta | --localst | --locals)
21c84b71
TT
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
e1052144 1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b0cacab0 1162 localstatedir=$ac_optarg ;;
21c84b71
TT
1163
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b0cacab0 1167 mandir=$ac_optarg ;;
21c84b71 1168
50e1e10f
TT
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1172
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b0cacab0 1174 | --no-cr | --no-c | -n)
50e1e10f
TT
1175 no_create=yes ;;
1176
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1180
21c84b71
TT
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b0cacab0 1188 oldincludedir=$ac_optarg ;;
21c84b71 1189
50e1e10f
TT
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b0cacab0 1193 prefix=$ac_optarg ;;
50e1e10f
TT
1194
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b0cacab0 1200 program_prefix=$ac_optarg ;;
50e1e10f
TT
1201
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b0cacab0 1207 program_suffix=$ac_optarg ;;
50e1e10f
TT
1208
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
b0cacab0 1224 program_transform_name=$ac_optarg ;;
50e1e10f 1225
e1052144
TT
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1230
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1235
50e1e10f
TT
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1239
2ab53829
TT
1240 -runstatedir | --runstatedir | --runstatedi | --runstated \
1241 | --runstate | --runstat | --runsta | --runst | --runs \
1242 | --run | --ru | --r)
1243 ac_prev=runstatedir ;;
1244 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1245 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1246 | --run=* | --ru=* | --r=*)
1247 runstatedir=$ac_optarg ;;
1248
21c84b71
TT
1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250 ac_prev=sbindir ;;
1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252 | --sbi=* | --sb=*)
b0cacab0 1253 sbindir=$ac_optarg ;;
21c84b71
TT
1254
1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257 | --sharedst | --shareds | --shared | --share | --shar \
1258 | --sha | --sh)
1259 ac_prev=sharedstatedir ;;
1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263 | --sha=* | --sh=*)
b0cacab0 1264 sharedstatedir=$ac_optarg ;;
21c84b71 1265
50e1e10f
TT
1266 -site | --site | --sit)
1267 ac_prev=site ;;
1268 -site=* | --site=* | --sit=*)
b0cacab0 1269 site=$ac_optarg ;;
50e1e10f
TT
1270
1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272 ac_prev=srcdir ;;
1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b0cacab0 1274 srcdir=$ac_optarg ;;
50e1e10f 1275
21c84b71
TT
1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277 | --syscon | --sysco | --sysc | --sys | --sy)
1278 ac_prev=sysconfdir ;;
1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b0cacab0 1281 sysconfdir=$ac_optarg ;;
21c84b71 1282
50e1e10f 1283 -target | --target | --targe | --targ | --tar | --ta | --t)
b0cacab0 1284 ac_prev=target_alias ;;
50e1e10f 1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b0cacab0 1286 target_alias=$ac_optarg ;;
50e1e10f
TT
1287
1288 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 verbose=yes ;;
1290
b0cacab0
TT
1291 -version | --version | --versio | --versi | --vers | -V)
1292 ac_init_version=: ;;
50e1e10f
TT
1293
1294 -with-* | --with-*)
39fd3d4f 1295 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
50e1e10f 1296 # Reject names that are not valid shell variable names.
39fd3d4f 1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1298 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1302 *"
1303"with_$ac_useropt"
1304"*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1309
1310 -without-* | --without-*)
39fd3d4f 1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
50e1e10f 1312 # Reject names that are not valid shell variable names.
39fd3d4f 1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1314 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1318 *"
1319"with_$ac_useropt"
1320"*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=no ;;
50e1e10f
TT
1325
1326 --x)
1327 # Obsolete; use --with-x.
1328 with_x=yes ;;
1329
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b0cacab0 1335 x_includes=$ac_optarg ;;
50e1e10f
TT
1336
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b0cacab0 1342 x_libraries=$ac_optarg ;;
50e1e10f 1343
d6a4bcb5
TB
1344 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1345Try \`$0 --help' for more information"
50e1e10f
TT
1346 ;;
1347
b0cacab0
TT
1348 *=*)
1349 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350 # Reject names that are not valid shell variable names.
57aa50d4
TT
1351 case $ac_envvar in #(
1352 '' | [0-9]* | *[!_$as_cr_alnum]* )
d6a4bcb5 1353 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
57aa50d4 1354 esac
e1052144 1355 eval $ac_envvar=\$ac_optarg
b0cacab0
TT
1356 export $ac_envvar ;;
1357
21c84b71 1358 *)
b0cacab0 1359 # FIXME: should be removed in autoconf 3.0.
39fd3d4f 1360 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b0cacab0 1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
39fd3d4f 1362 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6a4bcb5 1363 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
50e1e10f
TT
1364 ;;
1365
1366 esac
1367done
1368
1369if test -n "$ac_prev"; then
b0cacab0 1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d6a4bcb5 1371 as_fn_error $? "missing argument to $ac_option"
50e1e10f 1372fi
50e1e10f 1373
39fd3d4f
SJR
1374if test -n "$ac_unrecognized_opts"; then
1375 case $enable_option_checking in
1376 no) ;;
d6a4bcb5 1377 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
39fd3d4f
SJR
1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 esac
1380fi
1381
1382# Check all directory arguments for consistency.
e1052144
TT
1383for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2ab53829 1386 libdir localedir mandir runstatedir
50e1e10f 1387do
e1052144 1388 eval ac_val=\$$ac_var
39fd3d4f
SJR
1389 # Remove trailing slashes.
1390 case $ac_val in
1391 */ )
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
1394 esac
1395 # Be sure to have absolute directory names.
b0cacab0 1396 case $ac_val in
e1052144
TT
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
50e1e10f 1399 esac
d6a4bcb5 1400 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
50e1e10f
TT
1401done
1402
b0cacab0
TT
1403# There might be people who depend on the old broken behavior: `$host'
1404# used to hold the argument of --host etc.
1405# FIXME: To remove some day.
1406build=$build_alias
1407host=$host_alias
1408target=$target_alias
1409
1410# FIXME: To remove some day.
1411if test "x$host_alias" != x; then
1412 if test "x$build_alias" = x; then
1413 cross_compiling=maybe
b0cacab0
TT
1414 elif test "x$build_alias" != "x$host_alias"; then
1415 cross_compiling=yes
1416 fi
1417fi
50e1e10f 1418
b0cacab0
TT
1419ac_tool_prefix=
1420test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421
1422test "$silent" = yes && exec 6>/dev/null
50e1e10f 1423
50e1e10f 1424
e1052144
TT
1425ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426ac_ls_di=`ls -di .` &&
1427ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d6a4bcb5 1428 as_fn_error $? "working directory cannot be determined"
e1052144 1429test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d6a4bcb5 1430 as_fn_error $? "pwd does not report name of working directory"
e1052144
TT
1431
1432
50e1e10f
TT
1433# Find the source files, if location was not specified.
1434if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
e1052144 1436 # Try the directory containing this script, then the parent directory.
39fd3d4f
SJR
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442$as_echo X"$as_myself" |
e1052144
TT
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 s//\1/
1445 q
1446 }
1447 /^X\(\/\/\)[^/].*/{
1448 s//\1/
1449 q
1450 }
1451 /^X\(\/\/\)$/{
1452 s//\1/
1453 q
1454 }
1455 /^X\(\/\).*/{
1456 s//\1/
1457 q
1458 }
1459 s/.*/./; q'`
50e1e10f 1460 srcdir=$ac_confdir
e1052144 1461 if test ! -r "$srcdir/$ac_unique_file"; then
50e1e10f
TT
1462 srcdir=..
1463 fi
1464else
1465 ac_srcdir_defaulted=no
1466fi
e1052144
TT
1467if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d6a4bcb5 1469 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
50e1e10f 1470fi
e1052144
TT
1471ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472ac_abs_confdir=`(
d6a4bcb5 1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
e1052144
TT
1474 pwd)`
1475# When building in place, set srcdir=.
1476if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 srcdir=.
1478fi
1479# Remove unnecessary trailing slashes from srcdir.
1480# Double slashes in file names in object file debugging info
1481# mess up M-x gdb in Emacs.
1482case $srcdir in
1483*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484esac
1485for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490done
b0cacab0
TT
1491
1492#
1493# Report the --help message.
1494#
1495if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1498 cat <<_ACEOF
1499\`configure' configures this package to adapt to many kinds of systems.
1500
1501Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504VAR=VALUE. See below for descriptions of some of the useful variables.
1505
1506Defaults for the options are specified in brackets.
1507
1508Configuration:
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
d6a4bcb5 1513 -q, --quiet, --silent do not print \`checking ...' messages
b0cacab0
TT
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518
b0cacab0
TT
1519Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
39fd3d4f 1521 [$ac_default_prefix]
b0cacab0 1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
39fd3d4f 1523 [PREFIX]
b0cacab0
TT
1524
1525By default, \`make install' will install all the files in
1526\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528for instance \`--prefix=\$HOME'.
1529
1530For better control, use the options below.
1531
1532Fine tuning of the installation directories:
39fd3d4f
SJR
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2ab53829 1539 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
39fd3d4f
SJR
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
b0cacab0
TT
1553_ACEOF
1554
1555 cat <<\_ACEOF
1556
1557System types:
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1560_ACEOF
1561fi
1562
1563if test -n "$ac_init_help"; then
1564
1565 cat <<\_ACEOF
1566
1567Optional Features:
39fd3d4f 1568 --disable-option-checking ignore unrecognized --enable/--with options
b0cacab0
TT
1569 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1570 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
98919bdb 1571 --enable-maintainer-mode enable makefile rules useful for maintainers
5aa6c3f6 1572 --enable-symlink-install use symlinks when installing instead of hard links
183c73b0 1573 --enable-relative-symlinks use relative symlinks when installing
91d11da1 1574
5aa6c3f6
TT
1575 --enable-symlink-build use symlinks while building instead of hard links
1576 --enable-verbose-makecmds enable verbose make command output
b0cacab0
TT
1577 --enable-elf-shlibs select ELF shared libraries
1578 --enable-bsd-shlibs select BSD shared libraries
1579 --enable-profile build profiling libraries
fedfb27f 1580 --enable-gcov build for coverage testing using gcov
fd1677e8 1581 --enable-hardening build for coverage testing using gcov
b0cacab0
TT
1582 --enable-jbd-debug enable journal debugging
1583 --enable-blkid-debug enable blkid debugging
af773654 1584 --disable-testio-debug disable the use of the test I/O manager for debugging
b9e66a18 1585 --enable-developer-features enable features for use by ext4 developers
f5dffb81
TT
1586 --enable-libuuid build and use private uuid library
1587 --enable-libblkid build and use private blkid library
0afb9be6 1588 --enable-subset enable subset-only build
3df6014a 1589 --disable-backtrace disable use backtrace
b0cacab0
TT
1590 --disable-debugfs disable support of debugfs program
1591 --disable-imager disable support of e2image program
1592 --disable-resizer disable support of e2resize program
8d9c50c5 1593 --disable-defrag disable support of e4defrag program
b0cacab0
TT
1594 --enable-fsck build fsck wrapper program
1595 --enable-e2initrd-helper build e2initrd-helper program
3249394d 1596 --disable-tls disable use of thread local support
5610f992 1597 --disable-uuidd disable building the uuid daemon
d6a4bcb5 1598 --disable-mmp disable support mmp, Multi Mount Protection
749f0712 1599 --disable-tdb disable tdb support
1625bf42
TB
1600 --disable-bmap-stats disable collection of bitmap stats.
1601 --enable-bmap-stats-ops enable collection of additional bitmap stats
b0cacab0 1602 --disable-nls do not use Native Language Support
93613951
TT
1603 --enable-threads={posix|solaris|pth|windows}
1604 specify multithreading API
1605 --disable-threads build without multithread safety
b0cacab0 1606 --disable-rpath do not hardcode runtime library paths
f5dffb81 1607 --disable-fuse2fs do not build fuse2fs
4aece328 1608 --enable-lto enable link time optimization
1c2a76ae 1609 --enable-ubsan enable undefined behavior sanitizer
5e666e3d 1610 --enable-addrsan enable address sanitizer
bcca786b 1611 --enable-threadsan enable thread sanitizer
b0cacab0
TT
1612
1613Optional Packages:
1614 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1615 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3249394d 1616 --with-diet-libc use diet libc
0b5b9f90
TT
1617 --with-cc no longer supported, use CC= instead
1618 --with-ccopts no longer supported, use CFLAGS= instead
1619 --with-ldopts no longer supported, use LDFLAGS= instead
b0cacab0 1620 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
93613951
TT
1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1622 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1623 --without-libpth-prefix don't search for libpth in includedir and libdir
b0cacab0
TT
1624 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1625 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1626 --with-included-gettext use the GNU gettext library included here
1627 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1628 --without-libintl-prefix don't search for libintl in includedir and libdir
55e00a25 1629 --with-multiarch=ARCH specify the multiarch triplet
5ce368f0
DW
1630 --with-udev-rules-dir[=DIR]
1631 Install udev rules into DIR.
a2df5894
DW
1632 --with-crond-dir[=DIR] Install system crontabs into DIR.
1633 --with-systemd-unit-dir[=DIR]
1634 Install systemd system units into DIR.
b0cacab0
TT
1635
1636Some influential environment variables:
1637 CC C compiler command
1638 CFLAGS C compiler flags
1639 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1640 nonstandard directory <lib dir>
29a5deed 1641 LIBS libraries to pass to the linker, e.g. -l<library>
61ef2474 1642 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
e1052144 1643 you have headers in a nonstandard directory <include dir>
b0cacab0 1644 CPP C preprocessor
14b596d4 1645 PKG_CONFIG path to pkg-config utility
93613951
TT
1646 PKG_CONFIG_PATH
1647 directories to add to pkg-config's search path
1648 PKG_CONFIG_LIBDIR
1649 path overriding pkg-config's built-in search path
5ce368f0
DW
1650 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1651 udev_LIBS linker flags for udev, overriding pkg-config
a2df5894
DW
1652 systemd_CFLAGS
1653 C compiler flags for systemd, overriding pkg-config
1654 systemd_LIBS
1655 linker flags for systemd, overriding pkg-config
b0cacab0
TT
1656
1657Use these variables to override the choices made by `configure' or to help
1658it to find libraries and programs with nonstandard names/locations.
1659
57aa50d4 1660Report bugs to the package provider.
b0cacab0 1661_ACEOF
e1052144 1662ac_status=$?
b0cacab0
TT
1663fi
1664
1665if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
b0cacab0 1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
39fd3d4f
SJR
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 continue
b0cacab0
TT
1671 ac_builddir=.
1672
e1052144
TT
1673case "$ac_dir" in
1674.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675*)
39fd3d4f 1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 1677 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 esac ;;
1683esac
1684ac_abs_top_builddir=$ac_pwd
1685ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686# for backward compatibility:
1687ac_top_builddir=$ac_top_build_prefix
b0cacab0
TT
1688
1689case $srcdir in
e1052144 1690 .) # We are building in place.
b0cacab0 1691 ac_srcdir=.
e1052144
TT
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 1695 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1698 *) # Relative name.
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 1702esac
e1052144
TT
1703ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure" --help=recursive
b0cacab0 1713 else
39fd3d4f 1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
e1052144
TT
1715 fi || ac_status=$?
1716 cd "$ac_pwd" || { ac_status=$?; break; }
b0cacab0
TT
1717 done
1718fi
1719
e1052144 1720test -n "$ac_init_help" && exit $ac_status
b0cacab0
TT
1721if $ac_init_version; then
1722 cat <<\_ACEOF
e1052144 1723configure
d6a4bcb5 1724generated by GNU Autoconf 2.69
b0cacab0 1725
d6a4bcb5 1726Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
1727This configure script is free software; the Free Software Foundation
1728gives unlimited permission to copy, distribute and modify it.
1729_ACEOF
e1052144 1730 exit
b0cacab0 1731fi
b0cacab0 1732
57aa50d4
TT
1733## ------------------------ ##
1734## Autoconf initialization. ##
1735## ------------------------ ##
b0cacab0 1736
57aa50d4
TT
1737# ac_fn_c_try_compile LINENO
1738# --------------------------
1739# Try to compile conftest.$ac_ext, and return whether this succeeded.
1740ac_fn_c_try_compile ()
1741{
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext
1744 if { { ac_try="$ac_compile"
1745case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_compile") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest.$ac_objext; then :
1763 ac_retval=0
1764else
1765 $as_echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1767
57aa50d4
TT
1768 ac_retval=1
1769fi
d6a4bcb5 1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1771 as_fn_set_status $ac_retval
57aa50d4
TT
1772
1773} # ac_fn_c_try_compile
1774
1775# ac_fn_c_try_link LINENO
1776# -----------------------
1777# Try to link conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_link ()
b0cacab0 1779{
57aa50d4
TT
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
d6a4bcb5 1802 test -x conftest$ac_exeext
57aa50d4
TT
1803 }; then :
1804 ac_retval=0
1805else
1806 $as_echo "$as_me: failed program was:" >&5
1807sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1808
57aa50d4
TT
1809 ac_retval=1
1810fi
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1817 as_fn_set_status $ac_retval
b0cacab0 1818
57aa50d4 1819} # ac_fn_c_try_link
b0cacab0 1820
57aa50d4
TT
1821# ac_fn_c_try_cpp LINENO
1822# ----------------------
1823# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824ac_fn_c_try_cpp ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1828case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831esac
1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833$as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1840 fi
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6a4bcb5 1842 test $ac_status = 0; } > conftest.i && {
57aa50d4
TT
1843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 }; then :
1846 ac_retval=0
1847else
1848 $as_echo "$as_me: failed program was:" >&5
1849sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1850
57aa50d4
TT
1851 ac_retval=1
1852fi
d6a4bcb5 1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1854 as_fn_set_status $ac_retval
b0cacab0 1855
57aa50d4 1856} # ac_fn_c_try_cpp
b0cacab0 1857
93613951
TT
1858# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1859# -------------------------------------------------------
1860# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1861# the include files in INCLUDES and setting the cache variable VAR
1862# accordingly.
1863ac_fn_c_check_header_mongrel ()
1864{
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if eval \${$3+:} false; then :
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1871fi
1872eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
1875else
1876 # Is the header compilable?
1877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1878$as_echo_n "checking $2 usability... " >&6; }
1879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */
1881$4
1882#include <$2>
1883_ACEOF
1884if ac_fn_c_try_compile "$LINENO"; then :
1885 ac_header_compiler=yes
1886else
1887 ac_header_compiler=no
1888fi
1889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1891$as_echo "$ac_header_compiler" >&6; }
1892
1893# Is the header present?
1894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1895$as_echo_n "checking $2 presence... " >&6; }
1896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898#include <$2>
1899_ACEOF
1900if ac_fn_c_try_cpp "$LINENO"; then :
1901 ac_header_preproc=yes
1902else
1903 ac_header_preproc=no
1904fi
1905rm -f conftest.err conftest.i conftest.$ac_ext
1906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1907$as_echo "$ac_header_preproc" >&6; }
1908
1909# So? What about this header?
1910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1911 yes:no: )
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1913$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 ;;
1917 no:yes:* )
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1919$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1921$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1923$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1925$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928 ;;
1929esac
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if eval \${$3+:} false; then :
1933 $as_echo_n "(cached) " >&6
1934else
1935 eval "$3=\$ac_header_compiler"
1936fi
1937eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939$as_echo "$ac_res" >&6; }
1940fi
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943} # ac_fn_c_check_header_mongrel
1944
57aa50d4
TT
1945# ac_fn_c_try_run LINENO
1946# ----------------------
1947# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1948# that executables *can* be run.
1949ac_fn_c_try_run ()
1950{
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if { { ac_try="$ac_link"
1953case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956esac
1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958$as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_link") 2>&5
1960 ac_status=$?
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1963 { { case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966esac
1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968$as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_try") 2>&5
1970 ac_status=$?
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; }; }; then :
1973 ac_retval=0
1974else
1975 $as_echo "$as_me: program exited with status $ac_status" >&5
1976 $as_echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1978
57aa50d4
TT
1979 ac_retval=$ac_status
1980fi
1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1983 as_fn_set_status $ac_retval
b0cacab0 1984
57aa50d4 1985} # ac_fn_c_try_run
b0cacab0 1986
93613951
TT
1987# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1988# -------------------------------------------------------
1989# Tests whether HEADER exists and can be compiled using the include files in
1990# INCLUDES, setting the cache variable VAR accordingly.
1991ac_fn_c_check_header_compile ()
1992{
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995$as_echo_n "checking for $2... " >&6; }
1996if eval \${$3+:} false; then :
1997 $as_echo_n "(cached) " >&6
1998else
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h. */
2001$4
2002#include <$2>
2003_ACEOF
2004if ac_fn_c_try_compile "$LINENO"; then :
2005 eval "$3=yes"
2006else
2007 eval "$3=no"
2008fi
2009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010fi
2011eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016} # ac_fn_c_check_header_compile
2017
57aa50d4
TT
2018# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2019# -------------------------------------------
2020# Tests whether TYPE exists after having included INCLUDES, setting cache
2021# variable VAR accordingly.
2022ac_fn_c_check_type ()
2023{
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026$as_echo_n "checking for $2... " >&6; }
d6a4bcb5 2027if eval \${$3+:} false; then :
57aa50d4 2028 $as_echo_n "(cached) " >&6
e1052144 2029else
57aa50d4
TT
2030 eval "$3=no"
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h. */
2033$4
2034int
2035main ()
2036{
2037if (sizeof ($2))
2038 return 0;
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h. */
2046$4
2047int
2048main ()
2049{
2050if (sizeof (($2)))
2051 return 0;
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f 2057
50e1e10f 2058else
57aa50d4 2059 eval "$3=yes"
b0cacab0 2060fi
57aa50d4 2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 2062fi
57aa50d4
TT
2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064fi
2065eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067$as_echo "$ac_res" >&6; }
d6a4bcb5 2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
50e1e10f 2069
57aa50d4 2070} # ac_fn_c_check_type
b0cacab0 2071
57aa50d4
TT
2072# ac_fn_c_check_func LINENO FUNC VAR
2073# ----------------------------------
2074# Tests whether FUNC exists, setting the cache variable VAR accordingly
2075ac_fn_c_check_func ()
2076{
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079$as_echo_n "checking for $2... " >&6; }
d6a4bcb5 2080if eval \${$3+:} false; then :
57aa50d4
TT
2081 $as_echo_n "(cached) " >&6
2082else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2087#define $2 innocuous_$2
b0cacab0 2088
57aa50d4
TT
2089/* System header to define __stub macros and hopefully few prototypes,
2090 which can conflict with char $2 (); below.
2091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2092 <limits.h> exists even on freestanding compilers. */
b0cacab0 2093
57aa50d4
TT
2094#ifdef __STDC__
2095# include <limits.h>
2096#else
2097# include <assert.h>
2098#endif
a04eba3f 2099
57aa50d4 2100#undef $2
07a0db15 2101
57aa50d4
TT
2102/* Override any GCC internal prototype to avoid an error.
2103 Use char because int might match the return type of a GCC
2104 builtin and then its argument prototype would still apply. */
2105#ifdef __cplusplus
2106extern "C"
2107#endif
2108char $2 ();
2109/* The GNU C library defines this for functions which it implements
2110 to always fail with ENOSYS. Some functions are actually named
2111 something starting with __ and the normal name is an alias. */
2112#if defined __stub_$2 || defined __stub___$2
2113choke me
2114#endif
74becf3c 2115
57aa50d4
TT
2116int
2117main ()
2118{
2119return $2 ();
2120 ;
2121 return 0;
2122}
2123_ACEOF
2124if ac_fn_c_try_link "$LINENO"; then :
2125 eval "$3=yes"
2126else
2127 eval "$3=no"
2128fi
2129rm -f core conftest.err conftest.$ac_objext \
2130 conftest$ac_exeext conftest.$ac_ext
2131fi
2132eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134$as_echo "$ac_res" >&6; }
d6a4bcb5 2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
93636bde 2136
57aa50d4 2137} # ac_fn_c_check_func
93636bde 2138
93613951
TT
2139# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2140# ---------------------------------------------
2141# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
d1154eb4 2142# accordingly.
93613951 2143ac_fn_c_check_decl ()
d1154eb4
TT
2144{
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
93613951
TT
2146 as_decl_name=`echo $2|sed 's/ *(.*//'`
2147 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2149$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6a4bcb5 2150if eval \${$3+:} false; then :
d1154eb4 2151 $as_echo_n "(cached) " >&6
d1154eb4 2152else
93613951 2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
2154/* end confdefs.h. */
2155$4
93613951
TT
2156int
2157main ()
2158{
2159#ifndef $as_decl_name
2160#ifdef __cplusplus
2161 (void) $as_decl_use;
2162#else
2163 (void) $as_decl_name;
2164#endif
2165#endif
2166
2167 ;
2168 return 0;
2169}
d1154eb4
TT
2170_ACEOF
2171if ac_fn_c_try_compile "$LINENO"; then :
93613951 2172 eval "$3=yes"
d1154eb4 2173else
93613951 2174 eval "$3=no"
d1154eb4
TT
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4
TT
2177fi
2178eval ac_res=\$$3
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180$as_echo "$ac_res" >&6; }
d6a4bcb5 2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1154eb4 2182
93613951 2183} # ac_fn_c_check_decl
d1154eb4 2184
57aa50d4
TT
2185# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2186# --------------------------------------------
2187# Tries to find the compile-time value of EXPR in a program that includes
2188# INCLUDES, setting VAR accordingly. Returns whether the value could be
2189# computed
2190ac_fn_c_compute_int ()
2191{
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 if test "$cross_compiling" = yes; then
2194 # Depending upon the size, compute the lo and hi bounds.
2195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h. */
2197$4
2198int
2199main ()
2200{
2201static int test_array [1 - 2 * !(($2) >= 0)];
d6a4bcb5
TB
2202test_array [0] = 0;
2203return test_array [0];
93636bde 2204
57aa50d4
TT
2205 ;
2206 return 0;
2207}
2208_ACEOF
2209if ac_fn_c_try_compile "$LINENO"; then :
2210 ac_lo=0 ac_mid=0
2211 while :; do
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h. */
2214$4
2215int
2216main ()
2217{
2218static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2219test_array [0] = 0;
2220return test_array [0];
93636bde 2221
57aa50d4
TT
2222 ;
2223 return 0;
2224}
2225_ACEOF
2226if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_hi=$ac_mid; break
2228else
2229 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2230 if test $ac_lo -le $ac_mid; then
2231 ac_lo= ac_hi=
2232 break
2233 fi
2234 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
b0cacab0 2235fi
57aa50d4
TT
2236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 done
2238else
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240/* end confdefs.h. */
2241$4
2242int
2243main ()
2244{
2245static int test_array [1 - 2 * !(($2) < 0)];
d6a4bcb5
TB
2246test_array [0] = 0;
2247return test_array [0];
e1052144 2248
57aa50d4
TT
2249 ;
2250 return 0;
2251}
2252_ACEOF
2253if ac_fn_c_try_compile "$LINENO"; then :
2254 ac_hi=-1 ac_mid=-1
2255 while :; do
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257/* end confdefs.h. */
2258$4
2259int
2260main ()
2261{
2262static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d6a4bcb5
TB
2263test_array [0] = 0;
2264return test_array [0];
93636bde 2265
57aa50d4
TT
2266 ;
2267 return 0;
2268}
2269_ACEOF
2270if ac_fn_c_try_compile "$LINENO"; then :
2271 ac_lo=$ac_mid; break
93636bde 2272else
57aa50d4
TT
2273 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2274 if test $ac_mid -le $ac_hi; then
2275 ac_lo= ac_hi=
2276 break
2277 fi
2278 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
93636bde 2279fi
57aa50d4
TT
2280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 done
2282else
2283 ac_lo= ac_hi=
2284fi
2285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286fi
2287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288# Binary search between lo and hi bounds.
2289while test "x$ac_lo" != "x$ac_hi"; do
2290 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292/* end confdefs.h. */
2293$4
2294int
2295main ()
2296{
2297static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2298test_array [0] = 0;
2299return test_array [0];
93636bde 2300
57aa50d4
TT
2301 ;
2302 return 0;
2303}
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306 ac_hi=$ac_mid
2307else
2308 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2309fi
2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311done
2312case $ac_lo in #((
2313?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2314'') ac_retval=1 ;;
927566a3 2315esac
57aa50d4
TT
2316 else
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318/* end confdefs.h. */
2319$4
2320static long int longval () { return $2; }
2321static unsigned long int ulongval () { return $2; }
2322#include <stdio.h>
2323#include <stdlib.h>
2324int
2325main ()
2326{
927566a3 2327
57aa50d4
TT
2328 FILE *f = fopen ("conftest.val", "w");
2329 if (! f)
2330 return 1;
2331 if (($2) < 0)
2332 {
2333 long int i = longval ();
2334 if (i != ($2))
2335 return 1;
2336 fprintf (f, "%ld", i);
2337 }
2338 else
2339 {
2340 unsigned long int i = ulongval ();
2341 if (i != ($2))
2342 return 1;
2343 fprintf (f, "%lu", i);
2344 }
2345 /* Do not output a trailing newline, as this causes \r\n confusion
2346 on some platforms. */
2347 return ferror (f) || fclose (f) != 0;
93636bde 2348
57aa50d4
TT
2349 ;
2350 return 0;
2351}
2352_ACEOF
2353if ac_fn_c_try_run "$LINENO"; then :
2354 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2355else
2356 ac_retval=1
2357fi
2358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2359 conftest.$ac_objext conftest.beam conftest.$ac_ext
2360rm -f conftest.val
93636bde 2361
57aa50d4 2362 fi
d6a4bcb5 2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 2364 as_fn_set_status $ac_retval
927566a3 2365
57aa50d4 2366} # ac_fn_c_compute_int
b0cacab0 2367
57aa50d4
TT
2368# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2369# ----------------------------------------------------
2370# Tries to find if the field MEMBER exists in type AGGR, after including
2371# INCLUDES, setting cache variable VAR accordingly.
2372ac_fn_c_check_member ()
2373{
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2376$as_echo_n "checking for $2.$3... " >&6; }
d6a4bcb5 2377if eval \${$4+:} false; then :
39fd3d4f 2378 $as_echo_n "(cached) " >&6
b0cacab0 2379else
57aa50d4
TT
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381/* end confdefs.h. */
2382$5
2383int
2384main ()
2385{
2386static $2 ac_aggr;
2387if (ac_aggr.$3)
2388return 0;
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393if ac_fn_c_try_compile "$LINENO"; then :
2394 eval "$4=yes"
2395else
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397/* end confdefs.h. */
2398$5
2399int
2400main ()
2401{
2402static $2 ac_aggr;
2403if (sizeof ac_aggr.$3)
2404return 0;
2405 ;
2406 return 0;
2407}
2408_ACEOF
2409if ac_fn_c_try_compile "$LINENO"; then :
2410 eval "$4=yes"
2411else
2412 eval "$4=no"
b0cacab0 2413fi
57aa50d4
TT
2414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415fi
2416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417fi
2418eval ac_res=\$$4
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420$as_echo "$ac_res" >&6; }
d6a4bcb5 2421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e1052144 2422
57aa50d4 2423} # ac_fn_c_check_member
57aa50d4
TT
2424cat >config.log <<_ACEOF
2425This file contains any messages produced by compilers while
2426running configure, to aid debugging if configure makes a mistake.
93636bde 2427
57aa50d4 2428It was created by $as_me, which was
d6a4bcb5 2429generated by GNU Autoconf 2.69. Invocation command line was
07a0db15 2430
57aa50d4 2431 $ $0 $@
e1052144 2432
57aa50d4
TT
2433_ACEOF
2434exec 5>>config.log
2435{
2436cat <<_ASUNAME
2437## --------- ##
2438## Platform. ##
2439## --------- ##
0b5b9f90 2440
57aa50d4
TT
2441hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2442uname -m = `(uname -m) 2>/dev/null || echo unknown`
2443uname -r = `(uname -r) 2>/dev/null || echo unknown`
2444uname -s = `(uname -s) 2>/dev/null || echo unknown`
2445uname -v = `(uname -v) 2>/dev/null || echo unknown`
0b5b9f90 2446
57aa50d4
TT
2447/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2448/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
0b5b9f90 2449
57aa50d4
TT
2450/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2451/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2452/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2453/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2454/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2455/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2456/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
0b5b9f90 2457
57aa50d4 2458_ASUNAME
b0cacab0 2459
b0cacab0
TT
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
57aa50d4
TT
2465 $as_echo "PATH: $as_dir"
2466 done
e1052144 2467IFS=$as_save_IFS
b0cacab0 2468
57aa50d4 2469} >&5
74becf3c 2470
57aa50d4 2471cat >&5 <<_ACEOF
e1052144 2472
b0cacab0 2473
57aa50d4
TT
2474## ----------- ##
2475## Core tests. ##
2476## ----------- ##
b0cacab0 2477
57aa50d4 2478_ACEOF
b0cacab0 2479
57aa50d4
TT
2480
2481# Keep a trace of the command line.
2482# Strip out --no-create and --no-recursion so they do not pile up.
2483# Strip out --silent because we don't want to record it for future runs.
2484# Also quote any args containing shell meta-characters.
2485# Make two passes to allow for proper duplicate-argument suppression.
2486ac_configure_args=
2487ac_configure_args0=
2488ac_configure_args1=
2489ac_must_keep_next=false
2490for ac_pass in 1 2
b0cacab0 2491do
57aa50d4
TT
2492 for ac_arg
2493 do
2494 case $ac_arg in
2495 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2497 | -silent | --silent | --silen | --sile | --sil)
2498 continue ;;
2499 *\'*)
2500 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2501 esac
2502 case $ac_pass in
2503 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2504 2)
2505 as_fn_append ac_configure_args1 " '$ac_arg'"
2506 if test $ac_must_keep_next = true; then
2507 ac_must_keep_next=false # Got value, back to normal.
2508 else
2509 case $ac_arg in
2510 *=* | --config-cache | -C | -disable-* | --disable-* \
2511 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2512 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2513 | -with-* | --with-* | -without-* | --without-* | --x)
2514 case "$ac_configure_args0 " in
2515 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2516 esac
2517 ;;
2518 -* ) ac_must_keep_next=true ;;
2519 esac
2520 fi
2521 as_fn_append ac_configure_args " '$ac_arg'"
2522 ;;
2523 esac
2524 done
b0cacab0 2525done
57aa50d4
TT
2526{ ac_configure_args0=; unset ac_configure_args0;}
2527{ ac_configure_args1=; unset ac_configure_args1;}
2528
2529# When interrupted or exit'd, cleanup temporary files, and complete
2530# config.log. We remove comments because anyway the quotes in there
2531# would cause problems or look ugly.
2532# WARNING: Use '\'' to represent an apostrophe within the trap.
2533# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2534trap 'exit_status=$?
2535 # Save into config.log some information that might help in debugging.
2536 {
2537 echo
2538
d6a4bcb5 2539 $as_echo "## ---------------- ##
57aa50d4 2540## Cache variables. ##
d6a4bcb5 2541## ---------------- ##"
57aa50d4
TT
2542 echo
2543 # The following way of writing the cache mishandles newlines in values,
2544(
2545 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2546 eval ac_val=\$$ac_var
2547 case $ac_val in #(
2548 *${as_nl}*)
2549 case $ac_var in #(
2550 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2551$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2552 esac
2553 case $ac_var in #(
2554 _ | IFS | as_nl) ;; #(
2555 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2556 *) { eval $ac_var=; unset $ac_var;} ;;
2557 esac ;;
2558 esac
2559 done
2560 (set) 2>&1 |
2561 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2562 *${as_nl}ac_space=\ *)
2563 sed -n \
2564 "s/'\''/'\''\\\\'\'''\''/g;
2565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2566 ;; #(
2567 *)
2568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2569 ;;
2570 esac |
2571 sort
2572)
2573 echo
2574
d6a4bcb5 2575 $as_echo "## ----------------- ##
57aa50d4 2576## Output variables. ##
d6a4bcb5 2577## ----------------- ##"
57aa50d4
TT
2578 echo
2579 for ac_var in $ac_subst_vars
2580 do
2581 eval ac_val=\$$ac_var
2582 case $ac_val in
2583 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2584 esac
2585 $as_echo "$ac_var='\''$ac_val'\''"
2586 done | sort
2587 echo
2588
2589 if test -n "$ac_subst_files"; then
d6a4bcb5 2590 $as_echo "## ------------------- ##
57aa50d4 2591## File substitutions. ##
d6a4bcb5 2592## ------------------- ##"
57aa50d4
TT
2593 echo
2594 for ac_var in $ac_subst_files
2595 do
2596 eval ac_val=\$$ac_var
2597 case $ac_val in
2598 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2599 esac
2600 $as_echo "$ac_var='\''$ac_val'\''"
2601 done | sort
2602 echo
2603 fi
2604
2605 if test -s confdefs.h; then
d6a4bcb5 2606 $as_echo "## ----------- ##
57aa50d4 2607## confdefs.h. ##
d6a4bcb5 2608## ----------- ##"
57aa50d4
TT
2609 echo
2610 cat confdefs.h
2611 echo
2612 fi
2613 test "$ac_signal" != 0 &&
2614 $as_echo "$as_me: caught signal $ac_signal"
2615 $as_echo "$as_me: exit $exit_status"
2616 } >&5
2617 rm -f core *.core core.conftest.* &&
2618 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2619 exit $exit_status
2620' 0
2621for ac_signal in 1 2 13 15; do
2622 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b0cacab0 2623done
57aa50d4 2624ac_signal=0
b0cacab0 2625
57aa50d4
TT
2626# confdefs.h avoids OS command line length limits that DEFS can exceed.
2627rm -f -r conftest* confdefs.h
b0cacab0 2628
57aa50d4 2629$as_echo "/* confdefs.h */" > confdefs.h
73ae2d4a 2630
57aa50d4
TT
2631# Predefined preprocessor variables.
2632
2633cat >>confdefs.h <<_ACEOF
2634#define PACKAGE_NAME "$PACKAGE_NAME"
2635_ACEOF
2636
2637cat >>confdefs.h <<_ACEOF
2638#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2639_ACEOF
2640
2641cat >>confdefs.h <<_ACEOF
2642#define PACKAGE_VERSION "$PACKAGE_VERSION"
2643_ACEOF
2644
2645cat >>confdefs.h <<_ACEOF
2646#define PACKAGE_STRING "$PACKAGE_STRING"
2647_ACEOF
2648
2649cat >>confdefs.h <<_ACEOF
2650#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2651_ACEOF
2652
2653cat >>confdefs.h <<_ACEOF
2654#define PACKAGE_URL "$PACKAGE_URL"
2655_ACEOF
2656
2657
2658# Let the site file select an alternate cache file if it wants to.
2659# Prefer an explicitly selected file to automatically selected ones.
2660ac_site_file1=NONE
2661ac_site_file2=NONE
2662if test -n "$CONFIG_SITE"; then
d6a4bcb5
TB
2663 # We do not want a PATH search for config.site.
2664 case $CONFIG_SITE in #((
2665 -*) ac_site_file1=./$CONFIG_SITE;;
2666 */*) ac_site_file1=$CONFIG_SITE;;
2667 *) ac_site_file1=./$CONFIG_SITE;;
2668 esac
57aa50d4
TT
2669elif test "x$prefix" != xNONE; then
2670 ac_site_file1=$prefix/share/config.site
2671 ac_site_file2=$prefix/etc/config.site
73ae2d4a 2672else
57aa50d4
TT
2673 ac_site_file1=$ac_default_prefix/share/config.site
2674 ac_site_file2=$ac_default_prefix/etc/config.site
2675fi
2676for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b0cacab0 2677do
57aa50d4 2678 test "x$ac_site_file" = xNONE && continue
61ef2474 2679 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
57aa50d4
TT
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2681$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2682 sed 's/^/| /' "$ac_site_file" >&5
d6a4bcb5
TB
2683 . "$ac_site_file" \
2684 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686as_fn_error $? "failed to load site script $ac_site_file
2687See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
2688 fi
2689done
b0cacab0 2690
57aa50d4 2691if test -r "$cache_file"; then
61ef2474
TT
2692 # Some versions of bash will fail to source /dev/null (special files
2693 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2694 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
57aa50d4
TT
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2696$as_echo "$as_me: loading cache $cache_file" >&6;}
2697 case $cache_file in
2698 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2699 *) . "./$cache_file";;
2700 esac
73ae2d4a 2701 fi
57aa50d4
TT
2702else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2704$as_echo "$as_me: creating cache $cache_file" >&6;}
2705 >$cache_file
73ae2d4a 2706fi
57aa50d4 2707
93613951 2708gt_needs="$gt_needs "
61ef2474
TT
2709as_fn_append ac_header_list " stdlib.h"
2710as_fn_append ac_header_list " unistd.h"
2711as_fn_append ac_header_list " sys/param.h"
93613951 2712as_fn_append ac_func_list " symlink"
57aa50d4
TT
2713# Check that the precious variables saved in the cache have kept the same
2714# value.
2715ac_cache_corrupted=false
2716for ac_var in $ac_precious_vars; do
2717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2718 eval ac_new_set=\$ac_env_${ac_var}_set
2719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2720 eval ac_new_val=\$ac_env_${ac_var}_value
2721 case $ac_old_set,$ac_new_set in
2722 set,)
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2724$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2725 ac_cache_corrupted=: ;;
2726 ,set)
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2728$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2729 ac_cache_corrupted=: ;;
2730 ,);;
2731 *)
2732 if test "x$ac_old_val" != "x$ac_new_val"; then
2733 # differences in whitespace do not lead to failure.
2734 ac_old_val_w=`echo x $ac_old_val`
2735 ac_new_val_w=`echo x $ac_new_val`
2736 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2738$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2739 ac_cache_corrupted=:
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2742$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2743 eval $ac_var=\$ac_old_val
2744 fi
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2746$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2748$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2749 fi;;
2750 esac
2751 # Pass precious variables to config.status.
2752 if test "$ac_new_set" = set; then
2753 case $ac_new_val in
2754 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2755 *) ac_arg=$ac_var=$ac_new_val ;;
2756 esac
2757 case " $ac_configure_args " in
2758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2759 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2760 esac
2761 fi
2762done
2763if $ac_cache_corrupted; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2767$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d6a4bcb5 2768 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
73ae2d4a 2769fi
57aa50d4
TT
2770## -------------------- ##
2771## Main body of script. ##
2772## -------------------- ##
2773
2774ac_ext=c
2775ac_cpp='$CPP $CPPFLAGS'
2776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
2780
2781
2782ac_aux_dir=
2783for ac_dir in config "$srcdir"/config; do
d6a4bcb5
TB
2784 if test -f "$ac_dir/install-sh"; then
2785 ac_aux_dir=$ac_dir
2786 ac_install_sh="$ac_aux_dir/install-sh -c"
2787 break
2788 elif test -f "$ac_dir/install.sh"; then
2789 ac_aux_dir=$ac_dir
2790 ac_install_sh="$ac_aux_dir/install.sh -c"
2791 break
2792 elif test -f "$ac_dir/shtool"; then
2793 ac_aux_dir=$ac_dir
2794 ac_install_sh="$ac_aux_dir/shtool install -c"
2795 break
2796 fi
57aa50d4
TT
2797done
2798if test -z "$ac_aux_dir"; then
d6a4bcb5 2799 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
73ae2d4a 2800fi
57aa50d4
TT
2801
2802# These three variables are undocumented and unsupported,
2803# and are intended to be withdrawn in a future Autoconf release.
2804# They can cause serious problems if a builder's source tree is in a directory
2805# whose full name contains unusual characters.
2806ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2807ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2808ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2809
2810
d1154eb4
TT
2811ac_config_headers="$ac_config_headers lib/config.h"
2812
2813
57aa50d4
TT
2814MCONFIG=./MCONFIG
2815
2816BINARY_TYPE=bin
2817E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2818 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
5ce368f0
DW
2819E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2820 | tr \" " " | awk '{print $1}'`
2821E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2822MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2823YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
57aa50d4
TT
2824
2825if expr $YEAR ">" 1900 > /dev/null ; then
2826 E2FSPROGS_YEAR=$YEAR
2827elif expr $YEAR ">" 90 >/dev/null ; then
2828 E2FSPROGS_YEAR=19$YEAR
73ae2d4a 2829else
57aa50d4
TT
2830 E2FSPROGS_YEAR=20$YEAR
2831fi
2832
2833case $MONTH in
2834Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2835Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2836Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2837Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2838May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2839Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2840Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2841Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2842Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2843Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2844Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2845Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2846*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2847$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2848esac
2849
2850base_ver=`echo $E2FSPROGS_VERSION | \
2851 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2852
2853date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2854
2855case $E2FSPROGS_VERSION in
2856*-WIP|pre-*)
2ab53829 2857 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
57aa50d4
TT
2858 ;;
2859*)
2860 E2FSPROGS_PKGVER="$base_ver"
2861 ;;
2862esac
2863
2864unset DATE MONTH YEAR base_ver pre_vers date_spec
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2866$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2868$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2869
2870
2871
2872
2873
5ce368f0 2874
6c59a665
TT
2875WITH_DIET_LIBC=
2876
2877# Check whether --with-diet-libc was given.
2878if test "${with_diet_libc+set}" = set; then :
2879 withval=$with_diet_libc; CC="diet cc -nostdinc"
2880WITH_DIET_LIBC=yes
2881if test -z "$LIBS"
2882then
2883 LIBS="-lcompat"
2884else
2885 LIBS="$LIBS -lcompat"
2886fi
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2888$as_echo "CC=$CC" >&6; }
2889fi
57aa50d4
TT
2890# Make sure we can run config.sub.
2891$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d6a4bcb5 2892 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
57aa50d4
TT
2893
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2895$as_echo_n "checking build system type... " >&6; }
d6a4bcb5 2896if ${ac_cv_build+:} false; then :
57aa50d4
TT
2897 $as_echo_n "(cached) " >&6
2898else
2899 ac_build_alias=$build_alias
2900test "x$ac_build_alias" = x &&
2901 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2902test "x$ac_build_alias" = x &&
d6a4bcb5 2903 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
57aa50d4 2904ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d6a4bcb5 2905 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
57aa50d4 2906
73ae2d4a 2907fi
57aa50d4
TT
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2909$as_echo "$ac_cv_build" >&6; }
2910case $ac_cv_build in
2911*-*-*) ;;
d6a4bcb5 2912*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
57aa50d4
TT
2913esac
2914build=$ac_cv_build
2915ac_save_IFS=$IFS; IFS='-'
2916set x $ac_cv_build
2917shift
2918build_cpu=$1
2919build_vendor=$2
2920shift; shift
2921# Remember, the first character of IFS is used to create $*,
2922# except with old shells:
2923build_os=$*
2924IFS=$ac_save_IFS
2925case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
73ae2d4a 2926
e1052144 2927
57aa50d4
TT
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2929$as_echo_n "checking host system type... " >&6; }
d6a4bcb5 2930if ${ac_cv_host+:} false; then :
57aa50d4
TT
2931 $as_echo_n "(cached) " >&6
2932else
2933 if test "x$host_alias" = x; then
2934 ac_cv_host=$ac_cv_build
2935else
2936 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d6a4bcb5 2937 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b0cacab0 2938fi
57aa50d4
TT
2939
2940fi
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2942$as_echo "$ac_cv_host" >&6; }
2943case $ac_cv_host in
2944*-*-*) ;;
d6a4bcb5 2945*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
57aa50d4
TT
2946esac
2947host=$ac_cv_host
2948ac_save_IFS=$IFS; IFS='-'
2949set x $ac_cv_host
2950shift
2951host_cpu=$1
2952host_vendor=$2
2953shift; shift
2954# Remember, the first character of IFS is used to create $*,
2955# except with old shells:
2956host_os=$*
2957IFS=$ac_save_IFS
2958case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2959
2960
2961DLOPEN_LIB=''
2962ac_ext=c
2963ac_cpp='$CPP $CPPFLAGS'
2964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967if test -n "$ac_tool_prefix"; then
2968 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2969set dummy ${ac_tool_prefix}gcc; ac_word=$2
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2971$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2972if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 2973 $as_echo_n "(cached) " >&6
73ae2d4a
TT
2974else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977else
b0cacab0
TT
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
57aa50d4 2983 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 2984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2985 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
2987 break 2
2988 fi
2989done
57aa50d4 2990 done
e1052144 2991IFS=$as_save_IFS
b0cacab0 2992
73ae2d4a
TT
2993fi
2994fi
b0cacab0 2995CC=$ac_cv_prog_CC
73ae2d4a 2996if test -n "$CC"; then
57aa50d4 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
39fd3d4f 2998$as_echo "$CC" >&6; }
73ae2d4a 2999else
57aa50d4 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 3001$as_echo "no" >&6; }
73ae2d4a 3002fi
b0cacab0 3003
e1052144 3004
b0cacab0 3005fi
57aa50d4 3006if test -z "$ac_cv_prog_CC"; then
b0cacab0 3007 ac_ct_CC=$CC
57aa50d4
TT
3008 # Extract the first word of "gcc", so it can be a program name with args.
3009set dummy gcc; ac_word=$2
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 3011$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3012if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 3013 $as_echo_n "(cached) " >&6
b0cacab0
TT
3014else
3015 if test -n "$ac_ct_CC"; then
3016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017else
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
57aa50d4 3023 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3025 ac_cv_prog_ac_ct_CC="gcc"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0 3027 break 2
93636bde 3028 fi
b0cacab0 3029done
57aa50d4 3030 done
e1052144 3031IFS=$as_save_IFS
b0cacab0
TT
3032
3033fi
3034fi
3035ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036if test -n "$ac_ct_CC"; then
57aa50d4 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
39fd3d4f 3038$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3039else
57aa50d4 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 3041$as_echo "no" >&6; }
07a0db15 3042fi
73ae2d4a 3043
e1052144
TT
3044 if test "x$ac_ct_CC" = x; then
3045 CC=""
3046 else
3047 case $cross_compiling:$ac_tool_warned in
3048yes:)
57aa50d4 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39fd3d4f 3050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
e1052144
TT
3051ac_tool_warned=yes ;;
3052esac
3053 CC=$ac_ct_CC
3054 fi
57aa50d4
TT
3055else
3056 CC="$ac_cv_prog_CC"
b0cacab0
TT
3057fi
3058
57aa50d4
TT
3059if test -z "$CC"; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3062set dummy ${ac_tool_prefix}cc; ac_word=$2
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3065if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3066 $as_echo_n "(cached) " >&6
3067else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3078 ac_cv_prog_CC="${ac_tool_prefix}cc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082done
3083 done
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091$as_echo "$CC" >&6; }
3092else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098 fi
3099fi
3100if test -z "$CC"; then
3101 # Extract the first word of "cc", so it can be a program name with args.
3102set dummy cc; ac_word=$2
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3105if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3106 $as_echo_n "(cached) " >&6
3107else
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3110else
3111 ac_prog_rejected=no
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3119 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3120 ac_prog_rejected=yes
3121 continue
3122 fi
3123 ac_cv_prog_CC="cc"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127done
3128 done
3129IFS=$as_save_IFS
3130
3131if test $ac_prog_rejected = yes; then
3132 # We found a bogon in the path, so make sure we never use it.
3133 set dummy $ac_cv_prog_CC
3134 shift
3135 if test $# != 0; then
3136 # We chose a different compiler from the bogus one.
3137 # However, it has the same basename, so the bogon will be chosen
3138 # first if we set CC to just the basename; use the full file name.
3139 shift
3140 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141 fi
3142fi
3143fi
3144fi
3145CC=$ac_cv_prog_CC
3146if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148$as_echo "$CC" >&6; }
3149else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154
3155fi
3156if test -z "$CC"; then
3157 if test -n "$ac_tool_prefix"; then
3158 for ac_prog in cl.exe
3159 do
3160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3164if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3165 $as_echo_n "(cached) " >&6
3166else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169else
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181done
3182 done
3183IFS=$as_save_IFS
3184
3185fi
3186fi
3187CC=$ac_cv_prog_CC
3188if test -n "$CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190$as_echo "$CC" >&6; }
3191else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193$as_echo "no" >&6; }
3194fi
3195
3196
3197 test -n "$CC" && break
3198 done
3199fi
3200if test -z "$CC"; then
3201 ac_ct_CC=$CC
3202 for ac_prog in cl.exe
3203do
3204 # Extract the first word of "$ac_prog", so it can be a program name with args.
3205set dummy $ac_prog; ac_word=$2
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3208if ${ac_cv_prog_ac_ct_CC+:} false; then :
57aa50d4
TT
3209 $as_echo_n "(cached) " >&6
3210else
3211 if test -n "$ac_ct_CC"; then
3212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213else
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH
3216do
3217 IFS=$as_save_IFS
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3221 ac_cv_prog_ac_ct_CC="$ac_prog"
3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 break 2
3224 fi
3225done
3226 done
3227IFS=$as_save_IFS
3228
3229fi
3230fi
3231ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232if test -n "$ac_ct_CC"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3234$as_echo "$ac_ct_CC" >&6; }
3235else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238fi
3239
3240
3241 test -n "$ac_ct_CC" && break
3242done
3243
3244 if test "x$ac_ct_CC" = x; then
3245 CC=""
3246 else
3247 case $cross_compiling:$ac_tool_warned in
3248yes:)
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251ac_tool_warned=yes ;;
3252esac
3253 CC=$ac_ct_CC
3254 fi
3255fi
3256
3257fi
3258
3259
3260test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3262as_fn_error $? "no acceptable C compiler found in \$PATH
3263See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
3264
3265# Provide some information about the compiler.
57aa50d4 3266$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
39fd3d4f
SJR
3267set X $ac_compile
3268ac_compiler=$2
57aa50d4
TT
3269for ac_option in --version -v -V -qversion; do
3270 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
3271case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
57aa50d4
TT
3275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276$as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 3278 ac_status=$?
57aa50d4
TT
3279 if test -s conftest.err; then
3280 sed '10a\
3281... rest of stderr output deleted ...
3282 10q' conftest.err >conftest.er1
3283 cat conftest.er1 >&5
57aa50d4 3284 fi
61ef2474 3285 rm -f conftest.er1 conftest.err
57aa50d4
TT
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }
3288done
b0cacab0 3289
57aa50d4 3290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3291/* end confdefs.h. */
61ef2474 3292
b0cacab0
TT
3293int
3294main ()
3295{
3296
3297 ;
3298 return 0;
3299}
3300_ACEOF
3301ac_clean_files_save=$ac_clean_files
61ef2474 3302ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b0cacab0
TT
3303# Try to create an executable without -o first, disregard a.out.
3304# It will help us diagnose broken compilers, and finding out an intuition
3305# of exeext.
61ef2474
TT
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3307$as_echo_n "checking whether the C compiler works... " >&6; }
39fd3d4f
SJR
3308ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309
3310# The possible output files:
3311ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3312
e1052144
TT
3313ac_rmfiles=
3314for ac_file in $ac_files
3315do
3316 case $ac_file in
39fd3d4f 3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
e1052144
TT
3318 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3319 esac
3320done
3321rm -f $ac_rmfiles
3322
57aa50d4 3323if { { ac_try="$ac_link_default"
e1052144
TT
3324case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
57aa50d4
TT
3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
e1052144 3330 (eval "$ac_link_default") 2>&5
b0cacab0 3331 ac_status=$?
57aa50d4
TT
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
e1052144
TT
3334 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3335# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3336# in a Makefile. We should not override ac_cv_exeext if it was cached,
3337# so that the user can short-circuit this test for compilers unknown to
3338# Autoconf.
29a5deed 3339for ac_file in $ac_files ''
b0cacab0
TT
3340do
3341 test -f "$ac_file" || continue
3342 case $ac_file in
39fd3d4f 3343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b0cacab0
TT
3344 ;;
3345 [ab].out )
3346 # We found the default executable, but exeext='' is most
3347 # certainly right.
3348 break;;
3349 *.* )
57aa50d4 3350 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
e1052144
TT
3351 then :; else
3352 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 fi
3354 # We set ac_cv_exeext here because the later test for it is not
3355 # safe: cross compilers may not add the suffix if given an `-o'
3356 # argument, so we may need to know it at that point already.
3357 # Even if this section looks crufty: it has the advantage of
3358 # actually working.
b0cacab0
TT
3359 break;;
3360 * )
3361 break;;
3362 esac
3363done
e1052144
TT
3364test "$ac_cv_exeext" = no && ac_cv_exeext=
3365
b0cacab0 3366else
29a5deed
TT
3367 ac_file=''
3368fi
57aa50d4 3369if test -z "$ac_file"; then :
61ef2474
TT
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371$as_echo "no" >&6; }
3372$as_echo "$as_me: failed program was:" >&5
b0cacab0
TT
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
57aa50d4 3375{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3377as_fn_error 77 "C compiler cannot create executables
3378See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3379else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381$as_echo "yes" >&6; }
b0cacab0 3382fi
61ef2474
TT
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3384$as_echo_n "checking for C compiler default output file name... " >&6; }
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3386$as_echo "$ac_file" >&6; }
b0cacab0 3387ac_exeext=$ac_cv_exeext
b0cacab0 3388
61ef2474 3389rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b0cacab0 3390ac_clean_files=$ac_clean_files_save
57aa50d4 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
39fd3d4f 3392$as_echo_n "checking for suffix of executables... " >&6; }
57aa50d4 3393if { { ac_try="$ac_link"
e1052144
TT
3394case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397esac
57aa50d4
TT
3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399$as_echo "$ac_try_echo"; } >&5
e1052144 3400 (eval "$ac_link") 2>&5
b0cacab0 3401 ac_status=$?
57aa50d4
TT
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
b0cacab0
TT
3404 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3405# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3406# work properly (i.e., refer to `conftest.exe'), while it won't with
3407# `rm'.
3408for ac_file in conftest.exe conftest conftest.*; do
3409 test -f "$ac_file" || continue
3410 case $ac_file in
39fd3d4f 3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b0cacab0 3412 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b0cacab0
TT
3413 break;;
3414 * ) break;;
3415 esac
3416done
73ae2d4a 3417else
57aa50d4 3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3420as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3421See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3422fi
61ef2474 3423rm -f conftest conftest$ac_cv_exeext
57aa50d4 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
39fd3d4f 3425$as_echo "$ac_cv_exeext" >&6; }
73ae2d4a 3426
b0cacab0
TT
3427rm -f conftest.$ac_ext
3428EXEEXT=$ac_cv_exeext
3429ac_exeext=$EXEEXT
61ef2474
TT
3430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h. */
3432#include <stdio.h>
3433int
3434main ()
3435{
3436FILE *f = fopen ("conftest.out", "w");
3437 return ferror (f) || fclose (f) != 0;
3438
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443ac_clean_files="$ac_clean_files conftest.out"
3444# Check that the compiler produces executables we can run. If not, either
3445# the compiler is broken, or we cross compile.
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3447$as_echo_n "checking whether we are cross compiling... " >&6; }
3448if test "$cross_compiling" != yes; then
3449 { { ac_try="$ac_link"
3450case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453esac
3454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455$as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_link") 2>&5
3457 ac_status=$?
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3460 if { ac_try='./conftest$ac_cv_exeext'
3461 { { case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464esac
3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466$as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_try") 2>&5
3468 ac_status=$?
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; }; then
3471 cross_compiling=no
3472 else
3473 if test "$cross_compiling" = maybe; then
3474 cross_compiling=yes
3475 else
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5 3478as_fn_error $? "cannot run C compiled programs.
61ef2474 3479If you meant to cross compile, use \`--host'.
d6a4bcb5 3480See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3481 fi
3482 fi
3483fi
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3485$as_echo "$cross_compiling" >&6; }
3486
3487rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3488ac_clean_files=$ac_clean_files_save
57aa50d4 3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
39fd3d4f 3490$as_echo_n "checking for suffix of object files... " >&6; }
d6a4bcb5 3491if ${ac_cv_objext+:} false; then :
39fd3d4f 3492 $as_echo_n "(cached) " >&6
73ae2d4a 3493else
57aa50d4 3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3495/* end confdefs.h. */
07a0db15 3496
b0cacab0
TT
3497int
3498main ()
3499{
07a0db15 3500
b0cacab0
TT
3501 ;
3502 return 0;
3503}
3504_ACEOF
3505rm -f conftest.o conftest.obj
57aa50d4 3506if { { ac_try="$ac_compile"
e1052144
TT
3507case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510esac
57aa50d4
TT
3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512$as_echo "$ac_try_echo"; } >&5
e1052144 3513 (eval "$ac_compile") 2>&5
b0cacab0 3514 ac_status=$?
57aa50d4
TT
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
e1052144
TT
3517 for ac_file in conftest.o conftest.obj conftest.*; do
3518 test -f "$ac_file" || continue;
b0cacab0 3519 case $ac_file in
39fd3d4f 3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b0cacab0
TT
3521 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3522 break;;
3523 esac
3524done
93636bde 3525else
39fd3d4f 3526 $as_echo "$as_me: failed program was:" >&5
b0cacab0 3527sed 's/^/| /' conftest.$ac_ext >&5
07a0db15 3528
57aa50d4 3529{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3531as_fn_error $? "cannot compute suffix of object files: cannot compile
3532See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3533fi
b0cacab0 3534rm -f conftest.$ac_cv_objext conftest.$ac_ext
73ae2d4a 3535fi
57aa50d4 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
39fd3d4f 3537$as_echo "$ac_cv_objext" >&6; }
b0cacab0
TT
3538OBJEXT=$ac_cv_objext
3539ac_objext=$OBJEXT
57aa50d4 3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
39fd3d4f 3541$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 3542if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 3543 $as_echo_n "(cached) " >&6
b0cacab0 3544else
57aa50d4 3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3546/* end confdefs.h. */
3547
3548int
3549main ()
3550{
3551#ifndef __GNUC__
3552 choke me
3553#endif
3554
3555 ;
3556 return 0;
3557}
3558_ACEOF
57aa50d4 3559if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0
TT
3560 ac_compiler_gnu=yes
3561else
57aa50d4 3562 ac_compiler_gnu=no
b0cacab0 3563fi
e1052144 3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0
TT
3565ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566
3567fi
57aa50d4 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
39fd3d4f
SJR
3569$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3570if test $ac_compiler_gnu = yes; then
3571 GCC=yes
3572else
3573 GCC=
3574fi
b0cacab0
TT
3575ac_test_CFLAGS=${CFLAGS+set}
3576ac_save_CFLAGS=$CFLAGS
57aa50d4 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
39fd3d4f 3578$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 3579if ${ac_cv_prog_cc_g+:} false; then :
39fd3d4f 3580 $as_echo_n "(cached) " >&6
b0cacab0 3581else
e1052144
TT
3582 ac_save_c_werror_flag=$ac_c_werror_flag
3583 ac_c_werror_flag=yes
3584 ac_cv_prog_cc_g=no
3585 CFLAGS="-g"
57aa50d4 3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3587/* end confdefs.h. */
3588
3589int
3590main ()
3591{
3592
3593 ;
3594 return 0;
3595}
3596_ACEOF
57aa50d4 3597if ac_fn_c_try_compile "$LINENO"; then :
e1052144
TT
3598 ac_cv_prog_cc_g=yes
3599else
57aa50d4
TT
3600 CFLAGS=""
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3602/* end confdefs.h. */
3603
3604int
3605main ()
3606{
3607
3608 ;
3609 return 0;
3610}
3611_ACEOF
57aa50d4 3612if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3613
57aa50d4
TT
3614else
3615 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 3616 CFLAGS="-g"
57aa50d4 3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3618/* end confdefs.h. */
3619
3620int
3621main ()
3622{
3623
3624 ;
3625 return 0;
3626}
3627_ACEOF
57aa50d4 3628if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0 3629 ac_cv_prog_cc_g=yes
e1052144 3630fi
e1052144
TT
3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632fi
e1052144 3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0 3634fi
e1052144
TT
3635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 ac_c_werror_flag=$ac_save_c_werror_flag
b0cacab0 3637fi
57aa50d4 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
39fd3d4f 3639$as_echo "$ac_cv_prog_cc_g" >&6; }
b0cacab0
TT
3640if test "$ac_test_CFLAGS" = set; then
3641 CFLAGS=$ac_save_CFLAGS
3642elif test $ac_cv_prog_cc_g = yes; then
3643 if test "$GCC" = yes; then
3644 CFLAGS="-g -O2"
3645 else
3646 CFLAGS="-g"
3647 fi
73ae2d4a
TT
3648else
3649 if test "$GCC" = yes; then
3650 CFLAGS="-O2"
3651 else
3652 CFLAGS=
3653 fi
3654fi
57aa50d4 3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
39fd3d4f 3656$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 3657if ${ac_cv_prog_cc_c89+:} false; then :
39fd3d4f 3658 $as_echo_n "(cached) " >&6
b0cacab0 3659else
e1052144 3660 ac_cv_prog_cc_c89=no
b0cacab0 3661ac_save_CC=$CC
57aa50d4 3662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3663/* end confdefs.h. */
3664#include <stdarg.h>
3665#include <stdio.h>
d6a4bcb5 3666struct stat;
b0cacab0
TT
3667/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3668struct buf { int x; };
3669FILE * (*rcsopen) (struct buf *, struct stat *, int);
3670static char *e (p, i)
3671 char **p;
3672 int i;
3673{
3674 return p[i];
3675}
3676static char *f (char * (*g) (char **, int), char **p, ...)
3677{
3678 char *s;
3679 va_list v;
3680 va_start (v,p);
3681 s = g (p, va_arg (v,int));
3682 va_end (v);
3683 return s;
3684}
3685
3686/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3687 function prototypes and stuff, but not '\xHH' hex character constants.
3688 These don't provoke an error unfortunately, instead are silently treated
e1052144 3689 as 'x'. The following induces an error, until -std is added to get
b0cacab0
TT
3690 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3691 array size at least. It's necessary to write '\x00'==0 to get something
e1052144 3692 that's true only with -std. */
b0cacab0
TT
3693int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3694
e1052144
TT
3695/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696 inside strings and character constants. */
3697#define FOO(x) 'x'
3698int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3699
b0cacab0
TT
3700int test (int i, double x);
3701struct s1 {int (*f) (int a);};
3702struct s2 {int (*f) (double a);};
3703int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704int argc;
3705char **argv;
3706int
3707main ()
3708{
3709return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3710 ;
3711 return 0;
3712}
3713_ACEOF
e1052144
TT
3714for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b0cacab0
TT
3716do
3717 CC="$ac_save_CC $ac_arg"
57aa50d4 3718 if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3719 ac_cv_prog_cc_c89=$ac_arg
b0cacab0 3720fi
e1052144
TT
3721rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c89" != "xno" && break
b0cacab0 3723done
e1052144 3724rm -f conftest.$ac_ext
b0cacab0
TT
3725CC=$ac_save_CC
3726
3727fi
e1052144
TT
3728# AC_CACHE_VAL
3729case "x$ac_cv_prog_cc_c89" in
3730 x)
57aa50d4 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
39fd3d4f 3732$as_echo "none needed" >&6; } ;;
e1052144 3733 xno)
57aa50d4 3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
39fd3d4f 3735$as_echo "unsupported" >&6; } ;;
b0cacab0 3736 *)
e1052144 3737 CC="$CC $ac_cv_prog_cc_c89"
57aa50d4 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
39fd3d4f 3739$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b0cacab0 3740esac
57aa50d4 3741if test "x$ac_cv_prog_cc_c89" != xno; then :
b0cacab0 3742
57aa50d4 3743fi
b0cacab0 3744
b0cacab0
TT
3745ac_ext=c
3746ac_cpp='$CPP $CPPFLAGS'
3747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750
57aa50d4
TT
3751
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3753$as_echo_n "checking for dlopen in -ldl... " >&6; }
d6a4bcb5 3754if ${ac_cv_lib_dl_dlopen+:} false; then :
39fd3d4f 3755 $as_echo_n "(cached) " >&6
b0cacab0 3756else
57aa50d4
TT
3757 ac_check_lib_save_LIBS=$LIBS
3758LIBS="-ldl $LIBS"
3759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3760/* end confdefs.h. */
57aa50d4
TT
3761
3762/* Override any GCC internal prototype to avoid an error.
3763 Use char because int might match the return type of a GCC
3764 builtin and then its argument prototype would still apply. */
3765#ifdef __cplusplus
3766extern "C"
b0cacab0 3767#endif
57aa50d4
TT
3768char dlopen ();
3769int
3770main ()
3771{
3772return dlopen ();
3773 ;
3774 return 0;
3775}
b0cacab0 3776_ACEOF
57aa50d4
TT
3777if ac_fn_c_try_link "$LINENO"; then :
3778 ac_cv_lib_dl_dlopen=yes
b0cacab0 3779else
57aa50d4 3780 ac_cv_lib_dl_dlopen=no
b0cacab0 3781fi
57aa50d4
TT
3782rm -f core conftest.err conftest.$ac_objext \
3783 conftest$ac_exeext conftest.$ac_ext
3784LIBS=$ac_check_lib_save_LIBS
b0cacab0 3785fi
57aa50d4
TT
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3787$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d6a4bcb5 3788if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
57aa50d4 3789 DLOPEN_LIB=-ldl
b0cacab0
TT
3790fi
3791
b0cacab0 3792
e1052144 3793
57aa50d4
TT
3794# Check whether --with-cc was given.
3795if test "${with_cc+set}" = set; then :
d6a4bcb5 3796 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
57aa50d4 3797fi
b0cacab0 3798
b0cacab0 3799
57aa50d4
TT
3800# Check whether --with-ccopts was given.
3801if test "${with_ccopts+set}" = set; then :
d6a4bcb5 3802 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
b0cacab0 3803fi
e1052144 3804
b0cacab0 3805
57aa50d4
TT
3806# Check whether --with-ldopts was given.
3807if test "${with_ldopts+set}" = set; then :
d6a4bcb5 3808 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
b0cacab0
TT
3809fi
3810
3811ac_ext=c
3812ac_cpp='$CPP $CPPFLAGS'
3813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815ac_compiler_gnu=$ac_cv_c_compiler_gnu
57aa50d4
TT
3816if test -n "$ac_tool_prefix"; then
3817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3818set dummy ${ac_tool_prefix}gcc; ac_word=$2
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3821if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 3822 $as_echo_n "(cached) " >&6
e1052144 3823else
57aa50d4
TT
3824 if test -n "$CC"; then
3825 ac_cv_prog_CC="$CC" # Let the user override the test.
3826else
3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828for as_dir in $PATH
e1052144
TT
3829do
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
39fd3d4f 3832 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 break 2
3837 fi
e1052144 3838done
57aa50d4 3839 done
e1052144 3840IFS=$as_save_IFS
e1052144 3841
e1052144 3842fi
57aa50d4
TT
3843fi
3844CC=$ac_cv_prog_CC
3845if test -n "$CC"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3847$as_echo "$CC" >&6; }
3848else
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850$as_echo "no" >&6; }
3851fi
e1052144
TT
3852
3853
57aa50d4
TT
3854fi
3855if test -z "$ac_cv_prog_CC"; then
3856 ac_ct_CC=$CC
3857 # Extract the first word of "gcc", so it can be a program name with args.
3858set dummy gcc; ac_word=$2
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3861if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 3862 $as_echo_n "(cached) " >&6
e1052144 3863else
57aa50d4
TT
3864 if test -n "$ac_ct_CC"; then
3865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3866else
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
e1052144
TT
3869do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
39fd3d4f 3872 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3874 ac_cv_prog_ac_ct_CC="gcc"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3877 fi
e1052144 3878done
57aa50d4 3879 done
e1052144 3880IFS=$as_save_IFS
b0cacab0 3881
e1052144 3882fi
57aa50d4
TT
3883fi
3884ac_ct_CC=$ac_cv_prog_ac_ct_CC
3885if test -n "$ac_ct_CC"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3887$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3888else
57aa50d4
TT
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890$as_echo "no" >&6; }
3891fi
b0cacab0 3892
57aa50d4
TT
3893 if test "x$ac_ct_CC" = x; then
3894 CC=""
3895 else
3896 case $cross_compiling:$ac_tool_warned in
3897yes:)
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3900ac_tool_warned=yes ;;
e1052144 3901esac
57aa50d4
TT
3902 CC=$ac_ct_CC
3903 fi
b0cacab0 3904else
57aa50d4 3905 CC="$ac_cv_prog_CC"
b0cacab0 3906fi
e1052144 3907
57aa50d4
TT
3908if test -z "$CC"; then
3909 if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3911set dummy ${ac_tool_prefix}cc; ac_word=$2
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3914if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3915 $as_echo_n "(cached) " >&6
a64c9c13 3916else
57aa50d4
TT
3917 if test -n "$CC"; then
3918 ac_cv_prog_CC="$CC" # Let the user override the test.
3919else
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3927 ac_cv_prog_CC="${ac_tool_prefix}cc"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 break 2
3930 fi
3931done
3932 done
3933IFS=$as_save_IFS
b0cacab0 3934
a64c9c13 3935fi
57aa50d4
TT
3936fi
3937CC=$ac_cv_prog_CC
3938if test -n "$CC"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3940$as_echo "$CC" >&6; }
b0cacab0 3941else
57aa50d4
TT
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943$as_echo "no" >&6; }
a64c9c13 3944fi
b0cacab0 3945
b0cacab0 3946
57aa50d4
TT
3947 fi
3948fi
3949if test -z "$CC"; then
3950 # Extract the first word of "cc", so it can be a program name with args.
3951set dummy cc; ac_word=$2
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3954if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3955 $as_echo_n "(cached) " >&6
a64c9c13 3956else
57aa50d4
TT
3957 if test -n "$CC"; then
3958 ac_cv_prog_CC="$CC" # Let the user override the test.
a64c9c13 3959else
57aa50d4
TT
3960 ac_prog_rejected=no
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3969 ac_prog_rejected=yes
3970 continue
3971 fi
3972 ac_cv_prog_CC="cc"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 break 2
3975 fi
3976done
3977 done
3978IFS=$as_save_IFS
b0cacab0 3979
57aa50d4
TT
3980if test $ac_prog_rejected = yes; then
3981 # We found a bogon in the path, so make sure we never use it.
3982 set dummy $ac_cv_prog_CC
3983 shift
3984 if test $# != 0; then
3985 # We chose a different compiler from the bogus one.
3986 # However, it has the same basename, so the bogon will be chosen
3987 # first if we set CC to just the basename; use the full file name.
3988 shift
3989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3990 fi
b0cacab0 3991fi
b0cacab0
TT
3992fi
3993fi
57aa50d4
TT
3994CC=$ac_cv_prog_CC
3995if test -n "$CC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3997$as_echo "$CC" >&6; }
3998else
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000$as_echo "no" >&6; }
b0cacab0 4001fi
b0cacab0 4002
b0cacab0
TT
4003
4004fi
57aa50d4
TT
4005if test -z "$CC"; then
4006 if test -n "$ac_tool_prefix"; then
4007 for ac_prog in cl.exe
4008 do
4009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4010set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 4013if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
4014 $as_echo_n "(cached) " >&6
4015else
4016 if test -n "$CC"; then
4017 ac_cv_prog_CC="$CC" # Let the user override the test.
4018else
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 4025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
4026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 break 2
4029 fi
4030done
4031 done
4032IFS=$as_save_IFS
b0cacab0 4033
57aa50d4
TT
4034fi
4035fi
4036CC=$ac_cv_prog_CC
4037if test -n "$CC"; then
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4039$as_echo "$CC" >&6; }
4040else
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042$as_echo "no" >&6; }
4043fi
b0cacab0
TT
4044
4045
57aa50d4
TT
4046 test -n "$CC" && break
4047 done
4048fi
4049if test -z "$CC"; then
4050 ac_ct_CC=$CC
4051 for ac_prog in cl.exe
b0cacab0 4052do
57aa50d4
TT
4053 # Extract the first word of "$ac_prog", so it can be a program name with args.
4054set dummy $ac_prog; ac_word=$2
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 4057if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 4058 $as_echo_n "(cached) " >&6
b0cacab0 4059else
57aa50d4
TT
4060 if test -n "$ac_ct_CC"; then
4061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b0cacab0 4062else
57aa50d4
TT
4063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH
4065do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
4070 ac_cv_prog_ac_ct_CC="$ac_prog"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4073 fi
4074done
4075 done
4076IFS=$as_save_IFS
b0cacab0 4077
b0cacab0 4078fi
b0cacab0 4079fi
57aa50d4
TT
4080ac_ct_CC=$ac_cv_prog_ac_ct_CC
4081if test -n "$ac_ct_CC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4083$as_echo "$ac_ct_CC" >&6; }
4084else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086$as_echo "no" >&6; }
b0cacab0
TT
4087fi
4088
b0cacab0 4089
57aa50d4
TT
4090 test -n "$ac_ct_CC" && break
4091done
b0cacab0 4092
57aa50d4
TT
4093 if test "x$ac_ct_CC" = x; then
4094 CC=""
4095 else
4096 case $cross_compiling:$ac_tool_warned in
4097yes:)
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4100ac_tool_warned=yes ;;
e1052144 4101esac
57aa50d4
TT
4102 CC=$ac_ct_CC
4103 fi
4104fi
b0cacab0 4105
b0cacab0 4106fi
e1052144 4107
b0cacab0 4108
57aa50d4
TT
4109test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4111as_fn_error $? "no acceptable C compiler found in \$PATH
4112See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
4113
4114# Provide some information about the compiler.
4115$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4116set X $ac_compile
4117ac_compiler=$2
4118for ac_option in --version -v -V -qversion; do
4119 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
4120case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123esac
57aa50d4
TT
4124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125$as_echo "$ac_try_echo"; } >&5
4126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 4127 ac_status=$?
57aa50d4
TT
4128 if test -s conftest.err; then
4129 sed '10a\
4130... rest of stderr output deleted ...
4131 10q' conftest.err >conftest.er1
4132 cat conftest.er1 >&5
57aa50d4 4133 fi
61ef2474 4134 rm -f conftest.er1 conftest.err
57aa50d4
TT
4135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136 test $ac_status = 0; }
4137done
e1052144 4138
57aa50d4
TT
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4140$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 4141if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 4142 $as_echo_n "(cached) " >&6
b0cacab0 4143else
57aa50d4
TT
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h. */
b0cacab0 4146
57aa50d4
TT
4147int
4148main ()
4149{
4150#ifndef __GNUC__
4151 choke me
4152#endif
a64c9c13 4153
57aa50d4
TT
4154 ;
4155 return 0;
4156}
4157_ACEOF
4158if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_compiler_gnu=yes
b1c92f91 4160else
57aa50d4 4161 ac_compiler_gnu=no
b1c92f91 4162fi
57aa50d4
TT
4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164ac_cv_c_compiler_gnu=$ac_compiler_gnu
b0cacab0 4165
e1052144 4166fi
57aa50d4
TT
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4168$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4169if test $ac_compiler_gnu = yes; then
4170 GCC=yes
98919bdb 4171else
57aa50d4 4172 GCC=
98919bdb 4173fi
57aa50d4
TT
4174ac_test_CFLAGS=${CFLAGS+set}
4175ac_save_CFLAGS=$CFLAGS
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4177$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 4178if ${ac_cv_prog_cc_g+:} false; then :
57aa50d4 4179 $as_echo_n "(cached) " >&6
98919bdb 4180else
57aa50d4
TT
4181 ac_save_c_werror_flag=$ac_c_werror_flag
4182 ac_c_werror_flag=yes
4183 ac_cv_prog_cc_g=no
4184 CFLAGS="-g"
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h. */
e1052144 4187
57aa50d4
TT
4188int
4189main ()
4190{
98919bdb 4191
57aa50d4
TT
4192 ;
4193 return 0;
4194}
4195_ACEOF
4196if ac_fn_c_try_compile "$LINENO"; then :
4197 ac_cv_prog_cc_g=yes
c13351f6 4198else
57aa50d4
TT
4199 CFLAGS=""
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201/* end confdefs.h. */
c13351f6 4202
57aa50d4
TT
4203int
4204main ()
4205{
c13351f6 4206
57aa50d4
TT
4207 ;
4208 return 0;
4209}
4210_ACEOF
4211if ac_fn_c_try_compile "$LINENO"; then :
c13351f6 4212
57aa50d4
TT
4213else
4214 ac_c_werror_flag=$ac_save_c_werror_flag
4215 CFLAGS="-g"
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217/* end confdefs.h. */
c13351f6 4218
57aa50d4
TT
4219int
4220main ()
4221{
c13351f6 4222
57aa50d4
TT
4223 ;
4224 return 0;
4225}
b0cacab0 4226_ACEOF
57aa50d4
TT
4227if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv_prog_cc_g=yes
1917875f 4229fi
57aa50d4 4230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e1052144 4231fi
57aa50d4 4232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdc9985 4233fi
57aa50d4
TT
4234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 4236fi
57aa50d4
TT
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4238$as_echo "$ac_cv_prog_cc_g" >&6; }
4239if test "$ac_test_CFLAGS" = set; then
4240 CFLAGS=$ac_save_CFLAGS
4241elif test $ac_cv_prog_cc_g = yes; then
4242 if test "$GCC" = yes; then
4243 CFLAGS="-g -O2"
4244 else
4245 CFLAGS="-g"
4246 fi
a64c9c13 4247else
57aa50d4
TT
4248 if test "$GCC" = yes; then
4249 CFLAGS="-O2"
4250 else
4251 CFLAGS=
4252 fi
a64c9c13 4253fi
57aa50d4
TT
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4255$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 4256if ${ac_cv_prog_cc_c89+:} false; then :
57aa50d4 4257 $as_echo_n "(cached) " >&6
a64c9c13 4258else
57aa50d4
TT
4259 ac_cv_prog_cc_c89=no
4260ac_save_CC=$CC
4261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h. */
4263#include <stdarg.h>
4264#include <stdio.h>
d6a4bcb5 4265struct stat;
57aa50d4
TT
4266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4267struct buf { int x; };
4268FILE * (*rcsopen) (struct buf *, struct stat *, int);
4269static char *e (p, i)
4270 char **p;
4271 int i;
4272{
4273 return p[i];
4274}
4275static char *f (char * (*g) (char **, int), char **p, ...)
4276{
4277 char *s;
4278 va_list v;
4279 va_start (v,p);
4280 s = g (p, va_arg (v,int));
4281 va_end (v);
4282 return s;
4283}
e1052144 4284
57aa50d4
TT
4285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4286 function prototypes and stuff, but not '\xHH' hex character constants.
4287 These don't provoke an error unfortunately, instead are silently treated
4288 as 'x'. The following induces an error, until -std is added to get
4289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4290 array size at least. It's necessary to write '\x00'==0 to get something
4291 that's true only with -std. */
4292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
93636bde 4293
57aa50d4
TT
4294/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4295 inside strings and character constants. */
4296#define FOO(x) 'x'
4297int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
a64c9c13 4298
57aa50d4
TT
4299int test (int i, double x);
4300struct s1 {int (*f) (int a);};
4301struct s2 {int (*f) (double a);};
4302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4303int argc;
4304char **argv;
4305int
4306main ()
4307{
4308return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4309 ;
4310 return 0;
4311}
4312_ACEOF
4313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4315do
4316 CC="$ac_save_CC $ac_arg"
4317 if ac_fn_c_try_compile "$LINENO"; then :
4318 ac_cv_prog_cc_c89=$ac_arg
a64c9c13 4319fi
57aa50d4
TT
4320rm -f core conftest.err conftest.$ac_objext
4321 test "x$ac_cv_prog_cc_c89" != "xno" && break
4322done
4323rm -f conftest.$ac_ext
4324CC=$ac_save_CC
a64c9c13 4325
57aa50d4
TT
4326fi
4327# AC_CACHE_VAL
4328case "x$ac_cv_prog_cc_c89" in
4329 x)
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4331$as_echo "none needed" >&6; } ;;
4332 xno)
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4334$as_echo "unsupported" >&6; } ;;
4335 *)
4336 CC="$CC $ac_cv_prog_cc_c89"
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4338$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4339esac
4340if test "x$ac_cv_prog_cc_c89" != xno; then :
a64c9c13 4341
e1052144
TT
4342fi
4343
57aa50d4
TT
4344ac_ext=c
4345ac_cpp='$CPP $CPPFLAGS'
4346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348ac_compiler_gnu=$ac_cv_c_compiler_gnu
93636bde 4349
9b3018a8
TT
4350if test "$GCC" = yes; then
4351 RDYNAMIC="-rdynamic"
4352
4353fi
57aa50d4
TT
4354ac_ext=c
4355ac_cpp='$CPP $CPPFLAGS'
4356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358ac_compiler_gnu=$ac_cv_c_compiler_gnu
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4360$as_echo_n "checking how to run the C preprocessor... " >&6; }
4361# On Suns, sometimes $CPP names a directory.
4362if test -n "$CPP" && test -d "$CPP"; then
4363 CPP=
4364fi
4365if test -z "$CPP"; then
d6a4bcb5 4366 if ${ac_cv_prog_CPP+:} false; then :
57aa50d4
TT
4367 $as_echo_n "(cached) " >&6
4368else
4369 # Double quotes because CPP needs to be expanded
4370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4371 do
4372 ac_preproc_ok=false
4373for ac_c_preproc_warn_flag in '' yes
4374do
4375 # Use a header file that comes with gcc, so configuring glibc
4376 # with a fresh cross-compiler works.
4377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4378 # <limits.h> exists even on freestanding compilers.
4379 # On the NeXT, cc -E runs the code through the compiler's parser,
4380 # not just through cpp. "Syntax error" is here to catch this case.
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382/* end confdefs.h. */
4383#ifdef __STDC__
4384# include <limits.h>
4385#else
4386# include <assert.h>
4387#endif
4388 Syntax error
4389_ACEOF
4390if ac_fn_c_try_cpp "$LINENO"; then :
a64c9c13 4391
cdf186e4 4392else
57aa50d4
TT
4393 # Broken: fails on valid input.
4394continue
cdf186e4 4395fi
d6a4bcb5 4396rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4397
57aa50d4
TT
4398 # OK, works on sane cases. Now check whether nonexistent headers
4399 # can be detected and how.
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h. */
4402#include <ac_nonexistent.h>
4403_ACEOF
4404if ac_fn_c_try_cpp "$LINENO"; then :
4405 # Broken: success on invalid input.
4406continue
cdf186e4 4407else
57aa50d4
TT
4408 # Passes both tests.
4409ac_preproc_ok=:
4410break
4411fi
d6a4bcb5 4412rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4413
57aa50d4
TT
4414done
4415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4416rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4
TT
4417if $ac_preproc_ok; then :
4418 break
e1052144
TT
4419fi
4420
57aa50d4
TT
4421 done
4422 ac_cv_prog_CPP=$CPP
93636bde 4423
cdf186e4 4424fi
57aa50d4 4425 CPP=$ac_cv_prog_CPP
cdf186e4 4426else
57aa50d4 4427 ac_cv_prog_CPP=$CPP
e1052144 4428fi
57aa50d4
TT
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4430$as_echo "$CPP" >&6; }
4431ac_preproc_ok=false
4432for ac_c_preproc_warn_flag in '' yes
4433do
4434 # Use a header file that comes with gcc, so configuring glibc
4435 # with a fresh cross-compiler works.
4436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4437 # <limits.h> exists even on freestanding compilers.
4438 # On the NeXT, cc -E runs the code through the compiler's parser,
4439 # not just through cpp. "Syntax error" is here to catch this case.
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441/* end confdefs.h. */
4442#ifdef __STDC__
4443# include <limits.h>
4444#else
4445# include <assert.h>
4446#endif
4447 Syntax error
b0cacab0 4448_ACEOF
57aa50d4 4449if ac_fn_c_try_cpp "$LINENO"; then :
80bfaa3e
TT
4450
4451else
57aa50d4
TT
4452 # Broken: fails on valid input.
4453continue
e1052144 4454fi
d6a4bcb5 4455rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4456
57aa50d4
TT
4457 # OK, works on sane cases. Now check whether nonexistent headers
4458 # can be detected and how.
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460/* end confdefs.h. */
4461#include <ac_nonexistent.h>
b0cacab0 4462_ACEOF
57aa50d4
TT
4463if ac_fn_c_try_cpp "$LINENO"; then :
4464 # Broken: success on invalid input.
4465continue
f0a22d0f 4466else
57aa50d4
TT
4467 # Passes both tests.
4468ac_preproc_ok=:
4469break
e1052144 4470fi
d6a4bcb5 4471rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4472
57aa50d4
TT
4473done
4474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4475rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4 4476if $ac_preproc_ok; then :
2a29f135
TT
4477
4478else
57aa50d4
TT
4479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4481as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4482See \`config.log' for more details" "$LINENO" 5; }
e1052144
TT
4483fi
4484
57aa50d4
TT
4485ac_ext=c
4486ac_cpp='$CPP $CPPFLAGS'
4487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489ac_compiler_gnu=$ac_cv_c_compiler_gnu
af773654 4490
57aa50d4
TT
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4492$as_echo_n "checking for additional special compiler flags... " >&6; }
4493if test "$GCC" = yes
4494then
4495 case "$host_cpu" in
4496 alpha) addcflags="-mieee" ;;
4497 esac
14b596d4 4498fi
57aa50d4
TT
4499if test "x$addcflags" != x
4500then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4502$as_echo "$addcflags" >&6; }
4503 CFLAGS="$addcflags $CFLAGS"
14b596d4 4504else
57aa50d4
TT
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4506$as_echo "(none)" >&6; }
14b596d4
TT
4507fi
4508
93613951
TT
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4510$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4511if ${ac_cv_path_GREP+:} false; then :
4512 $as_echo_n "(cached) " >&6
57aa50d4 4513else
93613951
TT
4514 if test -z "$GREP"; then
4515 ac_path_GREP_found=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_prog in grep ggrep; do
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4525 as_fn_executable_p "$ac_path_GREP" || continue
4526# Check for GNU ac_path_GREP and select it if it is found.
4527 # Check for GNU $ac_path_GREP
4528case `"$ac_path_GREP" --version 2>&1` in
4529*GNU*)
4530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4531*)
4532 ac_count=0
4533 $as_echo_n 0123456789 >"conftest.in"
4534 while :
4535 do
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 $as_echo 'GREP' >> "conftest.nl"
4540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542 as_fn_arith $ac_count + 1 && ac_count=$as_val
4543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_GREP="$ac_path_GREP"
4546 ac_path_GREP_max=$ac_count
4547 fi
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4550 done
4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552esac
14b596d4 4553
93613951
TT
4554 $ac_path_GREP_found && break 3
4555 done
4556 done
4557 done
4558IFS=$as_save_IFS
4559 if test -z "$ac_cv_path_GREP"; then
4560 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4561 fi
57aa50d4 4562else
93613951
TT
4563 ac_cv_path_GREP=$GREP
4564fi
57aa50d4 4565
14b596d4 4566fi
93613951
TT
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4568$as_echo "$ac_cv_path_GREP" >&6; }
4569 GREP="$ac_cv_path_GREP"
14b596d4 4570
14b596d4 4571
93613951
TT
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4573$as_echo_n "checking for egrep... " >&6; }
4574if ${ac_cv_path_EGREP+:} false; then :
4575 $as_echo_n "(cached) " >&6
5aa6c3f6 4576else
93613951
TT
4577 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4578 then ac_cv_path_EGREP="$GREP -E"
4579 else
4580 if test -z "$EGREP"; then
4581 ac_path_EGREP_found=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4585do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_prog in egrep; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4591 as_fn_executable_p "$ac_path_EGREP" || continue
4592# Check for GNU ac_path_EGREP and select it if it is found.
4593 # Check for GNU $ac_path_EGREP
4594case `"$ac_path_EGREP" --version 2>&1` in
4595*GNU*)
4596 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4597*)
4598 ac_count=0
4599 $as_echo_n 0123456789 >"conftest.in"
4600 while :
4601 do
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 $as_echo 'EGREP' >> "conftest.nl"
4606 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608 as_fn_arith $ac_count + 1 && ac_count=$as_val
4609 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_EGREP="$ac_path_EGREP"
4612 ac_path_EGREP_max=$ac_count
4613 fi
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4616 done
4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618esac
5aa6c3f6 4619
93613951
TT
4620 $ac_path_EGREP_found && break 3
4621 done
4622 done
4623 done
4624IFS=$as_save_IFS
4625 if test -z "$ac_cv_path_EGREP"; then
4626 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4627 fi
5aa6c3f6 4628else
93613951
TT
4629 ac_cv_path_EGREP=$EGREP
4630fi
183c73b0 4631
93613951 4632 fi
183c73b0 4633fi
93613951
TT
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4635$as_echo "$ac_cv_path_EGREP" >&6; }
4636 EGREP="$ac_cv_path_EGREP"
183c73b0
TT
4637
4638
93613951
TT
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4640$as_echo_n "checking for ANSI C header files... " >&6; }
4641if ${ac_cv_header_stdc+:} false; then :
4642 $as_echo_n "(cached) " >&6
91d11da1 4643else
93613951
TT
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645/* end confdefs.h. */
4646#include <stdlib.h>
4647#include <stdarg.h>
4648#include <string.h>
4649#include <float.h>
91d11da1 4650
93613951
TT
4651int
4652main ()
4653{
183c73b0 4654
93613951
TT
4655 ;
4656 return 0;
4657}
4658_ACEOF
4659if ac_fn_c_try_compile "$LINENO"; then :
4660 ac_cv_header_stdc=yes
183c73b0 4661else
93613951 4662 ac_cv_header_stdc=no
5aa6c3f6 4663fi
93613951 4664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5aa6c3f6 4665
93613951
TT
4666if test $ac_cv_header_stdc = yes; then
4667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h. */
4670#include <string.h>
4671
4672_ACEOF
4673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4674 $EGREP "memchr" >/dev/null 2>&1; then :
4675
4676else
4677 ac_cv_header_stdc=no
4678fi
4679rm -f conftest*
4680
4681fi
4682
4683if test $ac_cv_header_stdc = yes; then
4684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686/* end confdefs.h. */
4687#include <stdlib.h>
4688
4689_ACEOF
4690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4691 $EGREP "free" >/dev/null 2>&1; then :
4692
4693else
4694 ac_cv_header_stdc=no
4695fi
4696rm -f conftest*
4697
4698fi
4699
4700if test $ac_cv_header_stdc = yes; then
4701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4702 if test "$cross_compiling" = yes; then :
4703 :
4704else
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706/* end confdefs.h. */
4707#include <ctype.h>
4708#include <stdlib.h>
4709#if ((' ' & 0x0FF) == 0x020)
4710# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4711# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4712#else
4713# define ISLOWER(c) \
4714 (('a' <= (c) && (c) <= 'i') \
4715 || ('j' <= (c) && (c) <= 'r') \
4716 || ('s' <= (c) && (c) <= 'z'))
4717# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4718#endif
4719
4720#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4721int
4722main ()
4723{
4724 int i;
4725 for (i = 0; i < 256; i++)
4726 if (XOR (islower (i), ISLOWER (i))
4727 || toupper (i) != TOUPPER (i))
4728 return 2;
4729 return 0;
4730}
4731_ACEOF
4732if ac_fn_c_try_run "$LINENO"; then :
4733
4734else
4735 ac_cv_header_stdc=no
4736fi
4737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4738 conftest.$ac_objext conftest.beam conftest.$ac_ext
4739fi
4740
4741fi
4742fi
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4744$as_echo "$ac_cv_header_stdc" >&6; }
4745if test $ac_cv_header_stdc = yes; then
4746
4747$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4748
4749fi
4750
4751# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4752for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4753 inttypes.h stdint.h unistd.h
4754do :
4755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4757"
4758if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4759 cat >>confdefs.h <<_ACEOF
4760#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4761_ACEOF
4762
4763fi
4764
4765done
4766
4767
4768
4769 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4770if test "x$ac_cv_header_minix_config_h" = xyes; then :
4771 MINIX=yes
4772else
4773 MINIX=
4774fi
4775
4776
4777 if test "$MINIX" = yes; then
4778
4779$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4780
4781
4782$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4783
4784
4785$as_echo "#define _MINIX 1" >>confdefs.h
4786
4787 fi
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4791$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4792if ${ac_cv_safe_to_define___extensions__+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794else
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h. */
4797
4798# define __EXTENSIONS__ 1
4799 $ac_includes_default
4800int
4801main ()
4802{
4803
4804 ;
4805 return 0;
4806}
4807_ACEOF
4808if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_safe_to_define___extensions__=yes
4810else
4811 ac_cv_safe_to_define___extensions__=no
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4816$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4817 test $ac_cv_safe_to_define___extensions__ = yes &&
4818 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4819
4820 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4821
4822 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4823
4824 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4825
4826 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4827
4828
4829LIB_EXT=.a
4830STATIC_LIB_EXT=.a
4831PROFILED_LIB_EXT=.a
4832
4833# Check whether --with-root-prefix was given.
4834if test "${with_root_prefix+set}" = set; then :
4835 withval=$with_root_prefix; root_prefix=$withval
4836else
4837 root_prefix=NONE
4838fi
4839# Check whether --enable-maintainer-mode was given.
4840if test "${enable_maintainer_mode+set}" = set; then :
4841 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4842then
4843 MAINTAINER_CMT=#
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4845$as_echo "Disabling maintainer mode" >&6; }
4846else
4847 MAINTAINER_CMT=
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4849$as_echo "Enabling maintainer mode" >&6; }
4850fi
4851
4852else
4853 MAINTAINER_CMT=#
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4855$as_echo "Disabling maintainer mode by default" >&6; }
4856
4857fi
4858
4859
4860# Check whether --enable-symlink-install was given.
4861if test "${enable_symlink_install+set}" = set; then :
4862 enableval=$enable_symlink_install; if test "$enableval" = "no"
4863then
4864 LINK_INSTALL_FLAGS=-f
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4866$as_echo "Disabling symlinks for install" >&6; }
4867else
4868 LINK_INSTALL_FLAGS=-sf
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4870$as_echo "Enabling symlinks for install" >&6; }
4871fi
4872
4873else
4874 LINK_INSTALL_FLAGS=-f
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4876$as_echo "Disabling symlinks for install by default" >&6; }
4877
4878fi
4879
4880
4881relative_symlink_defined=
4882# Check whether --enable-relative-symlinks was given.
4883if test "${enable_relative_symlinks+set}" = set; then :
4884 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4885then
4886 SYMLINK_RELATIVE=
4887 relative_symlink_defined=yes
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4889$as_echo "Disabling relative symlinks for install" >&6; }
4890else
4891 SYMLINK_RELATIVE=--relative
4892 relative_symlink_defined=yes
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4894$as_echo "Enabling relative symlinks for install" >&6; }
4895fi
4896fi
4897
4898# Check whether --enable-symlink-relative-symlinks was given.
4899if test "${enable_symlink_relative_symlinks+set}" = set; then :
4900 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4901then
4902 SYMLINK_RELATIVE=yes
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4904$as_echo "Disabling relative symlinks for install" >&6; }
4905else
4906 SYMLINK_RELATIVE=--relative
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4908$as_echo "Enabling relative symlinks for install" >&6; }
4909fi
4910
4911else
4912 if test -z "$relative_symlink_defined"
4913then
4914 SYMLINK_RELATIVE=
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4916$as_echo "Disabling relative symlinks for install by default" >&6; }
4917fi
4918
4919fi
4920
4921
4922# Check whether --enable-symlink-build was given.
4923if test "${enable_symlink_build+set}" = set; then :
5aa6c3f6
TT
4924 enableval=$enable_symlink_build; if test "$enableval" = "no"
4925then
4926 LINK_BUILD_FLAGS=
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4928$as_echo "Disabling symlinks for build" >&6; }
4929else
4930 LINK_BUILD_FLAGS=-s
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4932$as_echo "Enabling symlinks for build" >&6; }
4933fi
4934
4935else
4936 LINK_BUILD_FLAGS=
183c73b0
TT
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4938$as_echo "Disabling symlinks for build by default" >&6; }
5aa6c3f6
TT
4939
4940fi
4941
4942
57aa50d4
TT
4943# Check whether --enable-verbose-makecmds was given.
4944if test "${enable_verbose_makecmds+set}" = set; then :
4945 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4946then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4948$as_echo "Disabling verbose make commands" >&6; }
4949 E=@echo
c1986ecb 4950 ES=echo
57aa50d4 4951 Q=@
14b596d4 4952else
57aa50d4
TT
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4954$as_echo "Enabling verbose make commands" >&6; }
4955 E=@\\#
c1986ecb 4956 ES=\\#
57aa50d4
TT
4957 Q=
4958fi
14b596d4 4959
14b596d4 4960else
57aa50d4
TT
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4962$as_echo "Disabling verbose make commands" >&6; }
4963E=@echo
c1986ecb 4964ES=echo
57aa50d4 4965Q=@
14b596d4 4966
14b596d4
TT
4967fi
4968
14b596d4 4969
57aa50d4 4970
c1986ecb 4971
57aa50d4
TT
4972E2_PKG_CONFIG_STATIC=--static
4973LDFLAG_DYNAMIC=
4974PRIVATE_LIBS_CMT=
4975# Check whether --enable-elf-shlibs was given.
4976if test "${enable_elf_shlibs+set}" = set; then :
4977 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
cdf186e4 4978then
57aa50d4
TT
4979 ELF_CMT=#
4980 MAKEFILE_ELF=/dev/null
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4982$as_echo "Disabling ELF shared libraries" >&6; }
cdf186e4 4983else
57aa50d4
TT
4984 E2_PKG_CONFIG_STATIC=
4985 ELF_CMT=
4986 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4987 case "$host_os" in
4988 solaris2.*)
4989 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4990 ;;
4991 esac
4992 BINARY_TYPE=elfbin
4993 LIB_EXT=.so
4994 PRIVATE_LIBS_CMT=#
4995 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4997$as_echo "Enabling ELF shared libraries" >&6; }
cdf186e4
TT
4998fi
4999
5000else
57aa50d4
TT
5001 MAKEFILE_ELF=/dev/null
5002ELF_CMT=#
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5004$as_echo "Disabling ELF shared libraries by default" >&6; }
cdf186e4 5005
e1052144
TT
5006fi
5007
cdf186e4 5008
57aa50d4
TT
5009
5010# Check whether --enable-bsd-shlibs was given.
5011if test "${enable_bsd_shlibs+set}" = set; then :
5012 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
cdf186e4 5013then
57aa50d4
TT
5014 BSDLIB_CMT=#
5015 MAKEFILE_BSDLIB=/dev/null
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5017$as_echo "Disabling BSD shared libraries" >&6; }
cdf186e4 5018else
57aa50d4
TT
5019 E2_PKG_CONFIG_STATIC=
5020 BSDLIB_CMT=
5021 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5022 LIB_EXT=.so
5023 case "$host_os" in
5024 darwin*)
5025 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5026 LIB_EXT=.dylib
5027 ;;
5028 esac
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5030$as_echo "Enabling BSD shared libraries" >&6; }
cdf186e4
TT
5031fi
5032
5033else
57aa50d4
TT
5034 MAKEFILE_BSDLIB=/dev/null
5035BSDLIB_CMT=#
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5037$as_echo "Disabling BSD shared libraries by default" >&6; }
cdf186e4 5038
e1052144
TT
5039fi
5040
cdf186e4 5041
57aa50d4
TT
5042
5043# Check whether --enable-profile was given.
5044if test "${enable_profile+set}" = set; then :
5045 enableval=$enable_profile; if test "$enableval" = "no"
cdf186e4 5046then
57aa50d4
TT
5047 PROFILE_CMT=#
5048 MAKEFILE_PROFILE=/dev/null
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5050$as_echo "Disabling profiling libraries" >&6; }
cdf186e4 5051else
57aa50d4
TT
5052 PROFILE_CMT=
5053 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5054 PROFILED_LIB_EXT=_p.a
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5056$as_echo "Building profiling libraries" >&6; }
cdf186e4
TT
5057fi
5058
5059else
57aa50d4
TT
5060 PROFILE_CMT=#
5061MAKEFILE_PROFILE=/dev/null
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5063$as_echo "Disabling profiling libraries by default" >&6; }
cdf186e4 5064
e1052144
TT
5065fi
5066
cdf186e4 5067
57aa50d4 5068
fedfb27f
TT
5069# Check whether --enable-gcov was given.
5070if test "${enable_gcov+set}" = set; then :
5071 enableval=$enable_gcov; if test "$enableval" = "yes"
5072then
5073 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5074 LDFLAGS="-fprofile-arcs -ftest-coverage"
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5076$as_echo "Enabling gcov support" >&6; }
5077fi
5078
5079fi
5080
fd1677e8
TT
5081CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5082CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5083LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5084LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5085# Check whether --enable-hardening was given.
5086if test "${enable_hardening+set}" = set; then :
5087 enableval=$enable_hardening; if test "$enableval" = "yes"
5088then
5089 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5090 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5091 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5092 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5093 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5094 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5095 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5096 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5098$as_echo "Enabling hardening support" >&6; }
5099fi
5100
5101fi
cdf186e4 5102
57aa50d4
TT
5103
5104
5105
5106
5107
5108# Check whether --enable-jbd-debug was given.
5109if test "${enable_jbd_debug+set}" = set; then :
5110 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5d40773b 5111then
57aa50d4
TT
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5113$as_echo "Disabling journal debugging" >&6; }
5d40773b 5114else
d1154eb4
TT
5115
5116$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
57aa50d4
TT
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5119$as_echo "Enabling journal debugging" >&6; }
5d40773b
TT
5120fi
5121
5122else
57aa50d4
TT
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5124$as_echo "Disabling journal debugging by default" >&6; }
5d40773b 5125
e1052144
TT
5126fi
5127
57aa50d4
TT
5128# Check whether --enable-blkid-debug was given.
5129if test "${enable_blkid_debug+set}" = set; then :
5130 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3249394d 5131then
57aa50d4
TT
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5133$as_echo "Disabling blkid debugging" >&6; }
3249394d 5134else
d1154eb4
TT
5135
5136$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
57aa50d4
TT
5137
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5139$as_echo "Enabling blkid debugging" >&6; }
3249394d
TT
5140fi
5141
5142else
57aa50d4
TT
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5144$as_echo "Disabling blkid debugging by default" >&6; }
3249394d
TT
5145
5146fi
5147
57aa50d4
TT
5148# Check whether --enable-testio-debug was given.
5149if test "${enable_testio_debug+set}" = set; then :
d1154eb4
TT
5150 enableval=$enable_testio_debug;
5151if test "$enableval" = "no"
3249394d 5152then
57aa50d4
TT
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5154$as_echo "Disabling testio debugging" >&6; }
5155 TEST_IO_CMT="#"
3249394d 5156else
57aa50d4
TT
5157 TEST_IO_CMT=
5158 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5159
57aa50d4
TT
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5161$as_echo "Enabling testio debugging" >&6; }
5162fi
3249394d 5163
3249394d 5164else
57aa50d4
TT
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5166$as_echo "Enabling testio debugging by default" >&6; }
5167$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5168
57aa50d4 5169TEST_IO_CMT=
3249394d
TT
5170
5171fi
5172
3249394d 5173
b9e66a18
TT
5174# Check whether --enable-developer-features was given.
5175if test "${enable_developer_features+set}" = set; then :
5176 enableval=$enable_developer_features;
5177if test "$enableval" = "yes"
5178then
5179 DEV_FEATURES_CMT=
5180 $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
5181
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
5183$as_echo "Enabling ext4 developer features" >&6; }
5184else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
5186$as_echo "Disabling ext4 developer features" >&6; }
5187 DEV_FEATURES_CMT="#"
5188fi
5189
5190else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
5192$as_echo "Disabling ext4 developer features by default" >&6; }
5193DEV_FEATURES_CMT=
5194
5195fi
5196
5197
57aa50d4
TT
5198
5199
93613951
TT
5200
5201
5202
5203
5204
57aa50d4 5205if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5206 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5207 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5208set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5211if ${ac_cv_path_PKG_CONFIG+:} false; then :
57aa50d4
TT
5212 $as_echo_n "(cached) " >&6
5213else
5214 case $PKG_CONFIG in
5215 [\\/]* | ?:[\\/]*)
5216 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5217 ;;
5218 *)
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH
5221do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5226 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230done
5231 done
5232IFS=$as_save_IFS
5233
5234 ;;
5235esac
5236fi
5237PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5238if test -n "$PKG_CONFIG"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5240$as_echo "$PKG_CONFIG" >&6; }
5241else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
3249394d
TT
5244fi
5245
5246
57aa50d4
TT
5247fi
5248if test -z "$ac_cv_path_PKG_CONFIG"; then
5249 ac_pt_PKG_CONFIG=$PKG_CONFIG
5250 # Extract the first word of "pkg-config", so it can be a program name with args.
5251set dummy pkg-config; ac_word=$2
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5254if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
57aa50d4
TT
5255 $as_echo_n "(cached) " >&6
5256else
5257 case $ac_pt_PKG_CONFIG in
5258 [\\/]* | ?:[\\/]*)
5259 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5260 ;;
5261 *)
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5269 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5272 fi
5273done
5274 done
5275IFS=$as_save_IFS
3249394d 5276
57aa50d4
TT
5277 ;;
5278esac
5279fi
5280ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5281if test -n "$ac_pt_PKG_CONFIG"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5283$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5284else
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286$as_echo "no" >&6; }
5287fi
3249394d 5288
57aa50d4
TT
5289 if test "x$ac_pt_PKG_CONFIG" = x; then
5290 PKG_CONFIG=""
5291 else
5292 case $cross_compiling:$ac_tool_warned in
5293yes:)
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296ac_tool_warned=yes ;;
5297esac
5298 PKG_CONFIG=$ac_pt_PKG_CONFIG
3249394d 5299 fi
57aa50d4
TT
5300else
5301 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5302fi
3249394d
TT
5303
5304fi
57aa50d4 5305if test -n "$PKG_CONFIG"; then
93613951
TT
5306 _pkg_min_version=0.9.0
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5308$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5309 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5311$as_echo "yes" >&6; }
93613951
TT
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5314$as_echo "no" >&6; }
93613951
TT
5315 PKG_CONFIG=""
5316 fi
57aa50d4
TT
5317fi
5318LIBUUID=
5319DEPLIBUUID=
5320STATIC_LIBUUID=
5321DEPSTATIC_LIBUUID=
5322PROFILED_LIBUUID=
5323DEPPROFILED_LIBUUID=
5324UUID_CMT=
5325# Check whether --enable-libuuid was given.
5326if test "${enable_libuuid+set}" = set; then :
5327 enableval=$enable_libuuid; if test "$enableval" = "no"
5610f992 5328then
57aa50d4 5329 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5330 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5331 fi
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5334$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
d6a4bcb5 5335if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
57aa50d4 5336 $as_echo_n "(cached) " >&6
5610f992 5337else
57aa50d4 5338 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5339LIBS="-luuid $LIBS"
57aa50d4
TT
5340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h. */
5610f992 5342
57aa50d4
TT
5343/* Override any GCC internal prototype to avoid an error.
5344 Use char because int might match the return type of a GCC
5345 builtin and then its argument prototype would still apply. */
5346#ifdef __cplusplus
5347extern "C"
5348#endif
5349char uuid_generate ();
5350int
5351main ()
5352{
5353return uuid_generate ();
5354 ;
5355 return 0;
5356}
5357_ACEOF
5358if ac_fn_c_try_link "$LINENO"; then :
5359 ac_cv_lib_uuid_uuid_generate=yes
5360else
5361 ac_cv_lib_uuid_uuid_generate=no
5362fi
5363rm -f core conftest.err conftest.$ac_objext \
5364 conftest$ac_exeext conftest.$ac_ext
5365LIBS=$ac_check_lib_save_LIBS
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5368$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
d6a4bcb5 5369if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
57aa50d4
TT
5370 LIBUUID=`$PKG_CONFIG --libs uuid`;
5371 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5372else
d6a4bcb5 5373 as_fn_error $? "external uuid library not found" "$LINENO" 5
5610f992
TT
5374fi
5375
5afdf37b 5376 PROFILED_LIBUUID=$LIBUUID
57aa50d4
TT
5377 UUID_CMT=#
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5379$as_echo "Disabling private uuid library" >&6; }
5610f992 5380else
57aa50d4
TT
5381 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5382 DEPLIBUUID=$LIBUUID
5383 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5384 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5385 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5386 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5388$as_echo "Enabling private uuid library" >&6; }
5389fi
5610f992 5390
57aa50d4 5391else
f5dffb81
TT
5392 if test -n "$PKG_CONFIG"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5394$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5395if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397else
5398 ac_check_lib_save_LIBS=$LIBS
5399LIBS="-luuid $LIBS"
5400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401/* end confdefs.h. */
5402
5403/* Override any GCC internal prototype to avoid an error.
5404 Use char because int might match the return type of a GCC
5405 builtin and then its argument prototype would still apply. */
5406#ifdef __cplusplus
5407extern "C"
5408#endif
5409char uuid_generate ();
5410int
5411main ()
5412{
5413return uuid_generate ();
5414 ;
5415 return 0;
5416}
5417_ACEOF
5418if ac_fn_c_try_link "$LINENO"; then :
5419 ac_cv_lib_uuid_uuid_generate=yes
5420else
5421 ac_cv_lib_uuid_uuid_generate=no
5422fi
5423rm -f core conftest.err conftest.$ac_objext \
5424 conftest$ac_exeext conftest.$ac_ext
5425LIBS=$ac_check_lib_save_LIBS
5426fi
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5428$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5429if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5430 LIBUUID=`$PKG_CONFIG --libs uuid`;
5431 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5432fi
5433
5434fi
5435if test -n "$LIBUUID"; then
5436 PROFILED_LIBUUID=$LIBUUID
5437 UUID_CMT=#
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5439$as_echo "Using system uuid by default" >&6; }
5440else
5441 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5442 DEPLIBUUID=$LIBUUID
5443 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5444 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5445 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5446 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
57aa50d4 5448$as_echo "Enabling private uuid library by default" >&6; }
f5dffb81 5449fi
5610f992
TT
5450
5451fi
5452
5453
cdf186e4 5454
a64c9c13 5455
93636bde
TT
5456
5457
93636bde 5458
93636bde
TT
5459
5460
57aa50d4 5461
93613951
TT
5462
5463
5464
5465
5466
57aa50d4 5467if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5468 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5469 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5470set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5473if ${ac_cv_path_PKG_CONFIG+:} false; then :
39fd3d4f 5474 $as_echo_n "(cached) " >&6
a64c9c13 5475else
57aa50d4
TT
5476 case $PKG_CONFIG in
5477 [\\/]* | ?:[\\/]*)
5478 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5479 ;;
e1052144 5480 *)
b0cacab0
TT
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482for as_dir in $PATH
5483do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
57aa50d4 5486 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5488 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
b0cacab0 5492done
57aa50d4 5493 done
e1052144 5494IFS=$as_save_IFS
b0cacab0 5495
57aa50d4 5496 ;;
b0cacab0
TT
5497esac
5498fi
57aa50d4
TT
5499PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5500if test -n "$PKG_CONFIG"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5502$as_echo "$PKG_CONFIG" >&6; }
07a0db15 5503else
57aa50d4 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5505$as_echo "no" >&6; }
07a0db15 5506fi
07a0db15 5507
57aa50d4
TT
5508
5509fi
5510if test -z "$ac_cv_path_PKG_CONFIG"; then
5511 ac_pt_PKG_CONFIG=$PKG_CONFIG
5512 # Extract the first word of "pkg-config", so it can be a program name with args.
5513set dummy pkg-config; ac_word=$2
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 5515$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5516if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
39fd3d4f 5517 $as_echo_n "(cached) " >&6
a64c9c13 5518else
57aa50d4 5519 case $ac_pt_PKG_CONFIG in
b0cacab0 5520 [\\/]* | ?:[\\/]*)
57aa50d4 5521 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
b0cacab0
TT
5522 ;;
5523 *)
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
57aa50d4 5529 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5531 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
5533 break 2
5534 fi
5535done
57aa50d4 5536 done
e1052144 5537IFS=$as_save_IFS
a64c9c13 5538
b0cacab0
TT
5539 ;;
5540esac
a64c9c13 5541fi
57aa50d4
TT
5542ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5543if test -n "$ac_pt_PKG_CONFIG"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5545$as_echo "$ac_pt_PKG_CONFIG" >&6; }
a64c9c13 5546else
57aa50d4 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5548$as_echo "no" >&6; }
a64c9c13 5549fi
a64c9c13 5550
57aa50d4
TT
5551 if test "x$ac_pt_PKG_CONFIG" = x; then
5552 PKG_CONFIG=""
b0cacab0 5553 else
57aa50d4
TT
5554 case $cross_compiling:$ac_tool_warned in
5555yes:)
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558ac_tool_warned=yes ;;
5559esac
5560 PKG_CONFIG=$ac_pt_PKG_CONFIG
b0cacab0 5561 fi
57aa50d4
TT
5562else
5563 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
a64c9c13 5564fi
93636bde 5565
a64c9c13 5566fi
57aa50d4 5567if test -n "$PKG_CONFIG"; then
93613951
TT
5568 _pkg_min_version=0.9.0
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5570$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5571 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5573$as_echo "yes" >&6; }
93613951
TT
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5576$as_echo "no" >&6; }
93613951
TT
5577 PKG_CONFIG=""
5578 fi
57aa50d4
TT
5579fi
5580LIBBLKID=
5581DEPLIBBLKID=
5582STATIC_LIBBLKID=
5583DEPSTATIC_LIBBLKID=
5584PROFILED_LIBBLKID=
5585DEPPROFILED_LIBBLKID=
5586BLKID_CMT=
d1154eb4 5587
57aa50d4
TT
5588# Check whether --enable-libblkid was given.
5589if test "${enable_libblkid+set}" = set; then :
5590 enableval=$enable_libblkid; if test "$enableval" = "no"
5591then
5592 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5593 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5594 fi
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5597$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
d6a4bcb5 5598if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
39fd3d4f 5599 $as_echo_n "(cached) " >&6
a64c9c13 5600else
57aa50d4 5601 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5602LIBS="-lblkid -luuid $LIBS"
57aa50d4
TT
5603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h. */
5605
5606/* Override any GCC internal prototype to avoid an error.
5607 Use char because int might match the return type of a GCC
5608 builtin and then its argument prototype would still apply. */
5609#ifdef __cplusplus
5610extern "C"
5611#endif
5612char blkid_get_cache ();
5613int
5614main ()
5615{
5616return blkid_get_cache ();
5617 ;
5618 return 0;
5619}
5620_ACEOF
5621if ac_fn_c_try_link "$LINENO"; then :
5622 ac_cv_lib_blkid_blkid_get_cache=yes
b0cacab0 5623else
57aa50d4 5624 ac_cv_lib_blkid_blkid_get_cache=no
a64c9c13 5625fi
57aa50d4
TT
5626rm -f core conftest.err conftest.$ac_objext \
5627 conftest$ac_exeext conftest.$ac_ext
5628LIBS=$ac_check_lib_save_LIBS
a64c9c13 5629fi
57aa50d4
TT
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5631$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
d6a4bcb5 5632if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
57aa50d4
TT
5633 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5634 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
b0cacab0 5635else
d6a4bcb5 5636 as_fn_error $? "external blkid library not found" "$LINENO" 5
a64c9c13 5637fi
93636bde 5638
57aa50d4 5639 BLKID_CMT=#
5afdf37b 5640 PROFILED_LIBBLKID=$LIBBLKID
57aa50d4
TT
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5642$as_echo "Disabling private blkid library" >&6; }
07a0db15 5643else
57aa50d4
TT
5644 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5645 DEPLIBBLKID=$LIBBLKID
5646 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5647 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5648 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5649 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5650 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5651
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5653$as_echo "Enabling private blkid library" >&6; }
b0cacab0 5654fi
57aa50d4 5655
a64c9c13 5656else
f5dffb81
TT
5657 if test -n "$PKG_CONFIG"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5659$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5660if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662else
5663 ac_check_lib_save_LIBS=$LIBS
5664LIBS="-lblkid $LIBS"
5665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666/* end confdefs.h. */
5667
5668/* Override any GCC internal prototype to avoid an error.
5669 Use char because int might match the return type of a GCC
5670 builtin and then its argument prototype would still apply. */
5671#ifdef __cplusplus
5672extern "C"
5673#endif
5674char blkid_get_cache ();
5675int
5676main ()
5677{
5678return blkid_get_cache ();
5679 ;
5680 return 0;
5681}
5682_ACEOF
5683if ac_fn_c_try_link "$LINENO"; then :
5684 ac_cv_lib_blkid_blkid_get_cache=yes
5685else
5686 ac_cv_lib_blkid_blkid_get_cache=no
5687fi
5688rm -f core conftest.err conftest.$ac_objext \
5689 conftest$ac_exeext conftest.$ac_ext
5690LIBS=$ac_check_lib_save_LIBS
5691fi
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5693$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5694if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5695 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5696 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5697fi
5698
5699fi
5700if test -n "$LIBBLKID"; then
5701 BLKID_CMT=#
5702 PROFILED_LIBBLKID=$LIBBLKID
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5704$as_echo "Using system blkid library by default" >&6; }
5705else
5706 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5707 DEPLIBBLKID=$LIBBLKID
5708 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5709 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5710 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5711 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5712 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
57aa50d4 5713
f5dffb81 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
57aa50d4 5715$as_echo "Enabling private blkid library by default" >&6; }
f5dffb81 5716fi
57aa50d4 5717
a64c9c13 5718fi
07a0db15 5719
a64c9c13 5720
b0cacab0 5721
b0cacab0 5722
a64c9c13 5723
b0cacab0 5724
07a0db15 5725
57aa50d4 5726
0afb9be6 5727ALL_CMT=
feb235e0 5728SUBSET_CMT=
0afb9be6
TT
5729# Check whether --enable-subset was given.
5730if test "${enable_subset+set}" = set; then :
5731 enableval=$enable_subset; if test "$enableval" = "no"
5732then
feb235e0 5733 SUBSET_CMT=#
0afb9be6
TT
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5735$as_echo "Disabling subset-only build" >&6; }
5736else
5737 ALL_CMT=#
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5739$as_echo "Enabling subset-only-build" >&6; }
5740fi
5741
5742fi
5743
5744
3df6014a 5745
feb235e0 5746
3df6014a
TT
5747# Check whether --enable-backtrace was given.
5748if test "${enable_backtrace+set}" = set; then :
5749 enableval=$enable_backtrace; if test "$enableval" = "no"
5750then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5752$as_echo "Disabling use of backtrace" >&6; }
5753 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5754
5755else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5757$as_echo "Enabling use of backtrace" >&6; }
5758fi
5759
5760else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5762$as_echo "Enabling use of backtrace by default" >&6; }
5763
5764fi
5765
57aa50d4
TT
5766# Check whether --enable-debugfs was given.
5767if test "${enable_debugfs+set}" = set; then :
5768 enableval=$enable_debugfs; if test "$enableval" = "no"
5769then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5771$as_echo "Disabling debugfs support" >&6; }
5772 DEBUGFS_CMT="#"
b0cacab0 5773else
57aa50d4
TT
5774 DEBUGFS_CMT=
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5776$as_echo "Enabling debugfs support" >&6; }
b0cacab0 5777fi
a64c9c13 5778
b0cacab0 5779else
57aa50d4
TT
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5781$as_echo "Enabling debugfs support by default" >&6; }
5782DEBUGFS_CMT=
a64c9c13 5783
93636bde 5784fi
57aa50d4
TT
5785
5786
5787# Check whether --enable-imager was given.
5788if test "${enable_imager+set}" = set; then :
5789 enableval=$enable_imager; if test "$enableval" = "no"
5790then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5792$as_echo "Disabling e2image support" >&6; }
5793 IMAGER_CMT="#"
b0cacab0 5794else
57aa50d4
TT
5795 IMAGER_CMT=
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5797$as_echo "Enabling e2image support" >&6; }
b0cacab0
TT
5798fi
5799
b0cacab0 5800else
57aa50d4
TT
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5802$as_echo "Enabling e2image support by default" >&6; }
5803IMAGER_CMT=
5804
93636bde
TT
5805fi
5806
a64c9c13 5807
57aa50d4
TT
5808# Check whether --enable-resizer was given.
5809if test "${enable_resizer+set}" = set; then :
5810 enableval=$enable_resizer; if test "$enableval" = "no"
5811then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5813$as_echo "Disabling e2resize support" >&6; }
5814 RESIZER_CMT="#"
b0cacab0 5815else
57aa50d4
TT
5816 RESIZER_CMT=
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5818$as_echo "Enabling e2resize support" >&6; }
5819fi
b0cacab0 5820
b0cacab0 5821else
57aa50d4
TT
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5823$as_echo "Enabling e2resize support by default" >&6; }
5824RESIZER_CMT=
b0cacab0 5825
b0cacab0 5826fi
e1052144 5827
57aa50d4 5828
8d9c50c5
TT
5829# Check whether --enable-defrag was given.
5830if test "${enable_defrag+set}" = set; then :
5831 enableval=$enable_defrag; if test "$enableval" = "no"
5832then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5834$as_echo "Disabling e4defrag support" >&6; }
5835 DEFRAG_CMT="#"
5836else
5837 DEFRAG_CMT=
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5839$as_echo "Enabling e4defrag support" >&6; }
5840fi
5841
5842else
6c59a665
TT
5843 if test -z "$WITH_DIET_LIBC"
5844then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
8d9c50c5 5846$as_echo "Enabling e4defrag support by default" >&6; }
6c59a665
TT
5847 DEFRAG_CMT=
5848else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5850$as_echo "Disabling e4defrag support by default" >&6; }
5851 DEFRAG_CMT="#"
5852fi
8d9c50c5
TT
5853
5854fi
5855
5856
57aa50d4
TT
5857# Check whether --enable-fsck was given.
5858if test "${enable_fsck+set}" = set; then :
5859 enableval=$enable_fsck; if test "$enableval" = "no"
5860then
5861 FSCK_PROG='' FSCK_MAN=''
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5863$as_echo "Not building fsck wrapper" >&6; }
5864else
5865 FSCK_PROG=fsck FSCK_MAN=fsck.8
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5867$as_echo "Building fsck wrapper" >&6; }
a64c9c13
TT
5868fi
5869
57aa50d4
TT
5870else
5871 case "$host_os" in
5872 gnu*)
5873 FSCK_PROG='' FSCK_MAN=''
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5875$as_echo "Not building fsck wrapper by default" >&6; }
5876 ;;
5877 *)
5878 FSCK_PROG=fsck FSCK_MAN=fsck.8
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5880$as_echo "Building fsck wrapper by default" >&6; }
5881esac
b0cacab0 5882
57aa50d4 5883fi
b0cacab0 5884
93636bde 5885
b0cacab0 5886
57aa50d4
TT
5887# Check whether --enable-e2initrd-helper was given.
5888if test "${enable_e2initrd_helper+set}" = set; then :
5889 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5890then
5891 E2INITRD_PROG='' E2INITRD_MAN=''
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5893$as_echo "Not building e2initrd helper" >&6; }
5894else
5895 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5897$as_echo "Building e2initrd helper" >&6; }
5898fi
a64c9c13 5899
a64c9c13 5900else
57aa50d4
TT
5901 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5903$as_echo "Building e2initrd helper by default" >&6; }
b0cacab0 5904
a64c9c13 5905fi
e1052144 5906
57aa50d4
TT
5907
5908
5909# Check whether --enable-tls was given.
5910if test "${enable_tls+set}" = set; then :
5911 enableval=$enable_tls; if test "$enableval" = "no"
5912then
5913 try_tls=""
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5915$as_echo "Disabling thread local support" >&6; }
5916else
5917 try_tls="yes"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5919$as_echo "Enabling thread local support" >&6; }
a64c9c13
TT
5920fi
5921
57aa50d4
TT
5922else
5923 if test -n "$WITH_DIET_LIBC"
5924then
5925 try_tls=""
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5927$as_echo "Diet libc does not support thread local support" >&6; }
5928else
5929 try_tls="yes"
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5931$as_echo "Try using thread local support by default" >&6; }
5932fi
a64c9c13 5933
93636bde 5934fi
07a0db15 5935
57aa50d4
TT
5936if test "$try_tls" = "yes"
5937then
a64c9c13 5938
57aa50d4
TT
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5940$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
d6a4bcb5 5941 if ${ac_cv_tls+:} false; then :
39fd3d4f 5942 $as_echo_n "(cached) " >&6
b0cacab0 5943else
b0cacab0 5944
57aa50d4
TT
5945 ax_tls_keywords="__thread __declspec(thread) none"
5946 for ax_tls_keyword in $ax_tls_keywords; do
5947 case $ax_tls_keyword in
5948 none) ac_cv_tls=none ; break ;;
5949 *)
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h. */
5952#include <stdlib.h>
5953 static void
5954 foo(void) {
5955 static $ax_tls_keyword int bar;
5956 exit(1);
5957 }
b0cacab0
TT
5958int
5959main ()
5960{
57aa50d4 5961
b0cacab0
TT
5962 ;
5963 return 0;
5964}
5965_ACEOF
57aa50d4
TT
5966if ac_fn_c_try_compile "$LINENO"; then :
5967 ac_cv_tls=$ax_tls_keyword ; break
b0cacab0 5968else
57aa50d4 5969 ac_cv_tls=none
b0cacab0 5970
b0cacab0 5971fi
e1052144 5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
5973 esac
5974 done
5975
b0cacab0 5976fi
b0cacab0 5977
57aa50d4
TT
5978
5979 if test "$ac_cv_tls" != "none"; then
5980
5981cat >>confdefs.h <<_ACEOF
5982#define TLS $ac_cv_tls
b0cacab0 5983_ACEOF
93636bde 5984
b0cacab0 5985 fi
57aa50d4
TT
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5987$as_echo "$ac_cv_tls" >&6; }
b0cacab0 5988
57aa50d4 5989fi
d1154eb4 5990
57aa50d4
TT
5991# Check whether --enable-uuidd was given.
5992if test "${enable_uuidd+set}" = set; then :
5993 enableval=$enable_uuidd; if test "$enableval" = "no"
5994then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5996$as_echo "Not building uuidd" >&6; }
5997 UUIDD_CMT="#"
a64c9c13 5998else
57aa50d4
TT
5999 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6000
6001 UUIDD_CMT=""
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6003$as_echo "Building uuidd" >&6; }
6004fi
a64c9c13 6005
a64c9c13 6006else
57aa50d4 6007 $as_echo "#define USE_UUIDD 1" >>confdefs.h
a64c9c13 6008
e3d10158
TT
6009if test -z "$UUID_CMT"
6010then
6011 UUIDD_CMT=""
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
57aa50d4 6013$as_echo "Building uuidd by default" >&6; }
e3d10158
TT
6014else
6015 UUIDD_CMT="#"
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6017$as_echo "Disabling uuidd by default" >&6; }
6018fi
e1052144 6019
a64c9c13 6020fi
e1052144 6021
93636bde 6022
d6a4bcb5
TB
6023
6024# Check whether --enable-mmp was given.
6025if test "${enable_mmp+set}" = set; then :
6026 enableval=$enable_mmp; if test "$enableval" = "no"
6027then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6029$as_echo "Disabling mmp support" >&6; }
6030else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6032$as_echo "Enabling mmp support" >&6; }
6033 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6034
6035fi
6036
6037else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6039$as_echo "Enabling mmp support by default" >&6; }
6040$as_echo "#define CONFIG_MMP 1" >>confdefs.h
6041
6042
1625bf42
TB
6043fi
6044
6045
749f0712
TT
6046# Check whether --enable-tdb was given.
6047if test "${enable_tdb+set}" = set; then :
6048 enableval=$enable_tdb; if test "$enableval" = "no"
6049then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6051$as_echo "Disabling tdb support" >&6; }
6052 TDB_CMT="#"
6053 TDB_MAN_COMMENT='.\"'
6054else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6056$as_echo "Enabling tdb support" >&6; }
6057 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6058
6059 TDB_CMT=""
6060 TDB_MAN_COMMENT=""
6061fi
6062
6063else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6065$as_echo "Enabling mmp support by default" >&6; }
6066$as_echo "#define CONFIG_TDB 1" >>confdefs.h
6067
6068TDB_CMT=""
6069TDB_MAN_COMMENT=""
6070
6071fi
6072
6073
6074
6075
1625bf42
TB
6076# Check whether --enable-bmap-stats was given.
6077if test "${enable_bmap_stats+set}" = set; then :
6078 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6079then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6081$as_echo "Disabling bitmap statistics support" >&6; }
6082else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6084$as_echo "Enabling bitmap statistics support" >&6; }
6085 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6086
6087fi
6088
6089else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6091$as_echo "Enabling bitmap statistics support by default" >&6; }
6092$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6093
6094
6095fi
6096
6097
6098# Check whether --enable-bmap-stats-ops was given.
6099if test "${enable_bmap_stats_ops+set}" = set; then :
6100 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6101then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6103$as_echo "Disabling additional bitmap statistics" >&6; }
6104else
6105 if test "x${enable_bmap_stats}" = "xno"; then :
6106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6108as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6109See \`config.log' for more details" "$LINENO" 5; }
6110fi
6111
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6113$as_echo "Enabling additional bitmap statistics" >&6; }
6114 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6115
6116fi
6117
6118else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6120$as_echo "Disabling additional bitmap statistics by default" >&6; }
6121
d6a4bcb5
TB
6122fi
6123
57aa50d4 6124MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
a64c9c13 6125
57aa50d4
TT
6126GETTEXT_PACKAGE=e2fsprogs
6127PACKAGE=e2fsprogs
6128VERSION="$E2FSPROGS_VERSION"
6129VERSION=0.14.1
d1154eb4 6130
57aa50d4
TT
6131cat >>confdefs.h <<_ACEOF
6132#define PACKAGE "$PACKAGE"
b0cacab0 6133_ACEOF
a64c9c13 6134
d1154eb4 6135
57aa50d4
TT
6136cat >>confdefs.h <<_ACEOF
6137#define VERSION "$VERSION"
6138_ACEOF
6139
6140
6141
6142
6143
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6145$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6146set x ${MAKE-make}
6147ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6a4bcb5 6148if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
39fd3d4f 6149 $as_echo_n "(cached) " >&6
b0cacab0 6150else
57aa50d4
TT
6151 cat >conftest.make <<\_ACEOF
6152SHELL = /bin/sh
6153all:
6154 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 6155_ACEOF
d6a4bcb5 6156# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
6157case `${MAKE-make} -f conftest.make 2>/dev/null` in
6158 *@@@%%%=?*=@@@%%%*)
6159 eval ac_cv_prog_make_${ac_make}_set=yes;;
6160 *)
6161 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 6162esac
57aa50d4
TT
6163rm -f conftest.make
6164fi
6165if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6167$as_echo "yes" >&6; }
6168 SET_MAKE=
39fd3d4f 6169else
57aa50d4
TT
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171$as_echo "no" >&6; }
6172 SET_MAKE="MAKE=${MAKE-make}"
39fd3d4f
SJR
6173fi
6174
57aa50d4
TT
6175# Find a good install program. We prefer a C program (faster),
6176# so one script is as good as another. But avoid the broken or
6177# incompatible versions:
6178# SysV /etc/install, /usr/sbin/install
6179# SunOS /usr/etc/install
6180# IRIX /sbin/install
6181# AIX /bin/install
6182# AmigaOS /C/install, which installs bootblocks on floppy discs
6183# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6184# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6185# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6186# OS/2's system install, which has a completely different semantic
6187# ./install, which can be erroneously created by make from ./install.sh.
6188# Reject install programs that cannot install multiple files.
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6190$as_echo_n "checking for a BSD-compatible install... " >&6; }
6191if test -z "$INSTALL"; then
d6a4bcb5 6192if ${ac_cv_path_install+:} false; then :
57aa50d4 6193 $as_echo_n "(cached) " >&6
93636bde 6194else
57aa50d4
TT
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH
6197do
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
6200 # Account for people who put trailing slashes in PATH elements.
6201case $as_dir/ in #((
6202 ./ | .// | /[cC]/* | \
6203 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6204 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6205 /usr/ucb/* ) ;;
6206 *)
6207 # OSF1 and SCO ODT 3.0 have their own names for install.
6208 # Don't use installbsd from OSF since it installs stuff as root
6209 # by default.
6210 for ac_prog in ginstall scoinst install; do
6211 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6212 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
57aa50d4
TT
6213 if test $ac_prog = install &&
6214 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6215 # AIX install. It has an incompatible calling convention.
6216 :
6217 elif test $ac_prog = install &&
6218 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6219 # program-specific install script used by HP pwplus--don't use.
6220 :
6221 else
6222 rm -rf conftest.one conftest.two conftest.dir
6223 echo one > conftest.one
6224 echo two > conftest.two
6225 mkdir conftest.dir
6226 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6227 test -s conftest.one && test -s conftest.two &&
6228 test -s conftest.dir/conftest.one &&
6229 test -s conftest.dir/conftest.two
6230 then
6231 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6232 break 3
6233 fi
6234 fi
6235 fi
6236 done
6237 done
6238 ;;
6239esac
6240
6241 done
6242IFS=$as_save_IFS
b0cacab0 6243
57aa50d4 6244rm -rf conftest.one conftest.two conftest.dir
39fd3d4f 6245
93636bde 6246fi
57aa50d4
TT
6247 if test "${ac_cv_path_install+set}" = set; then
6248 INSTALL=$ac_cv_path_install
6249 else
6250 # As a last resort, use the slow shell script. Don't cache a
6251 # value for INSTALL within a source directory, because that will
6252 # break other packages using the cache if that directory is
6253 # removed, or if the value is a relative name.
6254 INSTALL=$ac_install_sh
6255 fi
93636bde 6256fi
57aa50d4
TT
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6258$as_echo "$INSTALL" >&6; }
a64c9c13 6259
57aa50d4
TT
6260# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6261# It thinks the first close brace ends the variable substitution.
6262test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b0cacab0 6263
57aa50d4 6264test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a64c9c13 6265
57aa50d4 6266test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39fd3d4f 6267
93613951
TT
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6269$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6270if test -z "$MKDIR_P"; then
6271 if ${ac_cv_path_mkdir+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6276do
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_prog in mkdir gmkdir; do
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6282 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6283 'mkdir (GNU coreutils) '* | \
6284 'mkdir (coreutils) '* | \
6285 'mkdir (fileutils) '4.1*)
6286 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6287 break 3;;
6288 esac
6289 done
6290 done
6291 done
6292IFS=$as_save_IFS
6293
6294fi
39fd3d4f 6295
93613951
TT
6296 test -d ./--version && rmdir ./--version
6297 if test "${ac_cv_path_mkdir+set}" = set; then
6298 MKDIR_P="$ac_cv_path_mkdir -p"
6299 else
6300 # As a last resort, use the slow shell script. Don't cache a
6301 # value for MKDIR_P within a source directory, because that will
6302 # break other packages using the cache if that directory is
6303 # removed, or if the value is a relative name.
6304 MKDIR_P="$ac_install_sh -d"
57aa50d4 6305 fi
93613951
TT
6306fi
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6308$as_echo "$MKDIR_P" >&6; }
6309
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6311$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6312if ${ac_cv_path_SED+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314else
6315 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6316 for ac_i in 1 2 3 4 5 6 7; do
6317 ac_script="$ac_script$as_nl$ac_script"
6318 done
6319 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6320 { ac_script=; unset ac_script;}
6321 if test -z "$SED"; then
6322 ac_path_SED_found=false
6323 # Loop through the user's path and test for each of PROGNAME-LIST
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_prog in sed gsed; do
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6332 as_fn_executable_p "$ac_path_SED" || continue
6333# Check for GNU ac_path_SED and select it if it is found.
6334 # Check for GNU $ac_path_SED
6335case `"$ac_path_SED" --version 2>&1` in
6336*GNU*)
6337 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6338*)
6339 ac_count=0
6340 $as_echo_n 0123456789 >"conftest.in"
6341 while :
6342 do
6343 cat "conftest.in" "conftest.in" >"conftest.tmp"
6344 mv "conftest.tmp" "conftest.in"
6345 cp "conftest.in" "conftest.nl"
6346 $as_echo '' >> "conftest.nl"
6347 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6349 as_fn_arith $ac_count + 1 && ac_count=$as_val
6350 if test $ac_count -gt ${ac_path_SED_max-0}; then
6351 # Best one so far, save it but keep looking for a better one
6352 ac_cv_path_SED="$ac_path_SED"
6353 ac_path_SED_max=$ac_count
6354 fi
6355 # 10*(2^10) chars as input seems more than enough
6356 test $ac_count -gt 10 && break
6357 done
6358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6359esac
6360
6361 $ac_path_SED_found && break 3
6362 done
6363 done
6364 done
6365IFS=$as_save_IFS
6366 if test -z "$ac_cv_path_SED"; then
6367 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
57aa50d4 6368 fi
93613951
TT
6369else
6370 ac_cv_path_SED=$SED
6371fi
b0cacab0 6372
93613951
TT
6373fi
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6375$as_echo "$ac_cv_path_SED" >&6; }
6376 SED="$ac_cv_path_SED"
6377 rm -f conftest.sed
39fd3d4f 6378
e1052144 6379
57aa50d4
TT
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6381$as_echo_n "checking whether NLS is requested... " >&6; }
6382 # Check whether --enable-nls was given.
6383if test "${enable_nls+set}" = set; then :
6384 enableval=$enable_nls; USE_NLS=$enableval
b0cacab0 6385else
57aa50d4
TT
6386 USE_NLS=yes
6387fi
b0cacab0 6388
57aa50d4
TT
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6390$as_echo "$USE_NLS" >&6; }
93636bde 6391
a64c9c13 6392
a64c9c13 6393
b0cacab0 6394
93613951
TT
6395 GETTEXT_MACRO_VERSION=0.18
6396
6397
b0cacab0 6398
a64c9c13 6399
57aa50d4
TT
6400# Prepare PATH_SEPARATOR.
6401# The user is always right.
6402if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6403 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6404 # contains only /bin. Note that ksh looks also at the FPATH variable,
6405 # so we have to set that as well for the test.
6406 PATH_SEPARATOR=:
6407 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6408 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6409 || PATH_SEPARATOR=';'
6410 }
57aa50d4 6411fi
b0cacab0 6412
57aa50d4
TT
6413# Find out how to test for executable files. Don't use a zero-byte file,
6414# as systems may use methods other than mode bits to determine executability.
6415cat >conf$$.file <<_ASEOF
6416#! /bin/sh
6417exit 0
6418_ASEOF
6419chmod +x conf$$.file
6420if test -x conf$$.file >/dev/null 2>&1; then
6421 ac_executable_p="test -x"
6422else
6423 ac_executable_p="test -f"
6424fi
6425rm -f conf$$.file
b0cacab0 6426
57aa50d4
TT
6427# Extract the first word of "msgfmt", so it can be a program name with args.
6428set dummy msgfmt; ac_word=$2
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6431if ${ac_cv_path_MSGFMT+:} false; then :
39fd3d4f 6432 $as_echo_n "(cached) " >&6
93636bde 6433else
57aa50d4
TT
6434 case "$MSGFMT" in
6435 [\\/]* | ?:[\\/]*)
6436 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6437 ;;
6438 *)
6439 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6440 for ac_dir in $PATH; do
6441 IFS="$ac_save_IFS"
6442 test -z "$ac_dir" && ac_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6445 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6446 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
57aa50d4
TT
6447 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6448 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6449 break 2
6450 fi
6451 fi
6452 done
6453 done
6454 IFS="$ac_save_IFS"
6455 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6456 ;;
e1052144 6457esac
b0cacab0 6458fi
57aa50d4
TT
6459MSGFMT="$ac_cv_path_MSGFMT"
6460if test "$MSGFMT" != ":"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6462$as_echo "$MSGFMT" >&6; }
6463else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465$as_echo "no" >&6; }
b0cacab0 6466fi
a64c9c13 6467
57aa50d4
TT
6468 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6469set dummy gmsgfmt; ac_word=$2
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6472if ${ac_cv_path_GMSGFMT+:} false; then :
39fd3d4f 6473 $as_echo_n "(cached) " >&6
93636bde 6474else
57aa50d4
TT
6475 case $GMSGFMT in
6476 [\\/]* | ?:[\\/]*)
6477 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6478 ;;
6479 *)
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
6487 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491done
6492 done
6493IFS=$as_save_IFS
a64c9c13 6494
57aa50d4
TT
6495 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6496 ;;
e1052144 6497esac
57aa50d4
TT
6498fi
6499GMSGFMT=$ac_cv_path_GMSGFMT
6500if test -n "$GMSGFMT"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6502$as_echo "$GMSGFMT" >&6; }
b0cacab0 6503else
57aa50d4
TT
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505$as_echo "no" >&6; }
b0cacab0 6506fi
e1052144 6507
b0cacab0 6508
b0cacab0 6509
93613951
TT
6510 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6511 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6512 *) MSGFMT_015=$MSGFMT ;;
6513 esac
6514
6515 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6516 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6517 *) GMSGFMT_015=$GMSGFMT ;;
6518 esac
6519
6520
57aa50d4
TT
6521
6522# Prepare PATH_SEPARATOR.
6523# The user is always right.
6524if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6525 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6526 # contains only /bin. Note that ksh looks also at the FPATH variable,
6527 # so we have to set that as well for the test.
6528 PATH_SEPARATOR=:
6529 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6530 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6531 || PATH_SEPARATOR=';'
6532 }
57aa50d4 6533fi
b0cacab0 6534
57aa50d4
TT
6535# Find out how to test for executable files. Don't use a zero-byte file,
6536# as systems may use methods other than mode bits to determine executability.
6537cat >conf$$.file <<_ASEOF
6538#! /bin/sh
6539exit 0
6540_ASEOF
6541chmod +x conf$$.file
6542if test -x conf$$.file >/dev/null 2>&1; then
6543 ac_executable_p="test -x"
6544else
6545 ac_executable_p="test -f"
6546fi
6547rm -f conf$$.file
b0cacab0 6548
57aa50d4
TT
6549# Extract the first word of "xgettext", so it can be a program name with args.
6550set dummy xgettext; ac_word=$2
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6553if ${ac_cv_path_XGETTEXT+:} false; then :
39fd3d4f 6554 $as_echo_n "(cached) " >&6
a64c9c13 6555else
57aa50d4
TT
6556 case "$XGETTEXT" in
6557 [\\/]* | ?:[\\/]*)
6558 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6559 ;;
6560 *)
6561 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6562 for ac_dir in $PATH; do
6563 IFS="$ac_save_IFS"
6564 test -z "$ac_dir" && ac_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6567 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6568 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
57aa50d4
TT
6569 (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
6570 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6571 break 2
6572 fi
6573 fi
6574 done
6575 done
6576 IFS="$ac_save_IFS"
6577 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6578 ;;
e1052144 6579esac
b0cacab0 6580fi
57aa50d4
TT
6581XGETTEXT="$ac_cv_path_XGETTEXT"
6582if test "$XGETTEXT" != ":"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6584$as_echo "$XGETTEXT" >&6; }
6585else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587$as_echo "no" >&6; }
b0cacab0 6588fi
b0cacab0 6589
57aa50d4 6590 rm -f messages.po
a64c9c13 6591
93613951
TT
6592 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6593 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6594 *) XGETTEXT_015=$XGETTEXT ;;
6595 esac
6596
6597
b0cacab0 6598
57aa50d4
TT
6599# Prepare PATH_SEPARATOR.
6600# The user is always right.
6601if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6602 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6603 # contains only /bin. Note that ksh looks also at the FPATH variable,
6604 # so we have to set that as well for the test.
6605 PATH_SEPARATOR=:
6606 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6607 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6608 || PATH_SEPARATOR=';'
6609 }
57aa50d4 6610fi
b0cacab0 6611
57aa50d4
TT
6612# Find out how to test for executable files. Don't use a zero-byte file,
6613# as systems may use methods other than mode bits to determine executability.
6614cat >conf$$.file <<_ASEOF
6615#! /bin/sh
6616exit 0
6617_ASEOF
6618chmod +x conf$$.file
6619if test -x conf$$.file >/dev/null 2>&1; then
6620 ac_executable_p="test -x"
6621else
6622 ac_executable_p="test -f"
6623fi
6624rm -f conf$$.file
6625
6626# Extract the first word of "msgmerge", so it can be a program name with args.
6627set dummy msgmerge; ac_word=$2
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6630if ${ac_cv_path_MSGMERGE+:} false; then :
39fd3d4f 6631 $as_echo_n "(cached) " >&6
b0cacab0 6632else
57aa50d4
TT
6633 case "$MSGMERGE" in
6634 [\\/]* | ?:[\\/]*)
6635 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6636 ;;
6637 *)
6638 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6639 for ac_dir in $PATH; do
6640 IFS="$ac_save_IFS"
6641 test -z "$ac_dir" && ac_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6644 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6645 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
57aa50d4
TT
6646 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6647 break 2
6648 fi
6649 fi
6650 done
6651 done
6652 IFS="$ac_save_IFS"
6653 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6654 ;;
e1052144 6655esac
57aa50d4
TT
6656fi
6657MSGMERGE="$ac_cv_path_MSGMERGE"
6658if test "$MSGMERGE" != ":"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6660$as_echo "$MSGMERGE" >&6; }
b0cacab0 6661else
57aa50d4
TT
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }
b0cacab0 6664fi
e1052144 6665
93636bde 6666
93613951
TT
6667 test -n "$localedir" || localedir='${datadir}/locale'
6668
6669
6670 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6671
6672
6673 ac_config_commands="$ac_config_commands po-directories"
a64c9c13 6674
a64c9c13 6675
93613951
TT
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6678$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6679if ${ac_cv_gnu_library_2+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681else
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h. */
6684
6685#include <features.h>
6686#ifdef __GNU_LIBRARY__
6687 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6688 Lucky GNU user
6689 #endif
6690#endif
6691
6692_ACEOF
6693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6694 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6695 ac_cv_gnu_library_2=yes
6696else
6697 ac_cv_gnu_library_2=no
6698fi
6699rm -f conftest*
6700
a64c9c13 6701
a64c9c13 6702
93613951
TT
6703fi
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6705$as_echo "$ac_cv_gnu_library_2" >&6; }
6706
6707 GLIBC2="$ac_cv_gnu_library_2"
57aa50d4 6708
a64c9c13 6709
57aa50d4
TT
6710if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6712set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6715if ${ac_cv_prog_RANLIB+:} false; then :
39fd3d4f 6716 $as_echo_n "(cached) " >&6
b0cacab0 6717else
57aa50d4
TT
6718 if test -n "$RANLIB"; then
6719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
b0cacab0 6720else
57aa50d4
TT
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
6728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732done
6733 done
6734IFS=$as_save_IFS
d1154eb4
TT
6735
6736fi
6737fi
6738RANLIB=$ac_cv_prog_RANLIB
6739if test -n "$RANLIB"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6741$as_echo "$RANLIB" >&6; }
6742else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744$as_echo "no" >&6; }
6745fi
6746
6747
6748fi
6749if test -z "$ac_cv_prog_RANLIB"; then
6750 ac_ct_RANLIB=$RANLIB
6751 # Extract the first word of "ranlib", so it can be a program name with args.
6752set dummy ranlib; ac_word=$2
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6755if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d1154eb4
TT
6756 $as_echo_n "(cached) " >&6
6757else
6758 if test -n "$ac_ct_RANLIB"; then
6759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d1154eb4
TT
6768 ac_cv_prog_ac_ct_RANLIB="ranlib"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772done
6773 done
6774IFS=$as_save_IFS
6775
6776fi
6777fi
6778ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6779if test -n "$ac_ct_RANLIB"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6781$as_echo "$ac_ct_RANLIB" >&6; }
6782else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784$as_echo "no" >&6; }
6785fi
6786
6787 if test "x$ac_ct_RANLIB" = x; then
6788 RANLIB=":"
6789 else
6790 case $cross_compiling:$ac_tool_warned in
6791yes:)
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794ac_tool_warned=yes ;;
6795esac
6796 RANLIB=$ac_ct_RANLIB
6797 fi
6798else
6799 RANLIB="$ac_cv_prog_RANLIB"
6800fi
6801
6802
93613951
TT
6803
6804 CFLAG_VISIBILITY=
6805 HAVE_VISIBILITY=0
6806 if test -n "$GCC"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6808$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6809 if ${gl_cv_cc_vis_werror+:} false; then :
d1154eb4
TT
6810 $as_echo_n "(cached) " >&6
6811else
93613951
TT
6812
6813 gl_save_CFLAGS="$CFLAGS"
6814 CFLAGS="$CFLAGS -Werror"
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
6816/* end confdefs.h. */
6817
d1154eb4
TT
6818int
6819main ()
6820{
93613951 6821
d1154eb4
TT
6822 ;
6823 return 0;
6824}
6825_ACEOF
93613951
TT
6826if ac_fn_c_try_compile "$LINENO"; then :
6827 gl_cv_cc_vis_werror=yes
d1154eb4 6828else
93613951 6829 gl_cv_cc_vis_werror=no
d1154eb4 6830fi
93613951
TT
6831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 CFLAGS="$gl_save_CFLAGS"
d1154eb4
TT
6833fi
6834
93613951
TT
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6836$as_echo "$gl_cv_cc_vis_werror" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6838$as_echo_n "checking for simple visibility declarations... " >&6; }
6839 if ${gl_cv_cc_visibility+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841else
d1154eb4 6842
93613951
TT
6843 gl_save_CFLAGS="$CFLAGS"
6844 CFLAGS="$CFLAGS -fvisibility=hidden"
6845 if test $gl_cv_cc_vis_werror = yes; then
6846 CFLAGS="$CFLAGS -Werror"
6847 fi
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h. */
6850extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6851 extern __attribute__((__visibility__("default"))) int exportedvar;
6852 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6853 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6854 void dummyfunc (void) {}
d1154eb4 6855
93613951
TT
6856int
6857main ()
6858{
d1154eb4 6859
93613951
TT
6860 ;
6861 return 0;
6862}
6863_ACEOF
6864if ac_fn_c_try_compile "$LINENO"; then :
6865 gl_cv_cc_visibility=yes
d1154eb4 6866else
93613951
TT
6867 gl_cv_cc_visibility=no
6868fi
6869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870 CFLAGS="$gl_save_CFLAGS"
6871fi
d1154eb4 6872
93613951
TT
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6874$as_echo "$gl_cv_cc_visibility" >&6; }
6875 if test $gl_cv_cc_visibility = yes; then
6876 CFLAG_VISIBILITY="-fvisibility=hidden"
6877 HAVE_VISIBILITY=1
6878 fi
d1154eb4 6879 fi
d1154eb4 6880
d1154eb4
TT
6881
6882
93613951
TT
6883cat >>confdefs.h <<_ACEOF
6884#define HAVE_VISIBILITY $HAVE_VISIBILITY
6885_ACEOF
6886
6887
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6889$as_echo_n "checking for inline... " >&6; }
6890if ${ac_cv_c_inline+:} false; then :
57aa50d4
TT
6891 $as_echo_n "(cached) " >&6
6892else
93613951
TT
6893 ac_cv_c_inline=no
6894for ac_kw in inline __inline__ __inline; do
d1154eb4
TT
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896/* end confdefs.h. */
93613951
TT
6897#ifndef __cplusplus
6898typedef int foo_t;
6899static $ac_kw foo_t static_foo () {return 0; }
6900$ac_kw foo_t foo () {return 0; }
6901#endif
d1154eb4 6902
d1154eb4
TT
6903_ACEOF
6904if ac_fn_c_try_compile "$LINENO"; then :
93613951 6905 ac_cv_c_inline=$ac_kw
57aa50d4 6906fi
d1154eb4 6907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93613951
TT
6908 test "$ac_cv_c_inline" != no && break
6909done
d1154eb4 6910
d1154eb4 6911fi
93613951
TT
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6913$as_echo "$ac_cv_c_inline" >&6; }
d1154eb4 6914
93613951
TT
6915case $ac_cv_c_inline in
6916 inline | yes) ;;
6917 *)
6918 case $ac_cv_c_inline in
6919 no) ac_val=;;
6920 *) ac_val=$ac_cv_c_inline;;
6921 esac
6922 cat >>confdefs.h <<_ACEOF
6923#ifndef __cplusplus
6924#define inline $ac_val
6925#endif
d1154eb4 6926_ACEOF
93613951
TT
6927 ;;
6928esac
d1154eb4 6929
93613951
TT
6930ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6931if test "x$ac_cv_type_size_t" = xyes; then :
d1154eb4 6932
57aa50d4 6933else
d1154eb4 6934
93613951
TT
6935cat >>confdefs.h <<_ACEOF
6936#define size_t unsigned int
d1154eb4 6937_ACEOF
b0cacab0 6938
57aa50d4 6939fi
b0cacab0
TT
6940
6941
93613951
TT
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6943$as_echo_n "checking for stdint.h... " >&6; }
6944if ${gl_cv_header_stdint_h+:} false; then :
57aa50d4 6945 $as_echo_n "(cached) " >&6
b0cacab0 6946else
d1154eb4 6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6948/* end confdefs.h. */
93613951
TT
6949#include <sys/types.h>
6950 #include <stdint.h>
a64c9c13 6951int
b0cacab0
TT
6952main ()
6953{
93613951 6954uintmax_t i = (uintmax_t) -1; return !i;
d1154eb4 6955 ;
b0cacab0 6956 return 0;
a64c9c13 6957}
b0cacab0 6958_ACEOF
d1154eb4 6959if ac_fn_c_try_compile "$LINENO"; then :
93613951 6960 gl_cv_header_stdint_h=yes
b0cacab0 6961else
93613951 6962 gl_cv_header_stdint_h=no
b0cacab0 6963fi
d1154eb4 6964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4 6965fi
93613951
TT
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6967$as_echo "$gl_cv_header_stdint_h" >&6; }
6968 if test $gl_cv_header_stdint_h = yes; then
b0cacab0 6969
93613951
TT
6970cat >>confdefs.h <<_ACEOF
6971#define HAVE_STDINT_H_WITH_UINTMAX 1
d1154eb4 6972_ACEOF
b0cacab0 6973
93613951 6974 fi
b0cacab0 6975
93613951
TT
6976# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6977# for constant arguments. Useless!
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6979$as_echo_n "checking for working alloca.h... " >&6; }
6980if ${ac_cv_working_alloca_h+:} false; then :
39fd3d4f 6981 $as_echo_n "(cached) " >&6
a64c9c13 6982else
57aa50d4 6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6984/* end confdefs.h. */
93613951 6985#include <alloca.h>
57aa50d4
TT
6986int
6987main ()
6988{
93613951
TT
6989char *p = (char *) alloca (2 * sizeof (int));
6990 if (p) return 0;
57aa50d4
TT
6991 ;
6992 return 0;
6993}
b0cacab0 6994_ACEOF
93613951
TT
6995if ac_fn_c_try_link "$LINENO"; then :
6996 ac_cv_working_alloca_h=yes
b0cacab0 6997else
93613951 6998 ac_cv_working_alloca_h=no
57aa50d4 6999fi
93613951
TT
7000rm -f core conftest.err conftest.$ac_objext \
7001 conftest$ac_exeext conftest.$ac_ext
57aa50d4 7002fi
93613951
TT
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7004$as_echo "$ac_cv_working_alloca_h" >&6; }
7005if test $ac_cv_working_alloca_h = yes; then
57aa50d4 7006
93613951 7007$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
57aa50d4 7008
a64c9c13 7009fi
b0cacab0 7010
93613951
TT
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7012$as_echo_n "checking for alloca... " >&6; }
7013if ${ac_cv_func_alloca_works+:} false; then :
57aa50d4 7014 $as_echo_n "(cached) " >&6
b0cacab0 7015else
57aa50d4 7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7017/* end confdefs.h. */
93613951
TT
7018#ifdef __GNUC__
7019# define alloca __builtin_alloca
7020#else
7021# ifdef _MSC_VER
7022# include <malloc.h>
7023# define alloca _alloca
7024# else
7025# ifdef HAVE_ALLOCA_H
7026# include <alloca.h>
7027# else
7028# ifdef _AIX
7029 #pragma alloca
7030# else
7031# ifndef alloca /* predefined by HP cc +Olibcalls */
7032void *alloca (size_t);
7033# endif
7034# endif
7035# endif
7036# endif
7037#endif
b0cacab0 7038
57aa50d4
TT
7039int
7040main ()
b0cacab0 7041{
93613951
TT
7042char *p = (char *) alloca (1);
7043 if (p) return 0;
57aa50d4
TT
7044 ;
7045 return 0;
b0cacab0
TT
7046}
7047_ACEOF
93613951
TT
7048if ac_fn_c_try_link "$LINENO"; then :
7049 ac_cv_func_alloca_works=yes
b0cacab0 7050else
93613951 7051 ac_cv_func_alloca_works=no
57aa50d4 7052fi
93613951
TT
7053rm -f core conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
57aa50d4 7055fi
93613951
TT
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7057$as_echo "$ac_cv_func_alloca_works" >&6; }
57aa50d4 7058
93613951 7059if test $ac_cv_func_alloca_works = yes; then
57aa50d4 7060
93613951 7061$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
57aa50d4 7062
b0cacab0 7063else
93613951
TT
7064 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7065# that cause trouble. Some versions do not even contain alloca or
7066# contain a buggy version. If you still want to use their alloca,
7067# use ar to extract alloca.o from them instead of compiling alloca.c.
b0cacab0 7068
93613951 7069ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
57aa50d4 7070
93613951 7071$as_echo "#define C_ALLOCA 1" >>confdefs.h
57aa50d4 7072
57aa50d4 7073
93613951
TT
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7075$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7076if ${ac_cv_os_cray+:} false; then :
57aa50d4
TT
7077 $as_echo_n "(cached) " >&6
7078else
57aa50d4
TT
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080/* end confdefs.h. */
93613951
TT
7081#if defined CRAY && ! defined CRAY2
7082webecray
7083#else
7084wenotbecray
57aa50d4 7085#endif
b0cacab0 7086
57aa50d4 7087_ACEOF
93613951
TT
7088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7089 $EGREP "webecray" >/dev/null 2>&1; then :
7090 ac_cv_os_cray=yes
7091else
7092 ac_cv_os_cray=no
a64c9c13 7093fi
93613951 7094rm -f conftest*
d1154eb4
TT
7095
7096fi
93613951
TT
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7098$as_echo "$ac_cv_os_cray" >&6; }
7099if test $ac_cv_os_cray = yes; then
7100 for ac_func in _getb67 GETB67 getb67; do
7101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7102ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7103if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
e1052144 7104
57aa50d4 7105cat >>confdefs.h <<_ACEOF
93613951 7106#define CRAY_STACKSEG_END $ac_func
57aa50d4 7107_ACEOF
e1052144 7108
93613951 7109 break
a64c9c13 7110fi
07a0db15 7111
93613951 7112 done
57aa50d4 7113fi
b0cacab0 7114
93613951
TT
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7116$as_echo_n "checking stack direction for C alloca... " >&6; }
7117if ${ac_cv_c_stack_direction+:} false; then :
39fd3d4f 7118 $as_echo_n "(cached) " >&6
93613951
TT
7119else
7120 if test "$cross_compiling" = yes; then :
7121 ac_cv_c_stack_direction=0
b0cacab0 7122else
57aa50d4 7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7124/* end confdefs.h. */
93613951 7125$ac_includes_default
b0cacab0 7126int
93613951 7127find_stack_direction (int *addr, int depth)
b0cacab0 7128{
93613951
TT
7129 int dir, dummy = 0;
7130 if (! addr)
7131 addr = &dummy;
7132 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7133 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7134 return dir + dummy;
b0cacab0 7135}
93636bde 7136
b0cacab0 7137int
93613951 7138main (int argc, char **argv)
b0cacab0 7139{
93613951 7140 return find_stack_direction (0, argc + !argv + 20) < 0;
b0cacab0
TT
7141}
7142_ACEOF
93613951
TT
7143if ac_fn_c_try_run "$LINENO"; then :
7144 ac_cv_c_stack_direction=1
a64c9c13 7145else
93613951 7146 ac_cv_c_stack_direction=-1
b0cacab0 7147fi
93613951
TT
7148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7149 conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0 7150fi
b0cacab0 7151
93613951
TT
7152fi
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7154$as_echo "$ac_cv_c_stack_direction" >&6; }
7155cat >>confdefs.h <<_ACEOF
7156#define STACK_DIRECTION $ac_cv_c_stack_direction
7157_ACEOF
57aa50d4 7158
b0cacab0 7159
57aa50d4 7160fi
b0cacab0 7161
57aa50d4
TT
7162
7163
b0cacab0 7164
93613951
TT
7165 for ac_header in $ac_header_list
7166do :
7167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7168ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7169"
7170if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7171 cat >>confdefs.h <<_ACEOF
7172#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 7173_ACEOF
93613951 7174
a64c9c13 7175fi
07a0db15 7176
93613951 7177done
a64c9c13 7178
a64c9c13 7179
b0cacab0 7180
b0cacab0 7181
a04eba3f 7182
a04eba3f 7183
b0cacab0 7184
b0cacab0 7185
93613951
TT
7186for ac_func in getpagesize
7187do :
7188 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7189if test "x$ac_cv_func_getpagesize" = xyes; then :
7190 cat >>confdefs.h <<_ACEOF
7191#define HAVE_GETPAGESIZE 1
b0cacab0
TT
7192_ACEOF
7193
93613951
TT
7194fi
7195done
b0cacab0 7196
93613951
TT
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7198$as_echo_n "checking for working mmap... " >&6; }
7199if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
39fd3d4f 7200 $as_echo_n "(cached) " >&6
93613951
TT
7201else
7202 if test "$cross_compiling" = yes; then :
7203 ac_cv_func_mmap_fixed_mapped=no
b0cacab0 7204else
57aa50d4 7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7206/* end confdefs.h. */
93613951
TT
7207$ac_includes_default
7208/* malloc might have been renamed as rpl_malloc. */
7209#undef malloc
57aa50d4 7210
93613951
TT
7211/* Thanks to Mike Haertel and Jim Avera for this test.
7212 Here is a matrix of mmap possibilities:
7213 mmap private not fixed
7214 mmap private fixed at somewhere currently unmapped
7215 mmap private fixed at somewhere already mapped
7216 mmap shared not fixed
7217 mmap shared fixed at somewhere currently unmapped
7218 mmap shared fixed at somewhere already mapped
7219 For private mappings, we should verify that changes cannot be read()
7220 back from the file, nor mmap's back from the file at a different
7221 address. (There have been systems where private was not correctly
7222 implemented like the infamous i386 svr4.0, and systems where the
7223 VM page cache was not coherent with the file system buffer cache
7224 like early versions of FreeBSD and possibly contemporary NetBSD.)
7225 For shared mappings, we should conversely verify that changes get
7226 propagated back to all the places they're supposed to be.
7227
7228 Grep wants private fixed already mapped.
7229 The main things grep needs to know about mmap are:
7230 * does it exist and is it safe to write into the mmap'd area
7231 * how to use it (BSD variants) */
7232
7233#include <fcntl.h>
7234#include <sys/mman.h>
7235
7236#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7237char *malloc ();
57aa50d4
TT
7238#endif
7239
93613951
TT
7240/* This mess was copied from the GNU getpagesize.h. */
7241#ifndef HAVE_GETPAGESIZE
7242# ifdef _SC_PAGESIZE
7243# define getpagesize() sysconf(_SC_PAGESIZE)
7244# else /* no _SC_PAGESIZE */
7245# ifdef HAVE_SYS_PARAM_H
7246# include <sys/param.h>
7247# ifdef EXEC_PAGESIZE
7248# define getpagesize() EXEC_PAGESIZE
7249# else /* no EXEC_PAGESIZE */
7250# ifdef NBPG
7251# define getpagesize() NBPG * CLSIZE
7252# ifndef CLSIZE
7253# define CLSIZE 1
7254# endif /* no CLSIZE */
7255# else /* no NBPG */
7256# ifdef NBPC
7257# define getpagesize() NBPC
7258# else /* no NBPC */
7259# ifdef PAGESIZE
7260# define getpagesize() PAGESIZE
7261# endif /* PAGESIZE */
7262# endif /* no NBPC */
7263# endif /* no NBPG */
7264# endif /* no EXEC_PAGESIZE */
7265# else /* no HAVE_SYS_PARAM_H */
7266# define getpagesize() 8192 /* punt totally */
7267# endif /* no HAVE_SYS_PARAM_H */
7268# endif /* no _SC_PAGESIZE */
7269
7270#endif /* no HAVE_GETPAGESIZE */
7271
57aa50d4
TT
7272int
7273main ()
7274{
93613951
TT
7275 char *data, *data2, *data3;
7276 const char *cdata2;
7277 int i, pagesize;
7278 int fd, fd2;
7279
7280 pagesize = getpagesize ();
7281
7282 /* First, make a file with some known garbage in it. */
7283 data = (char *) malloc (pagesize);
7284 if (!data)
7285 return 1;
7286 for (i = 0; i < pagesize; ++i)
7287 *(data + i) = rand ();
7288 umask (0);
7289 fd = creat ("conftest.mmap", 0600);
7290 if (fd < 0)
7291 return 2;
7292 if (write (fd, data, pagesize) != pagesize)
7293 return 3;
7294 close (fd);
7295
7296 /* Next, check that the tail of a page is zero-filled. File must have
7297 non-zero length, otherwise we risk SIGBUS for entire page. */
7298 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7299 if (fd2 < 0)
7300 return 4;
7301 cdata2 = "";
7302 if (write (fd2, cdata2, 1) != 1)
7303 return 5;
7304 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7305 if (data2 == MAP_FAILED)
7306 return 6;
7307 for (i = 0; i < pagesize; ++i)
7308 if (*(data2 + i))
7309 return 7;
7310 close (fd2);
7311 if (munmap (data2, pagesize))
7312 return 8;
7313
7314 /* Next, try to mmap the file at a fixed address which already has
7315 something else allocated at it. If we can, also make sure that
7316 we see the same garbage. */
7317 fd = open ("conftest.mmap", O_RDWR);
7318 if (fd < 0)
7319 return 9;
7320 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7321 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7322 return 10;
7323 for (i = 0; i < pagesize; ++i)
7324 if (*(data + i) != *(data2 + i))
7325 return 11;
7326
7327 /* Finally, make sure that changes to the mapped area do not
7328 percolate back to the file as seen by read(). (This is a bug on
7329 some variants of i386 svr4.0.) */
7330 for (i = 0; i < pagesize; ++i)
7331 *(data2 + i) = *(data2 + i) + 1;
7332 data3 = (char *) malloc (pagesize);
7333 if (!data3)
7334 return 12;
7335 if (read (fd, data3, pagesize) != pagesize)
7336 return 13;
7337 for (i = 0; i < pagesize; ++i)
7338 if (*(data + i) != *(data3 + i))
7339 return 14;
7340 close (fd);
a2df5894
DW
7341 free (data);
7342 free (data3);
57aa50d4
TT
7343 return 0;
7344}
b0cacab0 7345_ACEOF
93613951
TT
7346if ac_fn_c_try_run "$LINENO"; then :
7347 ac_cv_func_mmap_fixed_mapped=yes
b0cacab0 7348else
93613951 7349 ac_cv_func_mmap_fixed_mapped=no
b0cacab0 7350fi
93613951
TT
7351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7352 conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 7353fi
b0cacab0 7354
93613951
TT
7355fi
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7357$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7358if test $ac_cv_func_mmap_fixed_mapped = yes; then
b0cacab0 7359
93613951 7360$as_echo "#define HAVE_MMAP 1" >>confdefs.h
e1052144 7361
93613951
TT
7362fi
7363rm -f conftest.mmap conftest.txt
b0cacab0 7364
e1052144 7365
93613951
TT
7366
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7368$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7369if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
39fd3d4f 7370 $as_echo_n "(cached) " >&6
b0cacab0 7371else
b0cacab0 7372
93613951
TT
7373 gt_cv_int_divbyzero_sigfpe=
7374 case "$host_os" in
7375 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7376 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7377 # compiling. If we were to perform the real test, 1 Crash Report
7378 # dialog window would pop up.
7379 case "$host_cpu" in
7380 i[34567]86 | x86_64)
7381 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7382 esac
7383 ;;
7384 esac
7385 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7386 if test "$cross_compiling" = yes; then :
7387
7388 # Guess based on the CPU.
7389 case "$host_cpu" in
7390 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7391 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7392 *)
7393 gt_cv_int_divbyzero_sigfpe="guessing no";;
7394 esac
57aa50d4 7395
93613951
TT
7396else
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4
TT
7398/* end confdefs.h. */
7399
93613951
TT
7400#include <stdlib.h>
7401#include <signal.h>
b0cacab0 7402
93613951
TT
7403static void
7404sigfpe_handler (int sig)
7405{
7406 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7407 exit (sig != SIGFPE);
7408}
b0cacab0 7409
93613951
TT
7410int x = 1;
7411int y = 0;
7412int z;
7413int nan;
b0cacab0 7414
57aa50d4
TT
7415int main ()
7416{
93613951
TT
7417 signal (SIGFPE, sigfpe_handler);
7418/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7419#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7420 signal (SIGTRAP, sigfpe_handler);
7421#endif
7422/* Linux/SPARC yields signal SIGILL. */
7423#if defined (__sparc__) && defined (__linux__)
7424 signal (SIGILL, sigfpe_handler);
7425#endif
7426
7427 z = x / y;
7428 nan = y / y;
7429 exit (2);
57aa50d4 7430}
93613951 7431
57aa50d4
TT
7432_ACEOF
7433if ac_fn_c_try_run "$LINENO"; then :
93613951 7434 gt_cv_int_divbyzero_sigfpe=yes
57aa50d4 7435else
93613951 7436 gt_cv_int_divbyzero_sigfpe=no
57aa50d4
TT
7437fi
7438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7439 conftest.$ac_objext conftest.beam conftest.$ac_ext
7440fi
7441
93613951 7442 fi
57aa50d4
TT
7443
7444fi
93613951
TT
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7446$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7447 case "$gt_cv_int_divbyzero_sigfpe" in
7448 *yes) value=1;;
7449 *) value=0;;
7450 esac
57aa50d4 7451
93613951
TT
7452cat >>confdefs.h <<_ACEOF
7453#define INTDIV0_RAISES_SIGFPE $value
7454_ACEOF
57aa50d4 7455
57aa50d4 7456
93613951
TT
7457
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7459$as_echo_n "checking for inttypes.h... " >&6; }
7460if ${gl_cv_header_inttypes_h+:} false; then :
39fd3d4f 7461 $as_echo_n "(cached) " >&6
b0cacab0 7462else
57aa50d4 7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7464/* end confdefs.h. */
93613951
TT
7465
7466#include <sys/types.h>
7467#include <inttypes.h>
7468
57aa50d4
TT
7469int
7470main ()
7471{
93613951 7472uintmax_t i = (uintmax_t) -1; return !i;
57aa50d4
TT
7473 ;
7474 return 0;
7475}
7476_ACEOF
93613951
TT
7477if ac_fn_c_try_compile "$LINENO"; then :
7478 gl_cv_header_inttypes_h=yes
57aa50d4 7479else
93613951 7480 gl_cv_header_inttypes_h=no
57aa50d4 7481fi
93613951 7482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4 7483fi
93613951
TT
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7485$as_echo "$gl_cv_header_inttypes_h" >&6; }
7486 if test $gl_cv_header_inttypes_h = yes; then
b0cacab0 7487
93613951
TT
7488cat >>confdefs.h <<_ACEOF
7489#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7490_ACEOF
b0cacab0 7491
93613951 7492 fi
57aa50d4 7493
93613951
TT
7494
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7496$as_echo_n "checking for unsigned long long int... " >&6; }
7497if ${ac_cv_type_unsigned_long_long_int+:} false; then :
57aa50d4
TT
7498 $as_echo_n "(cached) " >&6
7499else
93613951
TT
7500 ac_cv_type_unsigned_long_long_int=yes
7501 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 7503/* end confdefs.h. */
b0cacab0 7504
93613951
TT
7505 /* For now, do not test the preprocessor; as of 2007 there are too many
7506 implementations with broken preprocessors. Perhaps this can
7507 be revisited in 2012. In the meantime, code should not expect
7508 #if to work with literals wider than 32 bits. */
7509 /* Test literals. */
7510 long long int ll = 9223372036854775807ll;
7511 long long int nll = -9223372036854775807LL;
7512 unsigned long long int ull = 18446744073709551615ULL;
7513 /* Test constant expressions. */
7514 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7515 ? 1 : -1)];
7516 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7517 ? 1 : -1)];
7518 int i = 63;
57aa50d4
TT
7519int
7520main ()
7521{
93613951
TT
7522/* Test availability of runtime routines for shift and division. */
7523 long long int llmax = 9223372036854775807ll;
7524 unsigned long long int ullmax = 18446744073709551615ull;
7525 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7526 | (llmax / ll) | (llmax % ll)
7527 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7528 | (ullmax / ull) | (ullmax % ull));
57aa50d4
TT
7529 ;
7530 return 0;
7531}
93613951 7532
57aa50d4
TT
7533_ACEOF
7534if ac_fn_c_try_link "$LINENO"; then :
93613951 7535
57aa50d4 7536else
93613951 7537 ac_cv_type_unsigned_long_long_int=no
57aa50d4
TT
7538fi
7539rm -f core conftest.err conftest.$ac_objext \
7540 conftest$ac_exeext conftest.$ac_ext
93613951 7541 fi
57aa50d4 7542fi
93613951
TT
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7544$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7545 if test $ac_cv_type_unsigned_long_long_int = yes; then
b0cacab0 7546
93613951 7547$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
57aa50d4 7548
93613951 7549 fi
57aa50d4 7550
57aa50d4 7551
57aa50d4 7552
57aa50d4 7553
93613951 7554 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
57aa50d4 7555
93613951
TT
7556 test $ac_cv_type_unsigned_long_long_int = yes \
7557 && ac_type='unsigned long long' \
7558 || ac_type='unsigned long'
b0cacab0 7559
93613951
TT
7560cat >>confdefs.h <<_ACEOF
7561#define uintmax_t $ac_type
57aa50d4 7562_ACEOF
57aa50d4 7563
93613951 7564 else
57aa50d4 7565
93613951
TT
7566$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7567
7568 fi
7569
7570
7571 for ac_header in inttypes.h
7572do :
7573 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7574if test "x$ac_cv_header_inttypes_h" = xyes; then :
7575 cat >>confdefs.h <<_ACEOF
7576#define HAVE_INTTYPES_H 1
57aa50d4
TT
7577_ACEOF
7578
57aa50d4
TT
7579fi
7580
93613951 7581done
57aa50d4 7582
93613951
TT
7583 if test $ac_cv_header_inttypes_h = yes; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7585$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7586if ${gt_cv_inttypes_pri_broken+:} false; then :
57aa50d4
TT
7587 $as_echo_n "(cached) " >&6
7588else
93613951
TT
7589
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 7591/* end confdefs.h. */
93613951
TT
7592
7593#include <inttypes.h>
7594#ifdef PRId32
7595char *p = PRId32;
7596#endif
57aa50d4 7597
b0cacab0 7598int
93613951 7599main ()
b0cacab0 7600{
93613951
TT
7601
7602 ;
7603 return 0;
b0cacab0
TT
7604}
7605_ACEOF
93613951
TT
7606if ac_fn_c_try_compile "$LINENO"; then :
7607 gt_cv_inttypes_pri_broken=no
b0cacab0 7608else
93613951 7609 gt_cv_inttypes_pri_broken=yes
57aa50d4 7610fi
93613951 7611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
7612
7613fi
93613951
TT
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7615$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7616 fi
7617 if test "$gt_cv_inttypes_pri_broken" = yes; then
7618
57aa50d4 7619cat >>confdefs.h <<_ACEOF
93613951 7620#define PRI_MACROS_BROKEN 1
57aa50d4
TT
7621_ACEOF
7622
93613951
TT
7623 PRI_MACROS_BROKEN=1
7624 else
7625 PRI_MACROS_BROKEN=0
7626 fi
b0cacab0 7627
e1052144 7628
61ef2474
TT
7629
7630
7631
61ef2474 7632
93613951
TT
7633
7634 # Check whether --enable-threads was given.
7635if test "${enable_threads+set}" = set; then :
7636 enableval=$enable_threads; gl_use_threads=$enableval
7637else
7638 if test -n "$gl_use_threads_default"; then
7639 gl_use_threads="$gl_use_threads_default"
7640 else
7641 case "$host_os" in
7642 osf*) gl_use_threads=no ;;
7643 cygwin*)
7644 case `uname -r` in
7645 1.[0-5].*) gl_use_threads=no ;;
7646 *) gl_use_threads=yes ;;
7647 esac
7648 ;;
7649 *) gl_use_threads=yes ;;
7650 esac
7651 fi
57aa50d4 7652
b0cacab0 7653fi
57aa50d4 7654
93613951
TT
7655 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7656 # For using <pthread.h>:
7657 case "$host_os" in
7658 osf*)
7659 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7660 # groks <pthread.h>. cc also understands the flag -pthread, but
7661 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7662 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7663 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7664 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7665 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7666 ;;
7667 esac
7668 # Some systems optimize for single-threaded programs by default, and
7669 # need special flags to disable these optimizations. For example, the
7670 # definition of 'errno' in <errno.h>.
7671 case "$host_os" in
7672 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7673 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7674 esac
7675 fi
57aa50d4 7676
61ef2474
TT
7677
7678
7679
7680
93613951
TT
7681 if test "X$prefix" = "XNONE"; then
7682 acl_final_prefix="$ac_default_prefix"
7683 else
7684 acl_final_prefix="$prefix"
7685 fi
7686 if test "X$exec_prefix" = "XNONE"; then
7687 acl_final_exec_prefix='${prefix}'
7688 else
7689 acl_final_exec_prefix="$exec_prefix"
7690 fi
7691 acl_save_prefix="$prefix"
7692 prefix="$acl_final_prefix"
7693 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7694 prefix="$acl_save_prefix"
61ef2474
TT
7695
7696
7697
93613951
TT
7698# Check whether --with-gnu-ld was given.
7699if test "${with_gnu_ld+set}" = set; then :
7700 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7701else
7702 with_gnu_ld=no
7703fi
b0cacab0 7704
93613951
TT
7705# Prepare PATH_SEPARATOR.
7706# The user is always right.
7707if test "${PATH_SEPARATOR+set}" != set; then
7708 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7709 # contains only /bin. Note that ksh looks also at the FPATH variable,
7710 # so we have to set that as well for the test.
7711 PATH_SEPARATOR=:
7712 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7713 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7714 || PATH_SEPARATOR=';'
7715 }
b0cacab0 7716fi
b0cacab0 7717
93613951
TT
7718ac_prog=ld
7719if test "$GCC" = yes; then
7720 # Check if gcc -print-prog-name=ld gives a path.
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7722$as_echo_n "checking for ld used by $CC... " >&6; }
7723 case $host in
7724 *-*-mingw*)
7725 # gcc leaves a trailing carriage return which upsets mingw
7726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7727 *)
7728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7729 esac
7730 case $ac_prog in
7731 # Accept absolute paths.
7732 [\\/]* | ?:[\\/]*)
7733 re_direlt='/[^/][^/]*/\.\./'
7734 # Canonicalize the pathname of ld
7735 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7736 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7737 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7738 done
7739 test -z "$LD" && LD="$ac_prog"
7740 ;;
7741 "")
7742 # If it fails, then pretend we aren't using GCC.
7743 ac_prog=ld
7744 ;;
7745 *)
7746 # If it is relative, then search for the first ld in PATH.
7747 with_gnu_ld=unknown
7748 ;;
7749 esac
7750elif test "$with_gnu_ld" = yes; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7752$as_echo_n "checking for GNU ld... " >&6; }
b0cacab0 7753else
93613951
TT
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7755$as_echo_n "checking for non-GNU ld... " >&6; }
7756fi
7757if ${acl_cv_path_LD+:} false; then :
7758 $as_echo_n "(cached) " >&6
b0cacab0 7759else
93613951
TT
7760 if test -z "$LD"; then
7761 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7762 for ac_dir in $PATH; do
7763 IFS="$acl_save_ifs"
7764 test -z "$ac_dir" && ac_dir=.
7765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7766 acl_cv_path_LD="$ac_dir/$ac_prog"
7767 # Check to see if the program is GNU ld. I'd rather use --version,
7768 # but apparently some variants of GNU ld only accept -v.
7769 # Break only if it was the GNU/non-GNU ld that we prefer.
7770 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7771 *GNU* | *'with BFD'*)
7772 test "$with_gnu_ld" != no && break
7773 ;;
7774 *)
7775 test "$with_gnu_ld" != yes && break
7776 ;;
7777 esac
7778 fi
7779 done
7780 IFS="$acl_save_ifs"
7781else
7782 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7783fi
7784fi
b0cacab0 7785
93613951
TT
7786LD="$acl_cv_path_LD"
7787if test -n "$LD"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7789$as_echo "$LD" >&6; }
7790else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792$as_echo "no" >&6; }
7793fi
7794test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7796$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7797if ${acl_cv_prog_gnu_ld+:} false; then :
7798 $as_echo_n "(cached) " >&6
7799else
7800 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7801case `$LD -v 2>&1 </dev/null` in
7802*GNU* | *'with BFD'*)
7803 acl_cv_prog_gnu_ld=yes
7804 ;;
7805*)
7806 acl_cv_prog_gnu_ld=no
7807 ;;
7808esac
7809fi
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7811$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7812with_gnu_ld=$acl_cv_prog_gnu_ld
b0cacab0 7813
b0cacab0 7814
b0cacab0 7815
b0cacab0 7816
93613951
TT
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7818$as_echo_n "checking for shared library run path origin... " >&6; }
7819if ${acl_cv_rpath+:} false; then :
7820 $as_echo_n "(cached) " >&6
7821else
61ef2474 7822
93613951
TT
7823 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7824 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7825 . ./conftest.sh
7826 rm -f ./conftest.sh
7827 acl_cv_rpath=done
b0cacab0 7828
b0cacab0 7829fi
93613951
TT
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7831$as_echo "$acl_cv_rpath" >&6; }
7832 wl="$acl_cv_wl"
7833 acl_libext="$acl_cv_libext"
7834 acl_shlibext="$acl_cv_shlibext"
7835 acl_libname_spec="$acl_cv_libname_spec"
7836 acl_library_names_spec="$acl_cv_library_names_spec"
7837 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7838 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7839 acl_hardcode_direct="$acl_cv_hardcode_direct"
7840 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7841 # Check whether --enable-rpath was given.
7842if test "${enable_rpath+set}" = set; then :
7843 enableval=$enable_rpath; :
7844else
7845 enable_rpath=yes
b0cacab0 7846fi
b0cacab0 7847
b0cacab0 7848
b0cacab0
TT
7849
7850
93613951
TT
7851 acl_libdirstem=lib
7852 acl_libdirstem2=
7853 case "$host_os" in
7854 solaris*)
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7856$as_echo_n "checking for 64-bit host... " >&6; }
7857if ${gl_cv_solaris_64bit+:} false; then :
39fd3d4f 7858 $as_echo_n "(cached) " >&6
b0cacab0 7859else
57aa50d4 7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
7861/* end confdefs.h. */
7862
93613951
TT
7863#ifdef _LP64
7864sixtyfour bits
b0cacab0
TT
7865#endif
7866
7867_ACEOF
7868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
93613951
TT
7869 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7870 gl_cv_solaris_64bit=yes
b0cacab0 7871else
93613951 7872 gl_cv_solaris_64bit=no
b0cacab0
TT
7873fi
7874rm -f conftest*
7875
7876
b0cacab0 7877fi
93613951
TT
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7879$as_echo "$gl_cv_solaris_64bit" >&6; }
7880 if test $gl_cv_solaris_64bit = yes; then
7881 acl_libdirstem=lib/64
7882 case "$host_cpu" in
7883 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7884 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7885 esac
7886 fi
7887 ;;
7888 *)
7889 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7890 if test -n "$searchpath"; then
7891 acl_save_IFS="${IFS= }"; IFS=":"
7892 for searchdir in $searchpath; do
7893 if test -d "$searchdir"; then
7894 case "$searchdir" in
7895 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7896 */../ | */.. )
7897 # Better ignore directories of this form. They are misleading.
7898 ;;
7899 *) searchdir=`cd "$searchdir" && pwd`
7900 case "$searchdir" in
7901 */lib64 ) acl_libdirstem=lib64 ;;
7902 esac ;;
7903 esac
7904 fi
7905 done
7906 IFS="$acl_save_IFS"
7907 fi
7908 ;;
7909 esac
7910 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
b0cacab0
TT
7911
7912
7913
93613951
TT
7914 gl_threads_api=none
7915 LIBTHREAD=
7916 LTLIBTHREAD=
7917 LIBMULTITHREAD=
7918 LTLIBMULTITHREAD=
7919 if test "$gl_use_threads" != no; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7921$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7922if ${gl_cv_have_weak+:} false; then :
39fd3d4f 7923 $as_echo_n "(cached) " >&6
b0cacab0 7924else
93613951
TT
7925 gl_cv_have_weak=no
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7927/* end confdefs.h. */
93613951
TT
7928extern void xyzzy ();
7929#pragma weak xyzzy
7930int
7931main ()
b0cacab0 7932{
93613951
TT
7933xyzzy();
7934 ;
7935 return 0;
b0cacab0 7936}
93613951
TT
7937_ACEOF
7938if ac_fn_c_try_link "$LINENO"; then :
7939 gl_cv_have_weak=maybe
7940fi
7941rm -f core conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
7943 if test $gl_cv_have_weak = maybe; then
7944 if test "$cross_compiling" = yes; then :
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946/* end confdefs.h. */
7947#ifdef __ELF__
7948 Extensible Linking Format
7949 #endif
b0cacab0 7950
93613951
TT
7951_ACEOF
7952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7953 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7954 gl_cv_have_weak="guessing yes"
7955else
7956 gl_cv_have_weak="guessing no"
7957fi
7958rm -f conftest*
b0cacab0 7959
b0cacab0
TT
7960
7961else
57aa50d4 7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7963/* end confdefs.h. */
b0cacab0 7964
93613951
TT
7965#include <stdio.h>
7966#pragma weak fputs
b0cacab0 7967int main ()
a04eba3f 7968{
93613951 7969 return (fputs == NULL);
a04eba3f 7970}
b0cacab0 7971_ACEOF
57aa50d4 7972if ac_fn_c_try_run "$LINENO"; then :
93613951 7973 gl_cv_have_weak=yes
a64c9c13 7974else
93613951 7975 gl_cv_have_weak=no
b0cacab0 7976fi
57aa50d4
TT
7977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7978 conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0
TT
7979fi
7980
93613951 7981 fi
e1052144 7982
b0cacab0 7983fi
93613951
TT
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7985$as_echo "$gl_cv_have_weak" >&6; }
7986 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7987 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7988 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7989 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7990if test "x$ac_cv_header_pthread_h" = xyes; then :
7991 gl_have_pthread_h=yes
7992else
7993 gl_have_pthread_h=no
7994fi
b0cacab0
TT
7995
7996
93613951
TT
7997 if test "$gl_have_pthread_h" = yes; then
7998 # Other possible tests:
7999 # -lpthreads (FSU threads, PCthreads)
8000 # -lgthreads
8001 gl_have_pthread=
8002 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
8003 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
8004 # the second one only in libpthread, and lock.c needs it.
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 8006/* end confdefs.h. */
93613951 8007#include <pthread.h>
b0cacab0
TT
8008int
8009main ()
8010{
93613951
TT
8011pthread_mutex_lock((pthread_mutex_t*)0);
8012 pthread_mutexattr_init((pthread_mutexattr_t*)0);
b0cacab0
TT
8013 ;
8014 return 0;
8015}
8016_ACEOF
57aa50d4 8017if ac_fn_c_try_link "$LINENO"; then :
93613951 8018 gl_have_pthread=yes
b0cacab0 8019fi
57aa50d4
TT
8020rm -f core conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
93613951
TT
8022 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
8023 # since it is defined as a macro on OSF/1.)
8024 if test -n "$gl_have_pthread"; then
8025 # The program links fine without libpthread. But it may actually
8026 # need to link with libpthread in order to create multiple threads.
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8028$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8029if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
39fd3d4f 8030 $as_echo_n "(cached) " >&6
b0cacab0 8031else
93613951
TT
8032 ac_check_lib_save_LIBS=$LIBS
8033LIBS="-lpthread $LIBS"
8034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 8035/* end confdefs.h. */
93613951
TT
8036
8037/* Override any GCC internal prototype to avoid an error.
8038 Use char because int might match the return type of a GCC
8039 builtin and then its argument prototype would still apply. */
8040#ifdef __cplusplus
8041extern "C"
8042#endif
8043char pthread_kill ();
b0cacab0
TT
8044int
8045main ()
8046{
93613951 8047return pthread_kill ();
b0cacab0
TT
8048 ;
8049 return 0;
8050}
8051_ACEOF
93613951
TT
8052if ac_fn_c_try_link "$LINENO"; then :
8053 ac_cv_lib_pthread_pthread_kill=yes
b0cacab0 8054else
93613951 8055 ac_cv_lib_pthread_pthread_kill=no
b0cacab0 8056fi
93613951
TT
8057rm -f core conftest.err conftest.$ac_objext \
8058 conftest$ac_exeext conftest.$ac_ext
8059LIBS=$ac_check_lib_save_LIBS
b0cacab0 8060fi
93613951
TT
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8062$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8063if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8064 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8065 # On Solaris and HP-UX, most pthread functions exist also in libc.
8066 # Therefore pthread_in_use() needs to actually try to create a
8067 # thread: pthread_create from libc will fail, whereas
8068 # pthread_create will actually create a thread.
8069 case "$host_os" in
8070 solaris* | hpux*)
b0cacab0 8071
93613951 8072$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
b0cacab0 8073
93613951 8074 esac
b0cacab0 8075
93613951 8076fi
b0cacab0 8077
93613951
TT
8078 else
8079 # Some library is needed. Try libpthread and libc_r.
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8081$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8082if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
39fd3d4f 8083 $as_echo_n "(cached) " >&6
b0cacab0 8084else
93613951
TT
8085 ac_check_lib_save_LIBS=$LIBS
8086LIBS="-lpthread $LIBS"
8087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 8088/* end confdefs.h. */
b0cacab0 8089
93613951
TT
8090/* Override any GCC internal prototype to avoid an error.
8091 Use char because int might match the return type of a GCC
8092 builtin and then its argument prototype would still apply. */
8093#ifdef __cplusplus
8094extern "C"
8095#endif
8096char pthread_kill ();
b0cacab0
TT
8097int
8098main ()
8099{
93613951 8100return pthread_kill ();
b0cacab0
TT
8101 ;
8102 return 0;
8103}
8104_ACEOF
93613951
TT
8105if ac_fn_c_try_link "$LINENO"; then :
8106 ac_cv_lib_pthread_pthread_kill=yes
b0cacab0 8107else
93613951 8108 ac_cv_lib_pthread_pthread_kill=no
b0cacab0 8109fi
93613951
TT
8110rm -f core conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112LIBS=$ac_check_lib_save_LIBS
b0cacab0 8113fi
93613951
TT
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8115$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8116if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8117 gl_have_pthread=yes
8118 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8119 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
b0cacab0
TT
8120fi
8121
93613951
TT
8122 if test -z "$gl_have_pthread"; then
8123 # For FreeBSD 4.
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8125$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8126if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8127 $as_echo_n "(cached) " >&6
8128else
8129 ac_check_lib_save_LIBS=$LIBS
8130LIBS="-lc_r $LIBS"
8131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
8132/* end confdefs.h. */
8133
93613951
TT
8134/* Override any GCC internal prototype to avoid an error.
8135 Use char because int might match the return type of a GCC
8136 builtin and then its argument prototype would still apply. */
8137#ifdef __cplusplus
8138extern "C"
b0cacab0 8139#endif
93613951
TT
8140char pthread_kill ();
8141int
8142main ()
8143{
8144return pthread_kill ();
8145 ;
8146 return 0;
8147}
b0cacab0 8148_ACEOF
93613951
TT
8149if ac_fn_c_try_link "$LINENO"; then :
8150 ac_cv_lib_c_r_pthread_kill=yes
b0cacab0 8151else
93613951 8152 ac_cv_lib_c_r_pthread_kill=no
57aa50d4 8153fi
93613951
TT
8154rm -f core conftest.err conftest.$ac_objext \
8155 conftest$ac_exeext conftest.$ac_ext
8156LIBS=$ac_check_lib_save_LIBS
8157fi
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8159$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8160if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8161 gl_have_pthread=yes
8162 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8163 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
b0cacab0 8164fi
e1052144 8165
93613951
TT
8166 fi
8167 fi
8168 if test -n "$gl_have_pthread"; then
8169 gl_threads_api=posix
57aa50d4 8170
93613951 8171$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
57aa50d4 8172
93613951
TT
8173 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8174 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
b0cacab0 8175
93613951 8176$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
b0cacab0 8177
93613951
TT
8178 LIBTHREAD=
8179 LTLIBTHREAD=
8180 fi
8181 fi
8182 fi
8183 fi
8184 fi
8185 if test -z "$gl_have_pthread"; then
8186 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8187 gl_have_solaristhread=
8188 gl_save_LIBS="$LIBS"
8189 LIBS="$LIBS -lthread"
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 8191/* end confdefs.h. */
93613951
TT
8192
8193#include <thread.h>
8194#include <synch.h>
57aa50d4 8195
b0cacab0
TT
8196int
8197main ()
8198{
93613951 8199thr_self();
b0cacab0
TT
8200 ;
8201 return 0;
8202}
8203_ACEOF
93613951
TT
8204if ac_fn_c_try_link "$LINENO"; then :
8205 gl_have_solaristhread=yes
b0cacab0 8206fi
93613951
TT
8207rm -f core conftest.err conftest.$ac_objext \
8208 conftest$ac_exeext conftest.$ac_ext
8209 LIBS="$gl_save_LIBS"
8210 if test -n "$gl_have_solaristhread"; then
8211 gl_threads_api=solaris
8212 LIBTHREAD=-lthread
8213 LTLIBTHREAD=-lthread
8214 LIBMULTITHREAD="$LIBTHREAD"
8215 LTLIBMULTITHREAD="$LTLIBTHREAD"
8216
8217$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8218
8219 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8220
8221$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8222
8223 LIBTHREAD=
8224 LTLIBTHREAD=
8225 fi
8226 fi
57aa50d4 8227 fi
57aa50d4 8228 fi
93613951
TT
8229 if test "$gl_use_threads" = pth; then
8230 gl_save_CPPFLAGS="$CPPFLAGS"
b0cacab0 8231
e1052144 8232
e1052144 8233
b0cacab0 8234
57aa50d4 8235
93613951
TT
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8237$as_echo_n "checking how to link with libpth... " >&6; }
8238if ${ac_cv_libpth_libs+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240else
e1052144 8241
b0cacab0 8242
b0cacab0 8243
29a5deed 8244
b0cacab0 8245
b0cacab0 8246
b0cacab0 8247
e1052144 8248
57aa50d4 8249 use_additional=yes
b0cacab0 8250
57aa50d4
TT
8251 acl_save_prefix="$prefix"
8252 prefix="$acl_final_prefix"
8253 acl_save_exec_prefix="$exec_prefix"
8254 exec_prefix="$acl_final_exec_prefix"
b0cacab0 8255
57aa50d4
TT
8256 eval additional_includedir=\"$includedir\"
8257 eval additional_libdir=\"$libdir\"
b0cacab0 8258
57aa50d4
TT
8259 exec_prefix="$acl_save_exec_prefix"
8260 prefix="$acl_save_prefix"
b0cacab0 8261
e1052144 8262
93613951
TT
8263# Check whether --with-libpth-prefix was given.
8264if test "${with_libpth_prefix+set}" = set; then :
8265 withval=$with_libpth_prefix;
57aa50d4
TT
8266 if test "X$withval" = "Xno"; then
8267 use_additional=no
8268 else
8269 if test "X$withval" = "X"; then
b0cacab0 8270
57aa50d4
TT
8271 acl_save_prefix="$prefix"
8272 prefix="$acl_final_prefix"
8273 acl_save_exec_prefix="$exec_prefix"
8274 exec_prefix="$acl_final_exec_prefix"
e1052144 8275
57aa50d4
TT
8276 eval additional_includedir=\"$includedir\"
8277 eval additional_libdir=\"$libdir\"
e1052144 8278
57aa50d4
TT
8279 exec_prefix="$acl_save_exec_prefix"
8280 prefix="$acl_save_prefix"
b0cacab0 8281
57aa50d4
TT
8282 else
8283 additional_includedir="$withval/include"
93613951
TT
8284 additional_libdir="$withval/$acl_libdirstem"
8285 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8286 && ! test -d "$withval/$acl_libdirstem"; then
8287 additional_libdir="$withval/$acl_libdirstem2"
8288 fi
57aa50d4
TT
8289 fi
8290 fi
b0cacab0 8291
b0cacab0 8292fi
e1052144 8293
93613951
TT
8294 LIBPTH=
8295 LTLIBPTH=
8296 INCPTH=
8297 LIBPTH_PREFIX=
8298 HAVE_LIBPTH=
a04eba3f
TT
8299 rpathdirs=
8300 ltrpathdirs=
8301 names_already_handled=
93613951 8302 names_next_round='pth '
a04eba3f
TT
8303 while test -n "$names_next_round"; do
8304 names_this_round="$names_next_round"
8305 names_next_round=
8306 for name in $names_this_round; do
8307 already_handled=
8308 for n in $names_already_handled; do
8309 if test "$n" = "$name"; then
8310 already_handled=yes
8311 break
8312 fi
8313 done
8314 if test -z "$already_handled"; then
8315 names_already_handled="$names_already_handled $name"
93613951 8316 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
a04eba3f
TT
8317 eval value=\"\$HAVE_LIB$uppername\"
8318 if test -n "$value"; then
8319 if test "$value" = yes; then
8320 eval value=\"\$LIB$uppername\"
93613951 8321 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
a04eba3f 8322 eval value=\"\$LTLIB$uppername\"
93613951 8323 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
a04eba3f
TT
8324 else
8325 :
8326 fi
8327 else
8328 found_dir=
8329 found_la=
8330 found_so=
8331 found_a=
93613951
TT
8332 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8333 if test -n "$acl_shlibext"; then
8334 shrext=".$acl_shlibext" # typically: shrext=.so
8335 else
8336 shrext=
8337 fi
a04eba3f 8338 if test $use_additional = yes; then
93613951
TT
8339 dir="$additional_libdir"
8340 if test -n "$acl_shlibext"; then
8341 if test -f "$dir/$libname$shrext"; then
8342 found_dir="$dir"
8343 found_so="$dir/$libname$shrext"
8344 else
8345 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8346 ver=`(cd "$dir" && \
8347 for f in "$libname$shrext".*; do echo "$f"; done \
8348 | sed -e "s,^$libname$shrext\\\\.,," \
8349 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8350 | sed 1q ) 2>/dev/null`
8351 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8352 found_dir="$dir"
8353 found_so="$dir/$libname$shrext.$ver"
8354 fi
8355 else
8356 eval library_names=\"$acl_library_names_spec\"
8357 for f in $library_names; do
8358 if test -f "$dir/$f"; then
8359 found_dir="$dir"
8360 found_so="$dir/$f"
8361 break
8362 fi
8363 done
a04eba3f
TT
8364 fi
8365 fi
93613951
TT
8366 fi
8367 if test "X$found_dir" = "X"; then
8368 if test -f "$dir/$libname.$acl_libext"; then
8369 found_dir="$dir"
8370 found_a="$dir/$libname.$acl_libext"
8371 fi
8372 fi
8373 if test "X$found_dir" != "X"; then
8374 if test -f "$dir/$libname.la"; then
8375 found_la="$dir/$libname.la"
8376 fi
a04eba3f
TT
8377 fi
8378 fi
8379 if test "X$found_dir" = "X"; then
93613951 8380 for x in $LDFLAGS $LTLIBPTH; do
b0cacab0 8381
a04eba3f
TT
8382 acl_save_prefix="$prefix"
8383 prefix="$acl_final_prefix"
8384 acl_save_exec_prefix="$exec_prefix"
8385 exec_prefix="$acl_final_exec_prefix"
8386 eval x=\"$x\"
8387 exec_prefix="$acl_save_exec_prefix"
8388 prefix="$acl_save_prefix"
8389
8390 case "$x" in
8391 -L*)
8392 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951
TT
8393 if test -n "$acl_shlibext"; then
8394 if test -f "$dir/$libname$shrext"; then
a04eba3f 8395 found_dir="$dir"
93613951
TT
8396 found_so="$dir/$libname$shrext"
8397 else
8398 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8399 ver=`(cd "$dir" && \
8400 for f in "$libname$shrext".*; do echo "$f"; done \
8401 | sed -e "s,^$libname$shrext\\\\.,," \
8402 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8403 | sed 1q ) 2>/dev/null`
8404 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8405 found_dir="$dir"
8406 found_so="$dir/$libname$shrext.$ver"
8407 fi
8408 else
8409 eval library_names=\"$acl_library_names_spec\"
8410 for f in $library_names; do
8411 if test -f "$dir/$f"; then
8412 found_dir="$dir"
8413 found_so="$dir/$f"
8414 break
8415 fi
8416 done
a04eba3f
TT
8417 fi
8418 fi
93613951
TT
8419 fi
8420 if test "X$found_dir" = "X"; then
8421 if test -f "$dir/$libname.$acl_libext"; then
8422 found_dir="$dir"
8423 found_a="$dir/$libname.$acl_libext"
8424 fi
8425 fi
8426 if test "X$found_dir" != "X"; then
8427 if test -f "$dir/$libname.la"; then
8428 found_la="$dir/$libname.la"
8429 fi
a04eba3f
TT
8430 fi
8431 ;;
8432 esac
8433 if test "X$found_dir" != "X"; then
8434 break
8435 fi
8436 done
8437 fi
8438 if test "X$found_dir" != "X"; then
93613951 8439 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
a04eba3f 8440 if test "X$found_so" != "X"; then
93613951
TT
8441 if test "$enable_rpath" = no \
8442 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8443 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8444 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f
TT
8445 else
8446 haveit=
8447 for x in $ltrpathdirs; do
8448 if test "X$x" = "X$found_dir"; then
8449 haveit=yes
8450 break
8451 fi
8452 done
8453 if test -z "$haveit"; then
8454 ltrpathdirs="$ltrpathdirs $found_dir"
8455 fi
93613951
TT
8456 if test "$acl_hardcode_direct" = yes; then
8457 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f 8458 else
93613951
TT
8459 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8460 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f
TT
8461 haveit=
8462 for x in $rpathdirs; do
8463 if test "X$x" = "X$found_dir"; then
8464 haveit=yes
8465 break
8466 fi
8467 done
8468 if test -z "$haveit"; then
8469 rpathdirs="$rpathdirs $found_dir"
8470 fi
8471 else
8472 haveit=
93613951 8473 for x in $LDFLAGS $LIBPTH; do
b0cacab0 8474
a04eba3f
TT
8475 acl_save_prefix="$prefix"
8476 prefix="$acl_final_prefix"
8477 acl_save_exec_prefix="$exec_prefix"
8478 exec_prefix="$acl_final_exec_prefix"
8479 eval x=\"$x\"
8480 exec_prefix="$acl_save_exec_prefix"
8481 prefix="$acl_save_prefix"
8482
8483 if test "X$x" = "X-L$found_dir"; then
8484 haveit=yes
8485 break
8486 fi
8487 done
8488 if test -z "$haveit"; then
93613951 8489 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
a04eba3f 8490 fi
93613951
TT
8491 if test "$acl_hardcode_minus_L" != no; then
8492 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f 8493 else
93613951 8494 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
a04eba3f
TT
8495 fi
8496 fi
8497 fi
8498 fi
8499 else
8500 if test "X$found_a" != "X"; then
93613951 8501 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
a04eba3f 8502 else
93613951 8503 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
a04eba3f
TT
8504 fi
8505 fi
8506 additional_includedir=
8507 case "$found_dir" in
93613951
TT
8508 */$acl_libdirstem | */$acl_libdirstem/)
8509 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8510 if test "$name" = 'pth'; then
8511 LIBPTH_PREFIX="$basedir"
8512 fi
8513 additional_includedir="$basedir/include"
8514 ;;
8515 */$acl_libdirstem2 | */$acl_libdirstem2/)
8516 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8517 if test "$name" = 'pth'; then
8518 LIBPTH_PREFIX="$basedir"
8519 fi
a04eba3f
TT
8520 additional_includedir="$basedir/include"
8521 ;;
8522 esac
8523 if test "X$additional_includedir" != "X"; then
8524 if test "X$additional_includedir" != "X/usr/include"; then
8525 haveit=
8526 if test "X$additional_includedir" = "X/usr/local/include"; then
8527 if test -n "$GCC"; then
8528 case $host_os in
93613951 8529 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
a04eba3f
TT
8530 esac
8531 fi
8532 fi
8533 if test -z "$haveit"; then
93613951 8534 for x in $CPPFLAGS $INCPTH; do
b0cacab0 8535
a04eba3f
TT
8536 acl_save_prefix="$prefix"
8537 prefix="$acl_final_prefix"
8538 acl_save_exec_prefix="$exec_prefix"
8539 exec_prefix="$acl_final_exec_prefix"
8540 eval x=\"$x\"
8541 exec_prefix="$acl_save_exec_prefix"
8542 prefix="$acl_save_prefix"
8543
8544 if test "X$x" = "X-I$additional_includedir"; then
8545 haveit=yes
8546 break
8547 fi
8548 done
8549 if test -z "$haveit"; then
8550 if test -d "$additional_includedir"; then
93613951 8551 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
a04eba3f
TT
8552 fi
8553 fi
8554 fi
8555 fi
8556 fi
8557 if test -n "$found_la"; then
8558 save_libdir="$libdir"
8559 case "$found_la" in
8560 */* | *\\*) . "$found_la" ;;
8561 *) . "./$found_la" ;;
8562 esac
8563 libdir="$save_libdir"
8564 for dep in $dependency_libs; do
8565 case "$dep" in
8566 -L*)
8567 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
93613951
TT
8568 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8569 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
a04eba3f 8570 haveit=
93613951
TT
8571 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8572 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
a04eba3f
TT
8573 if test -n "$GCC"; then
8574 case $host_os in
93613951 8575 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
a04eba3f
TT
8576 esac
8577 fi
8578 fi
8579 if test -z "$haveit"; then
8580 haveit=
93613951 8581 for x in $LDFLAGS $LIBPTH; do
b0cacab0 8582
a04eba3f
TT
8583 acl_save_prefix="$prefix"
8584 prefix="$acl_final_prefix"
8585 acl_save_exec_prefix="$exec_prefix"
8586 exec_prefix="$acl_final_exec_prefix"
8587 eval x=\"$x\"
8588 exec_prefix="$acl_save_exec_prefix"
8589 prefix="$acl_save_prefix"
8590
8591 if test "X$x" = "X-L$additional_libdir"; then
8592 haveit=yes
8593 break
8594 fi
8595 done
8596 if test -z "$haveit"; then
8597 if test -d "$additional_libdir"; then
93613951 8598 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
a04eba3f
TT
8599 fi
8600 fi
8601 haveit=
93613951 8602 for x in $LDFLAGS $LTLIBPTH; do
b0cacab0 8603
a04eba3f
TT
8604 acl_save_prefix="$prefix"
8605 prefix="$acl_final_prefix"
8606 acl_save_exec_prefix="$exec_prefix"
8607 exec_prefix="$acl_final_exec_prefix"
8608 eval x=\"$x\"
8609 exec_prefix="$acl_save_exec_prefix"
8610 prefix="$acl_save_prefix"
8611
8612 if test "X$x" = "X-L$additional_libdir"; then
8613 haveit=yes
8614 break
8615 fi
8616 done
8617 if test -z "$haveit"; then
8618 if test -d "$additional_libdir"; then
93613951 8619 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
a04eba3f
TT
8620 fi
8621 fi
8622 fi
8623 fi
8624 ;;
8625 -R*)
8626 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8627 if test "$enable_rpath" != no; then
8628 haveit=
8629 for x in $rpathdirs; do
8630 if test "X$x" = "X$dir"; then
8631 haveit=yes
8632 break
8633 fi
8634 done
8635 if test -z "$haveit"; then
8636 rpathdirs="$rpathdirs $dir"
8637 fi
8638 haveit=
8639 for x in $ltrpathdirs; do
8640 if test "X$x" = "X$dir"; then
8641 haveit=yes
8642 break
8643 fi
8644 done
8645 if test -z "$haveit"; then
8646 ltrpathdirs="$ltrpathdirs $dir"
8647 fi
8648 fi
8649 ;;
8650 -l*)
8651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8652 ;;
8653 *.la)
8654 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8655 ;;
8656 *)
93613951
TT
8657 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8658 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
a04eba3f
TT
8659 ;;
8660 esac
8661 done
8662 fi
8663 else
93613951
TT
8664 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8665 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
a04eba3f
TT
8666 fi
8667 fi
8668 fi
8669 done
8670 done
8671 if test "X$rpathdirs" != "X"; then
93613951 8672 if test -n "$acl_hardcode_libdir_separator"; then
a04eba3f
TT
8673 alldirs=
8674 for found_dir in $rpathdirs; do
93613951 8675 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
a04eba3f
TT
8676 done
8677 acl_save_libdir="$libdir"
8678 libdir="$alldirs"
93613951 8679 eval flag=\"$acl_hardcode_libdir_flag_spec\"
a04eba3f 8680 libdir="$acl_save_libdir"
93613951 8681 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
a04eba3f
TT
8682 else
8683 for found_dir in $rpathdirs; do
8684 acl_save_libdir="$libdir"
8685 libdir="$found_dir"
93613951 8686 eval flag=\"$acl_hardcode_libdir_flag_spec\"
a04eba3f 8687 libdir="$acl_save_libdir"
93613951 8688 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
a04eba3f
TT
8689 done
8690 fi
8691 fi
8692 if test "X$ltrpathdirs" != "X"; then
8693 for found_dir in $ltrpathdirs; do
93613951 8694 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
a04eba3f 8695 done
b0cacab0 8696 fi
b0cacab0 8697
a04eba3f 8698
93636bde 8699
a64c9c13 8700
93636bde 8701
b0cacab0 8702
93613951
TT
8703 ac_cv_libpth_libs="$LIBPTH"
8704 ac_cv_libpth_ltlibs="$LTLIBPTH"
8705 ac_cv_libpth_cppflags="$INCPTH"
8706 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8707
8708fi
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8710$as_echo "$ac_cv_libpth_libs" >&6; }
8711 LIBPTH="$ac_cv_libpth_libs"
8712 LTLIBPTH="$ac_cv_libpth_ltlibs"
8713 INCPTH="$ac_cv_libpth_cppflags"
8714 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8715
8716 for element in $INCPTH; do
8717 haveit=
8718 for x in $CPPFLAGS; do
8719
8720 acl_save_prefix="$prefix"
8721 prefix="$acl_final_prefix"
8722 acl_save_exec_prefix="$exec_prefix"
8723 exec_prefix="$acl_final_exec_prefix"
8724 eval x=\"$x\"
8725 exec_prefix="$acl_save_exec_prefix"
8726 prefix="$acl_save_prefix"
8727
8728 if test "X$x" = "X$element"; then
8729 haveit=yes
8730 break
8731 fi
8732 done
8733 if test -z "$haveit"; then
8734 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8735 fi
8736 done
8737
8738
8739
8740
8741 HAVE_LIBPTH=yes
8742
8743
8744
8745 gl_have_pth=
8746 gl_save_LIBS="$LIBS"
8747 LIBS="$LIBS $LIBPTH"
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h. */
8750#include <pth.h>
8751int
8752main ()
8753{
8754pth_self();
8755 ;
8756 return 0;
8757}
8758_ACEOF
8759if ac_fn_c_try_link "$LINENO"; then :
8760 gl_have_pth=yes
8761fi
8762rm -f core conftest.err conftest.$ac_objext \
8763 conftest$ac_exeext conftest.$ac_ext
8764 LIBS="$gl_save_LIBS"
8765 if test -n "$gl_have_pth"; then
8766 gl_threads_api=pth
8767 LIBTHREAD="$LIBPTH"
8768 LTLIBTHREAD="$LTLIBPTH"
8769 LIBMULTITHREAD="$LIBTHREAD"
8770 LTLIBMULTITHREAD="$LTLIBTHREAD"
8771
8772$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8773
8774 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8775 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8776
8777$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8778
8779 LIBTHREAD=
8780 LTLIBTHREAD=
8781 fi
8782 fi
8783 else
8784 CPPFLAGS="$gl_save_CPPFLAGS"
8785 fi
8786 fi
8787 if test -z "$gl_have_pthread"; then
8788 case "$gl_use_threads" in
8789 yes | windows | win32) # The 'win32' is for backward compatibility.
8790 if { case "$host_os" in
8791 mingw*) true;;
8792 *) false;;
8793 esac
8794 }; then
8795 gl_threads_api=windows
8796
8797$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8798
8799 fi
8800 ;;
8801 esac
8802 fi
8803 fi
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8805$as_echo_n "checking for multithread API to use... " >&6; }
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8807$as_echo "$gl_threads_api" >&6; }
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819 if test "$gl_threads_api" = posix; then
8820 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8821 # pthread_rwlock_* functions.
8822 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8823"
8824if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8825
8826$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8827
8828fi
8829
8830 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832/* end confdefs.h. */
8833
8834 #include <pthread.h>
8835int
8836main ()
8837{
8838
8839#if __FreeBSD__ == 4
8840error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8841#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8842 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8843error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8844#else
8845int x = (int)PTHREAD_MUTEX_RECURSIVE;
8846return !x;
8847#endif
8848
8849 ;
8850 return 0;
8851}
8852_ACEOF
8853if ac_fn_c_try_compile "$LINENO"; then :
8854
8855$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8856
8857fi
8858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 fi
8860 :
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873 use_additional=yes
8874
8875 acl_save_prefix="$prefix"
8876 prefix="$acl_final_prefix"
8877 acl_save_exec_prefix="$exec_prefix"
8878 exec_prefix="$acl_final_exec_prefix"
8879
8880 eval additional_includedir=\"$includedir\"
8881 eval additional_libdir=\"$libdir\"
8882
8883 exec_prefix="$acl_save_exec_prefix"
8884 prefix="$acl_save_prefix"
8885
8886
8887# Check whether --with-libiconv-prefix was given.
8888if test "${with_libiconv_prefix+set}" = set; then :
8889 withval=$with_libiconv_prefix;
8890 if test "X$withval" = "Xno"; then
8891 use_additional=no
8892 else
8893 if test "X$withval" = "X"; then
8894
8895 acl_save_prefix="$prefix"
8896 prefix="$acl_final_prefix"
8897 acl_save_exec_prefix="$exec_prefix"
8898 exec_prefix="$acl_final_exec_prefix"
8899
8900 eval additional_includedir=\"$includedir\"
8901 eval additional_libdir=\"$libdir\"
8902
8903 exec_prefix="$acl_save_exec_prefix"
8904 prefix="$acl_save_prefix"
8905
8906 else
8907 additional_includedir="$withval/include"
8908 additional_libdir="$withval/$acl_libdirstem"
8909 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8910 && ! test -d "$withval/$acl_libdirstem"; then
8911 additional_libdir="$withval/$acl_libdirstem2"
8912 fi
8913 fi
8914 fi
8915
8916fi
8917
8918 LIBICONV=
8919 LTLIBICONV=
8920 INCICONV=
8921 LIBICONV_PREFIX=
8922 HAVE_LIBICONV=
8923 rpathdirs=
8924 ltrpathdirs=
8925 names_already_handled=
8926 names_next_round='iconv '
8927 while test -n "$names_next_round"; do
8928 names_this_round="$names_next_round"
8929 names_next_round=
8930 for name in $names_this_round; do
8931 already_handled=
8932 for n in $names_already_handled; do
8933 if test "$n" = "$name"; then
8934 already_handled=yes
8935 break
8936 fi
8937 done
8938 if test -z "$already_handled"; then
8939 names_already_handled="$names_already_handled $name"
8940 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8941 eval value=\"\$HAVE_LIB$uppername\"
8942 if test -n "$value"; then
8943 if test "$value" = yes; then
8944 eval value=\"\$LIB$uppername\"
8945 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8946 eval value=\"\$LTLIB$uppername\"
8947 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8948 else
8949 :
8950 fi
8951 else
8952 found_dir=
8953 found_la=
8954 found_so=
8955 found_a=
8956 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8957 if test -n "$acl_shlibext"; then
8958 shrext=".$acl_shlibext" # typically: shrext=.so
8959 else
8960 shrext=
8961 fi
8962 if test $use_additional = yes; then
8963 dir="$additional_libdir"
8964 if test -n "$acl_shlibext"; then
8965 if test -f "$dir/$libname$shrext"; then
8966 found_dir="$dir"
8967 found_so="$dir/$libname$shrext"
8968 else
8969 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8970 ver=`(cd "$dir" && \
8971 for f in "$libname$shrext".*; do echo "$f"; done \
8972 | sed -e "s,^$libname$shrext\\\\.,," \
8973 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8974 | sed 1q ) 2>/dev/null`
8975 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8976 found_dir="$dir"
8977 found_so="$dir/$libname$shrext.$ver"
8978 fi
8979 else
8980 eval library_names=\"$acl_library_names_spec\"
8981 for f in $library_names; do
8982 if test -f "$dir/$f"; then
8983 found_dir="$dir"
8984 found_so="$dir/$f"
8985 break
8986 fi
8987 done
8988 fi
8989 fi
8990 fi
8991 if test "X$found_dir" = "X"; then
8992 if test -f "$dir/$libname.$acl_libext"; then
8993 found_dir="$dir"
8994 found_a="$dir/$libname.$acl_libext"
8995 fi
8996 fi
8997 if test "X$found_dir" != "X"; then
8998 if test -f "$dir/$libname.la"; then
8999 found_la="$dir/$libname.la"
9000 fi
9001 fi
9002 fi
9003 if test "X$found_dir" = "X"; then
9004 for x in $LDFLAGS $LTLIBICONV; do
9005
9006 acl_save_prefix="$prefix"
9007 prefix="$acl_final_prefix"
9008 acl_save_exec_prefix="$exec_prefix"
9009 exec_prefix="$acl_final_exec_prefix"
9010 eval x=\"$x\"
9011 exec_prefix="$acl_save_exec_prefix"
9012 prefix="$acl_save_prefix"
9013
9014 case "$x" in
9015 -L*)
9016 dir=`echo "X$x" | sed -e 's/^X-L//'`
9017 if test -n "$acl_shlibext"; then
9018 if test -f "$dir/$libname$shrext"; then
9019 found_dir="$dir"
9020 found_so="$dir/$libname$shrext"
9021 else
9022 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9023 ver=`(cd "$dir" && \
9024 for f in "$libname$shrext".*; do echo "$f"; done \
9025 | sed -e "s,^$libname$shrext\\\\.,," \
9026 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9027 | sed 1q ) 2>/dev/null`
9028 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9029 found_dir="$dir"
9030 found_so="$dir/$libname$shrext.$ver"
9031 fi
9032 else
9033 eval library_names=\"$acl_library_names_spec\"
9034 for f in $library_names; do
9035 if test -f "$dir/$f"; then
9036 found_dir="$dir"
9037 found_so="$dir/$f"
9038 break
9039 fi
9040 done
9041 fi
9042 fi
9043 fi
9044 if test "X$found_dir" = "X"; then
9045 if test -f "$dir/$libname.$acl_libext"; then
9046 found_dir="$dir"
9047 found_a="$dir/$libname.$acl_libext"
9048 fi
9049 fi
9050 if test "X$found_dir" != "X"; then
9051 if test -f "$dir/$libname.la"; then
9052 found_la="$dir/$libname.la"
9053 fi
9054 fi
9055 ;;
9056 esac
9057 if test "X$found_dir" != "X"; then
9058 break
9059 fi
9060 done
9061 fi
9062 if test "X$found_dir" != "X"; then
9063 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9064 if test "X$found_so" != "X"; then
9065 if test "$enable_rpath" = no \
9066 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9067 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9068 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9069 else
9070 haveit=
9071 for x in $ltrpathdirs; do
9072 if test "X$x" = "X$found_dir"; then
9073 haveit=yes
9074 break
9075 fi
9076 done
9077 if test -z "$haveit"; then
9078 ltrpathdirs="$ltrpathdirs $found_dir"
9079 fi
9080 if test "$acl_hardcode_direct" = yes; then
9081 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9082 else
9083 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9084 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9085 haveit=
9086 for x in $rpathdirs; do
9087 if test "X$x" = "X$found_dir"; then
9088 haveit=yes
9089 break
9090 fi
9091 done
9092 if test -z "$haveit"; then
9093 rpathdirs="$rpathdirs $found_dir"
9094 fi
9095 else
9096 haveit=
9097 for x in $LDFLAGS $LIBICONV; do
9098
9099 acl_save_prefix="$prefix"
9100 prefix="$acl_final_prefix"
9101 acl_save_exec_prefix="$exec_prefix"
9102 exec_prefix="$acl_final_exec_prefix"
9103 eval x=\"$x\"
9104 exec_prefix="$acl_save_exec_prefix"
9105 prefix="$acl_save_prefix"
9106
9107 if test "X$x" = "X-L$found_dir"; then
9108 haveit=yes
9109 break
9110 fi
9111 done
9112 if test -z "$haveit"; then
9113 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9114 fi
9115 if test "$acl_hardcode_minus_L" != no; then
9116 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9117 else
9118 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9119 fi
9120 fi
9121 fi
9122 fi
9123 else
9124 if test "X$found_a" != "X"; then
9125 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9126 else
9127 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9128 fi
9129 fi
9130 additional_includedir=
9131 case "$found_dir" in
9132 */$acl_libdirstem | */$acl_libdirstem/)
9133 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9134 if test "$name" = 'iconv'; then
9135 LIBICONV_PREFIX="$basedir"
9136 fi
9137 additional_includedir="$basedir/include"
9138 ;;
9139 */$acl_libdirstem2 | */$acl_libdirstem2/)
9140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9141 if test "$name" = 'iconv'; then
9142 LIBICONV_PREFIX="$basedir"
9143 fi
9144 additional_includedir="$basedir/include"
9145 ;;
9146 esac
9147 if test "X$additional_includedir" != "X"; then
9148 if test "X$additional_includedir" != "X/usr/include"; then
9149 haveit=
9150 if test "X$additional_includedir" = "X/usr/local/include"; then
9151 if test -n "$GCC"; then
9152 case $host_os in
9153 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9154 esac
9155 fi
9156 fi
9157 if test -z "$haveit"; then
9158 for x in $CPPFLAGS $INCICONV; do
9159
9160 acl_save_prefix="$prefix"
9161 prefix="$acl_final_prefix"
9162 acl_save_exec_prefix="$exec_prefix"
9163 exec_prefix="$acl_final_exec_prefix"
9164 eval x=\"$x\"
9165 exec_prefix="$acl_save_exec_prefix"
9166 prefix="$acl_save_prefix"
9167
9168 if test "X$x" = "X-I$additional_includedir"; then
9169 haveit=yes
9170 break
9171 fi
9172 done
9173 if test -z "$haveit"; then
9174 if test -d "$additional_includedir"; then
9175 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9176 fi
9177 fi
9178 fi
9179 fi
9180 fi
9181 if test -n "$found_la"; then
9182 save_libdir="$libdir"
9183 case "$found_la" in
9184 */* | *\\*) . "$found_la" ;;
9185 *) . "./$found_la" ;;
9186 esac
9187 libdir="$save_libdir"
9188 for dep in $dependency_libs; do
9189 case "$dep" in
9190 -L*)
9191 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9192 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9193 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9194 haveit=
9195 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9196 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9197 if test -n "$GCC"; then
9198 case $host_os in
9199 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9200 esac
9201 fi
9202 fi
9203 if test -z "$haveit"; then
9204 haveit=
9205 for x in $LDFLAGS $LIBICONV; do
9206
9207 acl_save_prefix="$prefix"
9208 prefix="$acl_final_prefix"
9209 acl_save_exec_prefix="$exec_prefix"
9210 exec_prefix="$acl_final_exec_prefix"
9211 eval x=\"$x\"
9212 exec_prefix="$acl_save_exec_prefix"
9213 prefix="$acl_save_prefix"
9214
9215 if test "X$x" = "X-L$additional_libdir"; then
9216 haveit=yes
9217 break
9218 fi
9219 done
9220 if test -z "$haveit"; then
9221 if test -d "$additional_libdir"; then
9222 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9223 fi
9224 fi
9225 haveit=
9226 for x in $LDFLAGS $LTLIBICONV; do
9227
9228 acl_save_prefix="$prefix"
9229 prefix="$acl_final_prefix"
9230 acl_save_exec_prefix="$exec_prefix"
9231 exec_prefix="$acl_final_exec_prefix"
9232 eval x=\"$x\"
9233 exec_prefix="$acl_save_exec_prefix"
9234 prefix="$acl_save_prefix"
9235
9236 if test "X$x" = "X-L$additional_libdir"; then
9237 haveit=yes
9238 break
9239 fi
9240 done
9241 if test -z "$haveit"; then
9242 if test -d "$additional_libdir"; then
9243 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9244 fi
9245 fi
9246 fi
9247 fi
9248 ;;
9249 -R*)
9250 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9251 if test "$enable_rpath" != no; then
9252 haveit=
9253 for x in $rpathdirs; do
9254 if test "X$x" = "X$dir"; then
9255 haveit=yes
9256 break
9257 fi
9258 done
9259 if test -z "$haveit"; then
9260 rpathdirs="$rpathdirs $dir"
9261 fi
9262 haveit=
9263 for x in $ltrpathdirs; do
9264 if test "X$x" = "X$dir"; then
9265 haveit=yes
9266 break
9267 fi
9268 done
9269 if test -z "$haveit"; then
9270 ltrpathdirs="$ltrpathdirs $dir"
9271 fi
9272 fi
9273 ;;
9274 -l*)
9275 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9276 ;;
9277 *.la)
9278 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9279 ;;
9280 *)
9281 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9283 ;;
9284 esac
9285 done
9286 fi
9287 else
9288 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9289 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9290 fi
9291 fi
9292 fi
9293 done
9294 done
9295 if test "X$rpathdirs" != "X"; then
9296 if test -n "$acl_hardcode_libdir_separator"; then
9297 alldirs=
9298 for found_dir in $rpathdirs; do
9299 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9300 done
9301 acl_save_libdir="$libdir"
9302 libdir="$alldirs"
9303 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9304 libdir="$acl_save_libdir"
9305 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9306 else
9307 for found_dir in $rpathdirs; do
9308 acl_save_libdir="$libdir"
9309 libdir="$found_dir"
9310 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9311 libdir="$acl_save_libdir"
9312 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9313 done
9314 fi
9315 fi
9316 if test "X$ltrpathdirs" != "X"; then
9317 for found_dir in $ltrpathdirs; do
9318 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9319 done
9320 fi
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333 am_save_CPPFLAGS="$CPPFLAGS"
9334
9335 for element in $INCICONV; do
9336 haveit=
9337 for x in $CPPFLAGS; do
9338
9339 acl_save_prefix="$prefix"
9340 prefix="$acl_final_prefix"
9341 acl_save_exec_prefix="$exec_prefix"
9342 exec_prefix="$acl_final_exec_prefix"
9343 eval x=\"$x\"
9344 exec_prefix="$acl_save_exec_prefix"
9345 prefix="$acl_save_prefix"
9346
9347 if test "X$x" = "X$element"; then
9348 haveit=yes
9349 break
9350 fi
9351 done
9352 if test -z "$haveit"; then
9353 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9354 fi
9355 done
9356
9357
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9359$as_echo_n "checking for iconv... " >&6; }
9360if ${am_cv_func_iconv+:} false; then :
9361 $as_echo_n "(cached) " >&6
9362else
9363
9364 am_cv_func_iconv="no, consider installing GNU libiconv"
9365 am_cv_lib_iconv=no
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367/* end confdefs.h. */
9368
9369#include <stdlib.h>
9370#include <iconv.h>
9371
9372int
9373main ()
9374{
9375iconv_t cd = iconv_open("","");
9376 iconv(cd,NULL,NULL,NULL,NULL);
9377 iconv_close(cd);
9378 ;
9379 return 0;
9380}
9381_ACEOF
9382if ac_fn_c_try_link "$LINENO"; then :
9383 am_cv_func_iconv=yes
9384fi
9385rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 if test "$am_cv_func_iconv" != yes; then
9388 am_save_LIBS="$LIBS"
9389 LIBS="$LIBS $LIBICONV"
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391/* end confdefs.h. */
9392
9393#include <stdlib.h>
9394#include <iconv.h>
9395
9396int
9397main ()
9398{
9399iconv_t cd = iconv_open("","");
9400 iconv(cd,NULL,NULL,NULL,NULL);
9401 iconv_close(cd);
9402 ;
9403 return 0;
9404}
9405_ACEOF
9406if ac_fn_c_try_link "$LINENO"; then :
9407 am_cv_lib_iconv=yes
9408 am_cv_func_iconv=yes
9409fi
9410rm -f core conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 LIBS="$am_save_LIBS"
9413 fi
9414
9415fi
9416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9417$as_echo "$am_cv_func_iconv" >&6; }
9418 if test "$am_cv_func_iconv" = yes; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9420$as_echo_n "checking for working iconv... " >&6; }
9421if ${am_cv_func_iconv_works+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423else
9424
9425 am_save_LIBS="$LIBS"
9426 if test $am_cv_lib_iconv = yes; then
9427 LIBS="$LIBS $LIBICONV"
9428 fi
9429 if test "$cross_compiling" = yes; then :
9430
9431 case "$host_os" in
9432 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9433 *) am_cv_func_iconv_works="guessing yes" ;;
9434 esac
9435
9436else
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h. */
9439
9440#include <iconv.h>
9441#include <string.h>
9442int main ()
9443{
9444 int result = 0;
9445 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9446 returns. */
9447 {
9448 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9449 if (cd_utf8_to_88591 != (iconv_t)(-1))
9450 {
9451 static const char input[] = "\342\202\254"; /* EURO SIGN */
9452 char buf[10];
9453 const char *inptr = input;
9454 size_t inbytesleft = strlen (input);
9455 char *outptr = buf;
9456 size_t outbytesleft = sizeof (buf);
9457 size_t res = iconv (cd_utf8_to_88591,
9458 (char **) &inptr, &inbytesleft,
9459 &outptr, &outbytesleft);
9460 if (res == 0)
9461 result |= 1;
9462 iconv_close (cd_utf8_to_88591);
9463 }
9464 }
9465 /* Test against Solaris 10 bug: Failures are not distinguishable from
9466 successful returns. */
9467 {
9468 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9469 if (cd_ascii_to_88591 != (iconv_t)(-1))
9470 {
9471 static const char input[] = "\263";
9472 char buf[10];
9473 const char *inptr = input;
9474 size_t inbytesleft = strlen (input);
9475 char *outptr = buf;
9476 size_t outbytesleft = sizeof (buf);
9477 size_t res = iconv (cd_ascii_to_88591,
9478 (char **) &inptr, &inbytesleft,
9479 &outptr, &outbytesleft);
9480 if (res == 0)
9481 result |= 2;
9482 iconv_close (cd_ascii_to_88591);
9483 }
9484 }
9485 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9486 {
9487 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9488 if (cd_88591_to_utf8 != (iconv_t)(-1))
9489 {
9490 static const char input[] = "\304";
9491 static char buf[2] = { (char)0xDE, (char)0xAD };
9492 const char *inptr = input;
9493 size_t inbytesleft = 1;
9494 char *outptr = buf;
9495 size_t outbytesleft = 1;
9496 size_t res = iconv (cd_88591_to_utf8,
9497 (char **) &inptr, &inbytesleft,
9498 &outptr, &outbytesleft);
9499 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9500 result |= 4;
9501 iconv_close (cd_88591_to_utf8);
9502 }
9503 }
9504#if 0 /* This bug could be worked around by the caller. */
9505 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9506 {
9507 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9508 if (cd_88591_to_utf8 != (iconv_t)(-1))
9509 {
9510 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9511 char buf[50];
9512 const char *inptr = input;
9513 size_t inbytesleft = strlen (input);
9514 char *outptr = buf;
9515 size_t outbytesleft = sizeof (buf);
9516 size_t res = iconv (cd_88591_to_utf8,
9517 (char **) &inptr, &inbytesleft,
9518 &outptr, &outbytesleft);
9519 if ((int)res > 0)
9520 result |= 8;
9521 iconv_close (cd_88591_to_utf8);
9522 }
9523 }
9524#endif
9525 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9526 provided. */
9527 if (/* Try standardized names. */
9528 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9529 /* Try IRIX, OSF/1 names. */
9530 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9531 /* Try AIX names. */
9532 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9533 /* Try HP-UX names. */
9534 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9535 result |= 16;
9536 return result;
9537}
9538_ACEOF
9539if ac_fn_c_try_run "$LINENO"; then :
9540 am_cv_func_iconv_works=yes
9541else
9542 am_cv_func_iconv_works=no
9543fi
9544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9545 conftest.$ac_objext conftest.beam conftest.$ac_ext
9546fi
9547
9548 LIBS="$am_save_LIBS"
9549
9550fi
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9552$as_echo "$am_cv_func_iconv_works" >&6; }
9553 case "$am_cv_func_iconv_works" in
9554 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9555 *) am_func_iconv=yes ;;
9556 esac
9557 else
9558 am_func_iconv=no am_cv_lib_iconv=no
9559 fi
9560 if test "$am_func_iconv" = yes; then
9561
9562$as_echo "#define HAVE_ICONV 1" >>confdefs.h
9563
9564 fi
9565 if test "$am_cv_lib_iconv" = yes; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9567$as_echo_n "checking how to link with libiconv... " >&6; }
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9569$as_echo "$LIBICONV" >&6; }
9570 else
9571 CPPFLAGS="$am_save_CPPFLAGS"
9572 LIBICONV=
9573 LTLIBICONV=
9574 fi
9575
9576
9577
9578 if test "$am_cv_func_iconv" = yes; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9580$as_echo_n "checking for iconv declaration... " >&6; }
9581 if ${am_cv_proto_iconv+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583else
9584
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h. */
9587
9588#include <stdlib.h>
9589#include <iconv.h>
9590extern
9591#ifdef __cplusplus
9592"C"
9593#endif
9594#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9595size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9596#else
9597size_t iconv();
9598#endif
9599
9600int
9601main ()
9602{
9603
9604 ;
9605 return 0;
9606}
9607_ACEOF
9608if ac_fn_c_try_compile "$LINENO"; then :
9609 am_cv_proto_iconv_arg1=""
9610else
9611 am_cv_proto_iconv_arg1="const"
9612fi
9613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614 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);"
9615fi
9616
9617 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9619 $am_cv_proto_iconv" >&5
9620$as_echo "
9621 $am_cv_proto_iconv" >&6; }
9622
9623cat >>confdefs.h <<_ACEOF
9624#define ICONV_CONST $am_cv_proto_iconv_arg1
9625_ACEOF
9626
9627
9628 fi
9629
9630
9631
9632
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634/* end confdefs.h. */
9635int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9636int
9637main ()
9638{
9639
9640 ;
9641 return 0;
9642}
9643_ACEOF
9644if ac_fn_c_try_link "$LINENO"; then :
9645
9646$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9647
9648fi
9649rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9651
9652 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9653do :
9654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9655ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9656if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9657 cat >>confdefs.h <<_ACEOF
9658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9659_ACEOF
9660
9661fi
9662
9663done
9664
9665 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9666 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9667 argz_stringify argz_next __fsetlocking
9668do :
9669 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9670ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9671if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9672 cat >>confdefs.h <<_ACEOF
9673#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9674_ACEOF
9675
9676fi
9677done
9678
9679
9680 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9681"
9682if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9683 ac_have_decl=1
9684else
9685 ac_have_decl=0
9686fi
9687
9688cat >>confdefs.h <<_ACEOF
9689#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9690_ACEOF
9691ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9692"
9693if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9694 ac_have_decl=1
9695else
9696 ac_have_decl=0
9697fi
9698
9699cat >>confdefs.h <<_ACEOF
9700#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9701_ACEOF
9702
9703
9704
9705
9706 for ac_prog in bison
9707do
9708 # Extract the first word of "$ac_prog", so it can be a program name with args.
9709set dummy $ac_prog; ac_word=$2
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711$as_echo_n "checking for $ac_word... " >&6; }
9712if ${ac_cv_prog_INTLBISON+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714else
9715 if test -n "$INTLBISON"; then
9716 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9717else
9718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719for as_dir in $PATH
9720do
9721 IFS=$as_save_IFS
9722 test -z "$as_dir" && as_dir=.
9723 for ac_exec_ext in '' $ac_executable_extensions; do
9724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9725 ac_cv_prog_INTLBISON="$ac_prog"
9726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9727 break 2
9728 fi
9729done
9730 done
9731IFS=$as_save_IFS
9732
9733fi
9734fi
9735INTLBISON=$ac_cv_prog_INTLBISON
9736if test -n "$INTLBISON"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9738$as_echo "$INTLBISON" >&6; }
9739else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741$as_echo "no" >&6; }
9742fi
9743
9744
9745 test -n "$INTLBISON" && break
9746done
9747
9748 if test -z "$INTLBISON"; then
9749 ac_verc_fail=yes
9750 else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9752$as_echo_n "checking version of bison... " >&6; }
9753 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9754 case $ac_prog_version in
9755 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9756 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9757 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9758 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9759 esac
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9761$as_echo "$ac_prog_version" >&6; }
9762 fi
9763 if test $ac_verc_fail = yes; then
9764 INTLBISON=:
b0cacab0 9765 fi
b0cacab0 9766
a04eba3f 9767
93636bde 9768
93613951
TT
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9770$as_echo_n "checking for long long int... " >&6; }
9771if ${ac_cv_type_long_long_int+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773else
9774 ac_cv_type_long_long_int=yes
9775 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9776 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9777 if test $ac_cv_type_long_long_int = yes; then
9778 if test "$cross_compiling" = yes; then :
9779 :
9780else
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h. */
9783#include <limits.h>
9784 #ifndef LLONG_MAX
9785 # define HALF \
9786 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9787 # define LLONG_MAX (HALF - 1 + HALF)
9788 #endif
9789int
9790main ()
9791{
9792long long int n = 1;
9793 int i;
9794 for (i = 0; ; i++)
9795 {
9796 long long int m = n << i;
9797 if (m >> i != n)
9798 return 1;
9799 if (LLONG_MAX / 2 < m)
9800 break;
9801 }
9802 return 0;
9803 ;
9804 return 0;
9805}
9806_ACEOF
9807if ac_fn_c_try_run "$LINENO"; then :
a64c9c13 9808
93613951
TT
9809else
9810 ac_cv_type_long_long_int=no
9811fi
9812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9813 conftest.$ac_objext conftest.beam conftest.$ac_ext
9814fi
93636bde 9815
93613951
TT
9816 fi
9817 fi
9818fi
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9820$as_echo "$ac_cv_type_long_long_int" >&6; }
9821 if test $ac_cv_type_long_long_int = yes; then
b0cacab0 9822
93613951 9823$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
b0cacab0 9824
93613951 9825 fi
b0cacab0
TT
9826
9827
93613951
TT
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9829$as_echo_n "checking for wchar_t... " >&6; }
9830if ${gt_cv_c_wchar_t+:} false; then :
9831 $as_echo_n "(cached) " >&6
50e1e10f 9832else
93613951
TT
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834/* end confdefs.h. */
9835#include <stddef.h>
9836 wchar_t foo = (wchar_t)'\0';
9837int
9838main ()
9839{
50e1e10f 9840
93613951
TT
9841 ;
9842 return 0;
9843}
57aa50d4 9844_ACEOF
93613951
TT
9845if ac_fn_c_try_compile "$LINENO"; then :
9846 gt_cv_c_wchar_t=yes
9847else
9848 gt_cv_c_wchar_t=no
57aa50d4 9849fi
93613951 9850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6d9d51 9851fi
93613951
TT
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9853$as_echo "$gt_cv_c_wchar_t" >&6; }
9854 if test $gt_cv_c_wchar_t = yes; then
b0cacab0 9855
93613951 9856$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
b0cacab0 9857
93613951 9858 fi
50e1e10f 9859
e1052144 9860
93613951
TT
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9862$as_echo_n "checking for wint_t... " >&6; }
9863if ${gt_cv_c_wint_t+:} false; then :
39fd3d4f 9864 $as_echo_n "(cached) " >&6
50e1e10f 9865else
57aa50d4
TT
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867/* end confdefs.h. */
bcb915b0 9868
93613951
TT
9869/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9870 <wchar.h>.
9871 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9872 before <wchar.h>. */
9873#include <stddef.h>
57aa50d4 9874#include <stdio.h>
93613951
TT
9875#include <time.h>
9876#include <wchar.h>
9877 wint_t foo = (wchar_t)'\0';
57aa50d4
TT
9878int
9879main ()
9880{
50e1e10f 9881
57aa50d4
TT
9882 ;
9883 return 0;
9884}
9885_ACEOF
9886if ac_fn_c_try_compile "$LINENO"; then :
93613951 9887 gt_cv_c_wint_t=yes
50e1e10f 9888else
93613951 9889 gt_cv_c_wint_t=no
50e1e10f 9890fi
57aa50d4 9891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 9892fi
93613951
TT
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9894$as_echo "$gt_cv_c_wint_t" >&6; }
9895 if test $gt_cv_c_wint_t = yes; then
bcb915b0 9896
93613951 9897$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
50e1e10f 9898
57aa50d4 9899 fi
50e1e10f 9900
e1052144 9901
e1052144 9902
57aa50d4 9903
93613951
TT
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9905$as_echo_n "checking for intmax_t... " >&6; }
9906if ${gt_cv_c_intmax_t+:} false; then :
39fd3d4f 9907 $as_echo_n "(cached) " >&6
50e1e10f 9908else
57aa50d4
TT
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910/* end confdefs.h. */
b0cacab0 9911
93613951
TT
9912#include <stddef.h>
9913#include <stdlib.h>
9914#if HAVE_STDINT_H_WITH_UINTMAX
9915#include <stdint.h>
9916#endif
9917#if HAVE_INTTYPES_H_WITH_UINTMAX
9918#include <inttypes.h>
57aa50d4
TT
9919#endif
9920
93613951
TT
9921int
9922main ()
9923{
9924intmax_t x = -1;
9925 return !x;
57aa50d4
TT
9926 ;
9927 return 0;
9928}
9929_ACEOF
9930if ac_fn_c_try_compile "$LINENO"; then :
93613951 9931 gt_cv_c_intmax_t=yes
50e1e10f 9932else
93613951 9933 gt_cv_c_intmax_t=no
57aa50d4
TT
9934fi
9935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 9936fi
93613951
TT
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9938$as_echo "$gt_cv_c_intmax_t" >&6; }
9939 if test $gt_cv_c_intmax_t = yes; then
9940
9941$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9942
57aa50d4 9943 fi
50e1e10f 9944
93613951
TT
9945
9946
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9948$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9949if ${gt_cv_func_printf_posix+:} false; then :
9950 $as_echo_n "(cached) " >&6
9951else
9952
9953 if test "$cross_compiling" = yes; then :
9954
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956/* end confdefs.h. */
9957
9958#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9959 notposix
9960#endif
9961
9962_ACEOF
9963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9964 $EGREP "notposix" >/dev/null 2>&1; then :
9965 gt_cv_func_printf_posix="guessing no"
9966else
9967 gt_cv_func_printf_posix="guessing yes"
9968fi
9969rm -f conftest*
9970
9971
9972else
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974/* end confdefs.h. */
9975
9976#include <stdio.h>
9977#include <string.h>
9978/* The string "%2$d %1$d", with dollar characters protected from the shell's
9979 dollar expansion (possibly an autoconf bug). */
9980static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9981static char buf[100];
9982int main ()
9983{
9984 sprintf (buf, format, 33, 55);
9985 return (strcmp (buf, "55 33") != 0);
9986}
9987_ACEOF
9988if ac_fn_c_try_run "$LINENO"; then :
9989 gt_cv_func_printf_posix=yes
9990else
9991 gt_cv_func_printf_posix=no
9992fi
9993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9994 conftest.$ac_objext conftest.beam conftest.$ac_ext
9995fi
9996
9997
9998fi
9999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
10000$as_echo "$gt_cv_func_printf_posix" >&6; }
10001 case $gt_cv_func_printf_posix in
10002 *yes)
10003
10004$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
10005
10006 ;;
10007 esac
10008
10009
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10011$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10012if ${ac_cv_gnu_library_2_1+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014else
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016/* end confdefs.h. */
10017
10018#include <features.h>
10019#ifdef __GNU_LIBRARY__
10020 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10021 Lucky GNU user
10022 #endif
10023#endif
10024#ifdef __UCLIBC__
10025 Lucky user
10026#endif
10027
10028_ACEOF
10029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10030 $EGREP "Lucky" >/dev/null 2>&1; then :
10031 ac_cv_gnu_library_2_1=yes
10032else
10033 ac_cv_gnu_library_2_1=no
10034fi
10035rm -f conftest*
10036
10037
10038
10039fi
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10041$as_echo "$ac_cv_gnu_library_2_1" >&6; }
10042
10043 GLIBC21="$ac_cv_gnu_library_2_1"
10044
10045
10046
10047 for ac_header in stdint.h
10048do :
10049 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10050if test "x$ac_cv_header_stdint_h" = xyes; then :
10051 cat >>confdefs.h <<_ACEOF
10052#define HAVE_STDINT_H 1
57aa50d4 10053_ACEOF
e1052144 10054
93613951 10055fi
e1052144 10056
93613951 10057done
57aa50d4 10058
93613951
TT
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10060$as_echo_n "checking for SIZE_MAX... " >&6; }
10061if ${gl_cv_size_max+:} false; then :
39fd3d4f 10062 $as_echo_n "(cached) " >&6
50e1e10f 10063else
93613951
TT
10064
10065 gl_cv_size_max=
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067/* end confdefs.h. */
10068
10069#include <limits.h>
10070#if HAVE_STDINT_H
10071#include <stdint.h>
10072#endif
10073#ifdef SIZE_MAX
10074Found it
10075#endif
10076
57aa50d4 10077_ACEOF
93613951
TT
10078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10079 $EGREP "Found it" >/dev/null 2>&1; then :
10080 gl_cv_size_max=yes
10081fi
10082rm -f conftest*
e1052144 10083
93613951
TT
10084 if test -z "$gl_cv_size_max"; then
10085 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10086#include <limits.h>"; then :
e1052144 10087
93613951
TT
10088else
10089 size_t_bits_minus_1=
10090fi
57aa50d4 10091
93613951 10092 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
57aa50d4 10093
50e1e10f 10094else
93613951
TT
10095 fits_in_uint=
10096fi
10097
10098 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10099 if test $fits_in_uint = 1; then
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10101/* end confdefs.h. */
93613951
TT
10102#include <stddef.h>
10103 extern size_t foo;
10104 extern unsigned long foo;
10105
57aa50d4
TT
10106int
10107main ()
10108{
b0cacab0 10109
57aa50d4
TT
10110 ;
10111 return 0;
10112}
10113_ACEOF
10114if ac_fn_c_try_compile "$LINENO"; then :
93613951 10115 fits_in_uint=0
93636bde 10116fi
57aa50d4 10117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93613951
TT
10118 fi
10119 if test $fits_in_uint = 1; then
10120 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10121 else
10122 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10123 fi
10124 else
10125 gl_cv_size_max='((size_t)~(size_t)0)'
10126 fi
10127 fi
10128
50e1e10f 10129fi
93613951
TT
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10131$as_echo "$gl_cv_size_max" >&6; }
10132 if test "$gl_cv_size_max" != yes; then
50e1e10f 10133
57aa50d4 10134cat >>confdefs.h <<_ACEOF
93613951 10135#define SIZE_MAX $gl_cv_size_max
57aa50d4 10136_ACEOF
e1052144 10137
93613951 10138 fi
32237014 10139
57aa50d4 10140
e1052144 10141
57aa50d4 10142
93613951
TT
10143 for ac_header in stdint.h
10144do :
10145 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10146if test "x$ac_cv_header_stdint_h" = xyes; then :
10147 cat >>confdefs.h <<_ACEOF
10148#define HAVE_STDINT_H 1
57aa50d4 10149_ACEOF
93613951 10150
32237014 10151fi
32237014 10152
93613951 10153done
e1052144 10154
32237014 10155
57aa50d4 10156
e1052144 10157
57aa50d4 10158
93613951
TT
10159 for ac_func in $ac_func_list
10160do :
10161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10162ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10163if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10164 cat >>confdefs.h <<_ACEOF
10165#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57aa50d4 10166_ACEOF
32237014 10167
32237014 10168fi
93613951
TT
10169done
10170
10171
10172
e1052144 10173
57aa50d4 10174
e1052144 10175
57aa50d4 10176
93613951
TT
10177
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10179$as_echo_n "checking for working fcntl.h... " >&6; }
10180if ${gl_cv_header_working_fcntl_h+:} false; then :
39fd3d4f 10181 $as_echo_n "(cached) " >&6
93613951
TT
10182else
10183 if test "$cross_compiling" = yes; then :
10184 gl_cv_header_working_fcntl_h=cross-compiling
50e1e10f 10185else
57aa50d4
TT
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187/* end confdefs.h. */
93613951
TT
10188#include <sys/types.h>
10189 #include <sys/stat.h>
10190 #if HAVE_UNISTD_H
10191 # include <unistd.h>
10192 #else /* on Windows with MSVC */
10193 # include <io.h>
10194 # include <stdlib.h>
10195 # defined sleep(n) _sleep ((n) * 1000)
10196 #endif
10197 #include <fcntl.h>
10198 #ifndef O_NOATIME
10199 #define O_NOATIME 0
10200 #endif
10201 #ifndef O_NOFOLLOW
10202 #define O_NOFOLLOW 0
10203 #endif
10204 static int const constants[] =
10205 {
10206 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10207 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10208 };
10209
57aa50d4
TT
10210int
10211main ()
10212{
b0cacab0 10213
93613951
TT
10214 int result = !constants;
10215 #if HAVE_SYMLINK
10216 {
10217 static char const sym[] = "conftest.sym";
10218 if (symlink ("/dev/null", sym) != 0)
10219 result |= 2;
10220 else
10221 {
10222 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10223 if (fd >= 0)
10224 {
10225 close (fd);
10226 result |= 4;
10227 }
10228 }
10229 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10230 result |= 2;
10231 else
10232 {
10233 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10234 if (fd >= 0)
10235 {
10236 close (fd);
10237 result |= 4;
10238 }
10239 }
10240 unlink (sym);
10241 }
10242 #endif
10243 {
10244 static char const file[] = "confdefs.h";
10245 int fd = open (file, O_RDONLY | O_NOATIME);
10246 if (fd < 0)
10247 result |= 8;
10248 else
10249 {
10250 struct stat st0;
10251 if (fstat (fd, &st0) != 0)
10252 result |= 16;
10253 else
10254 {
10255 char c;
10256 sleep (1);
10257 if (read (fd, &c, 1) != 1)
10258 result |= 24;
10259 else
10260 {
10261 if (close (fd) != 0)
10262 result |= 32;
10263 else
10264 {
10265 struct stat st1;
10266 if (stat (file, &st1) != 0)
10267 result |= 40;
10268 else
10269 if (st0.st_atime != st1.st_atime)
10270 result |= 64;
10271 }
10272 }
10273 }
10274 }
10275 }
10276 return result;
57aa50d4
TT
10277 ;
10278 return 0;
10279}
10280_ACEOF
93613951
TT
10281if ac_fn_c_try_run "$LINENO"; then :
10282 gl_cv_header_working_fcntl_h=yes
50e1e10f 10283else
93613951
TT
10284 case $? in #(
10285 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10286 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10287 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10288 *) gl_cv_header_working_fcntl_h='no';;
10289 esac
50e1e10f 10290fi
93613951
TT
10291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10292 conftest.$ac_objext conftest.beam conftest.$ac_ext
50e1e10f 10293fi
57aa50d4 10294
93613951
TT
10295fi
10296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10297$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
57aa50d4 10298
93613951
TT
10299 case $gl_cv_header_working_fcntl_h in #(
10300 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10301 *) ac_val=1;;
57aa50d4
TT
10302 esac
10303
93613951
TT
10304cat >>confdefs.h <<_ACEOF
10305#define HAVE_WORKING_O_NOATIME $ac_val
10306_ACEOF
57aa50d4 10307
57aa50d4 10308
93613951
TT
10309 case $gl_cv_header_working_fcntl_h in #(
10310 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10311 *) ac_val=1;;
10312 esac
57aa50d4 10313
93613951
TT
10314cat >>confdefs.h <<_ACEOF
10315#define HAVE_WORKING_O_NOFOLLOW $ac_val
10316_ACEOF
57aa50d4 10317
50e1e10f 10318
e1052144 10319
93613951
TT
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10321$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10322if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
39fd3d4f 10323 $as_echo_n "(cached) " >&6
9d564f73 10324else
93613951
TT
10325 gt_save_LIBS="$LIBS"
10326 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10328/* end confdefs.h. */
93613951 10329#include <CoreFoundation/CFPreferences.h>
57aa50d4
TT
10330int
10331main ()
10332{
93613951 10333CFPreferencesCopyAppValue(NULL, NULL)
57aa50d4
TT
10334 ;
10335 return 0;
10336}
10337_ACEOF
10338if ac_fn_c_try_link "$LINENO"; then :
93613951
TT
10339 gt_cv_func_CFPreferencesCopyAppValue=yes
10340else
10341 gt_cv_func_CFPreferencesCopyAppValue=no
9d564f73 10342fi
57aa50d4
TT
10343rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
93613951
TT
10345 LIBS="$gt_save_LIBS"
10346fi
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10348$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10349 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10350
10351$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10352
10353 fi
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10355$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10356if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358else
10359 gt_save_LIBS="$LIBS"
10360 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10362/* end confdefs.h. */
93613951 10363#include <CoreFoundation/CFLocale.h>
57aa50d4
TT
10364int
10365main ()
10366{
93613951 10367CFLocaleCopyCurrent();
57aa50d4
TT
10368 ;
10369 return 0;
10370}
10371_ACEOF
10372if ac_fn_c_try_link "$LINENO"; then :
93613951
TT
10373 gt_cv_func_CFLocaleCopyCurrent=yes
10374else
10375 gt_cv_func_CFLocaleCopyCurrent=no
9d564f73 10376fi
57aa50d4
TT
10377rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext conftest.$ac_ext
93613951 10379 LIBS="$gt_save_LIBS"
50e1e10f 10380fi
93613951
TT
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10382$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10383 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
50e1e10f 10384
93613951 10385$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
e1052144 10386
b0cacab0 10387 fi
93613951
TT
10388 INTL_MACOSX_LIBS=
10389 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10390 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
e1052144 10391 fi
b0cacab0 10392
93636bde 10393
e1052144 10394
93613951
TT
10395
10396
10397
10398
10399
10400
10401
10402 case "$enable_silent_rules" in
10403 yes) INTL_DEFAULT_VERBOSITY=0;;
10404 no) INTL_DEFAULT_VERBOSITY=1;;
10405 *) INTL_DEFAULT_VERBOSITY=1;;
10406 esac
10407
10408
10409 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10410if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10411
50e1e10f 10412else
b0cacab0 10413
93613951 10414$as_echo "#define ptrdiff_t long" >>confdefs.h
50e1e10f 10415
e1052144 10416
93613951 10417fi
b0cacab0 10418
93613951
TT
10419 for ac_header in features.h stddef.h stdlib.h string.h
10420do :
10421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10422ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10423if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10424 cat >>confdefs.h <<_ACEOF
10425#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57aa50d4 10426_ACEOF
93613951
TT
10427
10428fi
10429
10430done
10431
10432 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10433 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10434do :
10435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10436ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10437if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10438 cat >>confdefs.h <<_ACEOF
10439#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57aa50d4 10440_ACEOF
93613951
TT
10441
10442fi
10443done
10444
10445
10446 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10447"
10448if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10449 ac_have_decl=1
50e1e10f 10450else
93613951 10451 ac_have_decl=0
50e1e10f 10452fi
93613951
TT
10453
10454cat >>confdefs.h <<_ACEOF
10455#define HAVE_DECL__SNPRINTF $ac_have_decl
10456_ACEOF
10457ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10458"
10459if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10460 ac_have_decl=1
10461else
10462 ac_have_decl=0
50e1e10f
TT
10463fi
10464
93613951
TT
10465cat >>confdefs.h <<_ACEOF
10466#define HAVE_DECL__SNWPRINTF $ac_have_decl
10467_ACEOF
10468
10469
10470 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10471"
10472if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10473 ac_have_decl=1
10474else
10475 ac_have_decl=0
10476fi
57aa50d4
TT
10477
10478cat >>confdefs.h <<_ACEOF
93613951 10479#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
57aa50d4
TT
10480_ACEOF
10481
93613951
TT
10482
10483 case $gt_cv_func_printf_posix in
10484 *yes) HAVE_POSIX_PRINTF=1 ;;
10485 *) HAVE_POSIX_PRINTF=0 ;;
10486 esac
10487
10488 if test "$ac_cv_func_asprintf" = yes; then
10489 HAVE_ASPRINTF=1
10490 else
10491 HAVE_ASPRINTF=0
10492 fi
10493
10494 if test "$ac_cv_func_snprintf" = yes; then
10495 HAVE_SNPRINTF=1
10496 else
10497 HAVE_SNPRINTF=0
10498 fi
10499
10500 if test "$ac_cv_func_newlocale" = yes; then
10501 HAVE_NEWLOCALE=1
10502 else
10503 HAVE_NEWLOCALE=0
10504 fi
10505
10506 if test "$ac_cv_func_wprintf" = yes; then
10507 HAVE_WPRINTF=1
10508 else
10509 HAVE_WPRINTF=0
e1052144 10510 fi
50e1e10f 10511
57aa50d4 10512
93613951 10513
57aa50d4
TT
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10515$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
d6a4bcb5 10516if ${am_cv_langinfo_codeset+:} false; then :
39fd3d4f 10517 $as_echo_n "(cached) " >&6
50e1e10f 10518else
57aa50d4
TT
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520/* end confdefs.h. */
10521#include <langinfo.h>
10522int
10523main ()
10524{
93613951 10525char* cs = nl_langinfo(CODESET); return !cs;
57aa50d4
TT
10526 ;
10527 return 0;
10528}
10529_ACEOF
10530if ac_fn_c_try_link "$LINENO"; then :
10531 am_cv_langinfo_codeset=yes
50e1e10f 10532else
57aa50d4 10533 am_cv_langinfo_codeset=no
50e1e10f 10534fi
57aa50d4
TT
10535rm -f core conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext conftest.$ac_ext
7321d94e 10537
50e1e10f 10538fi
57aa50d4
TT
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10540$as_echo "$am_cv_langinfo_codeset" >&6; }
10541 if test $am_cv_langinfo_codeset = yes; then
50e1e10f 10542
57aa50d4 10543$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
e1052144 10544
57aa50d4 10545 fi
b0cacab0 10546
21c84b71 10547
57aa50d4
TT
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10549$as_echo_n "checking for LC_MESSAGES... " >&6; }
93613951 10550if ${gt_cv_val_LC_MESSAGES+:} false; then :
39fd3d4f 10551 $as_echo_n "(cached) " >&6
93636bde 10552else
57aa50d4
TT
10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10554/* end confdefs.h. */
10555#include <locale.h>
10556int
10557main ()
10558{
10559return LC_MESSAGES
10560 ;
10561 return 0;
10562}
10563_ACEOF
10564if ac_fn_c_try_link "$LINENO"; then :
93613951 10565 gt_cv_val_LC_MESSAGES=yes
93636bde 10566else
93613951 10567 gt_cv_val_LC_MESSAGES=no
50e1e10f 10568fi
57aa50d4
TT
10569rm -f core conftest.err conftest.$ac_objext \
10570 conftest$ac_exeext conftest.$ac_ext
50e1e10f 10571fi
93613951
TT
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10573$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10574 if test $gt_cv_val_LC_MESSAGES = yes; then
50e1e10f 10575
57aa50d4 10576$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
50e1e10f 10577
e1052144 10578 fi
50e1e10f 10579
93613951
TT
10580
10581 if test "$enable_shared" = yes; then
10582 case "$host_os" in
10583 mingw* | cygwin*) is_woe32dll=yes ;;
10584 *) is_woe32dll=no ;;
10585 esac
10586 else
10587 is_woe32dll=no
57aa50d4 10588 fi
93613951 10589 WOE32DLL=$is_woe32dll
b0cacab0 10590
93613951
TT
10591
10592 case "$host_os" in
10593 mingw* | cygwin*) is_woe32=yes ;;
10594 *) is_woe32=no ;;
10595 esac
10596 WOE32=$is_woe32
10597
10598 if test $WOE32 = yes; then
10599 if test -n "$ac_tool_prefix"; then
10600 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10601set dummy ${ac_tool_prefix}windres; ac_word=$2
57aa50d4 10602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 10603$as_echo_n "checking for $ac_word... " >&6; }
93613951 10604if ${ac_cv_prog_WINDRES+:} false; then :
39fd3d4f 10605 $as_echo_n "(cached) " >&6
50e1e10f 10606else
93613951
TT
10607 if test -n "$WINDRES"; then
10608 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
50e1e10f 10609else
b0cacab0
TT
10610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611for as_dir in $PATH
10612do
10613 IFS=$as_save_IFS
10614 test -z "$as_dir" && as_dir=.
57aa50d4 10615 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
93613951 10617 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
57aa50d4 10618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
10619 break 2
10620 fi
10621done
57aa50d4 10622 done
e1052144 10623IFS=$as_save_IFS
b0cacab0 10624
50e1e10f
TT
10625fi
10626fi
93613951
TT
10627WINDRES=$ac_cv_prog_WINDRES
10628if test -n "$WINDRES"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10630$as_echo "$WINDRES" >&6; }
50e1e10f 10631else
57aa50d4 10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 10633$as_echo "no" >&6; }
50e1e10f
TT
10634fi
10635
e1052144 10636
93613951
TT
10637fi
10638if test -z "$ac_cv_prog_WINDRES"; then
10639 ac_ct_WINDRES=$WINDRES
10640 # Extract the first word of "windres", so it can be a program name with args.
10641set dummy windres; ac_word=$2
10642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10643$as_echo_n "checking for $ac_word... " >&6; }
10644if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10645 $as_echo_n "(cached) " >&6
10646else
10647 if test -n "$ac_ct_WINDRES"; then
10648 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10649else
10650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651for as_dir in $PATH
10652do
10653 IFS=$as_save_IFS
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657 ac_cv_prog_ac_ct_WINDRES="windres"
10658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10659 break 2
10660 fi
b0cacab0 10661done
93613951
TT
10662 done
10663IFS=$as_save_IFS
b0cacab0 10664
93613951
TT
10665fi
10666fi
10667ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10668if test -n "$ac_ct_WINDRES"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10670$as_echo "$ac_ct_WINDRES" >&6; }
10671else
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673$as_echo "no" >&6; }
10674fi
10675
10676 if test "x$ac_ct_WINDRES" = x; then
10677 WINDRES=""
57aa50d4 10678 else
93613951
TT
10679 case $cross_compiling:$ac_tool_warned in
10680yes:)
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10683ac_tool_warned=yes ;;
10684esac
10685 WINDRES=$ac_ct_WINDRES
57aa50d4 10686 fi
93613951
TT
10687else
10688 WINDRES="$ac_cv_prog_WINDRES"
10689fi
10690
57aa50d4
TT
10691 fi
10692
93613951
TT
10693 case "$host_os" in
10694 hpux*) LTLIBC="" ;;
10695 *) LTLIBC="-lc" ;;
10696 esac
57aa50d4
TT
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
b0cacab0 10707
740837de 10708
b0cacab0
TT
10709
10710
10711
93613951
TT
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10725$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10726if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10727 $as_echo_n "(cached) " >&6
50e1e10f 10728else
93613951
TT
10729 gt_save_LIBS="$LIBS"
10730 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732/* end confdefs.h. */
10733#include <CoreFoundation/CFPreferences.h>
10734int
10735main ()
10736{
10737CFPreferencesCopyAppValue(NULL, NULL)
10738 ;
10739 return 0;
10740}
10741_ACEOF
10742if ac_fn_c_try_link "$LINENO"; then :
10743 gt_cv_func_CFPreferencesCopyAppValue=yes
10744else
10745 gt_cv_func_CFPreferencesCopyAppValue=no
50e1e10f 10746fi
93613951
TT
10747rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS="$gt_save_LIBS"
50e1e10f 10750fi
93613951
TT
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10752$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10753 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10754
10755$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10756
10757 fi
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10759$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10760if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10761 $as_echo_n "(cached) " >&6
10762else
10763 gt_save_LIBS="$LIBS"
10764 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766/* end confdefs.h. */
10767#include <CoreFoundation/CFLocale.h>
10768int
10769main ()
10770{
10771CFLocaleCopyCurrent();
10772 ;
10773 return 0;
10774}
10775_ACEOF
10776if ac_fn_c_try_link "$LINENO"; then :
10777 gt_cv_func_CFLocaleCopyCurrent=yes
10778else
10779 gt_cv_func_CFLocaleCopyCurrent=no
10780fi
10781rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LIBS="$gt_save_LIBS"
10784fi
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10786$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10787 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10788
10789$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10790
10791 fi
10792 INTL_MACOSX_LIBS=
10793 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10794 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10795 fi
10796
50e1e10f 10797
b0cacab0
TT
10798
10799
10800
10801
57aa50d4
TT
10802 BUILD_INCLUDED_LIBINTL=no
10803 USE_INCLUDED_LIBINTL=no
10804
10805 LIBINTL=
10806 LTLIBINTL=
10807 POSUB=
10808
93613951
TT
10809 case " $gt_needs " in
10810 *" need-formatstring-macros "*) gt_api_version=3 ;;
10811 *" need-ngettext "*) gt_api_version=2 ;;
10812 *) gt_api_version=1 ;;
10813 esac
10814 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10815 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10816
57aa50d4
TT
10817 if test "$USE_NLS" = "yes"; then
10818 gt_use_preinstalled_gnugettext=no
b0cacab0 10819
57aa50d4
TT
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10821$as_echo_n "checking whether included gettext is requested... " >&6; }
b0cacab0 10822
57aa50d4
TT
10823# Check whether --with-included-gettext was given.
10824if test "${with_included_gettext+set}" = set; then :
10825 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
50e1e10f 10826else
57aa50d4 10827 nls_cv_force_use_gnu_gettext=no
50e1e10f
TT
10828fi
10829
57aa50d4
TT
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10831$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
b0cacab0 10832
57aa50d4
TT
10833 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10834 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
b0cacab0
TT
10835
10836
93613951
TT
10837 if test $gt_api_version -ge 3; then
10838 gt_revision_test_code='
10839#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10840#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10841#endif
10842typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10843'
10844 else
10845 gt_revision_test_code=
10846 fi
10847 if test $gt_api_version -ge 2; then
10848 gt_expression_test_code=' + * ngettext ("", "", 0)'
10849 else
10850 gt_expression_test_code=
10851 fi
b0cacab0 10852
57aa50d4
TT
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10854$as_echo_n "checking for GNU gettext in libc... " >&6; }
93613951 10855if eval \${$gt_func_gnugettext_libc+:} false; then :
39fd3d4f 10856 $as_echo_n "(cached) " >&6
7321d94e 10857else
57aa50d4
TT
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859/* end confdefs.h. */
93613951 10860
57aa50d4 10861#include <libintl.h>
93613951 10862$gt_revision_test_code
57aa50d4
TT
10863extern int _nl_msg_cat_cntr;
10864extern int *_nl_domain_bindings;
93613951 10865
57aa50d4
TT
10866int
10867main ()
10868{
93613951 10869
57aa50d4 10870bindtextdomain ("", "");
93613951
TT
10871return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10872
57aa50d4
TT
10873 ;
10874 return 0;
10875}
10876_ACEOF
10877if ac_fn_c_try_link "$LINENO"; then :
93613951 10878 eval "$gt_func_gnugettext_libc=yes"
7321d94e 10879else
93613951 10880 eval "$gt_func_gnugettext_libc=no"
57aa50d4
TT
10881fi
10882rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
10884fi
93613951
TT
10885eval ac_res=\$$gt_func_gnugettext_libc
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10887$as_echo "$ac_res" >&6; }
10888
10889 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10890
10891
10892
10893
b0cacab0
TT
10894
10895
10896
10897
57aa50d4 10898 use_additional=yes
b0cacab0 10899
57aa50d4
TT
10900 acl_save_prefix="$prefix"
10901 prefix="$acl_final_prefix"
10902 acl_save_exec_prefix="$exec_prefix"
10903 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10904
57aa50d4
TT
10905 eval additional_includedir=\"$includedir\"
10906 eval additional_libdir=\"$libdir\"
b0cacab0 10907
57aa50d4
TT
10908 exec_prefix="$acl_save_exec_prefix"
10909 prefix="$acl_save_prefix"
b0cacab0
TT
10910
10911
57aa50d4
TT
10912# Check whether --with-libintl-prefix was given.
10913if test "${with_libintl_prefix+set}" = set; then :
10914 withval=$with_libintl_prefix;
10915 if test "X$withval" = "Xno"; then
10916 use_additional=no
10917 else
10918 if test "X$withval" = "X"; then
b0cacab0 10919
57aa50d4
TT
10920 acl_save_prefix="$prefix"
10921 prefix="$acl_final_prefix"
10922 acl_save_exec_prefix="$exec_prefix"
10923 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10924
57aa50d4
TT
10925 eval additional_includedir=\"$includedir\"
10926 eval additional_libdir=\"$libdir\"
7321d94e 10927
57aa50d4
TT
10928 exec_prefix="$acl_save_exec_prefix"
10929 prefix="$acl_save_prefix"
7321d94e 10930
57aa50d4
TT
10931 else
10932 additional_includedir="$withval/include"
93613951
TT
10933 additional_libdir="$withval/$acl_libdirstem"
10934 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10935 && ! test -d "$withval/$acl_libdirstem"; then
10936 additional_libdir="$withval/$acl_libdirstem2"
10937 fi
57aa50d4
TT
10938 fi
10939 fi
7321d94e 10940
7321d94e
MK
10941fi
10942
57aa50d4
TT
10943 LIBINTL=
10944 LTLIBINTL=
10945 INCINTL=
93613951
TT
10946 LIBINTL_PREFIX=
10947 HAVE_LIBINTL=
57aa50d4
TT
10948 rpathdirs=
10949 ltrpathdirs=
10950 names_already_handled=
10951 names_next_round='intl '
10952 while test -n "$names_next_round"; do
10953 names_this_round="$names_next_round"
10954 names_next_round=
10955 for name in $names_this_round; do
10956 already_handled=
10957 for n in $names_already_handled; do
10958 if test "$n" = "$name"; then
10959 already_handled=yes
10960 break
10961 fi
50e1e10f 10962 done
57aa50d4
TT
10963 if test -z "$already_handled"; then
10964 names_already_handled="$names_already_handled $name"
93613951 10965 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
57aa50d4
TT
10966 eval value=\"\$HAVE_LIB$uppername\"
10967 if test -n "$value"; then
10968 if test "$value" = yes; then
10969 eval value=\"\$LIB$uppername\"
10970 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10971 eval value=\"\$LTLIB$uppername\"
10972 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10973 else
10974 :
10975 fi
10976 else
10977 found_dir=
10978 found_la=
10979 found_so=
10980 found_a=
93613951
TT
10981 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10982 if test -n "$acl_shlibext"; then
10983 shrext=".$acl_shlibext" # typically: shrext=.so
10984 else
10985 shrext=
10986 fi
57aa50d4 10987 if test $use_additional = yes; then
93613951
TT
10988 dir="$additional_libdir"
10989 if test -n "$acl_shlibext"; then
10990 if test -f "$dir/$libname$shrext"; then
10991 found_dir="$dir"
10992 found_so="$dir/$libname$shrext"
10993 else
10994 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10995 ver=`(cd "$dir" && \
10996 for f in "$libname$shrext".*; do echo "$f"; done \
10997 | sed -e "s,^$libname$shrext\\\\.,," \
10998 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10999 | sed 1q ) 2>/dev/null`
11000 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11001 found_dir="$dir"
11002 found_so="$dir/$libname$shrext.$ver"
11003 fi
11004 else
11005 eval library_names=\"$acl_library_names_spec\"
11006 for f in $library_names; do
11007 if test -f "$dir/$f"; then
11008 found_dir="$dir"
11009 found_so="$dir/$f"
11010 break
11011 fi
11012 done
57aa50d4
TT
11013 fi
11014 fi
93613951
TT
11015 fi
11016 if test "X$found_dir" = "X"; then
11017 if test -f "$dir/$libname.$acl_libext"; then
11018 found_dir="$dir"
11019 found_a="$dir/$libname.$acl_libext"
11020 fi
11021 fi
11022 if test "X$found_dir" != "X"; then
11023 if test -f "$dir/$libname.la"; then
11024 found_la="$dir/$libname.la"
11025 fi
57aa50d4
TT
11026 fi
11027 fi
11028 if test "X$found_dir" = "X"; then
11029 for x in $LDFLAGS $LTLIBINTL; do
39fd3d4f 11030
57aa50d4
TT
11031 acl_save_prefix="$prefix"
11032 prefix="$acl_final_prefix"
11033 acl_save_exec_prefix="$exec_prefix"
11034 exec_prefix="$acl_final_exec_prefix"
11035 eval x=\"$x\"
11036 exec_prefix="$acl_save_exec_prefix"
11037 prefix="$acl_save_prefix"
3d05802f 11038
57aa50d4
TT
11039 case "$x" in
11040 -L*)
11041 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951
TT
11042 if test -n "$acl_shlibext"; then
11043 if test -f "$dir/$libname$shrext"; then
57aa50d4 11044 found_dir="$dir"
93613951
TT
11045 found_so="$dir/$libname$shrext"
11046 else
11047 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11048 ver=`(cd "$dir" && \
11049 for f in "$libname$shrext".*; do echo "$f"; done \
11050 | sed -e "s,^$libname$shrext\\\\.,," \
11051 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11052 | sed 1q ) 2>/dev/null`
11053 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11054 found_dir="$dir"
11055 found_so="$dir/$libname$shrext.$ver"
11056 fi
11057 else
11058 eval library_names=\"$acl_library_names_spec\"
11059 for f in $library_names; do
11060 if test -f "$dir/$f"; then
11061 found_dir="$dir"
11062 found_so="$dir/$f"
11063 break
11064 fi
11065 done
57aa50d4
TT
11066 fi
11067 fi
93613951
TT
11068 fi
11069 if test "X$found_dir" = "X"; then
11070 if test -f "$dir/$libname.$acl_libext"; then
11071 found_dir="$dir"
11072 found_a="$dir/$libname.$acl_libext"
11073 fi
11074 fi
11075 if test "X$found_dir" != "X"; then
11076 if test -f "$dir/$libname.la"; then
11077 found_la="$dir/$libname.la"
11078 fi
57aa50d4
TT
11079 fi
11080 ;;
11081 esac
11082 if test "X$found_dir" != "X"; then
11083 break
11084 fi
11085 done
11086 fi
11087 if test "X$found_dir" != "X"; then
11088 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11089 if test "X$found_so" != "X"; then
93613951
TT
11090 if test "$enable_rpath" = no \
11091 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11092 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
57aa50d4
TT
11093 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11094 else
11095 haveit=
11096 for x in $ltrpathdirs; do
11097 if test "X$x" = "X$found_dir"; then
11098 haveit=yes
11099 break
11100 fi
11101 done
11102 if test -z "$haveit"; then
11103 ltrpathdirs="$ltrpathdirs $found_dir"
11104 fi
93613951 11105 if test "$acl_hardcode_direct" = yes; then
57aa50d4
TT
11106 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11107 else
93613951 11108 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
57aa50d4
TT
11109 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11110 haveit=
11111 for x in $rpathdirs; do
11112 if test "X$x" = "X$found_dir"; then
11113 haveit=yes
11114 break
11115 fi
11116 done
11117 if test -z "$haveit"; then
11118 rpathdirs="$rpathdirs $found_dir"
11119 fi
11120 else
11121 haveit=
11122 for x in $LDFLAGS $LIBINTL; do
6ec9ef18 11123
57aa50d4
TT
11124 acl_save_prefix="$prefix"
11125 prefix="$acl_final_prefix"
11126 acl_save_exec_prefix="$exec_prefix"
11127 exec_prefix="$acl_final_exec_prefix"
11128 eval x=\"$x\"
11129 exec_prefix="$acl_save_exec_prefix"
11130 prefix="$acl_save_prefix"
d7f45af8 11131
57aa50d4
TT
11132 if test "X$x" = "X-L$found_dir"; then
11133 haveit=yes
11134 break
11135 fi
11136 done
11137 if test -z "$haveit"; then
11138 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11139 fi
93613951 11140 if test "$acl_hardcode_minus_L" != no; then
57aa50d4
TT
11141 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11142 else
11143 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11144 fi
11145 fi
11146 fi
11147 fi
11148 else
11149 if test "X$found_a" != "X"; then
11150 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11151 else
11152 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11153 fi
11154 fi
11155 additional_includedir=
11156 case "$found_dir" in
93613951
TT
11157 */$acl_libdirstem | */$acl_libdirstem/)
11158 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11159 if test "$name" = 'intl'; then
11160 LIBINTL_PREFIX="$basedir"
11161 fi
11162 additional_includedir="$basedir/include"
11163 ;;
11164 */$acl_libdirstem2 | */$acl_libdirstem2/)
11165 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11166 if test "$name" = 'intl'; then
11167 LIBINTL_PREFIX="$basedir"
11168 fi
57aa50d4
TT
11169 additional_includedir="$basedir/include"
11170 ;;
11171 esac
11172 if test "X$additional_includedir" != "X"; then
11173 if test "X$additional_includedir" != "X/usr/include"; then
11174 haveit=
11175 if test "X$additional_includedir" = "X/usr/local/include"; then
11176 if test -n "$GCC"; then
11177 case $host_os in
93613951 11178 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
11179 esac
11180 fi
11181 fi
11182 if test -z "$haveit"; then
11183 for x in $CPPFLAGS $INCINTL; do
b0cacab0 11184
57aa50d4
TT
11185 acl_save_prefix="$prefix"
11186 prefix="$acl_final_prefix"
11187 acl_save_exec_prefix="$exec_prefix"
11188 exec_prefix="$acl_final_exec_prefix"
11189 eval x=\"$x\"
11190 exec_prefix="$acl_save_exec_prefix"
11191 prefix="$acl_save_prefix"
21c84b71 11192
57aa50d4
TT
11193 if test "X$x" = "X-I$additional_includedir"; then
11194 haveit=yes
11195 break
11196 fi
11197 done
11198 if test -z "$haveit"; then
11199 if test -d "$additional_includedir"; then
11200 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11201 fi
11202 fi
11203 fi
11204 fi
11205 fi
11206 if test -n "$found_la"; then
11207 save_libdir="$libdir"
11208 case "$found_la" in
11209 */* | *\\*) . "$found_la" ;;
11210 *) . "./$found_la" ;;
11211 esac
11212 libdir="$save_libdir"
11213 for dep in $dependency_libs; do
11214 case "$dep" in
11215 -L*)
11216 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
93613951
TT
11217 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11218 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
57aa50d4 11219 haveit=
93613951
TT
11220 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11221 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
57aa50d4
TT
11222 if test -n "$GCC"; then
11223 case $host_os in
93613951 11224 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
11225 esac
11226 fi
11227 fi
11228 if test -z "$haveit"; then
11229 haveit=
11230 for x in $LDFLAGS $LIBINTL; do
50e1e10f 11231
57aa50d4
TT
11232 acl_save_prefix="$prefix"
11233 prefix="$acl_final_prefix"
11234 acl_save_exec_prefix="$exec_prefix"
11235 exec_prefix="$acl_final_exec_prefix"
11236 eval x=\"$x\"
11237 exec_prefix="$acl_save_exec_prefix"
11238 prefix="$acl_save_prefix"
50e1e10f 11239
57aa50d4
TT
11240 if test "X$x" = "X-L$additional_libdir"; then
11241 haveit=yes
11242 break
11243 fi
11244 done
11245 if test -z "$haveit"; then
11246 if test -d "$additional_libdir"; then
11247 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11248 fi
11249 fi
11250 haveit=
11251 for x in $LDFLAGS $LTLIBINTL; do
a4bf69d9 11252
57aa50d4
TT
11253 acl_save_prefix="$prefix"
11254 prefix="$acl_final_prefix"
11255 acl_save_exec_prefix="$exec_prefix"
11256 exec_prefix="$acl_final_exec_prefix"
11257 eval x=\"$x\"
11258 exec_prefix="$acl_save_exec_prefix"
11259 prefix="$acl_save_prefix"
50e1e10f 11260
57aa50d4
TT
11261 if test "X$x" = "X-L$additional_libdir"; then
11262 haveit=yes
11263 break
11264 fi
11265 done
11266 if test -z "$haveit"; then
11267 if test -d "$additional_libdir"; then
11268 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11269 fi
11270 fi
11271 fi
11272 fi
11273 ;;
11274 -R*)
11275 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11276 if test "$enable_rpath" != no; then
11277 haveit=
11278 for x in $rpathdirs; do
11279 if test "X$x" = "X$dir"; then
11280 haveit=yes
11281 break
11282 fi
11283 done
11284 if test -z "$haveit"; then
11285 rpathdirs="$rpathdirs $dir"
11286 fi
11287 haveit=
11288 for x in $ltrpathdirs; do
11289 if test "X$x" = "X$dir"; then
11290 haveit=yes
11291 break
11292 fi
11293 done
11294 if test -z "$haveit"; then
11295 ltrpathdirs="$ltrpathdirs $dir"
11296 fi
11297 fi
11298 ;;
11299 -l*)
11300 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11301 ;;
11302 *.la)
11303 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11304 ;;
11305 *)
11306 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11307 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11308 ;;
11309 esac
11310 done
11311 fi
11312 else
11313 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11314 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11315 fi
11316 fi
11317 fi
11318 done
11319 done
11320 if test "X$rpathdirs" != "X"; then
93613951 11321 if test -n "$acl_hardcode_libdir_separator"; then
57aa50d4
TT
11322 alldirs=
11323 for found_dir in $rpathdirs; do
93613951 11324 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
57aa50d4
TT
11325 done
11326 acl_save_libdir="$libdir"
11327 libdir="$alldirs"
93613951 11328 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
11329 libdir="$acl_save_libdir"
11330 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11331 else
11332 for found_dir in $rpathdirs; do
11333 acl_save_libdir="$libdir"
11334 libdir="$found_dir"
93613951 11335 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
11336 libdir="$acl_save_libdir"
11337 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11338 done
11339 fi
11340 fi
11341 if test "X$ltrpathdirs" != "X"; then
11342 for found_dir in $ltrpathdirs; do
11343 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11344 done
11345 fi
b0cacab0 11346
93613951
TT
11347
11348
11349
11350
11351
57aa50d4
TT
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11353$as_echo_n "checking for GNU gettext in libintl... " >&6; }
93613951 11354if eval \${$gt_func_gnugettext_libintl+:} false; then :
39fd3d4f 11355 $as_echo_n "(cached) " >&6
6c133523 11356else
57aa50d4
TT
11357 gt_save_CPPFLAGS="$CPPFLAGS"
11358 CPPFLAGS="$CPPFLAGS $INCINTL"
11359 gt_save_LIBS="$LIBS"
11360 LIBS="$LIBS $LIBINTL"
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362/* end confdefs.h. */
93613951 11363
57aa50d4 11364#include <libintl.h>
93613951 11365$gt_revision_test_code
57aa50d4
TT
11366extern int _nl_msg_cat_cntr;
11367extern
11368#ifdef __cplusplus
11369"C"
11370#endif
93613951
TT
11371const char *_nl_expand_alias (const char *);
11372
57aa50d4
TT
11373int
11374main ()
11375{
93613951 11376
57aa50d4 11377bindtextdomain ("", "");
93613951
TT
11378return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11379
57aa50d4
TT
11380 ;
11381 return 0;
11382}
b0cacab0 11383_ACEOF
57aa50d4 11384if ac_fn_c_try_link "$LINENO"; then :
93613951 11385 eval "$gt_func_gnugettext_libintl=yes"
6c133523 11386else
93613951 11387 eval "$gt_func_gnugettext_libintl=no"
6c133523 11388fi
57aa50d4
TT
11389rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
93613951 11391 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
57aa50d4
TT
11392 LIBS="$LIBS $LIBICONV"
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da76d6b7 11394/* end confdefs.h. */
93613951 11395
57aa50d4 11396#include <libintl.h>
93613951 11397$gt_revision_test_code
57aa50d4
TT
11398extern int _nl_msg_cat_cntr;
11399extern
11400#ifdef __cplusplus
11401"C"
da76d6b7 11402#endif
93613951
TT
11403const char *_nl_expand_alias (const char *);
11404
57aa50d4
TT
11405int
11406main ()
11407{
93613951 11408
57aa50d4 11409bindtextdomain ("", "");
93613951
TT
11410return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11411
57aa50d4
TT
11412 ;
11413 return 0;
11414}
da76d6b7 11415_ACEOF
57aa50d4
TT
11416if ac_fn_c_try_link "$LINENO"; then :
11417 LIBINTL="$LIBINTL $LIBICONV"
93613951
TT
11418 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11419 eval "$gt_func_gnugettext_libintl=yes"
6c133523
TT
11420
11421fi
57aa50d4
TT
11422rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 fi
11425 CPPFLAGS="$gt_save_CPPFLAGS"
11426 LIBS="$gt_save_LIBS"
da76d6b7 11427fi
93613951
TT
11428eval ac_res=\$$gt_func_gnugettext_libintl
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11430$as_echo "$ac_res" >&6; }
57aa50d4 11431 fi
b0cacab0 11432
93613951
TT
11433 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11434 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
57aa50d4
TT
11435 && test "$PACKAGE" != gettext-runtime \
11436 && test "$PACKAGE" != gettext-tools; }; then
11437 gt_use_preinstalled_gnugettext=yes
11438 else
11439 LIBINTL=
11440 LTLIBINTL=
11441 INCINTL=
11442 fi
740837de 11443
b0cacab0 11444
57aa50d4
TT
11445 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11446 nls_cv_use_gnu_gettext=yes
11447 fi
11448 fi
b0cacab0 11449
57aa50d4
TT
11450 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11451 BUILD_INCLUDED_LIBINTL=yes
11452 USE_INCLUDED_LIBINTL=yes
93613951
TT
11453 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11454 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
57aa50d4
TT
11455 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11456 fi
b0cacab0 11457
93613951 11458 CATOBJEXT=
57aa50d4
TT
11459 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11460 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11461 CATOBJEXT=.gmo
11462 fi
b0cacab0
TT
11463
11464
93613951
TT
11465 if test -n "$INTL_MACOSX_LIBS"; then
11466 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11467 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11468 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11469 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11470 fi
11471 fi
11472
57aa50d4
TT
11473 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11474 || test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0 11475
57aa50d4 11476$as_echo "#define ENABLE_NLS 1" >>confdefs.h
b0cacab0 11477
57aa50d4
TT
11478 else
11479 USE_NLS=no
11480 fi
11481 fi
b0cacab0 11482
57aa50d4
TT
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11484$as_echo_n "checking whether to use NLS... " >&6; }
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11486$as_echo "$USE_NLS" >&6; }
11487 if test "$USE_NLS" = "yes"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11489$as_echo_n "checking where the gettext function comes from... " >&6; }
11490 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 11491 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
11492 gt_source="external libintl"
11493 else
11494 gt_source="libc"
11495 fi
11496 else
11497 gt_source="included intl directory"
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11500$as_echo "$gt_source" >&6; }
11501 fi
b0cacab0 11502
57aa50d4 11503 if test "$USE_NLS" = "yes"; then
b0cacab0 11504
57aa50d4 11505 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 11506 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11508$as_echo_n "checking how to link with libintl... " >&6; }
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11510$as_echo "$LIBINTL" >&6; }
b0cacab0 11511
57aa50d4
TT
11512 for element in $INCINTL; do
11513 haveit=
11514 for x in $CPPFLAGS; do
b0cacab0 11515
57aa50d4
TT
11516 acl_save_prefix="$prefix"
11517 prefix="$acl_final_prefix"
11518 acl_save_exec_prefix="$exec_prefix"
11519 exec_prefix="$acl_final_exec_prefix"
11520 eval x=\"$x\"
11521 exec_prefix="$acl_save_exec_prefix"
11522 prefix="$acl_save_prefix"
b0cacab0 11523
57aa50d4
TT
11524 if test "X$x" = "X$element"; then
11525 haveit=yes
11526 break
11527 fi
11528 done
11529 if test -z "$haveit"; then
11530 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11531 fi
11532 done
b0cacab0 11533
57aa50d4 11534 fi
b0cacab0
TT
11535
11536
57aa50d4 11537$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
b0cacab0
TT
11538
11539
57aa50d4 11540$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
b0cacab0 11541
57aa50d4 11542 fi
b0cacab0 11543
57aa50d4
TT
11544 POSUB=po
11545 fi
b0cacab0
TT
11546
11547
57aa50d4
TT
11548 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11549 BUILD_INCLUDED_LIBINTL=yes
11550 fi
b0cacab0
TT
11551
11552
11553
11554
11555
57aa50d4
TT
11556 nls_cv_header_intl=
11557 nls_cv_header_libgt=
b0cacab0 11558
57aa50d4 11559 DATADIRNAME=share
762c7c65 11560
106ad96d 11561
57aa50d4 11562 INSTOBJEXT=.mo
106ad96d 11563
e7cc6f7d 11564
57aa50d4 11565 GENCAT=gencat
e7cc6f7d 11566
3d05802f 11567
93613951
TT
11568 INTLOBJS=
11569 if test "$USE_INCLUDED_LIBINTL" = yes; then
57aa50d4
TT
11570 INTLOBJS="\$(GETTOBJS)"
11571 fi
6ec9ef18 11572
d7f45af8 11573
57aa50d4 11574 INTL_LIBTOOL_SUFFIX_PREFIX=
50e1e10f 11575
50e1e10f 11576
b0cacab0 11577
57aa50d4 11578 INTLLIBS="$LIBINTL"
e1052144 11579
b0cacab0 11580
93636bde 11581
93636bde 11582
b0cacab0 11583
93636bde 11584
50e1e10f 11585
57aa50d4
TT
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11587$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11588set x ${MAKE-make}
11589ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6a4bcb5 11590if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
57aa50d4
TT
11591 $as_echo_n "(cached) " >&6
11592else
11593 cat >conftest.make <<\_ACEOF
11594SHELL = /bin/sh
11595all:
11596 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 11597_ACEOF
d6a4bcb5 11598# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
11599case `${MAKE-make} -f conftest.make 2>/dev/null` in
11600 *@@@%%%=?*=@@@%%%*)
11601 eval ac_cv_prog_make_${ac_make}_set=yes;;
11602 *)
11603 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 11604esac
57aa50d4 11605rm -f conftest.make
b0cacab0 11606fi
57aa50d4
TT
11607if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609$as_echo "yes" >&6; }
11610 SET_MAKE=
b0b9c4de 11611else
57aa50d4
TT
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613$as_echo "no" >&6; }
11614 SET_MAKE="MAKE=${MAKE-make}"
b0cacab0 11615fi
b0cacab0 11616
57aa50d4
TT
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11618$as_echo_n "checking for GNU make... " >&6; }
d6a4bcb5 11619if ${_cv_gnu_make_command+:} false; then :
57aa50d4 11620 $as_echo_n "(cached) " >&6
39fd3d4f 11621else
57aa50d4 11622 _cv_gnu_make_command='' ;
e703ba4b 11623 if test -n "$FORCE_NATIVE_MAKE" ; then
f3bc1561
TT
11624 MAKES="make"
11625 else
11626 MAKES="make gmake gnumake"
11627 fi
11628 for a in "$MAKE" $MAKES ; do
57aa50d4
TT
11629 if test -z "$a" ; then continue ; fi ;
11630 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11631 _cv_gnu_make_command=$a ;
11632 break;
11633 fi
11634 done ;
50e1e10f 11635
50e1e10f 11636fi
57aa50d4
TT
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11638$as_echo "$_cv_gnu_make_command" >&6; } ;
11639 if test "x$_cv_gnu_make_command" != "x" ; then
11640 ifGNUmake='' ;
11641 ifNotGNUmake='#' ;
11642 else
11643 ifGNUmake='#' ;
11644 ifNotGNUmake='' ;
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11646$as_echo "\"Not found\"" >&6; };
11647 fi
50e1e10f 11648
50e1e10f 11649
b0cacab0 11650
57aa50d4
TT
11651# Extract the first word of "ln", so it can be a program name with args.
11652set dummy ln; ac_word=$2
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11655if ${ac_cv_path_LN+:} false; then :
39fd3d4f 11656 $as_echo_n "(cached) " >&6
fff45483 11657else
57aa50d4
TT
11658 case $LN in
11659 [\\/]* | ?:[\\/]*)
11660 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11661 ;;
11662 *)
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664for as_dir in $PATH
11665do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11670 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11673 fi
11674done
11675 done
11676IFS=$as_save_IFS
6c65d251 11677
57aa50d4
TT
11678 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11679 ;;
e1052144 11680esac
fff45483 11681fi
57aa50d4
TT
11682LN=$ac_cv_path_LN
11683if test -n "$LN"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11685$as_echo "$LN" >&6; }
11686else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688$as_echo "no" >&6; }
fff45483 11689fi
e1052144 11690
fff45483 11691
5abc0414 11692
57aa50d4
TT
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11694$as_echo_n "checking whether ln -s works... " >&6; }
11695LN_S=$as_ln_s
11696if test "$LN_S" = "ln -s"; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11698$as_echo "yes" >&6; }
11699else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11701$as_echo "no, using $LN_S" >&6; }
fff45483 11702fi
6c65d251 11703
57aa50d4
TT
11704# Extract the first word of "mv", so it can be a program name with args.
11705set dummy mv; ac_word=$2
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11708if ${ac_cv_path_MV+:} false; then :
39fd3d4f 11709 $as_echo_n "(cached) " >&6
fff45483 11710else
57aa50d4
TT
11711 case $MV in
11712 [\\/]* | ?:[\\/]*)
11713 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11714 ;;
11715 *)
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717for as_dir in $PATH
11718do
11719 IFS=$as_save_IFS
11720 test -z "$as_dir" && as_dir=.
11721 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11723 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725 break 2
11726 fi
11727done
11728 done
11729IFS=$as_save_IFS
6c65d251 11730
57aa50d4
TT
11731 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11732 ;;
e1052144 11733esac
b0cacab0 11734fi
57aa50d4
TT
11735MV=$ac_cv_path_MV
11736if test -n "$MV"; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11738$as_echo "$MV" >&6; }
b0b9c4de 11739else
57aa50d4
TT
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741$as_echo "no" >&6; }
39fd3d4f
SJR
11742fi
11743
39fd3d4f 11744
57aa50d4
TT
11745# Extract the first word of "cp", so it can be a program name with args.
11746set dummy cp; ac_word=$2
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11749if ${ac_cv_path_CP+:} false; then :
39fd3d4f 11750 $as_echo_n "(cached) " >&6
b0cacab0 11751else
57aa50d4
TT
11752 case $CP in
11753 [\\/]* | ?:[\\/]*)
11754 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11755 ;;
11756 *)
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758for as_dir in $PATH
11759do
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11764 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11767 fi
11768done
11769 done
11770IFS=$as_save_IFS
39fd3d4f 11771
57aa50d4
TT
11772 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11773 ;;
e1052144 11774esac
b0b9c4de 11775fi
57aa50d4
TT
11776CP=$ac_cv_path_CP
11777if test -n "$CP"; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11779$as_echo "$CP" >&6; }
b0cacab0 11780else
57aa50d4
TT
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782$as_echo "no" >&6; }
b0b9c4de 11783fi
b0b9c4de 11784
6c65d251 11785
57aa50d4
TT
11786# Extract the first word of "rm", so it can be a program name with args.
11787set dummy rm; ac_word=$2
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11790if ${ac_cv_path_RM+:} false; then :
39fd3d4f 11791 $as_echo_n "(cached) " >&6
6928adc9 11792else
57aa50d4
TT
11793 case $RM in
11794 [\\/]* | ?:[\\/]*)
11795 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11796 ;;
11797 *)
11798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799for as_dir in $PATH
11800do
11801 IFS=$as_save_IFS
11802 test -z "$as_dir" && as_dir=.
11803 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11805 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11807 break 2
11808 fi
11809done
b0cacab0 11810 done
57aa50d4 11811IFS=$as_save_IFS
6c65d251 11812
57aa50d4
TT
11813 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11814 ;;
e1052144 11815esac
6928adc9 11816fi
57aa50d4
TT
11817RM=$ac_cv_path_RM
11818if test -n "$RM"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11820$as_echo "$RM" >&6; }
b0cacab0 11821else
57aa50d4
TT
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823$as_echo "no" >&6; }
6928adc9 11824fi
6928adc9 11825
6c65d251 11826
57aa50d4
TT
11827# Extract the first word of "chmod", so it can be a program name with args.
11828set dummy chmod; ac_word=$2
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11831if ${ac_cv_path_CHMOD+:} false; then :
39fd3d4f 11832 $as_echo_n "(cached) " >&6
b0cacab0 11833else
57aa50d4
TT
11834 case $CHMOD in
11835 [\\/]* | ?:[\\/]*)
11836 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11837 ;;
11838 *)
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840for as_dir in $PATH
11841do
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11846 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11848 break 2
11849 fi
11850done
11851 done
11852IFS=$as_save_IFS
39fd3d4f 11853
57aa50d4
TT
11854 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11855 ;;
e1052144 11856esac
b0cacab0 11857fi
57aa50d4
TT
11858CHMOD=$ac_cv_path_CHMOD
11859if test -n "$CHMOD"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11861$as_echo "$CHMOD" >&6; }
b0cacab0 11862else
57aa50d4
TT
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864$as_echo "no" >&6; }
b0cacab0 11865fi
39fd3d4f 11866
b0cacab0 11867
57aa50d4
TT
11868for ac_prog in gawk mawk nawk awk
11869do
11870 # Extract the first word of "$ac_prog", so it can be a program name with args.
11871set dummy $ac_prog; ac_word=$2
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11874if ${ac_cv_prog_AWK+:} false; then :
39fd3d4f 11875 $as_echo_n "(cached) " >&6
b0cacab0 11876else
57aa50d4
TT
11877 if test -n "$AWK"; then
11878 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b0cacab0 11879else
57aa50d4
TT
11880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881for as_dir in $PATH
11882do
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
11885 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11887 ac_cv_prog_AWK="$ac_prog"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889 break 2
11890 fi
11891done
11892 done
11893IFS=$as_save_IFS
b0cacab0 11894
b0cacab0 11895fi
57aa50d4
TT
11896fi
11897AWK=$ac_cv_prog_AWK
11898if test -n "$AWK"; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11900$as_echo "$AWK" >&6; }
b0cacab0 11901else
57aa50d4
TT
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903$as_echo "no" >&6; }
b0cacab0 11904fi
b0cacab0 11905
b0cacab0 11906
57aa50d4
TT
11907 test -n "$AWK" && break
11908done
b0cacab0 11909
57aa50d4
TT
11910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11911$as_echo_n "checking for egrep... " >&6; }
d6a4bcb5 11912if ${ac_cv_path_EGREP+:} false; then :
57aa50d4 11913 $as_echo_n "(cached) " >&6
b0cacab0 11914else
57aa50d4
TT
11915 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11916 then ac_cv_path_EGREP="$GREP -E"
11917 else
11918 if test -z "$EGREP"; then
11919 ac_path_EGREP_found=false
11920 # Loop through the user's path and test for each of PROGNAME-LIST
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11923do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_prog in egrep; do
11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d6a4bcb5 11929 as_fn_executable_p "$ac_path_EGREP" || continue
57aa50d4
TT
11930# Check for GNU ac_path_EGREP and select it if it is found.
11931 # Check for GNU $ac_path_EGREP
11932case `"$ac_path_EGREP" --version 2>&1` in
11933*GNU*)
11934 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11935*)
11936 ac_count=0
11937 $as_echo_n 0123456789 >"conftest.in"
11938 while :
11939 do
11940 cat "conftest.in" "conftest.in" >"conftest.tmp"
11941 mv "conftest.tmp" "conftest.in"
11942 cp "conftest.in" "conftest.nl"
11943 $as_echo 'EGREP' >> "conftest.nl"
11944 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11946 as_fn_arith $ac_count + 1 && ac_count=$as_val
11947 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11948 # Best one so far, save it but keep looking for a better one
11949 ac_cv_path_EGREP="$ac_path_EGREP"
11950 ac_path_EGREP_max=$ac_count
11951 fi
11952 # 10*(2^10) chars as input seems more than enough
11953 test $ac_count -gt 10 && break
11954 done
11955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
e1052144 11956esac
e1052144 11957
57aa50d4
TT
11958 $ac_path_EGREP_found && break 3
11959 done
b0cacab0 11960 done
57aa50d4
TT
11961 done
11962IFS=$as_save_IFS
11963 if test -z "$ac_cv_path_EGREP"; then
d6a4bcb5 11964 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
57aa50d4 11965 fi
b0cacab0 11966else
57aa50d4 11967 ac_cv_path_EGREP=$EGREP
b0cacab0 11968fi
e1052144 11969
57aa50d4 11970 fi
b0cacab0 11971fi
57aa50d4
TT
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11973$as_echo "$ac_cv_path_EGREP" >&6; }
11974 EGREP="$ac_cv_path_EGREP"
e1052144 11975
b0cacab0 11976
57aa50d4
TT
11977# Extract the first word of "sed", so it can be a program name with args.
11978set dummy sed; ac_word=$2
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11981if ${ac_cv_path_SED+:} false; then :
57aa50d4 11982 $as_echo_n "(cached) " >&6
b0cacab0 11983else
57aa50d4
TT
11984 case $SED in
11985 [\\/]* | ?:[\\/]*)
11986 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11987 ;;
11988 *)
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990for as_dir in $PATH
11991do
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11996 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 break 2
11999 fi
b0cacab0 12000done
57aa50d4
TT
12001 done
12002IFS=$as_save_IFS
b0cacab0 12003
57aa50d4
TT
12004 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12005 ;;
b0cacab0 12006esac
57aa50d4
TT
12007fi
12008SED=$ac_cv_path_SED
12009if test -n "$SED"; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12011$as_echo "$SED" >&6; }
b0cacab0 12012else
57aa50d4
TT
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
b0cacab0 12015fi
e1052144 12016
b0cacab0 12017
57aa50d4
TT
12018# Extract the first word of "perl", so it can be a program name with args.
12019set dummy perl; ac_word=$2
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12022if ${ac_cv_path_PERL+:} false; then :
57aa50d4
TT
12023 $as_echo_n "(cached) " >&6
12024else
12025 case $PERL in
12026 [\\/]* | ?:[\\/]*)
12027 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12028 ;;
12029 *)
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031for as_dir in $PATH
12032do
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12037 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12039 break 2
12040 fi
b0cacab0 12041done
57aa50d4
TT
12042 done
12043IFS=$as_save_IFS
12044
12045 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12046 ;;
b0cacab0 12047esac
57aa50d4
TT
12048fi
12049PERL=$ac_cv_path_PERL
12050if test -n "$PERL"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12052$as_echo "$PERL" >&6; }
b0cacab0 12053else
57aa50d4
TT
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055$as_echo "no" >&6; }
12056fi
b0cacab0 12057
b0cacab0 12058
57aa50d4
TT
12059# Extract the first word of "ldconfig", so it can be a program name with args.
12060set dummy ldconfig; ac_word=$2
12061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12063if ${ac_cv_path_LDCONFIG+:} false; then :
57aa50d4 12064 $as_echo_n "(cached) " >&6
b0cacab0 12065else
57aa50d4
TT
12066 case $LDCONFIG in
12067 [\\/]* | ?:[\\/]*)
12068 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12069 ;;
12070 *)
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072for as_dir in $PATH
12073do
12074 IFS=$as_save_IFS
12075 test -z "$as_dir" && as_dir=.
12076 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12078 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12080 break 2
12081 fi
12082done
12083 done
12084IFS=$as_save_IFS
b0cacab0 12085
57aa50d4
TT
12086 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12087 ;;
12088esac
39fd3d4f 12089fi
57aa50d4
TT
12090LDCONFIG=$ac_cv_path_LDCONFIG
12091if test -n "$LDCONFIG"; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12093$as_echo "$LDCONFIG" >&6; }
12094else
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096$as_echo "no" >&6; }
b0cacab0 12097fi
39fd3d4f
SJR
12098
12099
57aa50d4
TT
12100if test -n "$ac_tool_prefix"; then
12101 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12102set dummy ${ac_tool_prefix}ar; ac_word=$2
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12105if ${ac_cv_prog_AR+:} false; then :
57aa50d4
TT
12106 $as_echo_n "(cached) " >&6
12107else
12108 if test -n "$AR"; then
12109 ac_cv_prog_AR="$AR" # Let the user override the test.
12110else
12111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112for as_dir in $PATH
12113do
12114 IFS=$as_save_IFS
12115 test -z "$as_dir" && as_dir=.
12116 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12118 ac_cv_prog_AR="${ac_tool_prefix}ar"
12119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12120 break 2
12121 fi
12122done
12123 done
12124IFS=$as_save_IFS
39fd3d4f 12125
57aa50d4
TT
12126fi
12127fi
12128AR=$ac_cv_prog_AR
12129if test -n "$AR"; then
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12131$as_echo "$AR" >&6; }
12132else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134$as_echo "no" >&6; }
12135fi
39fd3d4f 12136
b0cacab0 12137
57aa50d4
TT
12138fi
12139if test -z "$ac_cv_prog_AR"; then
12140 ac_ct_AR=$AR
12141 # Extract the first word of "ar", so it can be a program name with args.
12142set dummy ar; ac_word=$2
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12145if ${ac_cv_prog_ac_ct_AR+:} false; then :
39fd3d4f 12146 $as_echo_n "(cached) " >&6
b0cacab0 12147else
57aa50d4
TT
12148 if test -n "$ac_ct_AR"; then
12149 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b0cacab0 12150else
57aa50d4
TT
12151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152for as_dir in $PATH
12153do
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
12156 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12158 ac_cv_prog_ac_ct_AR="ar"
12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12160 break 2
12161 fi
12162done
12163 done
12164IFS=$as_save_IFS
b0cacab0 12165
b0cacab0 12166fi
57aa50d4
TT
12167fi
12168ac_ct_AR=$ac_cv_prog_ac_ct_AR
12169if test -n "$ac_ct_AR"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12171$as_echo "$ac_ct_AR" >&6; }
b0cacab0 12172else
57aa50d4
TT
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174$as_echo "no" >&6; }
12175fi
b0cacab0 12176
57aa50d4
TT
12177 if test "x$ac_ct_AR" = x; then
12178 AR="ar"
12179 else
12180 case $cross_compiling:$ac_tool_warned in
12181yes:)
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12184ac_tool_warned=yes ;;
e1052144 12185esac
57aa50d4
TT
12186 AR=$ac_ct_AR
12187 fi
b0cacab0 12188else
57aa50d4 12189 AR="$ac_cv_prog_AR"
b0cacab0 12190fi
e1052144 12191
57aa50d4
TT
12192if test -n "$ac_tool_prefix"; then
12193 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12194set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12197if ${ac_cv_prog_RANLIB+:} false; then :
57aa50d4 12198 $as_echo_n "(cached) " >&6
b0cacab0 12199else
57aa50d4
TT
12200 if test -n "$RANLIB"; then
12201 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12202else
12203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204for as_dir in $PATH
12205do
12206 IFS=$as_save_IFS
12207 test -z "$as_dir" && as_dir=.
12208 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12210 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 break 2
12213 fi
12214done
b0cacab0 12215 done
57aa50d4 12216IFS=$as_save_IFS
b0cacab0 12217
b0cacab0 12218fi
57aa50d4
TT
12219fi
12220RANLIB=$ac_cv_prog_RANLIB
12221if test -n "$RANLIB"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12223$as_echo "$RANLIB" >&6; }
b0cacab0 12224else
57aa50d4
TT
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226$as_echo "no" >&6; }
b0cacab0 12227fi
b0cacab0 12228
b0cacab0 12229
57aa50d4
TT
12230fi
12231if test -z "$ac_cv_prog_RANLIB"; then
12232 ac_ct_RANLIB=$RANLIB
12233 # Extract the first word of "ranlib", so it can be a program name with args.
12234set dummy ranlib; ac_word=$2
12235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12237if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
57aa50d4
TT
12238 $as_echo_n "(cached) " >&6
12239else
12240 if test -n "$ac_ct_RANLIB"; then
12241 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b0cacab0 12242else
57aa50d4
TT
12243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244for as_dir in $PATH
12245do
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12250 ac_cv_prog_ac_ct_RANLIB="ranlib"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12253 fi
12254done
12255 done
12256IFS=$as_save_IFS
29a5deed 12257
b0cacab0 12258fi
57aa50d4
TT
12259fi
12260ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12261if test -n "$ac_ct_RANLIB"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12263$as_echo "$ac_ct_RANLIB" >&6; }
b0cacab0 12264else
57aa50d4
TT
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266$as_echo "no" >&6; }
12267fi
b0cacab0 12268
57aa50d4
TT
12269 if test "x$ac_ct_RANLIB" = x; then
12270 RANLIB=":"
b0cacab0 12271 else
57aa50d4
TT
12272 case $cross_compiling:$ac_tool_warned in
12273yes:)
12274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12276ac_tool_warned=yes ;;
e1052144 12277esac
57aa50d4
TT
12278 RANLIB=$ac_ct_RANLIB
12279 fi
b0cacab0 12280else
57aa50d4 12281 RANLIB="$ac_cv_prog_RANLIB"
b0cacab0 12282fi
e1052144 12283
57aa50d4
TT
12284if test -n "$ac_tool_prefix"; then
12285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12286set dummy ${ac_tool_prefix}strip; ac_word=$2
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12289if ${ac_cv_prog_STRIP+:} false; then :
57aa50d4 12290 $as_echo_n "(cached) " >&6
b0cacab0 12291else
57aa50d4
TT
12292 if test -n "$STRIP"; then
12293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12294else
12295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296for as_dir in $PATH
12297do
12298 IFS=$as_save_IFS
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12302 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12304 break 2
12305 fi
12306done
12307 done
12308IFS=$as_save_IFS
b0cacab0 12309
b0cacab0 12310fi
b0cacab0 12311fi
57aa50d4
TT
12312STRIP=$ac_cv_prog_STRIP
12313if test -n "$STRIP"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12315$as_echo "$STRIP" >&6; }
12316else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318$as_echo "no" >&6; }
b0cacab0 12319fi
e1052144 12320
b0cacab0 12321
57aa50d4
TT
12322fi
12323if test -z "$ac_cv_prog_STRIP"; then
12324 ac_ct_STRIP=$STRIP
12325 # Extract the first word of "strip", so it can be a program name with args.
12326set dummy strip; ac_word=$2
12327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12329if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
39fd3d4f 12330 $as_echo_n "(cached) " >&6
b0cacab0 12331else
57aa50d4
TT
12332 if test -n "$ac_ct_STRIP"; then
12333 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12334else
12335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336for as_dir in $PATH
12337do
12338 IFS=$as_save_IFS
12339 test -z "$as_dir" && as_dir=.
12340 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12342 ac_cv_prog_ac_ct_STRIP="strip"
12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12344 break 2
12345 fi
12346done
12347 done
12348IFS=$as_save_IFS
b0cacab0 12349
b0cacab0 12350fi
57aa50d4
TT
12351fi
12352ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12353if test -n "$ac_ct_STRIP"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12355$as_echo "$ac_ct_STRIP" >&6; }
b0cacab0 12356else
57aa50d4
TT
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358$as_echo "no" >&6; }
12359fi
b0cacab0 12360
57aa50d4
TT
12361 if test "x$ac_ct_STRIP" = x; then
12362 STRIP=":"
b0cacab0 12363 else
57aa50d4
TT
12364 case $cross_compiling:$ac_tool_warned in
12365yes:)
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12368ac_tool_warned=yes ;;
e1052144 12369esac
57aa50d4
TT
12370 STRIP=$ac_ct_STRIP
12371 fi
b0cacab0 12372else
57aa50d4 12373 STRIP="$ac_cv_prog_STRIP"
b0cacab0 12374fi
e1052144 12375
57aa50d4
TT
12376# Extract the first word of "makeinfo", so it can be a program name with args.
12377set dummy makeinfo; ac_word=$2
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12380if ${ac_cv_prog_MAKEINFO+:} false; then :
57aa50d4 12381 $as_echo_n "(cached) " >&6
07a0db15 12382else
57aa50d4
TT
12383 if test -n "$MAKEINFO"; then
12384 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12385else
12386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387for as_dir in $PATH
12388do
12389 IFS=$as_save_IFS
12390 test -z "$as_dir" && as_dir=.
12391 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12393 ac_cv_prog_MAKEINFO="makeinfo"
12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12395 break 2
12396 fi
12397done
12398 done
12399IFS=$as_save_IFS
b0cacab0 12400
b0cacab0
TT
12401fi
12402fi
57aa50d4
TT
12403MAKEINFO=$ac_cv_prog_MAKEINFO
12404if test -n "$MAKEINFO"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12406$as_echo "$MAKEINFO" >&6; }
b0cacab0 12407else
57aa50d4
TT
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409$as_echo "no" >&6; }
07a0db15 12410fi
29a5deed
TT
12411
12412
57aa50d4 12413if test "_$MAKEINFO" = "_"; then
ca1de98a 12414 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
57aa50d4
TT
12415else
12416 case "$MAKEINFO" in
12417 */missing.*)
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12419*** Makeinfo is missing. Info documentation will not be built." >&5
12420$as_echo "$as_me: WARNING:
12421*** Makeinfo is missing. Info documentation will not be built." >&2;}
12422 ;;
12423 *)
12424 ;;
12425 esac
b0cacab0 12426fi
29a5deed 12427
b0cacab0 12428
57aa50d4
TT
12429# See if we need a separate native compiler.
12430if test $cross_compiling = no; then
12431 BUILD_CC="$CC"
b0cacab0 12432
b0cacab0 12433else
57aa50d4
TT
12434 for ac_prog in gcc cc
12435do
12436 # Extract the first word of "$ac_prog", so it can be a program name with args.
12437set dummy $ac_prog; ac_word=$2
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12440if ${ac_cv_prog_BUILD_CC+:} false; then :
57aa50d4 12441 $as_echo_n "(cached) " >&6
b0cacab0 12442else
57aa50d4
TT
12443 if test -n "$BUILD_CC"; then
12444 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12445else
12446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447for as_dir in $PATH
12448do
12449 IFS=$as_save_IFS
12450 test -z "$as_dir" && as_dir=.
12451 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12453 ac_cv_prog_BUILD_CC="$ac_prog"
12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12455 break 2
12456 fi
12457done
12458 done
12459IFS=$as_save_IFS
b0cacab0 12460
b0cacab0 12461fi
57aa50d4
TT
12462fi
12463BUILD_CC=$ac_cv_prog_BUILD_CC
12464if test -n "$BUILD_CC"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12466$as_echo "$BUILD_CC" >&6; }
07a0db15 12467else
57aa50d4
TT
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469$as_echo "no" >&6; }
b0cacab0 12470fi
b0cacab0 12471
b0cacab0 12472
57aa50d4
TT
12473 test -n "$BUILD_CC" && break
12474done
b0cacab0 12475
57aa50d4 12476fi
3829c16c 12477for 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/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
57aa50d4
TT
12478do :
12479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12480ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d6a4bcb5 12481if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
57aa50d4
TT
12482 cat >>confdefs.h <<_ACEOF
12483#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 12484_ACEOF
b0cacab0 12485
b0cacab0 12486fi
e1052144 12487
b0cacab0 12488done
93636bde 12489
ec3a69bb
MA
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12491$as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12492DD=
12493for i in dd gdd ; do
12494 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12495 DD=$i
12496 break
12497 fi
12498done
12499if test -n "$DD" ; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12501$as_echo "$DD" >&6; }
12502else
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12504$as_echo "not found, using dd" >&6; }
12505 DD=dd
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12507$as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12508fi
12509
12510
57aa50d4
TT
12511for ac_header in net/if.h
12512do :
12513 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12514#if HAVE_SYS_TYPES_H
12515#include <sys/types.h>
12516#endif
12517#if HAVE_SYS_SOCKET
12518#include <sys/socket.h>
12519#endif
29a5deed 12520
57aa50d4 12521"
d6a4bcb5 12522if test "x$ac_cv_header_net_if_h" = xyes; then :
57aa50d4
TT
12523 cat >>confdefs.h <<_ACEOF
12524#define HAVE_NET_IF_H 1
b0cacab0 12525_ACEOF
b0cacab0 12526
b0cacab0 12527fi
e1052144 12528
b0cacab0 12529done
b0cacab0 12530
57aa50d4
TT
12531for ac_func in vprintf
12532do :
12533 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
d6a4bcb5 12534if test "x$ac_cv_func_vprintf" = xyes; then :
57aa50d4
TT
12535 cat >>confdefs.h <<_ACEOF
12536#define HAVE_VPRINTF 1
b0cacab0 12537_ACEOF
b0cacab0 12538
57aa50d4 12539ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
d6a4bcb5 12540if test "x$ac_cv_func__doprnt" = xyes; then :
b0cacab0 12541
57aa50d4 12542$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
b0cacab0 12543
50e1e10f 12544fi
29a5deed 12545
57aa50d4
TT
12546fi
12547done
29a5deed
TT
12548
12549
57aa50d4
TT
12550ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12551"
d6a4bcb5 12552if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
d1154eb4
TT
12553
12554$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
50e1e10f 12555
2873927d
TT
12556fi
12557
12558ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12559if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12560
12561cat >>confdefs.h <<_ACEOF
12562#define HAVE_STRUCT_STAT_ST_ATIM 1
12563_ACEOF
12564
12565
b0cacab0 12566fi
93636bde 12567
57aa50d4
TT
12568ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12569"
d6a4bcb5 12570if test "x$ac_cv_type_ssize_t" = xyes; then :
d1154eb4
TT
12571
12572$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
b0cacab0 12573
57aa50d4 12574fi
b0cacab0 12575
57aa50d4
TT
12576ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12577"
d6a4bcb5 12578if test "x$ac_cv_have_decl_llseek" = xyes; then :
d1154eb4
TT
12579
12580$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
b0cacab0 12581
b0cacab0 12582fi
e1052144 12583
57aa50d4
TT
12584ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12585 #define _LARGEFILE64_SOURCE
12586 #include <unistd.h>
12587"
d6a4bcb5 12588if test "x$ac_cv_have_decl_lseek64" = xyes; then :
d1154eb4
TT
12589
12590$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
b0cacab0 12591
b0cacab0 12592fi
b0cacab0 12593
57aa50d4
TT
12594# The cast to long int works around a bug in the HP C Compiler
12595# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12596# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12597# This bug is HP SR number 8606223364.
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12599$as_echo_n "checking size of short... " >&6; }
d6a4bcb5 12600if ${ac_cv_sizeof_short+:} false; then :
57aa50d4 12601 $as_echo_n "(cached) " >&6
07a0db15 12602else
57aa50d4 12603 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
b0cacab0 12604
b0cacab0 12605else
57aa50d4
TT
12606 if test "$ac_cv_type_short" = yes; then
12607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12609as_fn_error 77 "cannot compute sizeof (short)
12610See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12611 else
12612 ac_cv_sizeof_short=0
12613 fi
07a0db15 12614fi
b0cacab0 12615
b0cacab0 12616fi
57aa50d4
TT
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12618$as_echo "$ac_cv_sizeof_short" >&6; }
e1052144 12619
93636bde 12620
57aa50d4
TT
12621
12622cat >>confdefs.h <<_ACEOF
12623#define SIZEOF_SHORT $ac_cv_sizeof_short
b0cacab0 12624_ACEOF
57aa50d4
TT
12625
12626
12627# The cast to long int works around a bug in the HP C Compiler
12628# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12629# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12630# This bug is HP SR number 8606223364.
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12632$as_echo_n "checking size of int... " >&6; }
d6a4bcb5 12633if ${ac_cv_sizeof_int+:} false; then :
57aa50d4 12634 $as_echo_n "(cached) " >&6
07a0db15 12635else
57aa50d4 12636 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
93636bde 12637
57aa50d4
TT
12638else
12639 if test "$ac_cv_type_int" = yes; then
12640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12642as_fn_error 77 "cannot compute sizeof (int)
12643See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12644 else
12645 ac_cv_sizeof_int=0
12646 fi
07a0db15 12647fi
e1052144 12648
b0cacab0 12649fi
57aa50d4
TT
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12651$as_echo "$ac_cv_sizeof_int" >&6; }
e1052144 12652
93636bde 12653
57aa50d4
TT
12654
12655cat >>confdefs.h <<_ACEOF
12656#define SIZEOF_INT $ac_cv_sizeof_int
b0cacab0 12657_ACEOF
b0cacab0 12658
e1052144 12659
57aa50d4
TT
12660# The cast to long int works around a bug in the HP C Compiler
12661# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12662# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12663# This bug is HP SR number 8606223364.
12664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12665$as_echo_n "checking size of long... " >&6; }
d6a4bcb5 12666if ${ac_cv_sizeof_long+:} false; then :
57aa50d4
TT
12667 $as_echo_n "(cached) " >&6
12668else
12669 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12670
12671else
12672 if test "$ac_cv_type_long" = yes; then
12673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 12674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12675as_fn_error 77 "cannot compute sizeof (long)
12676See \`config.log' for more details" "$LINENO" 5; }
29a5deed 12677 else
57aa50d4
TT
12678 ac_cv_sizeof_long=0
12679 fi
12680fi
39fd3d4f 12681
57aa50d4
TT
12682fi
12683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12684$as_echo "$ac_cv_sizeof_long" >&6; }
39fd3d4f 12685
57aa50d4
TT
12686
12687
12688cat >>confdefs.h <<_ACEOF
12689#define SIZEOF_LONG $ac_cv_sizeof_long
39fd3d4f 12690_ACEOF
57aa50d4
TT
12691
12692
12693# The cast to long int works around a bug in the HP C Compiler
12694# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12695# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12696# This bug is HP SR number 8606223364.
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12698$as_echo_n "checking size of long long... " >&6; }
d6a4bcb5 12699if ${ac_cv_sizeof_long_long+:} false; then :
57aa50d4 12700 $as_echo_n "(cached) " >&6
39fd3d4f 12701else
57aa50d4 12702 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
39fd3d4f 12703
57aa50d4
TT
12704else
12705 if test "$ac_cv_type_long_long" = yes; then
12706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 12707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12708as_fn_error 77 "cannot compute sizeof (long long)
12709See \`config.log' for more details" "$LINENO" 5; }
39fd3d4f
SJR
12710 else
12711 ac_cv_sizeof_long_long=0
12712 fi
12713fi
57aa50d4 12714
39fd3d4f 12715fi
57aa50d4 12716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
39fd3d4f
SJR
12717$as_echo "$ac_cv_sizeof_long_long" >&6; }
12718
12719
12720
12721cat >>confdefs.h <<_ACEOF
12722#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12723_ACEOF
12724
12725
cc68e8a6
TT
12726# The cast to long int works around a bug in the HP C Compiler
12727# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12728# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12729# This bug is HP SR number 8606223364.
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12731$as_echo_n "checking size of off_t... " >&6; }
12732if ${ac_cv_sizeof_off_t+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734else
12735 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12736
12737else
12738 if test "$ac_cv_type_off_t" = yes; then
12739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12741as_fn_error 77 "cannot compute sizeof (off_t)
12742See \`config.log' for more details" "$LINENO" 5; }
12743 else
12744 ac_cv_sizeof_off_t=0
12745 fi
12746fi
12747
12748fi
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12750$as_echo "$ac_cv_sizeof_off_t" >&6; }
12751
12752
12753
12754cat >>confdefs.h <<_ACEOF
12755#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12756_ACEOF
12757
12758
2dd680f3
TT
12759# The cast to long int works around a bug in the HP C Compiler
12760# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12761# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12762# This bug is HP SR number 8606223364.
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12764$as_echo_n "checking size of time_t... " >&6; }
12765if ${ac_cv_sizeof_time_t+:} false; then :
12766 $as_echo_n "(cached) " >&6
12767else
12768 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12769
12770else
12771 if test "$ac_cv_type_time_t" = yes; then
12772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12774as_fn_error 77 "cannot compute sizeof (time_t)
12775See \`config.log' for more details" "$LINENO" 5; }
12776 else
12777 ac_cv_sizeof_time_t=0
12778 fi
12779fi
12780
12781fi
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12783$as_echo "$ac_cv_sizeof_time_t" >&6; }
12784
12785
12786
12787cat >>confdefs.h <<_ACEOF
12788#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12789_ACEOF
12790
12791
39fd3d4f
SJR
12792SIZEOF_SHORT=$ac_cv_sizeof_short
12793SIZEOF_INT=$ac_cv_sizeof_int
12794SIZEOF_LONG=$ac_cv_sizeof_long
12795SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
cc68e8a6 12796SIZEOF_OFF_T=$ac_cv_sizeof_off_t
2dd680f3
TT
12797SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12798
cc68e8a6 12799
39fd3d4f
SJR
12800
12801
12802
12803
57aa50d4 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
39fd3d4f 12805$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6a4bcb5 12806if ${ac_cv_c_bigendian+:} false; then :
39fd3d4f
SJR
12807 $as_echo_n "(cached) " >&6
12808else
12809 ac_cv_c_bigendian=unknown
12810 # See if we're dealing with a universal compiler.
57aa50d4 12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12812/* end confdefs.h. */
12813#ifndef __APPLE_CC__
12814 not a universal capable compiler
12815 #endif
12816 typedef int dummy;
12817
12818_ACEOF
57aa50d4 12819if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
12820
12821 # Check for potential -arch flags. It is not universal unless
57aa50d4
TT
12822 # there are at least two -arch flags with different values.
12823 ac_arch=
12824 ac_prev=
12825 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12826 if test -n "$ac_prev"; then
12827 case $ac_word in
12828 i?86 | x86_64 | ppc | ppc64)
12829 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12830 ac_arch=$ac_word
12831 else
12832 ac_cv_c_bigendian=universal
12833 break
12834 fi
12835 ;;
12836 esac
12837 ac_prev=
12838 elif test "x$ac_word" = "x-arch"; then
12839 ac_prev=arch
12840 fi
12841 done
39fd3d4f 12842fi
39fd3d4f
SJR
12843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844 if test $ac_cv_c_bigendian = unknown; then
12845 # See if sys/param.h defines the BYTE_ORDER macro.
57aa50d4 12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12847/* end confdefs.h. */
12848#include <sys/types.h>
12849 #include <sys/param.h>
12850
12851int
12852main ()
12853{
12854#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12855 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12856 && LITTLE_ENDIAN)
12857 bogus endian macros
12858 #endif
12859
12860 ;
12861 return 0;
12862}
12863_ACEOF
57aa50d4 12864if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 12865 # It does; now see whether it defined to BIG_ENDIAN or not.
57aa50d4 12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12867/* end confdefs.h. */
12868#include <sys/types.h>
12869 #include <sys/param.h>
12870
b0cacab0
TT
12871int
12872main ()
07a0db15 12873{
39fd3d4f
SJR
12874#if BYTE_ORDER != BIG_ENDIAN
12875 not big endian
12876 #endif
b0cacab0
TT
12877
12878 ;
12879 return 0;
07a0db15 12880}
b0cacab0 12881_ACEOF
57aa50d4 12882if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 12883 ac_cv_c_bigendian=yes
b0cacab0 12884else
57aa50d4 12885 ac_cv_c_bigendian=no
fc6d9d51 12886fi
39fd3d4f 12887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 12888fi
39fd3d4f
SJR
12889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 fi
12891 if test $ac_cv_c_bigendian = unknown; then
12892 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57aa50d4 12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12894/* end confdefs.h. */
39fd3d4f 12895#include <limits.h>
877eb6d9 12896
b0cacab0
TT
12897int
12898main ()
12899{
39fd3d4f
SJR
12900#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12901 bogus endian macros
12902 #endif
b0cacab0
TT
12903
12904 ;
12905 return 0;
12906}
b0cacab0 12907_ACEOF
57aa50d4
TT
12908if ac_fn_c_try_compile "$LINENO"; then :
12909 # It does; now see whether it defined to _BIG_ENDIAN or not.
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12911/* end confdefs.h. */
39fd3d4f 12912#include <limits.h>
877eb6d9 12913
b0cacab0
TT
12914int
12915main ()
12916{
39fd3d4f
SJR
12917#ifndef _BIG_ENDIAN
12918 not big endian
12919 #endif
b0cacab0
TT
12920
12921 ;
12922 return 0;
12923}
12924_ACEOF
57aa50d4 12925if ac_fn_c_try_compile "$LINENO"; then :
877eb6d9
TT
12926 ac_cv_c_bigendian=yes
12927else
57aa50d4 12928 ac_cv_c_bigendian=no
877eb6d9 12929fi
e1052144 12930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 12931fi
39fd3d4f
SJR
12932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12933 fi
12934 if test $ac_cv_c_bigendian = unknown; then
12935 # Compile a test program.
57aa50d4 12936 if test "$cross_compiling" = yes; then :
39fd3d4f 12937 # Try to guess by grepping values from an object file.
57aa50d4 12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12939/* end confdefs.h. */
39fd3d4f
SJR
12940short int ascii_mm[] =
12941 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12942 short int ascii_ii[] =
12943 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12944 int use_ascii (int i) {
12945 return ascii_mm[i] + ascii_ii[i];
12946 }
12947 short int ebcdic_ii[] =
12948 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12949 short int ebcdic_mm[] =
12950 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12951 int use_ebcdic (int i) {
12952 return ebcdic_mm[i] + ebcdic_ii[i];
12953 }
12954 extern int foo;
12955
b0cacab0
TT
12956int
12957main ()
12958{
39fd3d4f 12959return use_ascii (foo) == use_ebcdic (foo);
b0cacab0
TT
12960 ;
12961 return 0;
12962}
12963_ACEOF
57aa50d4 12964if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
12965 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12966 ac_cv_c_bigendian=yes
12967 fi
12968 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12969 if test "$ac_cv_c_bigendian" = unknown; then
12970 ac_cv_c_bigendian=no
12971 else
12972 # finding both strings is unlikely to happen, but who knows?
12973 ac_cv_c_bigendian=unknown
12974 fi
12975 fi
b0cacab0 12976fi
e1052144 12977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 12978else
57aa50d4 12979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12980/* end confdefs.h. */
e1052144 12981$ac_includes_default
b0cacab0
TT
12982int
12983main ()
12984{
e1052144 12985
39fd3d4f
SJR
12986 /* Are we little or big endian? From Harbison&Steele. */
12987 union
12988 {
12989 long int l;
12990 char c[sizeof (long int)];
12991 } u;
12992 u.l = 1;
12993 return u.c[sizeof (long int) - 1] == 1;
e1052144
TT
12994
12995 ;
12996 return 0;
877eb6d9 12997}
b0cacab0 12998_ACEOF
57aa50d4 12999if ac_fn_c_try_run "$LINENO"; then :
877eb6d9
TT
13000 ac_cv_c_bigendian=no
13001else
57aa50d4 13002 ac_cv_c_bigendian=yes
877eb6d9 13003fi
57aa50d4
TT
13004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13005 conftest.$ac_objext conftest.beam conftest.$ac_ext
877eb6d9 13006fi
e1052144 13007
39fd3d4f 13008 fi
877eb6d9 13009fi
57aa50d4 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
39fd3d4f
SJR
13011$as_echo "$ac_cv_c_bigendian" >&6; }
13012 case $ac_cv_c_bigendian in #(
13013 yes)
57aa50d4 13014 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
39fd3d4f
SJR
13015;; #(
13016 no)
13017 ;; #(
13018 universal)
07a0db15 13019
57aa50d4 13020$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
39fd3d4f
SJR
13021
13022 ;; #(
13023 *)
d6a4bcb5 13024 as_fn_error $? "unknown endianness
57aa50d4 13025 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
39fd3d4f 13026 esac
877eb6d9 13027
91f04685
CQ
13028if test $cross_compiling = no; then
13029 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13030else
13031 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13032fi
4ea7ea00
TT
13033ASM_TYPES_HEADER=./asm_types.h
13034
488c75a6
TT
13035echo "/* These defines are needed for the public ext2fs.h header file */" \
13036 > public_config.h
13037if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13038 uniq tmp_config.$$ >> public_config.h
13039else
13040 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13041fi
13042if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13043 uniq tmp_config.$$ >> public_config.h
13044else
13045 echo "#undef WORDS_BIGENDIAN" >> public_config.h
13046fi
13047rm -f tmp_config.$$
13048PUBLIC_CONFIG_HEADER=./public_config.h
13049
b0cacab0 13050for ac_header in inttypes.h
57aa50d4
TT
13051do :
13052 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
d6a4bcb5 13053if test "x$ac_cv_header_inttypes_h" = xyes; then :
b0cacab0 13054 cat >>confdefs.h <<_ACEOF
57aa50d4 13055#define HAVE_INTTYPES_H 1
b0cacab0
TT
13056_ACEOF
13057
13058fi
13059
0c193f82
TT
13060done
13061
57aa50d4 13062ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
d6a4bcb5 13063if test "x$ac_cv_type_intptr_t" = xyes; then :
b0cacab0
TT
13064
13065cat >>confdefs.h <<_ACEOF
d2ee56d8 13066#define HAVE_INTPTR_T 1
b0cacab0 13067_ACEOF
0c193f82 13068
d2ee56d8 13069
0c193f82
TT
13070fi
13071
57aa50d4 13072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
39fd3d4f 13073$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
d6a4bcb5 13074if ${e2fsprogs_cv_struct_st_flags+:} false; then :
39fd3d4f 13075 $as_echo_n "(cached) " >&6
50e1e10f 13076else
57aa50d4 13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13078/* end confdefs.h. */
50e1e10f 13079#include <sys/stat.h>
b0cacab0
TT
13080int
13081main ()
13082{
50e1e10f 13083struct stat stat; stat.st_flags = 0;
b0cacab0
TT
13084 ;
13085 return 0;
13086}
13087_ACEOF
57aa50d4 13088if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f
TT
13089 e2fsprogs_cv_struct_st_flags=yes
13090else
57aa50d4 13091 e2fsprogs_cv_struct_st_flags=no
50e1e10f 13092fi
e1052144 13093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f
TT
13094fi
13095
57aa50d4 13096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
39fd3d4f 13097$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
50e1e10f 13098if test "$e2fsprogs_cv_struct_st_flags" = yes; then
57aa50d4 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
39fd3d4f 13100$as_echo_n "checking whether st_flags field is useful... " >&6; }
d6a4bcb5 13101 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
39fd3d4f 13102 $as_echo_n "(cached) " >&6
b0cacab0 13103else
57aa50d4 13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13105/* end confdefs.h. */
c03bc4e8 13106#include <sys/stat.h>
b0cacab0
TT
13107int
13108main ()
13109{
c03bc4e8 13110struct stat stat; stat.st_flags |= UF_IMMUTABLE;
b0cacab0
TT
13111 ;
13112 return 0;
13113}
57aa50d4
TT
13114_ACEOF
13115if ac_fn_c_try_compile "$LINENO"; then :
13116 e2fsprogs_cv_struct_st_flags_immut=yes
6c65d251 13117else
57aa50d4 13118 e2fsprogs_cv_struct_st_flags_immut=no
84ea6e70 13119fi
e1052144 13120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84ea6e70 13121fi
e1052144 13122
57aa50d4
TT
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13124$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13125 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
d1154eb4
TT
13126
13127$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
57aa50d4
TT
13128
13129 fi
6c65d251 13130fi
57aa50d4
TT
13131ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13132 #include <sys/socket.h>
13133"
d6a4bcb5 13134if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
b0cacab0
TT
13135
13136cat >>confdefs.h <<_ACEOF
84ea6e70 13137#define HAVE_SA_LEN 1
b0cacab0 13138_ACEOF
84ea6e70 13139
50e1e10f 13140fi
b0cacab0 13141
9ed8e5fe 13142if test -n "$BLKID_CMT"; then
7154d974
TT
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13144$as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13145if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
9ed8e5fe
ES
13146 $as_echo_n "(cached) " >&6
13147else
7154d974
TT
13148 ac_check_lib_save_LIBS=$LIBS
13149LIBS="-lblkid $LIBS"
57aa50d4 13150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9ed8e5fe
ES
13151/* end confdefs.h. */
13152
13153/* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13156#ifdef __cplusplus
13157extern "C"
13158#endif
7154d974 13159char blkid_probe_get_topology ();
9ed8e5fe
ES
13160int
13161main ()
13162{
7154d974 13163return blkid_probe_get_topology ();
9ed8e5fe
ES
13164 ;
13165 return 0;
13166}
13167_ACEOF
7154d974
TT
13168if ac_fn_c_try_link "$LINENO"; then :
13169 ac_cv_lib_blkid_blkid_probe_get_topology=yes
13170else
13171 ac_cv_lib_blkid_blkid_probe_get_topology=no
9ed8e5fe 13172fi
57aa50d4 13173rm -f core conftest.err conftest.$ac_objext \
7154d974
TT
13174 conftest$ac_exeext conftest.$ac_ext
13175LIBS=$ac_check_lib_save_LIBS
9ed8e5fe 13176fi
7154d974
TT
13177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13178$as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13179if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
188bf39a
TT
13180
13181$as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
7154d974
TT
13182
13183fi
13184
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13186$as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13187if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
13188 $as_echo_n "(cached) " >&6
13189else
13190 ac_check_lib_save_LIBS=$LIBS
13191LIBS="-lblkid $LIBS"
13192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193/* end confdefs.h. */
57aa50d4 13194
7154d974
TT
13195/* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13198#ifdef __cplusplus
13199extern "C"
13200#endif
13201char blkid_probe_enable_partitions ();
13202int
13203main ()
13204{
13205return blkid_probe_enable_partitions ();
13206 ;
13207 return 0;
13208}
13209_ACEOF
13210if ac_fn_c_try_link "$LINENO"; then :
13211 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
9ed8e5fe 13212else
7154d974 13213 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
9ed8e5fe 13214fi
7154d974
TT
13215rm -f core conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217LIBS=$ac_check_lib_save_LIBS
9ed8e5fe 13218fi
7154d974
TT
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13220$as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13221if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
188bf39a
TT
13222
13223$as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
9ed8e5fe
ES
13224
13225fi
13226
13227fi
32179ce2
TT
13228if test -n "$DLOPEN_LIB" ; then
13229 ac_cv_func_dlopen=yes
13230fi
7154d974 13231for ac_func in __secure_getenv add_key backtrace chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
57aa50d4
TT
13232do :
13233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13234ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d6a4bcb5 13235if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b0cacab0 13236 cat >>confdefs.h <<_ACEOF
39fd3d4f 13237#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b0cacab0 13238_ACEOF
21c84b71 13239
50e1e10f
TT
13240fi
13241done
13242
fc6d9d51 13243SOCKET_LIB=''
57aa50d4 13244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
39fd3d4f 13245$as_echo_n "checking for socket in -lsocket... " >&6; }
d6a4bcb5 13246if ${ac_cv_lib_socket_socket+:} false; then :
39fd3d4f 13247 $as_echo_n "(cached) " >&6
50e1e10f 13248else
b0cacab0 13249 ac_check_lib_save_LIBS=$LIBS
fc6d9d51 13250LIBS="-lsocket $LIBS"
57aa50d4 13251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13252/* end confdefs.h. */
93636bde 13253
e1052144
TT
13254/* Override any GCC internal prototype to avoid an error.
13255 Use char because int might match the return type of a GCC
13256 builtin and then its argument prototype would still apply. */
b0cacab0
TT
13257#ifdef __cplusplus
13258extern "C"
13259#endif
b0cacab0
TT
13260char socket ();
13261int
13262main ()
13263{
e1052144 13264return socket ();
b0cacab0
TT
13265 ;
13266 return 0;
13267}
13268_ACEOF
57aa50d4 13269if ac_fn_c_try_link "$LINENO"; then :
b0cacab0
TT
13270 ac_cv_lib_socket_socket=yes
13271else
57aa50d4 13272 ac_cv_lib_socket_socket=no
b0cacab0 13273fi
57aa50d4
TT
13274rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
b0cacab0
TT
13276LIBS=$ac_check_lib_save_LIBS
13277fi
57aa50d4 13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
39fd3d4f 13279$as_echo "$ac_cv_lib_socket_socket" >&6; }
d6a4bcb5 13280if test "x$ac_cv_lib_socket_socket" = xyes; then :
fc6d9d51 13281 SOCKET_LIB=-lsocket
50e1e10f 13282fi
fc6d9d51 13283
93636bde 13284
b291c11f
DW
13285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13286$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13287if ${ac_cv_lib_magic_magic_file+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289else
13290 ac_check_lib_save_LIBS=$LIBS
13291LIBS="-lmagic $LIBS"
13292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293/* end confdefs.h. */
13294
13295/* Override any GCC internal prototype to avoid an error.
13296 Use char because int might match the return type of a GCC
13297 builtin and then its argument prototype would still apply. */
13298#ifdef __cplusplus
13299extern "C"
13300#endif
13301char magic_file ();
13302int
13303main ()
13304{
13305return magic_file ();
13306 ;
13307 return 0;
13308}
13309_ACEOF
13310if ac_fn_c_try_link "$LINENO"; then :
13311 ac_cv_lib_magic_magic_file=yes
13312else
13313 ac_cv_lib_magic_magic_file=no
13314fi
13315rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13317LIBS=$ac_check_lib_save_LIBS
13318fi
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13320$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13321if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13322 MAGIC_LIB=-lmagic
13323for ac_header in magic.h
13324do :
13325 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13326if test "x$ac_cv_header_magic_h" = xyes; then :
13327 cat >>confdefs.h <<_ACEOF
13328#define HAVE_MAGIC_H 1
13329_ACEOF
13330
13331fi
13332
13333done
13334
13335fi
13336
32179ce2 13337if test "$ac_cv_func_dlopen" = yes ; then
d2e3c0dc
TT
13338 MAGIC_LIB=$DLOPEN_LIB
13339fi
b291c11f 13340
c94da047
TT
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13342$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13343if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13344 $as_echo_n "(cached) " >&6
13345else
13346 ac_check_lib_save_LIBS=$LIBS
13347LIBS="-lrt $LIBS"
13348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349/* end confdefs.h. */
13350
13351/* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13354#ifdef __cplusplus
13355extern "C"
13356#endif
13357char clock_gettime ();
13358int
13359main ()
13360{
13361return clock_gettime ();
13362 ;
13363 return 0;
13364}
13365_ACEOF
13366if ac_fn_c_try_link "$LINENO"; then :
13367 ac_cv_lib_rt_clock_gettime=yes
13368else
13369 ac_cv_lib_rt_clock_gettime=no
13370fi
13371rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13373LIBS=$ac_check_lib_save_LIBS
13374fi
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13376$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13377if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13378 CLOCK_GETTIME_LIB=-lrt
13379fi
13380
13381
81cbf1ef
DW
13382FUSE_CMT=
13383FUSE_LIB=
13384# Check whether --enable-fuse2fs was given.
13385if test "${enable_fuse2fs+set}" = set; then :
13386 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13387then
13388 FUSE_CMT="#"
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13390$as_echo "Disabling fuse2fs" >&6; }
13391else
13392 for ac_header in pthread.h fuse.h
13393do :
13394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13395ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13396#define FUSE_USE_VERSION 29
13397"
13398if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13399 cat >>confdefs.h <<_ACEOF
13400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13401_ACEOF
13402
13403else
13404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13406as_fn_error $? "Cannot find fuse2fs headers.
13407See \`config.log' for more details" "$LINENO" 5; }
13408fi
13409
13410done
13411
13412
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414/* end confdefs.h. */
13415#define FUSE_USE_VERSION 29
13416#ifdef __linux__
13417#include <linux/fs.h>
13418#include <linux/falloc.h>
13419#include <linux/xattr.h>
13420#endif
13421
13422int
13423main ()
13424{
13425
13426 ;
13427 return 0;
13428}
13429_ACEOF
13430if ac_fn_c_try_cpp "$LINENO"; then :
13431
13432else
13433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13435as_fn_error $? "Cannot find fuse2fs Linux headers.
13436See \`config.log' for more details" "$LINENO" 5; }
13437fi
13438rm -f conftest.err conftest.i conftest.$ac_ext
13439
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13441$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13442if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444else
13445 ac_check_lib_save_LIBS=$LIBS
13446LIBS="-losxfuse $LIBS"
13447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448/* end confdefs.h. */
13449
13450/* Override any GCC internal prototype to avoid an error.
13451 Use char because int might match the return type of a GCC
13452 builtin and then its argument prototype would still apply. */
13453#ifdef __cplusplus
13454extern "C"
13455#endif
13456char fuse_main ();
13457int
13458main ()
13459{
13460return fuse_main ();
13461 ;
13462 return 0;
13463}
13464_ACEOF
13465if ac_fn_c_try_link "$LINENO"; then :
13466 ac_cv_lib_osxfuse_fuse_main=yes
13467else
13468 ac_cv_lib_osxfuse_fuse_main=no
13469fi
13470rm -f core conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
13472LIBS=$ac_check_lib_save_LIBS
13473fi
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13475$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13476if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13477 FUSE_LIB=-losxfuse
13478else
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13480$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13481if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483else
13484 ac_check_lib_save_LIBS=$LIBS
13485LIBS="-lfuse $LIBS"
13486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487/* end confdefs.h. */
13488
13489/* Override any GCC internal prototype to avoid an error.
13490 Use char because int might match the return type of a GCC
13491 builtin and then its argument prototype would still apply. */
13492#ifdef __cplusplus
13493extern "C"
13494#endif
13495char fuse_main ();
13496int
13497main ()
13498{
13499return fuse_main ();
13500 ;
13501 return 0;
13502}
13503_ACEOF
13504if ac_fn_c_try_link "$LINENO"; then :
13505 ac_cv_lib_fuse_fuse_main=yes
13506else
13507 ac_cv_lib_fuse_fuse_main=no
13508fi
13509rm -f core conftest.err conftest.$ac_objext \
13510 conftest$ac_exeext conftest.$ac_ext
13511LIBS=$ac_check_lib_save_LIBS
13512fi
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13514$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13515if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13516 FUSE_LIB=-lfuse
13517else
13518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13520as_fn_error $? "Cannot find fuse library.
13521See \`config.log' for more details" "$LINENO" 5; }
13522fi
13523
13524fi
13525
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13527$as_echo "Enabling fuse2fs" >&6; }
13528fi
13529
13530else
13531 for ac_header in pthread.h fuse.h
13532do :
13533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13534ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13535#define FUSE_USE_VERSION 29
13536#ifdef __linux__
13537# include <linux/fs.h>
13538# include <linux/falloc.h>
13539# include <linux/xattr.h>
13540#endif
13541"
13542if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13543 cat >>confdefs.h <<_ACEOF
13544#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13545_ACEOF
13546
13547else
13548 FUSE_CMT="#"
13549fi
13550
13551done
13552
13553if test -z "$FUSE_CMT"
13554then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13556$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13557if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13558 $as_echo_n "(cached) " >&6
13559else
13560 ac_check_lib_save_LIBS=$LIBS
13561LIBS="-losxfuse $LIBS"
13562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563/* end confdefs.h. */
13564
13565/* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
13568#ifdef __cplusplus
13569extern "C"
13570#endif
13571char fuse_main ();
13572int
13573main ()
13574{
13575return fuse_main ();
13576 ;
13577 return 0;
13578}
13579_ACEOF
13580if ac_fn_c_try_link "$LINENO"; then :
13581 ac_cv_lib_osxfuse_fuse_main=yes
13582else
13583 ac_cv_lib_osxfuse_fuse_main=no
13584fi
13585rm -f core conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
13587LIBS=$ac_check_lib_save_LIBS
13588fi
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13590$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13591if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13592 FUSE_LIB=-losxfuse
13593else
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13595$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13596if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598else
13599 ac_check_lib_save_LIBS=$LIBS
13600LIBS="-lfuse $LIBS"
13601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602/* end confdefs.h. */
13603
13604/* Override any GCC internal prototype to avoid an error.
13605 Use char because int might match the return type of a GCC
13606 builtin and then its argument prototype would still apply. */
13607#ifdef __cplusplus
13608extern "C"
13609#endif
13610char fuse_main ();
13611int
13612main ()
13613{
13614return fuse_main ();
13615 ;
13616 return 0;
13617}
13618_ACEOF
13619if ac_fn_c_try_link "$LINENO"; then :
13620 ac_cv_lib_fuse_fuse_main=yes
13621else
13622 ac_cv_lib_fuse_fuse_main=no
13623fi
13624rm -f core conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13626LIBS=$ac_check_lib_save_LIBS
13627fi
13628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13629$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13630if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13631 FUSE_LIB=-lfuse
13632else
13633 FUSE_CMT="#"
13634fi
13635
13636fi
13637
13638fi
13639if test -z "$FUSE_CMT"
13640then
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13642$as_echo "Enabling fuse2fs by default." >&6; }
13643fi
13644
13645fi
13646
13647
13648
57aa50d4 13649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
39fd3d4f 13650$as_echo_n "checking for optreset... " >&6; }
d6a4bcb5 13651if ${ac_cv_have_optreset+:} false; then :
39fd3d4f 13652 $as_echo_n "(cached) " >&6
d7f45af8 13653else
57aa50d4 13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8 13655/* end confdefs.h. */
57aa50d4
TT
13656#include <unistd.h>
13657
13658_ACEOF
13659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13660 $EGREP "optreset" >/dev/null 2>&1; then :
13661 ac_cv_have_optreset=yes
d7f45af8 13662else
57aa50d4
TT
13663 ac_cv_have_optreset=no
13664fi
13665rm -f conftest*
d7f45af8 13666
d7f45af8 13667fi
57aa50d4
TT
13668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13669$as_echo "$ac_cv_have_optreset" >&6; }
13670if test $ac_cv_have_optreset = yes; then
d1154eb4
TT
13671
13672$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
d7f45af8 13673
d7f45af8 13674fi
d1154eb4 13675
57aa50d4 13676SEM_INIT_LIB=''
cfb8e0bd
TT
13677echo GL_THREADS_API: ${gl_threads_api}
13678if test "${gl_threads_api}" != none
13679then
13680 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
d6a4bcb5 13681if test "x$ac_cv_func_sem_init" = xyes; then :
57aa50d4 13682
d7f45af8 13683else
57aa50d4 13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
39fd3d4f 13685$as_echo_n "checking for sem_init in -lpthread... " >&6; }
d6a4bcb5 13686if ${ac_cv_lib_pthread_sem_init+:} false; then :
39fd3d4f 13687 $as_echo_n "(cached) " >&6
d7f45af8
TT
13688else
13689 ac_check_lib_save_LIBS=$LIBS
13690LIBS="-lpthread $LIBS"
57aa50d4 13691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13692/* end confdefs.h. */
13693
13694/* Override any GCC internal prototype to avoid an error.
13695 Use char because int might match the return type of a GCC
13696 builtin and then its argument prototype would still apply. */
13697#ifdef __cplusplus
13698extern "C"
13699#endif
13700char sem_init ();
13701int
13702main ()
13703{
13704return sem_init ();
13705 ;
13706 return 0;
13707}
13708_ACEOF
57aa50d4 13709if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13710 ac_cv_lib_pthread_sem_init=yes
13711else
57aa50d4 13712 ac_cv_lib_pthread_sem_init=no
d7f45af8 13713fi
57aa50d4
TT
13714rm -f core conftest.err conftest.$ac_objext \
13715 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13716LIBS=$ac_check_lib_save_LIBS
13717fi
57aa50d4 13718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
39fd3d4f 13719$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
d6a4bcb5 13720if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
57aa50d4 13721 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13722
13723 SEM_INIT_LIB=-lpthread
13724else
57aa50d4 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
39fd3d4f 13726$as_echo_n "checking for sem_init in -lrt... " >&6; }
d6a4bcb5 13727if ${ac_cv_lib_rt_sem_init+:} false; then :
39fd3d4f 13728 $as_echo_n "(cached) " >&6
d7f45af8
TT
13729else
13730 ac_check_lib_save_LIBS=$LIBS
13731LIBS="-lrt $LIBS"
57aa50d4 13732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13733/* end confdefs.h. */
13734
13735/* Override any GCC internal prototype to avoid an error.
13736 Use char because int might match the return type of a GCC
13737 builtin and then its argument prototype would still apply. */
13738#ifdef __cplusplus
13739extern "C"
13740#endif
13741char sem_init ();
13742int
13743main ()
13744{
13745return sem_init ();
13746 ;
13747 return 0;
13748}
13749_ACEOF
57aa50d4 13750if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13751 ac_cv_lib_rt_sem_init=yes
13752else
57aa50d4 13753 ac_cv_lib_rt_sem_init=no
d7f45af8 13754fi
57aa50d4
TT
13755rm -f core conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13757LIBS=$ac_check_lib_save_LIBS
13758fi
57aa50d4 13759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
39fd3d4f 13760$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
d6a4bcb5 13761if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
57aa50d4 13762 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13763
13764 SEM_INIT_LIB=-lrt
13765else
57aa50d4 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
39fd3d4f 13767$as_echo_n "checking for sem_init in -lposix4... " >&6; }
d6a4bcb5 13768if ${ac_cv_lib_posix4_sem_init+:} false; then :
39fd3d4f 13769 $as_echo_n "(cached) " >&6
d7f45af8
TT
13770else
13771 ac_check_lib_save_LIBS=$LIBS
13772LIBS="-lposix4 $LIBS"
57aa50d4 13773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13774/* end confdefs.h. */
13775
13776/* Override any GCC internal prototype to avoid an error.
13777 Use char because int might match the return type of a GCC
13778 builtin and then its argument prototype would still apply. */
13779#ifdef __cplusplus
13780extern "C"
13781#endif
13782char sem_init ();
13783int
13784main ()
13785{
13786return sem_init ();
13787 ;
13788 return 0;
13789}
13790_ACEOF
57aa50d4 13791if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13792 ac_cv_lib_posix4_sem_init=yes
13793else
57aa50d4 13794 ac_cv_lib_posix4_sem_init=no
d7f45af8 13795fi
57aa50d4
TT
13796rm -f core conftest.err conftest.$ac_objext \
13797 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13798LIBS=$ac_check_lib_save_LIBS
13799fi
57aa50d4 13800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
39fd3d4f 13801$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
d6a4bcb5 13802if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
57aa50d4 13803 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13804
13805 SEM_INIT_LIB=-lposix4
13806fi
13807
13808fi
13809
13810fi
13811
cfb8e0bd 13812fi
d7f45af8
TT
13813fi
13814
57aa50d4 13815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
39fd3d4f 13816$as_echo_n "checking for unified diff option... " >&6; }
27f991b0 13817if diff -u $0 $0 > /dev/null 2>&1 ; then
e54635de
TT
13818 UNI_DIFF_OPTS=-u
13819else
13820 UNI_DIFF_OPTS=-c
13821fi
57aa50d4 13822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
39fd3d4f 13823$as_echo "$UNI_DIFF_OPTS" >&6; }
e54635de 13824
8f3f29d3
TT
13825case "$host_os" in
13826linux*)
d1154eb4
TT
13827
13828$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
50e1e10f 13829
8f3f29d3
TT
13830 ;;
13831esac
ea1a3fa2 13832
ea1a3fa2
NC
13833 $as_echo_n "checking for mount 'nosuid' option... "
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835/* end confdefs.h. */
13836#include <sys/mount.h>
13837int
13838main ()
13839{
13840void *temp = (void *)(MS_NOSUID); (void) temp;
13841 ;
13842 return 0;
13843}
13844_ACEOF
13845if ac_fn_c_try_compile "$LINENO"; then :
13846
13847$as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
13848
13849 ac_cv_mount_nosuid=yes
13850 $as_echo "yes"
13851else
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853/* end confdefs.h. */
13854#include <sys/mount.h>
13855int
13856main ()
13857{
13858void *temp = (void *)(MNT_NOSUID); (void) temp;
13859 ;
13860 return 0;
13861}
13862_ACEOF
13863if ac_fn_c_try_compile "$LINENO"; then :
13864
13865$as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
13866
13867 ac_cv_mount_nosuid=yes
13868 $as_echo "yes"
13869else
13870 ac_cv_mount_nosuid=no
13871 $as_echo "no"
13872
13873fi
13874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875
13876fi
13877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13878
13879
ea1a3fa2
NC
13880 $as_echo_n "checking for mount 'nodev' option... "
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882/* end confdefs.h. */
13883#include <sys/mount.h>
13884int
13885main ()
13886{
13887void *temp = (void *)(MS_NODEV); (void) temp;
13888 ;
13889 return 0;
13890}
13891_ACEOF
13892if ac_fn_c_try_compile "$LINENO"; then :
13893
13894$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
13895
13896 ac_cv_mount_nodev=yes
13897 $as_echo "yes"
13898else
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900/* end confdefs.h. */
13901#include <sys/mount.h>
13902int
13903main ()
13904{
13905void *temp = (void *)(MNT_NODEV); (void) temp;
13906 ;
13907 return 0;
13908}
13909_ACEOF
13910if ac_fn_c_try_compile "$LINENO"; then :
13911
13912$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
13913
13914 ac_cv_mount_nodev=yes
13915 $as_echo "yes"
13916else
13917 ac_cv_mount_nodev=no
13918 $as_echo "no"
13919
13920fi
13921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922
13923fi
13924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925
4aece328
DW
13926# Check whether --enable-lto was given.
13927if test "${enable_lto+set}" = set; then :
13928 enableval=$enable_lto;
13929else
139a3092 13930 enable_lto=no
4aece328
DW
13931fi
13932
13933if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13935$as_echo_n "checking if C compiler supports LTO... " >&6; }
13936 OLD_CFLAGS="$CFLAGS"
13937 OLD_LDFLAGS="$LDFLAGS"
49715704 13938 LTO_FLAGS="-g -flto -ffat-lto-objects"
4aece328
DW
13939 CFLAGS="$CFLAGS $LTO_FLAGS"
13940 LDFLAGS="$LDFLAGS $LTO_FLAGS"
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942/* end confdefs.h. */
13943
13944int
13945main ()
13946{
13947
13948 ;
13949 return 0;
13950}
13951_ACEOF
13952if ac_fn_c_try_link "$LINENO"; then :
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13954$as_echo "yes" >&6; }
13955 lto_cflags=$LTO_FLAGS
13956 lto_ldflags=$LTO_FLAGS
13957 # Extract the first word of "gcc-ar", so it can be a program name with args.
13958set dummy gcc-ar; ac_word=$2
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13960$as_echo_n "checking for $ac_word... " >&6; }
13961if ${ac_cv_path_gcc_ar+:} false; then :
13962 $as_echo_n "(cached) " >&6
13963else
13964 case $gcc_ar in
13965 [\\/]* | ?:[\\/]*)
13966 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13967 ;;
13968 *)
13969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13970for as_dir in $PATH
13971do
13972 IFS=$as_save_IFS
13973 test -z "$as_dir" && as_dir=.
13974 for ac_exec_ext in '' $ac_executable_extensions; do
13975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13976 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13978 break 2
13979 fi
13980done
13981 done
13982IFS=$as_save_IFS
13983
13984 ;;
13985esac
13986fi
13987gcc_ar=$ac_cv_path_gcc_ar
13988if test -n "$gcc_ar"; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13990$as_echo "$gcc_ar" >&6; }
13991else
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13993$as_echo "no" >&6; }
13994fi
13995
13996
13997 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13998set dummy gcc-ranlib; ac_word=$2
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14000$as_echo_n "checking for $ac_word... " >&6; }
14001if ${ac_cv_path_gcc_ranlib+:} false; then :
14002 $as_echo_n "(cached) " >&6
14003else
14004 case $gcc_ranlib in
14005 [\\/]* | ?:[\\/]*)
14006 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14007 ;;
14008 *)
14009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010for as_dir in $PATH
14011do
14012 IFS=$as_save_IFS
14013 test -z "$as_dir" && as_dir=.
14014 for ac_exec_ext in '' $ac_executable_extensions; do
14015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14016 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
14017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14018 break 2
14019 fi
14020done
14021 done
14022IFS=$as_save_IFS
14023
14024 ;;
14025esac
14026fi
14027gcc_ranlib=$ac_cv_path_gcc_ranlib
14028if test -n "$gcc_ranlib"; then
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14030$as_echo "$gcc_ranlib" >&6; }
14031else
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033$as_echo "no" >&6; }
14034fi
14035
14036
14037else
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039$as_echo "no" >&6; }
14040fi
14041rm -f core conftest.err conftest.$ac_objext \
14042 conftest$ac_exeext conftest.$ac_ext
14043 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14044 have_lto=yes
14045 AR="${gcc_ar}"
14046 RANLIB="${gcc_ranlib}"
14047 fi
14048 CFLAGS="${OLD_CFLAGS}"
14049 LDFLAGS="${OLD_LDFLAGS}"
14050
14051
14052
14053fi
14054if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14055 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14056fi
1c2a76ae
DW
14057# Check whether --enable-ubsan was given.
14058if test "${enable_ubsan+set}" = set; then :
14059 enableval=$enable_ubsan;
14060else
14061 enable_ubsan=no
14062fi
14063
14064if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14066$as_echo_n "checking if C compiler supports UBSAN... " >&6; }
14067 OLD_CFLAGS="$CFLAGS"
14068 OLD_LDFLAGS="$LDFLAGS"
14069 UBSAN_FLAGS="-fsanitize=undefined"
14070 CFLAGS="$CFLAGS $UBSAN_FLAGS"
14071 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073/* end confdefs.h. */
14074
14075int
14076main ()
14077{
14078
14079 ;
14080 return 0;
14081}
14082_ACEOF
14083if ac_fn_c_try_link "$LINENO"; then :
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14085$as_echo "yes" >&6; }
14086 ubsan_cflags=$UBSAN_FLAGS
14087 ubsan_ldflags=$UBSAN_FLAGS
14088 have_ubsan=yes
14089else
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091$as_echo "no" >&6; }
14092fi
14093rm -f core conftest.err conftest.$ac_objext \
14094 conftest$ac_exeext conftest.$ac_ext
14095 CFLAGS="${OLD_CFLAGS}"
14096 LDFLAGS="${OLD_LDFLAGS}"
14097
14098
14099
14100fi
14101if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14102 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14103fi
5e666e3d
DW
14104# Check whether --enable-addrsan was given.
14105if test "${enable_addrsan+set}" = set; then :
14106 enableval=$enable_addrsan;
14107else
14108 enable_addrsan=no
14109fi
14110
14111if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14113$as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
14114 OLD_CFLAGS="$CFLAGS"
14115 OLD_LDFLAGS="$LDFLAGS"
14116 ADDRSAN_FLAGS="-fsanitize=address"
14117 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14118 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120/* end confdefs.h. */
14121
14122int
14123main ()
14124{
14125
14126 ;
14127 return 0;
14128}
14129_ACEOF
14130if ac_fn_c_try_link "$LINENO"; then :
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14132$as_echo "yes" >&6; }
14133 addrsan_cflags=$ADDRSAN_FLAGS
14134 addrsan_ldflags=$ADDRSAN_FLAGS
14135 have_addrsan=yes
14136else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138$as_echo "no" >&6; }
14139fi
14140rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 CFLAGS="${OLD_CFLAGS}"
14143 LDFLAGS="${OLD_LDFLAGS}"
14144
14145
14146
14147fi
14148if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14149 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14150fi
bcca786b
DW
14151# Check whether --enable-threadsan was given.
14152if test "${enable_threadsan+set}" = set; then :
14153 enableval=$enable_threadsan;
14154else
14155 enable_threadsan=no
14156fi
14157
14158if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14160$as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
14161 OLD_CFLAGS="$CFLAGS"
14162 OLD_LDFLAGS="$LDFLAGS"
14163 THREADSAN_FLAGS="-fsanitize=thread"
14164 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14165 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167/* end confdefs.h. */
14168
14169int
14170main ()
14171{
14172
14173 ;
14174 return 0;
14175}
14176_ACEOF
14177if ac_fn_c_try_link "$LINENO"; then :
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14179$as_echo "yes" >&6; }
14180 threadsan_cflags=$THREADSAN_FLAGS
14181 threadsan_ldflags=$THREADSAN_FLAGS
14182 have_threadsan=yes
14183else
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185$as_echo "no" >&6; }
14186fi
14187rm -f core conftest.err conftest.$ac_objext \
14188 conftest$ac_exeext conftest.$ac_ext
14189 CFLAGS="${OLD_CFLAGS}"
14190 LDFLAGS="${OLD_LDFLAGS}"
14191
14192
14193
14194fi
14195if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14196 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14197fi
14198if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14200$as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14201fi
e6f2bda3 14202LINUX_CMT="#"
fff45483
TT
14203CYGWIN_CMT="#"
14204UNIX_CMT=
e6f2bda3
TT
14205case "$host_os" in
14206linux*)
14207 LINUX_CMT=
fff45483
TT
14208 ;;
14209cygwin)
14210 CYGWIN_CMT=
14211 UNIX_CMT="#"
e6f2bda3
TT
14212 ;;
14213esac
14214
93636bde
TT
14215
14216
5ce368f0
DW
14217E2SCRUB_CMT="$LINUX_CMT"
14218
50e1e10f 14219case "$host_os" in
93636bde 14220linux* | gnu* | k*bsd*-gnu)
a4b2d3ce
TT
14221 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14222 root_prefix="";
57aa50d4 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
39fd3d4f 14224$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
fc6d9d51
TT
14225 fi
14226 ;;
14227esac
fc6d9d51 14228case "$host_os" in
93636bde 14229linux* | gnu* | k*bsd*-gnu)
fc6d9d51 14230 if test "$prefix" = NONE ; then
a4b2d3ce 14231 prefix="/usr";
57aa50d4 14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
39fd3d4f 14233$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
bff61a7a 14234 if test "$mandir" = '${prefix}/man' ; then
57aa50d4 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
39fd3d4f 14236$as_echo "...and mandir defaults to /usr/share/man" >&6; }
bff61a7a
TT
14237 mandir=/usr/share/man
14238 fi
50e1e10f
TT
14239 fi
14240;;
14241esac
a4b2d3ce 14242if test "$root_prefix" = NONE ; then
ffe1991f 14243 if test "$prefix" = NONE ; then
a4b2d3ce
TT
14244 root_prefix="$ac_default_prefix"
14245 else
14246 root_prefix="$prefix"
14247 fi
b5ffeade
TT
14248 root_bindir=$bindir
14249 root_sbindir=$sbindir
14250 root_libdir=$libdir
14251 root_sysconfdir=$sysconfdir
14252else
14253 root_bindir='${root_prefix}/bin'
14254 root_sbindir='${root_prefix}/sbin'
14255 root_libdir='${root_prefix}/lib'
14256 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce 14257fi
c4ef11c5
TT
14258if test "$bindir" != '${exec_prefix}/bin'; then
14259 root_bindir=$bindir
57aa50d4 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
39fd3d4f 14261$as_echo "Setting root_bindir to $root_bindir" >&6; }
c4ef11c5
TT
14262fi
14263if test "$sbindir" != '${exec_prefix}/sbin'; then
14264 root_sbindir=$sbindir
57aa50d4 14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
39fd3d4f 14266$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
c4ef11c5
TT
14267fi
14268if test "$libdir" != '${exec_prefix}/lib'; then
14269 root_libdir=$libdir
57aa50d4 14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
39fd3d4f 14271$as_echo "Setting root_libdir to $root_libdir" >&6; }
c4ef11c5
TT
14272fi
14273if test "$sysconfdir" != '${prefix}/etc'; then
14274 root_sysconfdir=$sysconfdir
57aa50d4 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
39fd3d4f 14276$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
c4ef11c5 14277fi
a4b2d3ce 14278
93636bde
TT
14279
14280
14281
14282
55e00a25
TT
14283
14284# Check whether --with-multiarch was given.
14285if test "${with_multiarch+set}" = set; then :
d7fa4103
TT
14286 withval=$with_multiarch; if test "$withval" = "lib64"; then
14287 libdir=/usr/lib64
14288 root_libdir=/lib64
14289else
14290 libdir=$libdir/$withval
14291 root_libdir=$root_libdir/$withval
14292fi
55e00a25
TT
14293
14294fi
a2df5894 14295
d3de1a71
TT
14296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14297$as_echo_n "checking whether we can link with -static... " >&6; }
d6a4bcb5 14298if ${ac_cv_e2fsprogs_use_static+:} false; then :
39fd3d4f 14299 $as_echo_n "(cached) " >&6
ae851482 14300else
fd1677e8 14301 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
57aa50d4 14302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 14303/* end confdefs.h. */
ae851482 14304#include <stdio.h>
b0cacab0
TT
14305int
14306main ()
14307{
ae851482 14308fflush(stdout);
b0cacab0
TT
14309 ;
14310 return 0;
14311}
14312_ACEOF
57aa50d4 14313if ac_fn_c_try_link "$LINENO"; then :
ae851482
TT
14314 ac_cv_e2fsprogs_use_static=yes
14315else
57aa50d4 14316 ac_cv_e2fsprogs_use_static=no
ae851482 14317fi
57aa50d4
TT
14318rm -f core conftest.err conftest.$ac_objext \
14319 conftest$ac_exeext conftest.$ac_ext
ae851482
TT
14320LDFLAGS=$SAVE_LDFLAGS
14321fi
50e1e10f 14322
defde784
TT
14323case "$host_os" in
14324solaris2.*)
b0cacab0 14325 ac_cv_e2fsprogs_use_static=no
defde784
TT
14326;;
14327esac
57aa50d4 14328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
39fd3d4f 14329$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
ae851482 14330if test $ac_cv_e2fsprogs_use_static = yes; then
fd1677e8 14331 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
ae851482 14332fi
50e1e10f 14333
07a0db15
TT
14334case "$host_os" in
14335darwin*)
57aa50d4 14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
39fd3d4f 14337$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
d1154eb4
TT
14338
14339$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
07a0db15
TT
14340
14341 ;;
14342esac
50e1e10f
TT
14343if test "$cross_compiling" = yes ; then
14344 DO_TEST_SUITE=
14345else
14346 DO_TEST_SUITE=check
14347fi
14348
d1154eb4
TT
14349INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14350if test -n "$CPPFLAGS" ; then
14351 INCLUDES="$INCLUDES $CPPFLAGS"
14352fi
c6f35b8a 14353if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
d1154eb4 14354 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
c6f35b8a 14355fi
6c59a665
TT
14356if test -n "$WITH_DIET_LIBC" ; then
14357 INCLUDES="$INCLUDES -D_REENTRANT"
14358fi
c6f35b8a 14359
dd947da2 14360if test $cross_compiling = no; then
2873927d 14361 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
dd947da2 14362 BUILD_LDFLAGS="$LDFLAGS"
dd947da2
TT
14363fi
14364
14365
fd1677e8
TT
14366CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14367CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14368LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14369
14370
14371
5ce368f0
DW
14372
14373
14374# Check whether --with-udev_rules_dir was given.
14375if test "${with_udev_rules_dir+set}" = set; then :
14376 withval=$with_udev_rules_dir;
14377else
14378 with_udev_rules_dir=yes
14379fi
14380
14381if test "x${with_udev_rules_dir}" != "xno"; then :
14382
14383 if test "x${with_udev_rules_dir}" = "xyes"; then :
14384
14385
14386pkg_failed=no
14387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14388$as_echo_n "checking for udev... " >&6; }
14389
14390if test -n "$udev_CFLAGS"; then
14391 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14392 elif test -n "$PKG_CONFIG"; then
14393 if test -n "$PKG_CONFIG" && \
14394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14395 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14396 ac_status=$?
14397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14398 test $ac_status = 0; }; then
14399 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14400 test "x$?" != "x0" && pkg_failed=yes
14401else
14402 pkg_failed=yes
14403fi
14404 else
14405 pkg_failed=untried
14406fi
14407if test -n "$udev_LIBS"; then
14408 pkg_cv_udev_LIBS="$udev_LIBS"
14409 elif test -n "$PKG_CONFIG"; then
14410 if test -n "$PKG_CONFIG" && \
14411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14412 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14413 ac_status=$?
14414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14415 test $ac_status = 0; }; then
14416 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14417 test "x$?" != "x0" && pkg_failed=yes
14418else
14419 pkg_failed=yes
14420fi
14421 else
14422 pkg_failed=untried
14423fi
14424
14425
14426
14427if test $pkg_failed = yes; then
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429$as_echo "no" >&6; }
14430
14431if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14432 _pkg_short_errors_supported=yes
14433else
14434 _pkg_short_errors_supported=no
14435fi
14436 if test $_pkg_short_errors_supported = yes; then
14437 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14438 else
14439 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14440 fi
14441 # Put the nasty error message in config.log where it belongs
14442 echo "$udev_PKG_ERRORS" >&5
14443
14444
14445 with_udev_rules_dir=""
14446
14447elif test $pkg_failed = untried; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449$as_echo "no" >&6; }
14450
14451 with_udev_rules_dir=""
14452
14453else
14454 udev_CFLAGS=$pkg_cv_udev_CFLAGS
14455 udev_LIBS=$pkg_cv_udev_LIBS
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14457$as_echo "yes" >&6; }
14458
14459 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14460
14461fi
14462
14463fi
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14465$as_echo_n "checking for udev rules dir... " >&6; }
14466 pkg_udev_rules_dir="${with_udev_rules_dir}"
14467 if test -n "${pkg_udev_rules_dir}"; then :
14468
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14470$as_echo "${pkg_udev_rules_dir}" >&6; }
14471 have_udev="yes"
14472
14473else
14474
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476$as_echo "no" >&6; }
14477 have_udev="no"
14478
14479fi
14480
14481else
14482
14483 have_udev="disabled"
14484
14485fi
14486
14487
14488
a2df5894
DW
14489
14490# Check whether --with-crond_dir was given.
14491if test "${with_crond_dir+set}" = set; then :
14492 withval=$with_crond_dir;
14493else
14494 with_crond_dir=yes
14495fi
14496
14497if test "x${with_crond_dir}" != "xno"; then :
14498
14499 if test "x${with_crond_dir}" = "xyes"; then :
14500
14501 if test -d "/etc/cron.d"; then :
14502 with_crond_dir="/etc/cron.d"
188bf39a
TT
14503else
14504 have_crond="no"; with_crond_dir=""
a2df5894
DW
14505fi
14506
14507fi
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14509$as_echo_n "checking for system crontab dir... " >&6; }
14510 crond_dir="${with_crond_dir}"
14511 if test -n "${crond_dir}"; then :
14512
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14514$as_echo "${crond_dir}" >&6; }
14515 have_crond="yes"
14516
14517else
14518
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14520$as_echo "no" >&6; }
14521 have_crond="no"
14522
14523fi
14524
14525else
14526
14527 have_crond="disabled"
14528
14529fi
14530
14531
14532
14533
14534# Check whether --with-systemd_unit_dir was given.
14535if test "${with_systemd_unit_dir+set}" = set; then :
14536 withval=$with_systemd_unit_dir;
14537else
14538 with_systemd_unit_dir=yes
14539fi
14540
14541if test "x${with_systemd_unit_dir}" != "xno"; then :
14542
14543 if test "x${with_systemd_unit_dir}" = "xyes"; then :
14544
14545
14546pkg_failed=no
14547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14548$as_echo_n "checking for systemd... " >&6; }
14549
14550if test -n "$systemd_CFLAGS"; then
14551 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14552 elif test -n "$PKG_CONFIG"; then
14553 if test -n "$PKG_CONFIG" && \
14554 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14555 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14556 ac_status=$?
14557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14558 test $ac_status = 0; }; then
14559 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14560 test "x$?" != "x0" && pkg_failed=yes
14561else
14562 pkg_failed=yes
14563fi
14564 else
14565 pkg_failed=untried
14566fi
14567if test -n "$systemd_LIBS"; then
14568 pkg_cv_systemd_LIBS="$systemd_LIBS"
14569 elif test -n "$PKG_CONFIG"; then
14570 if test -n "$PKG_CONFIG" && \
14571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14572 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14573 ac_status=$?
14574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14575 test $ac_status = 0; }; then
14576 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14577 test "x$?" != "x0" && pkg_failed=yes
14578else
14579 pkg_failed=yes
14580fi
14581 else
14582 pkg_failed=untried
14583fi
14584
14585
14586
14587if test $pkg_failed = yes; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589$as_echo "no" >&6; }
14590
14591if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14592 _pkg_short_errors_supported=yes
14593else
14594 _pkg_short_errors_supported=no
14595fi
14596 if test $_pkg_short_errors_supported = yes; then
14597 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14598 else
14599 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14600 fi
14601 # Put the nasty error message in config.log where it belongs
14602 echo "$systemd_PKG_ERRORS" >&5
14603
14604
14605 with_systemd_unit_dir=""
14606
14607elif test $pkg_failed = untried; then
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14609$as_echo "no" >&6; }
14610
14611 with_systemd_unit_dir=""
14612
14613else
14614 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14615 systemd_LIBS=$pkg_cv_systemd_LIBS
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14617$as_echo "yes" >&6; }
14618
14619 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14620
14621fi
14622
14623
14624fi
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14626$as_echo_n "checking for systemd system unit dir... " >&6; }
14627 systemd_system_unit_dir="${with_systemd_unit_dir}"
14628 if test -n "${systemd_system_unit_dir}"; then :
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14631$as_echo "${systemd_system_unit_dir}" >&6; }
14632 have_systemd="yes"
14633
14634else
14635
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637$as_echo "no" >&6; }
14638 have_systemd="no"
14639
14640fi
14641
14642else
14643
14644 have_systemd="disabled"
14645
14646fi
14647
14648
14649
50e1e10f
TT
14650test -d lib || mkdir lib
14651test -d include || mkdir include
14652test -d include/linux || mkdir include/linux
defde784 14653test -d include/asm || mkdir include/asm
44dfb378
TT
14654if test -z "$UUID_CMT" ; then
14655 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14656 lib/uuid/uuid_types.h"
14657fi
14658if test -z "$BLKID_CMT" ; then
14659 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14660 lib/blkid/blkid_types.h"
14661fi
e5f0f3ee 14662for i in MCONFIG Makefile \
183c73b0 14663 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
4ea7ea00
TT
14664 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14665 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
f34af41b 14666 $uuid_out_list $blkid_out_list lib/support/Makefile \
44dfb378 14667 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
921f4ad5 14668 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
94ba8c75 14669 debugfs/Makefile tests/Makefile tests/progs/Makefile \
98a5ad61 14670 resize/Makefile doc/Makefile intl/Makefile \
5ce368f0 14671 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
94ba8c75
TT
14672 if test -d `dirname ${srcdir}/$i` ; then
14673 outlist="$outlist $i"
14674 fi
14675done
e1052144
TT
14676ac_config_files="$ac_config_files $outlist"
14677
b0cacab0 14678cat >confcache <<\_ACEOF
50e1e10f
TT
14679# This file is a shell script that caches the results of configure
14680# tests run on this system so they can be shared between configure
b0cacab0
TT
14681# scripts and configure runs, see configure's option --config-cache.
14682# It is not useful on other systems. If it contains results you don't
14683# want to keep, you may remove or edit it.
50e1e10f 14684#
b0cacab0
TT
14685# config.status only pays attention to the cache file if you give it
14686# the --recheck option to rerun configure.
50e1e10f 14687#
b0cacab0
TT
14688# `ac_cv_env_foo' variables (set or unset) will be overridden when
14689# loading this file, other *unset* `ac_cv_foo' will be assigned the
14690# following values.
14691
14692_ACEOF
14693
21c84b71
TT
14694# The following way of writing the cache mishandles newlines in values,
14695# but we know of no workaround that is simple, portable, and efficient.
e1052144 14696# So, we kill variables containing newlines.
50e1e10f
TT
14697# Ultrix sh set writes to stderr and can't be redirected directly,
14698# and sets the high bit in the cache file unless we assign to the vars.
e1052144
TT
14699(
14700 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14701 eval ac_val=\$$ac_var
14702 case $ac_val in #(
14703 *${as_nl}*)
14704 case $ac_var in #(
57aa50d4 14705 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39fd3d4f 14706$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
e1052144
TT
14707 esac
14708 case $ac_var in #(
14709 _ | IFS | as_nl) ;; #(
39fd3d4f 14710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
57aa50d4 14711 *) { eval $ac_var=; unset $ac_var;} ;;
e1052144
TT
14712 esac ;;
14713 esac
14714 done
14715
b0cacab0 14716 (set) 2>&1 |
e1052144
TT
14717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14718 *${as_nl}ac_space=\ *)
57aa50d4
TT
14719 # `set' does not quote correctly, so add quotes: double-quote
14720 # substitution turns \\\\ into \\, and sed turns \\ into \.
b0cacab0
TT
14721 sed -n \
14722 "s/'/'\\\\''/g;
14723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e1052144 14724 ;; #(
b0cacab0
TT
14725 *)
14726 # `set' quotes correctly as required by POSIX, so do not add quotes.
e1052144 14727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b0cacab0 14728 ;;
e1052144
TT
14729 esac |
14730 sort
14731) |
b0cacab0 14732 sed '
e1052144 14733 /^ac_cv_env_/b end
b0cacab0 14734 t clear
e1052144 14735 :clear
b0cacab0
TT
14736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14737 t end
e1052144
TT
14738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14739 :end' >>confcache
14740if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14741 if test -w "$cache_file"; then
d6a4bcb5 14742 if test "x$cache_file" != "x/dev/null"; then
57aa50d4 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39fd3d4f 14744$as_echo "$as_me: updating cache $cache_file" >&6;}
d6a4bcb5
TB
14745 if test ! -f "$cache_file" || test -h "$cache_file"; then
14746 cat confcache >"$cache_file"
14747 else
14748 case $cache_file in #(
14749 */* | ?:*)
14750 mv -f confcache "$cache_file"$$ &&
14751 mv -f "$cache_file"$$ "$cache_file" ;; #(
14752 *)
14753 mv -f confcache "$cache_file" ;;
14754 esac
14755 fi
14756 fi
50e1e10f 14757 else
57aa50d4 14758 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39fd3d4f 14759$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50e1e10f
TT
14760 fi
14761fi
14762rm -f confcache
14763
50e1e10f
TT
14764test "x$prefix" = xNONE && prefix=$ac_default_prefix
14765# Let make expand exec_prefix.
14766test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14767
d1154eb4 14768DEFS=-DHAVE_CONFIG_H
b0cacab0
TT
14769
14770ac_libobjs=
14771ac_ltlibobjs=
d6a4bcb5 14772U=
b0cacab0
TT
14773for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14774 # 1. Remove the extension, and $U if already installed.
e1052144 14775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39fd3d4f 14776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
e1052144
TT
14777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14778 # will be set to the directory where LIBOBJS objects are built.
57aa50d4
TT
14779 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14780 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b0cacab0
TT
14781done
14782LIBOBJS=$ac_libobjs
50e1e10f 14783
b0cacab0
TT
14784LTLIBOBJS=$ac_ltlibobjs
14785
14786
14787
39fd3d4f 14788
d6a4bcb5 14789: "${CONFIG_STATUS=./config.status}"
39fd3d4f 14790ac_write_fail=0
b0cacab0
TT
14791ac_clean_files_save=$ac_clean_files
14792ac_clean_files="$ac_clean_files $CONFIG_STATUS"
57aa50d4 14793{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39fd3d4f 14794$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
57aa50d4
TT
14795as_write_fail=0
14796cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b0cacab0
TT
14797#! $SHELL
14798# Generated by $as_me.
93636bde 14799# Run this file to recreate the current configuration.
93636bde 14800# Compiler output produced by configure, useful for debugging
b0cacab0 14801# configure, is in config.log if it exists.
07a0db15 14802
b0cacab0
TT
14803debug=false
14804ac_cs_recheck=false
14805ac_cs_silent=false
b0cacab0 14806
57aa50d4
TT
14807SHELL=\${CONFIG_SHELL-$SHELL}
14808export SHELL
14809_ASEOF
14810cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14811## -------------------- ##
14812## M4sh Initialization. ##
14813## -------------------- ##
b0cacab0 14814
29a5deed
TT
14815# Be more Bourne compatible
14816DUALCASE=1; export DUALCASE # for MKS sh
57aa50d4 14817if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b0cacab0
TT
14818 emulate sh
14819 NULLCMD=:
39fd3d4f 14820 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
14821 # is contrary to our usage. Disable this feature.
14822 alias -g '${1+"$@"}'='"$@"'
e1052144
TT
14823 setopt NO_GLOB_SUBST
14824else
57aa50d4
TT
14825 case `(set -o) 2>/dev/null` in #(
14826 *posix*) :
14827 set -o posix ;; #(
14828 *) :
14829 ;;
29a5deed 14830esac
b0cacab0 14831fi
29a5deed
TT
14832
14833
39fd3d4f
SJR
14834as_nl='
14835'
14836export as_nl
14837# Printing a long string crashes Solaris 7 /usr/bin/printf.
14838as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14839as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14840as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
57aa50d4
TT
14841# Prefer a ksh shell builtin over an external printf program on Solaris,
14842# but without wasting forks for bash or zsh.
14843if test -z "$BASH_VERSION$ZSH_VERSION" \
14844 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14845 as_echo='print -r --'
14846 as_echo_n='print -rn --'
14847elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39fd3d4f
SJR
14848 as_echo='printf %s\n'
14849 as_echo_n='printf %s'
14850else
14851 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14852 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14853 as_echo_n='/usr/ucb/echo -n'
e1052144 14854 else
39fd3d4f
SJR
14855 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14856 as_echo_n_body='eval
14857 arg=$1;
57aa50d4 14858 case $arg in #(
39fd3d4f
SJR
14859 *"$as_nl"*)
14860 expr "X$arg" : "X\\(.*\\)$as_nl";
14861 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14862 esac;
14863 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14864 '
14865 export as_echo_n_body
14866 as_echo_n='sh -c $as_echo_n_body as_echo'
e1052144 14867 fi
39fd3d4f
SJR
14868 export as_echo_body
14869 as_echo='sh -c $as_echo_body as_echo'
14870fi
14871
14872# The user is always right.
14873if test "${PATH_SEPARATOR+set}" != set; then
14874 PATH_SEPARATOR=:
14875 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14876 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14877 PATH_SEPARATOR=';'
14878 }
e1052144
TT
14879fi
14880
b0cacab0 14881
e1052144
TT
14882# IFS
14883# We need space, tab and new line, in precisely that order. Quoting is
14884# there to prevent editors from complaining about space-tab.
14885# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14886# splitting by setting IFS to empty value.)
e1052144
TT
14887IFS=" "" $as_nl"
14888
14889# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 14890as_myself=
57aa50d4 14891case $0 in #((
e1052144
TT
14892 *[\\/]* ) as_myself=$0 ;;
14893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14894for as_dir in $PATH
14895do
14896 IFS=$as_save_IFS
14897 test -z "$as_dir" && as_dir=.
57aa50d4
TT
14898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14899 done
e1052144
TT
14900IFS=$as_save_IFS
14901
14902 ;;
14903esac
14904# We did not find ourselves, most probably we were run as `sh COMMAND'
14905# in which case we are not to be found in the path.
14906if test "x$as_myself" = x; then
14907 as_myself=$0
14908fi
14909if test ! -f "$as_myself"; then
39fd3d4f 14910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 14911 exit 1
e1052144
TT
14912fi
14913
57aa50d4
TT
14914# Unset variables that we do not need and which cause bugs (e.g. in
14915# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14916# suppresses any "Segmentation fault" message there. '((' could
14917# trigger a bug in pdksh 5.2.14.
14918for as_var in BASH_ENV ENV MAIL MAILPATH
14919do eval test x\${$as_var+set} = xset \
14920 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
e1052144 14921done
b0cacab0
TT
14922PS1='$ '
14923PS2='> '
14924PS4='+ '
14925
14926# NLS nuisances.
39fd3d4f
SJR
14927LC_ALL=C
14928export LC_ALL
14929LANGUAGE=C
14930export LANGUAGE
b0cacab0 14931
57aa50d4
TT
14932# CDPATH.
14933(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14934
14935
d6a4bcb5
TB
14936# as_fn_error STATUS ERROR [LINENO LOG_FD]
14937# ----------------------------------------
57aa50d4
TT
14938# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14939# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d6a4bcb5 14940# script with STATUS, using 1 if that was 0.
57aa50d4
TT
14941as_fn_error ()
14942{
d6a4bcb5
TB
14943 as_status=$1; test $as_status -eq 0 && as_status=1
14944 if test "$4"; then
14945 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 14947 fi
d6a4bcb5 14948 $as_echo "$as_me: error: $2" >&2
57aa50d4
TT
14949 as_fn_exit $as_status
14950} # as_fn_error
14951
14952
14953# as_fn_set_status STATUS
14954# -----------------------
14955# Set $? to STATUS, without forking.
14956as_fn_set_status ()
14957{
14958 return $1
14959} # as_fn_set_status
14960
14961# as_fn_exit STATUS
14962# -----------------
14963# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14964as_fn_exit ()
14965{
14966 set +e
14967 as_fn_set_status $1
14968 exit $1
14969} # as_fn_exit
14970
14971# as_fn_unset VAR
14972# ---------------
14973# Portably unset VAR.
14974as_fn_unset ()
14975{
14976 { eval $1=; unset $1;}
14977}
14978as_unset=as_fn_unset
14979# as_fn_append VAR VALUE
14980# ----------------------
14981# Append the text in VALUE to the end of the definition contained in VAR. Take
14982# advantage of any shell optimizations that allow amortized linear growth over
14983# repeated appends, instead of the typical quadratic growth present in naive
14984# implementations.
14985if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14986 eval 'as_fn_append ()
14987 {
14988 eval $1+=\$2
14989 }'
14990else
14991 as_fn_append ()
14992 {
14993 eval $1=\$$1\$2
14994 }
14995fi # as_fn_append
14996
14997# as_fn_arith ARG...
14998# ------------------
14999# Perform arithmetic evaluation on the ARGs, and store the result in the
15000# global $as_val. Take advantage of shells that can avoid forks. The arguments
15001# must be portable across $(()) and expr.
15002if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15003 eval 'as_fn_arith ()
15004 {
15005 as_val=$(( $* ))
15006 }'
15007else
15008 as_fn_arith ()
15009 {
15010 as_val=`expr "$@" || test $? -eq 1`
15011 }
15012fi # as_fn_arith
15013
15014
e1052144
TT
15015if expr a : '\(a\)' >/dev/null 2>&1 &&
15016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
15017 as_expr=expr
15018else
15019 as_expr=false
15020fi
15021
e1052144 15022if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
15023 as_basename=basename
15024else
15025 as_basename=false
15026fi
15027
57aa50d4
TT
15028if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15029 as_dirname=dirname
15030else
15031 as_dirname=false
15032fi
b0cacab0 15033
e1052144 15034as_me=`$as_basename -- "$0" ||
b0cacab0
TT
15035$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15036 X"$0" : 'X\(//\)$' \| \
e1052144 15037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 15038$as_echo X/"$0" |
e1052144
TT
15039 sed '/^.*\/\([^/][^/]*\)\/*$/{
15040 s//\1/
15041 q
15042 }
15043 /^X\/\(\/\/\)$/{
15044 s//\1/
15045 q
15046 }
15047 /^X\/\(\/\).*/{
15048 s//\1/
15049 q
15050 }
15051 s/.*/./; q'`
b0cacab0 15052
57aa50d4
TT
15053# Avoid depending upon Character Ranges.
15054as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15055as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15056as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15057as_cr_digits='0123456789'
15058as_cr_alnum=$as_cr_Letters$as_cr_digits
e1052144
TT
15059
15060ECHO_C= ECHO_N= ECHO_T=
57aa50d4 15061case `echo -n x` in #(((((
e1052144 15062-n*)
57aa50d4 15063 case `echo 'xy\c'` in
e1052144 15064 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
57aa50d4
TT
15065 xy) ECHO_C='\c';;
15066 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15067 ECHO_T=' ';;
e1052144
TT
15068 esac;;
15069*)
15070 ECHO_N='-n';;
b0cacab0 15071esac
b0cacab0
TT
15072
15073rm -f conf$$ conf$$.exe conf$$.file
e1052144
TT
15074if test -d conf$$.dir; then
15075 rm -f conf$$.dir/conf$$.file
15076else
15077 rm -f conf$$.dir
39fd3d4f
SJR
15078 mkdir conf$$.dir 2>/dev/null
15079fi
15080if (echo >conf$$.file) 2>/dev/null; then
15081 if ln -s conf$$.file conf$$ 2>/dev/null; then
15082 as_ln_s='ln -s'
15083 # ... but there are two gotchas:
15084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d6a4bcb5 15086 # In both cases, we have to default to `cp -pR'.
39fd3d4f 15087 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 15088 as_ln_s='cp -pR'
39fd3d4f
SJR
15089 elif ln conf$$.file conf$$ 2>/dev/null; then
15090 as_ln_s=ln
15091 else
d6a4bcb5 15092 as_ln_s='cp -pR'
39fd3d4f 15093 fi
b0cacab0 15094else
d6a4bcb5 15095 as_ln_s='cp -pR'
b0cacab0 15096fi
e1052144
TT
15097rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15098rmdir conf$$.dir 2>/dev/null
b0cacab0 15099
57aa50d4
TT
15100
15101# as_fn_mkdir_p
15102# -------------
15103# Create "$as_dir" as a directory, including parents if necessary.
15104as_fn_mkdir_p ()
15105{
15106
15107 case $as_dir in #(
15108 -*) as_dir=./$as_dir;;
15109 esac
15110 test -d "$as_dir" || eval $as_mkdir_p || {
15111 as_dirs=
15112 while :; do
15113 case $as_dir in #(
15114 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15115 *) as_qdir=$as_dir;;
15116 esac
15117 as_dirs="'$as_qdir' $as_dirs"
15118 as_dir=`$as_dirname -- "$as_dir" ||
15119$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15120 X"$as_dir" : 'X\(//\)[^/]' \| \
15121 X"$as_dir" : 'X\(//\)$' \| \
15122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15123$as_echo X"$as_dir" |
15124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15125 s//\1/
15126 q
15127 }
15128 /^X\(\/\/\)[^/].*/{
15129 s//\1/
15130 q
15131 }
15132 /^X\(\/\/\)$/{
15133 s//\1/
15134 q
15135 }
15136 /^X\(\/\).*/{
15137 s//\1/
15138 q
15139 }
15140 s/.*/./; q'`
15141 test -d "$as_dir" && break
15142 done
15143 test -z "$as_dirs" || eval "mkdir $as_dirs"
d6a4bcb5 15144 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
15145
15146
15147} # as_fn_mkdir_p
b0cacab0 15148if mkdir -p . 2>/dev/null; then
57aa50d4 15149 as_mkdir_p='mkdir -p "$as_dir"'
b0cacab0
TT
15150else
15151 test -d ./-p && rmdir ./-p
15152 as_mkdir_p=false
15153fi
15154
d6a4bcb5
TB
15155
15156# as_fn_executable_p FILE
15157# -----------------------
15158# Test if FILE is an executable regular file.
15159as_fn_executable_p ()
15160{
15161 test -f "$1" && test -x "$1"
15162} # as_fn_executable_p
15163as_test_x='test -x'
15164as_executable_p=as_fn_executable_p
b0cacab0
TT
15165
15166# Sed expression to map a string onto a valid CPP name.
15167as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15168
15169# Sed expression to map a string onto a valid variable name.
15170as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15171
15172
b0cacab0 15173exec 6>&1
57aa50d4
TT
15174## ----------------------------------- ##
15175## Main body of $CONFIG_STATUS script. ##
15176## ----------------------------------- ##
15177_ASEOF
15178test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b0cacab0 15179
57aa50d4
TT
15180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15181# Save the log message, to keep $0 and so on meaningful, and to
b0cacab0 15182# report actual input values of CONFIG_FILES etc. instead of their
e1052144
TT
15183# values after options handling.
15184ac_log="
b0cacab0 15185This file was extended by $as_me, which was
d6a4bcb5 15186generated by GNU Autoconf 2.69. Invocation command line was
b0cacab0
TT
15187
15188 CONFIG_FILES = $CONFIG_FILES
15189 CONFIG_HEADERS = $CONFIG_HEADERS
15190 CONFIG_LINKS = $CONFIG_LINKS
15191 CONFIG_COMMANDS = $CONFIG_COMMANDS
15192 $ $0 $@
15193
e1052144
TT
15194on `(hostname || uname -n) 2>/dev/null | sed 1q`
15195"
15196
b0cacab0
TT
15197_ACEOF
15198
39fd3d4f
SJR
15199case $ac_config_files in *"
15200"*) set x $ac_config_files; shift; ac_config_files=$*;;
15201esac
15202
d1154eb4
TT
15203case $ac_config_headers in *"
15204"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15205esac
39fd3d4f
SJR
15206
15207
15208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 15209# Files that config.status was made for.
e1052144 15210config_files="$ac_config_files"
d1154eb4 15211config_headers="$ac_config_headers"
e1052144 15212config_commands="$ac_config_commands"
b0cacab0 15213
e1052144 15214_ACEOF
b0cacab0 15215
39fd3d4f 15216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0 15217ac_cs_usage="\
57aa50d4
TT
15218\`$as_me' instantiates files and other configuration actions
15219from templates according to the current configuration. Unless the files
15220and actions are specified as TAGs, all are instantiated by default.
b0cacab0 15221
57aa50d4 15222Usage: $0 [OPTION]... [TAG]...
b0cacab0
TT
15223
15224 -h, --help print this help, then exit
29a5deed 15225 -V, --version print version number and configuration settings, then exit
61ef2474 15226 --config print configuration, then exit
39fd3d4f
SJR
15227 -q, --quiet, --silent
15228 do not print progress messages
b0cacab0
TT
15229 -d, --debug don't remove temporary files
15230 --recheck update $as_me by reconfiguring in the same conditions
39fd3d4f
SJR
15231 --file=FILE[:TEMPLATE]
15232 instantiate the configuration file FILE
d1154eb4
TT
15233 --header=FILE[:TEMPLATE]
15234 instantiate the configuration header FILE
b0cacab0
TT
15235
15236Configuration files:
15237$config_files
15238
d1154eb4
TT
15239Configuration headers:
15240$config_headers
15241
b0cacab0
TT
15242Configuration commands:
15243$config_commands
15244
57aa50d4 15245Report bugs to the package provider."
b0cacab0 15246
e1052144 15247_ACEOF
39fd3d4f 15248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61ef2474 15249ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b0cacab0
TT
15250ac_cs_version="\\
15251config.status
d6a4bcb5 15252configured by $0, generated by GNU Autoconf 2.69,
61ef2474 15253 with options \\"\$ac_cs_config\\"
b0cacab0 15254
d6a4bcb5 15255Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
15256This config.status script is free software; the Free Software Foundation
15257gives unlimited permission to copy, distribute and modify it."
e1052144
TT
15258
15259ac_pwd='$ac_pwd'
15260srcdir='$srcdir'
15261INSTALL='$INSTALL'
93613951 15262MKDIR_P='$MKDIR_P'
39fd3d4f
SJR
15263AWK='$AWK'
15264test -n "\$AWK" || AWK=awk
b0cacab0
TT
15265_ACEOF
15266
39fd3d4f
SJR
15267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15268# The default lists apply if the user does not specify any file.
b0cacab0
TT
15269ac_need_defaults=:
15270while test $# != 0
07a0db15 15271do
b0cacab0 15272 case $1 in
d6a4bcb5 15273 --*=?*)
e1052144
TT
15274 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15275 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b0cacab0
TT
15276 ac_shift=:
15277 ;;
d6a4bcb5
TB
15278 --*=)
15279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15280 ac_optarg=
15281 ac_shift=:
15282 ;;
e1052144 15283 *)
b0cacab0
TT
15284 ac_option=$1
15285 ac_optarg=$2
15286 ac_shift=shift
15287 ;;
b0cacab0
TT
15288 esac
15289
15290 case $ac_option in
15291 # Handling of the options.
93636bde 15292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b0cacab0 15293 ac_cs_recheck=: ;;
e1052144 15294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39fd3d4f 15295 $as_echo "$ac_cs_version"; exit ;;
61ef2474
TT
15296 --config | --confi | --conf | --con | --co | --c )
15297 $as_echo "$ac_cs_config"; exit ;;
e1052144 15298 --debug | --debu | --deb | --de | --d | -d )
b0cacab0
TT
15299 debug=: ;;
15300 --file | --fil | --fi | --f )
15301 $ac_shift
39fd3d4f
SJR
15302 case $ac_optarg in
15303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6a4bcb5 15304 '') as_fn_error $? "missing file argument" ;;
39fd3d4f 15305 esac
57aa50d4 15306 as_fn_append CONFIG_FILES " '$ac_optarg'"
b0cacab0 15307 ac_need_defaults=false;;
d1154eb4
TT
15308 --header | --heade | --head | --hea )
15309 $ac_shift
15310 case $ac_optarg in
15311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15312 esac
15313 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15314 ac_need_defaults=false;;
15315 --he | --h)
15316 # Conflict between --help and --header
d6a4bcb5 15317 as_fn_error $? "ambiguous option: \`$1'
d1154eb4
TT
15318Try \`$0 --help' for more information.";;
15319 --help | --hel | -h )
39fd3d4f 15320 $as_echo "$ac_cs_usage"; exit ;;
b0cacab0
TT
15321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15322 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15323 ac_cs_silent=: ;;
15324
15325 # This is an error.
d6a4bcb5 15326 -*) as_fn_error $? "unrecognized option: \`$1'
57aa50d4 15327Try \`$0 --help' for more information." ;;
b0cacab0 15328
57aa50d4 15329 *) as_fn_append ac_config_targets " $1"
e1052144 15330 ac_need_defaults=false ;;
b0cacab0 15331
07a0db15 15332 esac
b0cacab0 15333 shift
07a0db15
TT
15334done
15335
b0cacab0
TT
15336ac_configure_extra_args=
15337
15338if $ac_cs_silent; then
15339 exec 6>/dev/null
15340 ac_configure_extra_args="$ac_configure_extra_args --silent"
15341fi
15342
15343_ACEOF
39fd3d4f 15344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 15345if \$ac_cs_recheck; then
d6a4bcb5 15346 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39fd3d4f
SJR
15347 shift
15348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15349 CONFIG_SHELL='$SHELL'
e1052144 15350 export CONFIG_SHELL
39fd3d4f 15351 exec "\$@"
b0cacab0 15352fi
07a0db15 15353
b0cacab0 15354_ACEOF
39fd3d4f 15355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15356exec 5>>config.log
15357{
15358 echo
15359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15360## Running $as_me. ##
15361_ASBOX
39fd3d4f 15362 $as_echo "$ac_log"
e1052144 15363} >&5
07a0db15 15364
e1052144 15365_ACEOF
39fd3d4f 15366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 15367#
e1052144 15368# INIT-COMMANDS
b0cacab0 15369#
b0cacab0
TT
15370# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15371 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
93613951 15372 # from automake < 1.5.
b0cacab0
TT
15373 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15374 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15375 LINGUAS="${LINGUAS-%UNSET%}"
15376
15377
15378_ACEOF
15379
39fd3d4f 15380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15381
15382# Handling of arguments.
b0cacab0
TT
15383for ac_config_target in $ac_config_targets
15384do
e1052144 15385 case $ac_config_target in
d1154eb4 15386 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
93613951 15387 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
e1052144
TT
15388 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15389
d6a4bcb5 15390 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b0cacab0
TT
15391 esac
15392done
15393
e1052144 15394
b0cacab0
TT
15395# If the user did not use the arguments to specify the items to instantiate,
15396# then the envvar interface is used. Set only those that are not.
15397# We use the long form for the default assignment because of an extremely
15398# bizarre bug on SunOS 4.1.3.
15399if $ac_need_defaults; then
15400 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
d1154eb4 15401 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b0cacab0
TT
15402 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15403fi
15404
15405# Have a temporary directory for convenience. Make it in the build tree
e1052144 15406# simply because there is no reason against having it here, and in addition,
b0cacab0 15407# creating and moving files from /tmp can sometimes cause problems.
e1052144
TT
15408# Hook for its removal unless debugging.
15409# Note that there is a small window in which the directory will not be cleaned:
15410# after its creation but before its name has been assigned to `$tmp'.
b0cacab0
TT
15411$debug ||
15412{
d6a4bcb5 15413 tmp= ac_tmp=
e1052144 15414 trap 'exit_status=$?
d6a4bcb5
TB
15415 : "${ac_tmp:=$tmp}"
15416 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
e1052144 15417' 0
57aa50d4 15418 trap 'as_fn_exit 1' 1 2 13 15
b0cacab0 15419}
b0cacab0
TT
15420# Create a (secure) tmp directory for tmp files.
15421
15422{
e1052144 15423 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6a4bcb5 15424 test -d "$tmp"
b0cacab0
TT
15425} ||
15426{
e1052144
TT
15427 tmp=./conf$$-$RANDOM
15428 (umask 077 && mkdir "$tmp")
d6a4bcb5
TB
15429} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15430ac_tmp=$tmp
b0cacab0 15431
39fd3d4f
SJR
15432# Set up the scripts for CONFIG_FILES section.
15433# No need to generate them if there are no CONFIG_FILES.
15434# This happens for instance with `./config.status config.h'.
e1052144
TT
15435if test -n "$CONFIG_FILES"; then
15436
39fd3d4f
SJR
15437if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15438 ac_cs_awk_getline=:
15439 ac_cs_awk_pipe_init=
15440 ac_cs_awk_read_file='
15441 while ((getline aline < (F[key])) > 0)
15442 print(aline)
15443 close(F[key])'
15444 ac_cs_awk_pipe_fini=
15445else
15446 ac_cs_awk_getline=false
15447 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15448 ac_cs_awk_read_file='
15449 print "|#_!!_#|"
15450 print "cat " F[key] " &&"
15451 '$ac_cs_awk_pipe_init
15452 # The final `:' finishes the AND list.
15453 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15454fi
57aa50d4
TT
15455ac_cr=`echo X | tr X '\015'`
15456# On cygwin, bash can eat \r inside `` if the user requested igncr.
15457# But we know of no other shell where ac_cr would be empty at this
15458# point, so we can use a bashism as a fallback.
15459if test "x$ac_cr" = x; then
15460 eval ac_cr=\$\'\\r\'
15461fi
39fd3d4f
SJR
15462ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15463if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d6a4bcb5 15464 ac_cs_awk_cr='\\r'
39fd3d4f
SJR
15465else
15466 ac_cs_awk_cr=$ac_cr
15467fi
e1052144 15468
d6a4bcb5 15469echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39fd3d4f 15470_ACEOF
e1052144 15471
39fd3d4f
SJR
15472# Create commands to substitute file output variables.
15473{
15474 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6a4bcb5 15475 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
39fd3d4f
SJR
15476 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15477 echo "_ACAWK" &&
15478 echo "_ACEOF"
15479} >conf$$files.sh &&
15480. ./conf$$files.sh ||
d6a4bcb5 15481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 15482rm -f conf$$files.sh
e1052144 15483
39fd3d4f
SJR
15484{
15485 echo "cat >conf$$subs.awk <<_ACEOF" &&
15486 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15487 echo "_ACEOF"
15488} >conf$$subs.sh ||
d6a4bcb5
TB
15489 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15490ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
e1052144
TT
15491ac_delim='%!_!# '
15492for ac_last_try in false false false false false :; do
39fd3d4f 15493 . ./conf$$subs.sh ||
d6a4bcb5 15494 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f
SJR
15495
15496 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15497 if test $ac_delim_n = $ac_delim_num; then
e1052144
TT
15498 break
15499 elif $ac_last_try; then
d6a4bcb5 15500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e1052144
TT
15501 else
15502 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21c84b71 15503 fi
e1052144 15504done
39fd3d4f
SJR
15505rm -f conf$$subs.sh
15506
15507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6a4bcb5 15508cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
39fd3d4f
SJR
15509_ACEOF
15510sed -n '
15511h
15512s/^/S["/; s/!.*/"]=/
15513p
15514g
15515s/^[^!]*!//
15516:repl
15517t repl
15518s/'"$ac_delim"'$//
15519t delim
15520:nl
15521h
61ef2474 15522s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
15523t more1
15524s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15525p
15526n
15527b repl
15528:more1
15529s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15530p
15531g
15532s/.\{148\}//
15533t nl
15534:delim
15535h
61ef2474 15536s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
15537t more2
15538s/["\\]/\\&/g; s/^/"/; s/$/"/
15539p
15540b
15541:more2
15542s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15543p
15544g
15545s/.\{148\}//
15546t delim
15547' <conf$$subs.awk | sed '
15548/^[^""]/{
15549 N
15550 s/\n//
e1052144 15551}
39fd3d4f
SJR
15552' >>$CONFIG_STATUS || ac_write_fail=1
15553rm -f conf$$subs.awk
15554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15555_ACAWK
d6a4bcb5 15556cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
39fd3d4f
SJR
15557 for (key in S) S_is_set[key] = 1
15558 FS = "\a"
15559 \$ac_cs_awk_pipe_init
e1052144 15560}
39fd3d4f
SJR
15561{
15562 line = $ 0
15563 nfields = split(line, field, "@")
15564 substed = 0
15565 len = length(field[1])
15566 for (i = 2; i < nfields; i++) {
15567 key = field[i]
15568 keylen = length(key)
15569 if (S_is_set[key]) {
15570 value = S[key]
15571 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15572 len += length(value) + length(field[++i])
15573 substed = 1
15574 } else
15575 len += 1 + keylen
15576 }
15577 if (nfields == 3 && !substed) {
15578 key = field[2]
15579 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15580 \$ac_cs_awk_read_file
15581 next
15582 }
15583 }
15584 print line
488c75a6 15585}
39fd3d4f
SJR
15586\$ac_cs_awk_pipe_fini
15587_ACAWK
e1052144 15588_ACEOF
39fd3d4f
SJR
15589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15590if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15591 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15592else
15593 cat
d6a4bcb5
TB
15594fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15595 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b0cacab0 15596_ACEOF
e1052144 15597
d6a4bcb5
TB
15598# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15599# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
e1052144
TT
15600# trailing colons and then remove the whole line if VPATH becomes empty
15601# (actually we leave an empty line to preserve line numbers).
15602if test "x$srcdir" = x.; then
d6a4bcb5
TB
15603 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15604h
15605s///
15606s/^/:/
15607s/[ ]*$/:/
15608s/:\$(srcdir):/:/g
15609s/:\${srcdir}:/:/g
15610s/:@srcdir@:/:/g
15611s/^:*//
e1052144 15612s/:*$//
d6a4bcb5
TB
15613x
15614s/\(=[ ]*\).*/\1/
15615G
15616s/\n//
e1052144
TT
15617s/^[^=]*=[ ]*$//
15618}'
15619fi
15620
39fd3d4f 15621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15622fi # test -n "$CONFIG_FILES"
15623
d1154eb4
TT
15624# Set up the scripts for CONFIG_HEADERS section.
15625# No need to generate them if there are no CONFIG_HEADERS.
15626# This happens for instance with `./config.status Makefile'.
15627if test -n "$CONFIG_HEADERS"; then
d6a4bcb5 15628cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
d1154eb4
TT
15629BEGIN {
15630_ACEOF
15631
15632# Transform confdefs.h into an awk script `defines.awk', embedded as
15633# here-document in config.status, that substitutes the proper values into
15634# config.h.in to produce config.h.
15635
15636# Create a delimiter string that does not exist in confdefs.h, to ease
15637# handling of long lines.
15638ac_delim='%!_!# '
15639for ac_last_try in false false :; do
d6a4bcb5
TB
15640 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15641 if test -z "$ac_tt"; then
d1154eb4
TT
15642 break
15643 elif $ac_last_try; then
d6a4bcb5 15644 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
d1154eb4
TT
15645 else
15646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15647 fi
15648done
15649
15650# For the awk script, D is an array of macro values keyed by name,
15651# likewise P contains macro parameters if any. Preserve backslash
15652# newline sequences.
15653
15654ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15655sed -n '
15656s/.\{148\}/&'"$ac_delim"'/g
15657t rset
15658:rset
15659s/^[ ]*#[ ]*define[ ][ ]*/ /
15660t def
15661d
15662:def
15663s/\\$//
15664t bsnl
15665s/["\\]/\\&/g
15666s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15667D["\1"]=" \3"/p
15668s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15669d
15670:bsnl
15671s/["\\]/\\&/g
15672s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15673D["\1"]=" \3\\\\\\n"\\/p
15674t cont
15675s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15676t cont
15677d
15678:cont
15679n
15680s/.\{148\}/&'"$ac_delim"'/g
15681t clear
15682:clear
15683s/\\$//
15684t bsnlc
15685s/["\\]/\\&/g; s/^/"/; s/$/"/p
15686d
15687:bsnlc
15688s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15689b cont
15690' <confdefs.h | sed '
15691s/'"$ac_delim"'/"\\\
15692"/g' >>$CONFIG_STATUS || ac_write_fail=1
15693
15694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15695 for (key in D) D_is_set[key] = 1
15696 FS = "\a"
15697}
15698/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15699 line = \$ 0
15700 split(line, arg, " ")
15701 if (arg[1] == "#") {
15702 defundef = arg[2]
15703 mac1 = arg[3]
15704 } else {
15705 defundef = substr(arg[1], 2)
15706 mac1 = arg[2]
15707 }
15708 split(mac1, mac2, "(") #)
15709 macro = mac2[1]
15710 prefix = substr(line, 1, index(line, defundef) - 1)
15711 if (D_is_set[macro]) {
15712 # Preserve the white space surrounding the "#".
15713 print prefix "define", macro P[macro] D[macro]
15714 next
15715 } else {
15716 # Replace #undef with comments. This is necessary, for example,
15717 # in the case of _POSIX_SOURCE, which is predefined and required
15718 # on some systems where configure will not decide to define it.
15719 if (defundef == "undef") {
15720 print "/*", prefix defundef, macro, "*/"
15721 next
15722 }
15723 }
15724}
15725{ print }
15726_ACAWK
15727_ACEOF
15728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d6a4bcb5 15729 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
d1154eb4
TT
15730fi # test -n "$CONFIG_HEADERS"
15731
e1052144 15732
d1154eb4 15733eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39fd3d4f
SJR
15734shift
15735for ac_tag
e1052144
TT
15736do
15737 case $ac_tag in
15738 :[FHLC]) ac_mode=$ac_tag; continue;;
15739 esac
15740 case $ac_mode$ac_tag in
15741 :[FHL]*:*);;
d6a4bcb5 15742 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
e1052144
TT
15743 :[FH]-) ac_tag=-:-;;
15744 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15745 esac
15746 ac_save_IFS=$IFS
15747 IFS=:
15748 set x $ac_tag
15749 IFS=$ac_save_IFS
15750 shift
15751 ac_file=$1
15752 shift
15753
15754 case $ac_mode in
15755 :L) ac_source=$1;;
15756 :[FH])
15757 ac_file_inputs=
15758 for ac_f
15759 do
15760 case $ac_f in
d6a4bcb5 15761 -) ac_f="$ac_tmp/stdin";;
e1052144
TT
15762 *) # Look for the file first in the build tree, then in the source tree
15763 # (if the path is not absolute). The absolute path cannot be DOS-style,
15764 # because $ac_f cannot contain `:'.
15765 test -f "$ac_f" ||
15766 case $ac_f in
15767 [\\/$]*) false;;
15768 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15769 esac ||
d6a4bcb5 15770 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
e1052144 15771 esac
39fd3d4f 15772 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57aa50d4 15773 as_fn_append ac_file_inputs " '$ac_f'"
e1052144
TT
15774 done
15775
15776 # Let's still pretend it is `configure' which instantiates (i.e., don't
15777 # use $as_me), people would be surprised to read:
15778 # /* config.h. Generated by config.status. */
39fd3d4f
SJR
15779 configure_input='Generated from '`
15780 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15781 `' by configure.'
e1052144
TT
15782 if test x"$ac_file" != x-; then
15783 configure_input="$ac_file. $configure_input"
57aa50d4 15784 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39fd3d4f 15785$as_echo "$as_me: creating $ac_file" >&6;}
e1052144 15786 fi
39fd3d4f
SJR
15787 # Neutralize special characters interpreted by sed in replacement strings.
15788 case $configure_input in #(
15789 *\&* | *\|* | *\\* )
15790 ac_sed_conf_input=`$as_echo "$configure_input" |
15791 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15792 *) ac_sed_conf_input=$configure_input;;
15793 esac
e1052144
TT
15794
15795 case $ac_tag in
d6a4bcb5
TB
15796 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
e1052144
TT
15798 esac
15799 ;;
b0cacab0
TT
15800 esac
15801
e1052144 15802 ac_dir=`$as_dirname -- "$ac_file" ||
b0cacab0
TT
15803$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15804 X"$ac_file" : 'X\(//\)[^/]' \| \
15805 X"$ac_file" : 'X\(//\)$' \| \
e1052144 15806 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 15807$as_echo X"$ac_file" |
e1052144
TT
15808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15809 s//\1/
15810 q
15811 }
15812 /^X\(\/\/\)[^/].*/{
15813 s//\1/
15814 q
15815 }
15816 /^X\(\/\/\)$/{
15817 s//\1/
15818 q
15819 }
15820 /^X\(\/\).*/{
15821 s//\1/
15822 q
15823 }
15824 s/.*/./; q'`
57aa50d4 15825 as_dir="$ac_dir"; as_fn_mkdir_p
b0cacab0
TT
15826 ac_builddir=.
15827
e1052144
TT
15828case "$ac_dir" in
15829.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15830*)
39fd3d4f 15831 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 15832 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 15833 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
15834 case $ac_top_builddir_sub in
15835 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15836 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15837 esac ;;
15838esac
15839ac_abs_top_builddir=$ac_pwd
15840ac_abs_builddir=$ac_pwd$ac_dir_suffix
15841# for backward compatibility:
15842ac_top_builddir=$ac_top_build_prefix
93636bde 15843
b0cacab0 15844case $srcdir in
e1052144 15845 .) # We are building in place.
b0cacab0 15846 ac_srcdir=.
e1052144
TT
15847 ac_top_srcdir=$ac_top_builddir_sub
15848 ac_abs_top_srcdir=$ac_pwd ;;
15849 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 15850 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
15851 ac_top_srcdir=$srcdir
15852 ac_abs_top_srcdir=$srcdir ;;
15853 *) # Relative name.
15854 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15855 ac_top_srcdir=$ac_top_build_prefix$srcdir
15856 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 15857esac
e1052144 15858ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b0cacab0 15859
b0cacab0 15860
e1052144
TT
15861 case $ac_mode in
15862 :F)
15863 #
15864 # CONFIG_FILE
15865 #
50e1e10f 15866
b0cacab0
TT
15867 case $INSTALL in
15868 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
e1052144 15869 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50e1e10f 15870 esac
93613951
TT
15871 ac_MKDIR_P=$MKDIR_P
15872 case $MKDIR_P in
15873 [\\/$]* | ?:[\\/]* ) ;;
15874 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15875 esac
e1052144 15876_ACEOF
50e1e10f 15877
39fd3d4f 15878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15879# If the template does not know about datarootdir, expand it.
15880# FIXME: This hack should be removed a few years after 2.60.
15881ac_datarootdir_hack=; ac_datarootdir_seen=
39fd3d4f
SJR
15882ac_sed_dataroot='
15883/datarootdir/ {
e1052144
TT
15884 p
15885 q
15886}
15887/@datadir@/p
15888/@docdir@/p
15889/@infodir@/p
15890/@localedir@/p
57aa50d4 15891/@mandir@/p'
39fd3d4f 15892case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
e1052144
TT
15893*datarootdir*) ac_datarootdir_seen=yes;;
15894*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57aa50d4 15895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39fd3d4f 15896$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b0cacab0 15897_ACEOF
39fd3d4f 15898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
e1052144
TT
15899 ac_datarootdir_hack='
15900 s&@datadir@&$datadir&g
15901 s&@docdir@&$docdir&g
15902 s&@infodir@&$infodir&g
15903 s&@localedir@&$localedir&g
15904 s&@mandir@&$mandir&g
57aa50d4 15905 s&\\\${datarootdir}&$datarootdir&g' ;;
e1052144
TT
15906esac
15907_ACEOF
15908
15909# Neutralize VPATH when `$srcdir' = `.'.
15910# Shell code in configure.ac might set extrasub.
15911# FIXME: do we really want to maintain this feature?
39fd3d4f
SJR
15912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15913ac_sed_extra="$ac_vpsub
b0cacab0
TT
15914$extrasub
15915_ACEOF
39fd3d4f 15916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0
TT
15917:t
15918/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39fd3d4f 15919s|@configure_input@|$ac_sed_conf_input|;t t
e1052144 15920s&@top_builddir@&$ac_top_builddir_sub&;t t
39fd3d4f 15921s&@top_build_prefix@&$ac_top_build_prefix&;t t
e1052144
TT
15922s&@srcdir@&$ac_srcdir&;t t
15923s&@abs_srcdir@&$ac_abs_srcdir&;t t
15924s&@top_srcdir@&$ac_top_srcdir&;t t
15925s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15926s&@builddir@&$ac_builddir&;t t
15927s&@abs_builddir@&$ac_abs_builddir&;t t
15928s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15929s&@INSTALL@&$ac_INSTALL&;t t
93613951 15930s&@MKDIR_P@&$ac_MKDIR_P&;t t
e1052144 15931$ac_datarootdir_hack
39fd3d4f
SJR
15932"
15933eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15934if $ac_cs_awk_getline; then
d6a4bcb5 15935 $AWK -f "$ac_tmp/subs.awk"
39fd3d4f 15936else
d6a4bcb5
TB
15937 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15938fi \
15939 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144
TT
15940
15941test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6a4bcb5
TB
15942 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15943 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15944 "$ac_tmp/out"`; test -z "$ac_out"; } &&
57aa50d4 15945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 15946which seems to be undefined. Please make sure it is defined" >&5
39fd3d4f 15947$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 15948which seems to be undefined. Please make sure it is defined" >&2;}
e1052144 15949
d6a4bcb5 15950 rm -f "$ac_tmp/stdin"
e1052144 15951 case $ac_file in
d6a4bcb5
TB
15952 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15953 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39fd3d4f 15954 esac \
d6a4bcb5 15955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144 15956 ;;
d1154eb4
TT
15957 :H)
15958 #
15959 # CONFIG_HEADER
15960 #
15961 if test x"$ac_file" != x-; then
15962 {
15963 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
15964 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15965 } >"$ac_tmp/config.h" \
15966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15967 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
d1154eb4
TT
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15969$as_echo "$as_me: $ac_file is unchanged" >&6;}
15970 else
15971 rm -f "$ac_file"
d6a4bcb5
TB
15972 mv "$ac_tmp/config.h" "$ac_file" \
15973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d1154eb4
TT
15974 fi
15975 else
15976 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
15977 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15978 || as_fn_error $? "could not create -" "$LINENO" 5
d1154eb4
TT
15979 fi
15980 ;;
07a0db15 15981
57aa50d4 15982 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39fd3d4f 15983$as_echo "$as_me: executing $ac_file commands" >&6;}
e1052144
TT
15984 ;;
15985 esac
a04eba3f 15986
b0cacab0 15987
e1052144 15988 case $ac_file$ac_mode in
93613951 15989 "po-directories":C)
a04eba3f
TT
15990 for ac_file in $CONFIG_FILES; do
15991 # Support "outfile[:infile[:infile...]]"
15992 case "$ac_file" in
15993 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15994 esac
15995 # PO directories have a Makefile.in generated from Makefile.in.in.
15996 case "$ac_file" in */Makefile.in)
15997 # Adjust a relative srcdir.
15998 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
93613951 15999 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
a04eba3f
TT
16000 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16001 # In autoconf-2.13 it is called $ac_given_srcdir.
16002 # In autoconf-2.50 it is called $srcdir.
16003 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16004 case "$ac_given_srcdir" in
16005 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16006 /*) top_srcdir="$ac_given_srcdir" ;;
16007 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16008 esac
93613951
TT
16009 # Treat a directory as a PO directory if and only if it has a
16010 # POTFILES.in file. This allows packages to have multiple PO
16011 # directories under different names or in different locations.
a04eba3f
TT
16012 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16013 rm -f "$ac_dir/POTFILES"
16014 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
93613951
TT
16015 gt_tab=`printf '\t'`
16016 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"
b0cacab0
TT
16017 POMAKEFILEDEPS="POTFILES.in"
16018 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
a04eba3f
TT
16019 # on $ac_dir but don't depend on user-specified configuration
16020 # parameters.
16021 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16022 # The LINGUAS file contains the set of available languages.
b0cacab0 16023 if test -n "$OBSOLETE_ALL_LINGUAS"; then
a04eba3f
TT
16024 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16025 fi
93613951
TT
16026 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16027 # Hide the ALL_LINGUAS assignment from automake < 1.5.
a04eba3f 16028 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
b0cacab0
TT
16029 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16030 else
16031 # The set of available languages was given in configure.in.
93613951 16032 # Hide the ALL_LINGUAS assignment from automake < 1.5.
b0cacab0 16033 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
a04eba3f 16034 fi
b0cacab0
TT
16035 # Compute POFILES
16036 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16037 # Compute UPDATEPOFILES
16038 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16039 # Compute DUMMYPOFILES
16040 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16041 # Compute GMOFILES
16042 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
a04eba3f
TT
16043 case "$ac_given_srcdir" in
16044 .) srcdirpre= ;;
16045 *) srcdirpre='$(srcdir)/' ;;
16046 esac
16047 POFILES=
a04eba3f
TT
16048 UPDATEPOFILES=
16049 DUMMYPOFILES=
b0cacab0 16050 GMOFILES=
a04eba3f
TT
16051 for lang in $ALL_LINGUAS; do
16052 POFILES="$POFILES $srcdirpre$lang.po"
a04eba3f
TT
16053 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16054 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
b0cacab0 16055 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
a04eba3f
TT
16056 done
16057 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16058 # environment variable.
16059 INST_LINGUAS=
16060 if test -n "$ALL_LINGUAS"; then
16061 for presentlang in $ALL_LINGUAS; do
16062 useit=no
16063 if test "%UNSET%" != "$LINGUAS"; then
16064 desiredlanguages="$LINGUAS"
16065 else
16066 desiredlanguages="$ALL_LINGUAS"
16067 fi
16068 for desiredlang in $desiredlanguages; do
16069 # Use the presentlang catalog if desiredlang is
16070 # a. equal to presentlang, or
16071 # b. a variant of presentlang (because in this case,
16072 # presentlang can be used as a fallback for messages
16073 # which are not translated in the desiredlang catalog).
16074 case "$desiredlang" in
16075 "$presentlang"*) useit=yes;;
16076 esac
16077 done
16078 if test $useit = yes; then
16079 INST_LINGUAS="$INST_LINGUAS $presentlang"
16080 fi
16081 done
16082 fi
16083 CATALOGS=
16084 if test -n "$INST_LINGUAS"; then
16085 for lang in $INST_LINGUAS; do
16086 CATALOGS="$CATALOGS $lang.gmo"
16087 done
16088 fi
16089 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
b0cacab0 16090 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"
a04eba3f
TT
16091 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16092 if test -f "$f"; then
16093 case "$f" in
16094 *.orig | *.bak | *~) ;;
16095 *) cat "$f" >> "$ac_dir/Makefile" ;;
16096 esac
16097 fi
16098 done
16099 fi
16100 ;;
a64c9c13 16101 esac
b0cacab0 16102 done ;;
e1052144 16103
b0cacab0 16104 esac
e1052144 16105done # for ac_tag
07a0db15 16106
b0cacab0 16107
57aa50d4 16108as_fn_exit 0
b0cacab0 16109_ACEOF
b0cacab0
TT
16110ac_clean_files=$ac_clean_files_save
16111
39fd3d4f 16112test $ac_write_fail = 0 ||
d6a4bcb5 16113 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 16114
b0cacab0
TT
16115
16116# configure is writing to config.log, and then calls config.status.
16117# config.status does its own redirection, appending to config.log.
16118# Unfortunately, on DOS this fails, as config.log is still kept open
16119# by configure, so config.status won't be able to write to it; its
16120# output is simply discarded. So we exec the FD to /dev/null,
16121# effectively closing config.log, so it can be properly (re)opened and
16122# appended to by config.status. When coming back to configure, we
16123# need to make the FD available again.
16124if test "$no_create" != yes; then
16125 ac_cs_success=:
16126 ac_config_status_args=
16127 test "$silent" = yes &&
16128 ac_config_status_args="$ac_config_status_args --quiet"
16129 exec 5>/dev/null
16130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16131 exec 5>>config.log
16132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16133 # would make configure fail if this is the last instruction.
d6a4bcb5 16134 $ac_cs_success || as_fn_exit 1
b0cacab0 16135fi
39fd3d4f 16136if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
57aa50d4 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39fd3d4f
SJR
16138$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16139fi
50e1e10f 16140
ee683a13 16141if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi