]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
enable UBSAN if the builder wants it
[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
5b5bd2c2 643MKINSTALLDIRS
d1154eb4 644INCLUDES
39fd3d4f 645DO_TEST_SUITE
fd1677e8 646LDFLAGS_STATIC
39fd3d4f
SJR
647root_sysconfdir
648root_libdir
649root_sbindir
650root_bindir
651root_prefix
5ce368f0 652E2SCRUB_CMT
39fd3d4f
SJR
653UNIX_CMT
654CYGWIN_CMT
655LINUX_CMT
1c2a76ae
DW
656ubsan_ldflags
657ubsan_cflags
658have_ubsan
4aece328
DW
659lto_ldflags
660lto_cflags
661have_lto
662gcc_ranlib
663gcc_ar
39fd3d4f
SJR
664UNI_DIFF_OPTS
665SEM_INIT_LIB
81cbf1ef
DW
666FUSE_CMT
667FUSE_LIB
c94da047 668CLOCK_GETTIME_LIB
b291c11f 669MAGIC_LIB
39fd3d4f 670SOCKET_LIB
2dd680f3 671SIZEOF_TIME_T
cc68e8a6 672SIZEOF_OFF_T
39fd3d4f
SJR
673SIZEOF_LONG_LONG
674SIZEOF_LONG
675SIZEOF_INT
676SIZEOF_SHORT
ec3a69bb 677DD
39fd3d4f
SJR
678BUILD_CC
679MAKEINFO
680STRIP
681AR
682LDCONFIG
683PERL
39fd3d4f
SJR
684AWK
685CHMOD
686RM
687CP
688MV
689LN_S
690LN
bcb915b0
TT
691ifNotGNUmake
692ifGNUmake
39fd3d4f
SJR
693BINARY_TYPE
694POSUB
695LTLIBINTL
696LIBINTL
697INTLLIBS
698INTL_LIBTOOL_SUFFIX_PREFIX
699INTLOBJS
700GENCAT
701INSTOBJEXT
702DATADIRNAME
703CATOBJEXT
704USE_INCLUDED_LIBINTL
705BUILD_INCLUDED_LIBINTL
93613951
TT
706LTLIBC
707WINDRES
708WOE32
709WOE32DLL
39fd3d4f 710HAVE_WPRINTF
93613951 711HAVE_NEWLOCALE
39fd3d4f
SJR
712HAVE_SNPRINTF
713HAVE_ASPRINTF
714HAVE_POSIX_PRINTF
93613951
TT
715INTL_DEFAULT_VERBOSITY
716INTL_MACOSX_LIBS
39fd3d4f 717GLIBC21
93613951
TT
718INTLBISON
719LTLIBICONV
720LIBICONV
721LTLIBMULTITHREAD
722LIBMULTITHREAD
723LTLIBTHREAD
724LIBTHREAD
725LIBPTH_PREFIX
726LTLIBPTH
727LIBPTH
728PRI_MACROS_BROKEN
39fd3d4f 729ALLOCA
93613951
TT
730HAVE_VISIBILITY
731CFLAG_VISIBILITY
39fd3d4f 732RANLIB
93613951
TT
733GLIBC2
734XGETTEXT_EXTRA_OPTIONS
39fd3d4f 735MSGMERGE
93613951 736XGETTEXT_015
39fd3d4f 737XGETTEXT
93613951
TT
738GMSGFMT_015
739MSGFMT_015
39fd3d4f
SJR
740GMSGFMT
741MSGFMT
93613951 742GETTEXT_MACRO_VERSION
39fd3d4f 743USE_NLS
93613951
TT
744SED
745MKDIR_P
39fd3d4f
SJR
746INSTALL_DATA
747INSTALL_SCRIPT
748INSTALL_PROGRAM
749SET_MAKE
750VERSION
751PACKAGE
752GETTEXT_PACKAGE
749f0712
TT
753TDB_MAN_COMMENT
754TDB_CMT
39fd3d4f
SJR
755UUIDD_CMT
756E2INITRD_MAN
757E2INITRD_PROG
758FSCK_MAN
759FSCK_PROG
8d9c50c5 760DEFRAG_CMT
39fd3d4f
SJR
761RESIZER_CMT
762IMAGER_CMT
763DEBUGFS_CMT
764BLKID_CMT
765DEPPROFILED_LIBBLKID
766PROFILED_LIBBLKID
767DEPSTATIC_LIBBLKID
768STATIC_LIBBLKID
769DEPLIBBLKID
770LIBBLKID
771UUID_CMT
772DEPPROFILED_LIBUUID
773PROFILED_LIBUUID
774DEPSTATIC_LIBUUID
775STATIC_LIBUUID
776DEPLIBUUID
777LIBUUID
93613951
TT
778PKG_CONFIG_LIBDIR
779PKG_CONFIG_PATH
39fd3d4f
SJR
780PKG_CONFIG
781TEST_IO_CMT
782PRIVATE_LIBS_CMT
783LDFLAG_DYNAMIC
784PROFILED_LIB_EXT
785STATIC_LIB_EXT
786LIB_EXT
39fd3d4f
SJR
787PROFILE_CMT
788BSDLIB_CMT
789ELF_CMT
c13351f6 790Q
c1986ecb 791ES
c13351f6 792E
5aa6c3f6 793LINK_BUILD_FLAGS
183c73b0 794SYMLINK_RELATIVE
5aa6c3f6 795LINK_INSTALL_FLAGS
39fd3d4f 796MAINTAINER_CMT
93613951
TT
797EGREP
798GREP
39fd3d4f 799CPP
9b3018a8 800RDYNAMIC
57aa50d4 801DLOPEN_LIB
39fd3d4f
SJR
802OBJEXT
803EXEEXT
804ac_ct_CC
805CPPFLAGS
806LDFLAGS
807CFLAGS
808CC
809host_os
810host_vendor
811host_cpu
812host
813build_os
814build_vendor
815build_cpu
816build
5ce368f0 817E2FSPROGS_DATE
39fd3d4f
SJR
818E2FSPROGS_PKGVER
819E2FSPROGS_VERSION
820E2FSPROGS_DAY
821E2FSPROGS_MONTH
822E2FSPROGS_YEAR
823target_alias
824host_alias
825build_alias
826LIBS
827ECHO_T
828ECHO_N
829ECHO_C
830DEFS
831mandir
832localedir
833libdir
834psdir
835pdfdir
836dvidir
837htmldir
838infodir
839docdir
840oldincludedir
841includedir
2ab53829 842runstatedir
39fd3d4f
SJR
843localstatedir
844sharedstatedir
845sysconfdir
846datadir
847datarootdir
848libexecdir
849sbindir
850bindir
851program_transform_name
852prefix
853exec_prefix
57aa50d4 854PACKAGE_URL
39fd3d4f
SJR
855PACKAGE_BUGREPORT
856PACKAGE_STRING
857PACKAGE_VERSION
858PACKAGE_TARNAME
859PACKAGE_NAME
860PATH_SEPARATOR
861SHELL'
e1052144
TT
862ac_subst_files='MCONFIG
863MAKEFILE_ELF
864MAKEFILE_BSDLIB
865MAKEFILE_PROFILE
e1052144 866MAKEFILE_LIBRARY
488c75a6
TT
867ASM_TYPES_HEADER
868PUBLIC_CONFIG_HEADER'
39fd3d4f
SJR
869ac_user_opts='
870enable_option_checking
871with_diet_libc
872with_cc
39fd3d4f
SJR
873with_ccopts
874with_ldopts
875with_root_prefix
876enable_maintainer_mode
5aa6c3f6 877enable_symlink_install
91d11da1 878enable_relative_symlinks
183c73b0 879enable_symlink_relative_symlinks
5aa6c3f6 880enable_symlink_build
c13351f6 881enable_verbose_makecmds
39fd3d4f
SJR
882enable_elf_shlibs
883enable_bsd_shlibs
884enable_profile
fedfb27f 885enable_gcov
fd1677e8 886enable_hardening
39fd3d4f
SJR
887enable_jbd_debug
888enable_blkid_debug
889enable_testio_debug
890enable_libuuid
891enable_libblkid
3df6014a 892enable_backtrace
39fd3d4f
SJR
893enable_debugfs
894enable_imager
895enable_resizer
8d9c50c5 896enable_defrag
39fd3d4f
SJR
897enable_fsck
898enable_e2initrd_helper
899enable_tls
900enable_uuidd
d6a4bcb5 901enable_mmp
749f0712 902enable_tdb
1625bf42
TB
903enable_bmap_stats
904enable_bmap_stats_ops
39fd3d4f 905enable_nls
93613951 906enable_threads
39fd3d4f
SJR
907with_gnu_ld
908enable_rpath
93613951 909with_libpth_prefix
39fd3d4f
SJR
910with_libiconv_prefix
911with_included_gettext
912with_libintl_prefix
81cbf1ef 913enable_fuse2fs
4aece328 914enable_lto
1c2a76ae 915enable_ubsan
55e00a25 916with_multiarch
5ce368f0 917with_udev_rules_dir
a2df5894
DW
918with_crond_dir
919with_systemd_unit_dir
39fd3d4f 920'
e1052144
TT
921 ac_precious_vars='build_alias
922host_alias
923target_alias
924CC
925CFLAGS
926LDFLAGS
29a5deed 927LIBS
e1052144 928CPPFLAGS
14b596d4 929CPP
93613951
TT
930PKG_CONFIG
931PKG_CONFIG_PATH
5ce368f0
DW
932PKG_CONFIG_LIBDIR
933udev_CFLAGS
a2df5894
DW
934udev_LIBS
935systemd_CFLAGS
936systemd_LIBS'
e1052144 937
50e1e10f
TT
938
939# Initialize some variables set by options.
b0cacab0
TT
940ac_init_help=
941ac_init_version=false
39fd3d4f
SJR
942ac_unrecognized_opts=
943ac_unrecognized_sep=
50e1e10f
TT
944# The variables have the same names as the options, with
945# dashes changed to underlines.
b0cacab0 946cache_file=/dev/null
50e1e10f 947exec_prefix=NONE
50e1e10f 948no_create=
50e1e10f
TT
949no_recursion=
950prefix=NONE
951program_prefix=NONE
952program_suffix=NONE
953program_transform_name=s,x,x,
954silent=
955site=
956srcdir=
50e1e10f
TT
957verbose=
958x_includes=NONE
959x_libraries=NONE
b0cacab0
TT
960
961# Installation directory options.
962# These are left unexpanded so users can "make install exec_prefix=/foo"
963# and all the variables that are supposed to be based on exec_prefix
964# by default will actually change.
965# Use braces instead of parens because sh, perl, etc. also accept them.
e1052144 966# (The list follows the same order as the GNU Coding Standards.)
21c84b71
TT
967bindir='${exec_prefix}/bin'
968sbindir='${exec_prefix}/sbin'
969libexecdir='${exec_prefix}/libexec'
e1052144
TT
970datarootdir='${prefix}/share'
971datadir='${datarootdir}'
21c84b71
TT
972sysconfdir='${prefix}/etc'
973sharedstatedir='${prefix}/com'
974localstatedir='${prefix}/var'
2ab53829 975runstatedir='${localstatedir}/run'
21c84b71
TT
976includedir='${prefix}/include'
977oldincludedir='/usr/include'
e1052144
TT
978docdir='${datarootdir}/doc/${PACKAGE}'
979infodir='${datarootdir}/info'
980htmldir='${docdir}'
981dvidir='${docdir}'
982pdfdir='${docdir}'
983psdir='${docdir}'
984libdir='${exec_prefix}/lib'
985localedir='${datarootdir}/locale'
986mandir='${datarootdir}/man'
50e1e10f 987
50e1e10f 988ac_prev=
e1052144 989ac_dashdash=
50e1e10f
TT
990for ac_option
991do
50e1e10f
TT
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
e1052144 994 eval $ac_prev=\$ac_option
50e1e10f
TT
995 ac_prev=
996 continue
997 fi
998
e1052144 999 case $ac_option in
d6a4bcb5
TB
1000 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 *=) ac_optarg= ;;
1002 *) ac_optarg=yes ;;
e1052144 1003 esac
50e1e10f
TT
1004
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1006
e1052144
TT
1007 case $ac_dashdash$ac_option in
1008 --)
1009 ac_dashdash=yes ;;
50e1e10f 1010
21c84b71
TT
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 ac_prev=bindir ;;
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b0cacab0 1014 bindir=$ac_optarg ;;
21c84b71
TT
1015
1016 -build | --build | --buil | --bui | --bu)
b0cacab0 1017 ac_prev=build_alias ;;
21c84b71 1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b0cacab0 1019 build_alias=$ac_optarg ;;
50e1e10f
TT
1020
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b0cacab0
TT
1026 cache_file=$ac_optarg ;;
1027
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
50e1e10f 1030
e1052144 1031 -datadir | --datadir | --datadi | --datad)
21c84b71 1032 ac_prev=datadir ;;
e1052144 1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b0cacab0 1034 datadir=$ac_optarg ;;
21c84b71 1035
e1052144
TT
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1042
50e1e10f 1043 -disable-* | --disable-*)
39fd3d4f 1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
50e1e10f 1045 # Reject names that are not valid shell variable names.
39fd3d4f 1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1047 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052"enable_$ac_useropt"
1053"*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
e1052144
TT
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
50e1e10f
TT
1068
1069 -enable-* | --enable-*)
39fd3d4f 1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
50e1e10f 1071 # Reject names that are not valid shell variable names.
39fd3d4f 1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1073 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078"enable_$ac_useropt"
1079"*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1084
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
b0cacab0 1092 exec_prefix=$ac_optarg ;;
50e1e10f
TT
1093
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1096 with_gas=yes ;;
1097
b0cacab0
TT
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
50e1e10f
TT
1104
1105 -host | --host | --hos | --ho)
b0cacab0 1106 ac_prev=host_alias ;;
50e1e10f 1107 -host=* | --host=* | --hos=* | --ho=*)
b0cacab0 1108 host_alias=$ac_optarg ;;
50e1e10f 1109
e1052144
TT
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 ac_prev=htmldir ;;
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 | --ht=*)
1114 htmldir=$ac_optarg ;;
1115
21c84b71
TT
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
b0cacab0 1121 includedir=$ac_optarg ;;
21c84b71
TT
1122
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 ac_prev=infodir ;;
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b0cacab0 1126 infodir=$ac_optarg ;;
21c84b71
TT
1127
1128 -libdir | --libdir | --libdi | --libd)
1129 ac_prev=libdir ;;
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b0cacab0 1131 libdir=$ac_optarg ;;
21c84b71
TT
1132
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
b0cacab0 1138 libexecdir=$ac_optarg ;;
21c84b71 1139
e1052144
TT
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1144
21c84b71 1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
e1052144 1146 | --localstate | --localstat | --localsta | --localst | --locals)
21c84b71
TT
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
e1052144 1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b0cacab0 1150 localstatedir=$ac_optarg ;;
21c84b71
TT
1151
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 ac_prev=mandir ;;
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b0cacab0 1155 mandir=$ac_optarg ;;
21c84b71 1156
50e1e10f
TT
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1159 with_fp=no ;;
1160
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b0cacab0 1162 | --no-cr | --no-c | -n)
50e1e10f
TT
1163 no_create=yes ;;
1164
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 no_recursion=yes ;;
1168
21c84b71
TT
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b0cacab0 1176 oldincludedir=$ac_optarg ;;
21c84b71 1177
50e1e10f
TT
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 ac_prev=prefix ;;
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b0cacab0 1181 prefix=$ac_optarg ;;
50e1e10f
TT
1182
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b0cacab0 1188 program_prefix=$ac_optarg ;;
50e1e10f
TT
1189
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b0cacab0 1195 program_suffix=$ac_optarg ;;
50e1e10f
TT
1196
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
b0cacab0 1212 program_transform_name=$ac_optarg ;;
50e1e10f 1213
e1052144
TT
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 ac_prev=pdfdir ;;
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1218
1219 -psdir | --psdir | --psdi | --psd | --ps)
1220 ac_prev=psdir ;;
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 psdir=$ac_optarg ;;
1223
50e1e10f
TT
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 silent=yes ;;
1227
2ab53829
TT
1228 -runstatedir | --runstatedir | --runstatedi | --runstated \
1229 | --runstate | --runstat | --runsta | --runst | --runs \
1230 | --run | --ru | --r)
1231 ac_prev=runstatedir ;;
1232 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1233 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1234 | --run=* | --ru=* | --r=*)
1235 runstatedir=$ac_optarg ;;
1236
21c84b71
TT
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 ac_prev=sbindir ;;
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 | --sbi=* | --sb=*)
b0cacab0 1241 sbindir=$ac_optarg ;;
21c84b71
TT
1242
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1246 | --sha | --sh)
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 | --sha=* | --sh=*)
b0cacab0 1252 sharedstatedir=$ac_optarg ;;
21c84b71 1253
50e1e10f
TT
1254 -site | --site | --sit)
1255 ac_prev=site ;;
1256 -site=* | --site=* | --sit=*)
b0cacab0 1257 site=$ac_optarg ;;
50e1e10f
TT
1258
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 ac_prev=srcdir ;;
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b0cacab0 1262 srcdir=$ac_optarg ;;
50e1e10f 1263
21c84b71
TT
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b0cacab0 1269 sysconfdir=$ac_optarg ;;
21c84b71 1270
50e1e10f 1271 -target | --target | --targe | --targ | --tar | --ta | --t)
b0cacab0 1272 ac_prev=target_alias ;;
50e1e10f 1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b0cacab0 1274 target_alias=$ac_optarg ;;
50e1e10f
TT
1275
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 verbose=yes ;;
1278
b0cacab0
TT
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
50e1e10f
TT
1281
1282 -with-* | --with-*)
39fd3d4f 1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
50e1e10f 1284 # Reject names that are not valid shell variable names.
39fd3d4f 1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1286 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291"with_$ac_useropt"
1292"*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval with_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1297
1298 -without-* | --without-*)
39fd3d4f 1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
50e1e10f 1300 # Reject names that are not valid shell variable names.
39fd3d4f 1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1302 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1306 *"
1307"with_$ac_useropt"
1308"*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval with_$ac_useropt=no ;;
50e1e10f
TT
1313
1314 --x)
1315 # Obsolete; use --with-x.
1316 with_x=yes ;;
1317
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b0cacab0 1323 x_includes=$ac_optarg ;;
50e1e10f
TT
1324
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b0cacab0 1330 x_libraries=$ac_optarg ;;
50e1e10f 1331
d6a4bcb5
TB
1332 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1333Try \`$0 --help' for more information"
50e1e10f
TT
1334 ;;
1335
b0cacab0
TT
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
57aa50d4
TT
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
d6a4bcb5 1341 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
57aa50d4 1342 esac
e1052144 1343 eval $ac_envvar=\$ac_optarg
b0cacab0
TT
1344 export $ac_envvar ;;
1345
21c84b71 1346 *)
b0cacab0 1347 # FIXME: should be removed in autoconf 3.0.
39fd3d4f 1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b0cacab0 1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
39fd3d4f 1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6a4bcb5 1351 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
50e1e10f
TT
1352 ;;
1353
1354 esac
1355done
1356
1357if test -n "$ac_prev"; then
b0cacab0 1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d6a4bcb5 1359 as_fn_error $? "missing argument to $ac_option"
50e1e10f 1360fi
50e1e10f 1361
39fd3d4f
SJR
1362if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1364 no) ;;
d6a4bcb5 1365 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
39fd3d4f
SJR
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 esac
1368fi
1369
1370# Check all directory arguments for consistency.
e1052144
TT
1371for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2ab53829 1374 libdir localedir mandir runstatedir
50e1e10f 1375do
e1052144 1376 eval ac_val=\$$ac_var
39fd3d4f
SJR
1377 # Remove trailing slashes.
1378 case $ac_val in
1379 */ )
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1382 esac
1383 # Be sure to have absolute directory names.
b0cacab0 1384 case $ac_val in
e1052144
TT
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
50e1e10f 1387 esac
d6a4bcb5 1388 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
50e1e10f
TT
1389done
1390
b0cacab0
TT
1391# There might be people who depend on the old broken behavior: `$host'
1392# used to hold the argument of --host etc.
1393# FIXME: To remove some day.
1394build=$build_alias
1395host=$host_alias
1396target=$target_alias
1397
1398# FIXME: To remove some day.
1399if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
b0cacab0
TT
1402 elif test "x$build_alias" != "x$host_alias"; then
1403 cross_compiling=yes
1404 fi
1405fi
50e1e10f 1406
b0cacab0
TT
1407ac_tool_prefix=
1408test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410test "$silent" = yes && exec 6>/dev/null
50e1e10f 1411
50e1e10f 1412
e1052144
TT
1413ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414ac_ls_di=`ls -di .` &&
1415ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d6a4bcb5 1416 as_fn_error $? "working directory cannot be determined"
e1052144 1417test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d6a4bcb5 1418 as_fn_error $? "pwd does not report name of working directory"
e1052144
TT
1419
1420
50e1e10f
TT
1421# Find the source files, if location was not specified.
1422if test -z "$srcdir"; then
1423 ac_srcdir_defaulted=yes
e1052144 1424 # Try the directory containing this script, then the parent directory.
39fd3d4f
SJR
1425 ac_confdir=`$as_dirname -- "$as_myself" ||
1426$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430$as_echo X"$as_myself" |
e1052144
TT
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\/\)[^/].*/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\/\)$/{
1440 s//\1/
1441 q
1442 }
1443 /^X\(\/\).*/{
1444 s//\1/
1445 q
1446 }
1447 s/.*/./; q'`
50e1e10f 1448 srcdir=$ac_confdir
e1052144 1449 if test ! -r "$srcdir/$ac_unique_file"; then
50e1e10f
TT
1450 srcdir=..
1451 fi
1452else
1453 ac_srcdir_defaulted=no
1454fi
e1052144
TT
1455if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d6a4bcb5 1457 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
50e1e10f 1458fi
e1052144
TT
1459ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460ac_abs_confdir=`(
d6a4bcb5 1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
e1052144
TT
1462 pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
b0cacab0
TT
1479
1480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1486 cat <<_ACEOF
1487\`configure' configures this package to adapt to many kinds of systems.
1488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE. See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
d6a4bcb5 1501 -q, --quiet, --silent do not print \`checking ...' messages
b0cacab0
TT
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506
b0cacab0
TT
1507Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
39fd3d4f 1509 [$ac_default_prefix]
b0cacab0 1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
39fd3d4f 1511 [PREFIX]
b0cacab0
TT
1512
1513By default, \`make install' will install all the files in
1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516for instance \`--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
39fd3d4f
SJR
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2ab53829 1527 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
39fd3d4f
SJR
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
b0cacab0
TT
1541_ACEOF
1542
1543 cat <<\_ACEOF
1544
1545System types:
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548_ACEOF
1549fi
1550
1551if test -n "$ac_init_help"; then
1552
1553 cat <<\_ACEOF
1554
1555Optional Features:
39fd3d4f 1556 --disable-option-checking ignore unrecognized --enable/--with options
b0cacab0
TT
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
98919bdb 1559 --enable-maintainer-mode enable makefile rules useful for maintainers
5aa6c3f6 1560 --enable-symlink-install use symlinks when installing instead of hard links
183c73b0 1561 --enable-relative-symlinks use relative symlinks when installing
91d11da1 1562
5aa6c3f6
TT
1563 --enable-symlink-build use symlinks while building instead of hard links
1564 --enable-verbose-makecmds enable verbose make command output
b0cacab0
TT
1565 --enable-elf-shlibs select ELF shared libraries
1566 --enable-bsd-shlibs select BSD shared libraries
1567 --enable-profile build profiling libraries
fedfb27f 1568 --enable-gcov build for coverage testing using gcov
fd1677e8 1569 --enable-hardening build for coverage testing using gcov
b0cacab0
TT
1570 --enable-jbd-debug enable journal debugging
1571 --enable-blkid-debug enable blkid debugging
af773654 1572 --disable-testio-debug disable the use of the test I/O manager for debugging
f5dffb81
TT
1573 --enable-libuuid build and use private uuid library
1574 --enable-libblkid build and use private blkid library
3df6014a 1575 --disable-backtrace disable use backtrace
b0cacab0
TT
1576 --disable-debugfs disable support of debugfs program
1577 --disable-imager disable support of e2image program
1578 --disable-resizer disable support of e2resize program
8d9c50c5 1579 --disable-defrag disable support of e4defrag program
b0cacab0
TT
1580 --enable-fsck build fsck wrapper program
1581 --enable-e2initrd-helper build e2initrd-helper program
3249394d 1582 --disable-tls disable use of thread local support
5610f992 1583 --disable-uuidd disable building the uuid daemon
d6a4bcb5 1584 --disable-mmp disable support mmp, Multi Mount Protection
749f0712 1585 --disable-tdb disable tdb support
1625bf42
TB
1586 --disable-bmap-stats disable collection of bitmap stats.
1587 --enable-bmap-stats-ops enable collection of additional bitmap stats
b0cacab0 1588 --disable-nls do not use Native Language Support
93613951
TT
1589 --enable-threads={posix|solaris|pth|windows}
1590 specify multithreading API
1591 --disable-threads build without multithread safety
b0cacab0 1592 --disable-rpath do not hardcode runtime library paths
f5dffb81 1593 --disable-fuse2fs do not build fuse2fs
4aece328 1594 --enable-lto enable link time optimization
1c2a76ae 1595 --enable-ubsan enable undefined behavior sanitizer
b0cacab0
TT
1596
1597Optional Packages:
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3249394d 1600 --with-diet-libc use diet libc
0b5b9f90
TT
1601 --with-cc no longer supported, use CC= instead
1602 --with-ccopts no longer supported, use CFLAGS= instead
1603 --with-ldopts no longer supported, use LDFLAGS= instead
b0cacab0 1604 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
93613951
TT
1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1607 --without-libpth-prefix don't search for libpth in includedir and libdir
b0cacab0
TT
1608 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1609 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1610 --with-included-gettext use the GNU gettext library included here
1611 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1612 --without-libintl-prefix don't search for libintl in includedir and libdir
55e00a25 1613 --with-multiarch=ARCH specify the multiarch triplet
5ce368f0
DW
1614 --with-udev-rules-dir[=DIR]
1615 Install udev rules into DIR.
a2df5894
DW
1616 --with-crond-dir[=DIR] Install system crontabs into DIR.
1617 --with-systemd-unit-dir[=DIR]
1618 Install systemd system units into DIR.
b0cacab0
TT
1619
1620Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
29a5deed 1625 LIBS libraries to pass to the linker, e.g. -l<library>
61ef2474 1626 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
e1052144 1627 you have headers in a nonstandard directory <include dir>
b0cacab0 1628 CPP C preprocessor
14b596d4 1629 PKG_CONFIG path to pkg-config utility
93613951
TT
1630 PKG_CONFIG_PATH
1631 directories to add to pkg-config's search path
1632 PKG_CONFIG_LIBDIR
1633 path overriding pkg-config's built-in search path
5ce368f0
DW
1634 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1635 udev_LIBS linker flags for udev, overriding pkg-config
a2df5894
DW
1636 systemd_CFLAGS
1637 C compiler flags for systemd, overriding pkg-config
1638 systemd_LIBS
1639 linker flags for systemd, overriding pkg-config
b0cacab0
TT
1640
1641Use these variables to override the choices made by `configure' or to help
1642it to find libraries and programs with nonstandard names/locations.
1643
57aa50d4 1644Report bugs to the package provider.
b0cacab0 1645_ACEOF
e1052144 1646ac_status=$?
b0cacab0
TT
1647fi
1648
1649if test "$ac_init_help" = "recursive"; then
1650 # If there are subdirs, report their specific --help.
b0cacab0 1651 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
39fd3d4f
SJR
1652 test -d "$ac_dir" ||
1653 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1654 continue
b0cacab0
TT
1655 ac_builddir=.
1656
e1052144
TT
1657case "$ac_dir" in
1658.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659*)
39fd3d4f 1660 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 1661 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 1662 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
1663 case $ac_top_builddir_sub in
1664 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1666 esac ;;
1667esac
1668ac_abs_top_builddir=$ac_pwd
1669ac_abs_builddir=$ac_pwd$ac_dir_suffix
1670# for backward compatibility:
1671ac_top_builddir=$ac_top_build_prefix
b0cacab0
TT
1672
1673case $srcdir in
e1052144 1674 .) # We are building in place.
b0cacab0 1675 ac_srcdir=.
e1052144
TT
1676 ac_top_srcdir=$ac_top_builddir_sub
1677 ac_abs_top_srcdir=$ac_pwd ;;
1678 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 1679 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
1680 ac_top_srcdir=$srcdir
1681 ac_abs_top_srcdir=$srcdir ;;
1682 *) # Relative name.
1683 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1684 ac_top_srcdir=$ac_top_build_prefix$srcdir
1685 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 1686esac
e1052144
TT
1687ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1688
1689 cd "$ac_dir" || { ac_status=$?; continue; }
1690 # Check for guested configure.
1691 if test -f "$ac_srcdir/configure.gnu"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1694 elif test -f "$ac_srcdir/configure"; then
1695 echo &&
1696 $SHELL "$ac_srcdir/configure" --help=recursive
b0cacab0 1697 else
39fd3d4f 1698 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
e1052144
TT
1699 fi || ac_status=$?
1700 cd "$ac_pwd" || { ac_status=$?; break; }
b0cacab0
TT
1701 done
1702fi
1703
e1052144 1704test -n "$ac_init_help" && exit $ac_status
b0cacab0
TT
1705if $ac_init_version; then
1706 cat <<\_ACEOF
e1052144 1707configure
d6a4bcb5 1708generated by GNU Autoconf 2.69
b0cacab0 1709
d6a4bcb5 1710Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
1711This configure script is free software; the Free Software Foundation
1712gives unlimited permission to copy, distribute and modify it.
1713_ACEOF
e1052144 1714 exit
b0cacab0 1715fi
b0cacab0 1716
57aa50d4
TT
1717## ------------------------ ##
1718## Autoconf initialization. ##
1719## ------------------------ ##
b0cacab0 1720
57aa50d4
TT
1721# ac_fn_c_try_compile LINENO
1722# --------------------------
1723# Try to compile conftest.$ac_ext, and return whether this succeeded.
1724ac_fn_c_try_compile ()
1725{
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext
1728 if { { ac_try="$ac_compile"
1729case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732esac
1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734$as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_compile") 2>conftest.err
1736 ac_status=$?
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1741 fi
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_c_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest.$ac_objext; then :
1747 ac_retval=0
1748else
1749 $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1751
57aa50d4
TT
1752 ac_retval=1
1753fi
d6a4bcb5 1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1755 as_fn_set_status $ac_retval
57aa50d4
TT
1756
1757} # ac_fn_c_try_compile
1758
1759# ac_fn_c_try_link LINENO
1760# -----------------------
1761# Try to link conftest.$ac_ext, and return whether this succeeded.
1762ac_fn_c_try_link ()
b0cacab0 1763{
57aa50d4
TT
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext conftest$ac_exeext
1766 if { { ac_try="$ac_link"
1767case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1779 fi
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest$ac_exeext && {
1785 test "$cross_compiling" = yes ||
d6a4bcb5 1786 test -x conftest$ac_exeext
57aa50d4
TT
1787 }; then :
1788 ac_retval=0
1789else
1790 $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1792
57aa50d4
TT
1793 ac_retval=1
1794fi
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1801 as_fn_set_status $ac_retval
b0cacab0 1802
57aa50d4 1803} # ac_fn_c_try_link
b0cacab0 1804
57aa50d4
TT
1805# ac_fn_c_try_cpp LINENO
1806# ----------------------
1807# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1808ac_fn_c_try_cpp ()
1809{
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 if { { ac_try="$ac_cpp conftest.$ac_ext"
1812case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1824 fi
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6a4bcb5 1826 test $ac_status = 0; } > conftest.i && {
57aa50d4
TT
1827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 }; then :
1830 ac_retval=0
1831else
1832 $as_echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1834
57aa50d4
TT
1835 ac_retval=1
1836fi
d6a4bcb5 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1838 as_fn_set_status $ac_retval
b0cacab0 1839
57aa50d4 1840} # ac_fn_c_try_cpp
b0cacab0 1841
93613951
TT
1842# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1843# -------------------------------------------------------
1844# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1845# the include files in INCLUDES and setting the cache variable VAR
1846# accordingly.
1847ac_fn_c_check_header_mongrel ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if eval \${$3+:} false; then :
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855fi
1856eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859else
1860 # Is the header compilable?
1861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1862$as_echo_n "checking $2 usability... " >&6; }
1863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h. */
1865$4
1866#include <$2>
1867_ACEOF
1868if ac_fn_c_try_compile "$LINENO"; then :
1869 ac_header_compiler=yes
1870else
1871 ac_header_compiler=no
1872fi
1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1875$as_echo "$ac_header_compiler" >&6; }
1876
1877# Is the header present?
1878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1879$as_echo_n "checking $2 presence... " >&6; }
1880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h. */
1882#include <$2>
1883_ACEOF
1884if ac_fn_c_try_cpp "$LINENO"; then :
1885 ac_header_preproc=yes
1886else
1887 ac_header_preproc=no
1888fi
1889rm -f conftest.err conftest.i conftest.$ac_ext
1890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1891$as_echo "$ac_header_preproc" >&6; }
1892
1893# So? What about this header?
1894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1895 yes:no: )
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1897$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900 ;;
1901 no:yes:* )
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1903$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1905$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1907$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1909$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912 ;;
1913esac
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
1916if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918else
1919 eval "$3=\$ac_header_compiler"
1920fi
1921eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924fi
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927} # ac_fn_c_check_header_mongrel
1928
57aa50d4
TT
1929# ac_fn_c_try_run LINENO
1930# ----------------------
1931# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1932# that executables *can* be run.
1933ac_fn_c_try_run ()
1934{
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { { ac_try="$ac_link"
1937case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940esac
1941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942$as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_link") 2>&5
1944 ac_status=$?
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1947 { { case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950esac
1951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952$as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_try") 2>&5
1954 ac_status=$?
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; }; }; then :
1957 ac_retval=0
1958else
1959 $as_echo "$as_me: program exited with status $ac_status" >&5
1960 $as_echo "$as_me: failed program was:" >&5
1961sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1962
57aa50d4
TT
1963 ac_retval=$ac_status
1964fi
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1967 as_fn_set_status $ac_retval
b0cacab0 1968
57aa50d4 1969} # ac_fn_c_try_run
b0cacab0 1970
93613951
TT
1971# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1972# -------------------------------------------------------
1973# Tests whether HEADER exists and can be compiled using the include files in
1974# INCLUDES, setting the cache variable VAR accordingly.
1975ac_fn_c_check_header_compile ()
1976{
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979$as_echo_n "checking for $2... " >&6; }
1980if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1982else
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984/* end confdefs.h. */
1985$4
1986#include <$2>
1987_ACEOF
1988if ac_fn_c_try_compile "$LINENO"; then :
1989 eval "$3=yes"
1990else
1991 eval "$3=no"
1992fi
1993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994fi
1995eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997$as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000} # ac_fn_c_check_header_compile
2001
57aa50d4
TT
2002# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2003# -------------------------------------------
2004# Tests whether TYPE exists after having included INCLUDES, setting cache
2005# variable VAR accordingly.
2006ac_fn_c_check_type ()
2007{
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010$as_echo_n "checking for $2... " >&6; }
d6a4bcb5 2011if eval \${$3+:} false; then :
57aa50d4 2012 $as_echo_n "(cached) " >&6
e1052144 2013else
57aa50d4
TT
2014 eval "$3=no"
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$4
2018int
2019main ()
2020{
2021if (sizeof ($2))
2022 return 0;
2023 ;
2024 return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h. */
2030$4
2031int
2032main ()
2033{
2034if (sizeof (($2)))
2035 return 0;
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f 2041
50e1e10f 2042else
57aa50d4 2043 eval "$3=yes"
b0cacab0 2044fi
57aa50d4 2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 2046fi
57aa50d4
TT
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048fi
2049eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
d6a4bcb5 2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
50e1e10f 2053
57aa50d4 2054} # ac_fn_c_check_type
b0cacab0 2055
57aa50d4
TT
2056# ac_fn_c_check_func LINENO FUNC VAR
2057# ----------------------------------
2058# Tests whether FUNC exists, setting the cache variable VAR accordingly
2059ac_fn_c_check_func ()
2060{
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063$as_echo_n "checking for $2... " >&6; }
d6a4bcb5 2064if eval \${$3+:} false; then :
57aa50d4
TT
2065 $as_echo_n "(cached) " >&6
2066else
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068/* end confdefs.h. */
2069/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2071#define $2 innocuous_$2
b0cacab0 2072
57aa50d4
TT
2073/* System header to define __stub macros and hopefully few prototypes,
2074 which can conflict with char $2 (); below.
2075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2076 <limits.h> exists even on freestanding compilers. */
b0cacab0 2077
57aa50d4
TT
2078#ifdef __STDC__
2079# include <limits.h>
2080#else
2081# include <assert.h>
2082#endif
a04eba3f 2083
57aa50d4 2084#undef $2
07a0db15 2085
57aa50d4
TT
2086/* Override any GCC internal prototype to avoid an error.
2087 Use char because int might match the return type of a GCC
2088 builtin and then its argument prototype would still apply. */
2089#ifdef __cplusplus
2090extern "C"
2091#endif
2092char $2 ();
2093/* The GNU C library defines this for functions which it implements
2094 to always fail with ENOSYS. Some functions are actually named
2095 something starting with __ and the normal name is an alias. */
2096#if defined __stub_$2 || defined __stub___$2
2097choke me
2098#endif
74becf3c 2099
57aa50d4
TT
2100int
2101main ()
2102{
2103return $2 ();
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_link "$LINENO"; then :
2109 eval "$3=yes"
2110else
2111 eval "$3=no"
2112fi
2113rm -f core conftest.err conftest.$ac_objext \
2114 conftest$ac_exeext conftest.$ac_ext
2115fi
2116eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118$as_echo "$ac_res" >&6; }
d6a4bcb5 2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
93636bde 2120
57aa50d4 2121} # ac_fn_c_check_func
93636bde 2122
93613951
TT
2123# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2124# ---------------------------------------------
2125# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
d1154eb4 2126# accordingly.
93613951 2127ac_fn_c_check_decl ()
d1154eb4
TT
2128{
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
93613951
TT
2130 as_decl_name=`echo $2|sed 's/ *(.*//'`
2131 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2133$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6a4bcb5 2134if eval \${$3+:} false; then :
d1154eb4 2135 $as_echo_n "(cached) " >&6
d1154eb4 2136else
93613951 2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
2138/* end confdefs.h. */
2139$4
93613951
TT
2140int
2141main ()
2142{
2143#ifndef $as_decl_name
2144#ifdef __cplusplus
2145 (void) $as_decl_use;
2146#else
2147 (void) $as_decl_name;
2148#endif
2149#endif
2150
2151 ;
2152 return 0;
2153}
d1154eb4
TT
2154_ACEOF
2155if ac_fn_c_try_compile "$LINENO"; then :
93613951 2156 eval "$3=yes"
d1154eb4 2157else
93613951 2158 eval "$3=no"
d1154eb4
TT
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4
TT
2161fi
2162eval ac_res=\$$3
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164$as_echo "$ac_res" >&6; }
d6a4bcb5 2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1154eb4 2166
93613951 2167} # ac_fn_c_check_decl
d1154eb4 2168
57aa50d4
TT
2169# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2170# --------------------------------------------
2171# Tries to find the compile-time value of EXPR in a program that includes
2172# INCLUDES, setting VAR accordingly. Returns whether the value could be
2173# computed
2174ac_fn_c_compute_int ()
2175{
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 if test "$cross_compiling" = yes; then
2178 # Depending upon the size, compute the lo and hi bounds.
2179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182int
2183main ()
2184{
2185static int test_array [1 - 2 * !(($2) >= 0)];
d6a4bcb5
TB
2186test_array [0] = 0;
2187return test_array [0];
93636bde 2188
57aa50d4
TT
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_lo=0 ac_mid=0
2195 while :; do
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h. */
2198$4
2199int
2200main ()
2201{
2202static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2203test_array [0] = 0;
2204return test_array [0];
93636bde 2205
57aa50d4
TT
2206 ;
2207 return 0;
2208}
2209_ACEOF
2210if ac_fn_c_try_compile "$LINENO"; then :
2211 ac_hi=$ac_mid; break
2212else
2213 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2214 if test $ac_lo -le $ac_mid; then
2215 ac_lo= ac_hi=
2216 break
2217 fi
2218 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
b0cacab0 2219fi
57aa50d4
TT
2220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 done
2222else
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h. */
2225$4
2226int
2227main ()
2228{
2229static int test_array [1 - 2 * !(($2) < 0)];
d6a4bcb5
TB
2230test_array [0] = 0;
2231return test_array [0];
e1052144 2232
57aa50d4
TT
2233 ;
2234 return 0;
2235}
2236_ACEOF
2237if ac_fn_c_try_compile "$LINENO"; then :
2238 ac_hi=-1 ac_mid=-1
2239 while :; do
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241/* end confdefs.h. */
2242$4
2243int
2244main ()
2245{
2246static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d6a4bcb5
TB
2247test_array [0] = 0;
2248return test_array [0];
93636bde 2249
57aa50d4
TT
2250 ;
2251 return 0;
2252}
2253_ACEOF
2254if ac_fn_c_try_compile "$LINENO"; then :
2255 ac_lo=$ac_mid; break
93636bde 2256else
57aa50d4
TT
2257 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2258 if test $ac_mid -le $ac_hi; then
2259 ac_lo= ac_hi=
2260 break
2261 fi
2262 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
93636bde 2263fi
57aa50d4
TT
2264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 done
2266else
2267 ac_lo= ac_hi=
2268fi
2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270fi
2271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272# Binary search between lo and hi bounds.
2273while test "x$ac_lo" != "x$ac_hi"; do
2274 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h. */
2277$4
2278int
2279main ()
2280{
2281static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2282test_array [0] = 0;
2283return test_array [0];
93636bde 2284
57aa50d4
TT
2285 ;
2286 return 0;
2287}
2288_ACEOF
2289if ac_fn_c_try_compile "$LINENO"; then :
2290 ac_hi=$ac_mid
2291else
2292 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2293fi
2294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295done
2296case $ac_lo in #((
2297?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2298'') ac_retval=1 ;;
927566a3 2299esac
57aa50d4
TT
2300 else
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302/* end confdefs.h. */
2303$4
2304static long int longval () { return $2; }
2305static unsigned long int ulongval () { return $2; }
2306#include <stdio.h>
2307#include <stdlib.h>
2308int
2309main ()
2310{
927566a3 2311
57aa50d4
TT
2312 FILE *f = fopen ("conftest.val", "w");
2313 if (! f)
2314 return 1;
2315 if (($2) < 0)
2316 {
2317 long int i = longval ();
2318 if (i != ($2))
2319 return 1;
2320 fprintf (f, "%ld", i);
2321 }
2322 else
2323 {
2324 unsigned long int i = ulongval ();
2325 if (i != ($2))
2326 return 1;
2327 fprintf (f, "%lu", i);
2328 }
2329 /* Do not output a trailing newline, as this causes \r\n confusion
2330 on some platforms. */
2331 return ferror (f) || fclose (f) != 0;
93636bde 2332
57aa50d4
TT
2333 ;
2334 return 0;
2335}
2336_ACEOF
2337if ac_fn_c_try_run "$LINENO"; then :
2338 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2339else
2340 ac_retval=1
2341fi
2342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2343 conftest.$ac_objext conftest.beam conftest.$ac_ext
2344rm -f conftest.val
93636bde 2345
57aa50d4 2346 fi
d6a4bcb5 2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 2348 as_fn_set_status $ac_retval
927566a3 2349
57aa50d4 2350} # ac_fn_c_compute_int
b0cacab0 2351
57aa50d4
TT
2352# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2353# ----------------------------------------------------
2354# Tries to find if the field MEMBER exists in type AGGR, after including
2355# INCLUDES, setting cache variable VAR accordingly.
2356ac_fn_c_check_member ()
2357{
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2360$as_echo_n "checking for $2.$3... " >&6; }
d6a4bcb5 2361if eval \${$4+:} false; then :
39fd3d4f 2362 $as_echo_n "(cached) " >&6
b0cacab0 2363else
57aa50d4
TT
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365/* end confdefs.h. */
2366$5
2367int
2368main ()
2369{
2370static $2 ac_aggr;
2371if (ac_aggr.$3)
2372return 0;
2373 ;
2374 return 0;
2375}
2376_ACEOF
2377if ac_fn_c_try_compile "$LINENO"; then :
2378 eval "$4=yes"
2379else
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381/* end confdefs.h. */
2382$5
2383int
2384main ()
2385{
2386static $2 ac_aggr;
2387if (sizeof 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 eval "$4=no"
b0cacab0 2397fi
57aa50d4
TT
2398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399fi
2400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401fi
2402eval ac_res=\$$4
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404$as_echo "$ac_res" >&6; }
d6a4bcb5 2405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e1052144 2406
57aa50d4 2407} # ac_fn_c_check_member
57aa50d4
TT
2408cat >config.log <<_ACEOF
2409This file contains any messages produced by compilers while
2410running configure, to aid debugging if configure makes a mistake.
93636bde 2411
57aa50d4 2412It was created by $as_me, which was
d6a4bcb5 2413generated by GNU Autoconf 2.69. Invocation command line was
07a0db15 2414
57aa50d4 2415 $ $0 $@
e1052144 2416
57aa50d4
TT
2417_ACEOF
2418exec 5>>config.log
2419{
2420cat <<_ASUNAME
2421## --------- ##
2422## Platform. ##
2423## --------- ##
0b5b9f90 2424
57aa50d4
TT
2425hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2426uname -m = `(uname -m) 2>/dev/null || echo unknown`
2427uname -r = `(uname -r) 2>/dev/null || echo unknown`
2428uname -s = `(uname -s) 2>/dev/null || echo unknown`
2429uname -v = `(uname -v) 2>/dev/null || echo unknown`
0b5b9f90 2430
57aa50d4
TT
2431/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2432/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
0b5b9f90 2433
57aa50d4
TT
2434/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2435/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2436/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2437/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2438/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2439/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2440/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
0b5b9f90 2441
57aa50d4 2442_ASUNAME
b0cacab0 2443
b0cacab0
TT
2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
57aa50d4
TT
2449 $as_echo "PATH: $as_dir"
2450 done
e1052144 2451IFS=$as_save_IFS
b0cacab0 2452
57aa50d4 2453} >&5
74becf3c 2454
57aa50d4 2455cat >&5 <<_ACEOF
e1052144 2456
b0cacab0 2457
57aa50d4
TT
2458## ----------- ##
2459## Core tests. ##
2460## ----------- ##
b0cacab0 2461
57aa50d4 2462_ACEOF
b0cacab0 2463
57aa50d4
TT
2464
2465# Keep a trace of the command line.
2466# Strip out --no-create and --no-recursion so they do not pile up.
2467# Strip out --silent because we don't want to record it for future runs.
2468# Also quote any args containing shell meta-characters.
2469# Make two passes to allow for proper duplicate-argument suppression.
2470ac_configure_args=
2471ac_configure_args0=
2472ac_configure_args1=
2473ac_must_keep_next=false
2474for ac_pass in 1 2
b0cacab0 2475do
57aa50d4
TT
2476 for ac_arg
2477 do
2478 case $ac_arg in
2479 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2481 | -silent | --silent | --silen | --sile | --sil)
2482 continue ;;
2483 *\'*)
2484 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 esac
2486 case $ac_pass in
2487 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2488 2)
2489 as_fn_append ac_configure_args1 " '$ac_arg'"
2490 if test $ac_must_keep_next = true; then
2491 ac_must_keep_next=false # Got value, back to normal.
2492 else
2493 case $ac_arg in
2494 *=* | --config-cache | -C | -disable-* | --disable-* \
2495 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2496 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2497 | -with-* | --with-* | -without-* | --without-* | --x)
2498 case "$ac_configure_args0 " in
2499 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2500 esac
2501 ;;
2502 -* ) ac_must_keep_next=true ;;
2503 esac
2504 fi
2505 as_fn_append ac_configure_args " '$ac_arg'"
2506 ;;
2507 esac
2508 done
b0cacab0 2509done
57aa50d4
TT
2510{ ac_configure_args0=; unset ac_configure_args0;}
2511{ ac_configure_args1=; unset ac_configure_args1;}
2512
2513# When interrupted or exit'd, cleanup temporary files, and complete
2514# config.log. We remove comments because anyway the quotes in there
2515# would cause problems or look ugly.
2516# WARNING: Use '\'' to represent an apostrophe within the trap.
2517# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2518trap 'exit_status=$?
2519 # Save into config.log some information that might help in debugging.
2520 {
2521 echo
2522
d6a4bcb5 2523 $as_echo "## ---------------- ##
57aa50d4 2524## Cache variables. ##
d6a4bcb5 2525## ---------------- ##"
57aa50d4
TT
2526 echo
2527 # The following way of writing the cache mishandles newlines in values,
2528(
2529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2530 eval ac_val=\$$ac_var
2531 case $ac_val in #(
2532 *${as_nl}*)
2533 case $ac_var in #(
2534 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2535$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2536 esac
2537 case $ac_var in #(
2538 _ | IFS | as_nl) ;; #(
2539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2540 *) { eval $ac_var=; unset $ac_var;} ;;
2541 esac ;;
2542 esac
2543 done
2544 (set) 2>&1 |
2545 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2546 *${as_nl}ac_space=\ *)
2547 sed -n \
2548 "s/'\''/'\''\\\\'\'''\''/g;
2549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2550 ;; #(
2551 *)
2552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2553 ;;
2554 esac |
2555 sort
2556)
2557 echo
2558
d6a4bcb5 2559 $as_echo "## ----------------- ##
57aa50d4 2560## Output variables. ##
d6a4bcb5 2561## ----------------- ##"
57aa50d4
TT
2562 echo
2563 for ac_var in $ac_subst_vars
2564 do
2565 eval ac_val=\$$ac_var
2566 case $ac_val in
2567 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2568 esac
2569 $as_echo "$ac_var='\''$ac_val'\''"
2570 done | sort
2571 echo
2572
2573 if test -n "$ac_subst_files"; then
d6a4bcb5 2574 $as_echo "## ------------------- ##
57aa50d4 2575## File substitutions. ##
d6a4bcb5 2576## ------------------- ##"
57aa50d4
TT
2577 echo
2578 for ac_var in $ac_subst_files
2579 do
2580 eval ac_val=\$$ac_var
2581 case $ac_val in
2582 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2583 esac
2584 $as_echo "$ac_var='\''$ac_val'\''"
2585 done | sort
2586 echo
2587 fi
2588
2589 if test -s confdefs.h; then
d6a4bcb5 2590 $as_echo "## ----------- ##
57aa50d4 2591## confdefs.h. ##
d6a4bcb5 2592## ----------- ##"
57aa50d4
TT
2593 echo
2594 cat confdefs.h
2595 echo
2596 fi
2597 test "$ac_signal" != 0 &&
2598 $as_echo "$as_me: caught signal $ac_signal"
2599 $as_echo "$as_me: exit $exit_status"
2600 } >&5
2601 rm -f core *.core core.conftest.* &&
2602 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2603 exit $exit_status
2604' 0
2605for ac_signal in 1 2 13 15; do
2606 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b0cacab0 2607done
57aa50d4 2608ac_signal=0
b0cacab0 2609
57aa50d4
TT
2610# confdefs.h avoids OS command line length limits that DEFS can exceed.
2611rm -f -r conftest* confdefs.h
b0cacab0 2612
57aa50d4 2613$as_echo "/* confdefs.h */" > confdefs.h
73ae2d4a 2614
57aa50d4
TT
2615# Predefined preprocessor variables.
2616
2617cat >>confdefs.h <<_ACEOF
2618#define PACKAGE_NAME "$PACKAGE_NAME"
2619_ACEOF
2620
2621cat >>confdefs.h <<_ACEOF
2622#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2623_ACEOF
2624
2625cat >>confdefs.h <<_ACEOF
2626#define PACKAGE_VERSION "$PACKAGE_VERSION"
2627_ACEOF
2628
2629cat >>confdefs.h <<_ACEOF
2630#define PACKAGE_STRING "$PACKAGE_STRING"
2631_ACEOF
2632
2633cat >>confdefs.h <<_ACEOF
2634#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2635_ACEOF
2636
2637cat >>confdefs.h <<_ACEOF
2638#define PACKAGE_URL "$PACKAGE_URL"
2639_ACEOF
2640
2641
2642# Let the site file select an alternate cache file if it wants to.
2643# Prefer an explicitly selected file to automatically selected ones.
2644ac_site_file1=NONE
2645ac_site_file2=NONE
2646if test -n "$CONFIG_SITE"; then
d6a4bcb5
TB
2647 # We do not want a PATH search for config.site.
2648 case $CONFIG_SITE in #((
2649 -*) ac_site_file1=./$CONFIG_SITE;;
2650 */*) ac_site_file1=$CONFIG_SITE;;
2651 *) ac_site_file1=./$CONFIG_SITE;;
2652 esac
57aa50d4
TT
2653elif test "x$prefix" != xNONE; then
2654 ac_site_file1=$prefix/share/config.site
2655 ac_site_file2=$prefix/etc/config.site
73ae2d4a 2656else
57aa50d4
TT
2657 ac_site_file1=$ac_default_prefix/share/config.site
2658 ac_site_file2=$ac_default_prefix/etc/config.site
2659fi
2660for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b0cacab0 2661do
57aa50d4 2662 test "x$ac_site_file" = xNONE && continue
61ef2474 2663 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
57aa50d4
TT
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2665$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2666 sed 's/^/| /' "$ac_site_file" >&5
d6a4bcb5
TB
2667 . "$ac_site_file" \
2668 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670as_fn_error $? "failed to load site script $ac_site_file
2671See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
2672 fi
2673done
b0cacab0 2674
57aa50d4 2675if test -r "$cache_file"; then
61ef2474
TT
2676 # Some versions of bash will fail to source /dev/null (special files
2677 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2678 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
57aa50d4
TT
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2680$as_echo "$as_me: loading cache $cache_file" >&6;}
2681 case $cache_file in
2682 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2683 *) . "./$cache_file";;
2684 esac
73ae2d4a 2685 fi
57aa50d4
TT
2686else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2688$as_echo "$as_me: creating cache $cache_file" >&6;}
2689 >$cache_file
73ae2d4a 2690fi
57aa50d4 2691
93613951 2692gt_needs="$gt_needs "
61ef2474
TT
2693as_fn_append ac_header_list " stdlib.h"
2694as_fn_append ac_header_list " unistd.h"
2695as_fn_append ac_header_list " sys/param.h"
93613951 2696as_fn_append ac_func_list " symlink"
57aa50d4
TT
2697# Check that the precious variables saved in the cache have kept the same
2698# value.
2699ac_cache_corrupted=false
2700for ac_var in $ac_precious_vars; do
2701 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2702 eval ac_new_set=\$ac_env_${ac_var}_set
2703 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2704 eval ac_new_val=\$ac_env_${ac_var}_value
2705 case $ac_old_set,$ac_new_set in
2706 set,)
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2708$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2709 ac_cache_corrupted=: ;;
2710 ,set)
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2712$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2713 ac_cache_corrupted=: ;;
2714 ,);;
2715 *)
2716 if test "x$ac_old_val" != "x$ac_new_val"; then
2717 # differences in whitespace do not lead to failure.
2718 ac_old_val_w=`echo x $ac_old_val`
2719 ac_new_val_w=`echo x $ac_new_val`
2720 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2722$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2723 ac_cache_corrupted=:
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2726$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2727 eval $ac_var=\$ac_old_val
2728 fi
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2730$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2732$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2733 fi;;
2734 esac
2735 # Pass precious variables to config.status.
2736 if test "$ac_new_set" = set; then
2737 case $ac_new_val in
2738 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2739 *) ac_arg=$ac_var=$ac_new_val ;;
2740 esac
2741 case " $ac_configure_args " in
2742 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2743 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2744 esac
2745 fi
2746done
2747if $ac_cache_corrupted; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2751$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d6a4bcb5 2752 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
73ae2d4a 2753fi
57aa50d4
TT
2754## -------------------- ##
2755## Main body of script. ##
2756## -------------------- ##
2757
2758ac_ext=c
2759ac_cpp='$CPP $CPPFLAGS'
2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764
2765
2766ac_aux_dir=
2767for ac_dir in config "$srcdir"/config; do
d6a4bcb5
TB
2768 if test -f "$ac_dir/install-sh"; then
2769 ac_aux_dir=$ac_dir
2770 ac_install_sh="$ac_aux_dir/install-sh -c"
2771 break
2772 elif test -f "$ac_dir/install.sh"; then
2773 ac_aux_dir=$ac_dir
2774 ac_install_sh="$ac_aux_dir/install.sh -c"
2775 break
2776 elif test -f "$ac_dir/shtool"; then
2777 ac_aux_dir=$ac_dir
2778 ac_install_sh="$ac_aux_dir/shtool install -c"
2779 break
2780 fi
57aa50d4
TT
2781done
2782if test -z "$ac_aux_dir"; then
d6a4bcb5 2783 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
73ae2d4a 2784fi
57aa50d4
TT
2785
2786# These three variables are undocumented and unsupported,
2787# and are intended to be withdrawn in a future Autoconf release.
2788# They can cause serious problems if a builder's source tree is in a directory
2789# whose full name contains unusual characters.
2790ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2791ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2792ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2793
2794
d1154eb4
TT
2795ac_config_headers="$ac_config_headers lib/config.h"
2796
2797
57aa50d4
TT
2798MCONFIG=./MCONFIG
2799
2800BINARY_TYPE=bin
2801E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2802 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
5ce368f0
DW
2803E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2804 | tr \" " " | awk '{print $1}'`
2805E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2806MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2807YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
57aa50d4
TT
2808
2809if expr $YEAR ">" 1900 > /dev/null ; then
2810 E2FSPROGS_YEAR=$YEAR
2811elif expr $YEAR ">" 90 >/dev/null ; then
2812 E2FSPROGS_YEAR=19$YEAR
73ae2d4a 2813else
57aa50d4
TT
2814 E2FSPROGS_YEAR=20$YEAR
2815fi
2816
2817case $MONTH in
2818Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2819Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2820Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2821Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2822May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2823Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2824Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2825Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2826Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2827Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2828Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2829Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2830*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2831$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2832esac
2833
2834base_ver=`echo $E2FSPROGS_VERSION | \
2835 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2836
2837date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2838
2839case $E2FSPROGS_VERSION in
2840*-WIP|pre-*)
2ab53829 2841 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
57aa50d4
TT
2842 ;;
2843*)
2844 E2FSPROGS_PKGVER="$base_ver"
2845 ;;
2846esac
2847
2848unset DATE MONTH YEAR base_ver pre_vers date_spec
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2850$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2852$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2853
2854
2855
2856
2857
5ce368f0 2858
6c59a665
TT
2859WITH_DIET_LIBC=
2860
2861# Check whether --with-diet-libc was given.
2862if test "${with_diet_libc+set}" = set; then :
2863 withval=$with_diet_libc; CC="diet cc -nostdinc"
2864WITH_DIET_LIBC=yes
2865if test -z "$LIBS"
2866then
2867 LIBS="-lcompat"
2868else
2869 LIBS="$LIBS -lcompat"
2870fi
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2872$as_echo "CC=$CC" >&6; }
2873fi
57aa50d4
TT
2874# Make sure we can run config.sub.
2875$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d6a4bcb5 2876 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
57aa50d4
TT
2877
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2879$as_echo_n "checking build system type... " >&6; }
d6a4bcb5 2880if ${ac_cv_build+:} false; then :
57aa50d4
TT
2881 $as_echo_n "(cached) " >&6
2882else
2883 ac_build_alias=$build_alias
2884test "x$ac_build_alias" = x &&
2885 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2886test "x$ac_build_alias" = x &&
d6a4bcb5 2887 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
57aa50d4 2888ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d6a4bcb5 2889 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
57aa50d4 2890
73ae2d4a 2891fi
57aa50d4
TT
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2893$as_echo "$ac_cv_build" >&6; }
2894case $ac_cv_build in
2895*-*-*) ;;
d6a4bcb5 2896*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
57aa50d4
TT
2897esac
2898build=$ac_cv_build
2899ac_save_IFS=$IFS; IFS='-'
2900set x $ac_cv_build
2901shift
2902build_cpu=$1
2903build_vendor=$2
2904shift; shift
2905# Remember, the first character of IFS is used to create $*,
2906# except with old shells:
2907build_os=$*
2908IFS=$ac_save_IFS
2909case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
73ae2d4a 2910
e1052144 2911
57aa50d4
TT
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2913$as_echo_n "checking host system type... " >&6; }
d6a4bcb5 2914if ${ac_cv_host+:} false; then :
57aa50d4
TT
2915 $as_echo_n "(cached) " >&6
2916else
2917 if test "x$host_alias" = x; then
2918 ac_cv_host=$ac_cv_build
2919else
2920 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d6a4bcb5 2921 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b0cacab0 2922fi
57aa50d4
TT
2923
2924fi
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2926$as_echo "$ac_cv_host" >&6; }
2927case $ac_cv_host in
2928*-*-*) ;;
d6a4bcb5 2929*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
57aa50d4
TT
2930esac
2931host=$ac_cv_host
2932ac_save_IFS=$IFS; IFS='-'
2933set x $ac_cv_host
2934shift
2935host_cpu=$1
2936host_vendor=$2
2937shift; shift
2938# Remember, the first character of IFS is used to create $*,
2939# except with old shells:
2940host_os=$*
2941IFS=$ac_save_IFS
2942case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2943
2944
2945DLOPEN_LIB=''
2946ac_ext=c
2947ac_cpp='$CPP $CPPFLAGS'
2948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951if test -n "$ac_tool_prefix"; then
2952 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2953set dummy ${ac_tool_prefix}gcc; ac_word=$2
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2955$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2956if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 2957 $as_echo_n "(cached) " >&6
73ae2d4a
TT
2958else
2959 if test -n "$CC"; then
2960 ac_cv_prog_CC="$CC" # Let the user override the test.
2961else
b0cacab0
TT
2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
57aa50d4 2967 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 2968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2969 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
2971 break 2
2972 fi
2973done
57aa50d4 2974 done
e1052144 2975IFS=$as_save_IFS
b0cacab0 2976
73ae2d4a
TT
2977fi
2978fi
b0cacab0 2979CC=$ac_cv_prog_CC
73ae2d4a 2980if test -n "$CC"; then
57aa50d4 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
39fd3d4f 2982$as_echo "$CC" >&6; }
73ae2d4a 2983else
57aa50d4 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 2985$as_echo "no" >&6; }
73ae2d4a 2986fi
b0cacab0 2987
e1052144 2988
b0cacab0 2989fi
57aa50d4 2990if test -z "$ac_cv_prog_CC"; then
b0cacab0 2991 ac_ct_CC=$CC
57aa50d4
TT
2992 # Extract the first word of "gcc", so it can be a program name with args.
2993set dummy gcc; ac_word=$2
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2995$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2996if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 2997 $as_echo_n "(cached) " >&6
b0cacab0
TT
2998else
2999 if test -n "$ac_ct_CC"; then
3000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3001else
3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003for as_dir in $PATH
3004do
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
57aa50d4 3007 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3009 ac_cv_prog_ac_ct_CC="gcc"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0 3011 break 2
93636bde 3012 fi
b0cacab0 3013done
57aa50d4 3014 done
e1052144 3015IFS=$as_save_IFS
b0cacab0
TT
3016
3017fi
3018fi
3019ac_ct_CC=$ac_cv_prog_ac_ct_CC
3020if test -n "$ac_ct_CC"; then
57aa50d4 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
39fd3d4f 3022$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3023else
57aa50d4 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 3025$as_echo "no" >&6; }
07a0db15 3026fi
73ae2d4a 3027
e1052144
TT
3028 if test "x$ac_ct_CC" = x; then
3029 CC=""
3030 else
3031 case $cross_compiling:$ac_tool_warned in
3032yes:)
57aa50d4 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39fd3d4f 3034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
e1052144
TT
3035ac_tool_warned=yes ;;
3036esac
3037 CC=$ac_ct_CC
3038 fi
57aa50d4
TT
3039else
3040 CC="$ac_cv_prog_CC"
b0cacab0
TT
3041fi
3042
57aa50d4
TT
3043if test -z "$CC"; then
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3046set dummy ${ac_tool_prefix}cc; ac_word=$2
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3049if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3050 $as_echo_n "(cached) " >&6
3051else
3052 if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3062 ac_cv_prog_CC="${ac_tool_prefix}cc"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066done
3067 done
3068IFS=$as_save_IFS
3069
3070fi
3071fi
3072CC=$ac_cv_prog_CC
3073if test -n "$CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075$as_echo "$CC" >&6; }
3076else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; }
3079fi
3080
3081
3082 fi
3083fi
3084if test -z "$CC"; then
3085 # Extract the first word of "cc", so it can be a program name with args.
3086set dummy cc; ac_word=$2
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3089if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3090 $as_echo_n "(cached) " >&6
3091else
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC="$CC" # Let the user override the test.
3094else
3095 ac_prog_rejected=no
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3103 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3104 ac_prog_rejected=yes
3105 continue
3106 fi
3107 ac_cv_prog_CC="cc"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
3110 fi
3111done
3112 done
3113IFS=$as_save_IFS
3114
3115if test $ac_prog_rejected = yes; then
3116 # We found a bogon in the path, so make sure we never use it.
3117 set dummy $ac_cv_prog_CC
3118 shift
3119 if test $# != 0; then
3120 # We chose a different compiler from the bogus one.
3121 # However, it has the same basename, so the bogon will be chosen
3122 # first if we set CC to just the basename; use the full file name.
3123 shift
3124 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3125 fi
3126fi
3127fi
3128fi
3129CC=$ac_cv_prog_CC
3130if test -n "$CC"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132$as_echo "$CC" >&6; }
3133else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135$as_echo "no" >&6; }
3136fi
3137
3138
3139fi
3140if test -z "$CC"; then
3141 if test -n "$ac_tool_prefix"; then
3142 for ac_prog in cl.exe
3143 do
3144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3148if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3149 $as_echo_n "(cached) " >&6
3150else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3161 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3164 fi
3165done
3166 done
3167IFS=$as_save_IFS
3168
3169fi
3170fi
3171CC=$ac_cv_prog_CC
3172if test -n "$CC"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174$as_echo "$CC" >&6; }
3175else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177$as_echo "no" >&6; }
3178fi
3179
3180
3181 test -n "$CC" && break
3182 done
3183fi
3184if test -z "$CC"; then
3185 ac_ct_CC=$CC
3186 for ac_prog in cl.exe
3187do
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189set dummy $ac_prog; ac_word=$2
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3192if ${ac_cv_prog_ac_ct_CC+:} false; then :
57aa50d4
TT
3193 $as_echo_n "(cached) " >&6
3194else
3195 if test -n "$ac_ct_CC"; then
3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197else
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3205 ac_cv_prog_ac_ct_CC="$ac_prog"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209done
3210 done
3211IFS=$as_save_IFS
3212
3213fi
3214fi
3215ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216if test -n "$ac_ct_CC"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3218$as_echo "$ac_ct_CC" >&6; }
3219else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221$as_echo "no" >&6; }
3222fi
3223
3224
3225 test -n "$ac_ct_CC" && break
3226done
3227
3228 if test "x$ac_ct_CC" = x; then
3229 CC=""
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232yes:)
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235ac_tool_warned=yes ;;
3236esac
3237 CC=$ac_ct_CC
3238 fi
3239fi
3240
3241fi
3242
3243
3244test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3246as_fn_error $? "no acceptable C compiler found in \$PATH
3247See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
3248
3249# Provide some information about the compiler.
57aa50d4 3250$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
39fd3d4f
SJR
3251set X $ac_compile
3252ac_compiler=$2
57aa50d4
TT
3253for ac_option in --version -v -V -qversion; do
3254 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
3255case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
57aa50d4
TT
3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260$as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 3262 ac_status=$?
57aa50d4
TT
3263 if test -s conftest.err; then
3264 sed '10a\
3265... rest of stderr output deleted ...
3266 10q' conftest.err >conftest.er1
3267 cat conftest.er1 >&5
57aa50d4 3268 fi
61ef2474 3269 rm -f conftest.er1 conftest.err
57aa50d4
TT
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }
3272done
b0cacab0 3273
57aa50d4 3274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3275/* end confdefs.h. */
61ef2474 3276
b0cacab0
TT
3277int
3278main ()
3279{
3280
3281 ;
3282 return 0;
3283}
3284_ACEOF
3285ac_clean_files_save=$ac_clean_files
61ef2474 3286ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b0cacab0
TT
3287# Try to create an executable without -o first, disregard a.out.
3288# It will help us diagnose broken compilers, and finding out an intuition
3289# of exeext.
61ef2474
TT
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3291$as_echo_n "checking whether the C compiler works... " >&6; }
39fd3d4f
SJR
3292ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3293
3294# The possible output files:
3295ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3296
e1052144
TT
3297ac_rmfiles=
3298for ac_file in $ac_files
3299do
3300 case $ac_file in
39fd3d4f 3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
e1052144
TT
3302 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3303 esac
3304done
3305rm -f $ac_rmfiles
3306
57aa50d4 3307if { { ac_try="$ac_link_default"
e1052144
TT
3308case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311esac
57aa50d4
TT
3312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313$as_echo "$ac_try_echo"; } >&5
e1052144 3314 (eval "$ac_link_default") 2>&5
b0cacab0 3315 ac_status=$?
57aa50d4
TT
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
e1052144
TT
3318 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3319# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3320# in a Makefile. We should not override ac_cv_exeext if it was cached,
3321# so that the user can short-circuit this test for compilers unknown to
3322# Autoconf.
29a5deed 3323for ac_file in $ac_files ''
b0cacab0
TT
3324do
3325 test -f "$ac_file" || continue
3326 case $ac_file in
39fd3d4f 3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b0cacab0
TT
3328 ;;
3329 [ab].out )
3330 # We found the default executable, but exeext='' is most
3331 # certainly right.
3332 break;;
3333 *.* )
57aa50d4 3334 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
e1052144
TT
3335 then :; else
3336 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3337 fi
3338 # We set ac_cv_exeext here because the later test for it is not
3339 # safe: cross compilers may not add the suffix if given an `-o'
3340 # argument, so we may need to know it at that point already.
3341 # Even if this section looks crufty: it has the advantage of
3342 # actually working.
b0cacab0
TT
3343 break;;
3344 * )
3345 break;;
3346 esac
3347done
e1052144
TT
3348test "$ac_cv_exeext" = no && ac_cv_exeext=
3349
b0cacab0 3350else
29a5deed
TT
3351 ac_file=''
3352fi
57aa50d4 3353if test -z "$ac_file"; then :
61ef2474
TT
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355$as_echo "no" >&6; }
3356$as_echo "$as_me: failed program was:" >&5
b0cacab0
TT
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
57aa50d4 3359{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3361as_fn_error 77 "C compiler cannot create executables
3362See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3363else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365$as_echo "yes" >&6; }
b0cacab0 3366fi
61ef2474
TT
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3368$as_echo_n "checking for C compiler default output file name... " >&6; }
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3370$as_echo "$ac_file" >&6; }
b0cacab0 3371ac_exeext=$ac_cv_exeext
b0cacab0 3372
61ef2474 3373rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b0cacab0 3374ac_clean_files=$ac_clean_files_save
57aa50d4 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
39fd3d4f 3376$as_echo_n "checking for suffix of executables... " >&6; }
57aa50d4 3377if { { ac_try="$ac_link"
e1052144
TT
3378case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381esac
57aa50d4
TT
3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383$as_echo "$ac_try_echo"; } >&5
e1052144 3384 (eval "$ac_link") 2>&5
b0cacab0 3385 ac_status=$?
57aa50d4
TT
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; then :
b0cacab0
TT
3388 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3389# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3390# work properly (i.e., refer to `conftest.exe'), while it won't with
3391# `rm'.
3392for ac_file in conftest.exe conftest conftest.*; do
3393 test -f "$ac_file" || continue
3394 case $ac_file in
39fd3d4f 3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b0cacab0 3396 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b0cacab0
TT
3397 break;;
3398 * ) break;;
3399 esac
3400done
73ae2d4a 3401else
57aa50d4 3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3404as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3405See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3406fi
61ef2474 3407rm -f conftest conftest$ac_cv_exeext
57aa50d4 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
39fd3d4f 3409$as_echo "$ac_cv_exeext" >&6; }
73ae2d4a 3410
b0cacab0
TT
3411rm -f conftest.$ac_ext
3412EXEEXT=$ac_cv_exeext
3413ac_exeext=$EXEEXT
61ef2474
TT
3414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415/* end confdefs.h. */
3416#include <stdio.h>
3417int
3418main ()
3419{
3420FILE *f = fopen ("conftest.out", "w");
3421 return ferror (f) || fclose (f) != 0;
3422
3423 ;
3424 return 0;
3425}
3426_ACEOF
3427ac_clean_files="$ac_clean_files conftest.out"
3428# Check that the compiler produces executables we can run. If not, either
3429# the compiler is broken, or we cross compile.
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3431$as_echo_n "checking whether we are cross compiling... " >&6; }
3432if test "$cross_compiling" != yes; then
3433 { { ac_try="$ac_link"
3434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_link") 2>&5
3441 ac_status=$?
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }
3444 if { ac_try='./conftest$ac_cv_exeext'
3445 { { case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
3449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450$as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_try") 2>&5
3452 ac_status=$?
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }; }; then
3455 cross_compiling=no
3456 else
3457 if test "$cross_compiling" = maybe; then
3458 cross_compiling=yes
3459 else
3460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5 3462as_fn_error $? "cannot run C compiled programs.
61ef2474 3463If you meant to cross compile, use \`--host'.
d6a4bcb5 3464See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3465 fi
3466 fi
3467fi
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3469$as_echo "$cross_compiling" >&6; }
3470
3471rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3472ac_clean_files=$ac_clean_files_save
57aa50d4 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
39fd3d4f 3474$as_echo_n "checking for suffix of object files... " >&6; }
d6a4bcb5 3475if ${ac_cv_objext+:} false; then :
39fd3d4f 3476 $as_echo_n "(cached) " >&6
73ae2d4a 3477else
57aa50d4 3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3479/* end confdefs.h. */
07a0db15 3480
b0cacab0
TT
3481int
3482main ()
3483{
07a0db15 3484
b0cacab0
TT
3485 ;
3486 return 0;
3487}
3488_ACEOF
3489rm -f conftest.o conftest.obj
57aa50d4 3490if { { ac_try="$ac_compile"
e1052144
TT
3491case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494esac
57aa50d4
TT
3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496$as_echo "$ac_try_echo"; } >&5
e1052144 3497 (eval "$ac_compile") 2>&5
b0cacab0 3498 ac_status=$?
57aa50d4
TT
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }; then :
e1052144
TT
3501 for ac_file in conftest.o conftest.obj conftest.*; do
3502 test -f "$ac_file" || continue;
b0cacab0 3503 case $ac_file in
39fd3d4f 3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b0cacab0
TT
3505 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3506 break;;
3507 esac
3508done
93636bde 3509else
39fd3d4f 3510 $as_echo "$as_me: failed program was:" >&5
b0cacab0 3511sed 's/^/| /' conftest.$ac_ext >&5
07a0db15 3512
57aa50d4 3513{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3515as_fn_error $? "cannot compute suffix of object files: cannot compile
3516See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3517fi
b0cacab0 3518rm -f conftest.$ac_cv_objext conftest.$ac_ext
73ae2d4a 3519fi
57aa50d4 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
39fd3d4f 3521$as_echo "$ac_cv_objext" >&6; }
b0cacab0
TT
3522OBJEXT=$ac_cv_objext
3523ac_objext=$OBJEXT
57aa50d4 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
39fd3d4f 3525$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 3526if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 3527 $as_echo_n "(cached) " >&6
b0cacab0 3528else
57aa50d4 3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3530/* end confdefs.h. */
3531
3532int
3533main ()
3534{
3535#ifndef __GNUC__
3536 choke me
3537#endif
3538
3539 ;
3540 return 0;
3541}
3542_ACEOF
57aa50d4 3543if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0
TT
3544 ac_compiler_gnu=yes
3545else
57aa50d4 3546 ac_compiler_gnu=no
b0cacab0 3547fi
e1052144 3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0
TT
3549ac_cv_c_compiler_gnu=$ac_compiler_gnu
3550
3551fi
57aa50d4 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
39fd3d4f
SJR
3553$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3554if test $ac_compiler_gnu = yes; then
3555 GCC=yes
3556else
3557 GCC=
3558fi
b0cacab0
TT
3559ac_test_CFLAGS=${CFLAGS+set}
3560ac_save_CFLAGS=$CFLAGS
57aa50d4 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
39fd3d4f 3562$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 3563if ${ac_cv_prog_cc_g+:} false; then :
39fd3d4f 3564 $as_echo_n "(cached) " >&6
b0cacab0 3565else
e1052144
TT
3566 ac_save_c_werror_flag=$ac_c_werror_flag
3567 ac_c_werror_flag=yes
3568 ac_cv_prog_cc_g=no
3569 CFLAGS="-g"
57aa50d4 3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3571/* end confdefs.h. */
3572
3573int
3574main ()
3575{
3576
3577 ;
3578 return 0;
3579}
3580_ACEOF
57aa50d4 3581if ac_fn_c_try_compile "$LINENO"; then :
e1052144
TT
3582 ac_cv_prog_cc_g=yes
3583else
57aa50d4
TT
3584 CFLAGS=""
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3586/* end confdefs.h. */
3587
3588int
3589main ()
3590{
3591
3592 ;
3593 return 0;
3594}
3595_ACEOF
57aa50d4 3596if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3597
57aa50d4
TT
3598else
3599 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 3600 CFLAGS="-g"
57aa50d4 3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
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 :
b0cacab0 3613 ac_cv_prog_cc_g=yes
e1052144 3614fi
e1052144
TT
3615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616fi
e1052144 3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0 3618fi
e1052144
TT
3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_c_werror_flag=$ac_save_c_werror_flag
b0cacab0 3621fi
57aa50d4 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
39fd3d4f 3623$as_echo "$ac_cv_prog_cc_g" >&6; }
b0cacab0
TT
3624if test "$ac_test_CFLAGS" = set; then
3625 CFLAGS=$ac_save_CFLAGS
3626elif test $ac_cv_prog_cc_g = yes; then
3627 if test "$GCC" = yes; then
3628 CFLAGS="-g -O2"
3629 else
3630 CFLAGS="-g"
3631 fi
73ae2d4a
TT
3632else
3633 if test "$GCC" = yes; then
3634 CFLAGS="-O2"
3635 else
3636 CFLAGS=
3637 fi
3638fi
57aa50d4 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
39fd3d4f 3640$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 3641if ${ac_cv_prog_cc_c89+:} false; then :
39fd3d4f 3642 $as_echo_n "(cached) " >&6
b0cacab0 3643else
e1052144 3644 ac_cv_prog_cc_c89=no
b0cacab0 3645ac_save_CC=$CC
57aa50d4 3646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3647/* end confdefs.h. */
3648#include <stdarg.h>
3649#include <stdio.h>
d6a4bcb5 3650struct stat;
b0cacab0
TT
3651/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3652struct buf { int x; };
3653FILE * (*rcsopen) (struct buf *, struct stat *, int);
3654static char *e (p, i)
3655 char **p;
3656 int i;
3657{
3658 return p[i];
3659}
3660static char *f (char * (*g) (char **, int), char **p, ...)
3661{
3662 char *s;
3663 va_list v;
3664 va_start (v,p);
3665 s = g (p, va_arg (v,int));
3666 va_end (v);
3667 return s;
3668}
3669
3670/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3671 function prototypes and stuff, but not '\xHH' hex character constants.
3672 These don't provoke an error unfortunately, instead are silently treated
e1052144 3673 as 'x'. The following induces an error, until -std is added to get
b0cacab0
TT
3674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3675 array size at least. It's necessary to write '\x00'==0 to get something
e1052144 3676 that's true only with -std. */
b0cacab0
TT
3677int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3678
e1052144
TT
3679/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3680 inside strings and character constants. */
3681#define FOO(x) 'x'
3682int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3683
b0cacab0
TT
3684int test (int i, double x);
3685struct s1 {int (*f) (int a);};
3686struct s2 {int (*f) (double a);};
3687int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3688int argc;
3689char **argv;
3690int
3691main ()
3692{
3693return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3694 ;
3695 return 0;
3696}
3697_ACEOF
e1052144
TT
3698for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b0cacab0
TT
3700do
3701 CC="$ac_save_CC $ac_arg"
57aa50d4 3702 if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3703 ac_cv_prog_cc_c89=$ac_arg
b0cacab0 3704fi
e1052144
TT
3705rm -f core conftest.err conftest.$ac_objext
3706 test "x$ac_cv_prog_cc_c89" != "xno" && break
b0cacab0 3707done
e1052144 3708rm -f conftest.$ac_ext
b0cacab0
TT
3709CC=$ac_save_CC
3710
3711fi
e1052144
TT
3712# AC_CACHE_VAL
3713case "x$ac_cv_prog_cc_c89" in
3714 x)
57aa50d4 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
39fd3d4f 3716$as_echo "none needed" >&6; } ;;
e1052144 3717 xno)
57aa50d4 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
39fd3d4f 3719$as_echo "unsupported" >&6; } ;;
b0cacab0 3720 *)
e1052144 3721 CC="$CC $ac_cv_prog_cc_c89"
57aa50d4 3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
39fd3d4f 3723$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b0cacab0 3724esac
57aa50d4 3725if test "x$ac_cv_prog_cc_c89" != xno; then :
b0cacab0 3726
57aa50d4 3727fi
b0cacab0 3728
b0cacab0
TT
3729ac_ext=c
3730ac_cpp='$CPP $CPPFLAGS'
3731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734
57aa50d4
TT
3735
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3737$as_echo_n "checking for dlopen in -ldl... " >&6; }
d6a4bcb5 3738if ${ac_cv_lib_dl_dlopen+:} false; then :
39fd3d4f 3739 $as_echo_n "(cached) " >&6
b0cacab0 3740else
57aa50d4
TT
3741 ac_check_lib_save_LIBS=$LIBS
3742LIBS="-ldl $LIBS"
3743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3744/* end confdefs.h. */
57aa50d4
TT
3745
3746/* Override any GCC internal prototype to avoid an error.
3747 Use char because int might match the return type of a GCC
3748 builtin and then its argument prototype would still apply. */
3749#ifdef __cplusplus
3750extern "C"
b0cacab0 3751#endif
57aa50d4
TT
3752char dlopen ();
3753int
3754main ()
3755{
3756return dlopen ();
3757 ;
3758 return 0;
3759}
b0cacab0 3760_ACEOF
57aa50d4
TT
3761if ac_fn_c_try_link "$LINENO"; then :
3762 ac_cv_lib_dl_dlopen=yes
b0cacab0 3763else
57aa50d4 3764 ac_cv_lib_dl_dlopen=no
b0cacab0 3765fi
57aa50d4
TT
3766rm -f core conftest.err conftest.$ac_objext \
3767 conftest$ac_exeext conftest.$ac_ext
3768LIBS=$ac_check_lib_save_LIBS
b0cacab0 3769fi
57aa50d4
TT
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3771$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d6a4bcb5 3772if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
57aa50d4 3773 DLOPEN_LIB=-ldl
b0cacab0
TT
3774fi
3775
b0cacab0 3776
e1052144 3777
57aa50d4
TT
3778# Check whether --with-cc was given.
3779if test "${with_cc+set}" = set; then :
d6a4bcb5 3780 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
57aa50d4 3781fi
b0cacab0 3782
b0cacab0 3783
57aa50d4
TT
3784# Check whether --with-ccopts was given.
3785if test "${with_ccopts+set}" = set; then :
d6a4bcb5 3786 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
b0cacab0 3787fi
e1052144 3788
b0cacab0 3789
57aa50d4
TT
3790# Check whether --with-ldopts was given.
3791if test "${with_ldopts+set}" = set; then :
d6a4bcb5 3792 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
b0cacab0
TT
3793fi
3794
3795ac_ext=c
3796ac_cpp='$CPP $CPPFLAGS'
3797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799ac_compiler_gnu=$ac_cv_c_compiler_gnu
57aa50d4
TT
3800if test -n "$ac_tool_prefix"; then
3801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3802set dummy ${ac_tool_prefix}gcc; ac_word=$2
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3805if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 3806 $as_echo_n "(cached) " >&6
e1052144 3807else
57aa50d4
TT
3808 if test -n "$CC"; then
3809 ac_cv_prog_CC="$CC" # Let the user override the test.
3810else
3811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH
e1052144
TT
3813do
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
39fd3d4f 3816 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 break 2
3821 fi
e1052144 3822done
57aa50d4 3823 done
e1052144 3824IFS=$as_save_IFS
e1052144 3825
e1052144 3826fi
57aa50d4
TT
3827fi
3828CC=$ac_cv_prog_CC
3829if test -n "$CC"; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3831$as_echo "$CC" >&6; }
3832else
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834$as_echo "no" >&6; }
3835fi
e1052144
TT
3836
3837
57aa50d4
TT
3838fi
3839if test -z "$ac_cv_prog_CC"; then
3840 ac_ct_CC=$CC
3841 # Extract the first word of "gcc", so it can be a program name with args.
3842set dummy gcc; ac_word=$2
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3845if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 3846 $as_echo_n "(cached) " >&6
e1052144 3847else
57aa50d4
TT
3848 if test -n "$ac_ct_CC"; then
3849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3850else
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
e1052144
TT
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
39fd3d4f 3856 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3858 ac_cv_prog_ac_ct_CC="gcc"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
e1052144 3862done
57aa50d4 3863 done
e1052144 3864IFS=$as_save_IFS
b0cacab0 3865
e1052144 3866fi
57aa50d4
TT
3867fi
3868ac_ct_CC=$ac_cv_prog_ac_ct_CC
3869if test -n "$ac_ct_CC"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3871$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3872else
57aa50d4
TT
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874$as_echo "no" >&6; }
3875fi
b0cacab0 3876
57aa50d4
TT
3877 if test "x$ac_ct_CC" = x; then
3878 CC=""
3879 else
3880 case $cross_compiling:$ac_tool_warned in
3881yes:)
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3884ac_tool_warned=yes ;;
e1052144 3885esac
57aa50d4
TT
3886 CC=$ac_ct_CC
3887 fi
b0cacab0 3888else
57aa50d4 3889 CC="$ac_cv_prog_CC"
b0cacab0 3890fi
e1052144 3891
57aa50d4
TT
3892if test -z "$CC"; then
3893 if test -n "$ac_tool_prefix"; then
3894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3895set dummy ${ac_tool_prefix}cc; ac_word=$2
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3898if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3899 $as_echo_n "(cached) " >&6
a64c9c13 3900else
57aa50d4
TT
3901 if test -n "$CC"; then
3902 ac_cv_prog_CC="$CC" # Let the user override the test.
3903else
3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3911 ac_cv_prog_CC="${ac_tool_prefix}cc"
3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915done
3916 done
3917IFS=$as_save_IFS
b0cacab0 3918
a64c9c13 3919fi
57aa50d4
TT
3920fi
3921CC=$ac_cv_prog_CC
3922if test -n "$CC"; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3924$as_echo "$CC" >&6; }
b0cacab0 3925else
57aa50d4
TT
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927$as_echo "no" >&6; }
a64c9c13 3928fi
b0cacab0 3929
b0cacab0 3930
57aa50d4
TT
3931 fi
3932fi
3933if test -z "$CC"; then
3934 # Extract the first word of "cc", so it can be a program name with args.
3935set dummy cc; ac_word=$2
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3938if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3939 $as_echo_n "(cached) " >&6
a64c9c13 3940else
57aa50d4
TT
3941 if test -n "$CC"; then
3942 ac_cv_prog_CC="$CC" # Let the user override the test.
a64c9c13 3943else
57aa50d4
TT
3944 ac_prog_rejected=no
3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH
3947do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3953 ac_prog_rejected=yes
3954 continue
3955 fi
3956 ac_cv_prog_CC="cc"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960done
3961 done
3962IFS=$as_save_IFS
b0cacab0 3963
57aa50d4
TT
3964if test $ac_prog_rejected = yes; then
3965 # We found a bogon in the path, so make sure we never use it.
3966 set dummy $ac_cv_prog_CC
3967 shift
3968 if test $# != 0; then
3969 # We chose a different compiler from the bogus one.
3970 # However, it has the same basename, so the bogon will be chosen
3971 # first if we set CC to just the basename; use the full file name.
3972 shift
3973 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3974 fi
b0cacab0 3975fi
b0cacab0
TT
3976fi
3977fi
57aa50d4
TT
3978CC=$ac_cv_prog_CC
3979if test -n "$CC"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3981$as_echo "$CC" >&6; }
3982else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984$as_echo "no" >&6; }
b0cacab0 3985fi
b0cacab0 3986
b0cacab0
TT
3987
3988fi
57aa50d4
TT
3989if test -z "$CC"; then
3990 if test -n "$ac_tool_prefix"; then
3991 for ac_prog in cl.exe
3992 do
3993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3997if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3998 $as_echo_n "(cached) " >&6
3999else
4000 if test -n "$CC"; then
4001 ac_cv_prog_CC="$CC" # Let the user override the test.
4002else
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 4009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
4010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 break 2
4013 fi
4014done
4015 done
4016IFS=$as_save_IFS
b0cacab0 4017
57aa50d4
TT
4018fi
4019fi
4020CC=$ac_cv_prog_CC
4021if test -n "$CC"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023$as_echo "$CC" >&6; }
4024else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026$as_echo "no" >&6; }
4027fi
b0cacab0
TT
4028
4029
57aa50d4
TT
4030 test -n "$CC" && break
4031 done
4032fi
4033if test -z "$CC"; then
4034 ac_ct_CC=$CC
4035 for ac_prog in cl.exe
b0cacab0 4036do
57aa50d4
TT
4037 # Extract the first word of "$ac_prog", so it can be a program name with args.
4038set dummy $ac_prog; ac_word=$2
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 4041if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 4042 $as_echo_n "(cached) " >&6
b0cacab0 4043else
57aa50d4
TT
4044 if test -n "$ac_ct_CC"; then
4045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b0cacab0 4046else
57aa50d4
TT
4047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH
4049do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 4053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
4054 ac_cv_prog_ac_ct_CC="$ac_prog"
4055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4057 fi
4058done
4059 done
4060IFS=$as_save_IFS
b0cacab0 4061
b0cacab0 4062fi
b0cacab0 4063fi
57aa50d4
TT
4064ac_ct_CC=$ac_cv_prog_ac_ct_CC
4065if test -n "$ac_ct_CC"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4067$as_echo "$ac_ct_CC" >&6; }
4068else
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070$as_echo "no" >&6; }
b0cacab0
TT
4071fi
4072
b0cacab0 4073
57aa50d4
TT
4074 test -n "$ac_ct_CC" && break
4075done
b0cacab0 4076
57aa50d4
TT
4077 if test "x$ac_ct_CC" = x; then
4078 CC=""
4079 else
4080 case $cross_compiling:$ac_tool_warned in
4081yes:)
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4084ac_tool_warned=yes ;;
e1052144 4085esac
57aa50d4
TT
4086 CC=$ac_ct_CC
4087 fi
4088fi
b0cacab0 4089
b0cacab0 4090fi
e1052144 4091
b0cacab0 4092
57aa50d4
TT
4093test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4095as_fn_error $? "no acceptable C compiler found in \$PATH
4096See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
4097
4098# Provide some information about the compiler.
4099$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4100set X $ac_compile
4101ac_compiler=$2
4102for ac_option in --version -v -V -qversion; do
4103 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
4104case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107esac
57aa50d4
TT
4108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109$as_echo "$ac_try_echo"; } >&5
4110 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 4111 ac_status=$?
57aa50d4
TT
4112 if test -s conftest.err; then
4113 sed '10a\
4114... rest of stderr output deleted ...
4115 10q' conftest.err >conftest.er1
4116 cat conftest.er1 >&5
57aa50d4 4117 fi
61ef2474 4118 rm -f conftest.er1 conftest.err
57aa50d4
TT
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }
4121done
e1052144 4122
57aa50d4
TT
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4124$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 4125if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 4126 $as_echo_n "(cached) " >&6
b0cacab0 4127else
57aa50d4
TT
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h. */
b0cacab0 4130
57aa50d4
TT
4131int
4132main ()
4133{
4134#ifndef __GNUC__
4135 choke me
4136#endif
a64c9c13 4137
57aa50d4
TT
4138 ;
4139 return 0;
4140}
4141_ACEOF
4142if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_compiler_gnu=yes
b1c92f91 4144else
57aa50d4 4145 ac_compiler_gnu=no
b1c92f91 4146fi
57aa50d4
TT
4147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148ac_cv_c_compiler_gnu=$ac_compiler_gnu
b0cacab0 4149
e1052144 4150fi
57aa50d4
TT
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4152$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4153if test $ac_compiler_gnu = yes; then
4154 GCC=yes
98919bdb 4155else
57aa50d4 4156 GCC=
98919bdb 4157fi
57aa50d4
TT
4158ac_test_CFLAGS=${CFLAGS+set}
4159ac_save_CFLAGS=$CFLAGS
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4161$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 4162if ${ac_cv_prog_cc_g+:} false; then :
57aa50d4 4163 $as_echo_n "(cached) " >&6
98919bdb 4164else
57aa50d4
TT
4165 ac_save_c_werror_flag=$ac_c_werror_flag
4166 ac_c_werror_flag=yes
4167 ac_cv_prog_cc_g=no
4168 CFLAGS="-g"
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h. */
e1052144 4171
57aa50d4
TT
4172int
4173main ()
4174{
98919bdb 4175
57aa50d4
TT
4176 ;
4177 return 0;
4178}
4179_ACEOF
4180if ac_fn_c_try_compile "$LINENO"; then :
4181 ac_cv_prog_cc_g=yes
c13351f6 4182else
57aa50d4
TT
4183 CFLAGS=""
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185/* end confdefs.h. */
c13351f6 4186
57aa50d4
TT
4187int
4188main ()
4189{
c13351f6 4190
57aa50d4
TT
4191 ;
4192 return 0;
4193}
4194_ACEOF
4195if ac_fn_c_try_compile "$LINENO"; then :
c13351f6 4196
57aa50d4
TT
4197else
4198 ac_c_werror_flag=$ac_save_c_werror_flag
4199 CFLAGS="-g"
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}
b0cacab0 4210_ACEOF
57aa50d4
TT
4211if ac_fn_c_try_compile "$LINENO"; then :
4212 ac_cv_prog_cc_g=yes
1917875f 4213fi
57aa50d4 4214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e1052144 4215fi
57aa50d4 4216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdc9985 4217fi
57aa50d4
TT
4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 4220fi
57aa50d4
TT
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4222$as_echo "$ac_cv_prog_cc_g" >&6; }
4223if test "$ac_test_CFLAGS" = set; then
4224 CFLAGS=$ac_save_CFLAGS
4225elif test $ac_cv_prog_cc_g = yes; then
4226 if test "$GCC" = yes; then
4227 CFLAGS="-g -O2"
4228 else
4229 CFLAGS="-g"
4230 fi
a64c9c13 4231else
57aa50d4
TT
4232 if test "$GCC" = yes; then
4233 CFLAGS="-O2"
4234 else
4235 CFLAGS=
4236 fi
a64c9c13 4237fi
57aa50d4
TT
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4239$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 4240if ${ac_cv_prog_cc_c89+:} false; then :
57aa50d4 4241 $as_echo_n "(cached) " >&6
a64c9c13 4242else
57aa50d4
TT
4243 ac_cv_prog_cc_c89=no
4244ac_save_CC=$CC
4245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246/* end confdefs.h. */
4247#include <stdarg.h>
4248#include <stdio.h>
d6a4bcb5 4249struct stat;
57aa50d4
TT
4250/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4251struct buf { int x; };
4252FILE * (*rcsopen) (struct buf *, struct stat *, int);
4253static char *e (p, i)
4254 char **p;
4255 int i;
4256{
4257 return p[i];
4258}
4259static char *f (char * (*g) (char **, int), char **p, ...)
4260{
4261 char *s;
4262 va_list v;
4263 va_start (v,p);
4264 s = g (p, va_arg (v,int));
4265 va_end (v);
4266 return s;
4267}
e1052144 4268
57aa50d4
TT
4269/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4270 function prototypes and stuff, but not '\xHH' hex character constants.
4271 These don't provoke an error unfortunately, instead are silently treated
4272 as 'x'. The following induces an error, until -std is added to get
4273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4274 array size at least. It's necessary to write '\x00'==0 to get something
4275 that's true only with -std. */
4276int osf4_cc_array ['\x00' == 0 ? 1 : -1];
93636bde 4277
57aa50d4
TT
4278/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4279 inside strings and character constants. */
4280#define FOO(x) 'x'
4281int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
a64c9c13 4282
57aa50d4
TT
4283int test (int i, double x);
4284struct s1 {int (*f) (int a);};
4285struct s2 {int (*f) (double a);};
4286int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4287int argc;
4288char **argv;
4289int
4290main ()
4291{
4292return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4293 ;
4294 return 0;
4295}
4296_ACEOF
4297for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4299do
4300 CC="$ac_save_CC $ac_arg"
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_prog_cc_c89=$ac_arg
a64c9c13 4303fi
57aa50d4
TT
4304rm -f core conftest.err conftest.$ac_objext
4305 test "x$ac_cv_prog_cc_c89" != "xno" && break
4306done
4307rm -f conftest.$ac_ext
4308CC=$ac_save_CC
a64c9c13 4309
57aa50d4
TT
4310fi
4311# AC_CACHE_VAL
4312case "x$ac_cv_prog_cc_c89" in
4313 x)
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315$as_echo "none needed" >&6; } ;;
4316 xno)
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318$as_echo "unsupported" >&6; } ;;
4319 *)
4320 CC="$CC $ac_cv_prog_cc_c89"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4322$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4323esac
4324if test "x$ac_cv_prog_cc_c89" != xno; then :
a64c9c13 4325
e1052144
TT
4326fi
4327
57aa50d4
TT
4328ac_ext=c
4329ac_cpp='$CPP $CPPFLAGS'
4330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332ac_compiler_gnu=$ac_cv_c_compiler_gnu
93636bde 4333
9b3018a8
TT
4334if test "$GCC" = yes; then
4335 RDYNAMIC="-rdynamic"
4336
4337fi
57aa50d4
TT
4338ac_ext=c
4339ac_cpp='$CPP $CPPFLAGS'
4340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4344$as_echo_n "checking how to run the C preprocessor... " >&6; }
4345# On Suns, sometimes $CPP names a directory.
4346if test -n "$CPP" && test -d "$CPP"; then
4347 CPP=
4348fi
4349if test -z "$CPP"; then
d6a4bcb5 4350 if ${ac_cv_prog_CPP+:} false; then :
57aa50d4
TT
4351 $as_echo_n "(cached) " >&6
4352else
4353 # Double quotes because CPP needs to be expanded
4354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4355 do
4356 ac_preproc_ok=false
4357for ac_c_preproc_warn_flag in '' yes
4358do
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 # <limits.h> exists even on freestanding compilers.
4363 # On the NeXT, cc -E runs the code through the compiler's parser,
4364 # not just through cpp. "Syntax error" is here to catch this case.
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366/* end confdefs.h. */
4367#ifdef __STDC__
4368# include <limits.h>
4369#else
4370# include <assert.h>
4371#endif
4372 Syntax error
4373_ACEOF
4374if ac_fn_c_try_cpp "$LINENO"; then :
a64c9c13 4375
cdf186e4 4376else
57aa50d4
TT
4377 # Broken: fails on valid input.
4378continue
cdf186e4 4379fi
d6a4bcb5 4380rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4381
57aa50d4
TT
4382 # OK, works on sane cases. Now check whether nonexistent headers
4383 # can be detected and how.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h. */
4386#include <ac_nonexistent.h>
4387_ACEOF
4388if ac_fn_c_try_cpp "$LINENO"; then :
4389 # Broken: success on invalid input.
4390continue
cdf186e4 4391else
57aa50d4
TT
4392 # Passes both tests.
4393ac_preproc_ok=:
4394break
4395fi
d6a4bcb5 4396rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4397
57aa50d4
TT
4398done
4399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4400rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4
TT
4401if $ac_preproc_ok; then :
4402 break
e1052144
TT
4403fi
4404
57aa50d4
TT
4405 done
4406 ac_cv_prog_CPP=$CPP
93636bde 4407
cdf186e4 4408fi
57aa50d4 4409 CPP=$ac_cv_prog_CPP
cdf186e4 4410else
57aa50d4 4411 ac_cv_prog_CPP=$CPP
e1052144 4412fi
57aa50d4
TT
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4414$as_echo "$CPP" >&6; }
4415ac_preproc_ok=false
4416for ac_c_preproc_warn_flag in '' yes
4417do
4418 # Use a header file that comes with gcc, so configuring glibc
4419 # with a fresh cross-compiler works.
4420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4421 # <limits.h> exists even on freestanding compilers.
4422 # On the NeXT, cc -E runs the code through the compiler's parser,
4423 # not just through cpp. "Syntax error" is here to catch this case.
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h. */
4426#ifdef __STDC__
4427# include <limits.h>
4428#else
4429# include <assert.h>
4430#endif
4431 Syntax error
b0cacab0 4432_ACEOF
57aa50d4 4433if ac_fn_c_try_cpp "$LINENO"; then :
80bfaa3e
TT
4434
4435else
57aa50d4
TT
4436 # Broken: fails on valid input.
4437continue
e1052144 4438fi
d6a4bcb5 4439rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4440
57aa50d4
TT
4441 # OK, works on sane cases. Now check whether nonexistent headers
4442 # can be detected and how.
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h. */
4445#include <ac_nonexistent.h>
b0cacab0 4446_ACEOF
57aa50d4
TT
4447if ac_fn_c_try_cpp "$LINENO"; then :
4448 # Broken: success on invalid input.
4449continue
f0a22d0f 4450else
57aa50d4
TT
4451 # Passes both tests.
4452ac_preproc_ok=:
4453break
e1052144 4454fi
d6a4bcb5 4455rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4456
57aa50d4
TT
4457done
4458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4459rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4 4460if $ac_preproc_ok; then :
2a29f135
TT
4461
4462else
57aa50d4
TT
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4465as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4466See \`config.log' for more details" "$LINENO" 5; }
e1052144
TT
4467fi
4468
57aa50d4
TT
4469ac_ext=c
4470ac_cpp='$CPP $CPPFLAGS'
4471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473ac_compiler_gnu=$ac_cv_c_compiler_gnu
af773654 4474
57aa50d4
TT
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4476$as_echo_n "checking for additional special compiler flags... " >&6; }
4477if test "$GCC" = yes
4478then
4479 case "$host_cpu" in
4480 alpha) addcflags="-mieee" ;;
4481 esac
14b596d4 4482fi
57aa50d4
TT
4483if test "x$addcflags" != x
4484then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4486$as_echo "$addcflags" >&6; }
4487 CFLAGS="$addcflags $CFLAGS"
14b596d4 4488else
57aa50d4
TT
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4490$as_echo "(none)" >&6; }
14b596d4
TT
4491fi
4492
93613951
TT
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4494$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4495if ${ac_cv_path_GREP+:} false; then :
4496 $as_echo_n "(cached) " >&6
57aa50d4 4497else
93613951
TT
4498 if test -z "$GREP"; then
4499 ac_path_GREP_found=false
4500 # Loop through the user's path and test for each of PROGNAME-LIST
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4503do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_prog in grep ggrep; do
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4509 as_fn_executable_p "$ac_path_GREP" || continue
4510# Check for GNU ac_path_GREP and select it if it is found.
4511 # Check for GNU $ac_path_GREP
4512case `"$ac_path_GREP" --version 2>&1` in
4513*GNU*)
4514 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4515*)
4516 ac_count=0
4517 $as_echo_n 0123456789 >"conftest.in"
4518 while :
4519 do
4520 cat "conftest.in" "conftest.in" >"conftest.tmp"
4521 mv "conftest.tmp" "conftest.in"
4522 cp "conftest.in" "conftest.nl"
4523 $as_echo 'GREP' >> "conftest.nl"
4524 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4526 as_fn_arith $ac_count + 1 && ac_count=$as_val
4527 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4528 # Best one so far, save it but keep looking for a better one
4529 ac_cv_path_GREP="$ac_path_GREP"
4530 ac_path_GREP_max=$ac_count
4531 fi
4532 # 10*(2^10) chars as input seems more than enough
4533 test $ac_count -gt 10 && break
4534 done
4535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4536esac
14b596d4 4537
93613951
TT
4538 $ac_path_GREP_found && break 3
4539 done
4540 done
4541 done
4542IFS=$as_save_IFS
4543 if test -z "$ac_cv_path_GREP"; then
4544 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4545 fi
57aa50d4 4546else
93613951
TT
4547 ac_cv_path_GREP=$GREP
4548fi
57aa50d4 4549
14b596d4 4550fi
93613951
TT
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4552$as_echo "$ac_cv_path_GREP" >&6; }
4553 GREP="$ac_cv_path_GREP"
14b596d4 4554
14b596d4 4555
93613951
TT
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4557$as_echo_n "checking for egrep... " >&6; }
4558if ${ac_cv_path_EGREP+:} false; then :
4559 $as_echo_n "(cached) " >&6
5aa6c3f6 4560else
93613951
TT
4561 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4562 then ac_cv_path_EGREP="$GREP -E"
4563 else
4564 if test -z "$EGREP"; then
4565 ac_path_EGREP_found=false
4566 # Loop through the user's path and test for each of PROGNAME-LIST
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_prog in egrep; do
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4575 as_fn_executable_p "$ac_path_EGREP" || continue
4576# Check for GNU ac_path_EGREP and select it if it is found.
4577 # Check for GNU $ac_path_EGREP
4578case `"$ac_path_EGREP" --version 2>&1` in
4579*GNU*)
4580 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4581*)
4582 ac_count=0
4583 $as_echo_n 0123456789 >"conftest.in"
4584 while :
4585 do
4586 cat "conftest.in" "conftest.in" >"conftest.tmp"
4587 mv "conftest.tmp" "conftest.in"
4588 cp "conftest.in" "conftest.nl"
4589 $as_echo 'EGREP' >> "conftest.nl"
4590 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592 as_fn_arith $ac_count + 1 && ac_count=$as_val
4593 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4594 # Best one so far, save it but keep looking for a better one
4595 ac_cv_path_EGREP="$ac_path_EGREP"
4596 ac_path_EGREP_max=$ac_count
4597 fi
4598 # 10*(2^10) chars as input seems more than enough
4599 test $ac_count -gt 10 && break
4600 done
4601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4602esac
5aa6c3f6 4603
93613951
TT
4604 $ac_path_EGREP_found && break 3
4605 done
4606 done
4607 done
4608IFS=$as_save_IFS
4609 if test -z "$ac_cv_path_EGREP"; then
4610 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4611 fi
5aa6c3f6 4612else
93613951
TT
4613 ac_cv_path_EGREP=$EGREP
4614fi
183c73b0 4615
93613951 4616 fi
183c73b0 4617fi
93613951
TT
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4619$as_echo "$ac_cv_path_EGREP" >&6; }
4620 EGREP="$ac_cv_path_EGREP"
183c73b0
TT
4621
4622
93613951
TT
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4624$as_echo_n "checking for ANSI C header files... " >&6; }
4625if ${ac_cv_header_stdc+:} false; then :
4626 $as_echo_n "(cached) " >&6
91d11da1 4627else
93613951
TT
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629/* end confdefs.h. */
4630#include <stdlib.h>
4631#include <stdarg.h>
4632#include <string.h>
4633#include <float.h>
91d11da1 4634
93613951
TT
4635int
4636main ()
4637{
183c73b0 4638
93613951
TT
4639 ;
4640 return 0;
4641}
4642_ACEOF
4643if ac_fn_c_try_compile "$LINENO"; then :
4644 ac_cv_header_stdc=yes
183c73b0 4645else
93613951 4646 ac_cv_header_stdc=no
5aa6c3f6 4647fi
93613951 4648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5aa6c3f6 4649
93613951
TT
4650if test $ac_cv_header_stdc = yes; then
4651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653/* end confdefs.h. */
4654#include <string.h>
4655
4656_ACEOF
4657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4658 $EGREP "memchr" >/dev/null 2>&1; then :
4659
4660else
4661 ac_cv_header_stdc=no
4662fi
4663rm -f conftest*
4664
4665fi
4666
4667if test $ac_cv_header_stdc = yes; then
4668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670/* end confdefs.h. */
4671#include <stdlib.h>
4672
4673_ACEOF
4674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4675 $EGREP "free" >/dev/null 2>&1; then :
4676
4677else
4678 ac_cv_header_stdc=no
4679fi
4680rm -f conftest*
4681
4682fi
4683
4684if test $ac_cv_header_stdc = yes; then
4685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4686 if test "$cross_compiling" = yes; then :
4687 :
4688else
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690/* end confdefs.h. */
4691#include <ctype.h>
4692#include <stdlib.h>
4693#if ((' ' & 0x0FF) == 0x020)
4694# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4695# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4696#else
4697# define ISLOWER(c) \
4698 (('a' <= (c) && (c) <= 'i') \
4699 || ('j' <= (c) && (c) <= 'r') \
4700 || ('s' <= (c) && (c) <= 'z'))
4701# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4702#endif
4703
4704#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4705int
4706main ()
4707{
4708 int i;
4709 for (i = 0; i < 256; i++)
4710 if (XOR (islower (i), ISLOWER (i))
4711 || toupper (i) != TOUPPER (i))
4712 return 2;
4713 return 0;
4714}
4715_ACEOF
4716if ac_fn_c_try_run "$LINENO"; then :
4717
4718else
4719 ac_cv_header_stdc=no
4720fi
4721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4722 conftest.$ac_objext conftest.beam conftest.$ac_ext
4723fi
4724
4725fi
4726fi
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4728$as_echo "$ac_cv_header_stdc" >&6; }
4729if test $ac_cv_header_stdc = yes; then
4730
4731$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4732
4733fi
4734
4735# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4736for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4737 inttypes.h stdint.h unistd.h
4738do :
4739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4740ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4741"
4742if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4743 cat >>confdefs.h <<_ACEOF
4744#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4745_ACEOF
4746
4747fi
4748
4749done
4750
4751
4752
4753 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4754if test "x$ac_cv_header_minix_config_h" = xyes; then :
4755 MINIX=yes
4756else
4757 MINIX=
4758fi
4759
4760
4761 if test "$MINIX" = yes; then
4762
4763$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4764
4765
4766$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4767
4768
4769$as_echo "#define _MINIX 1" >>confdefs.h
4770
4771 fi
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4775$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4776if ${ac_cv_safe_to_define___extensions__+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778else
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h. */
4781
4782# define __EXTENSIONS__ 1
4783 $ac_includes_default
4784int
4785main ()
4786{
4787
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_safe_to_define___extensions__=yes
4794else
4795 ac_cv_safe_to_define___extensions__=no
4796fi
4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798fi
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4800$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4801 test $ac_cv_safe_to_define___extensions__ = yes &&
4802 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4803
4804 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4805
4806 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4807
4808 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4809
4810 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4811
4812
4813LIB_EXT=.a
4814STATIC_LIB_EXT=.a
4815PROFILED_LIB_EXT=.a
4816
4817# Check whether --with-root-prefix was given.
4818if test "${with_root_prefix+set}" = set; then :
4819 withval=$with_root_prefix; root_prefix=$withval
4820else
4821 root_prefix=NONE
4822fi
4823# Check whether --enable-maintainer-mode was given.
4824if test "${enable_maintainer_mode+set}" = set; then :
4825 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4826then
4827 MAINTAINER_CMT=#
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4829$as_echo "Disabling maintainer mode" >&6; }
4830else
4831 MAINTAINER_CMT=
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4833$as_echo "Enabling maintainer mode" >&6; }
4834fi
4835
4836else
4837 MAINTAINER_CMT=#
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4839$as_echo "Disabling maintainer mode by default" >&6; }
4840
4841fi
4842
4843
4844# Check whether --enable-symlink-install was given.
4845if test "${enable_symlink_install+set}" = set; then :
4846 enableval=$enable_symlink_install; if test "$enableval" = "no"
4847then
4848 LINK_INSTALL_FLAGS=-f
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4850$as_echo "Disabling symlinks for install" >&6; }
4851else
4852 LINK_INSTALL_FLAGS=-sf
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4854$as_echo "Enabling symlinks for install" >&6; }
4855fi
4856
4857else
4858 LINK_INSTALL_FLAGS=-f
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4860$as_echo "Disabling symlinks for install by default" >&6; }
4861
4862fi
4863
4864
4865relative_symlink_defined=
4866# Check whether --enable-relative-symlinks was given.
4867if test "${enable_relative_symlinks+set}" = set; then :
4868 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4869then
4870 SYMLINK_RELATIVE=
4871 relative_symlink_defined=yes
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4873$as_echo "Disabling relative symlinks for install" >&6; }
4874else
4875 SYMLINK_RELATIVE=--relative
4876 relative_symlink_defined=yes
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4878$as_echo "Enabling relative symlinks for install" >&6; }
4879fi
4880fi
4881
4882# Check whether --enable-symlink-relative-symlinks was given.
4883if test "${enable_symlink_relative_symlinks+set}" = set; then :
4884 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4885then
4886 SYMLINK_RELATIVE=yes
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4888$as_echo "Disabling relative symlinks for install" >&6; }
4889else
4890 SYMLINK_RELATIVE=--relative
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4892$as_echo "Enabling relative symlinks for install" >&6; }
4893fi
4894
4895else
4896 if test -z "$relative_symlink_defined"
4897then
4898 SYMLINK_RELATIVE=
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4900$as_echo "Disabling relative symlinks for install by default" >&6; }
4901fi
4902
4903fi
4904
4905
4906# Check whether --enable-symlink-build was given.
4907if test "${enable_symlink_build+set}" = set; then :
5aa6c3f6
TT
4908 enableval=$enable_symlink_build; if test "$enableval" = "no"
4909then
4910 LINK_BUILD_FLAGS=
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4912$as_echo "Disabling symlinks for build" >&6; }
4913else
4914 LINK_BUILD_FLAGS=-s
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4916$as_echo "Enabling symlinks for build" >&6; }
4917fi
4918
4919else
4920 LINK_BUILD_FLAGS=
183c73b0
TT
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4922$as_echo "Disabling symlinks for build by default" >&6; }
5aa6c3f6
TT
4923
4924fi
4925
4926
57aa50d4
TT
4927# Check whether --enable-verbose-makecmds was given.
4928if test "${enable_verbose_makecmds+set}" = set; then :
4929 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4930then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4932$as_echo "Disabling verbose make commands" >&6; }
4933 E=@echo
c1986ecb 4934 ES=echo
57aa50d4 4935 Q=@
14b596d4 4936else
57aa50d4
TT
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4938$as_echo "Enabling verbose make commands" >&6; }
4939 E=@\\#
c1986ecb 4940 ES=\\#
57aa50d4
TT
4941 Q=
4942fi
14b596d4 4943
14b596d4 4944else
57aa50d4
TT
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4946$as_echo "Disabling verbose make commands" >&6; }
4947E=@echo
c1986ecb 4948ES=echo
57aa50d4 4949Q=@
14b596d4 4950
14b596d4
TT
4951fi
4952
14b596d4 4953
57aa50d4 4954
c1986ecb 4955
57aa50d4
TT
4956E2_PKG_CONFIG_STATIC=--static
4957LDFLAG_DYNAMIC=
4958PRIVATE_LIBS_CMT=
4959# Check whether --enable-elf-shlibs was given.
4960if test "${enable_elf_shlibs+set}" = set; then :
4961 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
cdf186e4 4962then
57aa50d4
TT
4963 ELF_CMT=#
4964 MAKEFILE_ELF=/dev/null
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4966$as_echo "Disabling ELF shared libraries" >&6; }
cdf186e4 4967else
57aa50d4
TT
4968 E2_PKG_CONFIG_STATIC=
4969 ELF_CMT=
4970 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4971 case "$host_os" in
4972 solaris2.*)
4973 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4974 ;;
4975 esac
4976 BINARY_TYPE=elfbin
4977 LIB_EXT=.so
4978 PRIVATE_LIBS_CMT=#
4979 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4981$as_echo "Enabling ELF shared libraries" >&6; }
cdf186e4
TT
4982fi
4983
4984else
57aa50d4
TT
4985 MAKEFILE_ELF=/dev/null
4986ELF_CMT=#
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4988$as_echo "Disabling ELF shared libraries by default" >&6; }
cdf186e4 4989
e1052144
TT
4990fi
4991
cdf186e4 4992
57aa50d4
TT
4993
4994# Check whether --enable-bsd-shlibs was given.
4995if test "${enable_bsd_shlibs+set}" = set; then :
4996 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
cdf186e4 4997then
57aa50d4
TT
4998 BSDLIB_CMT=#
4999 MAKEFILE_BSDLIB=/dev/null
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5001$as_echo "Disabling BSD shared libraries" >&6; }
cdf186e4 5002else
57aa50d4
TT
5003 E2_PKG_CONFIG_STATIC=
5004 BSDLIB_CMT=
5005 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5006 LIB_EXT=.so
5007 case "$host_os" in
5008 darwin*)
5009 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5010 LIB_EXT=.dylib
5011 ;;
5012 esac
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5014$as_echo "Enabling BSD shared libraries" >&6; }
cdf186e4
TT
5015fi
5016
5017else
57aa50d4
TT
5018 MAKEFILE_BSDLIB=/dev/null
5019BSDLIB_CMT=#
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5021$as_echo "Disabling BSD shared libraries by default" >&6; }
cdf186e4 5022
e1052144
TT
5023fi
5024
cdf186e4 5025
57aa50d4
TT
5026
5027# Check whether --enable-profile was given.
5028if test "${enable_profile+set}" = set; then :
5029 enableval=$enable_profile; if test "$enableval" = "no"
cdf186e4 5030then
57aa50d4
TT
5031 PROFILE_CMT=#
5032 MAKEFILE_PROFILE=/dev/null
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5034$as_echo "Disabling profiling libraries" >&6; }
cdf186e4 5035else
57aa50d4
TT
5036 PROFILE_CMT=
5037 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5038 PROFILED_LIB_EXT=_p.a
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5040$as_echo "Building profiling libraries" >&6; }
cdf186e4
TT
5041fi
5042
5043else
57aa50d4
TT
5044 PROFILE_CMT=#
5045MAKEFILE_PROFILE=/dev/null
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5047$as_echo "Disabling profiling libraries by default" >&6; }
cdf186e4 5048
e1052144
TT
5049fi
5050
cdf186e4 5051
57aa50d4 5052
fedfb27f
TT
5053# Check whether --enable-gcov was given.
5054if test "${enable_gcov+set}" = set; then :
5055 enableval=$enable_gcov; if test "$enableval" = "yes"
5056then
5057 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5058 LDFLAGS="-fprofile-arcs -ftest-coverage"
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5060$as_echo "Enabling gcov support" >&6; }
5061fi
5062
5063fi
5064
fd1677e8
TT
5065CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5066CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5067LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5068LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5069# Check whether --enable-hardening was given.
5070if test "${enable_hardening+set}" = set; then :
5071 enableval=$enable_hardening; if test "$enableval" = "yes"
5072then
5073 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5074 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5075 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5076 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5077 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5078 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5079 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5080 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5082$as_echo "Enabling hardening support" >&6; }
5083fi
5084
5085fi
cdf186e4 5086
57aa50d4
TT
5087
5088
5089
5090
5091
5092# Check whether --enable-jbd-debug was given.
5093if test "${enable_jbd_debug+set}" = set; then :
5094 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5d40773b 5095then
57aa50d4
TT
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5097$as_echo "Disabling journal debugging" >&6; }
5d40773b 5098else
d1154eb4
TT
5099
5100$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
57aa50d4
TT
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5103$as_echo "Enabling journal debugging" >&6; }
5d40773b
TT
5104fi
5105
5106else
57aa50d4
TT
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5108$as_echo "Disabling journal debugging by default" >&6; }
5d40773b 5109
e1052144
TT
5110fi
5111
57aa50d4
TT
5112# Check whether --enable-blkid-debug was given.
5113if test "${enable_blkid_debug+set}" = set; then :
5114 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3249394d 5115then
57aa50d4
TT
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5117$as_echo "Disabling blkid debugging" >&6; }
3249394d 5118else
d1154eb4
TT
5119
5120$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
57aa50d4
TT
5121
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5123$as_echo "Enabling blkid debugging" >&6; }
3249394d
TT
5124fi
5125
5126else
57aa50d4
TT
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5128$as_echo "Disabling blkid debugging by default" >&6; }
3249394d
TT
5129
5130fi
5131
57aa50d4
TT
5132# Check whether --enable-testio-debug was given.
5133if test "${enable_testio_debug+set}" = set; then :
d1154eb4
TT
5134 enableval=$enable_testio_debug;
5135if test "$enableval" = "no"
3249394d 5136then
57aa50d4
TT
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5138$as_echo "Disabling testio debugging" >&6; }
5139 TEST_IO_CMT="#"
3249394d 5140else
57aa50d4
TT
5141 TEST_IO_CMT=
5142 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5143
57aa50d4
TT
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5145$as_echo "Enabling testio debugging" >&6; }
5146fi
3249394d 5147
3249394d 5148else
57aa50d4
TT
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5150$as_echo "Enabling testio debugging by default" >&6; }
5151$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5152
57aa50d4 5153TEST_IO_CMT=
3249394d
TT
5154
5155fi
5156
3249394d 5157
57aa50d4
TT
5158
5159
93613951
TT
5160
5161
5162
5163
5164
57aa50d4 5165if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5166 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5167 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5168set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5171if ${ac_cv_path_PKG_CONFIG+:} false; then :
57aa50d4
TT
5172 $as_echo_n "(cached) " >&6
5173else
5174 case $PKG_CONFIG in
5175 [\\/]* | ?:[\\/]*)
5176 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5177 ;;
5178 *)
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5186 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
5190done
5191 done
5192IFS=$as_save_IFS
5193
5194 ;;
5195esac
5196fi
5197PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5198if test -n "$PKG_CONFIG"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5200$as_echo "$PKG_CONFIG" >&6; }
5201else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
3249394d
TT
5204fi
5205
5206
57aa50d4
TT
5207fi
5208if test -z "$ac_cv_path_PKG_CONFIG"; then
5209 ac_pt_PKG_CONFIG=$PKG_CONFIG
5210 # Extract the first word of "pkg-config", so it can be a program name with args.
5211set dummy pkg-config; ac_word=$2
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5214if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
57aa50d4
TT
5215 $as_echo_n "(cached) " >&6
5216else
5217 case $ac_pt_PKG_CONFIG in
5218 [\\/]* | ?:[\\/]*)
5219 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5220 ;;
5221 *)
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5229 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233done
5234 done
5235IFS=$as_save_IFS
3249394d 5236
57aa50d4
TT
5237 ;;
5238esac
5239fi
5240ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5241if test -n "$ac_pt_PKG_CONFIG"; then
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5243$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5244else
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246$as_echo "no" >&6; }
5247fi
3249394d 5248
57aa50d4
TT
5249 if test "x$ac_pt_PKG_CONFIG" = x; then
5250 PKG_CONFIG=""
5251 else
5252 case $cross_compiling:$ac_tool_warned in
5253yes:)
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5256ac_tool_warned=yes ;;
5257esac
5258 PKG_CONFIG=$ac_pt_PKG_CONFIG
3249394d 5259 fi
57aa50d4
TT
5260else
5261 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5262fi
3249394d
TT
5263
5264fi
57aa50d4 5265if test -n "$PKG_CONFIG"; then
93613951
TT
5266 _pkg_min_version=0.9.0
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5268$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5269 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5271$as_echo "yes" >&6; }
93613951
TT
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5274$as_echo "no" >&6; }
93613951
TT
5275 PKG_CONFIG=""
5276 fi
57aa50d4
TT
5277fi
5278LIBUUID=
5279DEPLIBUUID=
5280STATIC_LIBUUID=
5281DEPSTATIC_LIBUUID=
5282PROFILED_LIBUUID=
5283DEPPROFILED_LIBUUID=
5284UUID_CMT=
5285# Check whether --enable-libuuid was given.
5286if test "${enable_libuuid+set}" = set; then :
5287 enableval=$enable_libuuid; if test "$enableval" = "no"
5610f992 5288then
57aa50d4 5289 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5290 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5291 fi
5292
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5294$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
d6a4bcb5 5295if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
57aa50d4 5296 $as_echo_n "(cached) " >&6
5610f992 5297else
57aa50d4 5298 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5299LIBS="-luuid $LIBS"
57aa50d4
TT
5300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301/* end confdefs.h. */
5610f992 5302
57aa50d4
TT
5303/* Override any GCC internal prototype to avoid an error.
5304 Use char because int might match the return type of a GCC
5305 builtin and then its argument prototype would still apply. */
5306#ifdef __cplusplus
5307extern "C"
5308#endif
5309char uuid_generate ();
5310int
5311main ()
5312{
5313return uuid_generate ();
5314 ;
5315 return 0;
5316}
5317_ACEOF
5318if ac_fn_c_try_link "$LINENO"; then :
5319 ac_cv_lib_uuid_uuid_generate=yes
5320else
5321 ac_cv_lib_uuid_uuid_generate=no
5322fi
5323rm -f core conftest.err conftest.$ac_objext \
5324 conftest$ac_exeext conftest.$ac_ext
5325LIBS=$ac_check_lib_save_LIBS
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5328$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
d6a4bcb5 5329if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
57aa50d4
TT
5330 LIBUUID=`$PKG_CONFIG --libs uuid`;
5331 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5332else
d6a4bcb5 5333 as_fn_error $? "external uuid library not found" "$LINENO" 5
5610f992
TT
5334fi
5335
5afdf37b 5336 PROFILED_LIBUUID=$LIBUUID
57aa50d4
TT
5337 UUID_CMT=#
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5339$as_echo "Disabling private uuid library" >&6; }
5610f992 5340else
57aa50d4
TT
5341 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5342 DEPLIBUUID=$LIBUUID
5343 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5344 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5345 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5346 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5348$as_echo "Enabling private uuid library" >&6; }
5349fi
5610f992 5350
57aa50d4 5351else
f5dffb81
TT
5352 if test -n "$PKG_CONFIG"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5354$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5355if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357else
5358 ac_check_lib_save_LIBS=$LIBS
5359LIBS="-luuid $LIBS"
5360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h. */
5362
5363/* Override any GCC internal prototype to avoid an error.
5364 Use char because int might match the return type of a GCC
5365 builtin and then its argument prototype would still apply. */
5366#ifdef __cplusplus
5367extern "C"
5368#endif
5369char uuid_generate ();
5370int
5371main ()
5372{
5373return uuid_generate ();
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378if ac_fn_c_try_link "$LINENO"; then :
5379 ac_cv_lib_uuid_uuid_generate=yes
5380else
5381 ac_cv_lib_uuid_uuid_generate=no
5382fi
5383rm -f core conftest.err conftest.$ac_objext \
5384 conftest$ac_exeext conftest.$ac_ext
5385LIBS=$ac_check_lib_save_LIBS
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5388$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5389if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5390 LIBUUID=`$PKG_CONFIG --libs uuid`;
5391 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5392fi
5393
5394fi
5395if test -n "$LIBUUID"; then
5396 PROFILED_LIBUUID=$LIBUUID
5397 UUID_CMT=#
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5399$as_echo "Using system uuid by default" >&6; }
5400else
5401 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5402 DEPLIBUUID=$LIBUUID
5403 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5404 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5405 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5406 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
57aa50d4 5408$as_echo "Enabling private uuid library by default" >&6; }
f5dffb81 5409fi
5610f992
TT
5410
5411fi
5412
5413
cdf186e4 5414
a64c9c13 5415
93636bde
TT
5416
5417
93636bde 5418
93636bde
TT
5419
5420
57aa50d4 5421
93613951
TT
5422
5423
5424
5425
5426
57aa50d4 5427if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5428 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5429 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5430set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5433if ${ac_cv_path_PKG_CONFIG+:} false; then :
39fd3d4f 5434 $as_echo_n "(cached) " >&6
a64c9c13 5435else
57aa50d4
TT
5436 case $PKG_CONFIG in
5437 [\\/]* | ?:[\\/]*)
5438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5439 ;;
e1052144 5440 *)
b0cacab0
TT
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH
5443do
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
57aa50d4 5446 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5448 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5451 fi
b0cacab0 5452done
57aa50d4 5453 done
e1052144 5454IFS=$as_save_IFS
b0cacab0 5455
57aa50d4 5456 ;;
b0cacab0
TT
5457esac
5458fi
57aa50d4
TT
5459PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5460if test -n "$PKG_CONFIG"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5462$as_echo "$PKG_CONFIG" >&6; }
07a0db15 5463else
57aa50d4 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5465$as_echo "no" >&6; }
07a0db15 5466fi
07a0db15 5467
57aa50d4
TT
5468
5469fi
5470if test -z "$ac_cv_path_PKG_CONFIG"; then
5471 ac_pt_PKG_CONFIG=$PKG_CONFIG
5472 # Extract the first word of "pkg-config", so it can be a program name with args.
5473set dummy pkg-config; ac_word=$2
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 5475$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5476if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
39fd3d4f 5477 $as_echo_n "(cached) " >&6
a64c9c13 5478else
57aa50d4 5479 case $ac_pt_PKG_CONFIG in
b0cacab0 5480 [\\/]* | ?:[\\/]*)
57aa50d4 5481 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
b0cacab0
TT
5482 ;;
5483 *)
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485for as_dir in $PATH
5486do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
57aa50d4 5489 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5491 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
5493 break 2
5494 fi
5495done
57aa50d4 5496 done
e1052144 5497IFS=$as_save_IFS
a64c9c13 5498
b0cacab0
TT
5499 ;;
5500esac
a64c9c13 5501fi
57aa50d4
TT
5502ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5503if test -n "$ac_pt_PKG_CONFIG"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5505$as_echo "$ac_pt_PKG_CONFIG" >&6; }
a64c9c13 5506else
57aa50d4 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5508$as_echo "no" >&6; }
a64c9c13 5509fi
a64c9c13 5510
57aa50d4
TT
5511 if test "x$ac_pt_PKG_CONFIG" = x; then
5512 PKG_CONFIG=""
b0cacab0 5513 else
57aa50d4
TT
5514 case $cross_compiling:$ac_tool_warned in
5515yes:)
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5518ac_tool_warned=yes ;;
5519esac
5520 PKG_CONFIG=$ac_pt_PKG_CONFIG
b0cacab0 5521 fi
57aa50d4
TT
5522else
5523 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
a64c9c13 5524fi
93636bde 5525
a64c9c13 5526fi
57aa50d4 5527if test -n "$PKG_CONFIG"; then
93613951
TT
5528 _pkg_min_version=0.9.0
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5530$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5531 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5533$as_echo "yes" >&6; }
93613951
TT
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5536$as_echo "no" >&6; }
93613951
TT
5537 PKG_CONFIG=""
5538 fi
57aa50d4
TT
5539fi
5540LIBBLKID=
5541DEPLIBBLKID=
5542STATIC_LIBBLKID=
5543DEPSTATIC_LIBBLKID=
5544PROFILED_LIBBLKID=
5545DEPPROFILED_LIBBLKID=
5546BLKID_CMT=
d1154eb4 5547
57aa50d4
TT
5548# Check whether --enable-libblkid was given.
5549if test "${enable_libblkid+set}" = set; then :
5550 enableval=$enable_libblkid; if test "$enableval" = "no"
5551then
5552 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5553 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5554 fi
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5557$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
d6a4bcb5 5558if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
39fd3d4f 5559 $as_echo_n "(cached) " >&6
a64c9c13 5560else
57aa50d4 5561 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5562LIBS="-lblkid -luuid $LIBS"
57aa50d4
TT
5563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h. */
5565
5566/* Override any GCC internal prototype to avoid an error.
5567 Use char because int might match the return type of a GCC
5568 builtin and then its argument prototype would still apply. */
5569#ifdef __cplusplus
5570extern "C"
5571#endif
5572char blkid_get_cache ();
5573int
5574main ()
5575{
5576return blkid_get_cache ();
5577 ;
5578 return 0;
5579}
5580_ACEOF
5581if ac_fn_c_try_link "$LINENO"; then :
5582 ac_cv_lib_blkid_blkid_get_cache=yes
b0cacab0 5583else
57aa50d4 5584 ac_cv_lib_blkid_blkid_get_cache=no
a64c9c13 5585fi
57aa50d4
TT
5586rm -f core conftest.err conftest.$ac_objext \
5587 conftest$ac_exeext conftest.$ac_ext
5588LIBS=$ac_check_lib_save_LIBS
a64c9c13 5589fi
57aa50d4
TT
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5591$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
d6a4bcb5 5592if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
57aa50d4
TT
5593 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5594 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
b0cacab0 5595else
d6a4bcb5 5596 as_fn_error $? "external blkid library not found" "$LINENO" 5
a64c9c13 5597fi
93636bde 5598
57aa50d4 5599 BLKID_CMT=#
5afdf37b 5600 PROFILED_LIBBLKID=$LIBBLKID
57aa50d4
TT
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5602$as_echo "Disabling private blkid library" >&6; }
07a0db15 5603else
57aa50d4
TT
5604 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5605 DEPLIBBLKID=$LIBBLKID
5606 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5607 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5608 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5609 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5610 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5613$as_echo "Enabling private blkid library" >&6; }
b0cacab0 5614fi
57aa50d4 5615
a64c9c13 5616else
f5dffb81
TT
5617 if test -n "$PKG_CONFIG"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5619$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5620if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622else
5623 ac_check_lib_save_LIBS=$LIBS
5624LIBS="-lblkid $LIBS"
5625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h. */
5627
5628/* Override any GCC internal prototype to avoid an error.
5629 Use char because int might match the return type of a GCC
5630 builtin and then its argument prototype would still apply. */
5631#ifdef __cplusplus
5632extern "C"
5633#endif
5634char blkid_get_cache ();
5635int
5636main ()
5637{
5638return blkid_get_cache ();
5639 ;
5640 return 0;
5641}
5642_ACEOF
5643if ac_fn_c_try_link "$LINENO"; then :
5644 ac_cv_lib_blkid_blkid_get_cache=yes
5645else
5646 ac_cv_lib_blkid_blkid_get_cache=no
5647fi
5648rm -f core conftest.err conftest.$ac_objext \
5649 conftest$ac_exeext conftest.$ac_ext
5650LIBS=$ac_check_lib_save_LIBS
5651fi
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5653$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5654if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5655 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5656 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5657fi
5658
5659fi
5660if test -n "$LIBBLKID"; then
5661 BLKID_CMT=#
5662 PROFILED_LIBBLKID=$LIBBLKID
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5664$as_echo "Using system blkid library by default" >&6; }
5665else
5666 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5667 DEPLIBBLKID=$LIBBLKID
5668 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5669 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5670 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5671 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5672 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
57aa50d4 5673
f5dffb81 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
57aa50d4 5675$as_echo "Enabling private blkid library by default" >&6; }
f5dffb81 5676fi
57aa50d4 5677
a64c9c13 5678fi
07a0db15 5679
a64c9c13 5680
b0cacab0 5681
b0cacab0 5682
a64c9c13 5683
b0cacab0 5684
07a0db15 5685
57aa50d4 5686
3df6014a
TT
5687
5688# Check whether --enable-backtrace was given.
5689if test "${enable_backtrace+set}" = set; then :
5690 enableval=$enable_backtrace; if test "$enableval" = "no"
5691then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5693$as_echo "Disabling use of backtrace" >&6; }
5694 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5695
5696else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5698$as_echo "Enabling use of backtrace" >&6; }
5699fi
5700
5701else
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5703$as_echo "Enabling use of backtrace by default" >&6; }
5704
5705fi
5706
57aa50d4
TT
5707# Check whether --enable-debugfs was given.
5708if test "${enable_debugfs+set}" = set; then :
5709 enableval=$enable_debugfs; if test "$enableval" = "no"
5710then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5712$as_echo "Disabling debugfs support" >&6; }
5713 DEBUGFS_CMT="#"
b0cacab0 5714else
57aa50d4
TT
5715 DEBUGFS_CMT=
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5717$as_echo "Enabling debugfs support" >&6; }
b0cacab0 5718fi
a64c9c13 5719
b0cacab0 5720else
57aa50d4
TT
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5722$as_echo "Enabling debugfs support by default" >&6; }
5723DEBUGFS_CMT=
a64c9c13 5724
93636bde 5725fi
57aa50d4
TT
5726
5727
5728# Check whether --enable-imager was given.
5729if test "${enable_imager+set}" = set; then :
5730 enableval=$enable_imager; if test "$enableval" = "no"
5731then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5733$as_echo "Disabling e2image support" >&6; }
5734 IMAGER_CMT="#"
b0cacab0 5735else
57aa50d4
TT
5736 IMAGER_CMT=
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5738$as_echo "Enabling e2image support" >&6; }
b0cacab0
TT
5739fi
5740
b0cacab0 5741else
57aa50d4
TT
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5743$as_echo "Enabling e2image support by default" >&6; }
5744IMAGER_CMT=
5745
93636bde
TT
5746fi
5747
a64c9c13 5748
57aa50d4
TT
5749# Check whether --enable-resizer was given.
5750if test "${enable_resizer+set}" = set; then :
5751 enableval=$enable_resizer; if test "$enableval" = "no"
5752then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5754$as_echo "Disabling e2resize support" >&6; }
5755 RESIZER_CMT="#"
b0cacab0 5756else
57aa50d4
TT
5757 RESIZER_CMT=
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5759$as_echo "Enabling e2resize support" >&6; }
5760fi
b0cacab0 5761
b0cacab0 5762else
57aa50d4
TT
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5764$as_echo "Enabling e2resize support by default" >&6; }
5765RESIZER_CMT=
b0cacab0 5766
b0cacab0 5767fi
e1052144 5768
57aa50d4 5769
8d9c50c5
TT
5770# Check whether --enable-defrag was given.
5771if test "${enable_defrag+set}" = set; then :
5772 enableval=$enable_defrag; if test "$enableval" = "no"
5773then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5775$as_echo "Disabling e4defrag support" >&6; }
5776 DEFRAG_CMT="#"
5777else
5778 DEFRAG_CMT=
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5780$as_echo "Enabling e4defrag support" >&6; }
5781fi
5782
5783else
6c59a665
TT
5784 if test -z "$WITH_DIET_LIBC"
5785then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
8d9c50c5 5787$as_echo "Enabling e4defrag support by default" >&6; }
6c59a665
TT
5788 DEFRAG_CMT=
5789else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5791$as_echo "Disabling e4defrag support by default" >&6; }
5792 DEFRAG_CMT="#"
5793fi
8d9c50c5
TT
5794
5795fi
5796
5797
57aa50d4
TT
5798# Check whether --enable-fsck was given.
5799if test "${enable_fsck+set}" = set; then :
5800 enableval=$enable_fsck; if test "$enableval" = "no"
5801then
5802 FSCK_PROG='' FSCK_MAN=''
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5804$as_echo "Not building fsck wrapper" >&6; }
5805else
5806 FSCK_PROG=fsck FSCK_MAN=fsck.8
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5808$as_echo "Building fsck wrapper" >&6; }
a64c9c13
TT
5809fi
5810
57aa50d4
TT
5811else
5812 case "$host_os" in
5813 gnu*)
5814 FSCK_PROG='' FSCK_MAN=''
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5816$as_echo "Not building fsck wrapper by default" >&6; }
5817 ;;
5818 *)
5819 FSCK_PROG=fsck FSCK_MAN=fsck.8
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5821$as_echo "Building fsck wrapper by default" >&6; }
5822esac
b0cacab0 5823
57aa50d4 5824fi
b0cacab0 5825
93636bde 5826
b0cacab0 5827
57aa50d4
TT
5828# Check whether --enable-e2initrd-helper was given.
5829if test "${enable_e2initrd_helper+set}" = set; then :
5830 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5831then
5832 E2INITRD_PROG='' E2INITRD_MAN=''
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5834$as_echo "Not building e2initrd helper" >&6; }
5835else
5836 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5838$as_echo "Building e2initrd helper" >&6; }
5839fi
a64c9c13 5840
a64c9c13 5841else
57aa50d4
TT
5842 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5844$as_echo "Building e2initrd helper by default" >&6; }
b0cacab0 5845
a64c9c13 5846fi
e1052144 5847
57aa50d4
TT
5848
5849
5850# Check whether --enable-tls was given.
5851if test "${enable_tls+set}" = set; then :
5852 enableval=$enable_tls; if test "$enableval" = "no"
5853then
5854 try_tls=""
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5856$as_echo "Disabling thread local support" >&6; }
5857else
5858 try_tls="yes"
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5860$as_echo "Enabling thread local support" >&6; }
a64c9c13
TT
5861fi
5862
57aa50d4
TT
5863else
5864 if test -n "$WITH_DIET_LIBC"
5865then
5866 try_tls=""
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5868$as_echo "Diet libc does not support thread local support" >&6; }
5869else
5870 try_tls="yes"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5872$as_echo "Try using thread local support by default" >&6; }
5873fi
a64c9c13 5874
93636bde 5875fi
07a0db15 5876
57aa50d4
TT
5877if test "$try_tls" = "yes"
5878then
a64c9c13 5879
57aa50d4
TT
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5881$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
d6a4bcb5 5882 if ${ac_cv_tls+:} false; then :
39fd3d4f 5883 $as_echo_n "(cached) " >&6
b0cacab0 5884else
b0cacab0 5885
57aa50d4
TT
5886 ax_tls_keywords="__thread __declspec(thread) none"
5887 for ax_tls_keyword in $ax_tls_keywords; do
5888 case $ax_tls_keyword in
5889 none) ac_cv_tls=none ; break ;;
5890 *)
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892/* end confdefs.h. */
5893#include <stdlib.h>
5894 static void
5895 foo(void) {
5896 static $ax_tls_keyword int bar;
5897 exit(1);
5898 }
b0cacab0
TT
5899int
5900main ()
5901{
57aa50d4 5902
b0cacab0
TT
5903 ;
5904 return 0;
5905}
5906_ACEOF
57aa50d4
TT
5907if ac_fn_c_try_compile "$LINENO"; then :
5908 ac_cv_tls=$ax_tls_keyword ; break
b0cacab0 5909else
57aa50d4 5910 ac_cv_tls=none
b0cacab0 5911
b0cacab0 5912fi
e1052144 5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
5914 esac
5915 done
5916
b0cacab0 5917fi
b0cacab0 5918
57aa50d4
TT
5919
5920 if test "$ac_cv_tls" != "none"; then
5921
5922cat >>confdefs.h <<_ACEOF
5923#define TLS $ac_cv_tls
b0cacab0 5924_ACEOF
93636bde 5925
b0cacab0 5926 fi
57aa50d4
TT
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5928$as_echo "$ac_cv_tls" >&6; }
b0cacab0 5929
57aa50d4 5930fi
d1154eb4 5931
57aa50d4
TT
5932# Check whether --enable-uuidd was given.
5933if test "${enable_uuidd+set}" = set; then :
5934 enableval=$enable_uuidd; if test "$enableval" = "no"
5935then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5937$as_echo "Not building uuidd" >&6; }
5938 UUIDD_CMT="#"
a64c9c13 5939else
57aa50d4
TT
5940 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5941
5942 UUIDD_CMT=""
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5944$as_echo "Building uuidd" >&6; }
5945fi
a64c9c13 5946
a64c9c13 5947else
57aa50d4 5948 $as_echo "#define USE_UUIDD 1" >>confdefs.h
a64c9c13 5949
e3d10158
TT
5950if test -z "$UUID_CMT"
5951then
5952 UUIDD_CMT=""
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
57aa50d4 5954$as_echo "Building uuidd by default" >&6; }
e3d10158
TT
5955else
5956 UUIDD_CMT="#"
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5958$as_echo "Disabling uuidd by default" >&6; }
5959fi
e1052144 5960
a64c9c13 5961fi
e1052144 5962
93636bde 5963
d6a4bcb5
TB
5964
5965# Check whether --enable-mmp was given.
5966if test "${enable_mmp+set}" = set; then :
5967 enableval=$enable_mmp; if test "$enableval" = "no"
5968then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5970$as_echo "Disabling mmp support" >&6; }
5971else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5973$as_echo "Enabling mmp support" >&6; }
5974 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5975
5976fi
5977
5978else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5980$as_echo "Enabling mmp support by default" >&6; }
5981$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5982
5983
1625bf42
TB
5984fi
5985
5986
749f0712
TT
5987# Check whether --enable-tdb was given.
5988if test "${enable_tdb+set}" = set; then :
5989 enableval=$enable_tdb; if test "$enableval" = "no"
5990then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5992$as_echo "Disabling tdb support" >&6; }
5993 TDB_CMT="#"
5994 TDB_MAN_COMMENT='.\"'
5995else
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5997$as_echo "Enabling tdb support" >&6; }
5998 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5999
6000 TDB_CMT=""
6001 TDB_MAN_COMMENT=""
6002fi
6003
6004else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6006$as_echo "Enabling mmp support by default" >&6; }
6007$as_echo "#define CONFIG_TDB 1" >>confdefs.h
6008
6009TDB_CMT=""
6010TDB_MAN_COMMENT=""
6011
6012fi
6013
6014
6015
6016
1625bf42
TB
6017# Check whether --enable-bmap-stats was given.
6018if test "${enable_bmap_stats+set}" = set; then :
6019 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6020then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6022$as_echo "Disabling bitmap statistics support" >&6; }
6023else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6025$as_echo "Enabling bitmap statistics support" >&6; }
6026 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6027
6028fi
6029
6030else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6032$as_echo "Enabling bitmap statistics support by default" >&6; }
6033$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6034
6035
6036fi
6037
6038
6039# Check whether --enable-bmap-stats-ops was given.
6040if test "${enable_bmap_stats_ops+set}" = set; then :
6041 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6042then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6044$as_echo "Disabling additional bitmap statistics" >&6; }
6045else
6046 if test "x${enable_bmap_stats}" = "xno"; then :
6047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6049as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6050See \`config.log' for more details" "$LINENO" 5; }
6051fi
6052
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6054$as_echo "Enabling additional bitmap statistics" >&6; }
6055 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6056
6057fi
6058
6059else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6061$as_echo "Disabling additional bitmap statistics by default" >&6; }
6062
d6a4bcb5
TB
6063fi
6064
57aa50d4 6065MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
a64c9c13 6066
57aa50d4
TT
6067GETTEXT_PACKAGE=e2fsprogs
6068PACKAGE=e2fsprogs
6069VERSION="$E2FSPROGS_VERSION"
6070VERSION=0.14.1
d1154eb4 6071
57aa50d4
TT
6072cat >>confdefs.h <<_ACEOF
6073#define PACKAGE "$PACKAGE"
b0cacab0 6074_ACEOF
a64c9c13 6075
d1154eb4 6076
57aa50d4
TT
6077cat >>confdefs.h <<_ACEOF
6078#define VERSION "$VERSION"
6079_ACEOF
6080
6081
6082
6083
6084
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6086$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6087set x ${MAKE-make}
6088ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6a4bcb5 6089if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
39fd3d4f 6090 $as_echo_n "(cached) " >&6
b0cacab0 6091else
57aa50d4
TT
6092 cat >conftest.make <<\_ACEOF
6093SHELL = /bin/sh
6094all:
6095 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 6096_ACEOF
d6a4bcb5 6097# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
6098case `${MAKE-make} -f conftest.make 2>/dev/null` in
6099 *@@@%%%=?*=@@@%%%*)
6100 eval ac_cv_prog_make_${ac_make}_set=yes;;
6101 *)
6102 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 6103esac
57aa50d4
TT
6104rm -f conftest.make
6105fi
6106if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6108$as_echo "yes" >&6; }
6109 SET_MAKE=
39fd3d4f 6110else
57aa50d4
TT
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112$as_echo "no" >&6; }
6113 SET_MAKE="MAKE=${MAKE-make}"
39fd3d4f
SJR
6114fi
6115
57aa50d4
TT
6116# Find a good install program. We prefer a C program (faster),
6117# so one script is as good as another. But avoid the broken or
6118# incompatible versions:
6119# SysV /etc/install, /usr/sbin/install
6120# SunOS /usr/etc/install
6121# IRIX /sbin/install
6122# AIX /bin/install
6123# AmigaOS /C/install, which installs bootblocks on floppy discs
6124# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6125# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6126# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6127# OS/2's system install, which has a completely different semantic
6128# ./install, which can be erroneously created by make from ./install.sh.
6129# Reject install programs that cannot install multiple files.
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6131$as_echo_n "checking for a BSD-compatible install... " >&6; }
6132if test -z "$INSTALL"; then
d6a4bcb5 6133if ${ac_cv_path_install+:} false; then :
57aa50d4 6134 $as_echo_n "(cached) " >&6
93636bde 6135else
57aa50d4
TT
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 # Account for people who put trailing slashes in PATH elements.
6142case $as_dir/ in #((
6143 ./ | .// | /[cC]/* | \
6144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6145 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6146 /usr/ucb/* ) ;;
6147 *)
6148 # OSF1 and SCO ODT 3.0 have their own names for install.
6149 # Don't use installbsd from OSF since it installs stuff as root
6150 # by default.
6151 for ac_prog in ginstall scoinst install; do
6152 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6153 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
57aa50d4
TT
6154 if test $ac_prog = install &&
6155 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6156 # AIX install. It has an incompatible calling convention.
6157 :
6158 elif test $ac_prog = install &&
6159 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6160 # program-specific install script used by HP pwplus--don't use.
6161 :
6162 else
6163 rm -rf conftest.one conftest.two conftest.dir
6164 echo one > conftest.one
6165 echo two > conftest.two
6166 mkdir conftest.dir
6167 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6168 test -s conftest.one && test -s conftest.two &&
6169 test -s conftest.dir/conftest.one &&
6170 test -s conftest.dir/conftest.two
6171 then
6172 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6173 break 3
6174 fi
6175 fi
6176 fi
6177 done
6178 done
6179 ;;
6180esac
6181
6182 done
6183IFS=$as_save_IFS
b0cacab0 6184
57aa50d4 6185rm -rf conftest.one conftest.two conftest.dir
39fd3d4f 6186
93636bde 6187fi
57aa50d4
TT
6188 if test "${ac_cv_path_install+set}" = set; then
6189 INSTALL=$ac_cv_path_install
6190 else
6191 # As a last resort, use the slow shell script. Don't cache a
6192 # value for INSTALL within a source directory, because that will
6193 # break other packages using the cache if that directory is
6194 # removed, or if the value is a relative name.
6195 INSTALL=$ac_install_sh
6196 fi
93636bde 6197fi
57aa50d4
TT
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6199$as_echo "$INSTALL" >&6; }
a64c9c13 6200
57aa50d4
TT
6201# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6202# It thinks the first close brace ends the variable substitution.
6203test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b0cacab0 6204
57aa50d4 6205test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a64c9c13 6206
57aa50d4 6207test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39fd3d4f 6208
93613951
TT
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6210$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6211if test -z "$MKDIR_P"; then
6212 if ${ac_cv_path_mkdir+:} false; then :
6213 $as_echo_n "(cached) " >&6
6214else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6217do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_prog in mkdir gmkdir; do
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6223 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6224 'mkdir (GNU coreutils) '* | \
6225 'mkdir (coreutils) '* | \
6226 'mkdir (fileutils) '4.1*)
6227 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6228 break 3;;
6229 esac
6230 done
6231 done
6232 done
6233IFS=$as_save_IFS
6234
6235fi
39fd3d4f 6236
93613951
TT
6237 test -d ./--version && rmdir ./--version
6238 if test "${ac_cv_path_mkdir+set}" = set; then
6239 MKDIR_P="$ac_cv_path_mkdir -p"
6240 else
6241 # As a last resort, use the slow shell script. Don't cache a
6242 # value for MKDIR_P within a source directory, because that will
6243 # break other packages using the cache if that directory is
6244 # removed, or if the value is a relative name.
6245 MKDIR_P="$ac_install_sh -d"
57aa50d4 6246 fi
93613951
TT
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6249$as_echo "$MKDIR_P" >&6; }
6250
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6252$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6253if ${ac_cv_path_SED+:} false; then :
6254 $as_echo_n "(cached) " >&6
6255else
6256 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6257 for ac_i in 1 2 3 4 5 6 7; do
6258 ac_script="$ac_script$as_nl$ac_script"
6259 done
6260 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6261 { ac_script=; unset ac_script;}
6262 if test -z "$SED"; then
6263 ac_path_SED_found=false
6264 # Loop through the user's path and test for each of PROGNAME-LIST
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_prog in sed gsed; do
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6273 as_fn_executable_p "$ac_path_SED" || continue
6274# Check for GNU ac_path_SED and select it if it is found.
6275 # Check for GNU $ac_path_SED
6276case `"$ac_path_SED" --version 2>&1` in
6277*GNU*)
6278 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6279*)
6280 ac_count=0
6281 $as_echo_n 0123456789 >"conftest.in"
6282 while :
6283 do
6284 cat "conftest.in" "conftest.in" >"conftest.tmp"
6285 mv "conftest.tmp" "conftest.in"
6286 cp "conftest.in" "conftest.nl"
6287 $as_echo '' >> "conftest.nl"
6288 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6290 as_fn_arith $ac_count + 1 && ac_count=$as_val
6291 if test $ac_count -gt ${ac_path_SED_max-0}; then
6292 # Best one so far, save it but keep looking for a better one
6293 ac_cv_path_SED="$ac_path_SED"
6294 ac_path_SED_max=$ac_count
6295 fi
6296 # 10*(2^10) chars as input seems more than enough
6297 test $ac_count -gt 10 && break
6298 done
6299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6300esac
6301
6302 $ac_path_SED_found && break 3
6303 done
6304 done
6305 done
6306IFS=$as_save_IFS
6307 if test -z "$ac_cv_path_SED"; then
6308 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
57aa50d4 6309 fi
93613951
TT
6310else
6311 ac_cv_path_SED=$SED
6312fi
b0cacab0 6313
93613951
TT
6314fi
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6316$as_echo "$ac_cv_path_SED" >&6; }
6317 SED="$ac_cv_path_SED"
6318 rm -f conftest.sed
39fd3d4f 6319
e1052144 6320
57aa50d4
TT
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6322$as_echo_n "checking whether NLS is requested... " >&6; }
6323 # Check whether --enable-nls was given.
6324if test "${enable_nls+set}" = set; then :
6325 enableval=$enable_nls; USE_NLS=$enableval
b0cacab0 6326else
57aa50d4
TT
6327 USE_NLS=yes
6328fi
b0cacab0 6329
57aa50d4
TT
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6331$as_echo "$USE_NLS" >&6; }
93636bde 6332
a64c9c13 6333
a64c9c13 6334
b0cacab0 6335
93613951
TT
6336 GETTEXT_MACRO_VERSION=0.18
6337
6338
b0cacab0 6339
a64c9c13 6340
57aa50d4
TT
6341# Prepare PATH_SEPARATOR.
6342# The user is always right.
6343if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6344 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6345 # contains only /bin. Note that ksh looks also at the FPATH variable,
6346 # so we have to set that as well for the test.
6347 PATH_SEPARATOR=:
6348 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6349 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6350 || PATH_SEPARATOR=';'
6351 }
57aa50d4 6352fi
b0cacab0 6353
57aa50d4
TT
6354# Find out how to test for executable files. Don't use a zero-byte file,
6355# as systems may use methods other than mode bits to determine executability.
6356cat >conf$$.file <<_ASEOF
6357#! /bin/sh
6358exit 0
6359_ASEOF
6360chmod +x conf$$.file
6361if test -x conf$$.file >/dev/null 2>&1; then
6362 ac_executable_p="test -x"
6363else
6364 ac_executable_p="test -f"
6365fi
6366rm -f conf$$.file
b0cacab0 6367
57aa50d4
TT
6368# Extract the first word of "msgfmt", so it can be a program name with args.
6369set dummy msgfmt; ac_word=$2
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6372if ${ac_cv_path_MSGFMT+:} false; then :
39fd3d4f 6373 $as_echo_n "(cached) " >&6
93636bde 6374else
57aa50d4
TT
6375 case "$MSGFMT" in
6376 [\\/]* | ?:[\\/]*)
6377 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6378 ;;
6379 *)
6380 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6381 for ac_dir in $PATH; do
6382 IFS="$ac_save_IFS"
6383 test -z "$ac_dir" && ac_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6386 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6387 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
57aa50d4
TT
6388 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6389 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6390 break 2
6391 fi
6392 fi
6393 done
6394 done
6395 IFS="$ac_save_IFS"
6396 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6397 ;;
e1052144 6398esac
b0cacab0 6399fi
57aa50d4
TT
6400MSGFMT="$ac_cv_path_MSGFMT"
6401if test "$MSGFMT" != ":"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6403$as_echo "$MSGFMT" >&6; }
6404else
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406$as_echo "no" >&6; }
b0cacab0 6407fi
a64c9c13 6408
57aa50d4
TT
6409 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6410set dummy gmsgfmt; ac_word=$2
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6413if ${ac_cv_path_GMSGFMT+:} false; then :
39fd3d4f 6414 $as_echo_n "(cached) " >&6
93636bde 6415else
57aa50d4
TT
6416 case $GMSGFMT in
6417 [\\/]* | ?:[\\/]*)
6418 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6419 ;;
6420 *)
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
6428 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432done
6433 done
6434IFS=$as_save_IFS
a64c9c13 6435
57aa50d4
TT
6436 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6437 ;;
e1052144 6438esac
57aa50d4
TT
6439fi
6440GMSGFMT=$ac_cv_path_GMSGFMT
6441if test -n "$GMSGFMT"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6443$as_echo "$GMSGFMT" >&6; }
b0cacab0 6444else
57aa50d4
TT
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446$as_echo "no" >&6; }
b0cacab0 6447fi
e1052144 6448
b0cacab0 6449
b0cacab0 6450
93613951
TT
6451 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6452 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6453 *) MSGFMT_015=$MSGFMT ;;
6454 esac
6455
6456 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6457 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6458 *) GMSGFMT_015=$GMSGFMT ;;
6459 esac
6460
6461
57aa50d4
TT
6462
6463# Prepare PATH_SEPARATOR.
6464# The user is always right.
6465if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6466 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6467 # contains only /bin. Note that ksh looks also at the FPATH variable,
6468 # so we have to set that as well for the test.
6469 PATH_SEPARATOR=:
6470 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6471 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6472 || PATH_SEPARATOR=';'
6473 }
57aa50d4 6474fi
b0cacab0 6475
57aa50d4
TT
6476# Find out how to test for executable files. Don't use a zero-byte file,
6477# as systems may use methods other than mode bits to determine executability.
6478cat >conf$$.file <<_ASEOF
6479#! /bin/sh
6480exit 0
6481_ASEOF
6482chmod +x conf$$.file
6483if test -x conf$$.file >/dev/null 2>&1; then
6484 ac_executable_p="test -x"
6485else
6486 ac_executable_p="test -f"
6487fi
6488rm -f conf$$.file
b0cacab0 6489
57aa50d4
TT
6490# Extract the first word of "xgettext", so it can be a program name with args.
6491set dummy xgettext; ac_word=$2
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6494if ${ac_cv_path_XGETTEXT+:} false; then :
39fd3d4f 6495 $as_echo_n "(cached) " >&6
a64c9c13 6496else
57aa50d4
TT
6497 case "$XGETTEXT" in
6498 [\\/]* | ?:[\\/]*)
6499 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6500 ;;
6501 *)
6502 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6503 for ac_dir in $PATH; do
6504 IFS="$ac_save_IFS"
6505 test -z "$ac_dir" && ac_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6508 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6509 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
57aa50d4
TT
6510 (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
6511 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6512 break 2
6513 fi
6514 fi
6515 done
6516 done
6517 IFS="$ac_save_IFS"
6518 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6519 ;;
e1052144 6520esac
b0cacab0 6521fi
57aa50d4
TT
6522XGETTEXT="$ac_cv_path_XGETTEXT"
6523if test "$XGETTEXT" != ":"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6525$as_echo "$XGETTEXT" >&6; }
6526else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528$as_echo "no" >&6; }
b0cacab0 6529fi
b0cacab0 6530
57aa50d4 6531 rm -f messages.po
a64c9c13 6532
93613951
TT
6533 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6534 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6535 *) XGETTEXT_015=$XGETTEXT ;;
6536 esac
6537
6538
b0cacab0 6539
57aa50d4
TT
6540# Prepare PATH_SEPARATOR.
6541# The user is always right.
6542if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6543 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6544 # contains only /bin. Note that ksh looks also at the FPATH variable,
6545 # so we have to set that as well for the test.
6546 PATH_SEPARATOR=:
6547 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6548 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6549 || PATH_SEPARATOR=';'
6550 }
57aa50d4 6551fi
b0cacab0 6552
57aa50d4
TT
6553# Find out how to test for executable files. Don't use a zero-byte file,
6554# as systems may use methods other than mode bits to determine executability.
6555cat >conf$$.file <<_ASEOF
6556#! /bin/sh
6557exit 0
6558_ASEOF
6559chmod +x conf$$.file
6560if test -x conf$$.file >/dev/null 2>&1; then
6561 ac_executable_p="test -x"
6562else
6563 ac_executable_p="test -f"
6564fi
6565rm -f conf$$.file
6566
6567# Extract the first word of "msgmerge", so it can be a program name with args.
6568set dummy msgmerge; ac_word=$2
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6571if ${ac_cv_path_MSGMERGE+:} false; then :
39fd3d4f 6572 $as_echo_n "(cached) " >&6
b0cacab0 6573else
57aa50d4
TT
6574 case "$MSGMERGE" in
6575 [\\/]* | ?:[\\/]*)
6576 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6577 ;;
6578 *)
6579 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6580 for ac_dir in $PATH; do
6581 IFS="$ac_save_IFS"
6582 test -z "$ac_dir" && ac_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6585 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6586 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
57aa50d4
TT
6587 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6588 break 2
6589 fi
6590 fi
6591 done
6592 done
6593 IFS="$ac_save_IFS"
6594 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6595 ;;
e1052144 6596esac
57aa50d4
TT
6597fi
6598MSGMERGE="$ac_cv_path_MSGMERGE"
6599if test "$MSGMERGE" != ":"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6601$as_echo "$MSGMERGE" >&6; }
b0cacab0 6602else
57aa50d4
TT
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604$as_echo "no" >&6; }
b0cacab0 6605fi
e1052144 6606
93636bde 6607
93613951
TT
6608 test -n "$localedir" || localedir='${datadir}/locale'
6609
6610
6611 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6612
6613
6614 ac_config_commands="$ac_config_commands po-directories"
a64c9c13 6615
a64c9c13 6616
93613951
TT
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6619$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6620if ${ac_cv_gnu_library_2+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622else
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h. */
6625
6626#include <features.h>
6627#ifdef __GNU_LIBRARY__
6628 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6629 Lucky GNU user
6630 #endif
6631#endif
6632
6633_ACEOF
6634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6635 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6636 ac_cv_gnu_library_2=yes
6637else
6638 ac_cv_gnu_library_2=no
6639fi
6640rm -f conftest*
6641
a64c9c13 6642
a64c9c13 6643
93613951
TT
6644fi
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6646$as_echo "$ac_cv_gnu_library_2" >&6; }
6647
6648 GLIBC2="$ac_cv_gnu_library_2"
57aa50d4 6649
a64c9c13 6650
57aa50d4
TT
6651if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6653set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6656if ${ac_cv_prog_RANLIB+:} false; then :
39fd3d4f 6657 $as_echo_n "(cached) " >&6
b0cacab0 6658else
57aa50d4
TT
6659 if test -n "$RANLIB"; then
6660 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
b0cacab0 6661else
57aa50d4
TT
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
6669 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673done
6674 done
6675IFS=$as_save_IFS
d1154eb4
TT
6676
6677fi
6678fi
6679RANLIB=$ac_cv_prog_RANLIB
6680if test -n "$RANLIB"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6682$as_echo "$RANLIB" >&6; }
6683else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685$as_echo "no" >&6; }
6686fi
6687
6688
6689fi
6690if test -z "$ac_cv_prog_RANLIB"; then
6691 ac_ct_RANLIB=$RANLIB
6692 # Extract the first word of "ranlib", so it can be a program name with args.
6693set dummy ranlib; ac_word=$2
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6696if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d1154eb4
TT
6697 $as_echo_n "(cached) " >&6
6698else
6699 if test -n "$ac_ct_RANLIB"; then
6700 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d1154eb4
TT
6709 ac_cv_prog_ac_ct_RANLIB="ranlib"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713done
6714 done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6720if test -n "$ac_ct_RANLIB"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6722$as_echo "$ac_ct_RANLIB" >&6; }
6723else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725$as_echo "no" >&6; }
6726fi
6727
6728 if test "x$ac_ct_RANLIB" = x; then
6729 RANLIB=":"
6730 else
6731 case $cross_compiling:$ac_tool_warned in
6732yes:)
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6735ac_tool_warned=yes ;;
6736esac
6737 RANLIB=$ac_ct_RANLIB
6738 fi
6739else
6740 RANLIB="$ac_cv_prog_RANLIB"
6741fi
6742
6743
93613951
TT
6744
6745 CFLAG_VISIBILITY=
6746 HAVE_VISIBILITY=0
6747 if test -n "$GCC"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6749$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6750 if ${gl_cv_cc_vis_werror+:} false; then :
d1154eb4
TT
6751 $as_echo_n "(cached) " >&6
6752else
93613951
TT
6753
6754 gl_save_CFLAGS="$CFLAGS"
6755 CFLAGS="$CFLAGS -Werror"
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
6757/* end confdefs.h. */
6758
d1154eb4
TT
6759int
6760main ()
6761{
93613951 6762
d1154eb4
TT
6763 ;
6764 return 0;
6765}
6766_ACEOF
93613951
TT
6767if ac_fn_c_try_compile "$LINENO"; then :
6768 gl_cv_cc_vis_werror=yes
d1154eb4 6769else
93613951 6770 gl_cv_cc_vis_werror=no
d1154eb4 6771fi
93613951
TT
6772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 CFLAGS="$gl_save_CFLAGS"
d1154eb4
TT
6774fi
6775
93613951
TT
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6777$as_echo "$gl_cv_cc_vis_werror" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6779$as_echo_n "checking for simple visibility declarations... " >&6; }
6780 if ${gl_cv_cc_visibility+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782else
d1154eb4 6783
93613951
TT
6784 gl_save_CFLAGS="$CFLAGS"
6785 CFLAGS="$CFLAGS -fvisibility=hidden"
6786 if test $gl_cv_cc_vis_werror = yes; then
6787 CFLAGS="$CFLAGS -Werror"
6788 fi
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790/* end confdefs.h. */
6791extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6792 extern __attribute__((__visibility__("default"))) int exportedvar;
6793 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6794 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6795 void dummyfunc (void) {}
d1154eb4 6796
93613951
TT
6797int
6798main ()
6799{
d1154eb4 6800
93613951
TT
6801 ;
6802 return 0;
6803}
6804_ACEOF
6805if ac_fn_c_try_compile "$LINENO"; then :
6806 gl_cv_cc_visibility=yes
d1154eb4 6807else
93613951
TT
6808 gl_cv_cc_visibility=no
6809fi
6810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 CFLAGS="$gl_save_CFLAGS"
6812fi
d1154eb4 6813
93613951
TT
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6815$as_echo "$gl_cv_cc_visibility" >&6; }
6816 if test $gl_cv_cc_visibility = yes; then
6817 CFLAG_VISIBILITY="-fvisibility=hidden"
6818 HAVE_VISIBILITY=1
6819 fi
d1154eb4 6820 fi
d1154eb4 6821
d1154eb4
TT
6822
6823
93613951
TT
6824cat >>confdefs.h <<_ACEOF
6825#define HAVE_VISIBILITY $HAVE_VISIBILITY
6826_ACEOF
6827
6828
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6830$as_echo_n "checking for inline... " >&6; }
6831if ${ac_cv_c_inline+:} false; then :
57aa50d4
TT
6832 $as_echo_n "(cached) " >&6
6833else
93613951
TT
6834 ac_cv_c_inline=no
6835for ac_kw in inline __inline__ __inline; do
d1154eb4
TT
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837/* end confdefs.h. */
93613951
TT
6838#ifndef __cplusplus
6839typedef int foo_t;
6840static $ac_kw foo_t static_foo () {return 0; }
6841$ac_kw foo_t foo () {return 0; }
6842#endif
d1154eb4 6843
d1154eb4
TT
6844_ACEOF
6845if ac_fn_c_try_compile "$LINENO"; then :
93613951 6846 ac_cv_c_inline=$ac_kw
57aa50d4 6847fi
d1154eb4 6848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93613951
TT
6849 test "$ac_cv_c_inline" != no && break
6850done
d1154eb4 6851
d1154eb4 6852fi
93613951
TT
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6854$as_echo "$ac_cv_c_inline" >&6; }
d1154eb4 6855
93613951
TT
6856case $ac_cv_c_inline in
6857 inline | yes) ;;
6858 *)
6859 case $ac_cv_c_inline in
6860 no) ac_val=;;
6861 *) ac_val=$ac_cv_c_inline;;
6862 esac
6863 cat >>confdefs.h <<_ACEOF
6864#ifndef __cplusplus
6865#define inline $ac_val
6866#endif
d1154eb4 6867_ACEOF
93613951
TT
6868 ;;
6869esac
d1154eb4 6870
93613951
TT
6871ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6872if test "x$ac_cv_type_size_t" = xyes; then :
d1154eb4 6873
57aa50d4 6874else
d1154eb4 6875
93613951
TT
6876cat >>confdefs.h <<_ACEOF
6877#define size_t unsigned int
d1154eb4 6878_ACEOF
b0cacab0 6879
57aa50d4 6880fi
b0cacab0
TT
6881
6882
93613951
TT
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6884$as_echo_n "checking for stdint.h... " >&6; }
6885if ${gl_cv_header_stdint_h+:} false; then :
57aa50d4 6886 $as_echo_n "(cached) " >&6
b0cacab0 6887else
d1154eb4 6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6889/* end confdefs.h. */
93613951
TT
6890#include <sys/types.h>
6891 #include <stdint.h>
a64c9c13 6892int
b0cacab0
TT
6893main ()
6894{
93613951 6895uintmax_t i = (uintmax_t) -1; return !i;
d1154eb4 6896 ;
b0cacab0 6897 return 0;
a64c9c13 6898}
b0cacab0 6899_ACEOF
d1154eb4 6900if ac_fn_c_try_compile "$LINENO"; then :
93613951 6901 gl_cv_header_stdint_h=yes
b0cacab0 6902else
93613951 6903 gl_cv_header_stdint_h=no
b0cacab0 6904fi
d1154eb4 6905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4 6906fi
93613951
TT
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6908$as_echo "$gl_cv_header_stdint_h" >&6; }
6909 if test $gl_cv_header_stdint_h = yes; then
b0cacab0 6910
93613951
TT
6911cat >>confdefs.h <<_ACEOF
6912#define HAVE_STDINT_H_WITH_UINTMAX 1
d1154eb4 6913_ACEOF
b0cacab0 6914
93613951 6915 fi
b0cacab0 6916
93613951
TT
6917# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6918# for constant arguments. Useless!
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6920$as_echo_n "checking for working alloca.h... " >&6; }
6921if ${ac_cv_working_alloca_h+:} false; then :
39fd3d4f 6922 $as_echo_n "(cached) " >&6
a64c9c13 6923else
57aa50d4 6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6925/* end confdefs.h. */
93613951 6926#include <alloca.h>
57aa50d4
TT
6927int
6928main ()
6929{
93613951
TT
6930char *p = (char *) alloca (2 * sizeof (int));
6931 if (p) return 0;
57aa50d4
TT
6932 ;
6933 return 0;
6934}
b0cacab0 6935_ACEOF
93613951
TT
6936if ac_fn_c_try_link "$LINENO"; then :
6937 ac_cv_working_alloca_h=yes
b0cacab0 6938else
93613951 6939 ac_cv_working_alloca_h=no
57aa50d4 6940fi
93613951
TT
6941rm -f core conftest.err conftest.$ac_objext \
6942 conftest$ac_exeext conftest.$ac_ext
57aa50d4 6943fi
93613951
TT
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6945$as_echo "$ac_cv_working_alloca_h" >&6; }
6946if test $ac_cv_working_alloca_h = yes; then
57aa50d4 6947
93613951 6948$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
57aa50d4 6949
a64c9c13 6950fi
b0cacab0 6951
93613951
TT
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6953$as_echo_n "checking for alloca... " >&6; }
6954if ${ac_cv_func_alloca_works+:} false; then :
57aa50d4 6955 $as_echo_n "(cached) " >&6
b0cacab0 6956else
57aa50d4 6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6958/* end confdefs.h. */
93613951
TT
6959#ifdef __GNUC__
6960# define alloca __builtin_alloca
6961#else
6962# ifdef _MSC_VER
6963# include <malloc.h>
6964# define alloca _alloca
6965# else
6966# ifdef HAVE_ALLOCA_H
6967# include <alloca.h>
6968# else
6969# ifdef _AIX
6970 #pragma alloca
6971# else
6972# ifndef alloca /* predefined by HP cc +Olibcalls */
6973void *alloca (size_t);
6974# endif
6975# endif
6976# endif
6977# endif
6978#endif
b0cacab0 6979
57aa50d4
TT
6980int
6981main ()
b0cacab0 6982{
93613951
TT
6983char *p = (char *) alloca (1);
6984 if (p) return 0;
57aa50d4
TT
6985 ;
6986 return 0;
b0cacab0
TT
6987}
6988_ACEOF
93613951
TT
6989if ac_fn_c_try_link "$LINENO"; then :
6990 ac_cv_func_alloca_works=yes
b0cacab0 6991else
93613951 6992 ac_cv_func_alloca_works=no
57aa50d4 6993fi
93613951
TT
6994rm -f core conftest.err conftest.$ac_objext \
6995 conftest$ac_exeext conftest.$ac_ext
57aa50d4 6996fi
93613951
TT
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6998$as_echo "$ac_cv_func_alloca_works" >&6; }
57aa50d4 6999
93613951 7000if test $ac_cv_func_alloca_works = yes; then
57aa50d4 7001
93613951 7002$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
57aa50d4 7003
b0cacab0 7004else
93613951
TT
7005 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7006# that cause trouble. Some versions do not even contain alloca or
7007# contain a buggy version. If you still want to use their alloca,
7008# use ar to extract alloca.o from them instead of compiling alloca.c.
b0cacab0 7009
93613951 7010ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
57aa50d4 7011
93613951 7012$as_echo "#define C_ALLOCA 1" >>confdefs.h
57aa50d4 7013
57aa50d4 7014
93613951
TT
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7016$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7017if ${ac_cv_os_cray+:} false; then :
57aa50d4
TT
7018 $as_echo_n "(cached) " >&6
7019else
57aa50d4
TT
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021/* end confdefs.h. */
93613951
TT
7022#if defined CRAY && ! defined CRAY2
7023webecray
7024#else
7025wenotbecray
57aa50d4 7026#endif
b0cacab0 7027
57aa50d4 7028_ACEOF
93613951
TT
7029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030 $EGREP "webecray" >/dev/null 2>&1; then :
7031 ac_cv_os_cray=yes
7032else
7033 ac_cv_os_cray=no
a64c9c13 7034fi
93613951 7035rm -f conftest*
d1154eb4
TT
7036
7037fi
93613951
TT
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7039$as_echo "$ac_cv_os_cray" >&6; }
7040if test $ac_cv_os_cray = yes; then
7041 for ac_func in _getb67 GETB67 getb67; do
7042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7043ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7044if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
e1052144 7045
57aa50d4 7046cat >>confdefs.h <<_ACEOF
93613951 7047#define CRAY_STACKSEG_END $ac_func
57aa50d4 7048_ACEOF
e1052144 7049
93613951 7050 break
a64c9c13 7051fi
07a0db15 7052
93613951 7053 done
57aa50d4 7054fi
b0cacab0 7055
93613951
TT
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7057$as_echo_n "checking stack direction for C alloca... " >&6; }
7058if ${ac_cv_c_stack_direction+:} false; then :
39fd3d4f 7059 $as_echo_n "(cached) " >&6
93613951
TT
7060else
7061 if test "$cross_compiling" = yes; then :
7062 ac_cv_c_stack_direction=0
b0cacab0 7063else
57aa50d4 7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7065/* end confdefs.h. */
93613951 7066$ac_includes_default
b0cacab0 7067int
93613951 7068find_stack_direction (int *addr, int depth)
b0cacab0 7069{
93613951
TT
7070 int dir, dummy = 0;
7071 if (! addr)
7072 addr = &dummy;
7073 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7074 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7075 return dir + dummy;
b0cacab0 7076}
93636bde 7077
b0cacab0 7078int
93613951 7079main (int argc, char **argv)
b0cacab0 7080{
93613951 7081 return find_stack_direction (0, argc + !argv + 20) < 0;
b0cacab0
TT
7082}
7083_ACEOF
93613951
TT
7084if ac_fn_c_try_run "$LINENO"; then :
7085 ac_cv_c_stack_direction=1
a64c9c13 7086else
93613951 7087 ac_cv_c_stack_direction=-1
b0cacab0 7088fi
93613951
TT
7089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7090 conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0 7091fi
b0cacab0 7092
93613951
TT
7093fi
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7095$as_echo "$ac_cv_c_stack_direction" >&6; }
7096cat >>confdefs.h <<_ACEOF
7097#define STACK_DIRECTION $ac_cv_c_stack_direction
7098_ACEOF
57aa50d4 7099
b0cacab0 7100
57aa50d4 7101fi
b0cacab0 7102
57aa50d4
TT
7103
7104
b0cacab0 7105
93613951
TT
7106 for ac_header in $ac_header_list
7107do :
7108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7109ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7110"
7111if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7112 cat >>confdefs.h <<_ACEOF
7113#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 7114_ACEOF
93613951 7115
a64c9c13 7116fi
07a0db15 7117
93613951 7118done
a64c9c13 7119
a64c9c13 7120
b0cacab0 7121
b0cacab0 7122
a04eba3f 7123
a04eba3f 7124
b0cacab0 7125
b0cacab0 7126
93613951
TT
7127for ac_func in getpagesize
7128do :
7129 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7130if test "x$ac_cv_func_getpagesize" = xyes; then :
7131 cat >>confdefs.h <<_ACEOF
7132#define HAVE_GETPAGESIZE 1
b0cacab0
TT
7133_ACEOF
7134
93613951
TT
7135fi
7136done
b0cacab0 7137
93613951
TT
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7139$as_echo_n "checking for working mmap... " >&6; }
7140if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
39fd3d4f 7141 $as_echo_n "(cached) " >&6
93613951
TT
7142else
7143 if test "$cross_compiling" = yes; then :
7144 ac_cv_func_mmap_fixed_mapped=no
b0cacab0 7145else
57aa50d4 7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7147/* end confdefs.h. */
93613951
TT
7148$ac_includes_default
7149/* malloc might have been renamed as rpl_malloc. */
7150#undef malloc
57aa50d4 7151
93613951
TT
7152/* Thanks to Mike Haertel and Jim Avera for this test.
7153 Here is a matrix of mmap possibilities:
7154 mmap private not fixed
7155 mmap private fixed at somewhere currently unmapped
7156 mmap private fixed at somewhere already mapped
7157 mmap shared not fixed
7158 mmap shared fixed at somewhere currently unmapped
7159 mmap shared fixed at somewhere already mapped
7160 For private mappings, we should verify that changes cannot be read()
7161 back from the file, nor mmap's back from the file at a different
7162 address. (There have been systems where private was not correctly
7163 implemented like the infamous i386 svr4.0, and systems where the
7164 VM page cache was not coherent with the file system buffer cache
7165 like early versions of FreeBSD and possibly contemporary NetBSD.)
7166 For shared mappings, we should conversely verify that changes get
7167 propagated back to all the places they're supposed to be.
7168
7169 Grep wants private fixed already mapped.
7170 The main things grep needs to know about mmap are:
7171 * does it exist and is it safe to write into the mmap'd area
7172 * how to use it (BSD variants) */
7173
7174#include <fcntl.h>
7175#include <sys/mman.h>
7176
7177#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7178char *malloc ();
57aa50d4
TT
7179#endif
7180
93613951
TT
7181/* This mess was copied from the GNU getpagesize.h. */
7182#ifndef HAVE_GETPAGESIZE
7183# ifdef _SC_PAGESIZE
7184# define getpagesize() sysconf(_SC_PAGESIZE)
7185# else /* no _SC_PAGESIZE */
7186# ifdef HAVE_SYS_PARAM_H
7187# include <sys/param.h>
7188# ifdef EXEC_PAGESIZE
7189# define getpagesize() EXEC_PAGESIZE
7190# else /* no EXEC_PAGESIZE */
7191# ifdef NBPG
7192# define getpagesize() NBPG * CLSIZE
7193# ifndef CLSIZE
7194# define CLSIZE 1
7195# endif /* no CLSIZE */
7196# else /* no NBPG */
7197# ifdef NBPC
7198# define getpagesize() NBPC
7199# else /* no NBPC */
7200# ifdef PAGESIZE
7201# define getpagesize() PAGESIZE
7202# endif /* PAGESIZE */
7203# endif /* no NBPC */
7204# endif /* no NBPG */
7205# endif /* no EXEC_PAGESIZE */
7206# else /* no HAVE_SYS_PARAM_H */
7207# define getpagesize() 8192 /* punt totally */
7208# endif /* no HAVE_SYS_PARAM_H */
7209# endif /* no _SC_PAGESIZE */
7210
7211#endif /* no HAVE_GETPAGESIZE */
7212
57aa50d4
TT
7213int
7214main ()
7215{
93613951
TT
7216 char *data, *data2, *data3;
7217 const char *cdata2;
7218 int i, pagesize;
7219 int fd, fd2;
7220
7221 pagesize = getpagesize ();
7222
7223 /* First, make a file with some known garbage in it. */
7224 data = (char *) malloc (pagesize);
7225 if (!data)
7226 return 1;
7227 for (i = 0; i < pagesize; ++i)
7228 *(data + i) = rand ();
7229 umask (0);
7230 fd = creat ("conftest.mmap", 0600);
7231 if (fd < 0)
7232 return 2;
7233 if (write (fd, data, pagesize) != pagesize)
7234 return 3;
7235 close (fd);
7236
7237 /* Next, check that the tail of a page is zero-filled. File must have
7238 non-zero length, otherwise we risk SIGBUS for entire page. */
7239 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7240 if (fd2 < 0)
7241 return 4;
7242 cdata2 = "";
7243 if (write (fd2, cdata2, 1) != 1)
7244 return 5;
7245 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7246 if (data2 == MAP_FAILED)
7247 return 6;
7248 for (i = 0; i < pagesize; ++i)
7249 if (*(data2 + i))
7250 return 7;
7251 close (fd2);
7252 if (munmap (data2, pagesize))
7253 return 8;
7254
7255 /* Next, try to mmap the file at a fixed address which already has
7256 something else allocated at it. If we can, also make sure that
7257 we see the same garbage. */
7258 fd = open ("conftest.mmap", O_RDWR);
7259 if (fd < 0)
7260 return 9;
7261 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7262 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7263 return 10;
7264 for (i = 0; i < pagesize; ++i)
7265 if (*(data + i) != *(data2 + i))
7266 return 11;
7267
7268 /* Finally, make sure that changes to the mapped area do not
7269 percolate back to the file as seen by read(). (This is a bug on
7270 some variants of i386 svr4.0.) */
7271 for (i = 0; i < pagesize; ++i)
7272 *(data2 + i) = *(data2 + i) + 1;
7273 data3 = (char *) malloc (pagesize);
7274 if (!data3)
7275 return 12;
7276 if (read (fd, data3, pagesize) != pagesize)
7277 return 13;
7278 for (i = 0; i < pagesize; ++i)
7279 if (*(data + i) != *(data3 + i))
7280 return 14;
7281 close (fd);
a2df5894
DW
7282 free (data);
7283 free (data3);
57aa50d4
TT
7284 return 0;
7285}
b0cacab0 7286_ACEOF
93613951
TT
7287if ac_fn_c_try_run "$LINENO"; then :
7288 ac_cv_func_mmap_fixed_mapped=yes
b0cacab0 7289else
93613951 7290 ac_cv_func_mmap_fixed_mapped=no
b0cacab0 7291fi
93613951
TT
7292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7293 conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 7294fi
b0cacab0 7295
93613951
TT
7296fi
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7298$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7299if test $ac_cv_func_mmap_fixed_mapped = yes; then
b0cacab0 7300
93613951 7301$as_echo "#define HAVE_MMAP 1" >>confdefs.h
e1052144 7302
93613951
TT
7303fi
7304rm -f conftest.mmap conftest.txt
b0cacab0 7305
e1052144 7306
93613951
TT
7307
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7309$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7310if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
39fd3d4f 7311 $as_echo_n "(cached) " >&6
b0cacab0 7312else
b0cacab0 7313
93613951
TT
7314 gt_cv_int_divbyzero_sigfpe=
7315 case "$host_os" in
7316 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7317 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7318 # compiling. If we were to perform the real test, 1 Crash Report
7319 # dialog window would pop up.
7320 case "$host_cpu" in
7321 i[34567]86 | x86_64)
7322 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7323 esac
7324 ;;
7325 esac
7326 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7327 if test "$cross_compiling" = yes; then :
7328
7329 # Guess based on the CPU.
7330 case "$host_cpu" in
7331 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7332 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7333 *)
7334 gt_cv_int_divbyzero_sigfpe="guessing no";;
7335 esac
57aa50d4 7336
93613951
TT
7337else
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4
TT
7339/* end confdefs.h. */
7340
93613951
TT
7341#include <stdlib.h>
7342#include <signal.h>
b0cacab0 7343
93613951
TT
7344static void
7345sigfpe_handler (int sig)
7346{
7347 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7348 exit (sig != SIGFPE);
7349}
b0cacab0 7350
93613951
TT
7351int x = 1;
7352int y = 0;
7353int z;
7354int nan;
b0cacab0 7355
57aa50d4
TT
7356int main ()
7357{
93613951
TT
7358 signal (SIGFPE, sigfpe_handler);
7359/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7360#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7361 signal (SIGTRAP, sigfpe_handler);
7362#endif
7363/* Linux/SPARC yields signal SIGILL. */
7364#if defined (__sparc__) && defined (__linux__)
7365 signal (SIGILL, sigfpe_handler);
7366#endif
7367
7368 z = x / y;
7369 nan = y / y;
7370 exit (2);
57aa50d4 7371}
93613951 7372
57aa50d4
TT
7373_ACEOF
7374if ac_fn_c_try_run "$LINENO"; then :
93613951 7375 gt_cv_int_divbyzero_sigfpe=yes
57aa50d4 7376else
93613951 7377 gt_cv_int_divbyzero_sigfpe=no
57aa50d4
TT
7378fi
7379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7380 conftest.$ac_objext conftest.beam conftest.$ac_ext
7381fi
7382
93613951 7383 fi
57aa50d4
TT
7384
7385fi
93613951
TT
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7387$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7388 case "$gt_cv_int_divbyzero_sigfpe" in
7389 *yes) value=1;;
7390 *) value=0;;
7391 esac
57aa50d4 7392
93613951
TT
7393cat >>confdefs.h <<_ACEOF
7394#define INTDIV0_RAISES_SIGFPE $value
7395_ACEOF
57aa50d4 7396
57aa50d4 7397
93613951
TT
7398
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7400$as_echo_n "checking for inttypes.h... " >&6; }
7401if ${gl_cv_header_inttypes_h+:} false; then :
39fd3d4f 7402 $as_echo_n "(cached) " >&6
b0cacab0 7403else
57aa50d4 7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7405/* end confdefs.h. */
93613951
TT
7406
7407#include <sys/types.h>
7408#include <inttypes.h>
7409
57aa50d4
TT
7410int
7411main ()
7412{
93613951 7413uintmax_t i = (uintmax_t) -1; return !i;
57aa50d4
TT
7414 ;
7415 return 0;
7416}
7417_ACEOF
93613951
TT
7418if ac_fn_c_try_compile "$LINENO"; then :
7419 gl_cv_header_inttypes_h=yes
57aa50d4 7420else
93613951 7421 gl_cv_header_inttypes_h=no
57aa50d4 7422fi
93613951 7423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4 7424fi
93613951
TT
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7426$as_echo "$gl_cv_header_inttypes_h" >&6; }
7427 if test $gl_cv_header_inttypes_h = yes; then
b0cacab0 7428
93613951
TT
7429cat >>confdefs.h <<_ACEOF
7430#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7431_ACEOF
b0cacab0 7432
93613951 7433 fi
57aa50d4 7434
93613951
TT
7435
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7437$as_echo_n "checking for unsigned long long int... " >&6; }
7438if ${ac_cv_type_unsigned_long_long_int+:} false; then :
57aa50d4
TT
7439 $as_echo_n "(cached) " >&6
7440else
93613951
TT
7441 ac_cv_type_unsigned_long_long_int=yes
7442 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 7444/* end confdefs.h. */
b0cacab0 7445
93613951
TT
7446 /* For now, do not test the preprocessor; as of 2007 there are too many
7447 implementations with broken preprocessors. Perhaps this can
7448 be revisited in 2012. In the meantime, code should not expect
7449 #if to work with literals wider than 32 bits. */
7450 /* Test literals. */
7451 long long int ll = 9223372036854775807ll;
7452 long long int nll = -9223372036854775807LL;
7453 unsigned long long int ull = 18446744073709551615ULL;
7454 /* Test constant expressions. */
7455 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7456 ? 1 : -1)];
7457 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7458 ? 1 : -1)];
7459 int i = 63;
57aa50d4
TT
7460int
7461main ()
7462{
93613951
TT
7463/* Test availability of runtime routines for shift and division. */
7464 long long int llmax = 9223372036854775807ll;
7465 unsigned long long int ullmax = 18446744073709551615ull;
7466 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7467 | (llmax / ll) | (llmax % ll)
7468 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7469 | (ullmax / ull) | (ullmax % ull));
57aa50d4
TT
7470 ;
7471 return 0;
7472}
93613951 7473
57aa50d4
TT
7474_ACEOF
7475if ac_fn_c_try_link "$LINENO"; then :
93613951 7476
57aa50d4 7477else
93613951 7478 ac_cv_type_unsigned_long_long_int=no
57aa50d4
TT
7479fi
7480rm -f core conftest.err conftest.$ac_objext \
7481 conftest$ac_exeext conftest.$ac_ext
93613951 7482 fi
57aa50d4 7483fi
93613951
TT
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7485$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7486 if test $ac_cv_type_unsigned_long_long_int = yes; then
b0cacab0 7487
93613951 7488$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
57aa50d4 7489
93613951 7490 fi
57aa50d4 7491
57aa50d4 7492
57aa50d4 7493
57aa50d4 7494
93613951 7495 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
57aa50d4 7496
93613951
TT
7497 test $ac_cv_type_unsigned_long_long_int = yes \
7498 && ac_type='unsigned long long' \
7499 || ac_type='unsigned long'
b0cacab0 7500
93613951
TT
7501cat >>confdefs.h <<_ACEOF
7502#define uintmax_t $ac_type
57aa50d4 7503_ACEOF
57aa50d4 7504
93613951 7505 else
57aa50d4 7506
93613951
TT
7507$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7508
7509 fi
7510
7511
7512 for ac_header in inttypes.h
7513do :
7514 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7515if test "x$ac_cv_header_inttypes_h" = xyes; then :
7516 cat >>confdefs.h <<_ACEOF
7517#define HAVE_INTTYPES_H 1
57aa50d4
TT
7518_ACEOF
7519
57aa50d4
TT
7520fi
7521
93613951 7522done
57aa50d4 7523
93613951
TT
7524 if test $ac_cv_header_inttypes_h = yes; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7526$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7527if ${gt_cv_inttypes_pri_broken+:} false; then :
57aa50d4
TT
7528 $as_echo_n "(cached) " >&6
7529else
93613951
TT
7530
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 7532/* end confdefs.h. */
93613951
TT
7533
7534#include <inttypes.h>
7535#ifdef PRId32
7536char *p = PRId32;
7537#endif
57aa50d4 7538
b0cacab0 7539int
93613951 7540main ()
b0cacab0 7541{
93613951
TT
7542
7543 ;
7544 return 0;
b0cacab0
TT
7545}
7546_ACEOF
93613951
TT
7547if ac_fn_c_try_compile "$LINENO"; then :
7548 gt_cv_inttypes_pri_broken=no
b0cacab0 7549else
93613951 7550 gt_cv_inttypes_pri_broken=yes
57aa50d4 7551fi
93613951 7552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
7553
7554fi
93613951
TT
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7556$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7557 fi
7558 if test "$gt_cv_inttypes_pri_broken" = yes; then
7559
57aa50d4 7560cat >>confdefs.h <<_ACEOF
93613951 7561#define PRI_MACROS_BROKEN 1
57aa50d4
TT
7562_ACEOF
7563
93613951
TT
7564 PRI_MACROS_BROKEN=1
7565 else
7566 PRI_MACROS_BROKEN=0
7567 fi
b0cacab0 7568
e1052144 7569
61ef2474
TT
7570
7571
7572
61ef2474 7573
93613951
TT
7574
7575 # Check whether --enable-threads was given.
7576if test "${enable_threads+set}" = set; then :
7577 enableval=$enable_threads; gl_use_threads=$enableval
7578else
7579 if test -n "$gl_use_threads_default"; then
7580 gl_use_threads="$gl_use_threads_default"
7581 else
7582 case "$host_os" in
7583 osf*) gl_use_threads=no ;;
7584 cygwin*)
7585 case `uname -r` in
7586 1.[0-5].*) gl_use_threads=no ;;
7587 *) gl_use_threads=yes ;;
7588 esac
7589 ;;
7590 *) gl_use_threads=yes ;;
7591 esac
7592 fi
57aa50d4 7593
b0cacab0 7594fi
57aa50d4 7595
93613951
TT
7596 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7597 # For using <pthread.h>:
7598 case "$host_os" in
7599 osf*)
7600 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7601 # groks <pthread.h>. cc also understands the flag -pthread, but
7602 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7603 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7604 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7605 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7606 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7607 ;;
7608 esac
7609 # Some systems optimize for single-threaded programs by default, and
7610 # need special flags to disable these optimizations. For example, the
7611 # definition of 'errno' in <errno.h>.
7612 case "$host_os" in
7613 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7614 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7615 esac
7616 fi
57aa50d4 7617
61ef2474
TT
7618
7619
7620
7621
93613951
TT
7622 if test "X$prefix" = "XNONE"; then
7623 acl_final_prefix="$ac_default_prefix"
7624 else
7625 acl_final_prefix="$prefix"
7626 fi
7627 if test "X$exec_prefix" = "XNONE"; then
7628 acl_final_exec_prefix='${prefix}'
7629 else
7630 acl_final_exec_prefix="$exec_prefix"
7631 fi
7632 acl_save_prefix="$prefix"
7633 prefix="$acl_final_prefix"
7634 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7635 prefix="$acl_save_prefix"
61ef2474
TT
7636
7637
7638
93613951
TT
7639# Check whether --with-gnu-ld was given.
7640if test "${with_gnu_ld+set}" = set; then :
7641 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7642else
7643 with_gnu_ld=no
7644fi
b0cacab0 7645
93613951
TT
7646# Prepare PATH_SEPARATOR.
7647# The user is always right.
7648if test "${PATH_SEPARATOR+set}" != set; then
7649 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7650 # contains only /bin. Note that ksh looks also at the FPATH variable,
7651 # so we have to set that as well for the test.
7652 PATH_SEPARATOR=:
7653 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7654 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7655 || PATH_SEPARATOR=';'
7656 }
b0cacab0 7657fi
b0cacab0 7658
93613951
TT
7659ac_prog=ld
7660if test "$GCC" = yes; then
7661 # Check if gcc -print-prog-name=ld gives a path.
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7663$as_echo_n "checking for ld used by $CC... " >&6; }
7664 case $host in
7665 *-*-mingw*)
7666 # gcc leaves a trailing carriage return which upsets mingw
7667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7668 *)
7669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7670 esac
7671 case $ac_prog in
7672 # Accept absolute paths.
7673 [\\/]* | ?:[\\/]*)
7674 re_direlt='/[^/][^/]*/\.\./'
7675 # Canonicalize the pathname of ld
7676 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7677 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7678 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7679 done
7680 test -z "$LD" && LD="$ac_prog"
7681 ;;
7682 "")
7683 # If it fails, then pretend we aren't using GCC.
7684 ac_prog=ld
7685 ;;
7686 *)
7687 # If it is relative, then search for the first ld in PATH.
7688 with_gnu_ld=unknown
7689 ;;
7690 esac
7691elif test "$with_gnu_ld" = yes; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7693$as_echo_n "checking for GNU ld... " >&6; }
b0cacab0 7694else
93613951
TT
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7696$as_echo_n "checking for non-GNU ld... " >&6; }
7697fi
7698if ${acl_cv_path_LD+:} false; then :
7699 $as_echo_n "(cached) " >&6
b0cacab0 7700else
93613951
TT
7701 if test -z "$LD"; then
7702 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7703 for ac_dir in $PATH; do
7704 IFS="$acl_save_ifs"
7705 test -z "$ac_dir" && ac_dir=.
7706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7707 acl_cv_path_LD="$ac_dir/$ac_prog"
7708 # Check to see if the program is GNU ld. I'd rather use --version,
7709 # but apparently some variants of GNU ld only accept -v.
7710 # Break only if it was the GNU/non-GNU ld that we prefer.
7711 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7712 *GNU* | *'with BFD'*)
7713 test "$with_gnu_ld" != no && break
7714 ;;
7715 *)
7716 test "$with_gnu_ld" != yes && break
7717 ;;
7718 esac
7719 fi
7720 done
7721 IFS="$acl_save_ifs"
7722else
7723 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7724fi
7725fi
b0cacab0 7726
93613951
TT
7727LD="$acl_cv_path_LD"
7728if test -n "$LD"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7730$as_echo "$LD" >&6; }
7731else
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733$as_echo "no" >&6; }
7734fi
7735test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7737$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7738if ${acl_cv_prog_gnu_ld+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740else
7741 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7742case `$LD -v 2>&1 </dev/null` in
7743*GNU* | *'with BFD'*)
7744 acl_cv_prog_gnu_ld=yes
7745 ;;
7746*)
7747 acl_cv_prog_gnu_ld=no
7748 ;;
7749esac
7750fi
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7752$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7753with_gnu_ld=$acl_cv_prog_gnu_ld
b0cacab0 7754
b0cacab0 7755
b0cacab0 7756
b0cacab0 7757
93613951
TT
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7759$as_echo_n "checking for shared library run path origin... " >&6; }
7760if ${acl_cv_rpath+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762else
61ef2474 7763
93613951
TT
7764 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7765 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7766 . ./conftest.sh
7767 rm -f ./conftest.sh
7768 acl_cv_rpath=done
b0cacab0 7769
b0cacab0 7770fi
93613951
TT
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7772$as_echo "$acl_cv_rpath" >&6; }
7773 wl="$acl_cv_wl"
7774 acl_libext="$acl_cv_libext"
7775 acl_shlibext="$acl_cv_shlibext"
7776 acl_libname_spec="$acl_cv_libname_spec"
7777 acl_library_names_spec="$acl_cv_library_names_spec"
7778 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7779 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7780 acl_hardcode_direct="$acl_cv_hardcode_direct"
7781 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7782 # Check whether --enable-rpath was given.
7783if test "${enable_rpath+set}" = set; then :
7784 enableval=$enable_rpath; :
7785else
7786 enable_rpath=yes
b0cacab0 7787fi
b0cacab0 7788
b0cacab0 7789
b0cacab0
TT
7790
7791
93613951
TT
7792 acl_libdirstem=lib
7793 acl_libdirstem2=
7794 case "$host_os" in
7795 solaris*)
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7797$as_echo_n "checking for 64-bit host... " >&6; }
7798if ${gl_cv_solaris_64bit+:} false; then :
39fd3d4f 7799 $as_echo_n "(cached) " >&6
b0cacab0 7800else
57aa50d4 7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
7802/* end confdefs.h. */
7803
93613951
TT
7804#ifdef _LP64
7805sixtyfour bits
b0cacab0
TT
7806#endif
7807
7808_ACEOF
7809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
93613951
TT
7810 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7811 gl_cv_solaris_64bit=yes
b0cacab0 7812else
93613951 7813 gl_cv_solaris_64bit=no
b0cacab0
TT
7814fi
7815rm -f conftest*
7816
7817
b0cacab0 7818fi
93613951
TT
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7820$as_echo "$gl_cv_solaris_64bit" >&6; }
7821 if test $gl_cv_solaris_64bit = yes; then
7822 acl_libdirstem=lib/64
7823 case "$host_cpu" in
7824 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7825 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7826 esac
7827 fi
7828 ;;
7829 *)
7830 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7831 if test -n "$searchpath"; then
7832 acl_save_IFS="${IFS= }"; IFS=":"
7833 for searchdir in $searchpath; do
7834 if test -d "$searchdir"; then
7835 case "$searchdir" in
7836 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7837 */../ | */.. )
7838 # Better ignore directories of this form. They are misleading.
7839 ;;
7840 *) searchdir=`cd "$searchdir" && pwd`
7841 case "$searchdir" in
7842 */lib64 ) acl_libdirstem=lib64 ;;
7843 esac ;;
7844 esac
7845 fi
7846 done
7847 IFS="$acl_save_IFS"
7848 fi
7849 ;;
7850 esac
7851 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
b0cacab0
TT
7852
7853
7854
93613951
TT
7855 gl_threads_api=none
7856 LIBTHREAD=
7857 LTLIBTHREAD=
7858 LIBMULTITHREAD=
7859 LTLIBMULTITHREAD=
7860 if test "$gl_use_threads" != no; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7862$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7863if ${gl_cv_have_weak+:} false; then :
39fd3d4f 7864 $as_echo_n "(cached) " >&6
b0cacab0 7865else
93613951
TT
7866 gl_cv_have_weak=no
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7868/* end confdefs.h. */
93613951
TT
7869extern void xyzzy ();
7870#pragma weak xyzzy
7871int
7872main ()
b0cacab0 7873{
93613951
TT
7874xyzzy();
7875 ;
7876 return 0;
b0cacab0 7877}
93613951
TT
7878_ACEOF
7879if ac_fn_c_try_link "$LINENO"; then :
7880 gl_cv_have_weak=maybe
7881fi
7882rm -f core conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 if test $gl_cv_have_weak = maybe; then
7885 if test "$cross_compiling" = yes; then :
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887/* end confdefs.h. */
7888#ifdef __ELF__
7889 Extensible Linking Format
7890 #endif
b0cacab0 7891
93613951
TT
7892_ACEOF
7893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7894 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7895 gl_cv_have_weak="guessing yes"
7896else
7897 gl_cv_have_weak="guessing no"
7898fi
7899rm -f conftest*
b0cacab0 7900
b0cacab0
TT
7901
7902else
57aa50d4 7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7904/* end confdefs.h. */
b0cacab0 7905
93613951
TT
7906#include <stdio.h>
7907#pragma weak fputs
b0cacab0 7908int main ()
a04eba3f 7909{
93613951 7910 return (fputs == NULL);
a04eba3f 7911}
b0cacab0 7912_ACEOF
57aa50d4 7913if ac_fn_c_try_run "$LINENO"; then :
93613951 7914 gl_cv_have_weak=yes
a64c9c13 7915else
93613951 7916 gl_cv_have_weak=no
b0cacab0 7917fi
57aa50d4
TT
7918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7919 conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0
TT
7920fi
7921
93613951 7922 fi
e1052144 7923
b0cacab0 7924fi
93613951
TT
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7926$as_echo "$gl_cv_have_weak" >&6; }
7927 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7928 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7929 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7930 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7931if test "x$ac_cv_header_pthread_h" = xyes; then :
7932 gl_have_pthread_h=yes
7933else
7934 gl_have_pthread_h=no
7935fi
b0cacab0
TT
7936
7937
93613951
TT
7938 if test "$gl_have_pthread_h" = yes; then
7939 # Other possible tests:
7940 # -lpthreads (FSU threads, PCthreads)
7941 # -lgthreads
7942 gl_have_pthread=
7943 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7944 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7945 # the second one only in libpthread, and lock.c needs it.
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7947/* end confdefs.h. */
93613951 7948#include <pthread.h>
b0cacab0
TT
7949int
7950main ()
7951{
93613951
TT
7952pthread_mutex_lock((pthread_mutex_t*)0);
7953 pthread_mutexattr_init((pthread_mutexattr_t*)0);
b0cacab0
TT
7954 ;
7955 return 0;
7956}
7957_ACEOF
57aa50d4 7958if ac_fn_c_try_link "$LINENO"; then :
93613951 7959 gl_have_pthread=yes
b0cacab0 7960fi
57aa50d4
TT
7961rm -f core conftest.err conftest.$ac_objext \
7962 conftest$ac_exeext conftest.$ac_ext
93613951
TT
7963 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7964 # since it is defined as a macro on OSF/1.)
7965 if test -n "$gl_have_pthread"; then
7966 # The program links fine without libpthread. But it may actually
7967 # need to link with libpthread in order to create multiple threads.
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7969$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7970if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
39fd3d4f 7971 $as_echo_n "(cached) " >&6
b0cacab0 7972else
93613951
TT
7973 ac_check_lib_save_LIBS=$LIBS
7974LIBS="-lpthread $LIBS"
7975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7976/* end confdefs.h. */
93613951
TT
7977
7978/* Override any GCC internal prototype to avoid an error.
7979 Use char because int might match the return type of a GCC
7980 builtin and then its argument prototype would still apply. */
7981#ifdef __cplusplus
7982extern "C"
7983#endif
7984char pthread_kill ();
b0cacab0
TT
7985int
7986main ()
7987{
93613951 7988return pthread_kill ();
b0cacab0
TT
7989 ;
7990 return 0;
7991}
7992_ACEOF
93613951
TT
7993if ac_fn_c_try_link "$LINENO"; then :
7994 ac_cv_lib_pthread_pthread_kill=yes
b0cacab0 7995else
93613951 7996 ac_cv_lib_pthread_pthread_kill=no
b0cacab0 7997fi
93613951
TT
7998rm -f core conftest.err conftest.$ac_objext \
7999 conftest$ac_exeext conftest.$ac_ext
8000LIBS=$ac_check_lib_save_LIBS
b0cacab0 8001fi
93613951
TT
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8003$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8004if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8005 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8006 # On Solaris and HP-UX, most pthread functions exist also in libc.
8007 # Therefore pthread_in_use() needs to actually try to create a
8008 # thread: pthread_create from libc will fail, whereas
8009 # pthread_create will actually create a thread.
8010 case "$host_os" in
8011 solaris* | hpux*)
b0cacab0 8012
93613951 8013$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
b0cacab0 8014
93613951 8015 esac
b0cacab0 8016
93613951 8017fi
b0cacab0 8018
93613951
TT
8019 else
8020 # Some library is needed. Try libpthread and libc_r.
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8022$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8023if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
39fd3d4f 8024 $as_echo_n "(cached) " >&6
b0cacab0 8025else
93613951
TT
8026 ac_check_lib_save_LIBS=$LIBS
8027LIBS="-lpthread $LIBS"
8028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 8029/* end confdefs.h. */
b0cacab0 8030
93613951
TT
8031/* Override any GCC internal prototype to avoid an error.
8032 Use char because int might match the return type of a GCC
8033 builtin and then its argument prototype would still apply. */
8034#ifdef __cplusplus
8035extern "C"
8036#endif
8037char pthread_kill ();
b0cacab0
TT
8038int
8039main ()
8040{
93613951 8041return pthread_kill ();
b0cacab0
TT
8042 ;
8043 return 0;
8044}
8045_ACEOF
93613951
TT
8046if ac_fn_c_try_link "$LINENO"; then :
8047 ac_cv_lib_pthread_pthread_kill=yes
b0cacab0 8048else
93613951 8049 ac_cv_lib_pthread_pthread_kill=no
b0cacab0 8050fi
93613951
TT
8051rm -f core conftest.err conftest.$ac_objext \
8052 conftest$ac_exeext conftest.$ac_ext
8053LIBS=$ac_check_lib_save_LIBS
b0cacab0 8054fi
93613951
TT
8055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8056$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8057if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8058 gl_have_pthread=yes
8059 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8060 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
b0cacab0
TT
8061fi
8062
93613951
TT
8063 if test -z "$gl_have_pthread"; then
8064 # For FreeBSD 4.
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8066$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8067if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069else
8070 ac_check_lib_save_LIBS=$LIBS
8071LIBS="-lc_r $LIBS"
8072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
8073/* end confdefs.h. */
8074
93613951
TT
8075/* Override any GCC internal prototype to avoid an error.
8076 Use char because int might match the return type of a GCC
8077 builtin and then its argument prototype would still apply. */
8078#ifdef __cplusplus
8079extern "C"
b0cacab0 8080#endif
93613951
TT
8081char pthread_kill ();
8082int
8083main ()
8084{
8085return pthread_kill ();
8086 ;
8087 return 0;
8088}
b0cacab0 8089_ACEOF
93613951
TT
8090if ac_fn_c_try_link "$LINENO"; then :
8091 ac_cv_lib_c_r_pthread_kill=yes
b0cacab0 8092else
93613951 8093 ac_cv_lib_c_r_pthread_kill=no
57aa50d4 8094fi
93613951
TT
8095rm -f core conftest.err conftest.$ac_objext \
8096 conftest$ac_exeext conftest.$ac_ext
8097LIBS=$ac_check_lib_save_LIBS
8098fi
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8100$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8101if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8102 gl_have_pthread=yes
8103 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8104 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
b0cacab0 8105fi
e1052144 8106
93613951
TT
8107 fi
8108 fi
8109 if test -n "$gl_have_pthread"; then
8110 gl_threads_api=posix
57aa50d4 8111
93613951 8112$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
57aa50d4 8113
93613951
TT
8114 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8115 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
b0cacab0 8116
93613951 8117$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
b0cacab0 8118
93613951
TT
8119 LIBTHREAD=
8120 LTLIBTHREAD=
8121 fi
8122 fi
8123 fi
8124 fi
8125 fi
8126 if test -z "$gl_have_pthread"; then
8127 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8128 gl_have_solaristhread=
8129 gl_save_LIBS="$LIBS"
8130 LIBS="$LIBS -lthread"
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 8132/* end confdefs.h. */
93613951
TT
8133
8134#include <thread.h>
8135#include <synch.h>
57aa50d4 8136
b0cacab0
TT
8137int
8138main ()
8139{
93613951 8140thr_self();
b0cacab0
TT
8141 ;
8142 return 0;
8143}
8144_ACEOF
93613951
TT
8145if ac_fn_c_try_link "$LINENO"; then :
8146 gl_have_solaristhread=yes
b0cacab0 8147fi
93613951
TT
8148rm -f core conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8150 LIBS="$gl_save_LIBS"
8151 if test -n "$gl_have_solaristhread"; then
8152 gl_threads_api=solaris
8153 LIBTHREAD=-lthread
8154 LTLIBTHREAD=-lthread
8155 LIBMULTITHREAD="$LIBTHREAD"
8156 LTLIBMULTITHREAD="$LTLIBTHREAD"
8157
8158$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8159
8160 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8161
8162$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8163
8164 LIBTHREAD=
8165 LTLIBTHREAD=
8166 fi
8167 fi
57aa50d4 8168 fi
57aa50d4 8169 fi
93613951
TT
8170 if test "$gl_use_threads" = pth; then
8171 gl_save_CPPFLAGS="$CPPFLAGS"
b0cacab0 8172
e1052144 8173
e1052144 8174
b0cacab0 8175
57aa50d4 8176
93613951
TT
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8178$as_echo_n "checking how to link with libpth... " >&6; }
8179if ${ac_cv_libpth_libs+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181else
e1052144 8182
b0cacab0 8183
b0cacab0 8184
29a5deed 8185
b0cacab0 8186
b0cacab0 8187
b0cacab0 8188
e1052144 8189
57aa50d4 8190 use_additional=yes
b0cacab0 8191
57aa50d4
TT
8192 acl_save_prefix="$prefix"
8193 prefix="$acl_final_prefix"
8194 acl_save_exec_prefix="$exec_prefix"
8195 exec_prefix="$acl_final_exec_prefix"
b0cacab0 8196
57aa50d4
TT
8197 eval additional_includedir=\"$includedir\"
8198 eval additional_libdir=\"$libdir\"
b0cacab0 8199
57aa50d4
TT
8200 exec_prefix="$acl_save_exec_prefix"
8201 prefix="$acl_save_prefix"
b0cacab0 8202
e1052144 8203
93613951
TT
8204# Check whether --with-libpth-prefix was given.
8205if test "${with_libpth_prefix+set}" = set; then :
8206 withval=$with_libpth_prefix;
57aa50d4
TT
8207 if test "X$withval" = "Xno"; then
8208 use_additional=no
8209 else
8210 if test "X$withval" = "X"; then
b0cacab0 8211
57aa50d4
TT
8212 acl_save_prefix="$prefix"
8213 prefix="$acl_final_prefix"
8214 acl_save_exec_prefix="$exec_prefix"
8215 exec_prefix="$acl_final_exec_prefix"
e1052144 8216
57aa50d4
TT
8217 eval additional_includedir=\"$includedir\"
8218 eval additional_libdir=\"$libdir\"
e1052144 8219
57aa50d4
TT
8220 exec_prefix="$acl_save_exec_prefix"
8221 prefix="$acl_save_prefix"
b0cacab0 8222
57aa50d4
TT
8223 else
8224 additional_includedir="$withval/include"
93613951
TT
8225 additional_libdir="$withval/$acl_libdirstem"
8226 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8227 && ! test -d "$withval/$acl_libdirstem"; then
8228 additional_libdir="$withval/$acl_libdirstem2"
8229 fi
57aa50d4
TT
8230 fi
8231 fi
b0cacab0 8232
b0cacab0 8233fi
e1052144 8234
93613951
TT
8235 LIBPTH=
8236 LTLIBPTH=
8237 INCPTH=
8238 LIBPTH_PREFIX=
8239 HAVE_LIBPTH=
a04eba3f
TT
8240 rpathdirs=
8241 ltrpathdirs=
8242 names_already_handled=
93613951 8243 names_next_round='pth '
a04eba3f
TT
8244 while test -n "$names_next_round"; do
8245 names_this_round="$names_next_round"
8246 names_next_round=
8247 for name in $names_this_round; do
8248 already_handled=
8249 for n in $names_already_handled; do
8250 if test "$n" = "$name"; then
8251 already_handled=yes
8252 break
8253 fi
8254 done
8255 if test -z "$already_handled"; then
8256 names_already_handled="$names_already_handled $name"
93613951 8257 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
a04eba3f
TT
8258 eval value=\"\$HAVE_LIB$uppername\"
8259 if test -n "$value"; then
8260 if test "$value" = yes; then
8261 eval value=\"\$LIB$uppername\"
93613951 8262 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
a04eba3f 8263 eval value=\"\$LTLIB$uppername\"
93613951 8264 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
a04eba3f
TT
8265 else
8266 :
8267 fi
8268 else
8269 found_dir=
8270 found_la=
8271 found_so=
8272 found_a=
93613951
TT
8273 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8274 if test -n "$acl_shlibext"; then
8275 shrext=".$acl_shlibext" # typically: shrext=.so
8276 else
8277 shrext=
8278 fi
a04eba3f 8279 if test $use_additional = yes; then
93613951
TT
8280 dir="$additional_libdir"
8281 if test -n "$acl_shlibext"; then
8282 if test -f "$dir/$libname$shrext"; then
8283 found_dir="$dir"
8284 found_so="$dir/$libname$shrext"
8285 else
8286 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8287 ver=`(cd "$dir" && \
8288 for f in "$libname$shrext".*; do echo "$f"; done \
8289 | sed -e "s,^$libname$shrext\\\\.,," \
8290 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8291 | sed 1q ) 2>/dev/null`
8292 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8293 found_dir="$dir"
8294 found_so="$dir/$libname$shrext.$ver"
8295 fi
8296 else
8297 eval library_names=\"$acl_library_names_spec\"
8298 for f in $library_names; do
8299 if test -f "$dir/$f"; then
8300 found_dir="$dir"
8301 found_so="$dir/$f"
8302 break
8303 fi
8304 done
a04eba3f
TT
8305 fi
8306 fi
93613951
TT
8307 fi
8308 if test "X$found_dir" = "X"; then
8309 if test -f "$dir/$libname.$acl_libext"; then
8310 found_dir="$dir"
8311 found_a="$dir/$libname.$acl_libext"
8312 fi
8313 fi
8314 if test "X$found_dir" != "X"; then
8315 if test -f "$dir/$libname.la"; then
8316 found_la="$dir/$libname.la"
8317 fi
a04eba3f
TT
8318 fi
8319 fi
8320 if test "X$found_dir" = "X"; then
93613951 8321 for x in $LDFLAGS $LTLIBPTH; do
b0cacab0 8322
a04eba3f
TT
8323 acl_save_prefix="$prefix"
8324 prefix="$acl_final_prefix"
8325 acl_save_exec_prefix="$exec_prefix"
8326 exec_prefix="$acl_final_exec_prefix"
8327 eval x=\"$x\"
8328 exec_prefix="$acl_save_exec_prefix"
8329 prefix="$acl_save_prefix"
8330
8331 case "$x" in
8332 -L*)
8333 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951
TT
8334 if test -n "$acl_shlibext"; then
8335 if test -f "$dir/$libname$shrext"; then
a04eba3f 8336 found_dir="$dir"
93613951
TT
8337 found_so="$dir/$libname$shrext"
8338 else
8339 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8340 ver=`(cd "$dir" && \
8341 for f in "$libname$shrext".*; do echo "$f"; done \
8342 | sed -e "s,^$libname$shrext\\\\.,," \
8343 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8344 | sed 1q ) 2>/dev/null`
8345 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8346 found_dir="$dir"
8347 found_so="$dir/$libname$shrext.$ver"
8348 fi
8349 else
8350 eval library_names=\"$acl_library_names_spec\"
8351 for f in $library_names; do
8352 if test -f "$dir/$f"; then
8353 found_dir="$dir"
8354 found_so="$dir/$f"
8355 break
8356 fi
8357 done
a04eba3f
TT
8358 fi
8359 fi
93613951
TT
8360 fi
8361 if test "X$found_dir" = "X"; then
8362 if test -f "$dir/$libname.$acl_libext"; then
8363 found_dir="$dir"
8364 found_a="$dir/$libname.$acl_libext"
8365 fi
8366 fi
8367 if test "X$found_dir" != "X"; then
8368 if test -f "$dir/$libname.la"; then
8369 found_la="$dir/$libname.la"
8370 fi
a04eba3f
TT
8371 fi
8372 ;;
8373 esac
8374 if test "X$found_dir" != "X"; then
8375 break
8376 fi
8377 done
8378 fi
8379 if test "X$found_dir" != "X"; then
93613951 8380 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
a04eba3f 8381 if test "X$found_so" != "X"; then
93613951
TT
8382 if test "$enable_rpath" = no \
8383 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8384 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8385 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f
TT
8386 else
8387 haveit=
8388 for x in $ltrpathdirs; do
8389 if test "X$x" = "X$found_dir"; then
8390 haveit=yes
8391 break
8392 fi
8393 done
8394 if test -z "$haveit"; then
8395 ltrpathdirs="$ltrpathdirs $found_dir"
8396 fi
93613951
TT
8397 if test "$acl_hardcode_direct" = yes; then
8398 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f 8399 else
93613951
TT
8400 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8401 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f
TT
8402 haveit=
8403 for x in $rpathdirs; do
8404 if test "X$x" = "X$found_dir"; then
8405 haveit=yes
8406 break
8407 fi
8408 done
8409 if test -z "$haveit"; then
8410 rpathdirs="$rpathdirs $found_dir"
8411 fi
8412 else
8413 haveit=
93613951 8414 for x in $LDFLAGS $LIBPTH; do
b0cacab0 8415
a04eba3f
TT
8416 acl_save_prefix="$prefix"
8417 prefix="$acl_final_prefix"
8418 acl_save_exec_prefix="$exec_prefix"
8419 exec_prefix="$acl_final_exec_prefix"
8420 eval x=\"$x\"
8421 exec_prefix="$acl_save_exec_prefix"
8422 prefix="$acl_save_prefix"
8423
8424 if test "X$x" = "X-L$found_dir"; then
8425 haveit=yes
8426 break
8427 fi
8428 done
8429 if test -z "$haveit"; then
93613951 8430 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
a04eba3f 8431 fi
93613951
TT
8432 if test "$acl_hardcode_minus_L" != no; then
8433 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f 8434 else
93613951 8435 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
a04eba3f
TT
8436 fi
8437 fi
8438 fi
8439 fi
8440 else
8441 if test "X$found_a" != "X"; then
93613951 8442 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
a04eba3f 8443 else
93613951 8444 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
a04eba3f
TT
8445 fi
8446 fi
8447 additional_includedir=
8448 case "$found_dir" in
93613951
TT
8449 */$acl_libdirstem | */$acl_libdirstem/)
8450 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8451 if test "$name" = 'pth'; then
8452 LIBPTH_PREFIX="$basedir"
8453 fi
8454 additional_includedir="$basedir/include"
8455 ;;
8456 */$acl_libdirstem2 | */$acl_libdirstem2/)
8457 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8458 if test "$name" = 'pth'; then
8459 LIBPTH_PREFIX="$basedir"
8460 fi
a04eba3f
TT
8461 additional_includedir="$basedir/include"
8462 ;;
8463 esac
8464 if test "X$additional_includedir" != "X"; then
8465 if test "X$additional_includedir" != "X/usr/include"; then
8466 haveit=
8467 if test "X$additional_includedir" = "X/usr/local/include"; then
8468 if test -n "$GCC"; then
8469 case $host_os in
93613951 8470 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
a04eba3f
TT
8471 esac
8472 fi
8473 fi
8474 if test -z "$haveit"; then
93613951 8475 for x in $CPPFLAGS $INCPTH; do
b0cacab0 8476
a04eba3f
TT
8477 acl_save_prefix="$prefix"
8478 prefix="$acl_final_prefix"
8479 acl_save_exec_prefix="$exec_prefix"
8480 exec_prefix="$acl_final_exec_prefix"
8481 eval x=\"$x\"
8482 exec_prefix="$acl_save_exec_prefix"
8483 prefix="$acl_save_prefix"
8484
8485 if test "X$x" = "X-I$additional_includedir"; then
8486 haveit=yes
8487 break
8488 fi
8489 done
8490 if test -z "$haveit"; then
8491 if test -d "$additional_includedir"; then
93613951 8492 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
a04eba3f
TT
8493 fi
8494 fi
8495 fi
8496 fi
8497 fi
8498 if test -n "$found_la"; then
8499 save_libdir="$libdir"
8500 case "$found_la" in
8501 */* | *\\*) . "$found_la" ;;
8502 *) . "./$found_la" ;;
8503 esac
8504 libdir="$save_libdir"
8505 for dep in $dependency_libs; do
8506 case "$dep" in
8507 -L*)
8508 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
93613951
TT
8509 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8510 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
a04eba3f 8511 haveit=
93613951
TT
8512 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8513 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
a04eba3f
TT
8514 if test -n "$GCC"; then
8515 case $host_os in
93613951 8516 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
a04eba3f
TT
8517 esac
8518 fi
8519 fi
8520 if test -z "$haveit"; then
8521 haveit=
93613951 8522 for x in $LDFLAGS $LIBPTH; do
b0cacab0 8523
a04eba3f
TT
8524 acl_save_prefix="$prefix"
8525 prefix="$acl_final_prefix"
8526 acl_save_exec_prefix="$exec_prefix"
8527 exec_prefix="$acl_final_exec_prefix"
8528 eval x=\"$x\"
8529 exec_prefix="$acl_save_exec_prefix"
8530 prefix="$acl_save_prefix"
8531
8532 if test "X$x" = "X-L$additional_libdir"; then
8533 haveit=yes
8534 break
8535 fi
8536 done
8537 if test -z "$haveit"; then
8538 if test -d "$additional_libdir"; then
93613951 8539 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
a04eba3f
TT
8540 fi
8541 fi
8542 haveit=
93613951 8543 for x in $LDFLAGS $LTLIBPTH; do
b0cacab0 8544
a04eba3f
TT
8545 acl_save_prefix="$prefix"
8546 prefix="$acl_final_prefix"
8547 acl_save_exec_prefix="$exec_prefix"
8548 exec_prefix="$acl_final_exec_prefix"
8549 eval x=\"$x\"
8550 exec_prefix="$acl_save_exec_prefix"
8551 prefix="$acl_save_prefix"
8552
8553 if test "X$x" = "X-L$additional_libdir"; then
8554 haveit=yes
8555 break
8556 fi
8557 done
8558 if test -z "$haveit"; then
8559 if test -d "$additional_libdir"; then
93613951 8560 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
a04eba3f
TT
8561 fi
8562 fi
8563 fi
8564 fi
8565 ;;
8566 -R*)
8567 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8568 if test "$enable_rpath" != no; then
8569 haveit=
8570 for x in $rpathdirs; do
8571 if test "X$x" = "X$dir"; then
8572 haveit=yes
8573 break
8574 fi
8575 done
8576 if test -z "$haveit"; then
8577 rpathdirs="$rpathdirs $dir"
8578 fi
8579 haveit=
8580 for x in $ltrpathdirs; do
8581 if test "X$x" = "X$dir"; then
8582 haveit=yes
8583 break
8584 fi
8585 done
8586 if test -z "$haveit"; then
8587 ltrpathdirs="$ltrpathdirs $dir"
8588 fi
8589 fi
8590 ;;
8591 -l*)
8592 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8593 ;;
8594 *.la)
8595 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8596 ;;
8597 *)
93613951
TT
8598 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8599 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
a04eba3f
TT
8600 ;;
8601 esac
8602 done
8603 fi
8604 else
93613951
TT
8605 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8606 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
a04eba3f
TT
8607 fi
8608 fi
8609 fi
8610 done
8611 done
8612 if test "X$rpathdirs" != "X"; then
93613951 8613 if test -n "$acl_hardcode_libdir_separator"; then
a04eba3f
TT
8614 alldirs=
8615 for found_dir in $rpathdirs; do
93613951 8616 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
a04eba3f
TT
8617 done
8618 acl_save_libdir="$libdir"
8619 libdir="$alldirs"
93613951 8620 eval flag=\"$acl_hardcode_libdir_flag_spec\"
a04eba3f 8621 libdir="$acl_save_libdir"
93613951 8622 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
a04eba3f
TT
8623 else
8624 for found_dir in $rpathdirs; do
8625 acl_save_libdir="$libdir"
8626 libdir="$found_dir"
93613951 8627 eval flag=\"$acl_hardcode_libdir_flag_spec\"
a04eba3f 8628 libdir="$acl_save_libdir"
93613951 8629 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
a04eba3f
TT
8630 done
8631 fi
8632 fi
8633 if test "X$ltrpathdirs" != "X"; then
8634 for found_dir in $ltrpathdirs; do
93613951 8635 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
a04eba3f 8636 done
b0cacab0 8637 fi
b0cacab0 8638
a04eba3f 8639
93636bde 8640
a64c9c13 8641
93636bde 8642
b0cacab0 8643
93613951
TT
8644 ac_cv_libpth_libs="$LIBPTH"
8645 ac_cv_libpth_ltlibs="$LTLIBPTH"
8646 ac_cv_libpth_cppflags="$INCPTH"
8647 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8648
8649fi
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8651$as_echo "$ac_cv_libpth_libs" >&6; }
8652 LIBPTH="$ac_cv_libpth_libs"
8653 LTLIBPTH="$ac_cv_libpth_ltlibs"
8654 INCPTH="$ac_cv_libpth_cppflags"
8655 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8656
8657 for element in $INCPTH; do
8658 haveit=
8659 for x in $CPPFLAGS; do
8660
8661 acl_save_prefix="$prefix"
8662 prefix="$acl_final_prefix"
8663 acl_save_exec_prefix="$exec_prefix"
8664 exec_prefix="$acl_final_exec_prefix"
8665 eval x=\"$x\"
8666 exec_prefix="$acl_save_exec_prefix"
8667 prefix="$acl_save_prefix"
8668
8669 if test "X$x" = "X$element"; then
8670 haveit=yes
8671 break
8672 fi
8673 done
8674 if test -z "$haveit"; then
8675 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8676 fi
8677 done
8678
8679
8680
8681
8682 HAVE_LIBPTH=yes
8683
8684
8685
8686 gl_have_pth=
8687 gl_save_LIBS="$LIBS"
8688 LIBS="$LIBS $LIBPTH"
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h. */
8691#include <pth.h>
8692int
8693main ()
8694{
8695pth_self();
8696 ;
8697 return 0;
8698}
8699_ACEOF
8700if ac_fn_c_try_link "$LINENO"; then :
8701 gl_have_pth=yes
8702fi
8703rm -f core conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705 LIBS="$gl_save_LIBS"
8706 if test -n "$gl_have_pth"; then
8707 gl_threads_api=pth
8708 LIBTHREAD="$LIBPTH"
8709 LTLIBTHREAD="$LTLIBPTH"
8710 LIBMULTITHREAD="$LIBTHREAD"
8711 LTLIBMULTITHREAD="$LTLIBTHREAD"
8712
8713$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8714
8715 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8716 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8717
8718$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8719
8720 LIBTHREAD=
8721 LTLIBTHREAD=
8722 fi
8723 fi
8724 else
8725 CPPFLAGS="$gl_save_CPPFLAGS"
8726 fi
8727 fi
8728 if test -z "$gl_have_pthread"; then
8729 case "$gl_use_threads" in
8730 yes | windows | win32) # The 'win32' is for backward compatibility.
8731 if { case "$host_os" in
8732 mingw*) true;;
8733 *) false;;
8734 esac
8735 }; then
8736 gl_threads_api=windows
8737
8738$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8739
8740 fi
8741 ;;
8742 esac
8743 fi
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8746$as_echo_n "checking for multithread API to use... " >&6; }
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8748$as_echo "$gl_threads_api" >&6; }
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760 if test "$gl_threads_api" = posix; then
8761 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8762 # pthread_rwlock_* functions.
8763 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8764"
8765if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8766
8767$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8768
8769fi
8770
8771 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773/* end confdefs.h. */
8774
8775 #include <pthread.h>
8776int
8777main ()
8778{
8779
8780#if __FreeBSD__ == 4
8781error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8782#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8783 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8784error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8785#else
8786int x = (int)PTHREAD_MUTEX_RECURSIVE;
8787return !x;
8788#endif
8789
8790 ;
8791 return 0;
8792}
8793_ACEOF
8794if ac_fn_c_try_compile "$LINENO"; then :
8795
8796$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8797
8798fi
8799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 fi
8801 :
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814 use_additional=yes
8815
8816 acl_save_prefix="$prefix"
8817 prefix="$acl_final_prefix"
8818 acl_save_exec_prefix="$exec_prefix"
8819 exec_prefix="$acl_final_exec_prefix"
8820
8821 eval additional_includedir=\"$includedir\"
8822 eval additional_libdir=\"$libdir\"
8823
8824 exec_prefix="$acl_save_exec_prefix"
8825 prefix="$acl_save_prefix"
8826
8827
8828# Check whether --with-libiconv-prefix was given.
8829if test "${with_libiconv_prefix+set}" = set; then :
8830 withval=$with_libiconv_prefix;
8831 if test "X$withval" = "Xno"; then
8832 use_additional=no
8833 else
8834 if test "X$withval" = "X"; then
8835
8836 acl_save_prefix="$prefix"
8837 prefix="$acl_final_prefix"
8838 acl_save_exec_prefix="$exec_prefix"
8839 exec_prefix="$acl_final_exec_prefix"
8840
8841 eval additional_includedir=\"$includedir\"
8842 eval additional_libdir=\"$libdir\"
8843
8844 exec_prefix="$acl_save_exec_prefix"
8845 prefix="$acl_save_prefix"
8846
8847 else
8848 additional_includedir="$withval/include"
8849 additional_libdir="$withval/$acl_libdirstem"
8850 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8851 && ! test -d "$withval/$acl_libdirstem"; then
8852 additional_libdir="$withval/$acl_libdirstem2"
8853 fi
8854 fi
8855 fi
8856
8857fi
8858
8859 LIBICONV=
8860 LTLIBICONV=
8861 INCICONV=
8862 LIBICONV_PREFIX=
8863 HAVE_LIBICONV=
8864 rpathdirs=
8865 ltrpathdirs=
8866 names_already_handled=
8867 names_next_round='iconv '
8868 while test -n "$names_next_round"; do
8869 names_this_round="$names_next_round"
8870 names_next_round=
8871 for name in $names_this_round; do
8872 already_handled=
8873 for n in $names_already_handled; do
8874 if test "$n" = "$name"; then
8875 already_handled=yes
8876 break
8877 fi
8878 done
8879 if test -z "$already_handled"; then
8880 names_already_handled="$names_already_handled $name"
8881 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8882 eval value=\"\$HAVE_LIB$uppername\"
8883 if test -n "$value"; then
8884 if test "$value" = yes; then
8885 eval value=\"\$LIB$uppername\"
8886 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8887 eval value=\"\$LTLIB$uppername\"
8888 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8889 else
8890 :
8891 fi
8892 else
8893 found_dir=
8894 found_la=
8895 found_so=
8896 found_a=
8897 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8898 if test -n "$acl_shlibext"; then
8899 shrext=".$acl_shlibext" # typically: shrext=.so
8900 else
8901 shrext=
8902 fi
8903 if test $use_additional = yes; then
8904 dir="$additional_libdir"
8905 if test -n "$acl_shlibext"; then
8906 if test -f "$dir/$libname$shrext"; then
8907 found_dir="$dir"
8908 found_so="$dir/$libname$shrext"
8909 else
8910 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8911 ver=`(cd "$dir" && \
8912 for f in "$libname$shrext".*; do echo "$f"; done \
8913 | sed -e "s,^$libname$shrext\\\\.,," \
8914 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8915 | sed 1q ) 2>/dev/null`
8916 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8917 found_dir="$dir"
8918 found_so="$dir/$libname$shrext.$ver"
8919 fi
8920 else
8921 eval library_names=\"$acl_library_names_spec\"
8922 for f in $library_names; do
8923 if test -f "$dir/$f"; then
8924 found_dir="$dir"
8925 found_so="$dir/$f"
8926 break
8927 fi
8928 done
8929 fi
8930 fi
8931 fi
8932 if test "X$found_dir" = "X"; then
8933 if test -f "$dir/$libname.$acl_libext"; then
8934 found_dir="$dir"
8935 found_a="$dir/$libname.$acl_libext"
8936 fi
8937 fi
8938 if test "X$found_dir" != "X"; then
8939 if test -f "$dir/$libname.la"; then
8940 found_la="$dir/$libname.la"
8941 fi
8942 fi
8943 fi
8944 if test "X$found_dir" = "X"; then
8945 for x in $LDFLAGS $LTLIBICONV; do
8946
8947 acl_save_prefix="$prefix"
8948 prefix="$acl_final_prefix"
8949 acl_save_exec_prefix="$exec_prefix"
8950 exec_prefix="$acl_final_exec_prefix"
8951 eval x=\"$x\"
8952 exec_prefix="$acl_save_exec_prefix"
8953 prefix="$acl_save_prefix"
8954
8955 case "$x" in
8956 -L*)
8957 dir=`echo "X$x" | sed -e 's/^X-L//'`
8958 if test -n "$acl_shlibext"; then
8959 if test -f "$dir/$libname$shrext"; then
8960 found_dir="$dir"
8961 found_so="$dir/$libname$shrext"
8962 else
8963 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8964 ver=`(cd "$dir" && \
8965 for f in "$libname$shrext".*; do echo "$f"; done \
8966 | sed -e "s,^$libname$shrext\\\\.,," \
8967 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8968 | sed 1q ) 2>/dev/null`
8969 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8970 found_dir="$dir"
8971 found_so="$dir/$libname$shrext.$ver"
8972 fi
8973 else
8974 eval library_names=\"$acl_library_names_spec\"
8975 for f in $library_names; do
8976 if test -f "$dir/$f"; then
8977 found_dir="$dir"
8978 found_so="$dir/$f"
8979 break
8980 fi
8981 done
8982 fi
8983 fi
8984 fi
8985 if test "X$found_dir" = "X"; then
8986 if test -f "$dir/$libname.$acl_libext"; then
8987 found_dir="$dir"
8988 found_a="$dir/$libname.$acl_libext"
8989 fi
8990 fi
8991 if test "X$found_dir" != "X"; then
8992 if test -f "$dir/$libname.la"; then
8993 found_la="$dir/$libname.la"
8994 fi
8995 fi
8996 ;;
8997 esac
8998 if test "X$found_dir" != "X"; then
8999 break
9000 fi
9001 done
9002 fi
9003 if test "X$found_dir" != "X"; then
9004 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9005 if test "X$found_so" != "X"; then
9006 if test "$enable_rpath" = no \
9007 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9008 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9009 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9010 else
9011 haveit=
9012 for x in $ltrpathdirs; do
9013 if test "X$x" = "X$found_dir"; then
9014 haveit=yes
9015 break
9016 fi
9017 done
9018 if test -z "$haveit"; then
9019 ltrpathdirs="$ltrpathdirs $found_dir"
9020 fi
9021 if test "$acl_hardcode_direct" = yes; then
9022 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9023 else
9024 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9025 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9026 haveit=
9027 for x in $rpathdirs; do
9028 if test "X$x" = "X$found_dir"; then
9029 haveit=yes
9030 break
9031 fi
9032 done
9033 if test -z "$haveit"; then
9034 rpathdirs="$rpathdirs $found_dir"
9035 fi
9036 else
9037 haveit=
9038 for x in $LDFLAGS $LIBICONV; do
9039
9040 acl_save_prefix="$prefix"
9041 prefix="$acl_final_prefix"
9042 acl_save_exec_prefix="$exec_prefix"
9043 exec_prefix="$acl_final_exec_prefix"
9044 eval x=\"$x\"
9045 exec_prefix="$acl_save_exec_prefix"
9046 prefix="$acl_save_prefix"
9047
9048 if test "X$x" = "X-L$found_dir"; then
9049 haveit=yes
9050 break
9051 fi
9052 done
9053 if test -z "$haveit"; then
9054 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9055 fi
9056 if test "$acl_hardcode_minus_L" != no; then
9057 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9058 else
9059 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9060 fi
9061 fi
9062 fi
9063 fi
9064 else
9065 if test "X$found_a" != "X"; then
9066 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9067 else
9068 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9069 fi
9070 fi
9071 additional_includedir=
9072 case "$found_dir" in
9073 */$acl_libdirstem | */$acl_libdirstem/)
9074 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9075 if test "$name" = 'iconv'; then
9076 LIBICONV_PREFIX="$basedir"
9077 fi
9078 additional_includedir="$basedir/include"
9079 ;;
9080 */$acl_libdirstem2 | */$acl_libdirstem2/)
9081 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9082 if test "$name" = 'iconv'; then
9083 LIBICONV_PREFIX="$basedir"
9084 fi
9085 additional_includedir="$basedir/include"
9086 ;;
9087 esac
9088 if test "X$additional_includedir" != "X"; then
9089 if test "X$additional_includedir" != "X/usr/include"; then
9090 haveit=
9091 if test "X$additional_includedir" = "X/usr/local/include"; then
9092 if test -n "$GCC"; then
9093 case $host_os in
9094 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9095 esac
9096 fi
9097 fi
9098 if test -z "$haveit"; then
9099 for x in $CPPFLAGS $INCICONV; do
9100
9101 acl_save_prefix="$prefix"
9102 prefix="$acl_final_prefix"
9103 acl_save_exec_prefix="$exec_prefix"
9104 exec_prefix="$acl_final_exec_prefix"
9105 eval x=\"$x\"
9106 exec_prefix="$acl_save_exec_prefix"
9107 prefix="$acl_save_prefix"
9108
9109 if test "X$x" = "X-I$additional_includedir"; then
9110 haveit=yes
9111 break
9112 fi
9113 done
9114 if test -z "$haveit"; then
9115 if test -d "$additional_includedir"; then
9116 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9117 fi
9118 fi
9119 fi
9120 fi
9121 fi
9122 if test -n "$found_la"; then
9123 save_libdir="$libdir"
9124 case "$found_la" in
9125 */* | *\\*) . "$found_la" ;;
9126 *) . "./$found_la" ;;
9127 esac
9128 libdir="$save_libdir"
9129 for dep in $dependency_libs; do
9130 case "$dep" in
9131 -L*)
9132 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9133 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9134 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9135 haveit=
9136 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9137 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9138 if test -n "$GCC"; then
9139 case $host_os in
9140 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9141 esac
9142 fi
9143 fi
9144 if test -z "$haveit"; then
9145 haveit=
9146 for x in $LDFLAGS $LIBICONV; do
9147
9148 acl_save_prefix="$prefix"
9149 prefix="$acl_final_prefix"
9150 acl_save_exec_prefix="$exec_prefix"
9151 exec_prefix="$acl_final_exec_prefix"
9152 eval x=\"$x\"
9153 exec_prefix="$acl_save_exec_prefix"
9154 prefix="$acl_save_prefix"
9155
9156 if test "X$x" = "X-L$additional_libdir"; then
9157 haveit=yes
9158 break
9159 fi
9160 done
9161 if test -z "$haveit"; then
9162 if test -d "$additional_libdir"; then
9163 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9164 fi
9165 fi
9166 haveit=
9167 for x in $LDFLAGS $LTLIBICONV; do
9168
9169 acl_save_prefix="$prefix"
9170 prefix="$acl_final_prefix"
9171 acl_save_exec_prefix="$exec_prefix"
9172 exec_prefix="$acl_final_exec_prefix"
9173 eval x=\"$x\"
9174 exec_prefix="$acl_save_exec_prefix"
9175 prefix="$acl_save_prefix"
9176
9177 if test "X$x" = "X-L$additional_libdir"; then
9178 haveit=yes
9179 break
9180 fi
9181 done
9182 if test -z "$haveit"; then
9183 if test -d "$additional_libdir"; then
9184 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9185 fi
9186 fi
9187 fi
9188 fi
9189 ;;
9190 -R*)
9191 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9192 if test "$enable_rpath" != no; then
9193 haveit=
9194 for x in $rpathdirs; do
9195 if test "X$x" = "X$dir"; then
9196 haveit=yes
9197 break
9198 fi
9199 done
9200 if test -z "$haveit"; then
9201 rpathdirs="$rpathdirs $dir"
9202 fi
9203 haveit=
9204 for x in $ltrpathdirs; do
9205 if test "X$x" = "X$dir"; then
9206 haveit=yes
9207 break
9208 fi
9209 done
9210 if test -z "$haveit"; then
9211 ltrpathdirs="$ltrpathdirs $dir"
9212 fi
9213 fi
9214 ;;
9215 -l*)
9216 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9217 ;;
9218 *.la)
9219 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9220 ;;
9221 *)
9222 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9223 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9224 ;;
9225 esac
9226 done
9227 fi
9228 else
9229 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9230 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9231 fi
9232 fi
9233 fi
9234 done
9235 done
9236 if test "X$rpathdirs" != "X"; then
9237 if test -n "$acl_hardcode_libdir_separator"; then
9238 alldirs=
9239 for found_dir in $rpathdirs; do
9240 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9241 done
9242 acl_save_libdir="$libdir"
9243 libdir="$alldirs"
9244 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9245 libdir="$acl_save_libdir"
9246 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9247 else
9248 for found_dir in $rpathdirs; do
9249 acl_save_libdir="$libdir"
9250 libdir="$found_dir"
9251 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9252 libdir="$acl_save_libdir"
9253 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9254 done
9255 fi
9256 fi
9257 if test "X$ltrpathdirs" != "X"; then
9258 for found_dir in $ltrpathdirs; do
9259 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9260 done
9261 fi
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274 am_save_CPPFLAGS="$CPPFLAGS"
9275
9276 for element in $INCICONV; do
9277 haveit=
9278 for x in $CPPFLAGS; do
9279
9280 acl_save_prefix="$prefix"
9281 prefix="$acl_final_prefix"
9282 acl_save_exec_prefix="$exec_prefix"
9283 exec_prefix="$acl_final_exec_prefix"
9284 eval x=\"$x\"
9285 exec_prefix="$acl_save_exec_prefix"
9286 prefix="$acl_save_prefix"
9287
9288 if test "X$x" = "X$element"; then
9289 haveit=yes
9290 break
9291 fi
9292 done
9293 if test -z "$haveit"; then
9294 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9295 fi
9296 done
9297
9298
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9300$as_echo_n "checking for iconv... " >&6; }
9301if ${am_cv_func_iconv+:} false; then :
9302 $as_echo_n "(cached) " >&6
9303else
9304
9305 am_cv_func_iconv="no, consider installing GNU libiconv"
9306 am_cv_lib_iconv=no
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308/* end confdefs.h. */
9309
9310#include <stdlib.h>
9311#include <iconv.h>
9312
9313int
9314main ()
9315{
9316iconv_t cd = iconv_open("","");
9317 iconv(cd,NULL,NULL,NULL,NULL);
9318 iconv_close(cd);
9319 ;
9320 return 0;
9321}
9322_ACEOF
9323if ac_fn_c_try_link "$LINENO"; then :
9324 am_cv_func_iconv=yes
9325fi
9326rm -f core conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
9328 if test "$am_cv_func_iconv" != yes; then
9329 am_save_LIBS="$LIBS"
9330 LIBS="$LIBS $LIBICONV"
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332/* end confdefs.h. */
9333
9334#include <stdlib.h>
9335#include <iconv.h>
9336
9337int
9338main ()
9339{
9340iconv_t cd = iconv_open("","");
9341 iconv(cd,NULL,NULL,NULL,NULL);
9342 iconv_close(cd);
9343 ;
9344 return 0;
9345}
9346_ACEOF
9347if ac_fn_c_try_link "$LINENO"; then :
9348 am_cv_lib_iconv=yes
9349 am_cv_func_iconv=yes
9350fi
9351rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353 LIBS="$am_save_LIBS"
9354 fi
9355
9356fi
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9358$as_echo "$am_cv_func_iconv" >&6; }
9359 if test "$am_cv_func_iconv" = yes; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9361$as_echo_n "checking for working iconv... " >&6; }
9362if ${am_cv_func_iconv_works+:} false; then :
9363 $as_echo_n "(cached) " >&6
9364else
9365
9366 am_save_LIBS="$LIBS"
9367 if test $am_cv_lib_iconv = yes; then
9368 LIBS="$LIBS $LIBICONV"
9369 fi
9370 if test "$cross_compiling" = yes; then :
9371
9372 case "$host_os" in
9373 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9374 *) am_cv_func_iconv_works="guessing yes" ;;
9375 esac
9376
9377else
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379/* end confdefs.h. */
9380
9381#include <iconv.h>
9382#include <string.h>
9383int main ()
9384{
9385 int result = 0;
9386 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9387 returns. */
9388 {
9389 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9390 if (cd_utf8_to_88591 != (iconv_t)(-1))
9391 {
9392 static const char input[] = "\342\202\254"; /* EURO SIGN */
9393 char buf[10];
9394 const char *inptr = input;
9395 size_t inbytesleft = strlen (input);
9396 char *outptr = buf;
9397 size_t outbytesleft = sizeof (buf);
9398 size_t res = iconv (cd_utf8_to_88591,
9399 (char **) &inptr, &inbytesleft,
9400 &outptr, &outbytesleft);
9401 if (res == 0)
9402 result |= 1;
9403 iconv_close (cd_utf8_to_88591);
9404 }
9405 }
9406 /* Test against Solaris 10 bug: Failures are not distinguishable from
9407 successful returns. */
9408 {
9409 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9410 if (cd_ascii_to_88591 != (iconv_t)(-1))
9411 {
9412 static const char input[] = "\263";
9413 char buf[10];
9414 const char *inptr = input;
9415 size_t inbytesleft = strlen (input);
9416 char *outptr = buf;
9417 size_t outbytesleft = sizeof (buf);
9418 size_t res = iconv (cd_ascii_to_88591,
9419 (char **) &inptr, &inbytesleft,
9420 &outptr, &outbytesleft);
9421 if (res == 0)
9422 result |= 2;
9423 iconv_close (cd_ascii_to_88591);
9424 }
9425 }
9426 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9427 {
9428 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9429 if (cd_88591_to_utf8 != (iconv_t)(-1))
9430 {
9431 static const char input[] = "\304";
9432 static char buf[2] = { (char)0xDE, (char)0xAD };
9433 const char *inptr = input;
9434 size_t inbytesleft = 1;
9435 char *outptr = buf;
9436 size_t outbytesleft = 1;
9437 size_t res = iconv (cd_88591_to_utf8,
9438 (char **) &inptr, &inbytesleft,
9439 &outptr, &outbytesleft);
9440 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9441 result |= 4;
9442 iconv_close (cd_88591_to_utf8);
9443 }
9444 }
9445#if 0 /* This bug could be worked around by the caller. */
9446 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9447 {
9448 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9449 if (cd_88591_to_utf8 != (iconv_t)(-1))
9450 {
9451 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9452 char buf[50];
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_88591_to_utf8,
9458 (char **) &inptr, &inbytesleft,
9459 &outptr, &outbytesleft);
9460 if ((int)res > 0)
9461 result |= 8;
9462 iconv_close (cd_88591_to_utf8);
9463 }
9464 }
9465#endif
9466 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9467 provided. */
9468 if (/* Try standardized names. */
9469 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9470 /* Try IRIX, OSF/1 names. */
9471 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9472 /* Try AIX names. */
9473 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9474 /* Try HP-UX names. */
9475 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9476 result |= 16;
9477 return result;
9478}
9479_ACEOF
9480if ac_fn_c_try_run "$LINENO"; then :
9481 am_cv_func_iconv_works=yes
9482else
9483 am_cv_func_iconv_works=no
9484fi
9485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9486 conftest.$ac_objext conftest.beam conftest.$ac_ext
9487fi
9488
9489 LIBS="$am_save_LIBS"
9490
9491fi
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9493$as_echo "$am_cv_func_iconv_works" >&6; }
9494 case "$am_cv_func_iconv_works" in
9495 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9496 *) am_func_iconv=yes ;;
9497 esac
9498 else
9499 am_func_iconv=no am_cv_lib_iconv=no
9500 fi
9501 if test "$am_func_iconv" = yes; then
9502
9503$as_echo "#define HAVE_ICONV 1" >>confdefs.h
9504
9505 fi
9506 if test "$am_cv_lib_iconv" = yes; then
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9508$as_echo_n "checking how to link with libiconv... " >&6; }
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9510$as_echo "$LIBICONV" >&6; }
9511 else
9512 CPPFLAGS="$am_save_CPPFLAGS"
9513 LIBICONV=
9514 LTLIBICONV=
9515 fi
9516
9517
9518
9519 if test "$am_cv_func_iconv" = yes; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9521$as_echo_n "checking for iconv declaration... " >&6; }
9522 if ${am_cv_proto_iconv+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524else
9525
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527/* end confdefs.h. */
9528
9529#include <stdlib.h>
9530#include <iconv.h>
9531extern
9532#ifdef __cplusplus
9533"C"
9534#endif
9535#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9536size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9537#else
9538size_t iconv();
9539#endif
9540
9541int
9542main ()
9543{
9544
9545 ;
9546 return 0;
9547}
9548_ACEOF
9549if ac_fn_c_try_compile "$LINENO"; then :
9550 am_cv_proto_iconv_arg1=""
9551else
9552 am_cv_proto_iconv_arg1="const"
9553fi
9554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555 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);"
9556fi
9557
9558 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9560 $am_cv_proto_iconv" >&5
9561$as_echo "
9562 $am_cv_proto_iconv" >&6; }
9563
9564cat >>confdefs.h <<_ACEOF
9565#define ICONV_CONST $am_cv_proto_iconv_arg1
9566_ACEOF
9567
9568
9569 fi
9570
9571
9572
9573
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575/* end confdefs.h. */
9576int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9577int
9578main ()
9579{
9580
9581 ;
9582 return 0;
9583}
9584_ACEOF
9585if ac_fn_c_try_link "$LINENO"; then :
9586
9587$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9588
9589fi
9590rm -f core conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
9592
9593 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9594do :
9595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9596ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9598 cat >>confdefs.h <<_ACEOF
9599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9600_ACEOF
9601
9602fi
9603
9604done
9605
9606 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9607 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9608 argz_stringify argz_next __fsetlocking
9609do :
9610 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9611ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9612if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9613 cat >>confdefs.h <<_ACEOF
9614#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9615_ACEOF
9616
9617fi
9618done
9619
9620
9621 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9622"
9623if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9624 ac_have_decl=1
9625else
9626 ac_have_decl=0
9627fi
9628
9629cat >>confdefs.h <<_ACEOF
9630#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9631_ACEOF
9632ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9633"
9634if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9635 ac_have_decl=1
9636else
9637 ac_have_decl=0
9638fi
9639
9640cat >>confdefs.h <<_ACEOF
9641#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9642_ACEOF
9643
9644
9645
9646
9647 for ac_prog in bison
9648do
9649 # Extract the first word of "$ac_prog", so it can be a program name with args.
9650set dummy $ac_prog; ac_word=$2
9651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9652$as_echo_n "checking for $ac_word... " >&6; }
9653if ${ac_cv_prog_INTLBISON+:} false; then :
9654 $as_echo_n "(cached) " >&6
9655else
9656 if test -n "$INTLBISON"; then
9657 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9658else
9659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660for as_dir in $PATH
9661do
9662 IFS=$as_save_IFS
9663 test -z "$as_dir" && as_dir=.
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9666 ac_cv_prog_INTLBISON="$ac_prog"
9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668 break 2
9669 fi
9670done
9671 done
9672IFS=$as_save_IFS
9673
9674fi
9675fi
9676INTLBISON=$ac_cv_prog_INTLBISON
9677if test -n "$INTLBISON"; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9679$as_echo "$INTLBISON" >&6; }
9680else
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682$as_echo "no" >&6; }
9683fi
9684
9685
9686 test -n "$INTLBISON" && break
9687done
9688
9689 if test -z "$INTLBISON"; then
9690 ac_verc_fail=yes
9691 else
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9693$as_echo_n "checking version of bison... " >&6; }
9694 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9695 case $ac_prog_version in
9696 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9697 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9698 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9699 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9700 esac
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9702$as_echo "$ac_prog_version" >&6; }
9703 fi
9704 if test $ac_verc_fail = yes; then
9705 INTLBISON=:
b0cacab0 9706 fi
b0cacab0 9707
a04eba3f 9708
93636bde 9709
93613951
TT
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9711$as_echo_n "checking for long long int... " >&6; }
9712if ${ac_cv_type_long_long_int+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714else
9715 ac_cv_type_long_long_int=yes
9716 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9717 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9718 if test $ac_cv_type_long_long_int = yes; then
9719 if test "$cross_compiling" = yes; then :
9720 :
9721else
9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723/* end confdefs.h. */
9724#include <limits.h>
9725 #ifndef LLONG_MAX
9726 # define HALF \
9727 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9728 # define LLONG_MAX (HALF - 1 + HALF)
9729 #endif
9730int
9731main ()
9732{
9733long long int n = 1;
9734 int i;
9735 for (i = 0; ; i++)
9736 {
9737 long long int m = n << i;
9738 if (m >> i != n)
9739 return 1;
9740 if (LLONG_MAX / 2 < m)
9741 break;
9742 }
9743 return 0;
9744 ;
9745 return 0;
9746}
9747_ACEOF
9748if ac_fn_c_try_run "$LINENO"; then :
a64c9c13 9749
93613951
TT
9750else
9751 ac_cv_type_long_long_int=no
9752fi
9753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9754 conftest.$ac_objext conftest.beam conftest.$ac_ext
9755fi
93636bde 9756
93613951
TT
9757 fi
9758 fi
9759fi
9760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9761$as_echo "$ac_cv_type_long_long_int" >&6; }
9762 if test $ac_cv_type_long_long_int = yes; then
b0cacab0 9763
93613951 9764$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
b0cacab0 9765
93613951 9766 fi
b0cacab0
TT
9767
9768
93613951
TT
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9770$as_echo_n "checking for wchar_t... " >&6; }
9771if ${gt_cv_c_wchar_t+:} false; then :
9772 $as_echo_n "(cached) " >&6
50e1e10f 9773else
93613951
TT
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h. */
9776#include <stddef.h>
9777 wchar_t foo = (wchar_t)'\0';
9778int
9779main ()
9780{
50e1e10f 9781
93613951
TT
9782 ;
9783 return 0;
9784}
57aa50d4 9785_ACEOF
93613951
TT
9786if ac_fn_c_try_compile "$LINENO"; then :
9787 gt_cv_c_wchar_t=yes
9788else
9789 gt_cv_c_wchar_t=no
57aa50d4 9790fi
93613951 9791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6d9d51 9792fi
93613951
TT
9793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9794$as_echo "$gt_cv_c_wchar_t" >&6; }
9795 if test $gt_cv_c_wchar_t = yes; then
b0cacab0 9796
93613951 9797$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
b0cacab0 9798
93613951 9799 fi
50e1e10f 9800
e1052144 9801
93613951
TT
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9803$as_echo_n "checking for wint_t... " >&6; }
9804if ${gt_cv_c_wint_t+:} false; then :
39fd3d4f 9805 $as_echo_n "(cached) " >&6
50e1e10f 9806else
57aa50d4
TT
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808/* end confdefs.h. */
bcb915b0 9809
93613951
TT
9810/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9811 <wchar.h>.
9812 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9813 before <wchar.h>. */
9814#include <stddef.h>
57aa50d4 9815#include <stdio.h>
93613951
TT
9816#include <time.h>
9817#include <wchar.h>
9818 wint_t foo = (wchar_t)'\0';
57aa50d4
TT
9819int
9820main ()
9821{
50e1e10f 9822
57aa50d4
TT
9823 ;
9824 return 0;
9825}
9826_ACEOF
9827if ac_fn_c_try_compile "$LINENO"; then :
93613951 9828 gt_cv_c_wint_t=yes
50e1e10f 9829else
93613951 9830 gt_cv_c_wint_t=no
50e1e10f 9831fi
57aa50d4 9832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 9833fi
93613951
TT
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9835$as_echo "$gt_cv_c_wint_t" >&6; }
9836 if test $gt_cv_c_wint_t = yes; then
bcb915b0 9837
93613951 9838$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
50e1e10f 9839
57aa50d4 9840 fi
50e1e10f 9841
e1052144 9842
e1052144 9843
57aa50d4 9844
93613951
TT
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9846$as_echo_n "checking for intmax_t... " >&6; }
9847if ${gt_cv_c_intmax_t+:} false; then :
39fd3d4f 9848 $as_echo_n "(cached) " >&6
50e1e10f 9849else
57aa50d4
TT
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851/* end confdefs.h. */
b0cacab0 9852
93613951
TT
9853#include <stddef.h>
9854#include <stdlib.h>
9855#if HAVE_STDINT_H_WITH_UINTMAX
9856#include <stdint.h>
9857#endif
9858#if HAVE_INTTYPES_H_WITH_UINTMAX
9859#include <inttypes.h>
57aa50d4
TT
9860#endif
9861
93613951
TT
9862int
9863main ()
9864{
9865intmax_t x = -1;
9866 return !x;
57aa50d4
TT
9867 ;
9868 return 0;
9869}
9870_ACEOF
9871if ac_fn_c_try_compile "$LINENO"; then :
93613951 9872 gt_cv_c_intmax_t=yes
50e1e10f 9873else
93613951 9874 gt_cv_c_intmax_t=no
57aa50d4
TT
9875fi
9876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 9877fi
93613951
TT
9878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9879$as_echo "$gt_cv_c_intmax_t" >&6; }
9880 if test $gt_cv_c_intmax_t = yes; then
9881
9882$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9883
57aa50d4 9884 fi
50e1e10f 9885
93613951
TT
9886
9887
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9889$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9890if ${gt_cv_func_printf_posix+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892else
9893
9894 if test "$cross_compiling" = yes; then :
9895
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897/* end confdefs.h. */
9898
9899#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9900 notposix
9901#endif
9902
9903_ACEOF
9904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9905 $EGREP "notposix" >/dev/null 2>&1; then :
9906 gt_cv_func_printf_posix="guessing no"
9907else
9908 gt_cv_func_printf_posix="guessing yes"
9909fi
9910rm -f conftest*
9911
9912
9913else
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915/* end confdefs.h. */
9916
9917#include <stdio.h>
9918#include <string.h>
9919/* The string "%2$d %1$d", with dollar characters protected from the shell's
9920 dollar expansion (possibly an autoconf bug). */
9921static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9922static char buf[100];
9923int main ()
9924{
9925 sprintf (buf, format, 33, 55);
9926 return (strcmp (buf, "55 33") != 0);
9927}
9928_ACEOF
9929if ac_fn_c_try_run "$LINENO"; then :
9930 gt_cv_func_printf_posix=yes
9931else
9932 gt_cv_func_printf_posix=no
9933fi
9934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9935 conftest.$ac_objext conftest.beam conftest.$ac_ext
9936fi
9937
9938
9939fi
9940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9941$as_echo "$gt_cv_func_printf_posix" >&6; }
9942 case $gt_cv_func_printf_posix in
9943 *yes)
9944
9945$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9946
9947 ;;
9948 esac
9949
9950
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9952$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9953if ${ac_cv_gnu_library_2_1+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955else
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957/* end confdefs.h. */
9958
9959#include <features.h>
9960#ifdef __GNU_LIBRARY__
9961 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9962 Lucky GNU user
9963 #endif
9964#endif
9965#ifdef __UCLIBC__
9966 Lucky user
9967#endif
9968
9969_ACEOF
9970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9971 $EGREP "Lucky" >/dev/null 2>&1; then :
9972 ac_cv_gnu_library_2_1=yes
9973else
9974 ac_cv_gnu_library_2_1=no
9975fi
9976rm -f conftest*
9977
9978
9979
9980fi
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9982$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9983
9984 GLIBC21="$ac_cv_gnu_library_2_1"
9985
9986
9987
9988 for ac_header in stdint.h
9989do :
9990 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9991if test "x$ac_cv_header_stdint_h" = xyes; then :
9992 cat >>confdefs.h <<_ACEOF
9993#define HAVE_STDINT_H 1
57aa50d4 9994_ACEOF
e1052144 9995
93613951 9996fi
e1052144 9997
93613951 9998done
57aa50d4 9999
93613951
TT
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10001$as_echo_n "checking for SIZE_MAX... " >&6; }
10002if ${gl_cv_size_max+:} false; then :
39fd3d4f 10003 $as_echo_n "(cached) " >&6
50e1e10f 10004else
93613951
TT
10005
10006 gl_cv_size_max=
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008/* end confdefs.h. */
10009
10010#include <limits.h>
10011#if HAVE_STDINT_H
10012#include <stdint.h>
10013#endif
10014#ifdef SIZE_MAX
10015Found it
10016#endif
10017
57aa50d4 10018_ACEOF
93613951
TT
10019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10020 $EGREP "Found it" >/dev/null 2>&1; then :
10021 gl_cv_size_max=yes
10022fi
10023rm -f conftest*
e1052144 10024
93613951
TT
10025 if test -z "$gl_cv_size_max"; then
10026 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10027#include <limits.h>"; then :
e1052144 10028
93613951
TT
10029else
10030 size_t_bits_minus_1=
10031fi
57aa50d4 10032
93613951 10033 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
57aa50d4 10034
50e1e10f 10035else
93613951
TT
10036 fits_in_uint=
10037fi
10038
10039 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10040 if test $fits_in_uint = 1; then
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10042/* end confdefs.h. */
93613951
TT
10043#include <stddef.h>
10044 extern size_t foo;
10045 extern unsigned long foo;
10046
57aa50d4
TT
10047int
10048main ()
10049{
b0cacab0 10050
57aa50d4
TT
10051 ;
10052 return 0;
10053}
10054_ACEOF
10055if ac_fn_c_try_compile "$LINENO"; then :
93613951 10056 fits_in_uint=0
93636bde 10057fi
57aa50d4 10058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93613951
TT
10059 fi
10060 if test $fits_in_uint = 1; then
10061 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10062 else
10063 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10064 fi
10065 else
10066 gl_cv_size_max='((size_t)~(size_t)0)'
10067 fi
10068 fi
10069
50e1e10f 10070fi
93613951
TT
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10072$as_echo "$gl_cv_size_max" >&6; }
10073 if test "$gl_cv_size_max" != yes; then
50e1e10f 10074
57aa50d4 10075cat >>confdefs.h <<_ACEOF
93613951 10076#define SIZE_MAX $gl_cv_size_max
57aa50d4 10077_ACEOF
e1052144 10078
93613951 10079 fi
32237014 10080
57aa50d4 10081
e1052144 10082
57aa50d4 10083
93613951
TT
10084 for ac_header in stdint.h
10085do :
10086 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10087if test "x$ac_cv_header_stdint_h" = xyes; then :
10088 cat >>confdefs.h <<_ACEOF
10089#define HAVE_STDINT_H 1
57aa50d4 10090_ACEOF
93613951 10091
32237014 10092fi
32237014 10093
93613951 10094done
e1052144 10095
32237014 10096
57aa50d4 10097
e1052144 10098
57aa50d4 10099
93613951
TT
10100 for ac_func in $ac_func_list
10101do :
10102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10103ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10104if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10105 cat >>confdefs.h <<_ACEOF
10106#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57aa50d4 10107_ACEOF
32237014 10108
32237014 10109fi
93613951
TT
10110done
10111
10112
10113
e1052144 10114
57aa50d4 10115
e1052144 10116
57aa50d4 10117
93613951
TT
10118
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10120$as_echo_n "checking for working fcntl.h... " >&6; }
10121if ${gl_cv_header_working_fcntl_h+:} false; then :
39fd3d4f 10122 $as_echo_n "(cached) " >&6
93613951
TT
10123else
10124 if test "$cross_compiling" = yes; then :
10125 gl_cv_header_working_fcntl_h=cross-compiling
50e1e10f 10126else
57aa50d4
TT
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128/* end confdefs.h. */
93613951
TT
10129#include <sys/types.h>
10130 #include <sys/stat.h>
10131 #if HAVE_UNISTD_H
10132 # include <unistd.h>
10133 #else /* on Windows with MSVC */
10134 # include <io.h>
10135 # include <stdlib.h>
10136 # defined sleep(n) _sleep ((n) * 1000)
10137 #endif
10138 #include <fcntl.h>
10139 #ifndef O_NOATIME
10140 #define O_NOATIME 0
10141 #endif
10142 #ifndef O_NOFOLLOW
10143 #define O_NOFOLLOW 0
10144 #endif
10145 static int const constants[] =
10146 {
10147 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10148 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10149 };
10150
57aa50d4
TT
10151int
10152main ()
10153{
b0cacab0 10154
93613951
TT
10155 int result = !constants;
10156 #if HAVE_SYMLINK
10157 {
10158 static char const sym[] = "conftest.sym";
10159 if (symlink ("/dev/null", sym) != 0)
10160 result |= 2;
10161 else
10162 {
10163 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10164 if (fd >= 0)
10165 {
10166 close (fd);
10167 result |= 4;
10168 }
10169 }
10170 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10171 result |= 2;
10172 else
10173 {
10174 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10175 if (fd >= 0)
10176 {
10177 close (fd);
10178 result |= 4;
10179 }
10180 }
10181 unlink (sym);
10182 }
10183 #endif
10184 {
10185 static char const file[] = "confdefs.h";
10186 int fd = open (file, O_RDONLY | O_NOATIME);
10187 if (fd < 0)
10188 result |= 8;
10189 else
10190 {
10191 struct stat st0;
10192 if (fstat (fd, &st0) != 0)
10193 result |= 16;
10194 else
10195 {
10196 char c;
10197 sleep (1);
10198 if (read (fd, &c, 1) != 1)
10199 result |= 24;
10200 else
10201 {
10202 if (close (fd) != 0)
10203 result |= 32;
10204 else
10205 {
10206 struct stat st1;
10207 if (stat (file, &st1) != 0)
10208 result |= 40;
10209 else
10210 if (st0.st_atime != st1.st_atime)
10211 result |= 64;
10212 }
10213 }
10214 }
10215 }
10216 }
10217 return result;
57aa50d4
TT
10218 ;
10219 return 0;
10220}
10221_ACEOF
93613951
TT
10222if ac_fn_c_try_run "$LINENO"; then :
10223 gl_cv_header_working_fcntl_h=yes
50e1e10f 10224else
93613951
TT
10225 case $? in #(
10226 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10227 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10228 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10229 *) gl_cv_header_working_fcntl_h='no';;
10230 esac
50e1e10f 10231fi
93613951
TT
10232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10233 conftest.$ac_objext conftest.beam conftest.$ac_ext
50e1e10f 10234fi
57aa50d4 10235
93613951
TT
10236fi
10237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10238$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
57aa50d4 10239
93613951
TT
10240 case $gl_cv_header_working_fcntl_h in #(
10241 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10242 *) ac_val=1;;
57aa50d4
TT
10243 esac
10244
93613951
TT
10245cat >>confdefs.h <<_ACEOF
10246#define HAVE_WORKING_O_NOATIME $ac_val
10247_ACEOF
57aa50d4 10248
57aa50d4 10249
93613951
TT
10250 case $gl_cv_header_working_fcntl_h in #(
10251 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10252 *) ac_val=1;;
10253 esac
57aa50d4 10254
93613951
TT
10255cat >>confdefs.h <<_ACEOF
10256#define HAVE_WORKING_O_NOFOLLOW $ac_val
10257_ACEOF
57aa50d4 10258
50e1e10f 10259
e1052144 10260
93613951
TT
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10262$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10263if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
39fd3d4f 10264 $as_echo_n "(cached) " >&6
9d564f73 10265else
93613951
TT
10266 gt_save_LIBS="$LIBS"
10267 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10269/* end confdefs.h. */
93613951 10270#include <CoreFoundation/CFPreferences.h>
57aa50d4
TT
10271int
10272main ()
10273{
93613951 10274CFPreferencesCopyAppValue(NULL, NULL)
57aa50d4
TT
10275 ;
10276 return 0;
10277}
10278_ACEOF
10279if ac_fn_c_try_link "$LINENO"; then :
93613951
TT
10280 gt_cv_func_CFPreferencesCopyAppValue=yes
10281else
10282 gt_cv_func_CFPreferencesCopyAppValue=no
9d564f73 10283fi
57aa50d4
TT
10284rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
93613951
TT
10286 LIBS="$gt_save_LIBS"
10287fi
10288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10289$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10290 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10291
10292$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10293
10294 fi
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10296$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10297if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299else
10300 gt_save_LIBS="$LIBS"
10301 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10303/* end confdefs.h. */
93613951 10304#include <CoreFoundation/CFLocale.h>
57aa50d4
TT
10305int
10306main ()
10307{
93613951 10308CFLocaleCopyCurrent();
57aa50d4
TT
10309 ;
10310 return 0;
10311}
10312_ACEOF
10313if ac_fn_c_try_link "$LINENO"; then :
93613951
TT
10314 gt_cv_func_CFLocaleCopyCurrent=yes
10315else
10316 gt_cv_func_CFLocaleCopyCurrent=no
9d564f73 10317fi
57aa50d4
TT
10318rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
93613951 10320 LIBS="$gt_save_LIBS"
50e1e10f 10321fi
93613951
TT
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10323$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10324 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
50e1e10f 10325
93613951 10326$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
e1052144 10327
b0cacab0 10328 fi
93613951
TT
10329 INTL_MACOSX_LIBS=
10330 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10331 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
e1052144 10332 fi
b0cacab0 10333
93636bde 10334
e1052144 10335
93613951
TT
10336
10337
10338
10339
10340
10341
10342
10343 case "$enable_silent_rules" in
10344 yes) INTL_DEFAULT_VERBOSITY=0;;
10345 no) INTL_DEFAULT_VERBOSITY=1;;
10346 *) INTL_DEFAULT_VERBOSITY=1;;
10347 esac
10348
10349
10350 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10351if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10352
50e1e10f 10353else
b0cacab0 10354
93613951 10355$as_echo "#define ptrdiff_t long" >>confdefs.h
50e1e10f 10356
e1052144 10357
93613951 10358fi
b0cacab0 10359
93613951
TT
10360 for ac_header in features.h stddef.h stdlib.h string.h
10361do :
10362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10363ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10364if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10365 cat >>confdefs.h <<_ACEOF
10366#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57aa50d4 10367_ACEOF
93613951
TT
10368
10369fi
10370
10371done
10372
10373 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10374 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10375do :
10376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10377ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10378if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10379 cat >>confdefs.h <<_ACEOF
10380#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57aa50d4 10381_ACEOF
93613951
TT
10382
10383fi
10384done
10385
10386
10387 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10388"
10389if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10390 ac_have_decl=1
50e1e10f 10391else
93613951 10392 ac_have_decl=0
50e1e10f 10393fi
93613951
TT
10394
10395cat >>confdefs.h <<_ACEOF
10396#define HAVE_DECL__SNPRINTF $ac_have_decl
10397_ACEOF
10398ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10399"
10400if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10401 ac_have_decl=1
10402else
10403 ac_have_decl=0
50e1e10f
TT
10404fi
10405
93613951
TT
10406cat >>confdefs.h <<_ACEOF
10407#define HAVE_DECL__SNWPRINTF $ac_have_decl
10408_ACEOF
10409
10410
10411 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10412"
10413if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10414 ac_have_decl=1
10415else
10416 ac_have_decl=0
10417fi
57aa50d4
TT
10418
10419cat >>confdefs.h <<_ACEOF
93613951 10420#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
57aa50d4
TT
10421_ACEOF
10422
93613951
TT
10423
10424 case $gt_cv_func_printf_posix in
10425 *yes) HAVE_POSIX_PRINTF=1 ;;
10426 *) HAVE_POSIX_PRINTF=0 ;;
10427 esac
10428
10429 if test "$ac_cv_func_asprintf" = yes; then
10430 HAVE_ASPRINTF=1
10431 else
10432 HAVE_ASPRINTF=0
10433 fi
10434
10435 if test "$ac_cv_func_snprintf" = yes; then
10436 HAVE_SNPRINTF=1
10437 else
10438 HAVE_SNPRINTF=0
10439 fi
10440
10441 if test "$ac_cv_func_newlocale" = yes; then
10442 HAVE_NEWLOCALE=1
10443 else
10444 HAVE_NEWLOCALE=0
10445 fi
10446
10447 if test "$ac_cv_func_wprintf" = yes; then
10448 HAVE_WPRINTF=1
10449 else
10450 HAVE_WPRINTF=0
e1052144 10451 fi
50e1e10f 10452
57aa50d4 10453
93613951 10454
57aa50d4
TT
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10456$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
d6a4bcb5 10457if ${am_cv_langinfo_codeset+:} false; then :
39fd3d4f 10458 $as_echo_n "(cached) " >&6
50e1e10f 10459else
57aa50d4
TT
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461/* end confdefs.h. */
10462#include <langinfo.h>
10463int
10464main ()
10465{
93613951 10466char* cs = nl_langinfo(CODESET); return !cs;
57aa50d4
TT
10467 ;
10468 return 0;
10469}
10470_ACEOF
10471if ac_fn_c_try_link "$LINENO"; then :
10472 am_cv_langinfo_codeset=yes
50e1e10f 10473else
57aa50d4 10474 am_cv_langinfo_codeset=no
50e1e10f 10475fi
57aa50d4
TT
10476rm -f core conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
7321d94e 10478
50e1e10f 10479fi
57aa50d4
TT
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10481$as_echo "$am_cv_langinfo_codeset" >&6; }
10482 if test $am_cv_langinfo_codeset = yes; then
50e1e10f 10483
57aa50d4 10484$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
e1052144 10485
57aa50d4 10486 fi
b0cacab0 10487
21c84b71 10488
57aa50d4
TT
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10490$as_echo_n "checking for LC_MESSAGES... " >&6; }
93613951 10491if ${gt_cv_val_LC_MESSAGES+:} false; then :
39fd3d4f 10492 $as_echo_n "(cached) " >&6
93636bde 10493else
57aa50d4
TT
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495/* end confdefs.h. */
10496#include <locale.h>
10497int
10498main ()
10499{
10500return LC_MESSAGES
10501 ;
10502 return 0;
10503}
10504_ACEOF
10505if ac_fn_c_try_link "$LINENO"; then :
93613951 10506 gt_cv_val_LC_MESSAGES=yes
93636bde 10507else
93613951 10508 gt_cv_val_LC_MESSAGES=no
50e1e10f 10509fi
57aa50d4
TT
10510rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
50e1e10f 10512fi
93613951
TT
10513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10514$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10515 if test $gt_cv_val_LC_MESSAGES = yes; then
50e1e10f 10516
57aa50d4 10517$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
50e1e10f 10518
e1052144 10519 fi
50e1e10f 10520
93613951
TT
10521
10522 if test "$enable_shared" = yes; then
10523 case "$host_os" in
10524 mingw* | cygwin*) is_woe32dll=yes ;;
10525 *) is_woe32dll=no ;;
10526 esac
10527 else
10528 is_woe32dll=no
57aa50d4 10529 fi
93613951 10530 WOE32DLL=$is_woe32dll
b0cacab0 10531
93613951
TT
10532
10533 case "$host_os" in
10534 mingw* | cygwin*) is_woe32=yes ;;
10535 *) is_woe32=no ;;
10536 esac
10537 WOE32=$is_woe32
10538
10539 if test $WOE32 = yes; then
10540 if test -n "$ac_tool_prefix"; then
10541 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10542set dummy ${ac_tool_prefix}windres; ac_word=$2
57aa50d4 10543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 10544$as_echo_n "checking for $ac_word... " >&6; }
93613951 10545if ${ac_cv_prog_WINDRES+:} false; then :
39fd3d4f 10546 $as_echo_n "(cached) " >&6
50e1e10f 10547else
93613951
TT
10548 if test -n "$WINDRES"; then
10549 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
50e1e10f 10550else
b0cacab0
TT
10551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552for as_dir in $PATH
10553do
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
57aa50d4 10556 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
93613951 10558 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
57aa50d4 10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
10560 break 2
10561 fi
10562done
57aa50d4 10563 done
e1052144 10564IFS=$as_save_IFS
b0cacab0 10565
50e1e10f
TT
10566fi
10567fi
93613951
TT
10568WINDRES=$ac_cv_prog_WINDRES
10569if test -n "$WINDRES"; then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10571$as_echo "$WINDRES" >&6; }
50e1e10f 10572else
57aa50d4 10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 10574$as_echo "no" >&6; }
50e1e10f
TT
10575fi
10576
e1052144 10577
93613951
TT
10578fi
10579if test -z "$ac_cv_prog_WINDRES"; then
10580 ac_ct_WINDRES=$WINDRES
10581 # Extract the first word of "windres", so it can be a program name with args.
10582set dummy windres; ac_word=$2
10583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584$as_echo_n "checking for $ac_word... " >&6; }
10585if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10586 $as_echo_n "(cached) " >&6
10587else
10588 if test -n "$ac_ct_WINDRES"; then
10589 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10590else
10591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592for as_dir in $PATH
10593do
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10598 ac_cv_prog_ac_ct_WINDRES="windres"
10599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10601 fi
b0cacab0 10602done
93613951
TT
10603 done
10604IFS=$as_save_IFS
b0cacab0 10605
93613951
TT
10606fi
10607fi
10608ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10609if test -n "$ac_ct_WINDRES"; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10611$as_echo "$ac_ct_WINDRES" >&6; }
10612else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614$as_echo "no" >&6; }
10615fi
10616
10617 if test "x$ac_ct_WINDRES" = x; then
10618 WINDRES=""
57aa50d4 10619 else
93613951
TT
10620 case $cross_compiling:$ac_tool_warned in
10621yes:)
10622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10624ac_tool_warned=yes ;;
10625esac
10626 WINDRES=$ac_ct_WINDRES
57aa50d4 10627 fi
93613951
TT
10628else
10629 WINDRES="$ac_cv_prog_WINDRES"
10630fi
10631
57aa50d4
TT
10632 fi
10633
93613951
TT
10634 case "$host_os" in
10635 hpux*) LTLIBC="" ;;
10636 *) LTLIBC="-lc" ;;
10637 esac
57aa50d4
TT
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
b0cacab0 10648
740837de 10649
b0cacab0
TT
10650
10651
10652
93613951
TT
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10666$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10667if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10668 $as_echo_n "(cached) " >&6
50e1e10f 10669else
93613951
TT
10670 gt_save_LIBS="$LIBS"
10671 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673/* end confdefs.h. */
10674#include <CoreFoundation/CFPreferences.h>
10675int
10676main ()
10677{
10678CFPreferencesCopyAppValue(NULL, NULL)
10679 ;
10680 return 0;
10681}
10682_ACEOF
10683if ac_fn_c_try_link "$LINENO"; then :
10684 gt_cv_func_CFPreferencesCopyAppValue=yes
10685else
10686 gt_cv_func_CFPreferencesCopyAppValue=no
50e1e10f 10687fi
93613951
TT
10688rm -f core conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 LIBS="$gt_save_LIBS"
50e1e10f 10691fi
93613951
TT
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10693$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10694 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10695
10696$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10697
10698 fi
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10700$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10701if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10702 $as_echo_n "(cached) " >&6
10703else
10704 gt_save_LIBS="$LIBS"
10705 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707/* end confdefs.h. */
10708#include <CoreFoundation/CFLocale.h>
10709int
10710main ()
10711{
10712CFLocaleCopyCurrent();
10713 ;
10714 return 0;
10715}
10716_ACEOF
10717if ac_fn_c_try_link "$LINENO"; then :
10718 gt_cv_func_CFLocaleCopyCurrent=yes
10719else
10720 gt_cv_func_CFLocaleCopyCurrent=no
10721fi
10722rm -f core conftest.err conftest.$ac_objext \
10723 conftest$ac_exeext conftest.$ac_ext
10724 LIBS="$gt_save_LIBS"
10725fi
10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10727$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10728 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10729
10730$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10731
10732 fi
10733 INTL_MACOSX_LIBS=
10734 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10735 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10736 fi
10737
50e1e10f 10738
b0cacab0
TT
10739
10740
10741
10742
57aa50d4
TT
10743 BUILD_INCLUDED_LIBINTL=no
10744 USE_INCLUDED_LIBINTL=no
10745
10746 LIBINTL=
10747 LTLIBINTL=
10748 POSUB=
10749
93613951
TT
10750 case " $gt_needs " in
10751 *" need-formatstring-macros "*) gt_api_version=3 ;;
10752 *" need-ngettext "*) gt_api_version=2 ;;
10753 *) gt_api_version=1 ;;
10754 esac
10755 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10756 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10757
57aa50d4
TT
10758 if test "$USE_NLS" = "yes"; then
10759 gt_use_preinstalled_gnugettext=no
b0cacab0 10760
57aa50d4
TT
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10762$as_echo_n "checking whether included gettext is requested... " >&6; }
b0cacab0 10763
57aa50d4
TT
10764# Check whether --with-included-gettext was given.
10765if test "${with_included_gettext+set}" = set; then :
10766 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
50e1e10f 10767else
57aa50d4 10768 nls_cv_force_use_gnu_gettext=no
50e1e10f
TT
10769fi
10770
57aa50d4
TT
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10772$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
b0cacab0 10773
57aa50d4
TT
10774 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10775 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
b0cacab0
TT
10776
10777
93613951
TT
10778 if test $gt_api_version -ge 3; then
10779 gt_revision_test_code='
10780#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10781#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10782#endif
10783typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10784'
10785 else
10786 gt_revision_test_code=
10787 fi
10788 if test $gt_api_version -ge 2; then
10789 gt_expression_test_code=' + * ngettext ("", "", 0)'
10790 else
10791 gt_expression_test_code=
10792 fi
b0cacab0 10793
57aa50d4
TT
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10795$as_echo_n "checking for GNU gettext in libc... " >&6; }
93613951 10796if eval \${$gt_func_gnugettext_libc+:} false; then :
39fd3d4f 10797 $as_echo_n "(cached) " >&6
7321d94e 10798else
57aa50d4
TT
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800/* end confdefs.h. */
93613951 10801
57aa50d4 10802#include <libintl.h>
93613951 10803$gt_revision_test_code
57aa50d4
TT
10804extern int _nl_msg_cat_cntr;
10805extern int *_nl_domain_bindings;
93613951 10806
57aa50d4
TT
10807int
10808main ()
10809{
93613951 10810
57aa50d4 10811bindtextdomain ("", "");
93613951
TT
10812return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10813
57aa50d4
TT
10814 ;
10815 return 0;
10816}
10817_ACEOF
10818if ac_fn_c_try_link "$LINENO"; then :
93613951 10819 eval "$gt_func_gnugettext_libc=yes"
7321d94e 10820else
93613951 10821 eval "$gt_func_gnugettext_libc=no"
57aa50d4
TT
10822fi
10823rm -f core conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10825fi
93613951
TT
10826eval ac_res=\$$gt_func_gnugettext_libc
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10828$as_echo "$ac_res" >&6; }
10829
10830 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10831
10832
10833
10834
b0cacab0
TT
10835
10836
10837
10838
57aa50d4 10839 use_additional=yes
b0cacab0 10840
57aa50d4
TT
10841 acl_save_prefix="$prefix"
10842 prefix="$acl_final_prefix"
10843 acl_save_exec_prefix="$exec_prefix"
10844 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10845
57aa50d4
TT
10846 eval additional_includedir=\"$includedir\"
10847 eval additional_libdir=\"$libdir\"
b0cacab0 10848
57aa50d4
TT
10849 exec_prefix="$acl_save_exec_prefix"
10850 prefix="$acl_save_prefix"
b0cacab0
TT
10851
10852
57aa50d4
TT
10853# Check whether --with-libintl-prefix was given.
10854if test "${with_libintl_prefix+set}" = set; then :
10855 withval=$with_libintl_prefix;
10856 if test "X$withval" = "Xno"; then
10857 use_additional=no
10858 else
10859 if test "X$withval" = "X"; then
b0cacab0 10860
57aa50d4
TT
10861 acl_save_prefix="$prefix"
10862 prefix="$acl_final_prefix"
10863 acl_save_exec_prefix="$exec_prefix"
10864 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10865
57aa50d4
TT
10866 eval additional_includedir=\"$includedir\"
10867 eval additional_libdir=\"$libdir\"
7321d94e 10868
57aa50d4
TT
10869 exec_prefix="$acl_save_exec_prefix"
10870 prefix="$acl_save_prefix"
7321d94e 10871
57aa50d4
TT
10872 else
10873 additional_includedir="$withval/include"
93613951
TT
10874 additional_libdir="$withval/$acl_libdirstem"
10875 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10876 && ! test -d "$withval/$acl_libdirstem"; then
10877 additional_libdir="$withval/$acl_libdirstem2"
10878 fi
57aa50d4
TT
10879 fi
10880 fi
7321d94e 10881
7321d94e
MK
10882fi
10883
57aa50d4
TT
10884 LIBINTL=
10885 LTLIBINTL=
10886 INCINTL=
93613951
TT
10887 LIBINTL_PREFIX=
10888 HAVE_LIBINTL=
57aa50d4
TT
10889 rpathdirs=
10890 ltrpathdirs=
10891 names_already_handled=
10892 names_next_round='intl '
10893 while test -n "$names_next_round"; do
10894 names_this_round="$names_next_round"
10895 names_next_round=
10896 for name in $names_this_round; do
10897 already_handled=
10898 for n in $names_already_handled; do
10899 if test "$n" = "$name"; then
10900 already_handled=yes
10901 break
10902 fi
50e1e10f 10903 done
57aa50d4
TT
10904 if test -z "$already_handled"; then
10905 names_already_handled="$names_already_handled $name"
93613951 10906 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
57aa50d4
TT
10907 eval value=\"\$HAVE_LIB$uppername\"
10908 if test -n "$value"; then
10909 if test "$value" = yes; then
10910 eval value=\"\$LIB$uppername\"
10911 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10912 eval value=\"\$LTLIB$uppername\"
10913 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10914 else
10915 :
10916 fi
10917 else
10918 found_dir=
10919 found_la=
10920 found_so=
10921 found_a=
93613951
TT
10922 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10923 if test -n "$acl_shlibext"; then
10924 shrext=".$acl_shlibext" # typically: shrext=.so
10925 else
10926 shrext=
10927 fi
57aa50d4 10928 if test $use_additional = yes; then
93613951
TT
10929 dir="$additional_libdir"
10930 if test -n "$acl_shlibext"; then
10931 if test -f "$dir/$libname$shrext"; then
10932 found_dir="$dir"
10933 found_so="$dir/$libname$shrext"
10934 else
10935 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10936 ver=`(cd "$dir" && \
10937 for f in "$libname$shrext".*; do echo "$f"; done \
10938 | sed -e "s,^$libname$shrext\\\\.,," \
10939 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10940 | sed 1q ) 2>/dev/null`
10941 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10942 found_dir="$dir"
10943 found_so="$dir/$libname$shrext.$ver"
10944 fi
10945 else
10946 eval library_names=\"$acl_library_names_spec\"
10947 for f in $library_names; do
10948 if test -f "$dir/$f"; then
10949 found_dir="$dir"
10950 found_so="$dir/$f"
10951 break
10952 fi
10953 done
57aa50d4
TT
10954 fi
10955 fi
93613951
TT
10956 fi
10957 if test "X$found_dir" = "X"; then
10958 if test -f "$dir/$libname.$acl_libext"; then
10959 found_dir="$dir"
10960 found_a="$dir/$libname.$acl_libext"
10961 fi
10962 fi
10963 if test "X$found_dir" != "X"; then
10964 if test -f "$dir/$libname.la"; then
10965 found_la="$dir/$libname.la"
10966 fi
57aa50d4
TT
10967 fi
10968 fi
10969 if test "X$found_dir" = "X"; then
10970 for x in $LDFLAGS $LTLIBINTL; do
39fd3d4f 10971
57aa50d4
TT
10972 acl_save_prefix="$prefix"
10973 prefix="$acl_final_prefix"
10974 acl_save_exec_prefix="$exec_prefix"
10975 exec_prefix="$acl_final_exec_prefix"
10976 eval x=\"$x\"
10977 exec_prefix="$acl_save_exec_prefix"
10978 prefix="$acl_save_prefix"
3d05802f 10979
57aa50d4
TT
10980 case "$x" in
10981 -L*)
10982 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951
TT
10983 if test -n "$acl_shlibext"; then
10984 if test -f "$dir/$libname$shrext"; then
57aa50d4 10985 found_dir="$dir"
93613951
TT
10986 found_so="$dir/$libname$shrext"
10987 else
10988 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10989 ver=`(cd "$dir" && \
10990 for f in "$libname$shrext".*; do echo "$f"; done \
10991 | sed -e "s,^$libname$shrext\\\\.,," \
10992 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10993 | sed 1q ) 2>/dev/null`
10994 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10995 found_dir="$dir"
10996 found_so="$dir/$libname$shrext.$ver"
10997 fi
10998 else
10999 eval library_names=\"$acl_library_names_spec\"
11000 for f in $library_names; do
11001 if test -f "$dir/$f"; then
11002 found_dir="$dir"
11003 found_so="$dir/$f"
11004 break
11005 fi
11006 done
57aa50d4
TT
11007 fi
11008 fi
93613951
TT
11009 fi
11010 if test "X$found_dir" = "X"; then
11011 if test -f "$dir/$libname.$acl_libext"; then
11012 found_dir="$dir"
11013 found_a="$dir/$libname.$acl_libext"
11014 fi
11015 fi
11016 if test "X$found_dir" != "X"; then
11017 if test -f "$dir/$libname.la"; then
11018 found_la="$dir/$libname.la"
11019 fi
57aa50d4
TT
11020 fi
11021 ;;
11022 esac
11023 if test "X$found_dir" != "X"; then
11024 break
11025 fi
11026 done
11027 fi
11028 if test "X$found_dir" != "X"; then
11029 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11030 if test "X$found_so" != "X"; then
93613951
TT
11031 if test "$enable_rpath" = no \
11032 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11033 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
57aa50d4
TT
11034 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11035 else
11036 haveit=
11037 for x in $ltrpathdirs; do
11038 if test "X$x" = "X$found_dir"; then
11039 haveit=yes
11040 break
11041 fi
11042 done
11043 if test -z "$haveit"; then
11044 ltrpathdirs="$ltrpathdirs $found_dir"
11045 fi
93613951 11046 if test "$acl_hardcode_direct" = yes; then
57aa50d4
TT
11047 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11048 else
93613951 11049 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
57aa50d4
TT
11050 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11051 haveit=
11052 for x in $rpathdirs; do
11053 if test "X$x" = "X$found_dir"; then
11054 haveit=yes
11055 break
11056 fi
11057 done
11058 if test -z "$haveit"; then
11059 rpathdirs="$rpathdirs $found_dir"
11060 fi
11061 else
11062 haveit=
11063 for x in $LDFLAGS $LIBINTL; do
6ec9ef18 11064
57aa50d4
TT
11065 acl_save_prefix="$prefix"
11066 prefix="$acl_final_prefix"
11067 acl_save_exec_prefix="$exec_prefix"
11068 exec_prefix="$acl_final_exec_prefix"
11069 eval x=\"$x\"
11070 exec_prefix="$acl_save_exec_prefix"
11071 prefix="$acl_save_prefix"
d7f45af8 11072
57aa50d4
TT
11073 if test "X$x" = "X-L$found_dir"; then
11074 haveit=yes
11075 break
11076 fi
11077 done
11078 if test -z "$haveit"; then
11079 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11080 fi
93613951 11081 if test "$acl_hardcode_minus_L" != no; then
57aa50d4
TT
11082 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11083 else
11084 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11085 fi
11086 fi
11087 fi
11088 fi
11089 else
11090 if test "X$found_a" != "X"; then
11091 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11092 else
11093 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11094 fi
11095 fi
11096 additional_includedir=
11097 case "$found_dir" in
93613951
TT
11098 */$acl_libdirstem | */$acl_libdirstem/)
11099 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11100 if test "$name" = 'intl'; then
11101 LIBINTL_PREFIX="$basedir"
11102 fi
11103 additional_includedir="$basedir/include"
11104 ;;
11105 */$acl_libdirstem2 | */$acl_libdirstem2/)
11106 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11107 if test "$name" = 'intl'; then
11108 LIBINTL_PREFIX="$basedir"
11109 fi
57aa50d4
TT
11110 additional_includedir="$basedir/include"
11111 ;;
11112 esac
11113 if test "X$additional_includedir" != "X"; then
11114 if test "X$additional_includedir" != "X/usr/include"; then
11115 haveit=
11116 if test "X$additional_includedir" = "X/usr/local/include"; then
11117 if test -n "$GCC"; then
11118 case $host_os in
93613951 11119 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
11120 esac
11121 fi
11122 fi
11123 if test -z "$haveit"; then
11124 for x in $CPPFLAGS $INCINTL; do
b0cacab0 11125
57aa50d4
TT
11126 acl_save_prefix="$prefix"
11127 prefix="$acl_final_prefix"
11128 acl_save_exec_prefix="$exec_prefix"
11129 exec_prefix="$acl_final_exec_prefix"
11130 eval x=\"$x\"
11131 exec_prefix="$acl_save_exec_prefix"
11132 prefix="$acl_save_prefix"
21c84b71 11133
57aa50d4
TT
11134 if test "X$x" = "X-I$additional_includedir"; then
11135 haveit=yes
11136 break
11137 fi
11138 done
11139 if test -z "$haveit"; then
11140 if test -d "$additional_includedir"; then
11141 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11142 fi
11143 fi
11144 fi
11145 fi
11146 fi
11147 if test -n "$found_la"; then
11148 save_libdir="$libdir"
11149 case "$found_la" in
11150 */* | *\\*) . "$found_la" ;;
11151 *) . "./$found_la" ;;
11152 esac
11153 libdir="$save_libdir"
11154 for dep in $dependency_libs; do
11155 case "$dep" in
11156 -L*)
11157 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
93613951
TT
11158 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11159 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
57aa50d4 11160 haveit=
93613951
TT
11161 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11162 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
57aa50d4
TT
11163 if test -n "$GCC"; then
11164 case $host_os in
93613951 11165 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
11166 esac
11167 fi
11168 fi
11169 if test -z "$haveit"; then
11170 haveit=
11171 for x in $LDFLAGS $LIBINTL; do
50e1e10f 11172
57aa50d4
TT
11173 acl_save_prefix="$prefix"
11174 prefix="$acl_final_prefix"
11175 acl_save_exec_prefix="$exec_prefix"
11176 exec_prefix="$acl_final_exec_prefix"
11177 eval x=\"$x\"
11178 exec_prefix="$acl_save_exec_prefix"
11179 prefix="$acl_save_prefix"
50e1e10f 11180
57aa50d4
TT
11181 if test "X$x" = "X-L$additional_libdir"; then
11182 haveit=yes
11183 break
11184 fi
11185 done
11186 if test -z "$haveit"; then
11187 if test -d "$additional_libdir"; then
11188 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11189 fi
11190 fi
11191 haveit=
11192 for x in $LDFLAGS $LTLIBINTL; do
a4bf69d9 11193
57aa50d4
TT
11194 acl_save_prefix="$prefix"
11195 prefix="$acl_final_prefix"
11196 acl_save_exec_prefix="$exec_prefix"
11197 exec_prefix="$acl_final_exec_prefix"
11198 eval x=\"$x\"
11199 exec_prefix="$acl_save_exec_prefix"
11200 prefix="$acl_save_prefix"
50e1e10f 11201
57aa50d4
TT
11202 if test "X$x" = "X-L$additional_libdir"; then
11203 haveit=yes
11204 break
11205 fi
11206 done
11207 if test -z "$haveit"; then
11208 if test -d "$additional_libdir"; then
11209 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11210 fi
11211 fi
11212 fi
11213 fi
11214 ;;
11215 -R*)
11216 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11217 if test "$enable_rpath" != no; then
11218 haveit=
11219 for x in $rpathdirs; do
11220 if test "X$x" = "X$dir"; then
11221 haveit=yes
11222 break
11223 fi
11224 done
11225 if test -z "$haveit"; then
11226 rpathdirs="$rpathdirs $dir"
11227 fi
11228 haveit=
11229 for x in $ltrpathdirs; do
11230 if test "X$x" = "X$dir"; then
11231 haveit=yes
11232 break
11233 fi
11234 done
11235 if test -z "$haveit"; then
11236 ltrpathdirs="$ltrpathdirs $dir"
11237 fi
11238 fi
11239 ;;
11240 -l*)
11241 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11242 ;;
11243 *.la)
11244 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11245 ;;
11246 *)
11247 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11248 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11249 ;;
11250 esac
11251 done
11252 fi
11253 else
11254 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11255 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11256 fi
11257 fi
11258 fi
11259 done
11260 done
11261 if test "X$rpathdirs" != "X"; then
93613951 11262 if test -n "$acl_hardcode_libdir_separator"; then
57aa50d4
TT
11263 alldirs=
11264 for found_dir in $rpathdirs; do
93613951 11265 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
57aa50d4
TT
11266 done
11267 acl_save_libdir="$libdir"
11268 libdir="$alldirs"
93613951 11269 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
11270 libdir="$acl_save_libdir"
11271 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11272 else
11273 for found_dir in $rpathdirs; do
11274 acl_save_libdir="$libdir"
11275 libdir="$found_dir"
93613951 11276 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
11277 libdir="$acl_save_libdir"
11278 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11279 done
11280 fi
11281 fi
11282 if test "X$ltrpathdirs" != "X"; then
11283 for found_dir in $ltrpathdirs; do
11284 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11285 done
11286 fi
b0cacab0 11287
93613951
TT
11288
11289
11290
11291
11292
57aa50d4
TT
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11294$as_echo_n "checking for GNU gettext in libintl... " >&6; }
93613951 11295if eval \${$gt_func_gnugettext_libintl+:} false; then :
39fd3d4f 11296 $as_echo_n "(cached) " >&6
6c133523 11297else
57aa50d4
TT
11298 gt_save_CPPFLAGS="$CPPFLAGS"
11299 CPPFLAGS="$CPPFLAGS $INCINTL"
11300 gt_save_LIBS="$LIBS"
11301 LIBS="$LIBS $LIBINTL"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h. */
93613951 11304
57aa50d4 11305#include <libintl.h>
93613951 11306$gt_revision_test_code
57aa50d4
TT
11307extern int _nl_msg_cat_cntr;
11308extern
11309#ifdef __cplusplus
11310"C"
11311#endif
93613951
TT
11312const char *_nl_expand_alias (const char *);
11313
57aa50d4
TT
11314int
11315main ()
11316{
93613951 11317
57aa50d4 11318bindtextdomain ("", "");
93613951
TT
11319return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11320
57aa50d4
TT
11321 ;
11322 return 0;
11323}
b0cacab0 11324_ACEOF
57aa50d4 11325if ac_fn_c_try_link "$LINENO"; then :
93613951 11326 eval "$gt_func_gnugettext_libintl=yes"
6c133523 11327else
93613951 11328 eval "$gt_func_gnugettext_libintl=no"
6c133523 11329fi
57aa50d4
TT
11330rm -f core conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
93613951 11332 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
57aa50d4
TT
11333 LIBS="$LIBS $LIBICONV"
11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da76d6b7 11335/* end confdefs.h. */
93613951 11336
57aa50d4 11337#include <libintl.h>
93613951 11338$gt_revision_test_code
57aa50d4
TT
11339extern int _nl_msg_cat_cntr;
11340extern
11341#ifdef __cplusplus
11342"C"
da76d6b7 11343#endif
93613951
TT
11344const char *_nl_expand_alias (const char *);
11345
57aa50d4
TT
11346int
11347main ()
11348{
93613951 11349
57aa50d4 11350bindtextdomain ("", "");
93613951
TT
11351return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11352
57aa50d4
TT
11353 ;
11354 return 0;
11355}
da76d6b7 11356_ACEOF
57aa50d4
TT
11357if ac_fn_c_try_link "$LINENO"; then :
11358 LIBINTL="$LIBINTL $LIBICONV"
93613951
TT
11359 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11360 eval "$gt_func_gnugettext_libintl=yes"
6c133523
TT
11361
11362fi
57aa50d4
TT
11363rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365 fi
11366 CPPFLAGS="$gt_save_CPPFLAGS"
11367 LIBS="$gt_save_LIBS"
da76d6b7 11368fi
93613951
TT
11369eval ac_res=\$$gt_func_gnugettext_libintl
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11371$as_echo "$ac_res" >&6; }
57aa50d4 11372 fi
b0cacab0 11373
93613951
TT
11374 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11375 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
57aa50d4
TT
11376 && test "$PACKAGE" != gettext-runtime \
11377 && test "$PACKAGE" != gettext-tools; }; then
11378 gt_use_preinstalled_gnugettext=yes
11379 else
11380 LIBINTL=
11381 LTLIBINTL=
11382 INCINTL=
11383 fi
740837de 11384
b0cacab0 11385
57aa50d4
TT
11386 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11387 nls_cv_use_gnu_gettext=yes
11388 fi
11389 fi
b0cacab0 11390
57aa50d4
TT
11391 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11392 BUILD_INCLUDED_LIBINTL=yes
11393 USE_INCLUDED_LIBINTL=yes
93613951
TT
11394 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11395 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
57aa50d4
TT
11396 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11397 fi
b0cacab0 11398
93613951 11399 CATOBJEXT=
57aa50d4
TT
11400 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11401 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11402 CATOBJEXT=.gmo
11403 fi
b0cacab0
TT
11404
11405
93613951
TT
11406 if test -n "$INTL_MACOSX_LIBS"; then
11407 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11408 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11409 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11410 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11411 fi
11412 fi
11413
57aa50d4
TT
11414 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11415 || test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0 11416
57aa50d4 11417$as_echo "#define ENABLE_NLS 1" >>confdefs.h
b0cacab0 11418
57aa50d4
TT
11419 else
11420 USE_NLS=no
11421 fi
11422 fi
b0cacab0 11423
57aa50d4
TT
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11425$as_echo_n "checking whether to use NLS... " >&6; }
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11427$as_echo "$USE_NLS" >&6; }
11428 if test "$USE_NLS" = "yes"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11430$as_echo_n "checking where the gettext function comes from... " >&6; }
11431 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 11432 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
11433 gt_source="external libintl"
11434 else
11435 gt_source="libc"
11436 fi
11437 else
11438 gt_source="included intl directory"
11439 fi
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11441$as_echo "$gt_source" >&6; }
11442 fi
b0cacab0 11443
57aa50d4 11444 if test "$USE_NLS" = "yes"; then
b0cacab0 11445
57aa50d4 11446 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 11447 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11449$as_echo_n "checking how to link with libintl... " >&6; }
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11451$as_echo "$LIBINTL" >&6; }
b0cacab0 11452
57aa50d4
TT
11453 for element in $INCINTL; do
11454 haveit=
11455 for x in $CPPFLAGS; do
b0cacab0 11456
57aa50d4
TT
11457 acl_save_prefix="$prefix"
11458 prefix="$acl_final_prefix"
11459 acl_save_exec_prefix="$exec_prefix"
11460 exec_prefix="$acl_final_exec_prefix"
11461 eval x=\"$x\"
11462 exec_prefix="$acl_save_exec_prefix"
11463 prefix="$acl_save_prefix"
b0cacab0 11464
57aa50d4
TT
11465 if test "X$x" = "X$element"; then
11466 haveit=yes
11467 break
11468 fi
11469 done
11470 if test -z "$haveit"; then
11471 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11472 fi
11473 done
b0cacab0 11474
57aa50d4 11475 fi
b0cacab0
TT
11476
11477
57aa50d4 11478$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
b0cacab0
TT
11479
11480
57aa50d4 11481$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
b0cacab0 11482
57aa50d4 11483 fi
b0cacab0 11484
57aa50d4
TT
11485 POSUB=po
11486 fi
b0cacab0
TT
11487
11488
57aa50d4
TT
11489 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11490 BUILD_INCLUDED_LIBINTL=yes
11491 fi
b0cacab0
TT
11492
11493
11494
11495
11496
57aa50d4
TT
11497 nls_cv_header_intl=
11498 nls_cv_header_libgt=
b0cacab0 11499
57aa50d4 11500 DATADIRNAME=share
762c7c65 11501
106ad96d 11502
57aa50d4 11503 INSTOBJEXT=.mo
106ad96d 11504
e7cc6f7d 11505
57aa50d4 11506 GENCAT=gencat
e7cc6f7d 11507
3d05802f 11508
93613951
TT
11509 INTLOBJS=
11510 if test "$USE_INCLUDED_LIBINTL" = yes; then
57aa50d4
TT
11511 INTLOBJS="\$(GETTOBJS)"
11512 fi
6ec9ef18 11513
d7f45af8 11514
57aa50d4 11515 INTL_LIBTOOL_SUFFIX_PREFIX=
50e1e10f 11516
50e1e10f 11517
b0cacab0 11518
57aa50d4 11519 INTLLIBS="$LIBINTL"
e1052144 11520
b0cacab0 11521
93636bde 11522
93636bde 11523
b0cacab0 11524
93636bde 11525
50e1e10f 11526
57aa50d4
TT
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11528$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11529set x ${MAKE-make}
11530ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6a4bcb5 11531if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
57aa50d4
TT
11532 $as_echo_n "(cached) " >&6
11533else
11534 cat >conftest.make <<\_ACEOF
11535SHELL = /bin/sh
11536all:
11537 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 11538_ACEOF
d6a4bcb5 11539# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
11540case `${MAKE-make} -f conftest.make 2>/dev/null` in
11541 *@@@%%%=?*=@@@%%%*)
11542 eval ac_cv_prog_make_${ac_make}_set=yes;;
11543 *)
11544 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 11545esac
57aa50d4 11546rm -f conftest.make
b0cacab0 11547fi
57aa50d4
TT
11548if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550$as_echo "yes" >&6; }
11551 SET_MAKE=
b0b9c4de 11552else
57aa50d4
TT
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554$as_echo "no" >&6; }
11555 SET_MAKE="MAKE=${MAKE-make}"
b0cacab0 11556fi
b0cacab0 11557
57aa50d4
TT
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11559$as_echo_n "checking for GNU make... " >&6; }
d6a4bcb5 11560if ${_cv_gnu_make_command+:} false; then :
57aa50d4 11561 $as_echo_n "(cached) " >&6
39fd3d4f 11562else
57aa50d4 11563 _cv_gnu_make_command='' ;
e703ba4b 11564 if test -n "$FORCE_NATIVE_MAKE" ; then
f3bc1561
TT
11565 MAKES="make"
11566 else
11567 MAKES="make gmake gnumake"
11568 fi
11569 for a in "$MAKE" $MAKES ; do
57aa50d4
TT
11570 if test -z "$a" ; then continue ; fi ;
11571 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11572 _cv_gnu_make_command=$a ;
11573 break;
11574 fi
11575 done ;
50e1e10f 11576
50e1e10f 11577fi
57aa50d4
TT
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11579$as_echo "$_cv_gnu_make_command" >&6; } ;
11580 if test "x$_cv_gnu_make_command" != "x" ; then
11581 ifGNUmake='' ;
11582 ifNotGNUmake='#' ;
11583 else
11584 ifGNUmake='#' ;
11585 ifNotGNUmake='' ;
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11587$as_echo "\"Not found\"" >&6; };
11588 fi
50e1e10f 11589
50e1e10f 11590
b0cacab0 11591
57aa50d4
TT
11592# Extract the first word of "ln", so it can be a program name with args.
11593set dummy ln; ac_word=$2
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11596if ${ac_cv_path_LN+:} false; then :
39fd3d4f 11597 $as_echo_n "(cached) " >&6
fff45483 11598else
57aa50d4
TT
11599 case $LN in
11600 [\\/]* | ?:[\\/]*)
11601 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11602 ;;
11603 *)
11604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $PATH
11606do
11607 IFS=$as_save_IFS
11608 test -z "$as_dir" && as_dir=.
11609 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11611 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11613 break 2
11614 fi
11615done
11616 done
11617IFS=$as_save_IFS
6c65d251 11618
57aa50d4
TT
11619 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11620 ;;
e1052144 11621esac
fff45483 11622fi
57aa50d4
TT
11623LN=$ac_cv_path_LN
11624if test -n "$LN"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11626$as_echo "$LN" >&6; }
11627else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629$as_echo "no" >&6; }
fff45483 11630fi
e1052144 11631
fff45483 11632
57aa50d4
TT
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11634$as_echo_n "checking whether ln -s works... " >&6; }
11635LN_S=$as_ln_s
11636if test "$LN_S" = "ln -s"; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638$as_echo "yes" >&6; }
11639else
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11641$as_echo "no, using $LN_S" >&6; }
fff45483 11642fi
6c65d251 11643
57aa50d4
TT
11644# Extract the first word of "mv", so it can be a program name with args.
11645set dummy mv; ac_word=$2
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11648if ${ac_cv_path_MV+:} false; then :
39fd3d4f 11649 $as_echo_n "(cached) " >&6
fff45483 11650else
57aa50d4
TT
11651 case $MV in
11652 [\\/]* | ?:[\\/]*)
11653 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11654 ;;
11655 *)
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657for as_dir in $PATH
11658do
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11663 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 break 2
11666 fi
11667done
11668 done
11669IFS=$as_save_IFS
6c65d251 11670
57aa50d4
TT
11671 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11672 ;;
e1052144 11673esac
b0cacab0 11674fi
57aa50d4
TT
11675MV=$ac_cv_path_MV
11676if test -n "$MV"; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11678$as_echo "$MV" >&6; }
b0b9c4de 11679else
57aa50d4
TT
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681$as_echo "no" >&6; }
39fd3d4f
SJR
11682fi
11683
39fd3d4f 11684
57aa50d4
TT
11685# Extract the first word of "cp", so it can be a program name with args.
11686set dummy cp; ac_word=$2
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11689if ${ac_cv_path_CP+:} false; then :
39fd3d4f 11690 $as_echo_n "(cached) " >&6
b0cacab0 11691else
57aa50d4
TT
11692 case $CP in
11693 [\\/]* | ?:[\\/]*)
11694 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11695 ;;
11696 *)
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698for as_dir in $PATH
11699do
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11704 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11707 fi
11708done
11709 done
11710IFS=$as_save_IFS
39fd3d4f 11711
57aa50d4
TT
11712 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11713 ;;
e1052144 11714esac
b0b9c4de 11715fi
57aa50d4
TT
11716CP=$ac_cv_path_CP
11717if test -n "$CP"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11719$as_echo "$CP" >&6; }
b0cacab0 11720else
57aa50d4
TT
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722$as_echo "no" >&6; }
b0b9c4de 11723fi
b0b9c4de 11724
6c65d251 11725
57aa50d4
TT
11726# Extract the first word of "rm", so it can be a program name with args.
11727set dummy rm; ac_word=$2
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11730if ${ac_cv_path_RM+:} false; then :
39fd3d4f 11731 $as_echo_n "(cached) " >&6
6928adc9 11732else
57aa50d4
TT
11733 case $RM in
11734 [\\/]* | ?:[\\/]*)
11735 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11736 ;;
11737 *)
11738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739for as_dir in $PATH
11740do
11741 IFS=$as_save_IFS
11742 test -z "$as_dir" && as_dir=.
11743 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11745 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747 break 2
11748 fi
11749done
b0cacab0 11750 done
57aa50d4 11751IFS=$as_save_IFS
6c65d251 11752
57aa50d4
TT
11753 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11754 ;;
e1052144 11755esac
6928adc9 11756fi
57aa50d4
TT
11757RM=$ac_cv_path_RM
11758if test -n "$RM"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11760$as_echo "$RM" >&6; }
b0cacab0 11761else
57aa50d4
TT
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763$as_echo "no" >&6; }
6928adc9 11764fi
6928adc9 11765
6c65d251 11766
57aa50d4
TT
11767# Extract the first word of "chmod", so it can be a program name with args.
11768set dummy chmod; ac_word=$2
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11771if ${ac_cv_path_CHMOD+:} false; then :
39fd3d4f 11772 $as_echo_n "(cached) " >&6
b0cacab0 11773else
57aa50d4
TT
11774 case $CHMOD in
11775 [\\/]* | ?:[\\/]*)
11776 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11777 ;;
11778 *)
11779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780for as_dir in $PATH
11781do
11782 IFS=$as_save_IFS
11783 test -z "$as_dir" && as_dir=.
11784 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11786 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11788 break 2
11789 fi
11790done
11791 done
11792IFS=$as_save_IFS
39fd3d4f 11793
57aa50d4
TT
11794 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11795 ;;
e1052144 11796esac
b0cacab0 11797fi
57aa50d4
TT
11798CHMOD=$ac_cv_path_CHMOD
11799if test -n "$CHMOD"; then
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11801$as_echo "$CHMOD" >&6; }
b0cacab0 11802else
57aa50d4
TT
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804$as_echo "no" >&6; }
b0cacab0 11805fi
39fd3d4f 11806
b0cacab0 11807
57aa50d4
TT
11808for ac_prog in gawk mawk nawk awk
11809do
11810 # Extract the first word of "$ac_prog", so it can be a program name with args.
11811set dummy $ac_prog; ac_word=$2
11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11814if ${ac_cv_prog_AWK+:} false; then :
39fd3d4f 11815 $as_echo_n "(cached) " >&6
b0cacab0 11816else
57aa50d4
TT
11817 if test -n "$AWK"; then
11818 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b0cacab0 11819else
57aa50d4
TT
11820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821for as_dir in $PATH
11822do
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
11825 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11827 ac_cv_prog_AWK="$ac_prog"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829 break 2
11830 fi
11831done
11832 done
11833IFS=$as_save_IFS
b0cacab0 11834
b0cacab0 11835fi
57aa50d4
TT
11836fi
11837AWK=$ac_cv_prog_AWK
11838if test -n "$AWK"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11840$as_echo "$AWK" >&6; }
b0cacab0 11841else
57aa50d4
TT
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843$as_echo "no" >&6; }
b0cacab0 11844fi
b0cacab0 11845
b0cacab0 11846
57aa50d4
TT
11847 test -n "$AWK" && break
11848done
b0cacab0 11849
57aa50d4
TT
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11851$as_echo_n "checking for egrep... " >&6; }
d6a4bcb5 11852if ${ac_cv_path_EGREP+:} false; then :
57aa50d4 11853 $as_echo_n "(cached) " >&6
b0cacab0 11854else
57aa50d4
TT
11855 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11856 then ac_cv_path_EGREP="$GREP -E"
11857 else
11858 if test -z "$EGREP"; then
11859 ac_path_EGREP_found=false
11860 # Loop through the user's path and test for each of PROGNAME-LIST
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_prog in egrep; do
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d6a4bcb5 11869 as_fn_executable_p "$ac_path_EGREP" || continue
57aa50d4
TT
11870# Check for GNU ac_path_EGREP and select it if it is found.
11871 # Check for GNU $ac_path_EGREP
11872case `"$ac_path_EGREP" --version 2>&1` in
11873*GNU*)
11874 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11875*)
11876 ac_count=0
11877 $as_echo_n 0123456789 >"conftest.in"
11878 while :
11879 do
11880 cat "conftest.in" "conftest.in" >"conftest.tmp"
11881 mv "conftest.tmp" "conftest.in"
11882 cp "conftest.in" "conftest.nl"
11883 $as_echo 'EGREP' >> "conftest.nl"
11884 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11886 as_fn_arith $ac_count + 1 && ac_count=$as_val
11887 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11888 # Best one so far, save it but keep looking for a better one
11889 ac_cv_path_EGREP="$ac_path_EGREP"
11890 ac_path_EGREP_max=$ac_count
11891 fi
11892 # 10*(2^10) chars as input seems more than enough
11893 test $ac_count -gt 10 && break
11894 done
11895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
e1052144 11896esac
e1052144 11897
57aa50d4
TT
11898 $ac_path_EGREP_found && break 3
11899 done
b0cacab0 11900 done
57aa50d4
TT
11901 done
11902IFS=$as_save_IFS
11903 if test -z "$ac_cv_path_EGREP"; then
d6a4bcb5 11904 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
57aa50d4 11905 fi
b0cacab0 11906else
57aa50d4 11907 ac_cv_path_EGREP=$EGREP
b0cacab0 11908fi
e1052144 11909
57aa50d4 11910 fi
b0cacab0 11911fi
57aa50d4
TT
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11913$as_echo "$ac_cv_path_EGREP" >&6; }
11914 EGREP="$ac_cv_path_EGREP"
e1052144 11915
b0cacab0 11916
57aa50d4
TT
11917# Extract the first word of "sed", so it can be a program name with args.
11918set dummy sed; ac_word=$2
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11921if ${ac_cv_path_SED+:} false; then :
57aa50d4 11922 $as_echo_n "(cached) " >&6
b0cacab0 11923else
57aa50d4
TT
11924 case $SED in
11925 [\\/]* | ?:[\\/]*)
11926 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11927 ;;
11928 *)
11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930for as_dir in $PATH
11931do
11932 IFS=$as_save_IFS
11933 test -z "$as_dir" && as_dir=.
11934 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11936 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11938 break 2
11939 fi
b0cacab0 11940done
57aa50d4
TT
11941 done
11942IFS=$as_save_IFS
b0cacab0 11943
57aa50d4
TT
11944 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11945 ;;
b0cacab0 11946esac
57aa50d4
TT
11947fi
11948SED=$ac_cv_path_SED
11949if test -n "$SED"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11951$as_echo "$SED" >&6; }
b0cacab0 11952else
57aa50d4
TT
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954$as_echo "no" >&6; }
b0cacab0 11955fi
e1052144 11956
b0cacab0 11957
57aa50d4
TT
11958# Extract the first word of "perl", so it can be a program name with args.
11959set dummy perl; ac_word=$2
11960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11962if ${ac_cv_path_PERL+:} false; then :
57aa50d4
TT
11963 $as_echo_n "(cached) " >&6
11964else
11965 case $PERL in
11966 [\\/]* | ?:[\\/]*)
11967 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11968 ;;
11969 *)
11970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971for as_dir in $PATH
11972do
11973 IFS=$as_save_IFS
11974 test -z "$as_dir" && as_dir=.
11975 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11977 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 break 2
11980 fi
b0cacab0 11981done
57aa50d4
TT
11982 done
11983IFS=$as_save_IFS
11984
11985 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11986 ;;
b0cacab0 11987esac
57aa50d4
TT
11988fi
11989PERL=$ac_cv_path_PERL
11990if test -n "$PERL"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11992$as_echo "$PERL" >&6; }
b0cacab0 11993else
57aa50d4
TT
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995$as_echo "no" >&6; }
11996fi
b0cacab0 11997
b0cacab0 11998
57aa50d4
TT
11999# Extract the first word of "ldconfig", so it can be a program name with args.
12000set dummy ldconfig; ac_word=$2
12001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12003if ${ac_cv_path_LDCONFIG+:} false; then :
57aa50d4 12004 $as_echo_n "(cached) " >&6
b0cacab0 12005else
57aa50d4
TT
12006 case $LDCONFIG in
12007 [\\/]* | ?:[\\/]*)
12008 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12009 ;;
12010 *)
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012for as_dir in $PATH
12013do
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12018 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 break 2
12021 fi
12022done
12023 done
12024IFS=$as_save_IFS
b0cacab0 12025
57aa50d4
TT
12026 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12027 ;;
12028esac
39fd3d4f 12029fi
57aa50d4
TT
12030LDCONFIG=$ac_cv_path_LDCONFIG
12031if test -n "$LDCONFIG"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12033$as_echo "$LDCONFIG" >&6; }
12034else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036$as_echo "no" >&6; }
b0cacab0 12037fi
39fd3d4f
SJR
12038
12039
57aa50d4
TT
12040if test -n "$ac_tool_prefix"; then
12041 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12042set dummy ${ac_tool_prefix}ar; ac_word=$2
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12045if ${ac_cv_prog_AR+:} false; then :
57aa50d4
TT
12046 $as_echo_n "(cached) " >&6
12047else
12048 if test -n "$AR"; then
12049 ac_cv_prog_AR="$AR" # Let the user override the test.
12050else
12051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052for as_dir in $PATH
12053do
12054 IFS=$as_save_IFS
12055 test -z "$as_dir" && as_dir=.
12056 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12058 ac_cv_prog_AR="${ac_tool_prefix}ar"
12059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12060 break 2
12061 fi
12062done
12063 done
12064IFS=$as_save_IFS
39fd3d4f 12065
57aa50d4
TT
12066fi
12067fi
12068AR=$ac_cv_prog_AR
12069if test -n "$AR"; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12071$as_echo "$AR" >&6; }
12072else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074$as_echo "no" >&6; }
12075fi
39fd3d4f 12076
b0cacab0 12077
57aa50d4
TT
12078fi
12079if test -z "$ac_cv_prog_AR"; then
12080 ac_ct_AR=$AR
12081 # Extract the first word of "ar", so it can be a program name with args.
12082set dummy ar; ac_word=$2
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12085if ${ac_cv_prog_ac_ct_AR+:} false; then :
39fd3d4f 12086 $as_echo_n "(cached) " >&6
b0cacab0 12087else
57aa50d4
TT
12088 if test -n "$ac_ct_AR"; then
12089 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b0cacab0 12090else
57aa50d4
TT
12091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092for as_dir in $PATH
12093do
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12098 ac_cv_prog_ac_ct_AR="ar"
12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100 break 2
12101 fi
12102done
12103 done
12104IFS=$as_save_IFS
b0cacab0 12105
b0cacab0 12106fi
57aa50d4
TT
12107fi
12108ac_ct_AR=$ac_cv_prog_ac_ct_AR
12109if test -n "$ac_ct_AR"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12111$as_echo "$ac_ct_AR" >&6; }
b0cacab0 12112else
57aa50d4
TT
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114$as_echo "no" >&6; }
12115fi
b0cacab0 12116
57aa50d4
TT
12117 if test "x$ac_ct_AR" = x; then
12118 AR="ar"
12119 else
12120 case $cross_compiling:$ac_tool_warned in
12121yes:)
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12124ac_tool_warned=yes ;;
e1052144 12125esac
57aa50d4
TT
12126 AR=$ac_ct_AR
12127 fi
b0cacab0 12128else
57aa50d4 12129 AR="$ac_cv_prog_AR"
b0cacab0 12130fi
e1052144 12131
57aa50d4
TT
12132if test -n "$ac_tool_prefix"; then
12133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12134set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12137if ${ac_cv_prog_RANLIB+:} false; then :
57aa50d4 12138 $as_echo_n "(cached) " >&6
b0cacab0 12139else
57aa50d4
TT
12140 if test -n "$RANLIB"; then
12141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12142else
12143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144for as_dir in $PATH
12145do
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12152 break 2
12153 fi
12154done
b0cacab0 12155 done
57aa50d4 12156IFS=$as_save_IFS
b0cacab0 12157
b0cacab0 12158fi
57aa50d4
TT
12159fi
12160RANLIB=$ac_cv_prog_RANLIB
12161if test -n "$RANLIB"; then
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12163$as_echo "$RANLIB" >&6; }
b0cacab0 12164else
57aa50d4
TT
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166$as_echo "no" >&6; }
b0cacab0 12167fi
b0cacab0 12168
b0cacab0 12169
57aa50d4
TT
12170fi
12171if test -z "$ac_cv_prog_RANLIB"; then
12172 ac_ct_RANLIB=$RANLIB
12173 # Extract the first word of "ranlib", so it can be a program name with args.
12174set dummy ranlib; ac_word=$2
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12177if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
57aa50d4
TT
12178 $as_echo_n "(cached) " >&6
12179else
12180 if test -n "$ac_ct_RANLIB"; then
12181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b0cacab0 12182else
57aa50d4
TT
12183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184for as_dir in $PATH
12185do
12186 IFS=$as_save_IFS
12187 test -z "$as_dir" && as_dir=.
12188 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12190 ac_cv_prog_ac_ct_RANLIB="ranlib"
12191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12192 break 2
12193 fi
12194done
12195 done
12196IFS=$as_save_IFS
29a5deed 12197
b0cacab0 12198fi
57aa50d4
TT
12199fi
12200ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12201if test -n "$ac_ct_RANLIB"; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12203$as_echo "$ac_ct_RANLIB" >&6; }
b0cacab0 12204else
57aa50d4
TT
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206$as_echo "no" >&6; }
12207fi
b0cacab0 12208
57aa50d4
TT
12209 if test "x$ac_ct_RANLIB" = x; then
12210 RANLIB=":"
b0cacab0 12211 else
57aa50d4
TT
12212 case $cross_compiling:$ac_tool_warned in
12213yes:)
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12216ac_tool_warned=yes ;;
e1052144 12217esac
57aa50d4
TT
12218 RANLIB=$ac_ct_RANLIB
12219 fi
b0cacab0 12220else
57aa50d4 12221 RANLIB="$ac_cv_prog_RANLIB"
b0cacab0 12222fi
e1052144 12223
57aa50d4
TT
12224if test -n "$ac_tool_prefix"; then
12225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12226set dummy ${ac_tool_prefix}strip; ac_word=$2
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12229if ${ac_cv_prog_STRIP+:} false; then :
57aa50d4 12230 $as_echo_n "(cached) " >&6
b0cacab0 12231else
57aa50d4
TT
12232 if test -n "$STRIP"; then
12233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12234else
12235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12242 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12244 break 2
12245 fi
12246done
12247 done
12248IFS=$as_save_IFS
b0cacab0 12249
b0cacab0 12250fi
b0cacab0 12251fi
57aa50d4
TT
12252STRIP=$ac_cv_prog_STRIP
12253if test -n "$STRIP"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12255$as_echo "$STRIP" >&6; }
12256else
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258$as_echo "no" >&6; }
b0cacab0 12259fi
e1052144 12260
b0cacab0 12261
57aa50d4
TT
12262fi
12263if test -z "$ac_cv_prog_STRIP"; then
12264 ac_ct_STRIP=$STRIP
12265 # Extract the first word of "strip", so it can be a program name with args.
12266set dummy strip; ac_word=$2
12267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12268$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12269if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
39fd3d4f 12270 $as_echo_n "(cached) " >&6
b0cacab0 12271else
57aa50d4
TT
12272 if test -n "$ac_ct_STRIP"; then
12273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12274else
12275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276for as_dir in $PATH
12277do
12278 IFS=$as_save_IFS
12279 test -z "$as_dir" && as_dir=.
12280 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12282 ac_cv_prog_ac_ct_STRIP="strip"
12283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284 break 2
12285 fi
12286done
12287 done
12288IFS=$as_save_IFS
b0cacab0 12289
b0cacab0 12290fi
57aa50d4
TT
12291fi
12292ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12293if test -n "$ac_ct_STRIP"; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12295$as_echo "$ac_ct_STRIP" >&6; }
b0cacab0 12296else
57aa50d4
TT
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298$as_echo "no" >&6; }
12299fi
b0cacab0 12300
57aa50d4
TT
12301 if test "x$ac_ct_STRIP" = x; then
12302 STRIP=":"
b0cacab0 12303 else
57aa50d4
TT
12304 case $cross_compiling:$ac_tool_warned in
12305yes:)
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12308ac_tool_warned=yes ;;
e1052144 12309esac
57aa50d4
TT
12310 STRIP=$ac_ct_STRIP
12311 fi
b0cacab0 12312else
57aa50d4 12313 STRIP="$ac_cv_prog_STRIP"
b0cacab0 12314fi
e1052144 12315
57aa50d4
TT
12316# Extract the first word of "makeinfo", so it can be a program name with args.
12317set dummy makeinfo; ac_word=$2
12318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12320if ${ac_cv_prog_MAKEINFO+:} false; then :
57aa50d4 12321 $as_echo_n "(cached) " >&6
07a0db15 12322else
57aa50d4
TT
12323 if test -n "$MAKEINFO"; then
12324 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12325else
12326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327for as_dir in $PATH
12328do
12329 IFS=$as_save_IFS
12330 test -z "$as_dir" && as_dir=.
12331 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12333 ac_cv_prog_MAKEINFO="makeinfo"
12334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335 break 2
12336 fi
12337done
12338 done
12339IFS=$as_save_IFS
b0cacab0 12340
b0cacab0
TT
12341fi
12342fi
57aa50d4
TT
12343MAKEINFO=$ac_cv_prog_MAKEINFO
12344if test -n "$MAKEINFO"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12346$as_echo "$MAKEINFO" >&6; }
b0cacab0 12347else
57aa50d4
TT
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349$as_echo "no" >&6; }
07a0db15 12350fi
29a5deed
TT
12351
12352
57aa50d4 12353if test "_$MAKEINFO" = "_"; then
ca1de98a 12354 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
57aa50d4
TT
12355else
12356 case "$MAKEINFO" in
12357 */missing.*)
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12359*** Makeinfo is missing. Info documentation will not be built." >&5
12360$as_echo "$as_me: WARNING:
12361*** Makeinfo is missing. Info documentation will not be built." >&2;}
12362 ;;
12363 *)
12364 ;;
12365 esac
b0cacab0 12366fi
29a5deed 12367
b0cacab0 12368
57aa50d4
TT
12369# See if we need a separate native compiler.
12370if test $cross_compiling = no; then
12371 BUILD_CC="$CC"
b0cacab0 12372
b0cacab0 12373else
57aa50d4
TT
12374 for ac_prog in gcc cc
12375do
12376 # Extract the first word of "$ac_prog", so it can be a program name with args.
12377set dummy $ac_prog; 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_BUILD_CC+:} false; then :
57aa50d4 12381 $as_echo_n "(cached) " >&6
b0cacab0 12382else
57aa50d4
TT
12383 if test -n "$BUILD_CC"; then
12384 ac_cv_prog_BUILD_CC="$BUILD_CC" # 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_BUILD_CC="$ac_prog"
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 12401fi
57aa50d4
TT
12402fi
12403BUILD_CC=$ac_cv_prog_BUILD_CC
12404if test -n "$BUILD_CC"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12406$as_echo "$BUILD_CC" >&6; }
07a0db15 12407else
57aa50d4
TT
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409$as_echo "no" >&6; }
b0cacab0 12410fi
b0cacab0 12411
b0cacab0 12412
57aa50d4
TT
12413 test -n "$BUILD_CC" && break
12414done
b0cacab0 12415
57aa50d4 12416fi
3829c16c 12417for 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
12418do :
12419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12420ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d6a4bcb5 12421if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
57aa50d4
TT
12422 cat >>confdefs.h <<_ACEOF
12423#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 12424_ACEOF
b0cacab0 12425
b0cacab0 12426fi
e1052144 12427
b0cacab0 12428done
93636bde 12429
ec3a69bb
MA
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12431$as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12432DD=
12433for i in dd gdd ; do
12434 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12435 DD=$i
12436 break
12437 fi
12438done
12439if test -n "$DD" ; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12441$as_echo "$DD" >&6; }
12442else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12444$as_echo "not found, using dd" >&6; }
12445 DD=dd
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12447$as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12448fi
12449
12450
57aa50d4
TT
12451for ac_header in net/if.h
12452do :
12453 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12454#if HAVE_SYS_TYPES_H
12455#include <sys/types.h>
12456#endif
12457#if HAVE_SYS_SOCKET
12458#include <sys/socket.h>
12459#endif
29a5deed 12460
57aa50d4 12461"
d6a4bcb5 12462if test "x$ac_cv_header_net_if_h" = xyes; then :
57aa50d4
TT
12463 cat >>confdefs.h <<_ACEOF
12464#define HAVE_NET_IF_H 1
b0cacab0 12465_ACEOF
b0cacab0 12466
b0cacab0 12467fi
e1052144 12468
b0cacab0 12469done
b0cacab0 12470
57aa50d4
TT
12471for ac_func in vprintf
12472do :
12473 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
d6a4bcb5 12474if test "x$ac_cv_func_vprintf" = xyes; then :
57aa50d4
TT
12475 cat >>confdefs.h <<_ACEOF
12476#define HAVE_VPRINTF 1
b0cacab0 12477_ACEOF
b0cacab0 12478
57aa50d4 12479ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
d6a4bcb5 12480if test "x$ac_cv_func__doprnt" = xyes; then :
b0cacab0 12481
57aa50d4 12482$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
b0cacab0 12483
50e1e10f 12484fi
29a5deed 12485
57aa50d4
TT
12486fi
12487done
29a5deed
TT
12488
12489
57aa50d4
TT
12490ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12491"
d6a4bcb5 12492if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
d1154eb4
TT
12493
12494$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
50e1e10f 12495
2873927d
TT
12496fi
12497
12498ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12499if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12500
12501cat >>confdefs.h <<_ACEOF
12502#define HAVE_STRUCT_STAT_ST_ATIM 1
12503_ACEOF
12504
12505
b0cacab0 12506fi
93636bde 12507
57aa50d4
TT
12508ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12509"
d6a4bcb5 12510if test "x$ac_cv_type_ssize_t" = xyes; then :
d1154eb4
TT
12511
12512$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
b0cacab0 12513
57aa50d4 12514fi
b0cacab0 12515
57aa50d4
TT
12516ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12517"
d6a4bcb5 12518if test "x$ac_cv_have_decl_llseek" = xyes; then :
d1154eb4
TT
12519
12520$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
b0cacab0 12521
b0cacab0 12522fi
e1052144 12523
57aa50d4
TT
12524ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12525 #define _LARGEFILE64_SOURCE
12526 #include <unistd.h>
12527"
d6a4bcb5 12528if test "x$ac_cv_have_decl_lseek64" = xyes; then :
d1154eb4
TT
12529
12530$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
b0cacab0 12531
b0cacab0 12532fi
b0cacab0 12533
57aa50d4
TT
12534# The cast to long int works around a bug in the HP C Compiler
12535# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12536# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12537# This bug is HP SR number 8606223364.
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12539$as_echo_n "checking size of short... " >&6; }
d6a4bcb5 12540if ${ac_cv_sizeof_short+:} false; then :
57aa50d4 12541 $as_echo_n "(cached) " >&6
07a0db15 12542else
57aa50d4 12543 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
b0cacab0 12544
b0cacab0 12545else
57aa50d4
TT
12546 if test "$ac_cv_type_short" = yes; then
12547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12549as_fn_error 77 "cannot compute sizeof (short)
12550See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12551 else
12552 ac_cv_sizeof_short=0
12553 fi
07a0db15 12554fi
b0cacab0 12555
b0cacab0 12556fi
57aa50d4
TT
12557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12558$as_echo "$ac_cv_sizeof_short" >&6; }
e1052144 12559
93636bde 12560
57aa50d4
TT
12561
12562cat >>confdefs.h <<_ACEOF
12563#define SIZEOF_SHORT $ac_cv_sizeof_short
b0cacab0 12564_ACEOF
57aa50d4
TT
12565
12566
12567# The cast to long int works around a bug in the HP C Compiler
12568# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12569# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12570# This bug is HP SR number 8606223364.
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12572$as_echo_n "checking size of int... " >&6; }
d6a4bcb5 12573if ${ac_cv_sizeof_int+:} false; then :
57aa50d4 12574 $as_echo_n "(cached) " >&6
07a0db15 12575else
57aa50d4 12576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
93636bde 12577
57aa50d4
TT
12578else
12579 if test "$ac_cv_type_int" = yes; then
12580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12582as_fn_error 77 "cannot compute sizeof (int)
12583See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12584 else
12585 ac_cv_sizeof_int=0
12586 fi
07a0db15 12587fi
e1052144 12588
b0cacab0 12589fi
57aa50d4
TT
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12591$as_echo "$ac_cv_sizeof_int" >&6; }
e1052144 12592
93636bde 12593
57aa50d4
TT
12594
12595cat >>confdefs.h <<_ACEOF
12596#define SIZEOF_INT $ac_cv_sizeof_int
b0cacab0 12597_ACEOF
b0cacab0 12598
e1052144 12599
57aa50d4
TT
12600# The cast to long int works around a bug in the HP C Compiler
12601# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12602# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12603# This bug is HP SR number 8606223364.
12604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12605$as_echo_n "checking size of long... " >&6; }
d6a4bcb5 12606if ${ac_cv_sizeof_long+:} false; then :
57aa50d4
TT
12607 $as_echo_n "(cached) " >&6
12608else
12609 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12610
12611else
12612 if test "$ac_cv_type_long" = yes; then
12613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 12614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12615as_fn_error 77 "cannot compute sizeof (long)
12616See \`config.log' for more details" "$LINENO" 5; }
29a5deed 12617 else
57aa50d4
TT
12618 ac_cv_sizeof_long=0
12619 fi
12620fi
39fd3d4f 12621
57aa50d4
TT
12622fi
12623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12624$as_echo "$ac_cv_sizeof_long" >&6; }
39fd3d4f 12625
57aa50d4
TT
12626
12627
12628cat >>confdefs.h <<_ACEOF
12629#define SIZEOF_LONG $ac_cv_sizeof_long
39fd3d4f 12630_ACEOF
57aa50d4
TT
12631
12632
12633# The cast to long int works around a bug in the HP C Compiler
12634# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12635# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12636# This bug is HP SR number 8606223364.
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12638$as_echo_n "checking size of long long... " >&6; }
d6a4bcb5 12639if ${ac_cv_sizeof_long_long+:} false; then :
57aa50d4 12640 $as_echo_n "(cached) " >&6
39fd3d4f 12641else
57aa50d4 12642 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
39fd3d4f 12643
57aa50d4
TT
12644else
12645 if test "$ac_cv_type_long_long" = yes; then
12646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 12647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12648as_fn_error 77 "cannot compute sizeof (long long)
12649See \`config.log' for more details" "$LINENO" 5; }
39fd3d4f
SJR
12650 else
12651 ac_cv_sizeof_long_long=0
12652 fi
12653fi
57aa50d4 12654
39fd3d4f 12655fi
57aa50d4 12656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
39fd3d4f
SJR
12657$as_echo "$ac_cv_sizeof_long_long" >&6; }
12658
12659
12660
12661cat >>confdefs.h <<_ACEOF
12662#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12663_ACEOF
12664
12665
cc68e8a6
TT
12666# The cast to long int works around a bug in the HP C Compiler
12667# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12668# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12669# This bug is HP SR number 8606223364.
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12671$as_echo_n "checking size of off_t... " >&6; }
12672if ${ac_cv_sizeof_off_t+:} false; then :
12673 $as_echo_n "(cached) " >&6
12674else
12675 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12676
12677else
12678 if test "$ac_cv_type_off_t" = yes; then
12679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12681as_fn_error 77 "cannot compute sizeof (off_t)
12682See \`config.log' for more details" "$LINENO" 5; }
12683 else
12684 ac_cv_sizeof_off_t=0
12685 fi
12686fi
12687
12688fi
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12690$as_echo "$ac_cv_sizeof_off_t" >&6; }
12691
12692
12693
12694cat >>confdefs.h <<_ACEOF
12695#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12696_ACEOF
12697
12698
2dd680f3
TT
12699# The cast to long int works around a bug in the HP C Compiler
12700# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12701# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12702# This bug is HP SR number 8606223364.
12703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12704$as_echo_n "checking size of time_t... " >&6; }
12705if ${ac_cv_sizeof_time_t+:} false; then :
12706 $as_echo_n "(cached) " >&6
12707else
12708 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12709
12710else
12711 if test "$ac_cv_type_time_t" = yes; then
12712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12714as_fn_error 77 "cannot compute sizeof (time_t)
12715See \`config.log' for more details" "$LINENO" 5; }
12716 else
12717 ac_cv_sizeof_time_t=0
12718 fi
12719fi
12720
12721fi
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12723$as_echo "$ac_cv_sizeof_time_t" >&6; }
12724
12725
12726
12727cat >>confdefs.h <<_ACEOF
12728#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12729_ACEOF
12730
12731
39fd3d4f
SJR
12732SIZEOF_SHORT=$ac_cv_sizeof_short
12733SIZEOF_INT=$ac_cv_sizeof_int
12734SIZEOF_LONG=$ac_cv_sizeof_long
12735SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
cc68e8a6 12736SIZEOF_OFF_T=$ac_cv_sizeof_off_t
2dd680f3
TT
12737SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12738
cc68e8a6 12739
39fd3d4f
SJR
12740
12741
12742
12743
57aa50d4 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
39fd3d4f 12745$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6a4bcb5 12746if ${ac_cv_c_bigendian+:} false; then :
39fd3d4f
SJR
12747 $as_echo_n "(cached) " >&6
12748else
12749 ac_cv_c_bigendian=unknown
12750 # See if we're dealing with a universal compiler.
57aa50d4 12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12752/* end confdefs.h. */
12753#ifndef __APPLE_CC__
12754 not a universal capable compiler
12755 #endif
12756 typedef int dummy;
12757
12758_ACEOF
57aa50d4 12759if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
12760
12761 # Check for potential -arch flags. It is not universal unless
57aa50d4
TT
12762 # there are at least two -arch flags with different values.
12763 ac_arch=
12764 ac_prev=
12765 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12766 if test -n "$ac_prev"; then
12767 case $ac_word in
12768 i?86 | x86_64 | ppc | ppc64)
12769 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12770 ac_arch=$ac_word
12771 else
12772 ac_cv_c_bigendian=universal
12773 break
12774 fi
12775 ;;
12776 esac
12777 ac_prev=
12778 elif test "x$ac_word" = "x-arch"; then
12779 ac_prev=arch
12780 fi
12781 done
39fd3d4f 12782fi
39fd3d4f
SJR
12783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12784 if test $ac_cv_c_bigendian = unknown; then
12785 # See if sys/param.h defines the BYTE_ORDER macro.
57aa50d4 12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12787/* end confdefs.h. */
12788#include <sys/types.h>
12789 #include <sys/param.h>
12790
12791int
12792main ()
12793{
12794#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12795 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12796 && LITTLE_ENDIAN)
12797 bogus endian macros
12798 #endif
12799
12800 ;
12801 return 0;
12802}
12803_ACEOF
57aa50d4 12804if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 12805 # It does; now see whether it defined to BIG_ENDIAN or not.
57aa50d4 12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12807/* end confdefs.h. */
12808#include <sys/types.h>
12809 #include <sys/param.h>
12810
b0cacab0
TT
12811int
12812main ()
07a0db15 12813{
39fd3d4f
SJR
12814#if BYTE_ORDER != BIG_ENDIAN
12815 not big endian
12816 #endif
b0cacab0
TT
12817
12818 ;
12819 return 0;
07a0db15 12820}
b0cacab0 12821_ACEOF
57aa50d4 12822if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 12823 ac_cv_c_bigendian=yes
b0cacab0 12824else
57aa50d4 12825 ac_cv_c_bigendian=no
fc6d9d51 12826fi
39fd3d4f 12827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 12828fi
39fd3d4f
SJR
12829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830 fi
12831 if test $ac_cv_c_bigendian = unknown; then
12832 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57aa50d4 12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12834/* end confdefs.h. */
39fd3d4f 12835#include <limits.h>
877eb6d9 12836
b0cacab0
TT
12837int
12838main ()
12839{
39fd3d4f
SJR
12840#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12841 bogus endian macros
12842 #endif
b0cacab0
TT
12843
12844 ;
12845 return 0;
12846}
b0cacab0 12847_ACEOF
57aa50d4
TT
12848if ac_fn_c_try_compile "$LINENO"; then :
12849 # It does; now see whether it defined to _BIG_ENDIAN or not.
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12851/* end confdefs.h. */
39fd3d4f 12852#include <limits.h>
877eb6d9 12853
b0cacab0
TT
12854int
12855main ()
12856{
39fd3d4f
SJR
12857#ifndef _BIG_ENDIAN
12858 not big endian
12859 #endif
b0cacab0
TT
12860
12861 ;
12862 return 0;
12863}
12864_ACEOF
57aa50d4 12865if ac_fn_c_try_compile "$LINENO"; then :
877eb6d9
TT
12866 ac_cv_c_bigendian=yes
12867else
57aa50d4 12868 ac_cv_c_bigendian=no
877eb6d9 12869fi
e1052144 12870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 12871fi
39fd3d4f
SJR
12872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 fi
12874 if test $ac_cv_c_bigendian = unknown; then
12875 # Compile a test program.
57aa50d4 12876 if test "$cross_compiling" = yes; then :
39fd3d4f 12877 # Try to guess by grepping values from an object file.
57aa50d4 12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12879/* end confdefs.h. */
39fd3d4f
SJR
12880short int ascii_mm[] =
12881 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12882 short int ascii_ii[] =
12883 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12884 int use_ascii (int i) {
12885 return ascii_mm[i] + ascii_ii[i];
12886 }
12887 short int ebcdic_ii[] =
12888 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12889 short int ebcdic_mm[] =
12890 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12891 int use_ebcdic (int i) {
12892 return ebcdic_mm[i] + ebcdic_ii[i];
12893 }
12894 extern int foo;
12895
b0cacab0
TT
12896int
12897main ()
12898{
39fd3d4f 12899return use_ascii (foo) == use_ebcdic (foo);
b0cacab0
TT
12900 ;
12901 return 0;
12902}
12903_ACEOF
57aa50d4 12904if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
12905 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12906 ac_cv_c_bigendian=yes
12907 fi
12908 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12909 if test "$ac_cv_c_bigendian" = unknown; then
12910 ac_cv_c_bigendian=no
12911 else
12912 # finding both strings is unlikely to happen, but who knows?
12913 ac_cv_c_bigendian=unknown
12914 fi
12915 fi
b0cacab0 12916fi
e1052144 12917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 12918else
57aa50d4 12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12920/* end confdefs.h. */
e1052144 12921$ac_includes_default
b0cacab0
TT
12922int
12923main ()
12924{
e1052144 12925
39fd3d4f
SJR
12926 /* Are we little or big endian? From Harbison&Steele. */
12927 union
12928 {
12929 long int l;
12930 char c[sizeof (long int)];
12931 } u;
12932 u.l = 1;
12933 return u.c[sizeof (long int) - 1] == 1;
e1052144
TT
12934
12935 ;
12936 return 0;
877eb6d9 12937}
b0cacab0 12938_ACEOF
57aa50d4 12939if ac_fn_c_try_run "$LINENO"; then :
877eb6d9
TT
12940 ac_cv_c_bigendian=no
12941else
57aa50d4 12942 ac_cv_c_bigendian=yes
877eb6d9 12943fi
57aa50d4
TT
12944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12945 conftest.$ac_objext conftest.beam conftest.$ac_ext
877eb6d9 12946fi
e1052144 12947
39fd3d4f 12948 fi
877eb6d9 12949fi
57aa50d4 12950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
39fd3d4f
SJR
12951$as_echo "$ac_cv_c_bigendian" >&6; }
12952 case $ac_cv_c_bigendian in #(
12953 yes)
57aa50d4 12954 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
39fd3d4f
SJR
12955;; #(
12956 no)
12957 ;; #(
12958 universal)
07a0db15 12959
57aa50d4 12960$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
39fd3d4f
SJR
12961
12962 ;; #(
12963 *)
d6a4bcb5 12964 as_fn_error $? "unknown endianness
57aa50d4 12965 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
39fd3d4f 12966 esac
877eb6d9 12967
91f04685
CQ
12968if test $cross_compiling = no; then
12969 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12970else
12971 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12972fi
4ea7ea00
TT
12973ASM_TYPES_HEADER=./asm_types.h
12974
488c75a6
TT
12975echo "/* These defines are needed for the public ext2fs.h header file */" \
12976 > public_config.h
12977if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12978 uniq tmp_config.$$ >> public_config.h
12979else
12980 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12981fi
12982if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12983 uniq tmp_config.$$ >> public_config.h
12984else
12985 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12986fi
12987rm -f tmp_config.$$
12988PUBLIC_CONFIG_HEADER=./public_config.h
12989
b0cacab0 12990for ac_header in inttypes.h
57aa50d4
TT
12991do :
12992 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
d6a4bcb5 12993if test "x$ac_cv_header_inttypes_h" = xyes; then :
b0cacab0 12994 cat >>confdefs.h <<_ACEOF
57aa50d4 12995#define HAVE_INTTYPES_H 1
b0cacab0
TT
12996_ACEOF
12997
12998fi
12999
0c193f82
TT
13000done
13001
57aa50d4 13002ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
d6a4bcb5 13003if test "x$ac_cv_type_intptr_t" = xyes; then :
b0cacab0
TT
13004
13005cat >>confdefs.h <<_ACEOF
d2ee56d8 13006#define HAVE_INTPTR_T 1
b0cacab0 13007_ACEOF
0c193f82 13008
d2ee56d8 13009
0c193f82
TT
13010fi
13011
57aa50d4 13012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
39fd3d4f 13013$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
d6a4bcb5 13014if ${e2fsprogs_cv_struct_st_flags+:} false; then :
39fd3d4f 13015 $as_echo_n "(cached) " >&6
50e1e10f 13016else
57aa50d4 13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13018/* end confdefs.h. */
50e1e10f 13019#include <sys/stat.h>
b0cacab0
TT
13020int
13021main ()
13022{
50e1e10f 13023struct stat stat; stat.st_flags = 0;
b0cacab0
TT
13024 ;
13025 return 0;
13026}
13027_ACEOF
57aa50d4 13028if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f
TT
13029 e2fsprogs_cv_struct_st_flags=yes
13030else
57aa50d4 13031 e2fsprogs_cv_struct_st_flags=no
50e1e10f 13032fi
e1052144 13033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f
TT
13034fi
13035
57aa50d4 13036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
39fd3d4f 13037$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
50e1e10f 13038if test "$e2fsprogs_cv_struct_st_flags" = yes; then
57aa50d4 13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
39fd3d4f 13040$as_echo_n "checking whether st_flags field is useful... " >&6; }
d6a4bcb5 13041 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
39fd3d4f 13042 $as_echo_n "(cached) " >&6
b0cacab0 13043else
57aa50d4 13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13045/* end confdefs.h. */
c03bc4e8 13046#include <sys/stat.h>
b0cacab0
TT
13047int
13048main ()
13049{
c03bc4e8 13050struct stat stat; stat.st_flags |= UF_IMMUTABLE;
b0cacab0
TT
13051 ;
13052 return 0;
13053}
57aa50d4
TT
13054_ACEOF
13055if ac_fn_c_try_compile "$LINENO"; then :
13056 e2fsprogs_cv_struct_st_flags_immut=yes
6c65d251 13057else
57aa50d4 13058 e2fsprogs_cv_struct_st_flags_immut=no
84ea6e70 13059fi
e1052144 13060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84ea6e70 13061fi
e1052144 13062
57aa50d4
TT
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13064$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13065 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
d1154eb4
TT
13066
13067$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
57aa50d4
TT
13068
13069 fi
6c65d251 13070fi
57aa50d4
TT
13071ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13072 #include <sys/socket.h>
13073"
d6a4bcb5 13074if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
b0cacab0
TT
13075
13076cat >>confdefs.h <<_ACEOF
84ea6e70 13077#define HAVE_SA_LEN 1
b0cacab0 13078_ACEOF
84ea6e70 13079
50e1e10f 13080fi
b0cacab0 13081
9ed8e5fe 13082if test -n "$BLKID_CMT"; then
57aa50d4 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
9ed8e5fe 13084$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
d6a4bcb5 13085if ${ac_cv_search_blkid_probe_all+:} false; then :
9ed8e5fe
ES
13086 $as_echo_n "(cached) " >&6
13087else
13088 ac_func_search_save_LIBS=$LIBS
57aa50d4 13089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9ed8e5fe
ES
13090/* end confdefs.h. */
13091
13092/* Override any GCC internal prototype to avoid an error.
13093 Use char because int might match the return type of a GCC
13094 builtin and then its argument prototype would still apply. */
13095#ifdef __cplusplus
13096extern "C"
13097#endif
13098char blkid_probe_all ();
13099int
13100main ()
13101{
13102return blkid_probe_all ();
13103 ;
13104 return 0;
13105}
13106_ACEOF
13107for ac_lib in '' blkid; do
13108 if test -z "$ac_lib"; then
13109 ac_res="none required"
13110 else
13111 ac_res=-l$ac_lib
13112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13113 fi
57aa50d4 13114 if ac_fn_c_try_link "$LINENO"; then :
9ed8e5fe 13115 ac_cv_search_blkid_probe_all=$ac_res
9ed8e5fe 13116fi
57aa50d4
TT
13117rm -f core conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext
d6a4bcb5 13119 if ${ac_cv_search_blkid_probe_all+:} false; then :
9ed8e5fe
ES
13120 break
13121fi
13122done
d6a4bcb5 13123if ${ac_cv_search_blkid_probe_all+:} false; then :
57aa50d4 13124
9ed8e5fe
ES
13125else
13126 ac_cv_search_blkid_probe_all=no
13127fi
13128rm conftest.$ac_ext
13129LIBS=$ac_func_search_save_LIBS
13130fi
57aa50d4 13131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
9ed8e5fe
ES
13132$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13133ac_res=$ac_cv_search_blkid_probe_all
57aa50d4 13134if test "$ac_res" != no; then :
9ed8e5fe
ES
13135 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13136
13137fi
13138
13139fi
32179ce2
TT
13140if test -n "$DLOPEN_LIB" ; then
13141 ac_cv_func_dlopen=yes
13142fi
32b8802a 13143for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions 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
13144do :
13145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13146ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d6a4bcb5 13147if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b0cacab0 13148 cat >>confdefs.h <<_ACEOF
39fd3d4f 13149#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b0cacab0 13150_ACEOF
21c84b71 13151
50e1e10f
TT
13152fi
13153done
13154
fc6d9d51 13155SOCKET_LIB=''
57aa50d4 13156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
39fd3d4f 13157$as_echo_n "checking for socket in -lsocket... " >&6; }
d6a4bcb5 13158if ${ac_cv_lib_socket_socket+:} false; then :
39fd3d4f 13159 $as_echo_n "(cached) " >&6
50e1e10f 13160else
b0cacab0 13161 ac_check_lib_save_LIBS=$LIBS
fc6d9d51 13162LIBS="-lsocket $LIBS"
57aa50d4 13163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13164/* end confdefs.h. */
93636bde 13165
e1052144
TT
13166/* Override any GCC internal prototype to avoid an error.
13167 Use char because int might match the return type of a GCC
13168 builtin and then its argument prototype would still apply. */
b0cacab0
TT
13169#ifdef __cplusplus
13170extern "C"
13171#endif
b0cacab0
TT
13172char socket ();
13173int
13174main ()
13175{
e1052144 13176return socket ();
b0cacab0
TT
13177 ;
13178 return 0;
13179}
13180_ACEOF
57aa50d4 13181if ac_fn_c_try_link "$LINENO"; then :
b0cacab0
TT
13182 ac_cv_lib_socket_socket=yes
13183else
57aa50d4 13184 ac_cv_lib_socket_socket=no
b0cacab0 13185fi
57aa50d4
TT
13186rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
b0cacab0
TT
13188LIBS=$ac_check_lib_save_LIBS
13189fi
57aa50d4 13190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
39fd3d4f 13191$as_echo "$ac_cv_lib_socket_socket" >&6; }
d6a4bcb5 13192if test "x$ac_cv_lib_socket_socket" = xyes; then :
fc6d9d51 13193 SOCKET_LIB=-lsocket
50e1e10f 13194fi
fc6d9d51 13195
93636bde 13196
b291c11f
DW
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13198$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13199if ${ac_cv_lib_magic_magic_file+:} false; then :
13200 $as_echo_n "(cached) " >&6
13201else
13202 ac_check_lib_save_LIBS=$LIBS
13203LIBS="-lmagic $LIBS"
13204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205/* end confdefs.h. */
13206
13207/* Override any GCC internal prototype to avoid an error.
13208 Use char because int might match the return type of a GCC
13209 builtin and then its argument prototype would still apply. */
13210#ifdef __cplusplus
13211extern "C"
13212#endif
13213char magic_file ();
13214int
13215main ()
13216{
13217return magic_file ();
13218 ;
13219 return 0;
13220}
13221_ACEOF
13222if ac_fn_c_try_link "$LINENO"; then :
13223 ac_cv_lib_magic_magic_file=yes
13224else
13225 ac_cv_lib_magic_magic_file=no
13226fi
13227rm -f core conftest.err conftest.$ac_objext \
13228 conftest$ac_exeext conftest.$ac_ext
13229LIBS=$ac_check_lib_save_LIBS
13230fi
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13232$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13233if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13234 MAGIC_LIB=-lmagic
13235for ac_header in magic.h
13236do :
13237 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13238if test "x$ac_cv_header_magic_h" = xyes; then :
13239 cat >>confdefs.h <<_ACEOF
13240#define HAVE_MAGIC_H 1
13241_ACEOF
13242
13243fi
13244
13245done
13246
13247fi
13248
32179ce2 13249if test "$ac_cv_func_dlopen" = yes ; then
d2e3c0dc
TT
13250 MAGIC_LIB=$DLOPEN_LIB
13251fi
b291c11f 13252
c94da047
TT
13253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13254$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13255if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13256 $as_echo_n "(cached) " >&6
13257else
13258 ac_check_lib_save_LIBS=$LIBS
13259LIBS="-lrt $LIBS"
13260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261/* end confdefs.h. */
13262
13263/* Override any GCC internal prototype to avoid an error.
13264 Use char because int might match the return type of a GCC
13265 builtin and then its argument prototype would still apply. */
13266#ifdef __cplusplus
13267extern "C"
13268#endif
13269char clock_gettime ();
13270int
13271main ()
13272{
13273return clock_gettime ();
13274 ;
13275 return 0;
13276}
13277_ACEOF
13278if ac_fn_c_try_link "$LINENO"; then :
13279 ac_cv_lib_rt_clock_gettime=yes
13280else
13281 ac_cv_lib_rt_clock_gettime=no
13282fi
13283rm -f core conftest.err conftest.$ac_objext \
13284 conftest$ac_exeext conftest.$ac_ext
13285LIBS=$ac_check_lib_save_LIBS
13286fi
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13288$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13289if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13290 CLOCK_GETTIME_LIB=-lrt
13291fi
13292
13293
81cbf1ef
DW
13294FUSE_CMT=
13295FUSE_LIB=
13296# Check whether --enable-fuse2fs was given.
13297if test "${enable_fuse2fs+set}" = set; then :
13298 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13299then
13300 FUSE_CMT="#"
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13302$as_echo "Disabling fuse2fs" >&6; }
13303else
13304 for ac_header in pthread.h fuse.h
13305do :
13306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13307ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13308#define FUSE_USE_VERSION 29
13309"
13310if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13311 cat >>confdefs.h <<_ACEOF
13312#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13313_ACEOF
13314
13315else
13316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13318as_fn_error $? "Cannot find fuse2fs headers.
13319See \`config.log' for more details" "$LINENO" 5; }
13320fi
13321
13322done
13323
13324
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326/* end confdefs.h. */
13327#define FUSE_USE_VERSION 29
13328#ifdef __linux__
13329#include <linux/fs.h>
13330#include <linux/falloc.h>
13331#include <linux/xattr.h>
13332#endif
13333
13334int
13335main ()
13336{
13337
13338 ;
13339 return 0;
13340}
13341_ACEOF
13342if ac_fn_c_try_cpp "$LINENO"; then :
13343
13344else
13345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13347as_fn_error $? "Cannot find fuse2fs Linux headers.
13348See \`config.log' for more details" "$LINENO" 5; }
13349fi
13350rm -f conftest.err conftest.i conftest.$ac_ext
13351
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13353$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13354if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356else
13357 ac_check_lib_save_LIBS=$LIBS
13358LIBS="-losxfuse $LIBS"
13359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360/* end confdefs.h. */
13361
13362/* Override any GCC internal prototype to avoid an error.
13363 Use char because int might match the return type of a GCC
13364 builtin and then its argument prototype would still apply. */
13365#ifdef __cplusplus
13366extern "C"
13367#endif
13368char fuse_main ();
13369int
13370main ()
13371{
13372return fuse_main ();
13373 ;
13374 return 0;
13375}
13376_ACEOF
13377if ac_fn_c_try_link "$LINENO"; then :
13378 ac_cv_lib_osxfuse_fuse_main=yes
13379else
13380 ac_cv_lib_osxfuse_fuse_main=no
13381fi
13382rm -f core conftest.err conftest.$ac_objext \
13383 conftest$ac_exeext conftest.$ac_ext
13384LIBS=$ac_check_lib_save_LIBS
13385fi
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13387$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13388if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13389 FUSE_LIB=-losxfuse
13390else
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13392$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13393if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13394 $as_echo_n "(cached) " >&6
13395else
13396 ac_check_lib_save_LIBS=$LIBS
13397LIBS="-lfuse $LIBS"
13398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399/* end confdefs.h. */
13400
13401/* Override any GCC internal prototype to avoid an error.
13402 Use char because int might match the return type of a GCC
13403 builtin and then its argument prototype would still apply. */
13404#ifdef __cplusplus
13405extern "C"
13406#endif
13407char fuse_main ();
13408int
13409main ()
13410{
13411return fuse_main ();
13412 ;
13413 return 0;
13414}
13415_ACEOF
13416if ac_fn_c_try_link "$LINENO"; then :
13417 ac_cv_lib_fuse_fuse_main=yes
13418else
13419 ac_cv_lib_fuse_fuse_main=no
13420fi
13421rm -f core conftest.err conftest.$ac_objext \
13422 conftest$ac_exeext conftest.$ac_ext
13423LIBS=$ac_check_lib_save_LIBS
13424fi
13425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13426$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13427if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13428 FUSE_LIB=-lfuse
13429else
13430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13432as_fn_error $? "Cannot find fuse library.
13433See \`config.log' for more details" "$LINENO" 5; }
13434fi
13435
13436fi
13437
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13439$as_echo "Enabling fuse2fs" >&6; }
13440fi
13441
13442else
13443 for ac_header in pthread.h fuse.h
13444do :
13445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13446ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13447#define FUSE_USE_VERSION 29
13448#ifdef __linux__
13449# include <linux/fs.h>
13450# include <linux/falloc.h>
13451# include <linux/xattr.h>
13452#endif
13453"
13454if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13455 cat >>confdefs.h <<_ACEOF
13456#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13457_ACEOF
13458
13459else
13460 FUSE_CMT="#"
13461fi
13462
13463done
13464
13465if test -z "$FUSE_CMT"
13466then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13468$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13469if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13470 $as_echo_n "(cached) " >&6
13471else
13472 ac_check_lib_save_LIBS=$LIBS
13473LIBS="-losxfuse $LIBS"
13474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475/* end confdefs.h. */
13476
13477/* Override any GCC internal prototype to avoid an error.
13478 Use char because int might match the return type of a GCC
13479 builtin and then its argument prototype would still apply. */
13480#ifdef __cplusplus
13481extern "C"
13482#endif
13483char fuse_main ();
13484int
13485main ()
13486{
13487return fuse_main ();
13488 ;
13489 return 0;
13490}
13491_ACEOF
13492if ac_fn_c_try_link "$LINENO"; then :
13493 ac_cv_lib_osxfuse_fuse_main=yes
13494else
13495 ac_cv_lib_osxfuse_fuse_main=no
13496fi
13497rm -f core conftest.err conftest.$ac_objext \
13498 conftest$ac_exeext conftest.$ac_ext
13499LIBS=$ac_check_lib_save_LIBS
13500fi
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13502$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13503if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13504 FUSE_LIB=-losxfuse
13505else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13507$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13508if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510else
13511 ac_check_lib_save_LIBS=$LIBS
13512LIBS="-lfuse $LIBS"
13513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514/* end confdefs.h. */
13515
13516/* Override any GCC internal prototype to avoid an error.
13517 Use char because int might match the return type of a GCC
13518 builtin and then its argument prototype would still apply. */
13519#ifdef __cplusplus
13520extern "C"
13521#endif
13522char fuse_main ();
13523int
13524main ()
13525{
13526return fuse_main ();
13527 ;
13528 return 0;
13529}
13530_ACEOF
13531if ac_fn_c_try_link "$LINENO"; then :
13532 ac_cv_lib_fuse_fuse_main=yes
13533else
13534 ac_cv_lib_fuse_fuse_main=no
13535fi
13536rm -f core conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
13538LIBS=$ac_check_lib_save_LIBS
13539fi
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13541$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13542if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13543 FUSE_LIB=-lfuse
13544else
13545 FUSE_CMT="#"
13546fi
13547
13548fi
13549
13550fi
13551if test -z "$FUSE_CMT"
13552then
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13554$as_echo "Enabling fuse2fs by default." >&6; }
13555fi
13556
13557fi
13558
13559
13560
57aa50d4 13561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
39fd3d4f 13562$as_echo_n "checking for optreset... " >&6; }
d6a4bcb5 13563if ${ac_cv_have_optreset+:} false; then :
39fd3d4f 13564 $as_echo_n "(cached) " >&6
d7f45af8 13565else
57aa50d4 13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8 13567/* end confdefs.h. */
57aa50d4
TT
13568#include <unistd.h>
13569
13570_ACEOF
13571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13572 $EGREP "optreset" >/dev/null 2>&1; then :
13573 ac_cv_have_optreset=yes
d7f45af8 13574else
57aa50d4
TT
13575 ac_cv_have_optreset=no
13576fi
13577rm -f conftest*
d7f45af8 13578
d7f45af8 13579fi
57aa50d4
TT
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13581$as_echo "$ac_cv_have_optreset" >&6; }
13582if test $ac_cv_have_optreset = yes; then
d1154eb4
TT
13583
13584$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
d7f45af8 13585
d7f45af8 13586fi
d1154eb4 13587
57aa50d4 13588SEM_INIT_LIB=''
cfb8e0bd
TT
13589echo GL_THREADS_API: ${gl_threads_api}
13590if test "${gl_threads_api}" != none
13591then
13592 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
d6a4bcb5 13593if test "x$ac_cv_func_sem_init" = xyes; then :
57aa50d4 13594
d7f45af8 13595else
57aa50d4 13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
39fd3d4f 13597$as_echo_n "checking for sem_init in -lpthread... " >&6; }
d6a4bcb5 13598if ${ac_cv_lib_pthread_sem_init+:} false; then :
39fd3d4f 13599 $as_echo_n "(cached) " >&6
d7f45af8
TT
13600else
13601 ac_check_lib_save_LIBS=$LIBS
13602LIBS="-lpthread $LIBS"
57aa50d4 13603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13604/* end confdefs.h. */
13605
13606/* Override any GCC internal prototype to avoid an error.
13607 Use char because int might match the return type of a GCC
13608 builtin and then its argument prototype would still apply. */
13609#ifdef __cplusplus
13610extern "C"
13611#endif
13612char sem_init ();
13613int
13614main ()
13615{
13616return sem_init ();
13617 ;
13618 return 0;
13619}
13620_ACEOF
57aa50d4 13621if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13622 ac_cv_lib_pthread_sem_init=yes
13623else
57aa50d4 13624 ac_cv_lib_pthread_sem_init=no
d7f45af8 13625fi
57aa50d4
TT
13626rm -f core conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13628LIBS=$ac_check_lib_save_LIBS
13629fi
57aa50d4 13630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
39fd3d4f 13631$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
d6a4bcb5 13632if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
57aa50d4 13633 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13634
13635 SEM_INIT_LIB=-lpthread
13636else
57aa50d4 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
39fd3d4f 13638$as_echo_n "checking for sem_init in -lrt... " >&6; }
d6a4bcb5 13639if ${ac_cv_lib_rt_sem_init+:} false; then :
39fd3d4f 13640 $as_echo_n "(cached) " >&6
d7f45af8
TT
13641else
13642 ac_check_lib_save_LIBS=$LIBS
13643LIBS="-lrt $LIBS"
57aa50d4 13644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13645/* end confdefs.h. */
13646
13647/* Override any GCC internal prototype to avoid an error.
13648 Use char because int might match the return type of a GCC
13649 builtin and then its argument prototype would still apply. */
13650#ifdef __cplusplus
13651extern "C"
13652#endif
13653char sem_init ();
13654int
13655main ()
13656{
13657return sem_init ();
13658 ;
13659 return 0;
13660}
13661_ACEOF
57aa50d4 13662if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13663 ac_cv_lib_rt_sem_init=yes
13664else
57aa50d4 13665 ac_cv_lib_rt_sem_init=no
d7f45af8 13666fi
57aa50d4
TT
13667rm -f core conftest.err conftest.$ac_objext \
13668 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13669LIBS=$ac_check_lib_save_LIBS
13670fi
57aa50d4 13671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
39fd3d4f 13672$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
d6a4bcb5 13673if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
57aa50d4 13674 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13675
13676 SEM_INIT_LIB=-lrt
13677else
57aa50d4 13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
39fd3d4f 13679$as_echo_n "checking for sem_init in -lposix4... " >&6; }
d6a4bcb5 13680if ${ac_cv_lib_posix4_sem_init+:} false; then :
39fd3d4f 13681 $as_echo_n "(cached) " >&6
d7f45af8
TT
13682else
13683 ac_check_lib_save_LIBS=$LIBS
13684LIBS="-lposix4 $LIBS"
57aa50d4 13685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13686/* end confdefs.h. */
13687
13688/* Override any GCC internal prototype to avoid an error.
13689 Use char because int might match the return type of a GCC
13690 builtin and then its argument prototype would still apply. */
13691#ifdef __cplusplus
13692extern "C"
13693#endif
13694char sem_init ();
13695int
13696main ()
13697{
13698return sem_init ();
13699 ;
13700 return 0;
13701}
13702_ACEOF
57aa50d4 13703if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13704 ac_cv_lib_posix4_sem_init=yes
13705else
57aa50d4 13706 ac_cv_lib_posix4_sem_init=no
d7f45af8 13707fi
57aa50d4
TT
13708rm -f core conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13710LIBS=$ac_check_lib_save_LIBS
13711fi
57aa50d4 13712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
39fd3d4f 13713$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
d6a4bcb5 13714if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
57aa50d4 13715 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13716
13717 SEM_INIT_LIB=-lposix4
13718fi
13719
13720fi
13721
13722fi
13723
cfb8e0bd 13724fi
d7f45af8
TT
13725fi
13726
57aa50d4 13727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
39fd3d4f 13728$as_echo_n "checking for unified diff option... " >&6; }
27f991b0 13729if diff -u $0 $0 > /dev/null 2>&1 ; then
e54635de
TT
13730 UNI_DIFF_OPTS=-u
13731else
13732 UNI_DIFF_OPTS=-c
13733fi
57aa50d4 13734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
39fd3d4f 13735$as_echo "$UNI_DIFF_OPTS" >&6; }
e54635de 13736
8f3f29d3
TT
13737case "$host_os" in
13738linux*)
d1154eb4
TT
13739
13740$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
50e1e10f 13741
8f3f29d3
TT
13742 ;;
13743esac
4aece328
DW
13744# Check whether --enable-lto was given.
13745if test "${enable_lto+set}" = set; then :
13746 enableval=$enable_lto;
13747else
13748 enable_lto=probe
13749fi
13750
13751if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13753$as_echo_n "checking if C compiler supports LTO... " >&6; }
13754 OLD_CFLAGS="$CFLAGS"
13755 OLD_LDFLAGS="$LDFLAGS"
13756 LTO_FLAGS="-flto -ffat-lto-objects"
13757 CFLAGS="$CFLAGS $LTO_FLAGS"
13758 LDFLAGS="$LDFLAGS $LTO_FLAGS"
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760/* end confdefs.h. */
13761
13762int
13763main ()
13764{
13765
13766 ;
13767 return 0;
13768}
13769_ACEOF
13770if ac_fn_c_try_link "$LINENO"; then :
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13772$as_echo "yes" >&6; }
13773 lto_cflags=$LTO_FLAGS
13774 lto_ldflags=$LTO_FLAGS
13775 # Extract the first word of "gcc-ar", so it can be a program name with args.
13776set dummy gcc-ar; ac_word=$2
13777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13778$as_echo_n "checking for $ac_word... " >&6; }
13779if ${ac_cv_path_gcc_ar+:} false; then :
13780 $as_echo_n "(cached) " >&6
13781else
13782 case $gcc_ar in
13783 [\\/]* | ?:[\\/]*)
13784 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13785 ;;
13786 *)
13787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13788for as_dir in $PATH
13789do
13790 IFS=$as_save_IFS
13791 test -z "$as_dir" && as_dir=.
13792 for ac_exec_ext in '' $ac_executable_extensions; do
13793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13794 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13796 break 2
13797 fi
13798done
13799 done
13800IFS=$as_save_IFS
13801
13802 ;;
13803esac
13804fi
13805gcc_ar=$ac_cv_path_gcc_ar
13806if test -n "$gcc_ar"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13808$as_echo "$gcc_ar" >&6; }
13809else
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811$as_echo "no" >&6; }
13812fi
13813
13814
13815 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13816set dummy gcc-ranlib; ac_word=$2
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13818$as_echo_n "checking for $ac_word... " >&6; }
13819if ${ac_cv_path_gcc_ranlib+:} false; then :
13820 $as_echo_n "(cached) " >&6
13821else
13822 case $gcc_ranlib in
13823 [\\/]* | ?:[\\/]*)
13824 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
13825 ;;
13826 *)
13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828for as_dir in $PATH
13829do
13830 IFS=$as_save_IFS
13831 test -z "$as_dir" && as_dir=.
13832 for ac_exec_ext in '' $ac_executable_extensions; do
13833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13834 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
13835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13836 break 2
13837 fi
13838done
13839 done
13840IFS=$as_save_IFS
13841
13842 ;;
13843esac
13844fi
13845gcc_ranlib=$ac_cv_path_gcc_ranlib
13846if test -n "$gcc_ranlib"; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
13848$as_echo "$gcc_ranlib" >&6; }
13849else
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851$as_echo "no" >&6; }
13852fi
13853
13854
13855else
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13857$as_echo "no" >&6; }
13858fi
13859rm -f core conftest.err conftest.$ac_objext \
13860 conftest$ac_exeext conftest.$ac_ext
13861 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
13862 have_lto=yes
13863 AR="${gcc_ar}"
13864 RANLIB="${gcc_ranlib}"
13865 fi
13866 CFLAGS="${OLD_CFLAGS}"
13867 LDFLAGS="${OLD_LDFLAGS}"
13868
13869
13870
13871fi
13872if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
13873 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
13874fi
1c2a76ae
DW
13875# Check whether --enable-ubsan was given.
13876if test "${enable_ubsan+set}" = set; then :
13877 enableval=$enable_ubsan;
13878else
13879 enable_ubsan=no
13880fi
13881
13882if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
13884$as_echo_n "checking if C compiler supports UBSAN... " >&6; }
13885 OLD_CFLAGS="$CFLAGS"
13886 OLD_LDFLAGS="$LDFLAGS"
13887 UBSAN_FLAGS="-fsanitize=undefined"
13888 CFLAGS="$CFLAGS $UBSAN_FLAGS"
13889 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891/* end confdefs.h. */
13892
13893int
13894main ()
13895{
13896
13897 ;
13898 return 0;
13899}
13900_ACEOF
13901if ac_fn_c_try_link "$LINENO"; then :
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13903$as_echo "yes" >&6; }
13904 ubsan_cflags=$UBSAN_FLAGS
13905 ubsan_ldflags=$UBSAN_FLAGS
13906 have_ubsan=yes
13907else
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909$as_echo "no" >&6; }
13910fi
13911rm -f core conftest.err conftest.$ac_objext \
13912 conftest$ac_exeext conftest.$ac_ext
13913 CFLAGS="${OLD_CFLAGS}"
13914 LDFLAGS="${OLD_LDFLAGS}"
13915
13916
13917
13918fi
13919if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
13920 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
13921fi
e6f2bda3 13922LINUX_CMT="#"
fff45483
TT
13923CYGWIN_CMT="#"
13924UNIX_CMT=
e6f2bda3
TT
13925case "$host_os" in
13926linux*)
13927 LINUX_CMT=
fff45483
TT
13928 ;;
13929cygwin)
13930 CYGWIN_CMT=
13931 UNIX_CMT="#"
e6f2bda3
TT
13932 ;;
13933esac
13934
93636bde
TT
13935
13936
5ce368f0
DW
13937E2SCRUB_CMT="$LINUX_CMT"
13938
50e1e10f 13939case "$host_os" in
93636bde 13940linux* | gnu* | k*bsd*-gnu)
a4b2d3ce
TT
13941 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13942 root_prefix="";
57aa50d4 13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
39fd3d4f 13944$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
fc6d9d51
TT
13945 fi
13946 ;;
13947esac
fc6d9d51 13948case "$host_os" in
93636bde 13949linux* | gnu* | k*bsd*-gnu)
fc6d9d51 13950 if test "$prefix" = NONE ; then
a4b2d3ce 13951 prefix="/usr";
57aa50d4 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
39fd3d4f 13953$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
bff61a7a 13954 if test "$mandir" = '${prefix}/man' ; then
57aa50d4 13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
39fd3d4f 13956$as_echo "...and mandir defaults to /usr/share/man" >&6; }
bff61a7a
TT
13957 mandir=/usr/share/man
13958 fi
50e1e10f
TT
13959 fi
13960;;
13961esac
a4b2d3ce 13962if test "$root_prefix" = NONE ; then
ffe1991f 13963 if test "$prefix" = NONE ; then
a4b2d3ce
TT
13964 root_prefix="$ac_default_prefix"
13965 else
13966 root_prefix="$prefix"
13967 fi
b5ffeade
TT
13968 root_bindir=$bindir
13969 root_sbindir=$sbindir
13970 root_libdir=$libdir
13971 root_sysconfdir=$sysconfdir
13972else
13973 root_bindir='${root_prefix}/bin'
13974 root_sbindir='${root_prefix}/sbin'
13975 root_libdir='${root_prefix}/lib'
13976 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce 13977fi
c4ef11c5
TT
13978if test "$bindir" != '${exec_prefix}/bin'; then
13979 root_bindir=$bindir
57aa50d4 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
39fd3d4f 13981$as_echo "Setting root_bindir to $root_bindir" >&6; }
c4ef11c5
TT
13982fi
13983if test "$sbindir" != '${exec_prefix}/sbin'; then
13984 root_sbindir=$sbindir
57aa50d4 13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
39fd3d4f 13986$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
c4ef11c5
TT
13987fi
13988if test "$libdir" != '${exec_prefix}/lib'; then
13989 root_libdir=$libdir
57aa50d4 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
39fd3d4f 13991$as_echo "Setting root_libdir to $root_libdir" >&6; }
c4ef11c5
TT
13992fi
13993if test "$sysconfdir" != '${prefix}/etc'; then
13994 root_sysconfdir=$sysconfdir
57aa50d4 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
39fd3d4f 13996$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
c4ef11c5 13997fi
a4b2d3ce 13998
93636bde
TT
13999
14000
14001
14002
55e00a25
TT
14003
14004# Check whether --with-multiarch was given.
14005if test "${with_multiarch+set}" = set; then :
d7fa4103
TT
14006 withval=$with_multiarch; if test "$withval" = "lib64"; then
14007 libdir=/usr/lib64
14008 root_libdir=/lib64
14009else
14010 libdir=$libdir/$withval
14011 root_libdir=$root_libdir/$withval
14012fi
55e00a25
TT
14013
14014fi
a2df5894 14015
d3de1a71
TT
14016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14017$as_echo_n "checking whether we can link with -static... " >&6; }
d6a4bcb5 14018if ${ac_cv_e2fsprogs_use_static+:} false; then :
39fd3d4f 14019 $as_echo_n "(cached) " >&6
ae851482 14020else
fd1677e8 14021 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
57aa50d4 14022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 14023/* end confdefs.h. */
ae851482 14024#include <stdio.h>
b0cacab0
TT
14025int
14026main ()
14027{
ae851482 14028fflush(stdout);
b0cacab0
TT
14029 ;
14030 return 0;
14031}
14032_ACEOF
57aa50d4 14033if ac_fn_c_try_link "$LINENO"; then :
ae851482
TT
14034 ac_cv_e2fsprogs_use_static=yes
14035else
57aa50d4 14036 ac_cv_e2fsprogs_use_static=no
ae851482 14037fi
57aa50d4
TT
14038rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
ae851482
TT
14040LDFLAGS=$SAVE_LDFLAGS
14041fi
50e1e10f 14042
defde784
TT
14043case "$host_os" in
14044solaris2.*)
b0cacab0 14045 ac_cv_e2fsprogs_use_static=no
defde784
TT
14046;;
14047esac
57aa50d4 14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
39fd3d4f 14049$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
ae851482 14050if test $ac_cv_e2fsprogs_use_static = yes; then
fd1677e8 14051 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
ae851482 14052fi
50e1e10f 14053
07a0db15
TT
14054case "$host_os" in
14055darwin*)
57aa50d4 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
39fd3d4f 14057$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
d1154eb4
TT
14058
14059$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
07a0db15
TT
14060
14061 ;;
14062esac
50e1e10f
TT
14063if test "$cross_compiling" = yes ; then
14064 DO_TEST_SUITE=
14065else
14066 DO_TEST_SUITE=check
14067fi
14068
d1154eb4
TT
14069INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14070if test -n "$CPPFLAGS" ; then
14071 INCLUDES="$INCLUDES $CPPFLAGS"
14072fi
c6f35b8a 14073if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
d1154eb4 14074 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
c6f35b8a 14075fi
6c59a665
TT
14076if test -n "$WITH_DIET_LIBC" ; then
14077 INCLUDES="$INCLUDES -D_REENTRANT"
14078fi
c6f35b8a 14079
5b5bd2c2
TT
14080
14081 MKINSTALLDIRS=
14082 if test -n "$ac_aux_dir"; then
14083 case "$ac_aux_dir" in
14084 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
14085 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
14086 esac
14087 fi
14088 if test -z "$MKINSTALLDIRS"; then
14089 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14090 fi
14091
14092
dd947da2 14093if test $cross_compiling = no; then
2873927d 14094 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
dd947da2 14095 BUILD_LDFLAGS="$LDFLAGS"
dd947da2
TT
14096fi
14097
14098
fd1677e8
TT
14099CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14100CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14101LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14102
14103
14104
5ce368f0
DW
14105
14106
14107# Check whether --with-udev_rules_dir was given.
14108if test "${with_udev_rules_dir+set}" = set; then :
14109 withval=$with_udev_rules_dir;
14110else
14111 with_udev_rules_dir=yes
14112fi
14113
14114if test "x${with_udev_rules_dir}" != "xno"; then :
14115
14116 if test "x${with_udev_rules_dir}" = "xyes"; then :
14117
14118
14119pkg_failed=no
14120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14121$as_echo_n "checking for udev... " >&6; }
14122
14123if test -n "$udev_CFLAGS"; then
14124 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14125 elif test -n "$PKG_CONFIG"; then
14126 if test -n "$PKG_CONFIG" && \
14127 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14128 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14129 ac_status=$?
14130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14131 test $ac_status = 0; }; then
14132 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14133 test "x$?" != "x0" && pkg_failed=yes
14134else
14135 pkg_failed=yes
14136fi
14137 else
14138 pkg_failed=untried
14139fi
14140if test -n "$udev_LIBS"; then
14141 pkg_cv_udev_LIBS="$udev_LIBS"
14142 elif test -n "$PKG_CONFIG"; then
14143 if test -n "$PKG_CONFIG" && \
14144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14145 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14146 ac_status=$?
14147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14148 test $ac_status = 0; }; then
14149 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14150 test "x$?" != "x0" && pkg_failed=yes
14151else
14152 pkg_failed=yes
14153fi
14154 else
14155 pkg_failed=untried
14156fi
14157
14158
14159
14160if test $pkg_failed = yes; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14162$as_echo "no" >&6; }
14163
14164if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14165 _pkg_short_errors_supported=yes
14166else
14167 _pkg_short_errors_supported=no
14168fi
14169 if test $_pkg_short_errors_supported = yes; then
14170 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14171 else
14172 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14173 fi
14174 # Put the nasty error message in config.log where it belongs
14175 echo "$udev_PKG_ERRORS" >&5
14176
14177
14178 with_udev_rules_dir=""
14179
14180elif test $pkg_failed = untried; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14182$as_echo "no" >&6; }
14183
14184 with_udev_rules_dir=""
14185
14186else
14187 udev_CFLAGS=$pkg_cv_udev_CFLAGS
14188 udev_LIBS=$pkg_cv_udev_LIBS
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14190$as_echo "yes" >&6; }
14191
14192 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14193
14194fi
14195
14196fi
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14198$as_echo_n "checking for udev rules dir... " >&6; }
14199 pkg_udev_rules_dir="${with_udev_rules_dir}"
14200 if test -n "${pkg_udev_rules_dir}"; then :
14201
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14203$as_echo "${pkg_udev_rules_dir}" >&6; }
14204 have_udev="yes"
14205
14206else
14207
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209$as_echo "no" >&6; }
14210 have_udev="no"
14211
14212fi
14213
14214else
14215
14216 have_udev="disabled"
14217
14218fi
14219
14220
14221
a2df5894
DW
14222
14223# Check whether --with-crond_dir was given.
14224if test "${with_crond_dir+set}" = set; then :
14225 withval=$with_crond_dir;
14226else
14227 with_crond_dir=yes
14228fi
14229
14230if test "x${with_crond_dir}" != "xno"; then :
14231
14232 if test "x${with_crond_dir}" = "xyes"; then :
14233
14234 if test -d "/etc/cron.d"; then :
14235 with_crond_dir="/etc/cron.d"
14236fi
14237
14238fi
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14240$as_echo_n "checking for system crontab dir... " >&6; }
14241 crond_dir="${with_crond_dir}"
14242 if test -n "${crond_dir}"; then :
14243
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14245$as_echo "${crond_dir}" >&6; }
14246 have_crond="yes"
14247
14248else
14249
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14251$as_echo "no" >&6; }
14252 have_crond="no"
14253
14254fi
14255
14256else
14257
14258 have_crond="disabled"
14259
14260fi
14261
14262
14263
14264
14265# Check whether --with-systemd_unit_dir was given.
14266if test "${with_systemd_unit_dir+set}" = set; then :
14267 withval=$with_systemd_unit_dir;
14268else
14269 with_systemd_unit_dir=yes
14270fi
14271
14272if test "x${with_systemd_unit_dir}" != "xno"; then :
14273
14274 if test "x${with_systemd_unit_dir}" = "xyes"; then :
14275
14276
14277pkg_failed=no
14278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14279$as_echo_n "checking for systemd... " >&6; }
14280
14281if test -n "$systemd_CFLAGS"; then
14282 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14283 elif test -n "$PKG_CONFIG"; then
14284 if test -n "$PKG_CONFIG" && \
14285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14286 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14287 ac_status=$?
14288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14289 test $ac_status = 0; }; then
14290 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14291 test "x$?" != "x0" && pkg_failed=yes
14292else
14293 pkg_failed=yes
14294fi
14295 else
14296 pkg_failed=untried
14297fi
14298if test -n "$systemd_LIBS"; then
14299 pkg_cv_systemd_LIBS="$systemd_LIBS"
14300 elif test -n "$PKG_CONFIG"; then
14301 if test -n "$PKG_CONFIG" && \
14302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14303 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14304 ac_status=$?
14305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14306 test $ac_status = 0; }; then
14307 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14308 test "x$?" != "x0" && pkg_failed=yes
14309else
14310 pkg_failed=yes
14311fi
14312 else
14313 pkg_failed=untried
14314fi
14315
14316
14317
14318if test $pkg_failed = yes; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320$as_echo "no" >&6; }
14321
14322if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14323 _pkg_short_errors_supported=yes
14324else
14325 _pkg_short_errors_supported=no
14326fi
14327 if test $_pkg_short_errors_supported = yes; then
14328 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14329 else
14330 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14331 fi
14332 # Put the nasty error message in config.log where it belongs
14333 echo "$systemd_PKG_ERRORS" >&5
14334
14335
14336 with_systemd_unit_dir=""
14337
14338elif test $pkg_failed = untried; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340$as_echo "no" >&6; }
14341
14342 with_systemd_unit_dir=""
14343
14344else
14345 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14346 systemd_LIBS=$pkg_cv_systemd_LIBS
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14348$as_echo "yes" >&6; }
14349
14350 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14351
14352fi
14353
14354
14355fi
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14357$as_echo_n "checking for systemd system unit dir... " >&6; }
14358 systemd_system_unit_dir="${with_systemd_unit_dir}"
14359 if test -n "${systemd_system_unit_dir}"; then :
14360
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14362$as_echo "${systemd_system_unit_dir}" >&6; }
14363 have_systemd="yes"
14364
14365else
14366
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368$as_echo "no" >&6; }
14369 have_systemd="no"
14370
14371fi
14372
14373else
14374
14375 have_systemd="disabled"
14376
14377fi
14378
14379
14380
50e1e10f
TT
14381test -d lib || mkdir lib
14382test -d include || mkdir include
14383test -d include/linux || mkdir include/linux
defde784 14384test -d include/asm || mkdir include/asm
44dfb378
TT
14385if test -z "$UUID_CMT" ; then
14386 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14387 lib/uuid/uuid_types.h"
14388fi
14389if test -z "$BLKID_CMT" ; then
14390 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14391 lib/blkid/blkid_types.h"
14392fi
bff0cc95 14393for i in MCONFIG Makefile e2fsprogs.spec \
183c73b0 14394 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
4ea7ea00
TT
14395 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14396 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
f34af41b 14397 $uuid_out_list $blkid_out_list lib/support/Makefile \
44dfb378 14398 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
921f4ad5 14399 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
94ba8c75 14400 debugfs/Makefile tests/Makefile tests/progs/Makefile \
98a5ad61 14401 resize/Makefile doc/Makefile intl/Makefile \
5ce368f0 14402 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
94ba8c75
TT
14403 if test -d `dirname ${srcdir}/$i` ; then
14404 outlist="$outlist $i"
14405 fi
14406done
e1052144
TT
14407ac_config_files="$ac_config_files $outlist"
14408
b0cacab0 14409cat >confcache <<\_ACEOF
50e1e10f
TT
14410# This file is a shell script that caches the results of configure
14411# tests run on this system so they can be shared between configure
b0cacab0
TT
14412# scripts and configure runs, see configure's option --config-cache.
14413# It is not useful on other systems. If it contains results you don't
14414# want to keep, you may remove or edit it.
50e1e10f 14415#
b0cacab0
TT
14416# config.status only pays attention to the cache file if you give it
14417# the --recheck option to rerun configure.
50e1e10f 14418#
b0cacab0
TT
14419# `ac_cv_env_foo' variables (set or unset) will be overridden when
14420# loading this file, other *unset* `ac_cv_foo' will be assigned the
14421# following values.
14422
14423_ACEOF
14424
21c84b71
TT
14425# The following way of writing the cache mishandles newlines in values,
14426# but we know of no workaround that is simple, portable, and efficient.
e1052144 14427# So, we kill variables containing newlines.
50e1e10f
TT
14428# Ultrix sh set writes to stderr and can't be redirected directly,
14429# and sets the high bit in the cache file unless we assign to the vars.
e1052144
TT
14430(
14431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14432 eval ac_val=\$$ac_var
14433 case $ac_val in #(
14434 *${as_nl}*)
14435 case $ac_var in #(
57aa50d4 14436 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39fd3d4f 14437$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
e1052144
TT
14438 esac
14439 case $ac_var in #(
14440 _ | IFS | as_nl) ;; #(
39fd3d4f 14441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
57aa50d4 14442 *) { eval $ac_var=; unset $ac_var;} ;;
e1052144
TT
14443 esac ;;
14444 esac
14445 done
14446
b0cacab0 14447 (set) 2>&1 |
e1052144
TT
14448 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14449 *${as_nl}ac_space=\ *)
57aa50d4
TT
14450 # `set' does not quote correctly, so add quotes: double-quote
14451 # substitution turns \\\\ into \\, and sed turns \\ into \.
b0cacab0
TT
14452 sed -n \
14453 "s/'/'\\\\''/g;
14454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e1052144 14455 ;; #(
b0cacab0
TT
14456 *)
14457 # `set' quotes correctly as required by POSIX, so do not add quotes.
e1052144 14458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b0cacab0 14459 ;;
e1052144
TT
14460 esac |
14461 sort
14462) |
b0cacab0 14463 sed '
e1052144 14464 /^ac_cv_env_/b end
b0cacab0 14465 t clear
e1052144 14466 :clear
b0cacab0
TT
14467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14468 t end
e1052144
TT
14469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14470 :end' >>confcache
14471if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14472 if test -w "$cache_file"; then
d6a4bcb5 14473 if test "x$cache_file" != "x/dev/null"; then
57aa50d4 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39fd3d4f 14475$as_echo "$as_me: updating cache $cache_file" >&6;}
d6a4bcb5
TB
14476 if test ! -f "$cache_file" || test -h "$cache_file"; then
14477 cat confcache >"$cache_file"
14478 else
14479 case $cache_file in #(
14480 */* | ?:*)
14481 mv -f confcache "$cache_file"$$ &&
14482 mv -f "$cache_file"$$ "$cache_file" ;; #(
14483 *)
14484 mv -f confcache "$cache_file" ;;
14485 esac
14486 fi
14487 fi
50e1e10f 14488 else
57aa50d4 14489 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39fd3d4f 14490$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50e1e10f
TT
14491 fi
14492fi
14493rm -f confcache
14494
50e1e10f
TT
14495test "x$prefix" = xNONE && prefix=$ac_default_prefix
14496# Let make expand exec_prefix.
14497test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14498
d1154eb4 14499DEFS=-DHAVE_CONFIG_H
b0cacab0
TT
14500
14501ac_libobjs=
14502ac_ltlibobjs=
d6a4bcb5 14503U=
b0cacab0
TT
14504for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14505 # 1. Remove the extension, and $U if already installed.
e1052144 14506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39fd3d4f 14507 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
e1052144
TT
14508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14509 # will be set to the directory where LIBOBJS objects are built.
57aa50d4
TT
14510 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14511 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b0cacab0
TT
14512done
14513LIBOBJS=$ac_libobjs
50e1e10f 14514
b0cacab0
TT
14515LTLIBOBJS=$ac_ltlibobjs
14516
14517
14518
39fd3d4f 14519
d6a4bcb5 14520: "${CONFIG_STATUS=./config.status}"
39fd3d4f 14521ac_write_fail=0
b0cacab0
TT
14522ac_clean_files_save=$ac_clean_files
14523ac_clean_files="$ac_clean_files $CONFIG_STATUS"
57aa50d4 14524{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39fd3d4f 14525$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
57aa50d4
TT
14526as_write_fail=0
14527cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b0cacab0
TT
14528#! $SHELL
14529# Generated by $as_me.
93636bde 14530# Run this file to recreate the current configuration.
93636bde 14531# Compiler output produced by configure, useful for debugging
b0cacab0 14532# configure, is in config.log if it exists.
07a0db15 14533
b0cacab0
TT
14534debug=false
14535ac_cs_recheck=false
14536ac_cs_silent=false
b0cacab0 14537
57aa50d4
TT
14538SHELL=\${CONFIG_SHELL-$SHELL}
14539export SHELL
14540_ASEOF
14541cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14542## -------------------- ##
14543## M4sh Initialization. ##
14544## -------------------- ##
b0cacab0 14545
29a5deed
TT
14546# Be more Bourne compatible
14547DUALCASE=1; export DUALCASE # for MKS sh
57aa50d4 14548if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b0cacab0
TT
14549 emulate sh
14550 NULLCMD=:
39fd3d4f 14551 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
14552 # is contrary to our usage. Disable this feature.
14553 alias -g '${1+"$@"}'='"$@"'
e1052144
TT
14554 setopt NO_GLOB_SUBST
14555else
57aa50d4
TT
14556 case `(set -o) 2>/dev/null` in #(
14557 *posix*) :
14558 set -o posix ;; #(
14559 *) :
14560 ;;
29a5deed 14561esac
b0cacab0 14562fi
29a5deed
TT
14563
14564
39fd3d4f
SJR
14565as_nl='
14566'
14567export as_nl
14568# Printing a long string crashes Solaris 7 /usr/bin/printf.
14569as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14570as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14571as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
57aa50d4
TT
14572# Prefer a ksh shell builtin over an external printf program on Solaris,
14573# but without wasting forks for bash or zsh.
14574if test -z "$BASH_VERSION$ZSH_VERSION" \
14575 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14576 as_echo='print -r --'
14577 as_echo_n='print -rn --'
14578elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39fd3d4f
SJR
14579 as_echo='printf %s\n'
14580 as_echo_n='printf %s'
14581else
14582 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14583 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14584 as_echo_n='/usr/ucb/echo -n'
e1052144 14585 else
39fd3d4f
SJR
14586 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14587 as_echo_n_body='eval
14588 arg=$1;
57aa50d4 14589 case $arg in #(
39fd3d4f
SJR
14590 *"$as_nl"*)
14591 expr "X$arg" : "X\\(.*\\)$as_nl";
14592 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14593 esac;
14594 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14595 '
14596 export as_echo_n_body
14597 as_echo_n='sh -c $as_echo_n_body as_echo'
e1052144 14598 fi
39fd3d4f
SJR
14599 export as_echo_body
14600 as_echo='sh -c $as_echo_body as_echo'
14601fi
14602
14603# The user is always right.
14604if test "${PATH_SEPARATOR+set}" != set; then
14605 PATH_SEPARATOR=:
14606 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14607 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14608 PATH_SEPARATOR=';'
14609 }
e1052144
TT
14610fi
14611
b0cacab0 14612
e1052144
TT
14613# IFS
14614# We need space, tab and new line, in precisely that order. Quoting is
14615# there to prevent editors from complaining about space-tab.
14616# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14617# splitting by setting IFS to empty value.)
e1052144
TT
14618IFS=" "" $as_nl"
14619
14620# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 14621as_myself=
57aa50d4 14622case $0 in #((
e1052144
TT
14623 *[\\/]* ) as_myself=$0 ;;
14624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625for as_dir in $PATH
14626do
14627 IFS=$as_save_IFS
14628 test -z "$as_dir" && as_dir=.
57aa50d4
TT
14629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14630 done
e1052144
TT
14631IFS=$as_save_IFS
14632
14633 ;;
14634esac
14635# We did not find ourselves, most probably we were run as `sh COMMAND'
14636# in which case we are not to be found in the path.
14637if test "x$as_myself" = x; then
14638 as_myself=$0
14639fi
14640if test ! -f "$as_myself"; then
39fd3d4f 14641 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 14642 exit 1
e1052144
TT
14643fi
14644
57aa50d4
TT
14645# Unset variables that we do not need and which cause bugs (e.g. in
14646# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14647# suppresses any "Segmentation fault" message there. '((' could
14648# trigger a bug in pdksh 5.2.14.
14649for as_var in BASH_ENV ENV MAIL MAILPATH
14650do eval test x\${$as_var+set} = xset \
14651 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
e1052144 14652done
b0cacab0
TT
14653PS1='$ '
14654PS2='> '
14655PS4='+ '
14656
14657# NLS nuisances.
39fd3d4f
SJR
14658LC_ALL=C
14659export LC_ALL
14660LANGUAGE=C
14661export LANGUAGE
b0cacab0 14662
57aa50d4
TT
14663# CDPATH.
14664(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14665
14666
d6a4bcb5
TB
14667# as_fn_error STATUS ERROR [LINENO LOG_FD]
14668# ----------------------------------------
57aa50d4
TT
14669# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14670# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d6a4bcb5 14671# script with STATUS, using 1 if that was 0.
57aa50d4
TT
14672as_fn_error ()
14673{
d6a4bcb5
TB
14674 as_status=$1; test $as_status -eq 0 && as_status=1
14675 if test "$4"; then
14676 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14677 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 14678 fi
d6a4bcb5 14679 $as_echo "$as_me: error: $2" >&2
57aa50d4
TT
14680 as_fn_exit $as_status
14681} # as_fn_error
14682
14683
14684# as_fn_set_status STATUS
14685# -----------------------
14686# Set $? to STATUS, without forking.
14687as_fn_set_status ()
14688{
14689 return $1
14690} # as_fn_set_status
14691
14692# as_fn_exit STATUS
14693# -----------------
14694# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14695as_fn_exit ()
14696{
14697 set +e
14698 as_fn_set_status $1
14699 exit $1
14700} # as_fn_exit
14701
14702# as_fn_unset VAR
14703# ---------------
14704# Portably unset VAR.
14705as_fn_unset ()
14706{
14707 { eval $1=; unset $1;}
14708}
14709as_unset=as_fn_unset
14710# as_fn_append VAR VALUE
14711# ----------------------
14712# Append the text in VALUE to the end of the definition contained in VAR. Take
14713# advantage of any shell optimizations that allow amortized linear growth over
14714# repeated appends, instead of the typical quadratic growth present in naive
14715# implementations.
14716if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14717 eval 'as_fn_append ()
14718 {
14719 eval $1+=\$2
14720 }'
14721else
14722 as_fn_append ()
14723 {
14724 eval $1=\$$1\$2
14725 }
14726fi # as_fn_append
14727
14728# as_fn_arith ARG...
14729# ------------------
14730# Perform arithmetic evaluation on the ARGs, and store the result in the
14731# global $as_val. Take advantage of shells that can avoid forks. The arguments
14732# must be portable across $(()) and expr.
14733if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14734 eval 'as_fn_arith ()
14735 {
14736 as_val=$(( $* ))
14737 }'
14738else
14739 as_fn_arith ()
14740 {
14741 as_val=`expr "$@" || test $? -eq 1`
14742 }
14743fi # as_fn_arith
14744
14745
e1052144
TT
14746if expr a : '\(a\)' >/dev/null 2>&1 &&
14747 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
14748 as_expr=expr
14749else
14750 as_expr=false
14751fi
14752
e1052144 14753if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
14754 as_basename=basename
14755else
14756 as_basename=false
14757fi
14758
57aa50d4
TT
14759if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14760 as_dirname=dirname
14761else
14762 as_dirname=false
14763fi
b0cacab0 14764
e1052144 14765as_me=`$as_basename -- "$0" ||
b0cacab0
TT
14766$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14767 X"$0" : 'X\(//\)$' \| \
e1052144 14768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 14769$as_echo X/"$0" |
e1052144
TT
14770 sed '/^.*\/\([^/][^/]*\)\/*$/{
14771 s//\1/
14772 q
14773 }
14774 /^X\/\(\/\/\)$/{
14775 s//\1/
14776 q
14777 }
14778 /^X\/\(\/\).*/{
14779 s//\1/
14780 q
14781 }
14782 s/.*/./; q'`
b0cacab0 14783
57aa50d4
TT
14784# Avoid depending upon Character Ranges.
14785as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14786as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14787as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14788as_cr_digits='0123456789'
14789as_cr_alnum=$as_cr_Letters$as_cr_digits
e1052144
TT
14790
14791ECHO_C= ECHO_N= ECHO_T=
57aa50d4 14792case `echo -n x` in #(((((
e1052144 14793-n*)
57aa50d4 14794 case `echo 'xy\c'` in
e1052144 14795 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
57aa50d4
TT
14796 xy) ECHO_C='\c';;
14797 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14798 ECHO_T=' ';;
e1052144
TT
14799 esac;;
14800*)
14801 ECHO_N='-n';;
b0cacab0 14802esac
b0cacab0
TT
14803
14804rm -f conf$$ conf$$.exe conf$$.file
e1052144
TT
14805if test -d conf$$.dir; then
14806 rm -f conf$$.dir/conf$$.file
14807else
14808 rm -f conf$$.dir
39fd3d4f
SJR
14809 mkdir conf$$.dir 2>/dev/null
14810fi
14811if (echo >conf$$.file) 2>/dev/null; then
14812 if ln -s conf$$.file conf$$ 2>/dev/null; then
14813 as_ln_s='ln -s'
14814 # ... but there are two gotchas:
14815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d6a4bcb5 14817 # In both cases, we have to default to `cp -pR'.
39fd3d4f 14818 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 14819 as_ln_s='cp -pR'
39fd3d4f
SJR
14820 elif ln conf$$.file conf$$ 2>/dev/null; then
14821 as_ln_s=ln
14822 else
d6a4bcb5 14823 as_ln_s='cp -pR'
39fd3d4f 14824 fi
b0cacab0 14825else
d6a4bcb5 14826 as_ln_s='cp -pR'
b0cacab0 14827fi
e1052144
TT
14828rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14829rmdir conf$$.dir 2>/dev/null
b0cacab0 14830
57aa50d4
TT
14831
14832# as_fn_mkdir_p
14833# -------------
14834# Create "$as_dir" as a directory, including parents if necessary.
14835as_fn_mkdir_p ()
14836{
14837
14838 case $as_dir in #(
14839 -*) as_dir=./$as_dir;;
14840 esac
14841 test -d "$as_dir" || eval $as_mkdir_p || {
14842 as_dirs=
14843 while :; do
14844 case $as_dir in #(
14845 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14846 *) as_qdir=$as_dir;;
14847 esac
14848 as_dirs="'$as_qdir' $as_dirs"
14849 as_dir=`$as_dirname -- "$as_dir" ||
14850$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14851 X"$as_dir" : 'X\(//\)[^/]' \| \
14852 X"$as_dir" : 'X\(//\)$' \| \
14853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14854$as_echo X"$as_dir" |
14855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14856 s//\1/
14857 q
14858 }
14859 /^X\(\/\/\)[^/].*/{
14860 s//\1/
14861 q
14862 }
14863 /^X\(\/\/\)$/{
14864 s//\1/
14865 q
14866 }
14867 /^X\(\/\).*/{
14868 s//\1/
14869 q
14870 }
14871 s/.*/./; q'`
14872 test -d "$as_dir" && break
14873 done
14874 test -z "$as_dirs" || eval "mkdir $as_dirs"
d6a4bcb5 14875 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
14876
14877
14878} # as_fn_mkdir_p
b0cacab0 14879if mkdir -p . 2>/dev/null; then
57aa50d4 14880 as_mkdir_p='mkdir -p "$as_dir"'
b0cacab0
TT
14881else
14882 test -d ./-p && rmdir ./-p
14883 as_mkdir_p=false
14884fi
14885
d6a4bcb5
TB
14886
14887# as_fn_executable_p FILE
14888# -----------------------
14889# Test if FILE is an executable regular file.
14890as_fn_executable_p ()
14891{
14892 test -f "$1" && test -x "$1"
14893} # as_fn_executable_p
14894as_test_x='test -x'
14895as_executable_p=as_fn_executable_p
b0cacab0
TT
14896
14897# Sed expression to map a string onto a valid CPP name.
14898as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14899
14900# Sed expression to map a string onto a valid variable name.
14901as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14902
14903
b0cacab0 14904exec 6>&1
57aa50d4
TT
14905## ----------------------------------- ##
14906## Main body of $CONFIG_STATUS script. ##
14907## ----------------------------------- ##
14908_ASEOF
14909test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b0cacab0 14910
57aa50d4
TT
14911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14912# Save the log message, to keep $0 and so on meaningful, and to
b0cacab0 14913# report actual input values of CONFIG_FILES etc. instead of their
e1052144
TT
14914# values after options handling.
14915ac_log="
b0cacab0 14916This file was extended by $as_me, which was
d6a4bcb5 14917generated by GNU Autoconf 2.69. Invocation command line was
b0cacab0
TT
14918
14919 CONFIG_FILES = $CONFIG_FILES
14920 CONFIG_HEADERS = $CONFIG_HEADERS
14921 CONFIG_LINKS = $CONFIG_LINKS
14922 CONFIG_COMMANDS = $CONFIG_COMMANDS
14923 $ $0 $@
14924
e1052144
TT
14925on `(hostname || uname -n) 2>/dev/null | sed 1q`
14926"
14927
b0cacab0
TT
14928_ACEOF
14929
39fd3d4f
SJR
14930case $ac_config_files in *"
14931"*) set x $ac_config_files; shift; ac_config_files=$*;;
14932esac
14933
d1154eb4
TT
14934case $ac_config_headers in *"
14935"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14936esac
39fd3d4f
SJR
14937
14938
14939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 14940# Files that config.status was made for.
e1052144 14941config_files="$ac_config_files"
d1154eb4 14942config_headers="$ac_config_headers"
e1052144 14943config_commands="$ac_config_commands"
b0cacab0 14944
e1052144 14945_ACEOF
b0cacab0 14946
39fd3d4f 14947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0 14948ac_cs_usage="\
57aa50d4
TT
14949\`$as_me' instantiates files and other configuration actions
14950from templates according to the current configuration. Unless the files
14951and actions are specified as TAGs, all are instantiated by default.
b0cacab0 14952
57aa50d4 14953Usage: $0 [OPTION]... [TAG]...
b0cacab0
TT
14954
14955 -h, --help print this help, then exit
29a5deed 14956 -V, --version print version number and configuration settings, then exit
61ef2474 14957 --config print configuration, then exit
39fd3d4f
SJR
14958 -q, --quiet, --silent
14959 do not print progress messages
b0cacab0
TT
14960 -d, --debug don't remove temporary files
14961 --recheck update $as_me by reconfiguring in the same conditions
39fd3d4f
SJR
14962 --file=FILE[:TEMPLATE]
14963 instantiate the configuration file FILE
d1154eb4
TT
14964 --header=FILE[:TEMPLATE]
14965 instantiate the configuration header FILE
b0cacab0
TT
14966
14967Configuration files:
14968$config_files
14969
d1154eb4
TT
14970Configuration headers:
14971$config_headers
14972
b0cacab0
TT
14973Configuration commands:
14974$config_commands
14975
57aa50d4 14976Report bugs to the package provider."
b0cacab0 14977
e1052144 14978_ACEOF
39fd3d4f 14979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61ef2474 14980ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b0cacab0
TT
14981ac_cs_version="\\
14982config.status
d6a4bcb5 14983configured by $0, generated by GNU Autoconf 2.69,
61ef2474 14984 with options \\"\$ac_cs_config\\"
b0cacab0 14985
d6a4bcb5 14986Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
14987This config.status script is free software; the Free Software Foundation
14988gives unlimited permission to copy, distribute and modify it."
e1052144
TT
14989
14990ac_pwd='$ac_pwd'
14991srcdir='$srcdir'
14992INSTALL='$INSTALL'
93613951 14993MKDIR_P='$MKDIR_P'
39fd3d4f
SJR
14994AWK='$AWK'
14995test -n "\$AWK" || AWK=awk
b0cacab0
TT
14996_ACEOF
14997
39fd3d4f
SJR
14998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14999# The default lists apply if the user does not specify any file.
b0cacab0
TT
15000ac_need_defaults=:
15001while test $# != 0
07a0db15 15002do
b0cacab0 15003 case $1 in
d6a4bcb5 15004 --*=?*)
e1052144
TT
15005 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b0cacab0
TT
15007 ac_shift=:
15008 ;;
d6a4bcb5
TB
15009 --*=)
15010 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15011 ac_optarg=
15012 ac_shift=:
15013 ;;
e1052144 15014 *)
b0cacab0
TT
15015 ac_option=$1
15016 ac_optarg=$2
15017 ac_shift=shift
15018 ;;
b0cacab0
TT
15019 esac
15020
15021 case $ac_option in
15022 # Handling of the options.
93636bde 15023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b0cacab0 15024 ac_cs_recheck=: ;;
e1052144 15025 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39fd3d4f 15026 $as_echo "$ac_cs_version"; exit ;;
61ef2474
TT
15027 --config | --confi | --conf | --con | --co | --c )
15028 $as_echo "$ac_cs_config"; exit ;;
e1052144 15029 --debug | --debu | --deb | --de | --d | -d )
b0cacab0
TT
15030 debug=: ;;
15031 --file | --fil | --fi | --f )
15032 $ac_shift
39fd3d4f
SJR
15033 case $ac_optarg in
15034 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6a4bcb5 15035 '') as_fn_error $? "missing file argument" ;;
39fd3d4f 15036 esac
57aa50d4 15037 as_fn_append CONFIG_FILES " '$ac_optarg'"
b0cacab0 15038 ac_need_defaults=false;;
d1154eb4
TT
15039 --header | --heade | --head | --hea )
15040 $ac_shift
15041 case $ac_optarg in
15042 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15043 esac
15044 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15045 ac_need_defaults=false;;
15046 --he | --h)
15047 # Conflict between --help and --header
d6a4bcb5 15048 as_fn_error $? "ambiguous option: \`$1'
d1154eb4
TT
15049Try \`$0 --help' for more information.";;
15050 --help | --hel | -h )
39fd3d4f 15051 $as_echo "$ac_cs_usage"; exit ;;
b0cacab0
TT
15052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15054 ac_cs_silent=: ;;
15055
15056 # This is an error.
d6a4bcb5 15057 -*) as_fn_error $? "unrecognized option: \`$1'
57aa50d4 15058Try \`$0 --help' for more information." ;;
b0cacab0 15059
57aa50d4 15060 *) as_fn_append ac_config_targets " $1"
e1052144 15061 ac_need_defaults=false ;;
b0cacab0 15062
07a0db15 15063 esac
b0cacab0 15064 shift
07a0db15
TT
15065done
15066
b0cacab0
TT
15067ac_configure_extra_args=
15068
15069if $ac_cs_silent; then
15070 exec 6>/dev/null
15071 ac_configure_extra_args="$ac_configure_extra_args --silent"
15072fi
15073
15074_ACEOF
39fd3d4f 15075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 15076if \$ac_cs_recheck; then
d6a4bcb5 15077 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39fd3d4f
SJR
15078 shift
15079 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15080 CONFIG_SHELL='$SHELL'
e1052144 15081 export CONFIG_SHELL
39fd3d4f 15082 exec "\$@"
b0cacab0 15083fi
07a0db15 15084
b0cacab0 15085_ACEOF
39fd3d4f 15086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15087exec 5>>config.log
15088{
15089 echo
15090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15091## Running $as_me. ##
15092_ASBOX
39fd3d4f 15093 $as_echo "$ac_log"
e1052144 15094} >&5
07a0db15 15095
e1052144 15096_ACEOF
39fd3d4f 15097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 15098#
e1052144 15099# INIT-COMMANDS
b0cacab0 15100#
b0cacab0
TT
15101# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15102 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
93613951 15103 # from automake < 1.5.
b0cacab0
TT
15104 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15105 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15106 LINGUAS="${LINGUAS-%UNSET%}"
15107
15108
15109_ACEOF
15110
39fd3d4f 15111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15112
15113# Handling of arguments.
b0cacab0
TT
15114for ac_config_target in $ac_config_targets
15115do
e1052144 15116 case $ac_config_target in
d1154eb4 15117 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
93613951 15118 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
e1052144
TT
15119 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15120
d6a4bcb5 15121 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b0cacab0
TT
15122 esac
15123done
15124
e1052144 15125
b0cacab0
TT
15126# If the user did not use the arguments to specify the items to instantiate,
15127# then the envvar interface is used. Set only those that are not.
15128# We use the long form for the default assignment because of an extremely
15129# bizarre bug on SunOS 4.1.3.
15130if $ac_need_defaults; then
15131 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
d1154eb4 15132 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b0cacab0
TT
15133 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15134fi
15135
15136# Have a temporary directory for convenience. Make it in the build tree
e1052144 15137# simply because there is no reason against having it here, and in addition,
b0cacab0 15138# creating and moving files from /tmp can sometimes cause problems.
e1052144
TT
15139# Hook for its removal unless debugging.
15140# Note that there is a small window in which the directory will not be cleaned:
15141# after its creation but before its name has been assigned to `$tmp'.
b0cacab0
TT
15142$debug ||
15143{
d6a4bcb5 15144 tmp= ac_tmp=
e1052144 15145 trap 'exit_status=$?
d6a4bcb5
TB
15146 : "${ac_tmp:=$tmp}"
15147 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
e1052144 15148' 0
57aa50d4 15149 trap 'as_fn_exit 1' 1 2 13 15
b0cacab0 15150}
b0cacab0
TT
15151# Create a (secure) tmp directory for tmp files.
15152
15153{
e1052144 15154 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6a4bcb5 15155 test -d "$tmp"
b0cacab0
TT
15156} ||
15157{
e1052144
TT
15158 tmp=./conf$$-$RANDOM
15159 (umask 077 && mkdir "$tmp")
d6a4bcb5
TB
15160} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15161ac_tmp=$tmp
b0cacab0 15162
39fd3d4f
SJR
15163# Set up the scripts for CONFIG_FILES section.
15164# No need to generate them if there are no CONFIG_FILES.
15165# This happens for instance with `./config.status config.h'.
e1052144
TT
15166if test -n "$CONFIG_FILES"; then
15167
39fd3d4f
SJR
15168if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15169 ac_cs_awk_getline=:
15170 ac_cs_awk_pipe_init=
15171 ac_cs_awk_read_file='
15172 while ((getline aline < (F[key])) > 0)
15173 print(aline)
15174 close(F[key])'
15175 ac_cs_awk_pipe_fini=
15176else
15177 ac_cs_awk_getline=false
15178 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15179 ac_cs_awk_read_file='
15180 print "|#_!!_#|"
15181 print "cat " F[key] " &&"
15182 '$ac_cs_awk_pipe_init
15183 # The final `:' finishes the AND list.
15184 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15185fi
57aa50d4
TT
15186ac_cr=`echo X | tr X '\015'`
15187# On cygwin, bash can eat \r inside `` if the user requested igncr.
15188# But we know of no other shell where ac_cr would be empty at this
15189# point, so we can use a bashism as a fallback.
15190if test "x$ac_cr" = x; then
15191 eval ac_cr=\$\'\\r\'
15192fi
39fd3d4f
SJR
15193ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15194if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d6a4bcb5 15195 ac_cs_awk_cr='\\r'
39fd3d4f
SJR
15196else
15197 ac_cs_awk_cr=$ac_cr
15198fi
e1052144 15199
d6a4bcb5 15200echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39fd3d4f 15201_ACEOF
e1052144 15202
39fd3d4f
SJR
15203# Create commands to substitute file output variables.
15204{
15205 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6a4bcb5 15206 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
39fd3d4f
SJR
15207 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15208 echo "_ACAWK" &&
15209 echo "_ACEOF"
15210} >conf$$files.sh &&
15211. ./conf$$files.sh ||
d6a4bcb5 15212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 15213rm -f conf$$files.sh
e1052144 15214
39fd3d4f
SJR
15215{
15216 echo "cat >conf$$subs.awk <<_ACEOF" &&
15217 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15218 echo "_ACEOF"
15219} >conf$$subs.sh ||
d6a4bcb5
TB
15220 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15221ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
e1052144
TT
15222ac_delim='%!_!# '
15223for ac_last_try in false false false false false :; do
39fd3d4f 15224 . ./conf$$subs.sh ||
d6a4bcb5 15225 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f
SJR
15226
15227 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15228 if test $ac_delim_n = $ac_delim_num; then
e1052144
TT
15229 break
15230 elif $ac_last_try; then
d6a4bcb5 15231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e1052144
TT
15232 else
15233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21c84b71 15234 fi
e1052144 15235done
39fd3d4f
SJR
15236rm -f conf$$subs.sh
15237
15238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6a4bcb5 15239cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
39fd3d4f
SJR
15240_ACEOF
15241sed -n '
15242h
15243s/^/S["/; s/!.*/"]=/
15244p
15245g
15246s/^[^!]*!//
15247:repl
15248t repl
15249s/'"$ac_delim"'$//
15250t delim
15251:nl
15252h
61ef2474 15253s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
15254t more1
15255s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15256p
15257n
15258b repl
15259:more1
15260s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15261p
15262g
15263s/.\{148\}//
15264t nl
15265:delim
15266h
61ef2474 15267s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
15268t more2
15269s/["\\]/\\&/g; s/^/"/; s/$/"/
15270p
15271b
15272:more2
15273s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15274p
15275g
15276s/.\{148\}//
15277t delim
15278' <conf$$subs.awk | sed '
15279/^[^""]/{
15280 N
15281 s/\n//
e1052144 15282}
39fd3d4f
SJR
15283' >>$CONFIG_STATUS || ac_write_fail=1
15284rm -f conf$$subs.awk
15285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15286_ACAWK
d6a4bcb5 15287cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
39fd3d4f
SJR
15288 for (key in S) S_is_set[key] = 1
15289 FS = "\a"
15290 \$ac_cs_awk_pipe_init
e1052144 15291}
39fd3d4f
SJR
15292{
15293 line = $ 0
15294 nfields = split(line, field, "@")
15295 substed = 0
15296 len = length(field[1])
15297 for (i = 2; i < nfields; i++) {
15298 key = field[i]
15299 keylen = length(key)
15300 if (S_is_set[key]) {
15301 value = S[key]
15302 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15303 len += length(value) + length(field[++i])
15304 substed = 1
15305 } else
15306 len += 1 + keylen
15307 }
15308 if (nfields == 3 && !substed) {
15309 key = field[2]
15310 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15311 \$ac_cs_awk_read_file
15312 next
15313 }
15314 }
15315 print line
488c75a6 15316}
39fd3d4f
SJR
15317\$ac_cs_awk_pipe_fini
15318_ACAWK
e1052144 15319_ACEOF
39fd3d4f
SJR
15320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15321if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15322 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15323else
15324 cat
d6a4bcb5
TB
15325fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15326 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b0cacab0 15327_ACEOF
e1052144 15328
d6a4bcb5
TB
15329# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15330# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
e1052144
TT
15331# trailing colons and then remove the whole line if VPATH becomes empty
15332# (actually we leave an empty line to preserve line numbers).
15333if test "x$srcdir" = x.; then
d6a4bcb5
TB
15334 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15335h
15336s///
15337s/^/:/
15338s/[ ]*$/:/
15339s/:\$(srcdir):/:/g
15340s/:\${srcdir}:/:/g
15341s/:@srcdir@:/:/g
15342s/^:*//
e1052144 15343s/:*$//
d6a4bcb5
TB
15344x
15345s/\(=[ ]*\).*/\1/
15346G
15347s/\n//
e1052144
TT
15348s/^[^=]*=[ ]*$//
15349}'
15350fi
15351
39fd3d4f 15352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15353fi # test -n "$CONFIG_FILES"
15354
d1154eb4
TT
15355# Set up the scripts for CONFIG_HEADERS section.
15356# No need to generate them if there are no CONFIG_HEADERS.
15357# This happens for instance with `./config.status Makefile'.
15358if test -n "$CONFIG_HEADERS"; then
d6a4bcb5 15359cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
d1154eb4
TT
15360BEGIN {
15361_ACEOF
15362
15363# Transform confdefs.h into an awk script `defines.awk', embedded as
15364# here-document in config.status, that substitutes the proper values into
15365# config.h.in to produce config.h.
15366
15367# Create a delimiter string that does not exist in confdefs.h, to ease
15368# handling of long lines.
15369ac_delim='%!_!# '
15370for ac_last_try in false false :; do
d6a4bcb5
TB
15371 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15372 if test -z "$ac_tt"; then
d1154eb4
TT
15373 break
15374 elif $ac_last_try; then
d6a4bcb5 15375 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
d1154eb4
TT
15376 else
15377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15378 fi
15379done
15380
15381# For the awk script, D is an array of macro values keyed by name,
15382# likewise P contains macro parameters if any. Preserve backslash
15383# newline sequences.
15384
15385ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15386sed -n '
15387s/.\{148\}/&'"$ac_delim"'/g
15388t rset
15389:rset
15390s/^[ ]*#[ ]*define[ ][ ]*/ /
15391t def
15392d
15393:def
15394s/\\$//
15395t bsnl
15396s/["\\]/\\&/g
15397s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15398D["\1"]=" \3"/p
15399s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15400d
15401:bsnl
15402s/["\\]/\\&/g
15403s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15404D["\1"]=" \3\\\\\\n"\\/p
15405t cont
15406s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15407t cont
15408d
15409:cont
15410n
15411s/.\{148\}/&'"$ac_delim"'/g
15412t clear
15413:clear
15414s/\\$//
15415t bsnlc
15416s/["\\]/\\&/g; s/^/"/; s/$/"/p
15417d
15418:bsnlc
15419s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15420b cont
15421' <confdefs.h | sed '
15422s/'"$ac_delim"'/"\\\
15423"/g' >>$CONFIG_STATUS || ac_write_fail=1
15424
15425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15426 for (key in D) D_is_set[key] = 1
15427 FS = "\a"
15428}
15429/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15430 line = \$ 0
15431 split(line, arg, " ")
15432 if (arg[1] == "#") {
15433 defundef = arg[2]
15434 mac1 = arg[3]
15435 } else {
15436 defundef = substr(arg[1], 2)
15437 mac1 = arg[2]
15438 }
15439 split(mac1, mac2, "(") #)
15440 macro = mac2[1]
15441 prefix = substr(line, 1, index(line, defundef) - 1)
15442 if (D_is_set[macro]) {
15443 # Preserve the white space surrounding the "#".
15444 print prefix "define", macro P[macro] D[macro]
15445 next
15446 } else {
15447 # Replace #undef with comments. This is necessary, for example,
15448 # in the case of _POSIX_SOURCE, which is predefined and required
15449 # on some systems where configure will not decide to define it.
15450 if (defundef == "undef") {
15451 print "/*", prefix defundef, macro, "*/"
15452 next
15453 }
15454 }
15455}
15456{ print }
15457_ACAWK
15458_ACEOF
15459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d6a4bcb5 15460 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
d1154eb4
TT
15461fi # test -n "$CONFIG_HEADERS"
15462
e1052144 15463
d1154eb4 15464eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39fd3d4f
SJR
15465shift
15466for ac_tag
e1052144
TT
15467do
15468 case $ac_tag in
15469 :[FHLC]) ac_mode=$ac_tag; continue;;
15470 esac
15471 case $ac_mode$ac_tag in
15472 :[FHL]*:*);;
d6a4bcb5 15473 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
e1052144
TT
15474 :[FH]-) ac_tag=-:-;;
15475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15476 esac
15477 ac_save_IFS=$IFS
15478 IFS=:
15479 set x $ac_tag
15480 IFS=$ac_save_IFS
15481 shift
15482 ac_file=$1
15483 shift
15484
15485 case $ac_mode in
15486 :L) ac_source=$1;;
15487 :[FH])
15488 ac_file_inputs=
15489 for ac_f
15490 do
15491 case $ac_f in
d6a4bcb5 15492 -) ac_f="$ac_tmp/stdin";;
e1052144
TT
15493 *) # Look for the file first in the build tree, then in the source tree
15494 # (if the path is not absolute). The absolute path cannot be DOS-style,
15495 # because $ac_f cannot contain `:'.
15496 test -f "$ac_f" ||
15497 case $ac_f in
15498 [\\/$]*) false;;
15499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15500 esac ||
d6a4bcb5 15501 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
e1052144 15502 esac
39fd3d4f 15503 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57aa50d4 15504 as_fn_append ac_file_inputs " '$ac_f'"
e1052144
TT
15505 done
15506
15507 # Let's still pretend it is `configure' which instantiates (i.e., don't
15508 # use $as_me), people would be surprised to read:
15509 # /* config.h. Generated by config.status. */
39fd3d4f
SJR
15510 configure_input='Generated from '`
15511 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15512 `' by configure.'
e1052144
TT
15513 if test x"$ac_file" != x-; then
15514 configure_input="$ac_file. $configure_input"
57aa50d4 15515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39fd3d4f 15516$as_echo "$as_me: creating $ac_file" >&6;}
e1052144 15517 fi
39fd3d4f
SJR
15518 # Neutralize special characters interpreted by sed in replacement strings.
15519 case $configure_input in #(
15520 *\&* | *\|* | *\\* )
15521 ac_sed_conf_input=`$as_echo "$configure_input" |
15522 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15523 *) ac_sed_conf_input=$configure_input;;
15524 esac
e1052144
TT
15525
15526 case $ac_tag in
d6a4bcb5
TB
15527 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
e1052144
TT
15529 esac
15530 ;;
b0cacab0
TT
15531 esac
15532
e1052144 15533 ac_dir=`$as_dirname -- "$ac_file" ||
b0cacab0
TT
15534$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15535 X"$ac_file" : 'X\(//\)[^/]' \| \
15536 X"$ac_file" : 'X\(//\)$' \| \
e1052144 15537 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 15538$as_echo X"$ac_file" |
e1052144
TT
15539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15540 s//\1/
15541 q
15542 }
15543 /^X\(\/\/\)[^/].*/{
15544 s//\1/
15545 q
15546 }
15547 /^X\(\/\/\)$/{
15548 s//\1/
15549 q
15550 }
15551 /^X\(\/\).*/{
15552 s//\1/
15553 q
15554 }
15555 s/.*/./; q'`
57aa50d4 15556 as_dir="$ac_dir"; as_fn_mkdir_p
b0cacab0
TT
15557 ac_builddir=.
15558
e1052144
TT
15559case "$ac_dir" in
15560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15561*)
39fd3d4f 15562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 15563 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 15564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
15565 case $ac_top_builddir_sub in
15566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15568 esac ;;
15569esac
15570ac_abs_top_builddir=$ac_pwd
15571ac_abs_builddir=$ac_pwd$ac_dir_suffix
15572# for backward compatibility:
15573ac_top_builddir=$ac_top_build_prefix
93636bde 15574
b0cacab0 15575case $srcdir in
e1052144 15576 .) # We are building in place.
b0cacab0 15577 ac_srcdir=.
e1052144
TT
15578 ac_top_srcdir=$ac_top_builddir_sub
15579 ac_abs_top_srcdir=$ac_pwd ;;
15580 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 15581 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
15582 ac_top_srcdir=$srcdir
15583 ac_abs_top_srcdir=$srcdir ;;
15584 *) # Relative name.
15585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15586 ac_top_srcdir=$ac_top_build_prefix$srcdir
15587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 15588esac
e1052144 15589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b0cacab0 15590
b0cacab0 15591
e1052144
TT
15592 case $ac_mode in
15593 :F)
15594 #
15595 # CONFIG_FILE
15596 #
50e1e10f 15597
b0cacab0
TT
15598 case $INSTALL in
15599 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
e1052144 15600 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50e1e10f 15601 esac
93613951
TT
15602 ac_MKDIR_P=$MKDIR_P
15603 case $MKDIR_P in
15604 [\\/$]* | ?:[\\/]* ) ;;
15605 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15606 esac
e1052144 15607_ACEOF
50e1e10f 15608
39fd3d4f 15609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15610# If the template does not know about datarootdir, expand it.
15611# FIXME: This hack should be removed a few years after 2.60.
15612ac_datarootdir_hack=; ac_datarootdir_seen=
39fd3d4f
SJR
15613ac_sed_dataroot='
15614/datarootdir/ {
e1052144
TT
15615 p
15616 q
15617}
15618/@datadir@/p
15619/@docdir@/p
15620/@infodir@/p
15621/@localedir@/p
57aa50d4 15622/@mandir@/p'
39fd3d4f 15623case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
e1052144
TT
15624*datarootdir*) ac_datarootdir_seen=yes;;
15625*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57aa50d4 15626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39fd3d4f 15627$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b0cacab0 15628_ACEOF
39fd3d4f 15629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
e1052144
TT
15630 ac_datarootdir_hack='
15631 s&@datadir@&$datadir&g
15632 s&@docdir@&$docdir&g
15633 s&@infodir@&$infodir&g
15634 s&@localedir@&$localedir&g
15635 s&@mandir@&$mandir&g
57aa50d4 15636 s&\\\${datarootdir}&$datarootdir&g' ;;
e1052144
TT
15637esac
15638_ACEOF
15639
15640# Neutralize VPATH when `$srcdir' = `.'.
15641# Shell code in configure.ac might set extrasub.
15642# FIXME: do we really want to maintain this feature?
39fd3d4f
SJR
15643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15644ac_sed_extra="$ac_vpsub
b0cacab0
TT
15645$extrasub
15646_ACEOF
39fd3d4f 15647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0
TT
15648:t
15649/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39fd3d4f 15650s|@configure_input@|$ac_sed_conf_input|;t t
e1052144 15651s&@top_builddir@&$ac_top_builddir_sub&;t t
39fd3d4f 15652s&@top_build_prefix@&$ac_top_build_prefix&;t t
e1052144
TT
15653s&@srcdir@&$ac_srcdir&;t t
15654s&@abs_srcdir@&$ac_abs_srcdir&;t t
15655s&@top_srcdir@&$ac_top_srcdir&;t t
15656s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15657s&@builddir@&$ac_builddir&;t t
15658s&@abs_builddir@&$ac_abs_builddir&;t t
15659s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15660s&@INSTALL@&$ac_INSTALL&;t t
93613951 15661s&@MKDIR_P@&$ac_MKDIR_P&;t t
e1052144 15662$ac_datarootdir_hack
39fd3d4f
SJR
15663"
15664eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15665if $ac_cs_awk_getline; then
d6a4bcb5 15666 $AWK -f "$ac_tmp/subs.awk"
39fd3d4f 15667else
d6a4bcb5
TB
15668 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15669fi \
15670 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144
TT
15671
15672test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6a4bcb5
TB
15673 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15674 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15675 "$ac_tmp/out"`; test -z "$ac_out"; } &&
57aa50d4 15676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 15677which seems to be undefined. Please make sure it is defined" >&5
39fd3d4f 15678$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 15679which seems to be undefined. Please make sure it is defined" >&2;}
e1052144 15680
d6a4bcb5 15681 rm -f "$ac_tmp/stdin"
e1052144 15682 case $ac_file in
d6a4bcb5
TB
15683 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15684 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39fd3d4f 15685 esac \
d6a4bcb5 15686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144 15687 ;;
d1154eb4
TT
15688 :H)
15689 #
15690 # CONFIG_HEADER
15691 #
15692 if test x"$ac_file" != x-; then
15693 {
15694 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
15695 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15696 } >"$ac_tmp/config.h" \
15697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15698 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
d1154eb4
TT
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15700$as_echo "$as_me: $ac_file is unchanged" >&6;}
15701 else
15702 rm -f "$ac_file"
d6a4bcb5
TB
15703 mv "$ac_tmp/config.h" "$ac_file" \
15704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d1154eb4
TT
15705 fi
15706 else
15707 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
15708 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15709 || as_fn_error $? "could not create -" "$LINENO" 5
d1154eb4
TT
15710 fi
15711 ;;
07a0db15 15712
57aa50d4 15713 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39fd3d4f 15714$as_echo "$as_me: executing $ac_file commands" >&6;}
e1052144
TT
15715 ;;
15716 esac
a04eba3f 15717
b0cacab0 15718
e1052144 15719 case $ac_file$ac_mode in
93613951 15720 "po-directories":C)
a04eba3f
TT
15721 for ac_file in $CONFIG_FILES; do
15722 # Support "outfile[:infile[:infile...]]"
15723 case "$ac_file" in
15724 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15725 esac
15726 # PO directories have a Makefile.in generated from Makefile.in.in.
15727 case "$ac_file" in */Makefile.in)
15728 # Adjust a relative srcdir.
15729 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
93613951 15730 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
a04eba3f
TT
15731 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15732 # In autoconf-2.13 it is called $ac_given_srcdir.
15733 # In autoconf-2.50 it is called $srcdir.
15734 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15735 case "$ac_given_srcdir" in
15736 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15737 /*) top_srcdir="$ac_given_srcdir" ;;
15738 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15739 esac
93613951
TT
15740 # Treat a directory as a PO directory if and only if it has a
15741 # POTFILES.in file. This allows packages to have multiple PO
15742 # directories under different names or in different locations.
a04eba3f
TT
15743 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15744 rm -f "$ac_dir/POTFILES"
15745 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
93613951
TT
15746 gt_tab=`printf '\t'`
15747 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
15748 POMAKEFILEDEPS="POTFILES.in"
15749 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
a04eba3f
TT
15750 # on $ac_dir but don't depend on user-specified configuration
15751 # parameters.
15752 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15753 # The LINGUAS file contains the set of available languages.
b0cacab0 15754 if test -n "$OBSOLETE_ALL_LINGUAS"; then
a04eba3f
TT
15755 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15756 fi
93613951
TT
15757 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15758 # Hide the ALL_LINGUAS assignment from automake < 1.5.
a04eba3f 15759 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
b0cacab0
TT
15760 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15761 else
15762 # The set of available languages was given in configure.in.
93613951 15763 # Hide the ALL_LINGUAS assignment from automake < 1.5.
b0cacab0 15764 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
a04eba3f 15765 fi
b0cacab0
TT
15766 # Compute POFILES
15767 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15768 # Compute UPDATEPOFILES
15769 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15770 # Compute DUMMYPOFILES
15771 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15772 # Compute GMOFILES
15773 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
a04eba3f
TT
15774 case "$ac_given_srcdir" in
15775 .) srcdirpre= ;;
15776 *) srcdirpre='$(srcdir)/' ;;
15777 esac
15778 POFILES=
a04eba3f
TT
15779 UPDATEPOFILES=
15780 DUMMYPOFILES=
b0cacab0 15781 GMOFILES=
a04eba3f
TT
15782 for lang in $ALL_LINGUAS; do
15783 POFILES="$POFILES $srcdirpre$lang.po"
a04eba3f
TT
15784 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15785 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
b0cacab0 15786 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
a04eba3f
TT
15787 done
15788 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15789 # environment variable.
15790 INST_LINGUAS=
15791 if test -n "$ALL_LINGUAS"; then
15792 for presentlang in $ALL_LINGUAS; do
15793 useit=no
15794 if test "%UNSET%" != "$LINGUAS"; then
15795 desiredlanguages="$LINGUAS"
15796 else
15797 desiredlanguages="$ALL_LINGUAS"
15798 fi
15799 for desiredlang in $desiredlanguages; do
15800 # Use the presentlang catalog if desiredlang is
15801 # a. equal to presentlang, or
15802 # b. a variant of presentlang (because in this case,
15803 # presentlang can be used as a fallback for messages
15804 # which are not translated in the desiredlang catalog).
15805 case "$desiredlang" in
15806 "$presentlang"*) useit=yes;;
15807 esac
15808 done
15809 if test $useit = yes; then
15810 INST_LINGUAS="$INST_LINGUAS $presentlang"
15811 fi
15812 done
15813 fi
15814 CATALOGS=
15815 if test -n "$INST_LINGUAS"; then
15816 for lang in $INST_LINGUAS; do
15817 CATALOGS="$CATALOGS $lang.gmo"
15818 done
15819 fi
15820 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
b0cacab0 15821 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
15822 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15823 if test -f "$f"; then
15824 case "$f" in
15825 *.orig | *.bak | *~) ;;
15826 *) cat "$f" >> "$ac_dir/Makefile" ;;
15827 esac
15828 fi
15829 done
15830 fi
15831 ;;
a64c9c13 15832 esac
b0cacab0 15833 done ;;
e1052144 15834
b0cacab0 15835 esac
e1052144 15836done # for ac_tag
07a0db15 15837
b0cacab0 15838
57aa50d4 15839as_fn_exit 0
b0cacab0 15840_ACEOF
b0cacab0
TT
15841ac_clean_files=$ac_clean_files_save
15842
39fd3d4f 15843test $ac_write_fail = 0 ||
d6a4bcb5 15844 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 15845
b0cacab0
TT
15846
15847# configure is writing to config.log, and then calls config.status.
15848# config.status does its own redirection, appending to config.log.
15849# Unfortunately, on DOS this fails, as config.log is still kept open
15850# by configure, so config.status won't be able to write to it; its
15851# output is simply discarded. So we exec the FD to /dev/null,
15852# effectively closing config.log, so it can be properly (re)opened and
15853# appended to by config.status. When coming back to configure, we
15854# need to make the FD available again.
15855if test "$no_create" != yes; then
15856 ac_cs_success=:
15857 ac_config_status_args=
15858 test "$silent" = yes &&
15859 ac_config_status_args="$ac_config_status_args --quiet"
15860 exec 5>/dev/null
15861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15862 exec 5>>config.log
15863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15864 # would make configure fail if this is the last instruction.
d6a4bcb5 15865 $ac_cs_success || as_fn_exit 1
b0cacab0 15866fi
39fd3d4f 15867if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
57aa50d4 15868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39fd3d4f
SJR
15869$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15870fi
50e1e10f 15871
ee683a13 15872if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi