]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
Fix UBSAN if s_log_groups_per_flex is 31
[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=
39fd3d4f 623ac_subst_vars='LTLIBOBJS
e1052144 624LIBOBJS
d1d44c14 625OS_IO_FILE
a2df5894
DW
626systemd_system_unit_dir
627have_systemd
628systemd_LIBS
629systemd_CFLAGS
630crond_dir
631have_crond
5ce368f0
DW
632pkg_udev_rules_dir
633have_udev
634udev_LIBS
635udev_CFLAGS
fd1677e8
TT
636LDFLAGS_SHLIB
637CFLAGS_STLIB
638CFLAGS_SHLIB
39fd3d4f
SJR
639BUILD_LDFLAGS
640BUILD_CFLAGS
d1154eb4 641INCLUDES
39fd3d4f 642DO_TEST_SUITE
fd1677e8 643LDFLAGS_STATIC
39fd3d4f
SJR
644root_sysconfdir
645root_libdir
646root_sbindir
647root_bindir
648root_prefix
5ce368f0 649E2SCRUB_CMT
39fd3d4f
SJR
650UNIX_CMT
651CYGWIN_CMT
652LINUX_CMT
bcca786b
DW
653threadsan_ldflags
654threadsan_cflags
655have_threadsan
5e666e3d
DW
656addrsan_ldflags
657addrsan_cflags
658have_addrsan
1c2a76ae
DW
659ubsan_ldflags
660ubsan_cflags
661have_ubsan
4aece328
DW
662lto_ldflags
663lto_cflags
664have_lto
665gcc_ranlib
666gcc_ar
39fd3d4f
SJR
667UNI_DIFF_OPTS
668SEM_INIT_LIB
81cbf1ef
DW
669FUSE_CMT
670FUSE_LIB
c94da047 671CLOCK_GETTIME_LIB
b291c11f 672MAGIC_LIB
39fd3d4f 673SOCKET_LIB
2dd680f3 674SIZEOF_TIME_T
cc68e8a6 675SIZEOF_OFF_T
39fd3d4f
SJR
676SIZEOF_LONG_LONG
677SIZEOF_LONG
678SIZEOF_INT
679SIZEOF_SHORT
ec3a69bb 680DD
39fd3d4f
SJR
681BUILD_CC
682MAKEINFO
683STRIP
e598c29b 684RANLIB
39fd3d4f
SJR
685AR
686LDCONFIG
687PERL
39fd3d4f
SJR
688AWK
689CHMOD
690RM
691CP
692MV
693LN_S
3fb16e74 694mkdir_p
39fd3d4f 695LN
bcb915b0
TT
696ifNotGNUmake
697ifGNUmake
39fd3d4f
SJR
698BINARY_TYPE
699POSUB
700LTLIBINTL
701LIBINTL
702INTLLIBS
93613951
TT
703LTLIBICONV
704LIBICONV
e598c29b 705INTL_MACOSX_LIBS
93613951 706XGETTEXT_EXTRA_OPTIONS
bdcd5f22 707MSGMERGE_FOR_MSGFMT_OPTION
39fd3d4f 708MSGMERGE
93613951 709XGETTEXT_015
39fd3d4f 710XGETTEXT
93613951 711GMSGFMT_015
39fd3d4f
SJR
712GMSGFMT
713MSGFMT
93613951 714GETTEXT_MACRO_VERSION
39fd3d4f 715USE_NLS
93613951 716MKDIR_P
39fd3d4f
SJR
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720SET_MAKE
721VERSION
722PACKAGE
723GETTEXT_PACKAGE
749f0712
TT
724TDB_MAN_COMMENT
725TDB_CMT
39fd3d4f 726UUIDD_CMT
bdcd5f22
TT
727PTHREAD_CFLAGS
728PTHREAD_LIBS
729PTHREAD_CC
730ax_pthread_config
731SED
39fd3d4f
SJR
732E2INITRD_MAN
733E2INITRD_PROG
734FSCK_MAN
735FSCK_PROG
8d9c50c5 736DEFRAG_CMT
39fd3d4f
SJR
737RESIZER_CMT
738IMAGER_CMT
739DEBUGFS_CMT
feb235e0 740SUBSET_CMT
0afb9be6 741ALL_CMT
39fd3d4f
SJR
742BLKID_CMT
743DEPPROFILED_LIBBLKID
744PROFILED_LIBBLKID
745DEPSTATIC_LIBBLKID
746STATIC_LIBBLKID
747DEPLIBBLKID
748LIBBLKID
749UUID_CMT
750DEPPROFILED_LIBUUID
751PROFILED_LIBUUID
752DEPSTATIC_LIBUUID
753STATIC_LIBUUID
754DEPLIBUUID
755LIBUUID
93613951
TT
756PKG_CONFIG_LIBDIR
757PKG_CONFIG_PATH
39fd3d4f 758PKG_CONFIG
b9e66a18 759DEV_FEATURES_CMT
39fd3d4f
SJR
760TEST_IO_CMT
761PRIVATE_LIBS_CMT
762LDFLAG_DYNAMIC
763PROFILED_LIB_EXT
764STATIC_LIB_EXT
765LIB_EXT
39fd3d4f
SJR
766PROFILE_CMT
767BSDLIB_CMT
768ELF_CMT
c13351f6 769Q
c1986ecb 770ES
c13351f6 771E
5aa6c3f6 772LINK_BUILD_FLAGS
183c73b0 773SYMLINK_RELATIVE
5aa6c3f6 774LINK_INSTALL_FLAGS
39fd3d4f 775MAINTAINER_CMT
93613951
TT
776EGREP
777GREP
39fd3d4f 778CPP
9b3018a8 779RDYNAMIC
57aa50d4 780DLOPEN_LIB
39fd3d4f
SJR
781OBJEXT
782EXEEXT
783ac_ct_CC
784CPPFLAGS
785LDFLAGS
786CFLAGS
787CC
788host_os
789host_vendor
790host_cpu
791host
792build_os
793build_vendor
794build_cpu
795build
5ce368f0 796E2FSPROGS_DATE
39fd3d4f
SJR
797E2FSPROGS_PKGVER
798E2FSPROGS_VERSION
799E2FSPROGS_DAY
800E2FSPROGS_MONTH
801E2FSPROGS_YEAR
802target_alias
803host_alias
804build_alias
805LIBS
806ECHO_T
807ECHO_N
808ECHO_C
809DEFS
810mandir
811localedir
812libdir
813psdir
814pdfdir
815dvidir
816htmldir
817infodir
818docdir
819oldincludedir
820includedir
2ab53829 821runstatedir
39fd3d4f
SJR
822localstatedir
823sharedstatedir
824sysconfdir
825datadir
826datarootdir
827libexecdir
828sbindir
829bindir
830program_transform_name
831prefix
832exec_prefix
57aa50d4 833PACKAGE_URL
39fd3d4f
SJR
834PACKAGE_BUGREPORT
835PACKAGE_STRING
836PACKAGE_VERSION
837PACKAGE_TARNAME
838PACKAGE_NAME
839PATH_SEPARATOR
840SHELL'
e1052144
TT
841ac_subst_files='MCONFIG
842MAKEFILE_ELF
843MAKEFILE_BSDLIB
844MAKEFILE_PROFILE
e1052144 845MAKEFILE_LIBRARY
488c75a6
TT
846ASM_TYPES_HEADER
847PUBLIC_CONFIG_HEADER'
39fd3d4f
SJR
848ac_user_opts='
849enable_option_checking
850with_diet_libc
851with_cc
39fd3d4f
SJR
852with_ccopts
853with_ldopts
854with_root_prefix
855enable_maintainer_mode
5aa6c3f6 856enable_symlink_install
91d11da1 857enable_relative_symlinks
183c73b0 858enable_symlink_relative_symlinks
5aa6c3f6 859enable_symlink_build
c13351f6 860enable_verbose_makecmds
39fd3d4f
SJR
861enable_elf_shlibs
862enable_bsd_shlibs
863enable_profile
fedfb27f 864enable_gcov
fd1677e8 865enable_hardening
39fd3d4f
SJR
866enable_jbd_debug
867enable_blkid_debug
868enable_testio_debug
b9e66a18 869enable_developer_features
39fd3d4f
SJR
870enable_libuuid
871enable_libblkid
0afb9be6 872enable_subset
3df6014a 873enable_backtrace
39fd3d4f
SJR
874enable_debugfs
875enable_imager
876enable_resizer
8d9c50c5 877enable_defrag
39fd3d4f
SJR
878enable_fsck
879enable_e2initrd_helper
880enable_tls
bdcd5f22 881with_pthread
39fd3d4f 882enable_uuidd
d6a4bcb5 883enable_mmp
749f0712 884enable_tdb
1625bf42
TB
885enable_bmap_stats
886enable_bmap_stats_ops
39fd3d4f
SJR
887enable_nls
888with_gnu_ld
889enable_rpath
890with_libiconv_prefix
39fd3d4f 891with_libintl_prefix
81cbf1ef 892enable_fuse2fs
4aece328 893enable_lto
1c2a76ae 894enable_ubsan
5e666e3d 895enable_addrsan
bcca786b 896enable_threadsan
55e00a25 897with_multiarch
5ce368f0 898with_udev_rules_dir
a2df5894
DW
899with_crond_dir
900with_systemd_unit_dir
39fd3d4f 901'
e1052144
TT
902 ac_precious_vars='build_alias
903host_alias
904target_alias
905CC
906CFLAGS
907LDFLAGS
29a5deed 908LIBS
e1052144 909CPPFLAGS
14b596d4 910CPP
93613951
TT
911PKG_CONFIG
912PKG_CONFIG_PATH
5ce368f0
DW
913PKG_CONFIG_LIBDIR
914udev_CFLAGS
a2df5894
DW
915udev_LIBS
916systemd_CFLAGS
917systemd_LIBS'
e1052144 918
50e1e10f
TT
919
920# Initialize some variables set by options.
b0cacab0
TT
921ac_init_help=
922ac_init_version=false
39fd3d4f
SJR
923ac_unrecognized_opts=
924ac_unrecognized_sep=
50e1e10f
TT
925# The variables have the same names as the options, with
926# dashes changed to underlines.
b0cacab0 927cache_file=/dev/null
50e1e10f 928exec_prefix=NONE
50e1e10f 929no_create=
50e1e10f
TT
930no_recursion=
931prefix=NONE
932program_prefix=NONE
933program_suffix=NONE
934program_transform_name=s,x,x,
935silent=
936site=
937srcdir=
50e1e10f
TT
938verbose=
939x_includes=NONE
940x_libraries=NONE
b0cacab0
TT
941
942# Installation directory options.
943# These are left unexpanded so users can "make install exec_prefix=/foo"
944# and all the variables that are supposed to be based on exec_prefix
945# by default will actually change.
946# Use braces instead of parens because sh, perl, etc. also accept them.
e1052144 947# (The list follows the same order as the GNU Coding Standards.)
21c84b71
TT
948bindir='${exec_prefix}/bin'
949sbindir='${exec_prefix}/sbin'
950libexecdir='${exec_prefix}/libexec'
e1052144
TT
951datarootdir='${prefix}/share'
952datadir='${datarootdir}'
21c84b71
TT
953sysconfdir='${prefix}/etc'
954sharedstatedir='${prefix}/com'
955localstatedir='${prefix}/var'
2ab53829 956runstatedir='${localstatedir}/run'
21c84b71
TT
957includedir='${prefix}/include'
958oldincludedir='/usr/include'
e1052144
TT
959docdir='${datarootdir}/doc/${PACKAGE}'
960infodir='${datarootdir}/info'
961htmldir='${docdir}'
962dvidir='${docdir}'
963pdfdir='${docdir}'
964psdir='${docdir}'
965libdir='${exec_prefix}/lib'
966localedir='${datarootdir}/locale'
967mandir='${datarootdir}/man'
50e1e10f 968
50e1e10f 969ac_prev=
e1052144 970ac_dashdash=
50e1e10f
TT
971for ac_option
972do
50e1e10f
TT
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
e1052144 975 eval $ac_prev=\$ac_option
50e1e10f
TT
976 ac_prev=
977 continue
978 fi
979
e1052144 980 case $ac_option in
d6a4bcb5
TB
981 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 *=) ac_optarg= ;;
983 *) ac_optarg=yes ;;
e1052144 984 esac
50e1e10f
TT
985
986 # Accept the important Cygnus configure options, so we can diagnose typos.
987
e1052144
TT
988 case $ac_dashdash$ac_option in
989 --)
990 ac_dashdash=yes ;;
50e1e10f 991
21c84b71
TT
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b0cacab0 995 bindir=$ac_optarg ;;
21c84b71
TT
996
997 -build | --build | --buil | --bui | --bu)
b0cacab0 998 ac_prev=build_alias ;;
21c84b71 999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b0cacab0 1000 build_alias=$ac_optarg ;;
50e1e10f
TT
1001
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b0cacab0
TT
1007 cache_file=$ac_optarg ;;
1008
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
50e1e10f 1011
e1052144 1012 -datadir | --datadir | --datadi | --datad)
21c84b71 1013 ac_prev=datadir ;;
e1052144 1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b0cacab0 1015 datadir=$ac_optarg ;;
21c84b71 1016
e1052144
TT
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1023
50e1e10f 1024 -disable-* | --disable-*)
39fd3d4f 1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
50e1e10f 1026 # Reject names that are not valid shell variable names.
39fd3d4f 1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1028 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1032 *"
1033"enable_$ac_useropt"
1034"*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=no ;;
e1052144
TT
1039
1040 -docdir | --docdir | --docdi | --doc | --do)
1041 ac_prev=docdir ;;
1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043 docdir=$ac_optarg ;;
1044
1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 ac_prev=dvidir ;;
1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048 dvidir=$ac_optarg ;;
50e1e10f
TT
1049
1050 -enable-* | --enable-*)
39fd3d4f 1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
50e1e10f 1052 # Reject names that are not valid shell variable names.
39fd3d4f 1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1054 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059"enable_$ac_useropt"
1060"*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1065
1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068 | --exec | --exe | --ex)
1069 ac_prev=exec_prefix ;;
1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072 | --exec=* | --exe=* | --ex=*)
b0cacab0 1073 exec_prefix=$ac_optarg ;;
50e1e10f
TT
1074
1075 -gas | --gas | --ga | --g)
1076 # Obsolete; use --with-gas.
1077 with_gas=yes ;;
1078
b0cacab0
TT
1079 -help | --help | --hel | --he | -h)
1080 ac_init_help=long ;;
1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082 ac_init_help=recursive ;;
1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084 ac_init_help=short ;;
50e1e10f
TT
1085
1086 -host | --host | --hos | --ho)
b0cacab0 1087 ac_prev=host_alias ;;
50e1e10f 1088 -host=* | --host=* | --hos=* | --ho=*)
b0cacab0 1089 host_alias=$ac_optarg ;;
50e1e10f 1090
e1052144
TT
1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 ac_prev=htmldir ;;
1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 | --ht=*)
1095 htmldir=$ac_optarg ;;
1096
21c84b71
TT
1097 -includedir | --includedir | --includedi | --included | --include \
1098 | --includ | --inclu | --incl | --inc)
1099 ac_prev=includedir ;;
1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101 | --includ=* | --inclu=* | --incl=* | --inc=*)
b0cacab0 1102 includedir=$ac_optarg ;;
21c84b71
TT
1103
1104 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 ac_prev=infodir ;;
1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b0cacab0 1107 infodir=$ac_optarg ;;
21c84b71
TT
1108
1109 -libdir | --libdir | --libdi | --libd)
1110 ac_prev=libdir ;;
1111 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b0cacab0 1112 libdir=$ac_optarg ;;
21c84b71
TT
1113
1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115 | --libexe | --libex | --libe)
1116 ac_prev=libexecdir ;;
1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118 | --libexe=* | --libex=* | --libe=*)
b0cacab0 1119 libexecdir=$ac_optarg ;;
21c84b71 1120
e1052144
TT
1121 -localedir | --localedir | --localedi | --localed | --locale)
1122 ac_prev=localedir ;;
1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124 localedir=$ac_optarg ;;
1125
21c84b71 1126 -localstatedir | --localstatedir | --localstatedi | --localstated \
e1052144 1127 | --localstate | --localstat | --localsta | --localst | --locals)
21c84b71
TT
1128 ac_prev=localstatedir ;;
1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
e1052144 1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b0cacab0 1131 localstatedir=$ac_optarg ;;
21c84b71
TT
1132
1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 ac_prev=mandir ;;
1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b0cacab0 1136 mandir=$ac_optarg ;;
21c84b71 1137
50e1e10f
TT
1138 -nfp | --nfp | --nf)
1139 # Obsolete; use --without-fp.
1140 with_fp=no ;;
1141
1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b0cacab0 1143 | --no-cr | --no-c | -n)
50e1e10f
TT
1144 no_create=yes ;;
1145
1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148 no_recursion=yes ;;
1149
21c84b71
TT
1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152 | --oldin | --oldi | --old | --ol | --o)
1153 ac_prev=oldincludedir ;;
1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b0cacab0 1157 oldincludedir=$ac_optarg ;;
21c84b71 1158
50e1e10f
TT
1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 ac_prev=prefix ;;
1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b0cacab0 1162 prefix=$ac_optarg ;;
50e1e10f
TT
1163
1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165 | --program-pre | --program-pr | --program-p)
1166 ac_prev=program_prefix ;;
1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b0cacab0 1169 program_prefix=$ac_optarg ;;
50e1e10f
TT
1170
1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172 | --program-suf | --program-su | --program-s)
1173 ac_prev=program_suffix ;;
1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b0cacab0 1176 program_suffix=$ac_optarg ;;
50e1e10f
TT
1177
1178 -program-transform-name | --program-transform-name \
1179 | --program-transform-nam | --program-transform-na \
1180 | --program-transform-n | --program-transform- \
1181 | --program-transform | --program-transfor \
1182 | --program-transfo | --program-transf \
1183 | --program-trans | --program-tran \
1184 | --progr-tra | --program-tr | --program-t)
1185 ac_prev=program_transform_name ;;
1186 -program-transform-name=* | --program-transform-name=* \
1187 | --program-transform-nam=* | --program-transform-na=* \
1188 | --program-transform-n=* | --program-transform-=* \
1189 | --program-transform=* | --program-transfor=* \
1190 | --program-transfo=* | --program-transf=* \
1191 | --program-trans=* | --program-tran=* \
1192 | --progr-tra=* | --program-tr=* | --program-t=*)
b0cacab0 1193 program_transform_name=$ac_optarg ;;
50e1e10f 1194
e1052144
TT
1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 ac_prev=pdfdir ;;
1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198 pdfdir=$ac_optarg ;;
1199
1200 -psdir | --psdir | --psdi | --psd | --ps)
1201 ac_prev=psdir ;;
1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203 psdir=$ac_optarg ;;
1204
50e1e10f
TT
1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206 | -silent | --silent | --silen | --sile | --sil)
1207 silent=yes ;;
1208
2ab53829
TT
1209 -runstatedir | --runstatedir | --runstatedi | --runstated \
1210 | --runstate | --runstat | --runsta | --runst | --runs \
1211 | --run | --ru | --r)
1212 ac_prev=runstatedir ;;
1213 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1214 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1215 | --run=* | --ru=* | --r=*)
1216 runstatedir=$ac_optarg ;;
1217
21c84b71
TT
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 ac_prev=sbindir ;;
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 | --sbi=* | --sb=*)
b0cacab0 1222 sbindir=$ac_optarg ;;
21c84b71
TT
1223
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1227 | --sha | --sh)
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 | --sha=* | --sh=*)
b0cacab0 1233 sharedstatedir=$ac_optarg ;;
21c84b71 1234
50e1e10f
TT
1235 -site | --site | --sit)
1236 ac_prev=site ;;
1237 -site=* | --site=* | --sit=*)
b0cacab0 1238 site=$ac_optarg ;;
50e1e10f
TT
1239
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 ac_prev=srcdir ;;
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b0cacab0 1243 srcdir=$ac_optarg ;;
50e1e10f 1244
21c84b71
TT
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b0cacab0 1250 sysconfdir=$ac_optarg ;;
21c84b71 1251
50e1e10f 1252 -target | --target | --targe | --targ | --tar | --ta | --t)
b0cacab0 1253 ac_prev=target_alias ;;
50e1e10f 1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b0cacab0 1255 target_alias=$ac_optarg ;;
50e1e10f
TT
1256
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 verbose=yes ;;
1259
b0cacab0
TT
1260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
50e1e10f
TT
1262
1263 -with-* | --with-*)
39fd3d4f 1264 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
50e1e10f 1265 # Reject names that are not valid shell variable names.
39fd3d4f 1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1267 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272"with_$ac_useropt"
1273"*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1278
1279 -without-* | --without-*)
39fd3d4f 1280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
50e1e10f 1281 # Reject names that are not valid shell variable names.
39fd3d4f 1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1283 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288"with_$ac_useropt"
1289"*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=no ;;
50e1e10f
TT
1294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b0cacab0 1304 x_includes=$ac_optarg ;;
50e1e10f
TT
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b0cacab0 1311 x_libraries=$ac_optarg ;;
50e1e10f 1312
d6a4bcb5
TB
1313 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1314Try \`$0 --help' for more information"
50e1e10f
TT
1315 ;;
1316
b0cacab0
TT
1317 *=*)
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
57aa50d4
TT
1320 case $ac_envvar in #(
1321 '' | [0-9]* | *[!_$as_cr_alnum]* )
d6a4bcb5 1322 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
57aa50d4 1323 esac
e1052144 1324 eval $ac_envvar=\$ac_optarg
b0cacab0
TT
1325 export $ac_envvar ;;
1326
21c84b71 1327 *)
b0cacab0 1328 # FIXME: should be removed in autoconf 3.0.
39fd3d4f 1329 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b0cacab0 1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
39fd3d4f 1331 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6a4bcb5 1332 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
50e1e10f
TT
1333 ;;
1334
1335 esac
1336done
1337
1338if test -n "$ac_prev"; then
b0cacab0 1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d6a4bcb5 1340 as_fn_error $? "missing argument to $ac_option"
50e1e10f 1341fi
50e1e10f 1342
39fd3d4f
SJR
1343if test -n "$ac_unrecognized_opts"; then
1344 case $enable_option_checking in
1345 no) ;;
d6a4bcb5 1346 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
39fd3d4f
SJR
1347 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1348 esac
1349fi
1350
1351# Check all directory arguments for consistency.
e1052144
TT
1352for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353 datadir sysconfdir sharedstatedir localstatedir includedir \
1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2ab53829 1355 libdir localedir mandir runstatedir
50e1e10f 1356do
e1052144 1357 eval ac_val=\$$ac_var
39fd3d4f
SJR
1358 # Remove trailing slashes.
1359 case $ac_val in
1360 */ )
1361 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362 eval $ac_var=\$ac_val;;
1363 esac
1364 # Be sure to have absolute directory names.
b0cacab0 1365 case $ac_val in
e1052144
TT
1366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
50e1e10f 1368 esac
d6a4bcb5 1369 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
50e1e10f
TT
1370done
1371
b0cacab0
TT
1372# There might be people who depend on the old broken behavior: `$host'
1373# used to hold the argument of --host etc.
1374# FIXME: To remove some day.
1375build=$build_alias
1376host=$host_alias
1377target=$target_alias
1378
1379# FIXME: To remove some day.
1380if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
b0cacab0
TT
1383 elif test "x$build_alias" != "x$host_alias"; then
1384 cross_compiling=yes
1385 fi
1386fi
50e1e10f 1387
b0cacab0
TT
1388ac_tool_prefix=
1389test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391test "$silent" = yes && exec 6>/dev/null
50e1e10f 1392
50e1e10f 1393
e1052144
TT
1394ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395ac_ls_di=`ls -di .` &&
1396ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d6a4bcb5 1397 as_fn_error $? "working directory cannot be determined"
e1052144 1398test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d6a4bcb5 1399 as_fn_error $? "pwd does not report name of working directory"
e1052144
TT
1400
1401
50e1e10f
TT
1402# Find the source files, if location was not specified.
1403if test -z "$srcdir"; then
1404 ac_srcdir_defaulted=yes
e1052144 1405 # Try the directory containing this script, then the parent directory.
39fd3d4f
SJR
1406 ac_confdir=`$as_dirname -- "$as_myself" ||
1407$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408 X"$as_myself" : 'X\(//\)[^/]' \| \
1409 X"$as_myself" : 'X\(//\)$' \| \
1410 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411$as_echo X"$as_myself" |
e1052144
TT
1412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413 s//\1/
1414 q
1415 }
1416 /^X\(\/\/\)[^/].*/{
1417 s//\1/
1418 q
1419 }
1420 /^X\(\/\/\)$/{
1421 s//\1/
1422 q
1423 }
1424 /^X\(\/\).*/{
1425 s//\1/
1426 q
1427 }
1428 s/.*/./; q'`
50e1e10f 1429 srcdir=$ac_confdir
e1052144 1430 if test ! -r "$srcdir/$ac_unique_file"; then
50e1e10f
TT
1431 srcdir=..
1432 fi
1433else
1434 ac_srcdir_defaulted=no
1435fi
e1052144
TT
1436if test ! -r "$srcdir/$ac_unique_file"; then
1437 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d6a4bcb5 1438 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
50e1e10f 1439fi
e1052144
TT
1440ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441ac_abs_confdir=`(
d6a4bcb5 1442 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
e1052144
TT
1443 pwd)`
1444# When building in place, set srcdir=.
1445if test "$ac_abs_confdir" = "$ac_pwd"; then
1446 srcdir=.
1447fi
1448# Remove unnecessary trailing slashes from srcdir.
1449# Double slashes in file names in object file debugging info
1450# mess up M-x gdb in Emacs.
1451case $srcdir in
1452*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453esac
1454for ac_var in $ac_precious_vars; do
1455 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_env_${ac_var}_value=\$${ac_var}
1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459done
b0cacab0
TT
1460
1461#
1462# Report the --help message.
1463#
1464if test "$ac_init_help" = "long"; then
1465 # Omit some internal or obsolete options to make the list less imposing.
1466 # This message is too long to be a string in the A/UX 3.1 sh.
1467 cat <<_ACEOF
1468\`configure' configures this package to adapt to many kinds of systems.
1469
1470Usage: $0 [OPTION]... [VAR=VALUE]...
1471
1472To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473VAR=VALUE. See below for descriptions of some of the useful variables.
1474
1475Defaults for the options are specified in brackets.
1476
1477Configuration:
1478 -h, --help display this help and exit
1479 --help=short display options specific to this package
1480 --help=recursive display the short help of all the included packages
1481 -V, --version display version information and exit
d6a4bcb5 1482 -q, --quiet, --silent do not print \`checking ...' messages
b0cacab0
TT
1483 --cache-file=FILE cache test results in FILE [disabled]
1484 -C, --config-cache alias for \`--cache-file=config.cache'
1485 -n, --no-create do not create output files
1486 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487
b0cacab0
TT
1488Installation directories:
1489 --prefix=PREFIX install architecture-independent files in PREFIX
39fd3d4f 1490 [$ac_default_prefix]
b0cacab0 1491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
39fd3d4f 1492 [PREFIX]
b0cacab0
TT
1493
1494By default, \`make install' will install all the files in
1495\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1496an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497for instance \`--prefix=\$HOME'.
1498
1499For better control, use the options below.
1500
1501Fine tuning of the installation directories:
39fd3d4f
SJR
1502 --bindir=DIR user executables [EPREFIX/bin]
1503 --sbindir=DIR system admin executables [EPREFIX/sbin]
1504 --libexecdir=DIR program executables [EPREFIX/libexec]
1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2ab53829 1508 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
39fd3d4f
SJR
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
b0cacab0
TT
1522_ACEOF
1523
1524 cat <<\_ACEOF
1525
1526System types:
1527 --build=BUILD configure for building on BUILD [guessed]
1528 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1529_ACEOF
1530fi
1531
1532if test -n "$ac_init_help"; then
1533
1534 cat <<\_ACEOF
1535
1536Optional Features:
39fd3d4f 1537 --disable-option-checking ignore unrecognized --enable/--with options
b0cacab0
TT
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8c9e2921
TT
1540 --enable-maintainer-mode
1541 enable makefile rules useful for maintainers
1542 --enable-symlink-install
1543 use symlinks when installing instead of hard links
1544 --enable-relative-symlinks
1545 use relative symlinks when installing
91d11da1 1546
5aa6c3f6 1547 --enable-symlink-build use symlinks while building instead of hard links
8c9e2921
TT
1548 --enable-verbose-makecmds
1549 enable verbose make command output
1550 --enable-elf-shlibs select ELF shared libraries
1551 --enable-bsd-shlibs select BSD shared libraries
1552 --enable-profile build profiling libraries
1553 --enable-gcov build for coverage testing using gcov
1554 --enable-hardening build for coverage testing using gcov
1555 --enable-jbd-debug enable journal debugging
b0cacab0 1556 --enable-blkid-debug enable blkid debugging
8c9e2921
TT
1557 --disable-testio-debug disable the use of the test I/O manager for
1558 debugging
1559 --enable-developer-features
1560 enable features for use by ext4 developers
1561 --enable-libuuid build and use private uuid library
1562 --enable-libblkid build and use private blkid library
1563 --enable-subset enable subset-only build
1564 --disable-backtrace disable use backtrace
1565 --disable-debugfs disable support of debugfs program
1566 --disable-imager disable support of e2image program
1567 --disable-resizer disable support of e2resize program
1568 --disable-defrag disable support of e4defrag program
b0cacab0 1569 --enable-fsck build fsck wrapper program
8c9e2921
TT
1570 --enable-e2initrd-helper
1571 build e2initrd-helper program
3249394d 1572 --disable-tls disable use of thread local support
5610f992 1573 --disable-uuidd disable building the uuid daemon
d6a4bcb5 1574 --disable-mmp disable support mmp, Multi Mount Protection
749f0712 1575 --disable-tdb disable tdb support
8c9e2921 1576 --disable-bmap-stats disable collection of bitmap stats
1625bf42 1577 --enable-bmap-stats-ops enable collection of additional bitmap stats
b0cacab0
TT
1578 --disable-nls do not use Native Language Support
1579 --disable-rpath do not hardcode runtime library paths
8c9e2921
TT
1580 --disable-fuse2fs do not build fuse2fs
1581 --enable-lto enable link time optimization
1582 --enable-ubsan enable undefined behavior sanitizer
1583 --enable-addrsan enable address sanitizer
1584 --enable-threadsan enable thread sanitizer
b0cacab0
TT
1585
1586Optional Packages:
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3249394d 1589 --with-diet-libc use diet libc
0b5b9f90
TT
1590 --with-cc no longer supported, use CC= instead
1591 --with-ccopts no longer supported, use CFLAGS= instead
1592 --with-ldopts no longer supported, use LDFLAGS= instead
8c9e2921
TT
1593 --with-root-prefix=PREFIX
1594 override prefix variable for files to be placed in
1595 the root
bdcd5f22 1596 --without-pthread disable use of pthread support
93613951 1597 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b0cacab0
TT
1598 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1599 --without-libiconv-prefix don't search for libiconv in includedir and libdir
b0cacab0
TT
1600 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1601 --without-libintl-prefix don't search for libintl in includedir and libdir
8c9e2921 1602 --with-multiarch=ARCH specify the multiarch triplet
5ce368f0
DW
1603 --with-udev-rules-dir[=DIR]
1604 Install udev rules into DIR.
a2df5894
DW
1605 --with-crond-dir[=DIR] Install system crontabs into DIR.
1606 --with-systemd-unit-dir[=DIR]
1607 Install systemd system units into DIR.
b0cacab0
TT
1608
1609Some influential environment variables:
1610 CC C compiler command
1611 CFLAGS C compiler flags
1612 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1613 nonstandard directory <lib dir>
29a5deed 1614 LIBS libraries to pass to the linker, e.g. -l<library>
61ef2474 1615 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
e1052144 1616 you have headers in a nonstandard directory <include dir>
b0cacab0 1617 CPP C preprocessor
14b596d4 1618 PKG_CONFIG path to pkg-config utility
93613951
TT
1619 PKG_CONFIG_PATH
1620 directories to add to pkg-config's search path
1621 PKG_CONFIG_LIBDIR
1622 path overriding pkg-config's built-in search path
5ce368f0
DW
1623 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1624 udev_LIBS linker flags for udev, overriding pkg-config
a2df5894
DW
1625 systemd_CFLAGS
1626 C compiler flags for systemd, overriding pkg-config
1627 systemd_LIBS
1628 linker flags for systemd, overriding pkg-config
b0cacab0
TT
1629
1630Use these variables to override the choices made by `configure' or to help
1631it to find libraries and programs with nonstandard names/locations.
1632
57aa50d4 1633Report bugs to the package provider.
b0cacab0 1634_ACEOF
e1052144 1635ac_status=$?
b0cacab0
TT
1636fi
1637
1638if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
b0cacab0 1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
39fd3d4f
SJR
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
b0cacab0
TT
1644 ac_builddir=.
1645
e1052144
TT
1646case "$ac_dir" in
1647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648*)
39fd3d4f 1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 1650 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656esac
1657ac_abs_top_builddir=$ac_pwd
1658ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659# for backward compatibility:
1660ac_top_builddir=$ac_top_build_prefix
b0cacab0
TT
1661
1662case $srcdir in
e1052144 1663 .) # We are building in place.
b0cacab0 1664 ac_srcdir=.
e1052144
TT
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 1668 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 1675esac
e1052144
TT
1676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure" --help=recursive
b0cacab0 1686 else
39fd3d4f 1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
e1052144
TT
1688 fi || ac_status=$?
1689 cd "$ac_pwd" || { ac_status=$?; break; }
b0cacab0
TT
1690 done
1691fi
1692
e1052144 1693test -n "$ac_init_help" && exit $ac_status
b0cacab0
TT
1694if $ac_init_version; then
1695 cat <<\_ACEOF
e1052144 1696configure
d6a4bcb5 1697generated by GNU Autoconf 2.69
b0cacab0 1698
d6a4bcb5 1699Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
1700This configure script is free software; the Free Software Foundation
1701gives unlimited permission to copy, distribute and modify it.
1702_ACEOF
e1052144 1703 exit
b0cacab0 1704fi
b0cacab0 1705
57aa50d4
TT
1706## ------------------------ ##
1707## Autoconf initialization. ##
1708## ------------------------ ##
b0cacab0 1709
57aa50d4
TT
1710# ac_fn_c_try_compile LINENO
1711# --------------------------
1712# Try to compile conftest.$ac_ext, and return whether this succeeded.
1713ac_fn_c_try_compile ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1718case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1736 ac_retval=0
1737else
1738 $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1740
57aa50d4
TT
1741 ac_retval=1
1742fi
d6a4bcb5 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1744 as_fn_set_status $ac_retval
57aa50d4
TT
1745
1746} # ac_fn_c_try_compile
1747
1748# ac_fn_c_try_link LINENO
1749# -----------------------
1750# Try to link conftest.$ac_ext, and return whether this succeeded.
1751ac_fn_c_try_link ()
b0cacab0 1752{
57aa50d4
TT
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext conftest$ac_exeext
1755 if { { ac_try="$ac_link"
1756case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1768 fi
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest$ac_exeext && {
1774 test "$cross_compiling" = yes ||
d6a4bcb5 1775 test -x conftest$ac_exeext
57aa50d4
TT
1776 }; then :
1777 ac_retval=0
1778else
1779 $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1781
57aa50d4
TT
1782 ac_retval=1
1783fi
1784 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1785 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1786 # interfere with the next link command; also delete a directory that is
1787 # left behind by Apple's compiler. We do this before executing the actions.
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1790 as_fn_set_status $ac_retval
b0cacab0 1791
57aa50d4 1792} # ac_fn_c_try_link
b0cacab0 1793
57aa50d4
TT
1794# ac_fn_c_try_cpp LINENO
1795# ----------------------
1796# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1797ac_fn_c_try_cpp ()
1798{
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if { { ac_try="$ac_cpp conftest.$ac_ext"
1801case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804esac
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6a4bcb5 1815 test $ac_status = 0; } > conftest.i && {
57aa50d4
TT
1816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 }; then :
1819 ac_retval=0
1820else
1821 $as_echo "$as_me: failed program was:" >&5
1822sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1823
57aa50d4
TT
1824 ac_retval=1
1825fi
d6a4bcb5 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1827 as_fn_set_status $ac_retval
b0cacab0 1828
57aa50d4 1829} # ac_fn_c_try_cpp
b0cacab0 1830
93613951
TT
1831# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1832# -------------------------------------------------------
1833# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1834# the include files in INCLUDES and setting the cache variable VAR
1835# accordingly.
1836ac_fn_c_check_header_mongrel ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if eval \${$3+:} false; then :
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
1842if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1844fi
1845eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847$as_echo "$ac_res" >&6; }
1848else
1849 # Is the header compilable?
1850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1851$as_echo_n "checking $2 usability... " >&6; }
1852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h. */
1854$4
1855#include <$2>
1856_ACEOF
1857if ac_fn_c_try_compile "$LINENO"; then :
1858 ac_header_compiler=yes
1859else
1860 ac_header_compiler=no
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1864$as_echo "$ac_header_compiler" >&6; }
1865
1866# Is the header present?
1867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1868$as_echo_n "checking $2 presence... " >&6; }
1869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870/* end confdefs.h. */
1871#include <$2>
1872_ACEOF
1873if ac_fn_c_try_cpp "$LINENO"; then :
1874 ac_header_preproc=yes
1875else
1876 ac_header_preproc=no
1877fi
1878rm -f conftest.err conftest.i conftest.$ac_ext
1879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1880$as_echo "$ac_header_preproc" >&6; }
1881
1882# So? What about this header?
1883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1884 yes:no: )
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1886$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1888$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889 ;;
1890 no:yes:* )
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1892$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1894$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1896$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1898$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901 ;;
1902esac
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
1905if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1907else
1908 eval "$3=\$ac_header_compiler"
1909fi
1910eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913fi
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1916} # ac_fn_c_check_header_mongrel
1917
57aa50d4
TT
1918# ac_fn_c_try_run LINENO
1919# ----------------------
1920# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1921# that executables *can* be run.
1922ac_fn_c_try_run ()
1923{
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if { { ac_try="$ac_link"
1926case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929esac
1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931$as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_link") 2>&5
1933 ac_status=$?
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1936 { { case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939esac
1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941$as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_try") 2>&5
1943 ac_status=$?
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; }; }; then :
1946 ac_retval=0
1947else
1948 $as_echo "$as_me: program exited with status $ac_status" >&5
1949 $as_echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1951
57aa50d4
TT
1952 ac_retval=$ac_status
1953fi
1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1956 as_fn_set_status $ac_retval
b0cacab0 1957
57aa50d4 1958} # ac_fn_c_try_run
b0cacab0 1959
93613951
TT
1960# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1961# -------------------------------------------------------
1962# Tests whether HEADER exists and can be compiled using the include files in
1963# INCLUDES, setting the cache variable VAR accordingly.
1964ac_fn_c_check_header_compile ()
1965{
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968$as_echo_n "checking for $2... " >&6; }
1969if eval \${$3+:} false; then :
1970 $as_echo_n "(cached) " >&6
1971else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h. */
1974$4
1975#include <$2>
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978 eval "$3=yes"
1979else
1980 eval "$3=no"
1981fi
1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983fi
1984eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986$as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988
1989} # ac_fn_c_check_header_compile
1990
57aa50d4
TT
1991# ac_fn_c_check_func LINENO FUNC VAR
1992# ----------------------------------
1993# Tests whether FUNC exists, setting the cache variable VAR accordingly
1994ac_fn_c_check_func ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998$as_echo_n "checking for $2... " >&6; }
d6a4bcb5 1999if eval \${$3+:} false; then :
57aa50d4
TT
2000 $as_echo_n "(cached) " >&6
2001else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2006#define $2 innocuous_$2
b0cacab0 2007
57aa50d4
TT
2008/* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char $2 (); below.
2010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2011 <limits.h> exists even on freestanding compilers. */
b0cacab0 2012
57aa50d4
TT
2013#ifdef __STDC__
2014# include <limits.h>
2015#else
2016# include <assert.h>
2017#endif
a04eba3f 2018
57aa50d4 2019#undef $2
07a0db15 2020
57aa50d4
TT
2021/* Override any GCC internal prototype to avoid an error.
2022 Use char because int might match the return type of a GCC
2023 builtin and then its argument prototype would still apply. */
2024#ifdef __cplusplus
2025extern "C"
2026#endif
2027char $2 ();
2028/* The GNU C library defines this for functions which it implements
2029 to always fail with ENOSYS. Some functions are actually named
2030 something starting with __ and the normal name is an alias. */
2031#if defined __stub_$2 || defined __stub___$2
2032choke me
2033#endif
74becf3c 2034
57aa50d4
TT
2035int
2036main ()
2037{
2038return $2 ();
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_link "$LINENO"; then :
2044 eval "$3=yes"
2045else
2046 eval "$3=no"
2047fi
2048rm -f core conftest.err conftest.$ac_objext \
2049 conftest$ac_exeext conftest.$ac_ext
2050fi
2051eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053$as_echo "$ac_res" >&6; }
d6a4bcb5 2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
93636bde 2055
57aa50d4 2056} # ac_fn_c_check_func
93636bde 2057
e598c29b
TT
2058# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2059# ----------------------------------------------------
2060# Tries to find if the field MEMBER exists in type AGGR, after including
2061# INCLUDES, setting cache variable VAR accordingly.
2062ac_fn_c_check_member ()
2063{
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2066$as_echo_n "checking for $2.$3... " >&6; }
2067if eval \${$4+:} false; then :
2068 $as_echo_n "(cached) " >&6
2069else
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h. */
2072$5
2073int
2074main ()
2075{
2076static $2 ac_aggr;
2077if (ac_aggr.$3)
2078return 0;
2079 ;
2080 return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_compile "$LINENO"; then :
2084 eval "$4=yes"
2085else
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h. */
2088$5
2089int
2090main ()
2091{
2092static $2 ac_aggr;
2093if (sizeof ac_aggr.$3)
2094return 0;
2095 ;
2096 return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100 eval "$4=yes"
2101else
2102 eval "$4=no"
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108eval ac_res=\$$4
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113} # ac_fn_c_check_member
2114
2115# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2116# -------------------------------------------
2117# Tests whether TYPE exists after having included INCLUDES, setting cache
2118# variable VAR accordingly.
2119ac_fn_c_check_type ()
2120{
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123$as_echo_n "checking for $2... " >&6; }
2124if eval \${$3+:} false; then :
2125 $as_echo_n "(cached) " >&6
2126else
2127 eval "$3=no"
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h. */
2130$4
2131int
2132main ()
2133{
2134if (sizeof ($2))
2135 return 0;
2136 ;
2137 return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h. */
2143$4
2144int
2145main ()
2146{
2147if (sizeof (($2)))
2148 return 0;
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154
2155else
2156 eval "$3=yes"
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161fi
2162eval ac_res=\$$3
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164$as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167} # ac_fn_c_check_type
2168
93613951
TT
2169# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2170# ---------------------------------------------
2171# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
d1154eb4 2172# accordingly.
93613951 2173ac_fn_c_check_decl ()
d1154eb4
TT
2174{
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
93613951
TT
2176 as_decl_name=`echo $2|sed 's/ *(.*//'`
2177 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2179$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6a4bcb5 2180if eval \${$3+:} false; then :
d1154eb4 2181 $as_echo_n "(cached) " >&6
d1154eb4 2182else
93613951 2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
2184/* end confdefs.h. */
2185$4
93613951
TT
2186int
2187main ()
2188{
2189#ifndef $as_decl_name
2190#ifdef __cplusplus
2191 (void) $as_decl_use;
2192#else
2193 (void) $as_decl_name;
2194#endif
2195#endif
2196
2197 ;
2198 return 0;
2199}
d1154eb4
TT
2200_ACEOF
2201if ac_fn_c_try_compile "$LINENO"; then :
93613951 2202 eval "$3=yes"
d1154eb4 2203else
93613951 2204 eval "$3=no"
d1154eb4
TT
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4
TT
2207fi
2208eval ac_res=\$$3
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210$as_echo "$ac_res" >&6; }
d6a4bcb5 2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1154eb4 2212
93613951 2213} # ac_fn_c_check_decl
d1154eb4 2214
57aa50d4
TT
2215# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2216# --------------------------------------------
2217# Tries to find the compile-time value of EXPR in a program that includes
2218# INCLUDES, setting VAR accordingly. Returns whether the value could be
2219# computed
2220ac_fn_c_compute_int ()
2221{
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 if test "$cross_compiling" = yes; then
2224 # Depending upon the size, compute the lo and hi bounds.
2225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h. */
2227$4
2228int
2229main ()
2230{
2231static int test_array [1 - 2 * !(($2) >= 0)];
d6a4bcb5
TB
2232test_array [0] = 0;
2233return test_array [0];
93636bde 2234
57aa50d4
TT
2235 ;
2236 return 0;
2237}
2238_ACEOF
2239if ac_fn_c_try_compile "$LINENO"; then :
2240 ac_lo=0 ac_mid=0
2241 while :; do
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243/* end confdefs.h. */
2244$4
2245int
2246main ()
2247{
2248static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2249test_array [0] = 0;
2250return test_array [0];
93636bde 2251
57aa50d4
TT
2252 ;
2253 return 0;
2254}
2255_ACEOF
2256if ac_fn_c_try_compile "$LINENO"; then :
2257 ac_hi=$ac_mid; break
2258else
2259 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2260 if test $ac_lo -le $ac_mid; then
2261 ac_lo= ac_hi=
2262 break
2263 fi
2264 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
b0cacab0 2265fi
57aa50d4
TT
2266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268else
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270/* end confdefs.h. */
2271$4
2272int
2273main ()
2274{
2275static int test_array [1 - 2 * !(($2) < 0)];
d6a4bcb5
TB
2276test_array [0] = 0;
2277return test_array [0];
e1052144 2278
57aa50d4
TT
2279 ;
2280 return 0;
2281}
2282_ACEOF
2283if ac_fn_c_try_compile "$LINENO"; then :
2284 ac_hi=-1 ac_mid=-1
2285 while :; do
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287/* end confdefs.h. */
2288$4
2289int
2290main ()
2291{
2292static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d6a4bcb5
TB
2293test_array [0] = 0;
2294return test_array [0];
93636bde 2295
57aa50d4
TT
2296 ;
2297 return 0;
2298}
2299_ACEOF
2300if ac_fn_c_try_compile "$LINENO"; then :
2301 ac_lo=$ac_mid; break
93636bde 2302else
57aa50d4
TT
2303 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2304 if test $ac_mid -le $ac_hi; then
2305 ac_lo= ac_hi=
2306 break
2307 fi
2308 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
93636bde 2309fi
57aa50d4
TT
2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 done
2312else
2313 ac_lo= ac_hi=
2314fi
2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316fi
2317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318# Binary search between lo and hi bounds.
2319while test "x$ac_lo" != "x$ac_hi"; do
2320 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h. */
2323$4
2324int
2325main ()
2326{
2327static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2328test_array [0] = 0;
2329return test_array [0];
93636bde 2330
57aa50d4
TT
2331 ;
2332 return 0;
2333}
2334_ACEOF
2335if ac_fn_c_try_compile "$LINENO"; then :
2336 ac_hi=$ac_mid
2337else
2338 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2339fi
2340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341done
2342case $ac_lo in #((
2343?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2344'') ac_retval=1 ;;
927566a3 2345esac
57aa50d4
TT
2346 else
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348/* end confdefs.h. */
2349$4
2350static long int longval () { return $2; }
2351static unsigned long int ulongval () { return $2; }
2352#include <stdio.h>
2353#include <stdlib.h>
2354int
2355main ()
2356{
927566a3 2357
57aa50d4
TT
2358 FILE *f = fopen ("conftest.val", "w");
2359 if (! f)
2360 return 1;
2361 if (($2) < 0)
2362 {
2363 long int i = longval ();
2364 if (i != ($2))
2365 return 1;
2366 fprintf (f, "%ld", i);
2367 }
2368 else
2369 {
2370 unsigned long int i = ulongval ();
2371 if (i != ($2))
2372 return 1;
2373 fprintf (f, "%lu", i);
2374 }
2375 /* Do not output a trailing newline, as this causes \r\n confusion
2376 on some platforms. */
2377 return ferror (f) || fclose (f) != 0;
93636bde 2378
57aa50d4
TT
2379 ;
2380 return 0;
2381}
2382_ACEOF
2383if ac_fn_c_try_run "$LINENO"; then :
2384 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2385else
2386 ac_retval=1
2387fi
2388rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2389 conftest.$ac_objext conftest.beam conftest.$ac_ext
2390rm -f conftest.val
93636bde 2391
57aa50d4 2392 fi
d6a4bcb5 2393 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 2394 as_fn_set_status $ac_retval
927566a3 2395
57aa50d4 2396} # ac_fn_c_compute_int
57aa50d4
TT
2397cat >config.log <<_ACEOF
2398This file contains any messages produced by compilers while
2399running configure, to aid debugging if configure makes a mistake.
93636bde 2400
57aa50d4 2401It was created by $as_me, which was
d6a4bcb5 2402generated by GNU Autoconf 2.69. Invocation command line was
07a0db15 2403
57aa50d4 2404 $ $0 $@
e1052144 2405
57aa50d4
TT
2406_ACEOF
2407exec 5>>config.log
2408{
2409cat <<_ASUNAME
2410## --------- ##
2411## Platform. ##
2412## --------- ##
0b5b9f90 2413
57aa50d4
TT
2414hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2415uname -m = `(uname -m) 2>/dev/null || echo unknown`
2416uname -r = `(uname -r) 2>/dev/null || echo unknown`
2417uname -s = `(uname -s) 2>/dev/null || echo unknown`
2418uname -v = `(uname -v) 2>/dev/null || echo unknown`
0b5b9f90 2419
57aa50d4
TT
2420/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2421/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
0b5b9f90 2422
57aa50d4
TT
2423/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2424/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2425/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2426/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2427/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2428/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2429/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
0b5b9f90 2430
57aa50d4 2431_ASUNAME
b0cacab0 2432
b0cacab0
TT
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
57aa50d4
TT
2438 $as_echo "PATH: $as_dir"
2439 done
e1052144 2440IFS=$as_save_IFS
b0cacab0 2441
57aa50d4 2442} >&5
74becf3c 2443
57aa50d4 2444cat >&5 <<_ACEOF
e1052144 2445
b0cacab0 2446
57aa50d4
TT
2447## ----------- ##
2448## Core tests. ##
2449## ----------- ##
b0cacab0 2450
57aa50d4 2451_ACEOF
b0cacab0 2452
57aa50d4
TT
2453
2454# Keep a trace of the command line.
2455# Strip out --no-create and --no-recursion so they do not pile up.
2456# Strip out --silent because we don't want to record it for future runs.
2457# Also quote any args containing shell meta-characters.
2458# Make two passes to allow for proper duplicate-argument suppression.
2459ac_configure_args=
2460ac_configure_args0=
2461ac_configure_args1=
2462ac_must_keep_next=false
2463for ac_pass in 1 2
b0cacab0 2464do
57aa50d4
TT
2465 for ac_arg
2466 do
2467 case $ac_arg in
2468 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2470 | -silent | --silent | --silen | --sile | --sil)
2471 continue ;;
2472 *\'*)
2473 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2474 esac
2475 case $ac_pass in
2476 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2477 2)
2478 as_fn_append ac_configure_args1 " '$ac_arg'"
2479 if test $ac_must_keep_next = true; then
2480 ac_must_keep_next=false # Got value, back to normal.
2481 else
2482 case $ac_arg in
2483 *=* | --config-cache | -C | -disable-* | --disable-* \
2484 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2485 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2486 | -with-* | --with-* | -without-* | --without-* | --x)
2487 case "$ac_configure_args0 " in
2488 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2489 esac
2490 ;;
2491 -* ) ac_must_keep_next=true ;;
2492 esac
2493 fi
2494 as_fn_append ac_configure_args " '$ac_arg'"
2495 ;;
2496 esac
2497 done
b0cacab0 2498done
57aa50d4
TT
2499{ ac_configure_args0=; unset ac_configure_args0;}
2500{ ac_configure_args1=; unset ac_configure_args1;}
2501
2502# When interrupted or exit'd, cleanup temporary files, and complete
2503# config.log. We remove comments because anyway the quotes in there
2504# would cause problems or look ugly.
2505# WARNING: Use '\'' to represent an apostrophe within the trap.
2506# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2507trap 'exit_status=$?
2508 # Save into config.log some information that might help in debugging.
2509 {
2510 echo
2511
d6a4bcb5 2512 $as_echo "## ---------------- ##
57aa50d4 2513## Cache variables. ##
d6a4bcb5 2514## ---------------- ##"
57aa50d4
TT
2515 echo
2516 # The following way of writing the cache mishandles newlines in values,
2517(
2518 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2519 eval ac_val=\$$ac_var
2520 case $ac_val in #(
2521 *${as_nl}*)
2522 case $ac_var in #(
2523 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2524$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2525 esac
2526 case $ac_var in #(
2527 _ | IFS | as_nl) ;; #(
2528 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2529 *) { eval $ac_var=; unset $ac_var;} ;;
2530 esac ;;
2531 esac
2532 done
2533 (set) 2>&1 |
2534 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2535 *${as_nl}ac_space=\ *)
2536 sed -n \
2537 "s/'\''/'\''\\\\'\'''\''/g;
2538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2539 ;; #(
2540 *)
2541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2542 ;;
2543 esac |
2544 sort
2545)
2546 echo
2547
d6a4bcb5 2548 $as_echo "## ----------------- ##
57aa50d4 2549## Output variables. ##
d6a4bcb5 2550## ----------------- ##"
57aa50d4
TT
2551 echo
2552 for ac_var in $ac_subst_vars
2553 do
2554 eval ac_val=\$$ac_var
2555 case $ac_val in
2556 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2557 esac
2558 $as_echo "$ac_var='\''$ac_val'\''"
2559 done | sort
2560 echo
2561
2562 if test -n "$ac_subst_files"; then
d6a4bcb5 2563 $as_echo "## ------------------- ##
57aa50d4 2564## File substitutions. ##
d6a4bcb5 2565## ------------------- ##"
57aa50d4
TT
2566 echo
2567 for ac_var in $ac_subst_files
2568 do
2569 eval ac_val=\$$ac_var
2570 case $ac_val in
2571 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2572 esac
2573 $as_echo "$ac_var='\''$ac_val'\''"
2574 done | sort
2575 echo
2576 fi
2577
2578 if test -s confdefs.h; then
d6a4bcb5 2579 $as_echo "## ----------- ##
57aa50d4 2580## confdefs.h. ##
d6a4bcb5 2581## ----------- ##"
57aa50d4
TT
2582 echo
2583 cat confdefs.h
2584 echo
2585 fi
2586 test "$ac_signal" != 0 &&
2587 $as_echo "$as_me: caught signal $ac_signal"
2588 $as_echo "$as_me: exit $exit_status"
2589 } >&5
2590 rm -f core *.core core.conftest.* &&
2591 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2592 exit $exit_status
2593' 0
2594for ac_signal in 1 2 13 15; do
2595 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b0cacab0 2596done
57aa50d4 2597ac_signal=0
b0cacab0 2598
57aa50d4
TT
2599# confdefs.h avoids OS command line length limits that DEFS can exceed.
2600rm -f -r conftest* confdefs.h
b0cacab0 2601
57aa50d4 2602$as_echo "/* confdefs.h */" > confdefs.h
73ae2d4a 2603
57aa50d4
TT
2604# Predefined preprocessor variables.
2605
2606cat >>confdefs.h <<_ACEOF
2607#define PACKAGE_NAME "$PACKAGE_NAME"
2608_ACEOF
2609
2610cat >>confdefs.h <<_ACEOF
2611#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2612_ACEOF
2613
2614cat >>confdefs.h <<_ACEOF
2615#define PACKAGE_VERSION "$PACKAGE_VERSION"
2616_ACEOF
2617
2618cat >>confdefs.h <<_ACEOF
2619#define PACKAGE_STRING "$PACKAGE_STRING"
2620_ACEOF
2621
2622cat >>confdefs.h <<_ACEOF
2623#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2624_ACEOF
2625
2626cat >>confdefs.h <<_ACEOF
2627#define PACKAGE_URL "$PACKAGE_URL"
2628_ACEOF
2629
2630
2631# Let the site file select an alternate cache file if it wants to.
2632# Prefer an explicitly selected file to automatically selected ones.
2633ac_site_file1=NONE
2634ac_site_file2=NONE
2635if test -n "$CONFIG_SITE"; then
d6a4bcb5
TB
2636 # We do not want a PATH search for config.site.
2637 case $CONFIG_SITE in #((
2638 -*) ac_site_file1=./$CONFIG_SITE;;
2639 */*) ac_site_file1=$CONFIG_SITE;;
2640 *) ac_site_file1=./$CONFIG_SITE;;
2641 esac
57aa50d4
TT
2642elif test "x$prefix" != xNONE; then
2643 ac_site_file1=$prefix/share/config.site
2644 ac_site_file2=$prefix/etc/config.site
73ae2d4a 2645else
57aa50d4
TT
2646 ac_site_file1=$ac_default_prefix/share/config.site
2647 ac_site_file2=$ac_default_prefix/etc/config.site
2648fi
2649for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b0cacab0 2650do
57aa50d4 2651 test "x$ac_site_file" = xNONE && continue
61ef2474 2652 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
57aa50d4
TT
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2654$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2655 sed 's/^/| /' "$ac_site_file" >&5
d6a4bcb5
TB
2656 . "$ac_site_file" \
2657 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659as_fn_error $? "failed to load site script $ac_site_file
2660See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
2661 fi
2662done
b0cacab0 2663
57aa50d4 2664if test -r "$cache_file"; then
61ef2474
TT
2665 # Some versions of bash will fail to source /dev/null (special files
2666 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2667 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
57aa50d4
TT
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2669$as_echo "$as_me: loading cache $cache_file" >&6;}
2670 case $cache_file in
2671 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2672 *) . "./$cache_file";;
2673 esac
73ae2d4a 2674 fi
57aa50d4
TT
2675else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2677$as_echo "$as_me: creating cache $cache_file" >&6;}
2678 >$cache_file
73ae2d4a 2679fi
57aa50d4 2680
93613951 2681gt_needs="$gt_needs "
57aa50d4
TT
2682# Check that the precious variables saved in the cache have kept the same
2683# value.
2684ac_cache_corrupted=false
2685for ac_var in $ac_precious_vars; do
2686 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2687 eval ac_new_set=\$ac_env_${ac_var}_set
2688 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2689 eval ac_new_val=\$ac_env_${ac_var}_value
2690 case $ac_old_set,$ac_new_set in
2691 set,)
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2693$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2694 ac_cache_corrupted=: ;;
2695 ,set)
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2697$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2698 ac_cache_corrupted=: ;;
2699 ,);;
2700 *)
2701 if test "x$ac_old_val" != "x$ac_new_val"; then
2702 # differences in whitespace do not lead to failure.
2703 ac_old_val_w=`echo x $ac_old_val`
2704 ac_new_val_w=`echo x $ac_new_val`
2705 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2707$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2708 ac_cache_corrupted=:
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2711$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2712 eval $ac_var=\$ac_old_val
2713 fi
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2715$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2717$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2718 fi;;
2719 esac
2720 # Pass precious variables to config.status.
2721 if test "$ac_new_set" = set; then
2722 case $ac_new_val in
2723 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2724 *) ac_arg=$ac_var=$ac_new_val ;;
2725 esac
2726 case " $ac_configure_args " in
2727 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2728 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2729 esac
2730 fi
2731done
2732if $ac_cache_corrupted; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2736$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d6a4bcb5 2737 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
73ae2d4a 2738fi
57aa50d4
TT
2739## -------------------- ##
2740## Main body of script. ##
2741## -------------------- ##
2742
2743ac_ext=c
2744ac_cpp='$CPP $CPPFLAGS'
2745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748
2749
2750
2751ac_aux_dir=
2752for ac_dir in config "$srcdir"/config; do
d6a4bcb5
TB
2753 if test -f "$ac_dir/install-sh"; then
2754 ac_aux_dir=$ac_dir
2755 ac_install_sh="$ac_aux_dir/install-sh -c"
2756 break
2757 elif test -f "$ac_dir/install.sh"; then
2758 ac_aux_dir=$ac_dir
2759 ac_install_sh="$ac_aux_dir/install.sh -c"
2760 break
2761 elif test -f "$ac_dir/shtool"; then
2762 ac_aux_dir=$ac_dir
2763 ac_install_sh="$ac_aux_dir/shtool install -c"
2764 break
2765 fi
57aa50d4
TT
2766done
2767if test -z "$ac_aux_dir"; then
d6a4bcb5 2768 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
73ae2d4a 2769fi
57aa50d4
TT
2770
2771# These three variables are undocumented and unsupported,
2772# and are intended to be withdrawn in a future Autoconf release.
2773# They can cause serious problems if a builder's source tree is in a directory
2774# whose full name contains unusual characters.
2775ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2776ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2777ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2778
2779
d1154eb4
TT
2780ac_config_headers="$ac_config_headers lib/config.h"
2781
2782
57aa50d4
TT
2783MCONFIG=./MCONFIG
2784
2785BINARY_TYPE=bin
2786E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2787 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
5ce368f0
DW
2788E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2789 | tr \" " " | awk '{print $1}'`
2790E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2791MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2792YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
57aa50d4
TT
2793
2794if expr $YEAR ">" 1900 > /dev/null ; then
2795 E2FSPROGS_YEAR=$YEAR
2796elif expr $YEAR ">" 90 >/dev/null ; then
2797 E2FSPROGS_YEAR=19$YEAR
73ae2d4a 2798else
57aa50d4
TT
2799 E2FSPROGS_YEAR=20$YEAR
2800fi
2801
2802case $MONTH in
2803Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2804Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2805Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2806Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2807May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2808Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2809Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2810Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2811Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2812Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2813Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2814Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2815*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2816$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2817esac
2818
2819base_ver=`echo $E2FSPROGS_VERSION | \
2820 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2821
2822date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2823
2824case $E2FSPROGS_VERSION in
2825*-WIP|pre-*)
2ab53829 2826 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
57aa50d4
TT
2827 ;;
2828*)
2829 E2FSPROGS_PKGVER="$base_ver"
2830 ;;
2831esac
2832
2833unset DATE MONTH YEAR base_ver pre_vers date_spec
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2835$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2837$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2838
2839
2840
2841
2842
5ce368f0 2843
6c59a665
TT
2844WITH_DIET_LIBC=
2845
2846# Check whether --with-diet-libc was given.
2847if test "${with_diet_libc+set}" = set; then :
2848 withval=$with_diet_libc; CC="diet cc -nostdinc"
2849WITH_DIET_LIBC=yes
2850if test -z "$LIBS"
2851then
2852 LIBS="-lcompat"
2853else
2854 LIBS="$LIBS -lcompat"
2855fi
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2857$as_echo "CC=$CC" >&6; }
2858fi
57aa50d4
TT
2859# Make sure we can run config.sub.
2860$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d6a4bcb5 2861 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
57aa50d4
TT
2862
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2864$as_echo_n "checking build system type... " >&6; }
d6a4bcb5 2865if ${ac_cv_build+:} false; then :
57aa50d4
TT
2866 $as_echo_n "(cached) " >&6
2867else
2868 ac_build_alias=$build_alias
2869test "x$ac_build_alias" = x &&
2870 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2871test "x$ac_build_alias" = x &&
d6a4bcb5 2872 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
57aa50d4 2873ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d6a4bcb5 2874 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
57aa50d4 2875
73ae2d4a 2876fi
57aa50d4
TT
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2878$as_echo "$ac_cv_build" >&6; }
2879case $ac_cv_build in
2880*-*-*) ;;
d6a4bcb5 2881*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
57aa50d4
TT
2882esac
2883build=$ac_cv_build
2884ac_save_IFS=$IFS; IFS='-'
2885set x $ac_cv_build
2886shift
2887build_cpu=$1
2888build_vendor=$2
2889shift; shift
2890# Remember, the first character of IFS is used to create $*,
2891# except with old shells:
2892build_os=$*
2893IFS=$ac_save_IFS
2894case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
73ae2d4a 2895
e1052144 2896
57aa50d4
TT
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2898$as_echo_n "checking host system type... " >&6; }
d6a4bcb5 2899if ${ac_cv_host+:} false; then :
57aa50d4
TT
2900 $as_echo_n "(cached) " >&6
2901else
2902 if test "x$host_alias" = x; then
2903 ac_cv_host=$ac_cv_build
2904else
2905 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d6a4bcb5 2906 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b0cacab0 2907fi
57aa50d4
TT
2908
2909fi
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2911$as_echo "$ac_cv_host" >&6; }
2912case $ac_cv_host in
2913*-*-*) ;;
d6a4bcb5 2914*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
57aa50d4
TT
2915esac
2916host=$ac_cv_host
2917ac_save_IFS=$IFS; IFS='-'
2918set x $ac_cv_host
2919shift
2920host_cpu=$1
2921host_vendor=$2
2922shift; shift
2923# Remember, the first character of IFS is used to create $*,
2924# except with old shells:
2925host_os=$*
2926IFS=$ac_save_IFS
2927case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2928
2929
2930DLOPEN_LIB=''
2931ac_ext=c
2932ac_cpp='$CPP $CPPFLAGS'
2933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2938set dummy ${ac_tool_prefix}gcc; ac_word=$2
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2940$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2941if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 2942 $as_echo_n "(cached) " >&6
73ae2d4a
TT
2943else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946else
b0cacab0
TT
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
57aa50d4 2952 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2954 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
2956 break 2
2957 fi
2958done
57aa50d4 2959 done
e1052144 2960IFS=$as_save_IFS
b0cacab0 2961
73ae2d4a
TT
2962fi
2963fi
b0cacab0 2964CC=$ac_cv_prog_CC
73ae2d4a 2965if test -n "$CC"; then
57aa50d4 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
39fd3d4f 2967$as_echo "$CC" >&6; }
73ae2d4a 2968else
57aa50d4 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 2970$as_echo "no" >&6; }
73ae2d4a 2971fi
b0cacab0 2972
e1052144 2973
b0cacab0 2974fi
57aa50d4 2975if test -z "$ac_cv_prog_CC"; then
b0cacab0 2976 ac_ct_CC=$CC
57aa50d4
TT
2977 # Extract the first word of "gcc", so it can be a program name with args.
2978set dummy gcc; ac_word=$2
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2980$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2981if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 2982 $as_echo_n "(cached) " >&6
b0cacab0
TT
2983else
2984 if test -n "$ac_ct_CC"; then
2985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986else
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
57aa50d4 2992 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2994 ac_cv_prog_ac_ct_CC="gcc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0 2996 break 2
93636bde 2997 fi
b0cacab0 2998done
57aa50d4 2999 done
e1052144 3000IFS=$as_save_IFS
b0cacab0
TT
3001
3002fi
3003fi
3004ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005if test -n "$ac_ct_CC"; then
57aa50d4 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
39fd3d4f 3007$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3008else
57aa50d4 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 3010$as_echo "no" >&6; }
07a0db15 3011fi
73ae2d4a 3012
e1052144
TT
3013 if test "x$ac_ct_CC" = x; then
3014 CC=""
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017yes:)
57aa50d4 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39fd3d4f 3019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
e1052144
TT
3020ac_tool_warned=yes ;;
3021esac
3022 CC=$ac_ct_CC
3023 fi
57aa50d4
TT
3024else
3025 CC="$ac_cv_prog_CC"
b0cacab0
TT
3026fi
3027
57aa50d4
TT
3028if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3031set dummy ${ac_tool_prefix}cc; ac_word=$2
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3034if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3035 $as_echo_n "(cached) " >&6
3036else
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3047 ac_cv_prog_CC="${ac_tool_prefix}cc"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051done
3052 done
3053IFS=$as_save_IFS
3054
3055fi
3056fi
3057CC=$ac_cv_prog_CC
3058if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060$as_echo "$CC" >&6; }
3061else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063$as_echo "no" >&6; }
3064fi
3065
3066
3067 fi
3068fi
3069if test -z "$CC"; then
3070 # Extract the first word of "cc", so it can be a program name with args.
3071set dummy cc; ac_word=$2
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3074if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3075 $as_echo_n "(cached) " >&6
3076else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079else
3080 ac_prog_rejected=no
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3088 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3089 ac_prog_rejected=yes
3090 continue
3091 fi
3092 ac_cv_prog_CC="cc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096done
3097 done
3098IFS=$as_save_IFS
3099
3100if test $ac_prog_rejected = yes; then
3101 # We found a bogon in the path, so make sure we never use it.
3102 set dummy $ac_cv_prog_CC
3103 shift
3104 if test $# != 0; then
3105 # We chose a different compiler from the bogus one.
3106 # However, it has the same basename, so the bogon will be chosen
3107 # first if we set CC to just the basename; use the full file name.
3108 shift
3109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3110 fi
3111fi
3112fi
3113fi
3114CC=$ac_cv_prog_CC
3115if test -n "$CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117$as_echo "$CC" >&6; }
3118else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120$as_echo "no" >&6; }
3121fi
3122
3123
3124fi
3125if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 for ac_prog in cl.exe
3128 do
3129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3133if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3134 $as_echo_n "(cached) " >&6
3135else
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3138else
3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140for as_dir in $PATH
3141do
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3149 fi
3150done
3151 done
3152IFS=$as_save_IFS
3153
3154fi
3155fi
3156CC=$ac_cv_prog_CC
3157if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159$as_echo "$CC" >&6; }
3160else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162$as_echo "no" >&6; }
3163fi
3164
3165
3166 test -n "$CC" && break
3167 done
3168fi
3169if test -z "$CC"; then
3170 ac_ct_CC=$CC
3171 for ac_prog in cl.exe
3172do
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174set dummy $ac_prog; ac_word=$2
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3177if ${ac_cv_prog_ac_ct_CC+:} false; then :
57aa50d4
TT
3178 $as_echo_n "(cached) " >&6
3179else
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182else
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3190 ac_cv_prog_ac_ct_CC="$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194done
3195 done
3196IFS=$as_save_IFS
3197
3198fi
3199fi
3200ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201if test -n "$ac_ct_CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203$as_echo "$ac_ct_CC" >&6; }
3204else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207fi
3208
3209
3210 test -n "$ac_ct_CC" && break
3211done
3212
3213 if test "x$ac_ct_CC" = x; then
3214 CC=""
3215 else
3216 case $cross_compiling:$ac_tool_warned in
3217yes:)
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220ac_tool_warned=yes ;;
3221esac
3222 CC=$ac_ct_CC
3223 fi
3224fi
3225
3226fi
3227
3228
3229test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3231as_fn_error $? "no acceptable C compiler found in \$PATH
3232See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
3233
3234# Provide some information about the compiler.
57aa50d4 3235$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
39fd3d4f
SJR
3236set X $ac_compile
3237ac_compiler=$2
57aa50d4
TT
3238for ac_option in --version -v -V -qversion; do
3239 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
3240case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243esac
57aa50d4
TT
3244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245$as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 3247 ac_status=$?
57aa50d4
TT
3248 if test -s conftest.err; then
3249 sed '10a\
3250... rest of stderr output deleted ...
3251 10q' conftest.err >conftest.er1
3252 cat conftest.er1 >&5
57aa50d4 3253 fi
61ef2474 3254 rm -f conftest.er1 conftest.err
57aa50d4
TT
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }
3257done
b0cacab0 3258
57aa50d4 3259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3260/* end confdefs.h. */
61ef2474 3261
b0cacab0
TT
3262int
3263main ()
3264{
3265
3266 ;
3267 return 0;
3268}
3269_ACEOF
3270ac_clean_files_save=$ac_clean_files
61ef2474 3271ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b0cacab0
TT
3272# Try to create an executable without -o first, disregard a.out.
3273# It will help us diagnose broken compilers, and finding out an intuition
3274# of exeext.
61ef2474
TT
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3276$as_echo_n "checking whether the C compiler works... " >&6; }
39fd3d4f
SJR
3277ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3278
3279# The possible output files:
3280ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3281
e1052144
TT
3282ac_rmfiles=
3283for ac_file in $ac_files
3284do
3285 case $ac_file in
39fd3d4f 3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
e1052144
TT
3287 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3288 esac
3289done
3290rm -f $ac_rmfiles
3291
57aa50d4 3292if { { ac_try="$ac_link_default"
e1052144
TT
3293case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296esac
57aa50d4
TT
3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298$as_echo "$ac_try_echo"; } >&5
e1052144 3299 (eval "$ac_link_default") 2>&5
b0cacab0 3300 ac_status=$?
57aa50d4
TT
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }; then :
e1052144
TT
3303 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3304# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3305# in a Makefile. We should not override ac_cv_exeext if it was cached,
3306# so that the user can short-circuit this test for compilers unknown to
3307# Autoconf.
29a5deed 3308for ac_file in $ac_files ''
b0cacab0
TT
3309do
3310 test -f "$ac_file" || continue
3311 case $ac_file in
39fd3d4f 3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b0cacab0
TT
3313 ;;
3314 [ab].out )
3315 # We found the default executable, but exeext='' is most
3316 # certainly right.
3317 break;;
3318 *.* )
57aa50d4 3319 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
e1052144
TT
3320 then :; else
3321 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 fi
3323 # We set ac_cv_exeext here because the later test for it is not
3324 # safe: cross compilers may not add the suffix if given an `-o'
3325 # argument, so we may need to know it at that point already.
3326 # Even if this section looks crufty: it has the advantage of
3327 # actually working.
b0cacab0
TT
3328 break;;
3329 * )
3330 break;;
3331 esac
3332done
e1052144
TT
3333test "$ac_cv_exeext" = no && ac_cv_exeext=
3334
b0cacab0 3335else
29a5deed
TT
3336 ac_file=''
3337fi
57aa50d4 3338if test -z "$ac_file"; then :
61ef2474
TT
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340$as_echo "no" >&6; }
3341$as_echo "$as_me: failed program was:" >&5
b0cacab0
TT
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
57aa50d4 3344{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3346as_fn_error 77 "C compiler cannot create executables
3347See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3348else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350$as_echo "yes" >&6; }
b0cacab0 3351fi
61ef2474
TT
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3353$as_echo_n "checking for C compiler default output file name... " >&6; }
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3355$as_echo "$ac_file" >&6; }
b0cacab0 3356ac_exeext=$ac_cv_exeext
b0cacab0 3357
61ef2474 3358rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b0cacab0 3359ac_clean_files=$ac_clean_files_save
57aa50d4 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
39fd3d4f 3361$as_echo_n "checking for suffix of executables... " >&6; }
57aa50d4 3362if { { ac_try="$ac_link"
e1052144
TT
3363case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366esac
57aa50d4
TT
3367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368$as_echo "$ac_try_echo"; } >&5
e1052144 3369 (eval "$ac_link") 2>&5
b0cacab0 3370 ac_status=$?
57aa50d4
TT
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; then :
b0cacab0
TT
3373 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3374# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3375# work properly (i.e., refer to `conftest.exe'), while it won't with
3376# `rm'.
3377for ac_file in conftest.exe conftest conftest.*; do
3378 test -f "$ac_file" || continue
3379 case $ac_file in
39fd3d4f 3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b0cacab0 3381 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b0cacab0
TT
3382 break;;
3383 * ) break;;
3384 esac
3385done
73ae2d4a 3386else
57aa50d4 3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3389as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3390See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3391fi
61ef2474 3392rm -f conftest conftest$ac_cv_exeext
57aa50d4 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
39fd3d4f 3394$as_echo "$ac_cv_exeext" >&6; }
73ae2d4a 3395
b0cacab0
TT
3396rm -f conftest.$ac_ext
3397EXEEXT=$ac_cv_exeext
3398ac_exeext=$EXEEXT
61ef2474
TT
3399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400/* end confdefs.h. */
3401#include <stdio.h>
3402int
3403main ()
3404{
3405FILE *f = fopen ("conftest.out", "w");
3406 return ferror (f) || fclose (f) != 0;
3407
3408 ;
3409 return 0;
3410}
3411_ACEOF
3412ac_clean_files="$ac_clean_files conftest.out"
3413# Check that the compiler produces executables we can run. If not, either
3414# the compiler is broken, or we cross compile.
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3416$as_echo_n "checking whether we are cross compiling... " >&6; }
3417if test "$cross_compiling" != yes; then
3418 { { ac_try="$ac_link"
3419case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422esac
3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424$as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_link") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }
3429 if { ac_try='./conftest$ac_cv_exeext'
3430 { { case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433esac
3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_try") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; }; then
3440 cross_compiling=no
3441 else
3442 if test "$cross_compiling" = maybe; then
3443 cross_compiling=yes
3444 else
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5 3447as_fn_error $? "cannot run C compiled programs.
61ef2474 3448If you meant to cross compile, use \`--host'.
d6a4bcb5 3449See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3450 fi
3451 fi
3452fi
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3454$as_echo "$cross_compiling" >&6; }
3455
3456rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3457ac_clean_files=$ac_clean_files_save
57aa50d4 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
39fd3d4f 3459$as_echo_n "checking for suffix of object files... " >&6; }
d6a4bcb5 3460if ${ac_cv_objext+:} false; then :
39fd3d4f 3461 $as_echo_n "(cached) " >&6
73ae2d4a 3462else
57aa50d4 3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3464/* end confdefs.h. */
07a0db15 3465
b0cacab0
TT
3466int
3467main ()
3468{
07a0db15 3469
b0cacab0
TT
3470 ;
3471 return 0;
3472}
3473_ACEOF
3474rm -f conftest.o conftest.obj
57aa50d4 3475if { { ac_try="$ac_compile"
e1052144
TT
3476case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479esac
57aa50d4
TT
3480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481$as_echo "$ac_try_echo"; } >&5
e1052144 3482 (eval "$ac_compile") 2>&5
b0cacab0 3483 ac_status=$?
57aa50d4
TT
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
e1052144
TT
3486 for ac_file in conftest.o conftest.obj conftest.*; do
3487 test -f "$ac_file" || continue;
b0cacab0 3488 case $ac_file in
39fd3d4f 3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b0cacab0
TT
3490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491 break;;
3492 esac
3493done
93636bde 3494else
39fd3d4f 3495 $as_echo "$as_me: failed program was:" >&5
b0cacab0 3496sed 's/^/| /' conftest.$ac_ext >&5
07a0db15 3497
57aa50d4 3498{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3500as_fn_error $? "cannot compute suffix of object files: cannot compile
3501See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3502fi
b0cacab0 3503rm -f conftest.$ac_cv_objext conftest.$ac_ext
73ae2d4a 3504fi
57aa50d4 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
39fd3d4f 3506$as_echo "$ac_cv_objext" >&6; }
b0cacab0
TT
3507OBJEXT=$ac_cv_objext
3508ac_objext=$OBJEXT
57aa50d4 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
39fd3d4f 3510$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 3511if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 3512 $as_echo_n "(cached) " >&6
b0cacab0 3513else
57aa50d4 3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3515/* end confdefs.h. */
3516
3517int
3518main ()
3519{
3520#ifndef __GNUC__
3521 choke me
3522#endif
3523
3524 ;
3525 return 0;
3526}
3527_ACEOF
57aa50d4 3528if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0
TT
3529 ac_compiler_gnu=yes
3530else
57aa50d4 3531 ac_compiler_gnu=no
b0cacab0 3532fi
e1052144 3533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0
TT
3534ac_cv_c_compiler_gnu=$ac_compiler_gnu
3535
3536fi
57aa50d4 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
39fd3d4f
SJR
3538$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3539if test $ac_compiler_gnu = yes; then
3540 GCC=yes
3541else
3542 GCC=
3543fi
b0cacab0
TT
3544ac_test_CFLAGS=${CFLAGS+set}
3545ac_save_CFLAGS=$CFLAGS
57aa50d4 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
39fd3d4f 3547$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 3548if ${ac_cv_prog_cc_g+:} false; then :
39fd3d4f 3549 $as_echo_n "(cached) " >&6
b0cacab0 3550else
e1052144
TT
3551 ac_save_c_werror_flag=$ac_c_werror_flag
3552 ac_c_werror_flag=yes
3553 ac_cv_prog_cc_g=no
3554 CFLAGS="-g"
57aa50d4 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3556/* end confdefs.h. */
3557
3558int
3559main ()
3560{
3561
3562 ;
3563 return 0;
3564}
3565_ACEOF
57aa50d4 3566if ac_fn_c_try_compile "$LINENO"; then :
e1052144
TT
3567 ac_cv_prog_cc_g=yes
3568else
57aa50d4
TT
3569 CFLAGS=""
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 3582
57aa50d4
TT
3583else
3584 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 3585 CFLAGS="-g"
57aa50d4 3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3587/* end confdefs.h. */
3588
3589int
3590main ()
3591{
3592
3593 ;
3594 return 0;
3595}
3596_ACEOF
57aa50d4 3597if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0 3598 ac_cv_prog_cc_g=yes
e1052144 3599fi
e1052144
TT
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601fi
e1052144 3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0 3603fi
e1052144
TT
3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_c_werror_flag=$ac_save_c_werror_flag
b0cacab0 3606fi
57aa50d4 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
39fd3d4f 3608$as_echo "$ac_cv_prog_cc_g" >&6; }
b0cacab0
TT
3609if test "$ac_test_CFLAGS" = set; then
3610 CFLAGS=$ac_save_CFLAGS
3611elif test $ac_cv_prog_cc_g = yes; then
3612 if test "$GCC" = yes; then
3613 CFLAGS="-g -O2"
3614 else
3615 CFLAGS="-g"
3616 fi
73ae2d4a
TT
3617else
3618 if test "$GCC" = yes; then
3619 CFLAGS="-O2"
3620 else
3621 CFLAGS=
3622 fi
3623fi
57aa50d4 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
39fd3d4f 3625$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 3626if ${ac_cv_prog_cc_c89+:} false; then :
39fd3d4f 3627 $as_echo_n "(cached) " >&6
b0cacab0 3628else
e1052144 3629 ac_cv_prog_cc_c89=no
b0cacab0 3630ac_save_CC=$CC
57aa50d4 3631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3632/* end confdefs.h. */
3633#include <stdarg.h>
3634#include <stdio.h>
d6a4bcb5 3635struct stat;
b0cacab0
TT
3636/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3637struct buf { int x; };
3638FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639static char *e (p, i)
3640 char **p;
3641 int i;
3642{
3643 return p[i];
3644}
3645static char *f (char * (*g) (char **, int), char **p, ...)
3646{
3647 char *s;
3648 va_list v;
3649 va_start (v,p);
3650 s = g (p, va_arg (v,int));
3651 va_end (v);
3652 return s;
3653}
3654
3655/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3656 function prototypes and stuff, but not '\xHH' hex character constants.
3657 These don't provoke an error unfortunately, instead are silently treated
e1052144 3658 as 'x'. The following induces an error, until -std is added to get
b0cacab0
TT
3659 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3660 array size at least. It's necessary to write '\x00'==0 to get something
e1052144 3661 that's true only with -std. */
b0cacab0
TT
3662int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3663
e1052144
TT
3664/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665 inside strings and character constants. */
3666#define FOO(x) 'x'
3667int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3668
b0cacab0
TT
3669int test (int i, double x);
3670struct s1 {int (*f) (int a);};
3671struct s2 {int (*f) (double a);};
3672int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673int argc;
3674char **argv;
3675int
3676main ()
3677{
3678return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3679 ;
3680 return 0;
3681}
3682_ACEOF
e1052144
TT
3683for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b0cacab0
TT
3685do
3686 CC="$ac_save_CC $ac_arg"
57aa50d4 3687 if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3688 ac_cv_prog_cc_c89=$ac_arg
b0cacab0 3689fi
e1052144
TT
3690rm -f core conftest.err conftest.$ac_objext
3691 test "x$ac_cv_prog_cc_c89" != "xno" && break
b0cacab0 3692done
e1052144 3693rm -f conftest.$ac_ext
b0cacab0
TT
3694CC=$ac_save_CC
3695
3696fi
e1052144
TT
3697# AC_CACHE_VAL
3698case "x$ac_cv_prog_cc_c89" in
3699 x)
57aa50d4 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
39fd3d4f 3701$as_echo "none needed" >&6; } ;;
e1052144 3702 xno)
57aa50d4 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
39fd3d4f 3704$as_echo "unsupported" >&6; } ;;
b0cacab0 3705 *)
e1052144 3706 CC="$CC $ac_cv_prog_cc_c89"
57aa50d4 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
39fd3d4f 3708$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b0cacab0 3709esac
57aa50d4 3710if test "x$ac_cv_prog_cc_c89" != xno; then :
b0cacab0 3711
57aa50d4 3712fi
b0cacab0 3713
b0cacab0
TT
3714ac_ext=c
3715ac_cpp='$CPP $CPPFLAGS'
3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
57aa50d4
TT
3720
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3722$as_echo_n "checking for dlopen in -ldl... " >&6; }
d6a4bcb5 3723if ${ac_cv_lib_dl_dlopen+:} false; then :
39fd3d4f 3724 $as_echo_n "(cached) " >&6
b0cacab0 3725else
57aa50d4
TT
3726 ac_check_lib_save_LIBS=$LIBS
3727LIBS="-ldl $LIBS"
3728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3729/* end confdefs.h. */
57aa50d4
TT
3730
3731/* Override any GCC internal prototype to avoid an error.
3732 Use char because int might match the return type of a GCC
3733 builtin and then its argument prototype would still apply. */
3734#ifdef __cplusplus
3735extern "C"
b0cacab0 3736#endif
57aa50d4
TT
3737char dlopen ();
3738int
3739main ()
3740{
3741return dlopen ();
3742 ;
3743 return 0;
3744}
b0cacab0 3745_ACEOF
57aa50d4
TT
3746if ac_fn_c_try_link "$LINENO"; then :
3747 ac_cv_lib_dl_dlopen=yes
b0cacab0 3748else
57aa50d4 3749 ac_cv_lib_dl_dlopen=no
b0cacab0 3750fi
57aa50d4
TT
3751rm -f core conftest.err conftest.$ac_objext \
3752 conftest$ac_exeext conftest.$ac_ext
3753LIBS=$ac_check_lib_save_LIBS
b0cacab0 3754fi
57aa50d4
TT
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3756$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d6a4bcb5 3757if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
57aa50d4 3758 DLOPEN_LIB=-ldl
b0cacab0
TT
3759fi
3760
b0cacab0 3761
e1052144 3762
57aa50d4
TT
3763# Check whether --with-cc was given.
3764if test "${with_cc+set}" = set; then :
d6a4bcb5 3765 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
57aa50d4 3766fi
b0cacab0 3767
b0cacab0 3768
57aa50d4
TT
3769# Check whether --with-ccopts was given.
3770if test "${with_ccopts+set}" = set; then :
d6a4bcb5 3771 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
b0cacab0 3772fi
e1052144 3773
b0cacab0 3774
57aa50d4
TT
3775# Check whether --with-ldopts was given.
3776if test "${with_ldopts+set}" = set; then :
d6a4bcb5 3777 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
b0cacab0
TT
3778fi
3779
3780ac_ext=c
3781ac_cpp='$CPP $CPPFLAGS'
3782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784ac_compiler_gnu=$ac_cv_c_compiler_gnu
57aa50d4
TT
3785if test -n "$ac_tool_prefix"; then
3786 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3787set dummy ${ac_tool_prefix}gcc; ac_word=$2
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3790if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 3791 $as_echo_n "(cached) " >&6
e1052144 3792else
57aa50d4
TT
3793 if test -n "$CC"; then
3794 ac_cv_prog_CC="$CC" # Let the user override the test.
3795else
3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
e1052144
TT
3798do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
39fd3d4f 3801 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3803 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
3806 fi
e1052144 3807done
57aa50d4 3808 done
e1052144 3809IFS=$as_save_IFS
e1052144 3810
e1052144 3811fi
57aa50d4
TT
3812fi
3813CC=$ac_cv_prog_CC
3814if test -n "$CC"; then
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3816$as_echo "$CC" >&6; }
3817else
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819$as_echo "no" >&6; }
3820fi
e1052144
TT
3821
3822
57aa50d4
TT
3823fi
3824if test -z "$ac_cv_prog_CC"; then
3825 ac_ct_CC=$CC
3826 # Extract the first word of "gcc", so it can be a program name with args.
3827set dummy gcc; ac_word=$2
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3830if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 3831 $as_echo_n "(cached) " >&6
e1052144 3832else
57aa50d4
TT
3833 if test -n "$ac_ct_CC"; then
3834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
e1052144
TT
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
39fd3d4f 3841 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3843 ac_cv_prog_ac_ct_CC="gcc"
3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
e1052144 3847done
57aa50d4 3848 done
e1052144 3849IFS=$as_save_IFS
b0cacab0 3850
e1052144 3851fi
57aa50d4
TT
3852fi
3853ac_ct_CC=$ac_cv_prog_ac_ct_CC
3854if test -n "$ac_ct_CC"; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3856$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3857else
57aa50d4
TT
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859$as_echo "no" >&6; }
3860fi
b0cacab0 3861
57aa50d4
TT
3862 if test "x$ac_ct_CC" = x; then
3863 CC=""
3864 else
3865 case $cross_compiling:$ac_tool_warned in
3866yes:)
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3869ac_tool_warned=yes ;;
e1052144 3870esac
57aa50d4
TT
3871 CC=$ac_ct_CC
3872 fi
b0cacab0 3873else
57aa50d4 3874 CC="$ac_cv_prog_CC"
b0cacab0 3875fi
e1052144 3876
57aa50d4
TT
3877if test -z "$CC"; then
3878 if test -n "$ac_tool_prefix"; then
3879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3880set dummy ${ac_tool_prefix}cc; ac_word=$2
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3883if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3884 $as_echo_n "(cached) " >&6
a64c9c13 3885else
57aa50d4
TT
3886 if test -n "$CC"; then
3887 ac_cv_prog_CC="$CC" # Let the user override the test.
3888else
3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH
3891do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3896 ac_cv_prog_CC="${ac_tool_prefix}cc"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3899 fi
3900done
3901 done
3902IFS=$as_save_IFS
b0cacab0 3903
a64c9c13 3904fi
57aa50d4
TT
3905fi
3906CC=$ac_cv_prog_CC
3907if test -n "$CC"; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909$as_echo "$CC" >&6; }
b0cacab0 3910else
57aa50d4
TT
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912$as_echo "no" >&6; }
a64c9c13 3913fi
b0cacab0 3914
b0cacab0 3915
57aa50d4
TT
3916 fi
3917fi
3918if test -z "$CC"; then
3919 # Extract the first word of "cc", so it can be a program name with args.
3920set dummy cc; ac_word=$2
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3923if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3924 $as_echo_n "(cached) " >&6
a64c9c13 3925else
57aa50d4
TT
3926 if test -n "$CC"; then
3927 ac_cv_prog_CC="$CC" # Let the user override the test.
a64c9c13 3928else
57aa50d4
TT
3929 ac_prog_rejected=no
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3937 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3938 ac_prog_rejected=yes
3939 continue
3940 fi
3941 ac_cv_prog_CC="cc"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3944 fi
3945done
3946 done
3947IFS=$as_save_IFS
b0cacab0 3948
57aa50d4
TT
3949if test $ac_prog_rejected = yes; then
3950 # We found a bogon in the path, so make sure we never use it.
3951 set dummy $ac_cv_prog_CC
3952 shift
3953 if test $# != 0; then
3954 # We chose a different compiler from the bogus one.
3955 # However, it has the same basename, so the bogon will be chosen
3956 # first if we set CC to just the basename; use the full file name.
3957 shift
3958 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3959 fi
b0cacab0 3960fi
b0cacab0
TT
3961fi
3962fi
57aa50d4
TT
3963CC=$ac_cv_prog_CC
3964if test -n "$CC"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3966$as_echo "$CC" >&6; }
3967else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969$as_echo "no" >&6; }
b0cacab0 3970fi
b0cacab0 3971
b0cacab0
TT
3972
3973fi
57aa50d4
TT
3974if test -z "$CC"; then
3975 if test -n "$ac_tool_prefix"; then
3976 for ac_prog in cl.exe
3977 do
3978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3982if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3983 $as_echo_n "(cached) " >&6
3984else
3985 if test -n "$CC"; then
3986 ac_cv_prog_CC="$CC" # Let the user override the test.
3987else
3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH
3990do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999done
4000 done
4001IFS=$as_save_IFS
b0cacab0 4002
57aa50d4
TT
4003fi
4004fi
4005CC=$ac_cv_prog_CC
4006if test -n "$CC"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4008$as_echo "$CC" >&6; }
4009else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011$as_echo "no" >&6; }
4012fi
b0cacab0
TT
4013
4014
57aa50d4
TT
4015 test -n "$CC" && break
4016 done
4017fi
4018if test -z "$CC"; then
4019 ac_ct_CC=$CC
4020 for ac_prog in cl.exe
b0cacab0 4021do
57aa50d4
TT
4022 # Extract the first word of "$ac_prog", so it can be a program name with args.
4023set dummy $ac_prog; ac_word=$2
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 4026if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 4027 $as_echo_n "(cached) " >&6
b0cacab0 4028else
57aa50d4
TT
4029 if test -n "$ac_ct_CC"; then
4030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b0cacab0 4031else
57aa50d4
TT
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 4038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
4039 ac_cv_prog_ac_ct_CC="$ac_prog"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4042 fi
4043done
4044 done
4045IFS=$as_save_IFS
b0cacab0 4046
b0cacab0 4047fi
b0cacab0 4048fi
57aa50d4
TT
4049ac_ct_CC=$ac_cv_prog_ac_ct_CC
4050if test -n "$ac_ct_CC"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4052$as_echo "$ac_ct_CC" >&6; }
4053else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055$as_echo "no" >&6; }
b0cacab0
TT
4056fi
4057
b0cacab0 4058
57aa50d4
TT
4059 test -n "$ac_ct_CC" && break
4060done
b0cacab0 4061
57aa50d4
TT
4062 if test "x$ac_ct_CC" = x; then
4063 CC=""
4064 else
4065 case $cross_compiling:$ac_tool_warned in
4066yes:)
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4069ac_tool_warned=yes ;;
e1052144 4070esac
57aa50d4
TT
4071 CC=$ac_ct_CC
4072 fi
4073fi
b0cacab0 4074
b0cacab0 4075fi
e1052144 4076
b0cacab0 4077
57aa50d4
TT
4078test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4080as_fn_error $? "no acceptable C compiler found in \$PATH
4081See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
4082
4083# Provide some information about the compiler.
4084$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4085set X $ac_compile
4086ac_compiler=$2
4087for ac_option in --version -v -V -qversion; do
4088 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
4089case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092esac
57aa50d4
TT
4093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094$as_echo "$ac_try_echo"; } >&5
4095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 4096 ac_status=$?
57aa50d4
TT
4097 if test -s conftest.err; then
4098 sed '10a\
4099... rest of stderr output deleted ...
4100 10q' conftest.err >conftest.er1
4101 cat conftest.er1 >&5
57aa50d4 4102 fi
61ef2474 4103 rm -f conftest.er1 conftest.err
57aa50d4
TT
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }
4106done
e1052144 4107
57aa50d4
TT
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4109$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 4110if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 4111 $as_echo_n "(cached) " >&6
b0cacab0 4112else
57aa50d4
TT
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114/* end confdefs.h. */
b0cacab0 4115
57aa50d4
TT
4116int
4117main ()
4118{
4119#ifndef __GNUC__
4120 choke me
4121#endif
a64c9c13 4122
57aa50d4
TT
4123 ;
4124 return 0;
4125}
4126_ACEOF
4127if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_compiler_gnu=yes
b1c92f91 4129else
57aa50d4 4130 ac_compiler_gnu=no
b1c92f91 4131fi
57aa50d4
TT
4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133ac_cv_c_compiler_gnu=$ac_compiler_gnu
b0cacab0 4134
e1052144 4135fi
57aa50d4
TT
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4137$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4138if test $ac_compiler_gnu = yes; then
4139 GCC=yes
98919bdb 4140else
57aa50d4 4141 GCC=
98919bdb 4142fi
57aa50d4
TT
4143ac_test_CFLAGS=${CFLAGS+set}
4144ac_save_CFLAGS=$CFLAGS
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4146$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 4147if ${ac_cv_prog_cc_g+:} false; then :
57aa50d4 4148 $as_echo_n "(cached) " >&6
98919bdb 4149else
57aa50d4
TT
4150 ac_save_c_werror_flag=$ac_c_werror_flag
4151 ac_c_werror_flag=yes
4152 ac_cv_prog_cc_g=no
4153 CFLAGS="-g"
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155/* end confdefs.h. */
e1052144 4156
57aa50d4
TT
4157int
4158main ()
4159{
98919bdb 4160
57aa50d4
TT
4161 ;
4162 return 0;
4163}
4164_ACEOF
4165if ac_fn_c_try_compile "$LINENO"; then :
4166 ac_cv_prog_cc_g=yes
c13351f6 4167else
57aa50d4
TT
4168 CFLAGS=""
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h. */
c13351f6 4171
57aa50d4
TT
4172int
4173main ()
4174{
c13351f6 4175
57aa50d4
TT
4176 ;
4177 return 0;
4178}
4179_ACEOF
4180if ac_fn_c_try_compile "$LINENO"; then :
c13351f6 4181
57aa50d4
TT
4182else
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4184 CFLAGS="-g"
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h. */
c13351f6 4187
57aa50d4
TT
4188int
4189main ()
4190{
c13351f6 4191
57aa50d4
TT
4192 ;
4193 return 0;
4194}
b0cacab0 4195_ACEOF
57aa50d4
TT
4196if ac_fn_c_try_compile "$LINENO"; then :
4197 ac_cv_prog_cc_g=yes
1917875f 4198fi
57aa50d4 4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e1052144 4200fi
57aa50d4 4201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdc9985 4202fi
57aa50d4
TT
4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 4205fi
57aa50d4
TT
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4207$as_echo "$ac_cv_prog_cc_g" >&6; }
4208if test "$ac_test_CFLAGS" = set; then
4209 CFLAGS=$ac_save_CFLAGS
4210elif test $ac_cv_prog_cc_g = yes; then
4211 if test "$GCC" = yes; then
4212 CFLAGS="-g -O2"
4213 else
4214 CFLAGS="-g"
4215 fi
a64c9c13 4216else
57aa50d4
TT
4217 if test "$GCC" = yes; then
4218 CFLAGS="-O2"
4219 else
4220 CFLAGS=
4221 fi
a64c9c13 4222fi
57aa50d4
TT
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4224$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 4225if ${ac_cv_prog_cc_c89+:} false; then :
57aa50d4 4226 $as_echo_n "(cached) " >&6
a64c9c13 4227else
57aa50d4
TT
4228 ac_cv_prog_cc_c89=no
4229ac_save_CC=$CC
4230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231/* end confdefs.h. */
4232#include <stdarg.h>
4233#include <stdio.h>
d6a4bcb5 4234struct stat;
57aa50d4
TT
4235/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4236struct buf { int x; };
4237FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238static char *e (p, i)
4239 char **p;
4240 int i;
4241{
4242 return p[i];
4243}
4244static char *f (char * (*g) (char **, int), char **p, ...)
4245{
4246 char *s;
4247 va_list v;
4248 va_start (v,p);
4249 s = g (p, va_arg (v,int));
4250 va_end (v);
4251 return s;
4252}
e1052144 4253
57aa50d4
TT
4254/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4255 function prototypes and stuff, but not '\xHH' hex character constants.
4256 These don't provoke an error unfortunately, instead are silently treated
4257 as 'x'. The following induces an error, until -std is added to get
4258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4259 array size at least. It's necessary to write '\x00'==0 to get something
4260 that's true only with -std. */
4261int osf4_cc_array ['\x00' == 0 ? 1 : -1];
93636bde 4262
57aa50d4
TT
4263/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264 inside strings and character constants. */
4265#define FOO(x) 'x'
4266int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
a64c9c13 4267
57aa50d4
TT
4268int test (int i, double x);
4269struct s1 {int (*f) (int a);};
4270struct s2 {int (*f) (double a);};
4271int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4272int argc;
4273char **argv;
4274int
4275main ()
4276{
4277return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284do
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287 ac_cv_prog_cc_c89=$ac_arg
a64c9c13 4288fi
57aa50d4
TT
4289rm -f core conftest.err conftest.$ac_objext
4290 test "x$ac_cv_prog_cc_c89" != "xno" && break
4291done
4292rm -f conftest.$ac_ext
4293CC=$ac_save_CC
a64c9c13 4294
57aa50d4
TT
4295fi
4296# AC_CACHE_VAL
4297case "x$ac_cv_prog_cc_c89" in
4298 x)
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4300$as_echo "none needed" >&6; } ;;
4301 xno)
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303$as_echo "unsupported" >&6; } ;;
4304 *)
4305 CC="$CC $ac_cv_prog_cc_c89"
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4307$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4308esac
4309if test "x$ac_cv_prog_cc_c89" != xno; then :
a64c9c13 4310
e1052144
TT
4311fi
4312
57aa50d4
TT
4313ac_ext=c
4314ac_cpp='$CPP $CPPFLAGS'
4315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317ac_compiler_gnu=$ac_cv_c_compiler_gnu
93636bde 4318
9b3018a8
TT
4319if test "$GCC" = yes; then
4320 RDYNAMIC="-rdynamic"
4321
4322fi
57aa50d4
TT
4323ac_ext=c
4324ac_cpp='$CPP $CPPFLAGS'
4325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4329$as_echo_n "checking how to run the C preprocessor... " >&6; }
4330# On Suns, sometimes $CPP names a directory.
4331if test -n "$CPP" && test -d "$CPP"; then
4332 CPP=
4333fi
4334if test -z "$CPP"; then
d6a4bcb5 4335 if ${ac_cv_prog_CPP+:} false; then :
57aa50d4
TT
4336 $as_echo_n "(cached) " >&6
4337else
4338 # Double quotes because CPP needs to be expanded
4339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4340 do
4341 ac_preproc_ok=false
4342for ac_c_preproc_warn_flag in '' yes
4343do
4344 # Use a header file that comes with gcc, so configuring glibc
4345 # with a fresh cross-compiler works.
4346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4347 # <limits.h> exists even on freestanding compilers.
4348 # On the NeXT, cc -E runs the code through the compiler's parser,
4349 # not just through cpp. "Syntax error" is here to catch this case.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351/* end confdefs.h. */
4352#ifdef __STDC__
4353# include <limits.h>
4354#else
4355# include <assert.h>
4356#endif
4357 Syntax error
4358_ACEOF
4359if ac_fn_c_try_cpp "$LINENO"; then :
a64c9c13 4360
cdf186e4 4361else
57aa50d4
TT
4362 # Broken: fails on valid input.
4363continue
cdf186e4 4364fi
d6a4bcb5 4365rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4366
57aa50d4
TT
4367 # OK, works on sane cases. Now check whether nonexistent headers
4368 # can be detected and how.
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370/* end confdefs.h. */
4371#include <ac_nonexistent.h>
4372_ACEOF
4373if ac_fn_c_try_cpp "$LINENO"; then :
4374 # Broken: success on invalid input.
4375continue
cdf186e4 4376else
57aa50d4
TT
4377 # Passes both tests.
4378ac_preproc_ok=:
4379break
4380fi
d6a4bcb5 4381rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4382
57aa50d4
TT
4383done
4384# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4385rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4
TT
4386if $ac_preproc_ok; then :
4387 break
e1052144
TT
4388fi
4389
57aa50d4
TT
4390 done
4391 ac_cv_prog_CPP=$CPP
93636bde 4392
cdf186e4 4393fi
57aa50d4 4394 CPP=$ac_cv_prog_CPP
cdf186e4 4395else
57aa50d4 4396 ac_cv_prog_CPP=$CPP
e1052144 4397fi
57aa50d4
TT
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4399$as_echo "$CPP" >&6; }
4400ac_preproc_ok=false
4401for ac_c_preproc_warn_flag in '' yes
4402do
4403 # Use a header file that comes with gcc, so configuring glibc
4404 # with a fresh cross-compiler works.
4405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406 # <limits.h> exists even on freestanding compilers.
4407 # On the NeXT, cc -E runs the code through the compiler's parser,
4408 # not just through cpp. "Syntax error" is here to catch this case.
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410/* end confdefs.h. */
4411#ifdef __STDC__
4412# include <limits.h>
4413#else
4414# include <assert.h>
4415#endif
4416 Syntax error
b0cacab0 4417_ACEOF
57aa50d4 4418if ac_fn_c_try_cpp "$LINENO"; then :
80bfaa3e
TT
4419
4420else
57aa50d4
TT
4421 # Broken: fails on valid input.
4422continue
e1052144 4423fi
d6a4bcb5 4424rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4425
57aa50d4
TT
4426 # OK, works on sane cases. Now check whether nonexistent headers
4427 # can be detected and how.
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429/* end confdefs.h. */
4430#include <ac_nonexistent.h>
b0cacab0 4431_ACEOF
57aa50d4
TT
4432if ac_fn_c_try_cpp "$LINENO"; then :
4433 # Broken: success on invalid input.
4434continue
f0a22d0f 4435else
57aa50d4
TT
4436 # Passes both tests.
4437ac_preproc_ok=:
4438break
e1052144 4439fi
d6a4bcb5 4440rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4441
57aa50d4
TT
4442done
4443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4444rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4 4445if $ac_preproc_ok; then :
2a29f135
TT
4446
4447else
57aa50d4
TT
4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4450as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4451See \`config.log' for more details" "$LINENO" 5; }
e1052144
TT
4452fi
4453
57aa50d4
TT
4454ac_ext=c
4455ac_cpp='$CPP $CPPFLAGS'
4456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458ac_compiler_gnu=$ac_cv_c_compiler_gnu
af773654 4459
57aa50d4
TT
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4461$as_echo_n "checking for additional special compiler flags... " >&6; }
4462if test "$GCC" = yes
4463then
4464 case "$host_cpu" in
4465 alpha) addcflags="-mieee" ;;
4466 esac
14b596d4 4467fi
57aa50d4
TT
4468if test "x$addcflags" != x
4469then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4471$as_echo "$addcflags" >&6; }
4472 CFLAGS="$addcflags $CFLAGS"
14b596d4 4473else
57aa50d4
TT
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4475$as_echo "(none)" >&6; }
14b596d4
TT
4476fi
4477
93613951
TT
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4479$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4480if ${ac_cv_path_GREP+:} false; then :
4481 $as_echo_n "(cached) " >&6
57aa50d4 4482else
93613951
TT
4483 if test -z "$GREP"; then
4484 ac_path_GREP_found=false
4485 # Loop through the user's path and test for each of PROGNAME-LIST
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4488do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_prog in grep ggrep; do
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4494 as_fn_executable_p "$ac_path_GREP" || continue
4495# Check for GNU ac_path_GREP and select it if it is found.
4496 # Check for GNU $ac_path_GREP
4497case `"$ac_path_GREP" --version 2>&1` in
4498*GNU*)
4499 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4500*)
4501 ac_count=0
4502 $as_echo_n 0123456789 >"conftest.in"
4503 while :
4504 do
4505 cat "conftest.in" "conftest.in" >"conftest.tmp"
4506 mv "conftest.tmp" "conftest.in"
4507 cp "conftest.in" "conftest.nl"
4508 $as_echo 'GREP' >> "conftest.nl"
4509 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4511 as_fn_arith $ac_count + 1 && ac_count=$as_val
4512 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4513 # Best one so far, save it but keep looking for a better one
4514 ac_cv_path_GREP="$ac_path_GREP"
4515 ac_path_GREP_max=$ac_count
4516 fi
4517 # 10*(2^10) chars as input seems more than enough
4518 test $ac_count -gt 10 && break
4519 done
4520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4521esac
14b596d4 4522
93613951
TT
4523 $ac_path_GREP_found && break 3
4524 done
4525 done
4526 done
4527IFS=$as_save_IFS
4528 if test -z "$ac_cv_path_GREP"; then
4529 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4530 fi
57aa50d4 4531else
93613951
TT
4532 ac_cv_path_GREP=$GREP
4533fi
57aa50d4 4534
14b596d4 4535fi
93613951
TT
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4537$as_echo "$ac_cv_path_GREP" >&6; }
4538 GREP="$ac_cv_path_GREP"
14b596d4 4539
14b596d4 4540
93613951
TT
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4542$as_echo_n "checking for egrep... " >&6; }
4543if ${ac_cv_path_EGREP+:} false; then :
4544 $as_echo_n "(cached) " >&6
5aa6c3f6 4545else
93613951
TT
4546 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4547 then ac_cv_path_EGREP="$GREP -E"
4548 else
4549 if test -z "$EGREP"; then
4550 ac_path_EGREP_found=false
4551 # Loop through the user's path and test for each of PROGNAME-LIST
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_prog in egrep; do
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4560 as_fn_executable_p "$ac_path_EGREP" || continue
4561# Check for GNU ac_path_EGREP and select it if it is found.
4562 # Check for GNU $ac_path_EGREP
4563case `"$ac_path_EGREP" --version 2>&1` in
4564*GNU*)
4565 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4566*)
4567 ac_count=0
4568 $as_echo_n 0123456789 >"conftest.in"
4569 while :
4570 do
4571 cat "conftest.in" "conftest.in" >"conftest.tmp"
4572 mv "conftest.tmp" "conftest.in"
4573 cp "conftest.in" "conftest.nl"
4574 $as_echo 'EGREP' >> "conftest.nl"
4575 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4577 as_fn_arith $ac_count + 1 && ac_count=$as_val
4578 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4579 # Best one so far, save it but keep looking for a better one
4580 ac_cv_path_EGREP="$ac_path_EGREP"
4581 ac_path_EGREP_max=$ac_count
4582 fi
4583 # 10*(2^10) chars as input seems more than enough
4584 test $ac_count -gt 10 && break
4585 done
4586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4587esac
5aa6c3f6 4588
93613951
TT
4589 $ac_path_EGREP_found && break 3
4590 done
4591 done
4592 done
4593IFS=$as_save_IFS
4594 if test -z "$ac_cv_path_EGREP"; then
4595 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4596 fi
5aa6c3f6 4597else
93613951
TT
4598 ac_cv_path_EGREP=$EGREP
4599fi
183c73b0 4600
93613951 4601 fi
183c73b0 4602fi
93613951
TT
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4604$as_echo "$ac_cv_path_EGREP" >&6; }
4605 EGREP="$ac_cv_path_EGREP"
183c73b0
TT
4606
4607
93613951
TT
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4609$as_echo_n "checking for ANSI C header files... " >&6; }
4610if ${ac_cv_header_stdc+:} false; then :
4611 $as_echo_n "(cached) " >&6
91d11da1 4612else
93613951
TT
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614/* end confdefs.h. */
4615#include <stdlib.h>
4616#include <stdarg.h>
4617#include <string.h>
4618#include <float.h>
91d11da1 4619
93613951
TT
4620int
4621main ()
4622{
183c73b0 4623
93613951
TT
4624 ;
4625 return 0;
4626}
4627_ACEOF
4628if ac_fn_c_try_compile "$LINENO"; then :
4629 ac_cv_header_stdc=yes
183c73b0 4630else
93613951 4631 ac_cv_header_stdc=no
5aa6c3f6 4632fi
93613951 4633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5aa6c3f6 4634
93613951
TT
4635if test $ac_cv_header_stdc = yes; then
4636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638/* end confdefs.h. */
4639#include <string.h>
4640
4641_ACEOF
4642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4643 $EGREP "memchr" >/dev/null 2>&1; then :
4644
4645else
4646 ac_cv_header_stdc=no
4647fi
4648rm -f conftest*
4649
4650fi
4651
4652if test $ac_cv_header_stdc = yes; then
4653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655/* end confdefs.h. */
4656#include <stdlib.h>
4657
4658_ACEOF
4659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4660 $EGREP "free" >/dev/null 2>&1; then :
4661
4662else
4663 ac_cv_header_stdc=no
4664fi
4665rm -f conftest*
4666
4667fi
4668
4669if test $ac_cv_header_stdc = yes; then
4670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4671 if test "$cross_compiling" = yes; then :
4672 :
4673else
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675/* end confdefs.h. */
4676#include <ctype.h>
4677#include <stdlib.h>
4678#if ((' ' & 0x0FF) == 0x020)
4679# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4680# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4681#else
4682# define ISLOWER(c) \
4683 (('a' <= (c) && (c) <= 'i') \
4684 || ('j' <= (c) && (c) <= 'r') \
4685 || ('s' <= (c) && (c) <= 'z'))
4686# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4687#endif
4688
4689#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4690int
4691main ()
4692{
4693 int i;
4694 for (i = 0; i < 256; i++)
4695 if (XOR (islower (i), ISLOWER (i))
4696 || toupper (i) != TOUPPER (i))
4697 return 2;
4698 return 0;
4699}
4700_ACEOF
4701if ac_fn_c_try_run "$LINENO"; then :
4702
4703else
4704 ac_cv_header_stdc=no
4705fi
4706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4707 conftest.$ac_objext conftest.beam conftest.$ac_ext
4708fi
4709
4710fi
4711fi
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4713$as_echo "$ac_cv_header_stdc" >&6; }
4714if test $ac_cv_header_stdc = yes; then
4715
4716$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4717
4718fi
4719
4720# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4721for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4722 inttypes.h stdint.h unistd.h
4723do :
4724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4725ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4726"
4727if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4728 cat >>confdefs.h <<_ACEOF
4729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4730_ACEOF
4731
4732fi
4733
4734done
4735
4736
4737
4738 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4739if test "x$ac_cv_header_minix_config_h" = xyes; then :
4740 MINIX=yes
4741else
4742 MINIX=
4743fi
4744
4745
4746 if test "$MINIX" = yes; then
4747
4748$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4749
4750
4751$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4752
4753
4754$as_echo "#define _MINIX 1" >>confdefs.h
4755
4756 fi
4757
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4760$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4761if ${ac_cv_safe_to_define___extensions__+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763else
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h. */
4766
4767# define __EXTENSIONS__ 1
4768 $ac_includes_default
4769int
4770main ()
4771{
4772
4773 ;
4774 return 0;
4775}
4776_ACEOF
4777if ac_fn_c_try_compile "$LINENO"; then :
4778 ac_cv_safe_to_define___extensions__=yes
4779else
4780 ac_cv_safe_to_define___extensions__=no
4781fi
4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783fi
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4785$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4786 test $ac_cv_safe_to_define___extensions__ = yes &&
4787 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4788
4789 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4790
4791 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4792
4793 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4794
4795 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4796
4797
4798LIB_EXT=.a
4799STATIC_LIB_EXT=.a
4800PROFILED_LIB_EXT=.a
4801
4802# Check whether --with-root-prefix was given.
4803if test "${with_root_prefix+set}" = set; then :
4804 withval=$with_root_prefix; root_prefix=$withval
4805else
4806 root_prefix=NONE
4807fi
4808# Check whether --enable-maintainer-mode was given.
4809if test "${enable_maintainer_mode+set}" = set; then :
4810 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4811then
4812 MAINTAINER_CMT=#
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4814$as_echo "Disabling maintainer mode" >&6; }
4815else
4816 MAINTAINER_CMT=
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4818$as_echo "Enabling maintainer mode" >&6; }
4819fi
4820
4821else
4822 MAINTAINER_CMT=#
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4824$as_echo "Disabling maintainer mode by default" >&6; }
4825
4826fi
4827
4828
4829# Check whether --enable-symlink-install was given.
4830if test "${enable_symlink_install+set}" = set; then :
4831 enableval=$enable_symlink_install; if test "$enableval" = "no"
4832then
4833 LINK_INSTALL_FLAGS=-f
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4835$as_echo "Disabling symlinks for install" >&6; }
4836else
4837 LINK_INSTALL_FLAGS=-sf
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4839$as_echo "Enabling symlinks for install" >&6; }
4840fi
4841
4842else
4843 LINK_INSTALL_FLAGS=-f
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4845$as_echo "Disabling symlinks for install by default" >&6; }
4846
4847fi
4848
4849
4850relative_symlink_defined=
4851# Check whether --enable-relative-symlinks was given.
4852if test "${enable_relative_symlinks+set}" = set; then :
4853 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4854then
4855 SYMLINK_RELATIVE=
4856 relative_symlink_defined=yes
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4858$as_echo "Disabling relative symlinks for install" >&6; }
4859else
4860 SYMLINK_RELATIVE=--relative
4861 relative_symlink_defined=yes
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4863$as_echo "Enabling relative symlinks for install" >&6; }
4864fi
4865fi
4866
4867# Check whether --enable-symlink-relative-symlinks was given.
4868if test "${enable_symlink_relative_symlinks+set}" = set; then :
4869 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4870then
4871 SYMLINK_RELATIVE=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4877$as_echo "Enabling relative symlinks for install" >&6; }
4878fi
4879
4880else
4881 if test -z "$relative_symlink_defined"
4882then
4883 SYMLINK_RELATIVE=
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4885$as_echo "Disabling relative symlinks for install by default" >&6; }
4886fi
4887
4888fi
4889
4890
4891# Check whether --enable-symlink-build was given.
4892if test "${enable_symlink_build+set}" = set; then :
5aa6c3f6
TT
4893 enableval=$enable_symlink_build; if test "$enableval" = "no"
4894then
4895 LINK_BUILD_FLAGS=
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4897$as_echo "Disabling symlinks for build" >&6; }
4898else
4899 LINK_BUILD_FLAGS=-s
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4901$as_echo "Enabling symlinks for build" >&6; }
4902fi
4903
4904else
4905 LINK_BUILD_FLAGS=
183c73b0
TT
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4907$as_echo "Disabling symlinks for build by default" >&6; }
5aa6c3f6
TT
4908
4909fi
4910
4911
57aa50d4
TT
4912# Check whether --enable-verbose-makecmds was given.
4913if test "${enable_verbose_makecmds+set}" = set; then :
4914 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4915then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4917$as_echo "Disabling verbose make commands" >&6; }
4918 E=@echo
c1986ecb 4919 ES=echo
57aa50d4 4920 Q=@
14b596d4 4921else
57aa50d4
TT
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4923$as_echo "Enabling verbose make commands" >&6; }
4924 E=@\\#
c1986ecb 4925 ES=\\#
57aa50d4
TT
4926 Q=
4927fi
14b596d4 4928
14b596d4 4929else
57aa50d4
TT
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4931$as_echo "Disabling verbose make commands" >&6; }
4932E=@echo
c1986ecb 4933ES=echo
57aa50d4 4934Q=@
14b596d4 4935
14b596d4
TT
4936fi
4937
14b596d4 4938
57aa50d4 4939
c1986ecb 4940
57aa50d4
TT
4941E2_PKG_CONFIG_STATIC=--static
4942LDFLAG_DYNAMIC=
4943PRIVATE_LIBS_CMT=
4944# Check whether --enable-elf-shlibs was given.
4945if test "${enable_elf_shlibs+set}" = set; then :
4946 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
cdf186e4 4947then
57aa50d4
TT
4948 ELF_CMT=#
4949 MAKEFILE_ELF=/dev/null
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4951$as_echo "Disabling ELF shared libraries" >&6; }
cdf186e4 4952else
57aa50d4
TT
4953 E2_PKG_CONFIG_STATIC=
4954 ELF_CMT=
4955 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4956 case "$host_os" in
4957 solaris2.*)
4958 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4959 ;;
4960 esac
4961 BINARY_TYPE=elfbin
4962 LIB_EXT=.so
4963 PRIVATE_LIBS_CMT=#
4964 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4966$as_echo "Enabling ELF shared libraries" >&6; }
cdf186e4
TT
4967fi
4968
4969else
57aa50d4
TT
4970 MAKEFILE_ELF=/dev/null
4971ELF_CMT=#
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4973$as_echo "Disabling ELF shared libraries by default" >&6; }
cdf186e4 4974
e1052144
TT
4975fi
4976
cdf186e4 4977
57aa50d4
TT
4978
4979# Check whether --enable-bsd-shlibs was given.
4980if test "${enable_bsd_shlibs+set}" = set; then :
4981 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
cdf186e4 4982then
57aa50d4
TT
4983 BSDLIB_CMT=#
4984 MAKEFILE_BSDLIB=/dev/null
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4986$as_echo "Disabling BSD shared libraries" >&6; }
cdf186e4 4987else
57aa50d4
TT
4988 E2_PKG_CONFIG_STATIC=
4989 BSDLIB_CMT=
4990 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4991 LIB_EXT=.so
4992 case "$host_os" in
4993 darwin*)
4994 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4995 LIB_EXT=.dylib
4996 ;;
4997 esac
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4999$as_echo "Enabling BSD shared libraries" >&6; }
cdf186e4
TT
5000fi
5001
5002else
57aa50d4
TT
5003 MAKEFILE_BSDLIB=/dev/null
5004BSDLIB_CMT=#
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5006$as_echo "Disabling BSD shared libraries by default" >&6; }
cdf186e4 5007
e1052144
TT
5008fi
5009
cdf186e4 5010
57aa50d4
TT
5011
5012# Check whether --enable-profile was given.
5013if test "${enable_profile+set}" = set; then :
5014 enableval=$enable_profile; if test "$enableval" = "no"
cdf186e4 5015then
57aa50d4
TT
5016 PROFILE_CMT=#
5017 MAKEFILE_PROFILE=/dev/null
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5019$as_echo "Disabling profiling libraries" >&6; }
cdf186e4 5020else
57aa50d4
TT
5021 PROFILE_CMT=
5022 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5023 PROFILED_LIB_EXT=_p.a
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5025$as_echo "Building profiling libraries" >&6; }
cdf186e4
TT
5026fi
5027
5028else
57aa50d4
TT
5029 PROFILE_CMT=#
5030MAKEFILE_PROFILE=/dev/null
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5032$as_echo "Disabling profiling libraries by default" >&6; }
cdf186e4 5033
e1052144
TT
5034fi
5035
cdf186e4 5036
57aa50d4 5037
fedfb27f
TT
5038# Check whether --enable-gcov was given.
5039if test "${enable_gcov+set}" = set; then :
5040 enableval=$enable_gcov; if test "$enableval" = "yes"
5041then
5042 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5043 LDFLAGS="-fprofile-arcs -ftest-coverage"
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5045$as_echo "Enabling gcov support" >&6; }
5046fi
5047
5048fi
5049
fd1677e8
TT
5050CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5051CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5052LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5053LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5054# Check whether --enable-hardening was given.
5055if test "${enable_hardening+set}" = set; then :
5056 enableval=$enable_hardening; if test "$enableval" = "yes"
5057then
5058 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5059 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5060 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5061 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5062 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5063 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5064 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5065 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5067$as_echo "Enabling hardening support" >&6; }
5068fi
5069
5070fi
cdf186e4 5071
57aa50d4
TT
5072
5073
5074
5075
5076
5077# Check whether --enable-jbd-debug was given.
5078if test "${enable_jbd_debug+set}" = set; then :
5079 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5d40773b 5080then
57aa50d4
TT
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5082$as_echo "Disabling journal debugging" >&6; }
5d40773b 5083else
d1154eb4
TT
5084
5085$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
57aa50d4
TT
5086
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5088$as_echo "Enabling journal debugging" >&6; }
5d40773b
TT
5089fi
5090
5091else
57aa50d4
TT
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5093$as_echo "Disabling journal debugging by default" >&6; }
5d40773b 5094
e1052144
TT
5095fi
5096
57aa50d4
TT
5097# Check whether --enable-blkid-debug was given.
5098if test "${enable_blkid_debug+set}" = set; then :
5099 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3249394d 5100then
57aa50d4
TT
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5102$as_echo "Disabling blkid debugging" >&6; }
3249394d 5103else
d1154eb4
TT
5104
5105$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
57aa50d4
TT
5106
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5108$as_echo "Enabling blkid debugging" >&6; }
3249394d
TT
5109fi
5110
5111else
57aa50d4
TT
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5113$as_echo "Disabling blkid debugging by default" >&6; }
3249394d
TT
5114
5115fi
5116
57aa50d4
TT
5117# Check whether --enable-testio-debug was given.
5118if test "${enable_testio_debug+set}" = set; then :
d1154eb4
TT
5119 enableval=$enable_testio_debug;
5120if test "$enableval" = "no"
3249394d 5121then
57aa50d4
TT
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5123$as_echo "Disabling testio debugging" >&6; }
5124 TEST_IO_CMT="#"
3249394d 5125else
57aa50d4
TT
5126 TEST_IO_CMT=
5127 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5128
57aa50d4
TT
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5130$as_echo "Enabling testio debugging" >&6; }
5131fi
3249394d 5132
3249394d 5133else
57aa50d4
TT
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5135$as_echo "Enabling testio debugging by default" >&6; }
5136$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5137
57aa50d4 5138TEST_IO_CMT=
3249394d
TT
5139
5140fi
5141
3249394d 5142
b9e66a18
TT
5143# Check whether --enable-developer-features was given.
5144if test "${enable_developer_features+set}" = set; then :
5145 enableval=$enable_developer_features;
5146if test "$enableval" = "yes"
5147then
5148 DEV_FEATURES_CMT=
5149 $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
5150
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
5152$as_echo "Enabling ext4 developer features" >&6; }
5153else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
5155$as_echo "Disabling ext4 developer features" >&6; }
5156 DEV_FEATURES_CMT="#"
5157fi
5158
5159else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
5161$as_echo "Disabling ext4 developer features by default" >&6; }
5162DEV_FEATURES_CMT=
5163
5164fi
5165
5166
57aa50d4
TT
5167
5168
93613951
TT
5169
5170
5171
5172
5173
57aa50d4 5174if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5175 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5176 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5177set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5180if ${ac_cv_path_PKG_CONFIG+:} false; then :
57aa50d4
TT
5181 $as_echo_n "(cached) " >&6
5182else
5183 case $PKG_CONFIG in
5184 [\\/]* | ?:[\\/]*)
5185 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5186 ;;
5187 *)
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5195 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5198 fi
5199done
5200 done
5201IFS=$as_save_IFS
5202
5203 ;;
5204esac
5205fi
5206PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5207if test -n "$PKG_CONFIG"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5209$as_echo "$PKG_CONFIG" >&6; }
5210else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
3249394d
TT
5213fi
5214
5215
57aa50d4
TT
5216fi
5217if test -z "$ac_cv_path_PKG_CONFIG"; then
5218 ac_pt_PKG_CONFIG=$PKG_CONFIG
5219 # Extract the first word of "pkg-config", so it can be a program name with args.
5220set dummy pkg-config; ac_word=$2
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5223if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
57aa50d4
TT
5224 $as_echo_n "(cached) " >&6
5225else
5226 case $ac_pt_PKG_CONFIG in
5227 [\\/]* | ?:[\\/]*)
5228 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5229 ;;
5230 *)
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5238 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242done
5243 done
5244IFS=$as_save_IFS
3249394d 5245
57aa50d4
TT
5246 ;;
5247esac
5248fi
5249ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5250if test -n "$ac_pt_PKG_CONFIG"; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5252$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5253else
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
5256fi
3249394d 5257
57aa50d4
TT
5258 if test "x$ac_pt_PKG_CONFIG" = x; then
5259 PKG_CONFIG=""
5260 else
5261 case $cross_compiling:$ac_tool_warned in
5262yes:)
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5265ac_tool_warned=yes ;;
5266esac
5267 PKG_CONFIG=$ac_pt_PKG_CONFIG
3249394d 5268 fi
57aa50d4
TT
5269else
5270 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5271fi
3249394d
TT
5272
5273fi
57aa50d4 5274if test -n "$PKG_CONFIG"; then
93613951
TT
5275 _pkg_min_version=0.9.0
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5277$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5278 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5280$as_echo "yes" >&6; }
93613951
TT
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5283$as_echo "no" >&6; }
93613951
TT
5284 PKG_CONFIG=""
5285 fi
57aa50d4
TT
5286fi
5287LIBUUID=
5288DEPLIBUUID=
5289STATIC_LIBUUID=
5290DEPSTATIC_LIBUUID=
5291PROFILED_LIBUUID=
5292DEPPROFILED_LIBUUID=
5293UUID_CMT=
5294# Check whether --enable-libuuid was given.
5295if test "${enable_libuuid+set}" = set; then :
5296 enableval=$enable_libuuid; if test "$enableval" = "no"
5610f992 5297then
57aa50d4 5298 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5299 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5300 fi
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5303$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
d6a4bcb5 5304if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
57aa50d4 5305 $as_echo_n "(cached) " >&6
5610f992 5306else
57aa50d4 5307 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5308LIBS="-luuid $LIBS"
57aa50d4
TT
5309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h. */
5610f992 5311
57aa50d4
TT
5312/* Override any GCC internal prototype to avoid an error.
5313 Use char because int might match the return type of a GCC
5314 builtin and then its argument prototype would still apply. */
5315#ifdef __cplusplus
5316extern "C"
5317#endif
5318char uuid_generate ();
5319int
5320main ()
5321{
5322return uuid_generate ();
5323 ;
5324 return 0;
5325}
5326_ACEOF
5327if ac_fn_c_try_link "$LINENO"; then :
5328 ac_cv_lib_uuid_uuid_generate=yes
5329else
5330 ac_cv_lib_uuid_uuid_generate=no
5331fi
5332rm -f core conftest.err conftest.$ac_objext \
5333 conftest$ac_exeext conftest.$ac_ext
5334LIBS=$ac_check_lib_save_LIBS
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5337$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
d6a4bcb5 5338if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
57aa50d4
TT
5339 LIBUUID=`$PKG_CONFIG --libs uuid`;
5340 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5341else
d6a4bcb5 5342 as_fn_error $? "external uuid library not found" "$LINENO" 5
5610f992
TT
5343fi
5344
5afdf37b 5345 PROFILED_LIBUUID=$LIBUUID
57aa50d4
TT
5346 UUID_CMT=#
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5348$as_echo "Disabling private uuid library" >&6; }
5610f992 5349else
57aa50d4
TT
5350 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5351 DEPLIBUUID=$LIBUUID
5352 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5353 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5354 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5355 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5357$as_echo "Enabling private uuid library" >&6; }
5358fi
5610f992 5359
57aa50d4 5360else
f5dffb81
TT
5361 if test -n "$PKG_CONFIG"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5363$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5364if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366else
5367 ac_check_lib_save_LIBS=$LIBS
5368LIBS="-luuid $LIBS"
5369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370/* end confdefs.h. */
5371
5372/* Override any GCC internal prototype to avoid an error.
5373 Use char because int might match the return type of a GCC
5374 builtin and then its argument prototype would still apply. */
5375#ifdef __cplusplus
5376extern "C"
5377#endif
5378char uuid_generate ();
5379int
5380main ()
5381{
5382return uuid_generate ();
5383 ;
5384 return 0;
5385}
5386_ACEOF
5387if ac_fn_c_try_link "$LINENO"; then :
5388 ac_cv_lib_uuid_uuid_generate=yes
5389else
5390 ac_cv_lib_uuid_uuid_generate=no
5391fi
5392rm -f core conftest.err conftest.$ac_objext \
5393 conftest$ac_exeext conftest.$ac_ext
5394LIBS=$ac_check_lib_save_LIBS
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5397$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5398if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5399 LIBUUID=`$PKG_CONFIG --libs uuid`;
5400 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5401fi
5402
5403fi
5404if test -n "$LIBUUID"; then
5405 PROFILED_LIBUUID=$LIBUUID
5406 UUID_CMT=#
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5408$as_echo "Using system uuid by default" >&6; }
5409else
5410 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5411 DEPLIBUUID=$LIBUUID
5412 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5413 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5414 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5415 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
57aa50d4 5417$as_echo "Enabling private uuid library by default" >&6; }
f5dffb81 5418fi
5610f992
TT
5419
5420fi
5421
5422
cdf186e4 5423
a64c9c13 5424
93636bde
TT
5425
5426
93636bde 5427
93636bde
TT
5428
5429
57aa50d4 5430
93613951
TT
5431
5432
5433
5434
5435
57aa50d4 5436if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5437 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5438 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5439set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5442if ${ac_cv_path_PKG_CONFIG+:} false; then :
39fd3d4f 5443 $as_echo_n "(cached) " >&6
a64c9c13 5444else
57aa50d4
TT
5445 case $PKG_CONFIG in
5446 [\\/]* | ?:[\\/]*)
5447 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5448 ;;
e1052144 5449 *)
b0cacab0
TT
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
57aa50d4 5455 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5457 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
b0cacab0 5461done
57aa50d4 5462 done
e1052144 5463IFS=$as_save_IFS
b0cacab0 5464
57aa50d4 5465 ;;
b0cacab0
TT
5466esac
5467fi
57aa50d4
TT
5468PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5469if test -n "$PKG_CONFIG"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5471$as_echo "$PKG_CONFIG" >&6; }
07a0db15 5472else
57aa50d4 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5474$as_echo "no" >&6; }
07a0db15 5475fi
07a0db15 5476
57aa50d4
TT
5477
5478fi
5479if test -z "$ac_cv_path_PKG_CONFIG"; then
5480 ac_pt_PKG_CONFIG=$PKG_CONFIG
5481 # Extract the first word of "pkg-config", so it can be a program name with args.
5482set dummy pkg-config; ac_word=$2
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 5484$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5485if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
39fd3d4f 5486 $as_echo_n "(cached) " >&6
a64c9c13 5487else
57aa50d4 5488 case $ac_pt_PKG_CONFIG in
b0cacab0 5489 [\\/]* | ?:[\\/]*)
57aa50d4 5490 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
b0cacab0
TT
5491 ;;
5492 *)
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
57aa50d4 5498 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5500 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
5502 break 2
5503 fi
5504done
57aa50d4 5505 done
e1052144 5506IFS=$as_save_IFS
a64c9c13 5507
b0cacab0
TT
5508 ;;
5509esac
a64c9c13 5510fi
57aa50d4
TT
5511ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5512if test -n "$ac_pt_PKG_CONFIG"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5514$as_echo "$ac_pt_PKG_CONFIG" >&6; }
a64c9c13 5515else
57aa50d4 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5517$as_echo "no" >&6; }
a64c9c13 5518fi
a64c9c13 5519
57aa50d4
TT
5520 if test "x$ac_pt_PKG_CONFIG" = x; then
5521 PKG_CONFIG=""
b0cacab0 5522 else
57aa50d4
TT
5523 case $cross_compiling:$ac_tool_warned in
5524yes:)
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527ac_tool_warned=yes ;;
5528esac
5529 PKG_CONFIG=$ac_pt_PKG_CONFIG
b0cacab0 5530 fi
57aa50d4
TT
5531else
5532 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
a64c9c13 5533fi
93636bde 5534
a64c9c13 5535fi
57aa50d4 5536if test -n "$PKG_CONFIG"; then
93613951
TT
5537 _pkg_min_version=0.9.0
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5539$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5540 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5542$as_echo "yes" >&6; }
93613951
TT
5543 else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5545$as_echo "no" >&6; }
93613951
TT
5546 PKG_CONFIG=""
5547 fi
57aa50d4
TT
5548fi
5549LIBBLKID=
5550DEPLIBBLKID=
5551STATIC_LIBBLKID=
5552DEPSTATIC_LIBBLKID=
5553PROFILED_LIBBLKID=
5554DEPPROFILED_LIBBLKID=
5555BLKID_CMT=
d1154eb4 5556
57aa50d4
TT
5557# Check whether --enable-libblkid was given.
5558if test "${enable_libblkid+set}" = set; then :
5559 enableval=$enable_libblkid; if test "$enableval" = "no"
5560then
5561 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5562 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5563 fi
5564
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5566$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
d6a4bcb5 5567if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
39fd3d4f 5568 $as_echo_n "(cached) " >&6
a64c9c13 5569else
57aa50d4 5570 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5571LIBS="-lblkid -luuid $LIBS"
57aa50d4
TT
5572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h. */
5574
5575/* Override any GCC internal prototype to avoid an error.
5576 Use char because int might match the return type of a GCC
5577 builtin and then its argument prototype would still apply. */
5578#ifdef __cplusplus
5579extern "C"
5580#endif
5581char blkid_get_cache ();
5582int
5583main ()
5584{
5585return blkid_get_cache ();
5586 ;
5587 return 0;
5588}
5589_ACEOF
5590if ac_fn_c_try_link "$LINENO"; then :
5591 ac_cv_lib_blkid_blkid_get_cache=yes
b0cacab0 5592else
57aa50d4 5593 ac_cv_lib_blkid_blkid_get_cache=no
a64c9c13 5594fi
57aa50d4
TT
5595rm -f core conftest.err conftest.$ac_objext \
5596 conftest$ac_exeext conftest.$ac_ext
5597LIBS=$ac_check_lib_save_LIBS
a64c9c13 5598fi
57aa50d4
TT
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5600$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
d6a4bcb5 5601if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
57aa50d4
TT
5602 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5603 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
b0cacab0 5604else
d6a4bcb5 5605 as_fn_error $? "external blkid library not found" "$LINENO" 5
a64c9c13 5606fi
93636bde 5607
57aa50d4 5608 BLKID_CMT=#
5afdf37b 5609 PROFILED_LIBBLKID=$LIBBLKID
57aa50d4
TT
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5611$as_echo "Disabling private blkid library" >&6; }
07a0db15 5612else
57aa50d4
TT
5613 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5614 DEPLIBBLKID=$LIBBLKID
5615 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5616 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5617 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5618 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5619 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5620
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5622$as_echo "Enabling private blkid library" >&6; }
b0cacab0 5623fi
57aa50d4 5624
a64c9c13 5625else
f5dffb81
TT
5626 if test -n "$PKG_CONFIG"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5628$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5629if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631else
5632 ac_check_lib_save_LIBS=$LIBS
5633LIBS="-lblkid $LIBS"
5634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h. */
5636
5637/* Override any GCC internal prototype to avoid an error.
5638 Use char because int might match the return type of a GCC
5639 builtin and then its argument prototype would still apply. */
5640#ifdef __cplusplus
5641extern "C"
5642#endif
5643char blkid_get_cache ();
5644int
5645main ()
5646{
5647return blkid_get_cache ();
5648 ;
5649 return 0;
5650}
5651_ACEOF
5652if ac_fn_c_try_link "$LINENO"; then :
5653 ac_cv_lib_blkid_blkid_get_cache=yes
5654else
5655 ac_cv_lib_blkid_blkid_get_cache=no
5656fi
5657rm -f core conftest.err conftest.$ac_objext \
5658 conftest$ac_exeext conftest.$ac_ext
5659LIBS=$ac_check_lib_save_LIBS
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5662$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5663if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5664 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5665 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5666fi
5667
5668fi
5669if test -n "$LIBBLKID"; then
5670 BLKID_CMT=#
5671 PROFILED_LIBBLKID=$LIBBLKID
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5673$as_echo "Using system blkid library by default" >&6; }
5674else
5675 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5676 DEPLIBBLKID=$LIBBLKID
5677 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5678 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5679 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5680 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5681 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
57aa50d4 5682
f5dffb81 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
57aa50d4 5684$as_echo "Enabling private blkid library by default" >&6; }
f5dffb81 5685fi
57aa50d4 5686
a64c9c13 5687fi
07a0db15 5688
a64c9c13 5689
b0cacab0 5690
b0cacab0 5691
a64c9c13 5692
b0cacab0 5693
07a0db15 5694
57aa50d4 5695
0afb9be6 5696ALL_CMT=
feb235e0 5697SUBSET_CMT=
0afb9be6
TT
5698# Check whether --enable-subset was given.
5699if test "${enable_subset+set}" = set; then :
5700 enableval=$enable_subset; if test "$enableval" = "no"
5701then
feb235e0 5702 SUBSET_CMT=#
0afb9be6
TT
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5704$as_echo "Disabling subset-only build" >&6; }
5705else
5706 ALL_CMT=#
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5708$as_echo "Enabling subset-only-build" >&6; }
5709fi
5710
5711fi
5712
5713
3df6014a 5714
feb235e0 5715
3df6014a
TT
5716# Check whether --enable-backtrace was given.
5717if test "${enable_backtrace+set}" = set; then :
5718 enableval=$enable_backtrace; if test "$enableval" = "no"
5719then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5721$as_echo "Disabling use of backtrace" >&6; }
5722 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5723
5724else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5726$as_echo "Enabling use of backtrace" >&6; }
5727fi
5728
5729else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5731$as_echo "Enabling use of backtrace by default" >&6; }
5732
5733fi
5734
57aa50d4
TT
5735# Check whether --enable-debugfs was given.
5736if test "${enable_debugfs+set}" = set; then :
5737 enableval=$enable_debugfs; if test "$enableval" = "no"
5738then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5740$as_echo "Disabling debugfs support" >&6; }
5741 DEBUGFS_CMT="#"
b0cacab0 5742else
57aa50d4
TT
5743 DEBUGFS_CMT=
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5745$as_echo "Enabling debugfs support" >&6; }
b0cacab0 5746fi
a64c9c13 5747
b0cacab0 5748else
57aa50d4
TT
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5750$as_echo "Enabling debugfs support by default" >&6; }
5751DEBUGFS_CMT=
a64c9c13 5752
93636bde 5753fi
57aa50d4
TT
5754
5755
5756# Check whether --enable-imager was given.
5757if test "${enable_imager+set}" = set; then :
5758 enableval=$enable_imager; if test "$enableval" = "no"
5759then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5761$as_echo "Disabling e2image support" >&6; }
5762 IMAGER_CMT="#"
b0cacab0 5763else
57aa50d4
TT
5764 IMAGER_CMT=
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5766$as_echo "Enabling e2image support" >&6; }
b0cacab0
TT
5767fi
5768
b0cacab0 5769else
57aa50d4
TT
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5771$as_echo "Enabling e2image support by default" >&6; }
5772IMAGER_CMT=
5773
93636bde
TT
5774fi
5775
a64c9c13 5776
57aa50d4
TT
5777# Check whether --enable-resizer was given.
5778if test "${enable_resizer+set}" = set; then :
5779 enableval=$enable_resizer; if test "$enableval" = "no"
5780then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5782$as_echo "Disabling e2resize support" >&6; }
5783 RESIZER_CMT="#"
b0cacab0 5784else
57aa50d4
TT
5785 RESIZER_CMT=
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5787$as_echo "Enabling e2resize support" >&6; }
5788fi
b0cacab0 5789
b0cacab0 5790else
57aa50d4
TT
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5792$as_echo "Enabling e2resize support by default" >&6; }
5793RESIZER_CMT=
b0cacab0 5794
b0cacab0 5795fi
e1052144 5796
57aa50d4 5797
8d9c50c5
TT
5798# Check whether --enable-defrag was given.
5799if test "${enable_defrag+set}" = set; then :
5800 enableval=$enable_defrag; if test "$enableval" = "no"
5801then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5803$as_echo "Disabling e4defrag support" >&6; }
5804 DEFRAG_CMT="#"
5805else
5806 DEFRAG_CMT=
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5808$as_echo "Enabling e4defrag support" >&6; }
5809fi
5810
5811else
6c59a665
TT
5812 if test -z "$WITH_DIET_LIBC"
5813then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
8d9c50c5 5815$as_echo "Enabling e4defrag support by default" >&6; }
6c59a665
TT
5816 DEFRAG_CMT=
5817else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5819$as_echo "Disabling e4defrag support by default" >&6; }
5820 DEFRAG_CMT="#"
5821fi
8d9c50c5
TT
5822
5823fi
5824
5825
57aa50d4
TT
5826# Check whether --enable-fsck was given.
5827if test "${enable_fsck+set}" = set; then :
5828 enableval=$enable_fsck; if test "$enableval" = "no"
5829then
5830 FSCK_PROG='' FSCK_MAN=''
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5832$as_echo "Not building fsck wrapper" >&6; }
5833else
5834 FSCK_PROG=fsck FSCK_MAN=fsck.8
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5836$as_echo "Building fsck wrapper" >&6; }
a64c9c13
TT
5837fi
5838
57aa50d4
TT
5839else
5840 case "$host_os" in
5841 gnu*)
5842 FSCK_PROG='' FSCK_MAN=''
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5844$as_echo "Not building fsck wrapper by default" >&6; }
5845 ;;
5846 *)
5847 FSCK_PROG=fsck FSCK_MAN=fsck.8
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5849$as_echo "Building fsck wrapper by default" >&6; }
5850esac
b0cacab0 5851
57aa50d4 5852fi
b0cacab0 5853
93636bde 5854
b0cacab0 5855
57aa50d4
TT
5856# Check whether --enable-e2initrd-helper was given.
5857if test "${enable_e2initrd_helper+set}" = set; then :
5858 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5859then
5860 E2INITRD_PROG='' E2INITRD_MAN=''
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5862$as_echo "Not building e2initrd helper" >&6; }
5863else
5864 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5866$as_echo "Building e2initrd helper" >&6; }
5867fi
a64c9c13 5868
a64c9c13 5869else
57aa50d4
TT
5870 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5872$as_echo "Building e2initrd helper by default" >&6; }
b0cacab0 5873
a64c9c13 5874fi
e1052144 5875
57aa50d4
TT
5876
5877
5878# Check whether --enable-tls was given.
5879if test "${enable_tls+set}" = set; then :
5880 enableval=$enable_tls; if test "$enableval" = "no"
5881then
5882 try_tls=""
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5884$as_echo "Disabling thread local support" >&6; }
5885else
5886 try_tls="yes"
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5888$as_echo "Enabling thread local support" >&6; }
a64c9c13
TT
5889fi
5890
57aa50d4
TT
5891else
5892 if test -n "$WITH_DIET_LIBC"
5893then
5894 try_tls=""
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5896$as_echo "Diet libc does not support thread local support" >&6; }
5897else
5898 try_tls="yes"
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5900$as_echo "Try using thread local support by default" >&6; }
5901fi
a64c9c13 5902
93636bde 5903fi
07a0db15 5904
57aa50d4
TT
5905if test "$try_tls" = "yes"
5906then
a64c9c13 5907
57aa50d4
TT
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5909$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
d6a4bcb5 5910 if ${ac_cv_tls+:} false; then :
39fd3d4f 5911 $as_echo_n "(cached) " >&6
b0cacab0 5912else
b0cacab0 5913
57aa50d4
TT
5914 ax_tls_keywords="__thread __declspec(thread) none"
5915 for ax_tls_keyword in $ax_tls_keywords; do
5916 case $ax_tls_keyword in
5917 none) ac_cv_tls=none ; break ;;
5918 *)
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h. */
5921#include <stdlib.h>
5922 static void
5923 foo(void) {
5924 static $ax_tls_keyword int bar;
5925 exit(1);
5926 }
b0cacab0
TT
5927int
5928main ()
5929{
57aa50d4 5930
b0cacab0
TT
5931 ;
5932 return 0;
5933}
5934_ACEOF
57aa50d4
TT
5935if ac_fn_c_try_compile "$LINENO"; then :
5936 ac_cv_tls=$ax_tls_keyword ; break
b0cacab0 5937else
57aa50d4 5938 ac_cv_tls=none
b0cacab0 5939
b0cacab0 5940fi
e1052144 5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
5942 esac
5943 done
5944
b0cacab0 5945fi
b0cacab0 5946
57aa50d4
TT
5947
5948 if test "$ac_cv_tls" != "none"; then
5949
5950cat >>confdefs.h <<_ACEOF
5951#define TLS $ac_cv_tls
b0cacab0 5952_ACEOF
93636bde 5953
b0cacab0 5954 fi
57aa50d4
TT
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5956$as_echo "$ac_cv_tls" >&6; }
b0cacab0 5957
57aa50d4 5958fi
d1154eb4 5959
bdcd5f22
TT
5960# Check whether --with-pthread was given.
5961if test "${with_pthread+set}" = set; then :
5962 withval=$with_pthread; if test "$withval" = "no"
57aa50d4 5963then
bdcd5f22
TT
5964 try_pthread=""
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
5966$as_echo "Disabling pthread support" >&6; }
a64c9c13 5967else
bdcd5f22
TT
5968 try_pthread="yes"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
5970$as_echo "Testing for pthread support" >&6; }
57aa50d4 5971fi
a64c9c13 5972
a64c9c13 5973else
bdcd5f22
TT
5974 try_pthread="yes"
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
5976$as_echo "Try testing for pthread support by default" >&6; }
a64c9c13 5977
bdcd5f22
TT
5978fi
5979
5980if test "$try_pthread" = "yes"
e3d10158 5981then
bdcd5f22
TT
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5983$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5984if ${ac_cv_path_SED+:} false; then :
5985 $as_echo_n "(cached) " >&6
e3d10158 5986else
bdcd5f22
TT
5987 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5988 for ac_i in 1 2 3 4 5 6 7; do
5989 ac_script="$ac_script$as_nl$ac_script"
5990 done
5991 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5992 { ac_script=; unset ac_script;}
5993 if test -z "$SED"; then
5994 ac_path_SED_found=false
5995 # Loop through the user's path and test for each of PROGNAME-LIST
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH
5998do
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
6001 for ac_prog in sed gsed; do
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6004 as_fn_executable_p "$ac_path_SED" || continue
6005# Check for GNU ac_path_SED and select it if it is found.
6006 # Check for GNU $ac_path_SED
6007case `"$ac_path_SED" --version 2>&1` in
6008*GNU*)
6009 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6010*)
6011 ac_count=0
6012 $as_echo_n 0123456789 >"conftest.in"
6013 while :
6014 do
6015 cat "conftest.in" "conftest.in" >"conftest.tmp"
6016 mv "conftest.tmp" "conftest.in"
6017 cp "conftest.in" "conftest.nl"
6018 $as_echo '' >> "conftest.nl"
6019 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6021 as_fn_arith $ac_count + 1 && ac_count=$as_val
6022 if test $ac_count -gt ${ac_path_SED_max-0}; then
6023 # Best one so far, save it but keep looking for a better one
6024 ac_cv_path_SED="$ac_path_SED"
6025 ac_path_SED_max=$ac_count
6026 fi
6027 # 10*(2^10) chars as input seems more than enough
6028 test $ac_count -gt 10 && break
6029 done
6030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6031esac
6032
6033 $ac_path_SED_found && break 3
6034 done
6035 done
6036 done
6037IFS=$as_save_IFS
6038 if test -z "$ac_cv_path_SED"; then
6039 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6040 fi
6041else
6042 ac_cv_path_SED=$SED
e3d10158 6043fi
e1052144 6044
a64c9c13 6045fi
bdcd5f22
TT
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6047$as_echo "$ac_cv_path_SED" >&6; }
6048 SED="$ac_cv_path_SED"
6049 rm -f conftest.sed
e1052144 6050
93636bde 6051
d6a4bcb5 6052
d6a4bcb5 6053
d6a4bcb5 6054
bdcd5f22
TT
6055ac_ext=c
6056ac_cpp='$CPP $CPPFLAGS'
6057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6059ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6a4bcb5 6060
bdcd5f22
TT
6061ax_pthread_ok=no
6062
6063# We used to check for pthread.h first, but this fails if pthread.h
6064# requires special compiler flags (e.g. on Tru64 or Sequent).
6065# It gets checked for in the link test anyway.
6066
6067# First of all, check if the user has set any of the PTHREAD_LIBS,
6068# etcetera environment variables, and if threads linking works using
6069# them:
6070if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6071 ax_pthread_save_CC="$CC"
6072 ax_pthread_save_CFLAGS="$CFLAGS"
6073 ax_pthread_save_LIBS="$LIBS"
6074 if test "x$PTHREAD_CC" != "x"; then :
6075 CC="$PTHREAD_CC"
6076fi
6077 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6078 LIBS="$PTHREAD_LIBS $LIBS"
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6080$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h. */
d6a4bcb5 6083
bdcd5f22
TT
6084/* Override any GCC internal prototype to avoid an error.
6085 Use char because int might match the return type of a GCC
6086 builtin and then its argument prototype would still apply. */
6087#ifdef __cplusplus
6088extern "C"
6089#endif
6090char pthread_join ();
6091int
6092main ()
6093{
6094return pthread_join ();
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099if ac_fn_c_try_link "$LINENO"; then :
6100 ax_pthread_ok=yes
1625bf42 6101fi
bdcd5f22
TT
6102rm -f core conftest.err conftest.$ac_objext \
6103 conftest$ac_exeext conftest.$ac_ext
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6105$as_echo "$ax_pthread_ok" >&6; }
6106 if test "x$ax_pthread_ok" = "xno"; then
6107 PTHREAD_LIBS=""
6108 PTHREAD_CFLAGS=""
6109 fi
6110 CC="$ax_pthread_save_CC"
6111 CFLAGS="$ax_pthread_save_CFLAGS"
6112 LIBS="$ax_pthread_save_LIBS"
6113fi
6114
6115# We must check for the threads library under a number of different
6116# names; the ordering is very important because some systems
6117# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6118# libraries is broken (non-POSIX).
6119
6120# Create a list of thread flags to try. Items starting with a "-" are
6121# C compiler flags, and other items are library names, except for "none"
6122# which indicates that we try without any flags at all, and "pthread-config"
6123# which is a program returning the flags for the Pth emulation library.
6124
6125ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6126
6127# The ordering *is* (sometimes) important. Some notes on the
6128# individual items follow:
6129
6130# pthreads: AIX (must check this before -lpthread)
6131# none: in case threads are in libc; should be tried before -Kthread and
6132# other compiler flags to prevent continual compiler warnings
6133# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6134# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
6135# (Note: HP C rejects this with "bad form for `-t' option")
6136# -pthreads: Solaris/gcc (Note: HP C also rejects)
6137# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6138# doesn't hurt to check since this sometimes defines pthreads and
6139# -D_REENTRANT too), HP C (must be checked before -lpthread, which
6140# is present but should not be used directly; and before -mthreads,
6141# because the compiler interprets this as "-mt" + "-hreads")
6142# -mthreads: Mingw32/gcc, Lynx/gcc
6143# pthread: Linux, etcetera
6144# --thread-safe: KAI C++
6145# pthread-config: use pthread-config program (for GNU Pth library)
6146
6147case $host_os in
6148
6149 freebsd*)
6150
6151 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6152 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6153
6154 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
6155 ;;
1625bf42 6156
bdcd5f22 6157 hpux*)
1625bf42 6158
bdcd5f22
TT
6159 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
6160 # multi-threading and also sets -lpthread."
749f0712 6161
bdcd5f22
TT
6162 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
6163 ;;
749f0712 6164
bdcd5f22 6165 openedition*)
749f0712 6166
bdcd5f22
TT
6167 # IBM z/OS requires a feature-test macro to be defined in order to
6168 # enable POSIX threads at all, so give the user a hint if this is
6169 # not set. (We don't define these ourselves, as they can affect
6170 # other portions of the system API in unpredictable ways.)
749f0712 6171
bdcd5f22
TT
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173/* end confdefs.h. */
6174
6175# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
6176 AX_PTHREAD_ZOS_MISSING
6177# endif
6178
6179_ACEOF
6180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6181 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
6183$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
749f0712 6184fi
bdcd5f22 6185rm -f conftest*
749f0712 6186
bdcd5f22 6187 ;;
749f0712 6188
bdcd5f22 6189 solaris*)
749f0712 6190
bdcd5f22
TT
6191 # On Solaris (at least, for some versions), libc contains stubbed
6192 # (non-functional) versions of the pthreads routines, so link-based
6193 # tests will erroneously succeed. (N.B.: The stubs are missing
6194 # pthread_cleanup_push, or rather a function called by this macro,
6195 # so we could check for that, but who knows whether they'll stub
6196 # that too in a future libc.) So we'll check first for the
6197 # standard Solaris way of linking pthreads (-mt -lpthread).
749f0712 6198
bdcd5f22
TT
6199 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
6200 ;;
6201esac
6202
6203# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
1625bf42 6204
bdcd5f22
TT
6205if test "x$GCC" = "xyes"; then :
6206 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
1625bf42
TB
6207fi
6208
bdcd5f22
TT
6209# The presence of a feature test macro requesting re-entrant function
6210# definitions is, on some systems, a strong hint that pthreads support is
6211# correctly enabled
1625bf42 6212
bdcd5f22
TT
6213case $host_os in
6214 darwin* | hpux* | linux* | osf* | solaris*)
6215 ax_pthread_check_macro="_REENTRANT"
6216 ;;
6217
6218 aix*)
6219 ax_pthread_check_macro="_THREAD_SAFE"
6220 ;;
1625bf42 6221
bdcd5f22
TT
6222 *)
6223 ax_pthread_check_macro="--"
6224 ;;
6225esac
6226if test "x$ax_pthread_check_macro" = "x--"; then :
6227 ax_pthread_check_cond=0
6228else
6229 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
1625bf42
TB
6230fi
6231
bdcd5f22 6232# Are we compiling with Clang?
1625bf42 6233
bdcd5f22
TT
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
6235$as_echo_n "checking whether $CC is Clang... " >&6; }
6236if ${ax_cv_PTHREAD_CLANG+:} false; then :
6237 $as_echo_n "(cached) " >&6
1625bf42 6238else
bdcd5f22
TT
6239 ax_cv_PTHREAD_CLANG=no
6240 # Note that Autoconf sets GCC=yes for Clang as well as GCC
6241 if test "x$GCC" = "xyes"; then
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h. */
6244/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
6245# if defined(__clang__) && defined(__llvm__)
6246 AX_PTHREAD_CC_IS_CLANG
6247# endif
6248
6249_ACEOF
6250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6251 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
6252 ax_cv_PTHREAD_CLANG=yes
1625bf42 6253fi
bdcd5f22 6254rm -f conftest*
1625bf42 6255
bdcd5f22 6256 fi
1625bf42
TB
6257
6258fi
bdcd5f22
TT
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
6260$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
6261ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
6262
6263ax_pthread_clang_warning=no
6264
6265# Clang needs special handling, because older versions handle the -pthread
6266# option in a rather... idiosyncratic way
6267
6268if test "x$ax_pthread_clang" = "xyes"; then
6269
6270 # Clang takes -pthread; it has never supported any other flag
6271
6272 # (Note 1: This will need to be revisited if a system that Clang
6273 # supports has POSIX threads in a separate library. This tends not
6274 # to be the way of modern systems, but it's conceivable.)
6275
6276 # (Note 2: On some systems, notably Darwin, -pthread is not needed
6277 # to get POSIX threads support; the API is always present and
6278 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
6279 # -pthread does define _REENTRANT, and while the Darwin headers
6280 # ignore this macro, third-party headers might not.)
6281
6282 PTHREAD_CFLAGS="-pthread"
6283 PTHREAD_LIBS=
6284
6285 ax_pthread_ok=yes
6286
6287 # However, older versions of Clang make a point of warning the user
6288 # that, in an invocation where only linking and no compilation is
6289 # taking place, the -pthread option has no effect ("argument unused
6290 # during compilation"). They expect -pthread to be passed in only
6291 # when source code is being compiled.
6292 #
6293 # Problem is, this is at odds with the way Automake and most other
6294 # C build frameworks function, which is that the same flags used in
6295 # compilation (CFLAGS) are also used in linking. Many systems
6296 # supported by AX_PTHREAD require exactly this for POSIX threads
6297 # support, and in fact it is often not straightforward to specify a
6298 # flag that is used only in the compilation phase and not in
6299 # linking. Such a scenario is extremely rare in practice.
6300 #
6301 # Even though use of the -pthread flag in linking would only print
6302 # a warning, this can be a nuisance for well-run software projects
6303 # that build with -Werror. So if the active version of Clang has
6304 # this misfeature, we search for an option to squash it.
6305
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6307$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6308if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
6309 $as_echo_n "(cached) " >&6
1625bf42 6310else
bdcd5f22
TT
6311 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6312 # Create an alternate version of $ac_link that compiles and
6313 # links in two steps (.c -> .o, .o -> exe) instead of one
6314 # (.c -> exe), because the warning occurs only in the second
6315 # step
6316 ax_pthread_save_ac_link="$ac_link"
6317 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6318 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
6319 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6320 ax_pthread_save_CFLAGS="$CFLAGS"
6321 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6322 if test "x$ax_pthread_try" = "xunknown"; then :
6323 break
d6a4bcb5 6324fi
bdcd5f22
TT
6325 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6326 ac_link="$ax_pthread_save_ac_link"
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h. */
6329int main(void){return 0;}
6330_ACEOF
6331if ac_fn_c_try_link "$LINENO"; then :
6332 ac_link="$ax_pthread_2step_ac_link"
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h. */
6335int main(void){return 0;}
6336_ACEOF
6337if ac_fn_c_try_link "$LINENO"; then :
6338 break
6339fi
6340rm -f core conftest.err conftest.$ac_objext \
6341 conftest$ac_exeext conftest.$ac_ext
d6a4bcb5 6342
bdcd5f22
TT
6343fi
6344rm -f core conftest.err conftest.$ac_objext \
6345 conftest$ac_exeext conftest.$ac_ext
6346 done
6347 ac_link="$ax_pthread_save_ac_link"
6348 CFLAGS="$ax_pthread_save_CFLAGS"
6349 if test "x$ax_pthread_try" = "x"; then :
6350 ax_pthread_try=no
6351fi
6352 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
d1154eb4 6353
bdcd5f22
TT
6354fi
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6356$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
a64c9c13 6357
bdcd5f22
TT
6358 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6359 no | unknown) ;;
6360 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6361 esac
d1154eb4 6362
bdcd5f22 6363fi # $ax_pthread_clang = yes
57aa50d4 6364
bdcd5f22
TT
6365if test "x$ax_pthread_ok" = "xno"; then
6366for ax_pthread_try_flag in $ax_pthread_flags; do
57aa50d4 6367
bdcd5f22
TT
6368 case $ax_pthread_try_flag in
6369 none)
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6371$as_echo_n "checking whether pthreads work without any flags... " >&6; }
6372 ;;
57aa50d4 6373
bdcd5f22
TT
6374 -mt,pthread)
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
6376$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
6377 PTHREAD_CFLAGS="-mt"
6378 PTHREAD_LIBS="-lpthread"
6379 ;;
57aa50d4 6380
bdcd5f22
TT
6381 -*)
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6383$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6384 PTHREAD_CFLAGS="$ax_pthread_try_flag"
6385 ;;
57aa50d4 6386
bdcd5f22
TT
6387 pthread-config)
6388 # Extract the first word of "pthread-config", so it can be a program name with args.
6389set dummy pthread-config; ac_word=$2
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391$as_echo_n "checking for $ac_word... " >&6; }
6392if ${ac_cv_prog_ax_pthread_config+:} false; then :
39fd3d4f 6393 $as_echo_n "(cached) " >&6
b0cacab0 6394else
bdcd5f22
TT
6395 if test -n "$ax_pthread_config"; then
6396 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6397else
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_ax_pthread_config="yes"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409done
6410 done
6411IFS=$as_save_IFS
6412
6413 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6414fi
6415fi
6416ax_pthread_config=$ac_cv_prog_ax_pthread_config
6417if test -n "$ax_pthread_config"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6419$as_echo "$ax_pthread_config" >&6; }
6420else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; }
6423fi
6424
6425
6426 if test "x$ax_pthread_config" = "xno"; then :
6427 continue
6428fi
6429 PTHREAD_CFLAGS="`pthread-config --cflags`"
6430 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6431 ;;
6432
6433 *)
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6435$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6436 PTHREAD_LIBS="-l$ax_pthread_try_flag"
6437 ;;
6438 esac
6439
6440 ax_pthread_save_CFLAGS="$CFLAGS"
6441 ax_pthread_save_LIBS="$LIBS"
6442 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6443 LIBS="$PTHREAD_LIBS $LIBS"
6444
6445 # Check for various functions. We must include pthread.h,
6446 # since some functions may be macros. (On the Sequent, we
6447 # need a special flag -Kthread to make this header compile.)
6448 # We check for pthread_join because it is in -lpthread on IRIX
6449 # while pthread_create is in libc. We check for pthread_attr_init
6450 # due to DEC craziness with -lpthreads. We check for
6451 # pthread_cleanup_push because it is one of the few pthread
6452 # functions on Solaris that doesn't have a non-functional libc stub.
6453 # We try pthread_create on general principles.
6454
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456/* end confdefs.h. */
6457#include <pthread.h>
6458# if $ax_pthread_check_cond
6459# error "$ax_pthread_check_macro must be defined"
6460# endif
6461 static void routine(void *a) { a = 0; }
6462 static void *start_routine(void *a) { return a; }
6463int
6464main ()
6465{
6466pthread_t th; pthread_attr_t attr;
6467 pthread_create(&th, 0, start_routine, 0);
6468 pthread_join(th, 0);
6469 pthread_attr_init(&attr);
6470 pthread_cleanup_push(routine, 0);
6471 pthread_cleanup_pop(0) /* ; */
6472 ;
6473 return 0;
6474}
6475_ACEOF
6476if ac_fn_c_try_link "$LINENO"; then :
6477 ax_pthread_ok=yes
6478fi
6479rm -f core conftest.err conftest.$ac_objext \
6480 conftest$ac_exeext conftest.$ac_ext
6481
6482 CFLAGS="$ax_pthread_save_CFLAGS"
6483 LIBS="$ax_pthread_save_LIBS"
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6486$as_echo "$ax_pthread_ok" >&6; }
6487 if test "x$ax_pthread_ok" = "xyes"; then :
6488 break
6489fi
6490
6491 PTHREAD_LIBS=""
6492 PTHREAD_CFLAGS=""
6493done
6494fi
6495
6496# Various other checks:
6497if test "x$ax_pthread_ok" = "xyes"; then
6498 ax_pthread_save_CFLAGS="$CFLAGS"
6499 ax_pthread_save_LIBS="$LIBS"
6500 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6501 LIBS="$PTHREAD_LIBS $LIBS"
6502
6503 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6505$as_echo_n "checking for joinable pthread attribute... " >&6; }
6506if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508else
6509 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6510 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h. */
6513#include <pthread.h>
6514int
6515main ()
6516{
6517int attr = $ax_pthread_attr; return attr /* ; */
6518 ;
6519 return 0;
6520}
6521_ACEOF
6522if ac_fn_c_try_link "$LINENO"; then :
6523 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6524fi
6525rm -f core conftest.err conftest.$ac_objext \
6526 conftest$ac_exeext conftest.$ac_ext
6527 done
6528
6529fi
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6531$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6532 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6533 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6534 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
6535
6536cat >>confdefs.h <<_ACEOF
6537#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
6538_ACEOF
6539
6540 ax_pthread_joinable_attr_defined=yes
6541
6542fi
6543
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6545$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
6546if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
6547 $as_echo_n "(cached) " >&6
6548else
6549 ax_cv_PTHREAD_SPECIAL_FLAGS=no
6550 case $host_os in
6551 solaris*)
6552 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6553 ;;
6554 esac
6555
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
6558$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
6559 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
6560 test "x$ax_pthread_special_flags_added" != "xyes"; then :
6561 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
6562 ax_pthread_special_flags_added=yes
6563fi
6564
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6566$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6567if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569else
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571/* end confdefs.h. */
6572#include <pthread.h>
6573int
6574main ()
6575{
6576int i = PTHREAD_PRIO_INHERIT;
6577 ;
6578 return 0;
6579}
6580_ACEOF
6581if ac_fn_c_try_link "$LINENO"; then :
6582 ax_cv_PTHREAD_PRIO_INHERIT=yes
6583else
6584 ax_cv_PTHREAD_PRIO_INHERIT=no
6585fi
6586rm -f core conftest.err conftest.$ac_objext \
6587 conftest$ac_exeext conftest.$ac_ext
6588
6589fi
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6591$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6592 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
6593 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
6594
6595$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6596
6597 ax_pthread_prio_inherit_defined=yes
6598
6599fi
6600
6601 CFLAGS="$ax_pthread_save_CFLAGS"
6602 LIBS="$ax_pthread_save_LIBS"
6603
6604 # More AIX lossage: compile with *_r variant
6605 if test "x$GCC" != "xyes"; then
6606 case $host_os in
6607 aix*)
6608 case "x/$CC" in #(
6609 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
6610 #handle absolute path differently from PATH based program lookup
6611 case "x$CC" in #(
6612 x/*) :
6613 if as_fn_executable_p ${CC}_r; then :
6614 PTHREAD_CC="${CC}_r"
6615fi ;; #(
6616 *) :
6617 for ac_prog in ${CC}_r
6618do
6619 # Extract the first word of "$ac_prog", so it can be a program name with args.
6620set dummy $ac_prog; ac_word=$2
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622$as_echo_n "checking for $ac_word... " >&6; }
6623if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625else
6626 if test -n "$PTHREAD_CC"; then
6627 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6628else
6629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630for as_dir in $PATH
6631do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_PTHREAD_CC="$ac_prog"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640done
6641 done
6642IFS=$as_save_IFS
6643
6644fi
6645fi
6646PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6647if test -n "$PTHREAD_CC"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6649$as_echo "$PTHREAD_CC" >&6; }
6650else
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652$as_echo "no" >&6; }
6653fi
6654
6655
6656 test -n "$PTHREAD_CC" && break
6657done
6658test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6659 ;;
6660esac ;; #(
6661 *) :
6662 ;;
6663esac
6664 ;;
6665 esac
6666 fi
6667fi
6668
6669test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6670
6671
6672
6673
6674
6675# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6676if test "x$ax_pthread_ok" = "xyes"; then
6677
6678$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6679
6680 :
6681else
6682 ax_pthread_ok=no
6683
6684fi
6685ac_ext=c
6686ac_cpp='$CPP $CPPFLAGS'
6687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689ac_compiler_gnu=$ac_cv_c_compiler_gnu
6690
6691
6692else
6693test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6694
6695fi
6696
6697# Check whether --enable-uuidd was given.
6698if test "${enable_uuidd+set}" = set; then :
6699 enableval=$enable_uuidd; if test "$enableval" = "no"
6700then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
6702$as_echo "Not building uuidd" >&6; }
6703 UUIDD_CMT="#"
6704else
6705 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6706
6707 UUIDD_CMT=""
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6709$as_echo "Building uuidd" >&6; }
6710fi
6711
6712else
6713 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6714
6715if test -z "$UUID_CMT"
6716then
6717 UUIDD_CMT=""
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
6719$as_echo "Building uuidd by default" >&6; }
6720else
6721 UUIDD_CMT="#"
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6723$as_echo "Disabling uuidd by default" >&6; }
6724fi
6725
6726fi
6727
6728
6729
6730# Check whether --enable-mmp was given.
6731if test "${enable_mmp+set}" = set; then :
6732 enableval=$enable_mmp; if test "$enableval" = "no"
6733then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6735$as_echo "Disabling mmp support" >&6; }
6736else
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6738$as_echo "Enabling mmp support" >&6; }
6739 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6740
6741fi
6742
6743else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6745$as_echo "Enabling mmp support by default" >&6; }
6746$as_echo "#define CONFIG_MMP 1" >>confdefs.h
6747
6748
6749fi
6750
6751
6752# Check whether --enable-tdb was given.
6753if test "${enable_tdb+set}" = set; then :
6754 enableval=$enable_tdb; if test "$enableval" = "no"
6755then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6757$as_echo "Disabling tdb support" >&6; }
6758 TDB_CMT="#"
6759 TDB_MAN_COMMENT='.\"'
6760else
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6762$as_echo "Enabling tdb support" >&6; }
6763 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6764
6765 TDB_CMT=""
6766 TDB_MAN_COMMENT=""
6767fi
6768
6769else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6771$as_echo "Enabling mmp support by default" >&6; }
6772$as_echo "#define CONFIG_TDB 1" >>confdefs.h
6773
6774TDB_CMT=""
6775TDB_MAN_COMMENT=""
6776
6777fi
6778
6779
6780
6781
6782# Check whether --enable-bmap-stats was given.
6783if test "${enable_bmap_stats+set}" = set; then :
6784 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6785then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6787$as_echo "Disabling bitmap statistics support" >&6; }
6788else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6790$as_echo "Enabling bitmap statistics support" >&6; }
6791 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6792
6793fi
6794
6795else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6797$as_echo "Enabling bitmap statistics support by default" >&6; }
6798$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6799
6800
6801fi
6802
6803
6804# Check whether --enable-bmap-stats-ops was given.
6805if test "${enable_bmap_stats_ops+set}" = set; then :
6806 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6807then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6809$as_echo "Disabling additional bitmap statistics" >&6; }
6810else
6811 if test "x${enable_bmap_stats}" = "xno"; then :
6812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6814as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6815See \`config.log' for more details" "$LINENO" 5; }
6816fi
6817
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6819$as_echo "Enabling additional bitmap statistics" >&6; }
6820 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6821
6822fi
6823
6824else
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6826$as_echo "Disabling additional bitmap statistics by default" >&6; }
6827
6828fi
6829
6830MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6831
6832GETTEXT_PACKAGE=e2fsprogs
6833PACKAGE=e2fsprogs
6834VERSION="$E2FSPROGS_VERSION"
6835VERSION=0.14.1
6836
6837cat >>confdefs.h <<_ACEOF
6838#define PACKAGE "$PACKAGE"
6839_ACEOF
6840
6841
6842cat >>confdefs.h <<_ACEOF
6843#define VERSION "$VERSION"
6844_ACEOF
6845
6846
6847
6848
6849
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6851$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6852set x ${MAKE-make}
6853ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6854if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856else
6857 cat >conftest.make <<\_ACEOF
6858SHELL = /bin/sh
6859all:
6860 @echo '@@@%%%=$(MAKE)=@@@%%%'
6861_ACEOF
6862# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6863case `${MAKE-make} -f conftest.make 2>/dev/null` in
6864 *@@@%%%=?*=@@@%%%*)
6865 eval ac_cv_prog_make_${ac_make}_set=yes;;
6866 *)
6867 eval ac_cv_prog_make_${ac_make}_set=no;;
6868esac
57aa50d4
TT
6869rm -f conftest.make
6870fi
6871if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6873$as_echo "yes" >&6; }
6874 SET_MAKE=
39fd3d4f 6875else
57aa50d4
TT
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877$as_echo "no" >&6; }
6878 SET_MAKE="MAKE=${MAKE-make}"
39fd3d4f
SJR
6879fi
6880
57aa50d4
TT
6881# Find a good install program. We prefer a C program (faster),
6882# so one script is as good as another. But avoid the broken or
6883# incompatible versions:
6884# SysV /etc/install, /usr/sbin/install
6885# SunOS /usr/etc/install
6886# IRIX /sbin/install
6887# AIX /bin/install
6888# AmigaOS /C/install, which installs bootblocks on floppy discs
6889# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6890# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6891# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6892# OS/2's system install, which has a completely different semantic
6893# ./install, which can be erroneously created by make from ./install.sh.
6894# Reject install programs that cannot install multiple files.
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6896$as_echo_n "checking for a BSD-compatible install... " >&6; }
6897if test -z "$INSTALL"; then
d6a4bcb5 6898if ${ac_cv_path_install+:} false; then :
57aa50d4 6899 $as_echo_n "(cached) " >&6
93636bde 6900else
57aa50d4
TT
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 # Account for people who put trailing slashes in PATH elements.
6907case $as_dir/ in #((
6908 ./ | .// | /[cC]/* | \
6909 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6910 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6911 /usr/ucb/* ) ;;
6912 *)
6913 # OSF1 and SCO ODT 3.0 have their own names for install.
6914 # Don't use installbsd from OSF since it installs stuff as root
6915 # by default.
6916 for ac_prog in ginstall scoinst install; do
6917 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6918 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
57aa50d4
TT
6919 if test $ac_prog = install &&
6920 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6921 # AIX install. It has an incompatible calling convention.
6922 :
6923 elif test $ac_prog = install &&
6924 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6925 # program-specific install script used by HP pwplus--don't use.
6926 :
6927 else
6928 rm -rf conftest.one conftest.two conftest.dir
6929 echo one > conftest.one
6930 echo two > conftest.two
6931 mkdir conftest.dir
6932 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6933 test -s conftest.one && test -s conftest.two &&
6934 test -s conftest.dir/conftest.one &&
6935 test -s conftest.dir/conftest.two
6936 then
6937 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6938 break 3
6939 fi
6940 fi
6941 fi
6942 done
6943 done
6944 ;;
6945esac
6946
6947 done
6948IFS=$as_save_IFS
b0cacab0 6949
57aa50d4 6950rm -rf conftest.one conftest.two conftest.dir
39fd3d4f 6951
93636bde 6952fi
57aa50d4
TT
6953 if test "${ac_cv_path_install+set}" = set; then
6954 INSTALL=$ac_cv_path_install
6955 else
6956 # As a last resort, use the slow shell script. Don't cache a
6957 # value for INSTALL within a source directory, because that will
6958 # break other packages using the cache if that directory is
6959 # removed, or if the value is a relative name.
6960 INSTALL=$ac_install_sh
6961 fi
93636bde 6962fi
57aa50d4
TT
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6964$as_echo "$INSTALL" >&6; }
a64c9c13 6965
57aa50d4
TT
6966# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6967# It thinks the first close brace ends the variable substitution.
6968test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b0cacab0 6969
57aa50d4 6970test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a64c9c13 6971
57aa50d4 6972test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39fd3d4f 6973
93613951
TT
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6975$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6976if test -z "$MKDIR_P"; then
6977 if ${ac_cv_path_mkdir+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979else
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6982do
6983 IFS=$as_save_IFS
6984 test -z "$as_dir" && as_dir=.
6985 for ac_prog in mkdir gmkdir; do
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6988 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6989 'mkdir (GNU coreutils) '* | \
6990 'mkdir (coreutils) '* | \
6991 'mkdir (fileutils) '4.1*)
6992 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6993 break 3;;
6994 esac
6995 done
6996 done
6997 done
6998IFS=$as_save_IFS
6999
7000fi
39fd3d4f 7001
93613951
TT
7002 test -d ./--version && rmdir ./--version
7003 if test "${ac_cv_path_mkdir+set}" = set; then
7004 MKDIR_P="$ac_cv_path_mkdir -p"
7005 else
7006 # As a last resort, use the slow shell script. Don't cache a
7007 # value for MKDIR_P within a source directory, because that will
7008 # break other packages using the cache if that directory is
7009 # removed, or if the value is a relative name.
7010 MKDIR_P="$ac_install_sh -d"
57aa50d4 7011 fi
93613951
TT
7012fi
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7014$as_echo "$MKDIR_P" >&6; }
7015
e1052144 7016
57aa50d4
TT
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7018$as_echo_n "checking whether NLS is requested... " >&6; }
7019 # Check whether --enable-nls was given.
7020if test "${enable_nls+set}" = set; then :
7021 enableval=$enable_nls; USE_NLS=$enableval
b0cacab0 7022else
57aa50d4
TT
7023 USE_NLS=yes
7024fi
b0cacab0 7025
57aa50d4
TT
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7027$as_echo "$USE_NLS" >&6; }
93636bde 7028
a64c9c13 7029
a64c9c13 7030
b0cacab0 7031
bdcd5f22 7032 GETTEXT_MACRO_VERSION=0.20
93613951
TT
7033
7034
b0cacab0 7035
a64c9c13 7036
57aa50d4
TT
7037# Prepare PATH_SEPARATOR.
7038# The user is always right.
7039if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
7040 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7041 # contains only /bin. Note that ksh looks also at the FPATH variable,
7042 # so we have to set that as well for the test.
7043 PATH_SEPARATOR=:
7044 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7045 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7046 || PATH_SEPARATOR=';'
7047 }
57aa50d4 7048fi
b0cacab0 7049
57aa50d4
TT
7050# Find out how to test for executable files. Don't use a zero-byte file,
7051# as systems may use methods other than mode bits to determine executability.
7052cat >conf$$.file <<_ASEOF
7053#! /bin/sh
7054exit 0
7055_ASEOF
7056chmod +x conf$$.file
7057if test -x conf$$.file >/dev/null 2>&1; then
7058 ac_executable_p="test -x"
7059else
7060 ac_executable_p="test -f"
7061fi
7062rm -f conf$$.file
b0cacab0 7063
57aa50d4
TT
7064# Extract the first word of "msgfmt", so it can be a program name with args.
7065set dummy msgfmt; ac_word=$2
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 7068if ${ac_cv_path_MSGFMT+:} false; then :
39fd3d4f 7069 $as_echo_n "(cached) " >&6
93636bde 7070else
57aa50d4
TT
7071 case "$MSGFMT" in
7072 [\\/]* | ?:[\\/]*)
7073 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7074 ;;
7075 *)
7076 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7077 for ac_dir in $PATH; do
7078 IFS="$ac_save_IFS"
7079 test -z "$ac_dir" && ac_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
7082 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7083 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
57aa50d4
TT
7084 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7085 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7086 break 2
7087 fi
7088 fi
7089 done
7090 done
7091 IFS="$ac_save_IFS"
7092 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7093 ;;
e1052144 7094esac
b0cacab0 7095fi
57aa50d4
TT
7096MSGFMT="$ac_cv_path_MSGFMT"
7097if test "$MSGFMT" != ":"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7099$as_echo "$MSGFMT" >&6; }
7100else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102$as_echo "no" >&6; }
b0cacab0 7103fi
a64c9c13 7104
57aa50d4
TT
7105 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7106set dummy gmsgfmt; ac_word=$2
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 7109if ${ac_cv_path_GMSGFMT+:} false; then :
39fd3d4f 7110 $as_echo_n "(cached) " >&6
93636bde 7111else
57aa50d4
TT
7112 case $GMSGFMT in
7113 [\\/]* | ?:[\\/]*)
7114 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7115 ;;
7116 *)
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 7123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
7124 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128done
7129 done
7130IFS=$as_save_IFS
a64c9c13 7131
57aa50d4
TT
7132 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7133 ;;
e1052144 7134esac
57aa50d4
TT
7135fi
7136GMSGFMT=$ac_cv_path_GMSGFMT
7137if test -n "$GMSGFMT"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7139$as_echo "$GMSGFMT" >&6; }
b0cacab0 7140else
57aa50d4
TT
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
b0cacab0 7143fi
e1052144 7144
b0cacab0 7145
b0cacab0 7146
bdcd5f22 7147 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
93613951
TT
7148 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7149 *) GMSGFMT_015=$GMSGFMT ;;
7150 esac
7151
7152
57aa50d4
TT
7153
7154# Prepare PATH_SEPARATOR.
7155# The user is always right.
7156if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
7157 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7158 # contains only /bin. Note that ksh looks also at the FPATH variable,
7159 # so we have to set that as well for the test.
7160 PATH_SEPARATOR=:
7161 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7162 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7163 || PATH_SEPARATOR=';'
7164 }
57aa50d4 7165fi
b0cacab0 7166
57aa50d4
TT
7167# Find out how to test for executable files. Don't use a zero-byte file,
7168# as systems may use methods other than mode bits to determine executability.
7169cat >conf$$.file <<_ASEOF
7170#! /bin/sh
7171exit 0
7172_ASEOF
7173chmod +x conf$$.file
7174if test -x conf$$.file >/dev/null 2>&1; then
7175 ac_executable_p="test -x"
7176else
7177 ac_executable_p="test -f"
7178fi
7179rm -f conf$$.file
b0cacab0 7180
57aa50d4
TT
7181# Extract the first word of "xgettext", so it can be a program name with args.
7182set dummy xgettext; ac_word=$2
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 7185if ${ac_cv_path_XGETTEXT+:} false; then :
39fd3d4f 7186 $as_echo_n "(cached) " >&6
a64c9c13 7187else
57aa50d4
TT
7188 case "$XGETTEXT" in
7189 [\\/]* | ?:[\\/]*)
7190 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7191 ;;
7192 *)
7193 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7194 for ac_dir in $PATH; do
7195 IFS="$ac_save_IFS"
7196 test -z "$ac_dir" && ac_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
7199 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7200 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
57aa50d4
TT
7201 (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
7202 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7203 break 2
7204 fi
7205 fi
7206 done
7207 done
7208 IFS="$ac_save_IFS"
7209 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7210 ;;
e1052144 7211esac
b0cacab0 7212fi
57aa50d4
TT
7213XGETTEXT="$ac_cv_path_XGETTEXT"
7214if test "$XGETTEXT" != ":"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7216$as_echo "$XGETTEXT" >&6; }
7217else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219$as_echo "no" >&6; }
b0cacab0 7220fi
b0cacab0 7221
57aa50d4 7222 rm -f messages.po
a64c9c13 7223
93613951
TT
7224 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7225 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7226 *) XGETTEXT_015=$XGETTEXT ;;
7227 esac
7228
7229
b0cacab0 7230
57aa50d4
TT
7231# Prepare PATH_SEPARATOR.
7232# The user is always right.
7233if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
7234 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7235 # contains only /bin. Note that ksh looks also at the FPATH variable,
7236 # so we have to set that as well for the test.
7237 PATH_SEPARATOR=:
7238 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7239 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7240 || PATH_SEPARATOR=';'
7241 }
57aa50d4 7242fi
b0cacab0 7243
57aa50d4
TT
7244# Find out how to test for executable files. Don't use a zero-byte file,
7245# as systems may use methods other than mode bits to determine executability.
7246cat >conf$$.file <<_ASEOF
7247#! /bin/sh
7248exit 0
7249_ASEOF
7250chmod +x conf$$.file
7251if test -x conf$$.file >/dev/null 2>&1; then
7252 ac_executable_p="test -x"
7253else
7254 ac_executable_p="test -f"
7255fi
7256rm -f conf$$.file
7257
7258# Extract the first word of "msgmerge", so it can be a program name with args.
7259set dummy msgmerge; ac_word=$2
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 7262if ${ac_cv_path_MSGMERGE+:} false; then :
39fd3d4f 7263 $as_echo_n "(cached) " >&6
b0cacab0 7264else
57aa50d4
TT
7265 case "$MSGMERGE" in
7266 [\\/]* | ?:[\\/]*)
7267 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7268 ;;
7269 *)
7270 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7271 for ac_dir in $PATH; do
7272 IFS="$ac_save_IFS"
7273 test -z "$ac_dir" && ac_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
7276 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7277 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
57aa50d4
TT
7278 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7279 break 2
7280 fi
7281 fi
7282 done
7283 done
7284 IFS="$ac_save_IFS"
7285 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7286 ;;
e1052144 7287esac
57aa50d4
TT
7288fi
7289MSGMERGE="$ac_cv_path_MSGMERGE"
7290if test "$MSGMERGE" != ":"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7292$as_echo "$MSGMERGE" >&6; }
b0cacab0 7293else
57aa50d4
TT
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295$as_echo "no" >&6; }
b0cacab0 7296fi
e1052144 7297
93636bde 7298
bdcd5f22
TT
7299 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
7300 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
7301 else
7302 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
7303 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
7304 else
7305 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
7306 fi
7307 fi
93613951
TT
7308
7309
7310 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7311
7312
7313 ac_config_commands="$ac_config_commands po-directories"
a64c9c13 7314
a64c9c13 7315
93613951 7316
e598c29b
TT
7317 if test "X$prefix" = "XNONE"; then
7318 acl_final_prefix="$ac_default_prefix"
7319 else
7320 acl_final_prefix="$prefix"
7321 fi
7322 if test "X$exec_prefix" = "XNONE"; then
7323 acl_final_exec_prefix='${prefix}'
7324 else
7325 acl_final_exec_prefix="$exec_prefix"
7326 fi
7327 acl_save_prefix="$prefix"
7328 prefix="$acl_final_prefix"
7329 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7330 prefix="$acl_save_prefix"
93613951 7331
93613951 7332
e598c29b
TT
7333
7334# Check whether --with-gnu-ld was given.
7335if test "${with_gnu_ld+set}" = set; then :
7336 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
93613951 7337else
e598c29b 7338 with_gnu_ld=no
93613951 7339fi
a64c9c13 7340
e598c29b
TT
7341# Prepare PATH_SEPARATOR.
7342# The user is always right.
7343if test "${PATH_SEPARATOR+set}" != set; then
7344 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7345 # contains only /bin. Note that ksh looks also at the FPATH variable,
7346 # so we have to set that as well for the test.
7347 PATH_SEPARATOR=:
7348 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7349 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7350 || PATH_SEPARATOR=';'
7351 }
d1154eb4
TT
7352fi
7353
bdcd5f22
TT
7354if test -n "$LD"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
7356$as_echo_n "checking for ld... " >&6; }
7357elif test "$GCC" = yes; then
e598c29b 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
bdcd5f22 7359$as_echo_n "checking for ld used by $CC... " >&6; }
e598c29b
TT
7360elif test "$with_gnu_ld" = yes; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7362$as_echo_n "checking for GNU ld... " >&6; }
7363else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7365$as_echo_n "checking for non-GNU ld... " >&6; }
d1154eb4 7366fi
bdcd5f22
TT
7367if test -n "$LD"; then
7368 # Let the user override the test with a path.
7369 :
7370else
7371 if ${acl_cv_path_LD+:} false; then :
d1154eb4
TT
7372 $as_echo_n "(cached) " >&6
7373else
bdcd5f22
TT
7374
7375 acl_cv_path_LD= # Final result of this test
7376 ac_prog=ld # Program to search in $PATH
7377 if test "$GCC" = yes; then
7378 # Check if gcc -print-prog-name=ld gives a path.
7379 case $host in
7380 *-*-mingw*)
7381 # gcc leaves a trailing carriage return which upsets mingw
7382 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7383 *)
7384 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
7385 esac
7386 case $acl_output in
7387 # Accept absolute paths.
7388 [\\/]* | ?:[\\/]*)
7389 re_direlt='/[^/][^/]*/\.\./'
7390 # Canonicalize the pathname of ld
7391 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
7392 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
7393 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
7394 done
7395 # Got the pathname. No search in PATH is needed.
7396 acl_cv_path_LD="$acl_output"
7397 ac_prog=
7398 ;;
7399 "")
7400 # If it fails, then pretend we aren't using GCC.
7401 ;;
7402 *)
7403 # If it is relative, then search for the first ld in PATH.
7404 with_gnu_ld=unknown
7405 ;;
e598c29b
TT
7406 esac
7407 fi
bdcd5f22
TT
7408 if test -n "$ac_prog"; then
7409 # Search for $ac_prog in $PATH.
7410 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7411 for ac_dir in $PATH; do
7412 IFS="$acl_save_ifs"
7413 test -z "$ac_dir" && ac_dir=.
7414 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7415 acl_cv_path_LD="$ac_dir/$ac_prog"
7416 # Check to see if the program is GNU ld. I'd rather use --version,
7417 # but apparently some variants of GNU ld only accept -v.
7418 # Break only if it was the GNU/non-GNU ld that we prefer.
7419 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7420 *GNU* | *'with BFD'*)
7421 test "$with_gnu_ld" != no && break
7422 ;;
7423 *)
7424 test "$with_gnu_ld" != yes && break
7425 ;;
7426 esac
7427 fi
7428 done
7429 IFS="$acl_save_ifs"
7430 fi
7431 case $host in
7432 *-*-aix*)
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h. */
7435#if defined __powerpc64__ || defined _ARCH_PPC64
7436 int ok;
7437 #else
7438 error fail
7439 #endif
7440
7441_ACEOF
7442if ac_fn_c_try_compile "$LINENO"; then :
7443 # The compiler produces 64-bit code. Add option '-b64' so that the
7444 # linker groks 64-bit object files.
7445 case "$acl_cv_path_LD " in
7446 *" -b64 "*) ;;
7447 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
7448 esac
7449
7450fi
7451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452 ;;
7453 sparc64-*-netbsd*)
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455/* end confdefs.h. */
7456#if defined __sparcv9 || defined __arch64__
7457 int ok;
7458 #else
7459 error fail
7460 #endif
7461
7462_ACEOF
7463if ac_fn_c_try_compile "$LINENO"; then :
7464
e598c29b 7465else
bdcd5f22
TT
7466 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
7467 # so that the linker groks 32-bit object files.
7468 case "$acl_cv_path_LD " in
7469 *" -m elf32_sparc "*) ;;
7470 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
7471 esac
7472
d1154eb4 7473fi
bdcd5f22
TT
7474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 ;;
7476 esac
7477
d1154eb4 7478fi
e598c29b 7479
bdcd5f22
TT
7480 LD="$acl_cv_path_LD"
7481fi
e598c29b
TT
7482if test -n "$LD"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7484$as_echo "$LD" >&6; }
d1154eb4
TT
7485else
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
bdcd5f22 7488 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
d1154eb4 7489fi
e598c29b
TT
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7491$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7492if ${acl_cv_prog_gnu_ld+:} false; then :
d1154eb4
TT
7493 $as_echo_n "(cached) " >&6
7494else
e598c29b
TT
7495 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7496case `$LD -v 2>&1 </dev/null` in
7497*GNU* | *'with BFD'*)
7498 acl_cv_prog_gnu_ld=yes
7499 ;;
7500*)
7501 acl_cv_prog_gnu_ld=no
7502 ;;
7503esac
7504fi
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7506$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7507with_gnu_ld=$acl_cv_prog_gnu_ld
93613951 7508
d1154eb4 7509
93613951 7510
d1154eb4 7511
e598c29b
TT
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7513$as_echo_n "checking for shared library run path origin... " >&6; }
7514if ${acl_cv_rpath+:} false; then :
93613951
TT
7515 $as_echo_n "(cached) " >&6
7516else
d1154eb4 7517
e598c29b
TT
7518 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7519 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7520 . ./conftest.sh
7521 rm -f ./conftest.sh
7522 acl_cv_rpath=done
d1154eb4 7523
93613951 7524fi
e598c29b
TT
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7526$as_echo "$acl_cv_rpath" >&6; }
7527 wl="$acl_cv_wl"
7528 acl_libext="$acl_cv_libext"
7529 acl_shlibext="$acl_cv_shlibext"
7530 acl_libname_spec="$acl_cv_libname_spec"
7531 acl_library_names_spec="$acl_cv_library_names_spec"
7532 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7533 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7534 acl_hardcode_direct="$acl_cv_hardcode_direct"
7535 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7536 # Check whether --enable-rpath was given.
7537if test "${enable_rpath+set}" = set; then :
7538 enableval=$enable_rpath; :
7539else
7540 enable_rpath=yes
93613951 7541fi
d1154eb4 7542
d1154eb4
TT
7543
7544
93613951 7545
bdcd5f22
TT
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
7547$as_echo_n "checking 32-bit host C ABI... " >&6; }
7548if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
57aa50d4
TT
7549 $as_echo_n "(cached) " >&6
7550else
bdcd5f22
TT
7551 if test -n "$gl_cv_host_cpu_c_abi"; then
7552 case "$gl_cv_host_cpu_c_abi" in
7553 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
7554 gl_cv_host_cpu_c_abi_32bit=yes ;;
7555 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
7556 gl_cv_host_cpu_c_abi_32bit=no ;;
7557 *)
7558 gl_cv_host_cpu_c_abi_32bit=unknown ;;
7559 esac
7560 else
7561 case "$host_cpu" in
7562
7563 # CPUs that only support a 32-bit ABI.
7564 arc \
7565 | bfin \
7566 | cris* \
7567 | csky \
7568 | epiphany \
7569 | ft32 \
7570 | h8300 \
7571 | m68k \
7572 | microblaze | microblazeel \
7573 | nds32 | nds32le | nds32be \
7574 | nios2 | nios2eb | nios2el \
7575 | or1k* \
7576 | or32 \
7577 | sh | sh1234 | sh1234elb \
7578 | tic6x \
7579 | xtensa* )
7580 gl_cv_host_cpu_c_abi_32bit=yes
7581 ;;
7582
7583 # CPUs that only support a 64-bit ABI.
7584 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
7585 | mmix )
7586 gl_cv_host_cpu_c_abi_32bit=no
7587 ;;
7588
7589 i[34567]86 )
7590 gl_cv_host_cpu_c_abi_32bit=yes
7591 ;;
7592
7593 x86_64 )
7594 # On x86_64 systems, the C compiler may be generating code in one of
7595 # these ABIs:
7596 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7597 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7598 # with native Windows (mingw, MSVC).
7599 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7600 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4 7602/* end confdefs.h. */
bdcd5f22
TT
7603#if (defined __x86_64__ || defined __amd64__ \
7604 || defined _M_X64 || defined _M_AMD64) \
7605 && !(defined __ILP32__ || defined _ILP32)
7606 int ok;
7607 #else
7608 error fail
7609 #endif
e598c29b 7610
bdcd5f22
TT
7611_ACEOF
7612if ac_fn_c_try_compile "$LINENO"; then :
7613 gl_cv_host_cpu_c_abi_32bit=no
7614else
7615 gl_cv_host_cpu_c_abi_32bit=yes
7616fi
7617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 ;;
7619
7620 arm* | aarch64 )
7621 # Assume arm with EABI.
7622 # On arm64 systems, the C compiler may be generating code in one of
7623 # these ABIs:
7624 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7625 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7626 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h. */
7629#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
7630 int ok;
7631 #else
7632 error fail
7633 #endif
7634
7635_ACEOF
7636if ac_fn_c_try_compile "$LINENO"; then :
7637 gl_cv_host_cpu_c_abi_32bit=no
7638else
7639 gl_cv_host_cpu_c_abi_32bit=yes
7640fi
7641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642 ;;
7643
7644 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7645 # On hppa, the C compiler may be generating 32-bit code or 64-bit
7646 # code. In the latter case, it defines _LP64 and __LP64__.
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648/* end confdefs.h. */
7649#ifdef __LP64__
7650 int ok;
7651 #else
7652 error fail
7653 #endif
7654
7655_ACEOF
7656if ac_fn_c_try_compile "$LINENO"; then :
7657 gl_cv_host_cpu_c_abi_32bit=no
7658else
7659 gl_cv_host_cpu_c_abi_32bit=yes
7660fi
7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 ;;
7663
7664 ia64* )
7665 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7666 # 32-bit code. In the latter case, it defines _ILP32.
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668/* end confdefs.h. */
7669#ifdef _ILP32
7670 int ok;
7671 #else
7672 error fail
7673 #endif
7674
7675_ACEOF
7676if ac_fn_c_try_compile "$LINENO"; then :
7677 gl_cv_host_cpu_c_abi_32bit=yes
7678else
7679 gl_cv_host_cpu_c_abi_32bit=no
7680fi
7681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 ;;
7683
7684 mips* )
7685 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7686 # at 32.
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h. */
7689#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7690 int ok;
7691 #else
7692 error fail
7693 #endif
7694
7695_ACEOF
7696if ac_fn_c_try_compile "$LINENO"; then :
7697 gl_cv_host_cpu_c_abi_32bit=no
7698else
7699 gl_cv_host_cpu_c_abi_32bit=yes
7700fi
7701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702 ;;
7703
7704 powerpc* )
7705 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
7706 # No need to distinguish them here; the caller may distinguish
7707 # them based on the OS.
7708 # On powerpc64 systems, the C compiler may still be generating
7709 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
7710 # be generating 64-bit code.
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712/* end confdefs.h. */
7713#if defined __powerpc64__ || defined _ARCH_PPC64
7714 int ok;
7715 #else
7716 error fail
7717 #endif
7718
7719_ACEOF
7720if ac_fn_c_try_compile "$LINENO"; then :
7721 gl_cv_host_cpu_c_abi_32bit=no
7722else
7723 gl_cv_host_cpu_c_abi_32bit=yes
7724fi
7725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 ;;
7727
7728 rs6000 )
7729 gl_cv_host_cpu_c_abi_32bit=yes
7730 ;;
7731
7732 riscv32 | riscv64 )
7733 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
7734 # Size of 'long' and 'void *':
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h. */
7737#if defined __LP64__
7738 int ok;
7739 #else
7740 error fail
7741 #endif
7742
7743_ACEOF
7744if ac_fn_c_try_compile "$LINENO"; then :
7745 gl_cv_host_cpu_c_abi_32bit=no
7746else
7747 gl_cv_host_cpu_c_abi_32bit=yes
7748fi
7749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 ;;
7751
7752 s390* )
7753 # On s390x, the C compiler may be generating 64-bit (= s390x) code
7754 # or 31-bit (= s390) code.
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h. */
7757#if defined __LP64__ || defined __s390x__
7758 int ok;
7759 #else
7760 error fail
7761 #endif
7762
7763_ACEOF
7764if ac_fn_c_try_compile "$LINENO"; then :
7765 gl_cv_host_cpu_c_abi_32bit=no
7766else
7767 gl_cv_host_cpu_c_abi_32bit=yes
7768fi
7769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 ;;
7771
7772 sparc | sparc64 )
7773 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
7774 # C compiler still generates 32-bit code.
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776/* end confdefs.h. */
7777#if defined __sparcv9 || defined __arch64__
7778 int ok;
7779 #else
7780 error fail
7781 #endif
7782
7783_ACEOF
7784if ac_fn_c_try_compile "$LINENO"; then :
7785 gl_cv_host_cpu_c_abi_32bit=no
7786else
7787 gl_cv_host_cpu_c_abi_32bit=yes
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 ;;
7791
7792 *)
7793 gl_cv_host_cpu_c_abi_32bit=unknown
7794 ;;
7795 esac
7796 fi
7797
7798fi
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
7800$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
7801
7802 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
7803
7804
7805
7806
7807
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
7809$as_echo_n "checking for ELF binary format... " >&6; }
7810if ${gl_cv_elf+:} false; then :
7811 $as_echo_n "(cached) " >&6
7812else
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h. */
7815#ifdef __ELF__
7816 Extensible Linking Format
7817 #endif
d1154eb4 7818
d1154eb4 7819_ACEOF
e598c29b 7820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bdcd5f22
TT
7821 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7822 gl_cv_elf=yes
e598c29b 7823else
bdcd5f22 7824 gl_cv_elf=no
57aa50d4 7825fi
e598c29b 7826rm -f conftest*
d1154eb4 7827
d1154eb4 7828
e598c29b 7829fi
bdcd5f22
TT
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
7831$as_echo "$gl_cv_elf" >&6; }
7832 if test $gl_cv_elf; then
7833 # Extract the ELF class of a file (5th byte) in decimal.
7834 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
7835 if od -A x < /dev/null >/dev/null 2>/dev/null; then
7836 # Use POSIX od.
7837 func_elfclass ()
7838 {
7839 od -A n -t d1 -j 4 -N 1
7840 }
7841 else
7842 # Use BSD hexdump.
7843 func_elfclass ()
7844 {
7845 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
7846 echo
7847 }
7848 fi
7849 case $HOST_CPU_C_ABI_32BIT in
7850 yes)
7851 # 32-bit ABI.
7852 acl_is_expected_elfclass ()
7853 {
7854 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
7855 }
7856 ;;
7857 no)
7858 # 64-bit ABI.
7859 acl_is_expected_elfclass ()
7860 {
7861 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
7862 }
7863 ;;
7864 *)
7865 # Unknown.
7866 acl_is_expected_elfclass ()
7867 {
7868 :
7869 }
7870 ;;
7871 esac
7872 else
7873 acl_is_expected_elfclass ()
7874 {
7875 :
7876 }
7877 fi
d1154eb4 7878
bdcd5f22
TT
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
7880$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
7881if ${acl_cv_libdirstems+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883else
7884 acl_libdirstem=lib
7885 acl_libdirstem2=
7886 acl_libdirstem3=
7887 case "$host_os" in
7888 solaris*)
7889 if test $HOST_CPU_C_ABI_32BIT = no; then
7890 acl_libdirstem2=lib/64
7891 case "$host_cpu" in
7892 sparc*) acl_libdirstem3=lib/sparcv9 ;;
7893 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
7894 esac
7895 fi
7896 ;;
7897 *)
7898 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
7899 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7900 if test $HOST_CPU_C_ABI_32BIT != no; then
7901 # 32-bit or unknown ABI.
7902 if test -d /usr/lib32; then
7903 acl_libdirstem2=lib32
7904 fi
7905 fi
7906 if test $HOST_CPU_C_ABI_32BIT != yes; then
7907 # 64-bit or unknown ABI.
7908 if test -d /usr/lib64; then
7909 acl_libdirstem3=lib64
7910 fi
7911 fi
7912 if test -n "$searchpath"; then
7913 acl_save_IFS="${IFS= }"; IFS=":"
7914 for searchdir in $searchpath; do
7915 if test -d "$searchdir"; then
7916 case "$searchdir" in
7917 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7918 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7919 */../ | */.. )
7920 # Better ignore directories of this form. They are misleading.
7921 ;;
7922 *) searchdir=`cd "$searchdir" && pwd`
7923 case "$searchdir" in
7924 */lib32 ) acl_libdirstem2=lib32 ;;
7925 */lib64 ) acl_libdirstem3=lib64 ;;
7926 esac ;;
7927 esac
7928 fi
7929 done
7930 IFS="$acl_save_IFS"
7931 if test $HOST_CPU_C_ABI_32BIT = yes; then
7932 # 32-bit ABI.
7933 acl_libdirstem3=
7934 fi
7935 if test $HOST_CPU_C_ABI_32BIT = no; then
7936 # 64-bit ABI.
7937 acl_libdirstem2=
7938 fi
7939 fi
7940 ;;
7941 esac
7942 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7943 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7944 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7945
7946fi
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7948$as_echo "$acl_cv_libdirstems" >&6; }
7949 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7950 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7951 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
d1154eb4 7952
d1154eb4 7953
b0cacab0
TT
7954
7955
7956
b0cacab0
TT
7957
7958
7959
57aa50d4 7960
57aa50d4 7961
b0cacab0 7962
e598c29b 7963 use_additional=yes
b0cacab0 7964
e598c29b
TT
7965 acl_save_prefix="$prefix"
7966 prefix="$acl_final_prefix"
7967 acl_save_exec_prefix="$exec_prefix"
7968 exec_prefix="$acl_final_exec_prefix"
57aa50d4 7969
e598c29b
TT
7970 eval additional_includedir=\"$includedir\"
7971 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
7972 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7973 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57aa50d4 7974
e598c29b
TT
7975 exec_prefix="$acl_save_exec_prefix"
7976 prefix="$acl_save_prefix"
57aa50d4 7977
b0cacab0 7978
e598c29b
TT
7979# Check whether --with-libiconv-prefix was given.
7980if test "${with_libiconv_prefix+set}" = set; then :
7981 withval=$with_libiconv_prefix;
7982 if test "X$withval" = "Xno"; then
7983 use_additional=no
7984 else
7985 if test "X$withval" = "X"; then
57aa50d4 7986
e598c29b
TT
7987 acl_save_prefix="$prefix"
7988 prefix="$acl_final_prefix"
7989 acl_save_exec_prefix="$exec_prefix"
7990 exec_prefix="$acl_final_exec_prefix"
57aa50d4 7991
e598c29b
TT
7992 eval additional_includedir=\"$includedir\"
7993 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
7994 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7995 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57aa50d4 7996
e598c29b
TT
7997 exec_prefix="$acl_save_exec_prefix"
7998 prefix="$acl_save_prefix"
b0cacab0 7999
e598c29b
TT
8000 else
8001 additional_includedir="$withval/include"
8002 additional_libdir="$withval/$acl_libdirstem"
bdcd5f22
TT
8003 additional_libdir2="$withval/$acl_libdirstem2"
8004 additional_libdir3="$withval/$acl_libdirstem3"
e598c29b
TT
8005 fi
8006 fi
d1154eb4
TT
8007
8008fi
e1052144 8009
bdcd5f22
TT
8010 if test "X$additional_libdir2" = "X$additional_libdir"; then
8011 additional_libdir2=
8012 fi
8013 if test "X$additional_libdir3" = "X$additional_libdir"; then
8014 additional_libdir3=
8015 fi
e598c29b
TT
8016 LIBICONV=
8017 LTLIBICONV=
8018 INCICONV=
8019 LIBICONV_PREFIX=
8020 HAVE_LIBICONV=
8021 rpathdirs=
8022 ltrpathdirs=
8023 names_already_handled=
8024 names_next_round='iconv '
8025 while test -n "$names_next_round"; do
8026 names_this_round="$names_next_round"
8027 names_next_round=
8028 for name in $names_this_round; do
8029 already_handled=
8030 for n in $names_already_handled; do
8031 if test "$n" = "$name"; then
8032 already_handled=yes
8033 break
8034 fi
8035 done
8036 if test -z "$already_handled"; then
8037 names_already_handled="$names_already_handled $name"
8038 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8039 eval value=\"\$HAVE_LIB$uppername\"
8040 if test -n "$value"; then
8041 if test "$value" = yes; then
8042 eval value=\"\$LIB$uppername\"
8043 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8044 eval value=\"\$LTLIB$uppername\"
8045 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8046 else
8047 :
8048 fi
8049 else
8050 found_dir=
8051 found_la=
8052 found_so=
8053 found_a=
8054 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8055 if test -n "$acl_shlibext"; then
8056 shrext=".$acl_shlibext" # typically: shrext=.so
8057 else
8058 shrext=
8059 fi
8060 if test $use_additional = yes; then
bdcd5f22
TT
8061 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8062 if test "X$found_dir" = "X"; then
8063 eval dir=\$$additional_libdir_variable
8064 if test -n "$dir"; then
8065 if test -n "$acl_shlibext"; then
8066 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8067 found_dir="$dir"
8068 found_so="$dir/$libname$shrext"
8069 else
8070 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8071 ver=`(cd "$dir" && \
8072 for f in "$libname$shrext".*; do echo "$f"; done \
8073 | sed -e "s,^$libname$shrext\\\\.,," \
8074 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8075 | sed 1q ) 2>/dev/null`
8076 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8077 found_dir="$dir"
8078 found_so="$dir/$libname$shrext.$ver"
8079 fi
8080 else
8081 eval library_names=\"$acl_library_names_spec\"
8082 for f in $library_names; do
8083 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8084 found_dir="$dir"
8085 found_so="$dir/$f"
8086 break
8087 fi
8088 done
8089 fi
8090 fi
e598c29b 8091 fi
bdcd5f22
TT
8092 if test "X$found_dir" = "X"; then
8093 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
e598c29b 8094 found_dir="$dir"
bdcd5f22 8095 found_a="$dir/$libname.$acl_libext"
e598c29b 8096 fi
bdcd5f22
TT
8097 fi
8098 if test "X$found_dir" != "X"; then
8099 if test -f "$dir/$libname.la"; then
8100 found_la="$dir/$libname.la"
8101 fi
8102 fi
e598c29b
TT
8103 fi
8104 fi
bdcd5f22 8105 done
e598c29b
TT
8106 fi
8107 if test "X$found_dir" = "X"; then
8108 for x in $LDFLAGS $LTLIBICONV; do
07a0db15 8109
e598c29b
TT
8110 acl_save_prefix="$prefix"
8111 prefix="$acl_final_prefix"
8112 acl_save_exec_prefix="$exec_prefix"
8113 exec_prefix="$acl_final_exec_prefix"
8114 eval x=\"$x\"
8115 exec_prefix="$acl_save_exec_prefix"
8116 prefix="$acl_save_prefix"
50e1e10f 8117
e598c29b
TT
8118 case "$x" in
8119 -L*)
8120 dir=`echo "X$x" | sed -e 's/^X-L//'`
8121 if test -n "$acl_shlibext"; then
bdcd5f22 8122 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
e598c29b
TT
8123 found_dir="$dir"
8124 found_so="$dir/$libname$shrext"
8125 else
8126 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8127 ver=`(cd "$dir" && \
8128 for f in "$libname$shrext".*; do echo "$f"; done \
8129 | sed -e "s,^$libname$shrext\\\\.,," \
8130 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8131 | sed 1q ) 2>/dev/null`
bdcd5f22 8132 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
e598c29b
TT
8133 found_dir="$dir"
8134 found_so="$dir/$libname$shrext.$ver"
8135 fi
8136 else
8137 eval library_names=\"$acl_library_names_spec\"
8138 for f in $library_names; do
bdcd5f22 8139 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
e598c29b
TT
8140 found_dir="$dir"
8141 found_so="$dir/$f"
8142 break
8143 fi
8144 done
8145 fi
8146 fi
8147 fi
8148 if test "X$found_dir" = "X"; then
bdcd5f22 8149 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
e598c29b
TT
8150 found_dir="$dir"
8151 found_a="$dir/$libname.$acl_libext"
8152 fi
8153 fi
8154 if test "X$found_dir" != "X"; then
8155 if test -f "$dir/$libname.la"; then
8156 found_la="$dir/$libname.la"
8157 fi
8158 fi
8159 ;;
8160 esac
8161 if test "X$found_dir" != "X"; then
8162 break
8163 fi
8164 done
8165 fi
8166 if test "X$found_dir" != "X"; then
8167 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8168 if test "X$found_so" != "X"; then
8169 if test "$enable_rpath" = no \
8170 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
bdcd5f22
TT
8171 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
8172 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
e598c29b
TT
8173 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8174 else
8175 haveit=
8176 for x in $ltrpathdirs; do
8177 if test "X$x" = "X$found_dir"; then
8178 haveit=yes
8179 break
8180 fi
8181 done
8182 if test -z "$haveit"; then
8183 ltrpathdirs="$ltrpathdirs $found_dir"
8184 fi
8185 if test "$acl_hardcode_direct" = yes; then
8186 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8187 else
8188 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8190 haveit=
8191 for x in $rpathdirs; do
8192 if test "X$x" = "X$found_dir"; then
8193 haveit=yes
8194 break
8195 fi
8196 done
8197 if test -z "$haveit"; then
8198 rpathdirs="$rpathdirs $found_dir"
8199 fi
8200 else
8201 haveit=
8202 for x in $LDFLAGS $LIBICONV; do
93613951 8203
e598c29b
TT
8204 acl_save_prefix="$prefix"
8205 prefix="$acl_final_prefix"
8206 acl_save_exec_prefix="$exec_prefix"
8207 exec_prefix="$acl_final_exec_prefix"
8208 eval x=\"$x\"
8209 exec_prefix="$acl_save_exec_prefix"
8210 prefix="$acl_save_prefix"
b0cacab0 8211
e598c29b
TT
8212 if test "X$x" = "X-L$found_dir"; then
8213 haveit=yes
8214 break
8215 fi
8216 done
8217 if test -z "$haveit"; then
8218 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8219 fi
8220 if test "$acl_hardcode_minus_L" != no; then
8221 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8222 else
8223 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8224 fi
8225 fi
8226 fi
8227 fi
8228 else
8229 if test "X$found_a" != "X"; then
8230 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8231 else
8232 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8233 fi
8234 fi
8235 additional_includedir=
8236 case "$found_dir" in
8237 */$acl_libdirstem | */$acl_libdirstem/)
8238 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8239 if test "$name" = 'iconv'; then
8240 LIBICONV_PREFIX="$basedir"
8241 fi
8242 additional_includedir="$basedir/include"
8243 ;;
8244 */$acl_libdirstem2 | */$acl_libdirstem2/)
8245 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8246 if test "$name" = 'iconv'; then
8247 LIBICONV_PREFIX="$basedir"
8248 fi
8249 additional_includedir="$basedir/include"
8250 ;;
bdcd5f22
TT
8251 */$acl_libdirstem3 | */$acl_libdirstem3/)
8252 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
8253 if test "$name" = 'iconv'; then
8254 LIBICONV_PREFIX="$basedir"
8255 fi
8256 additional_includedir="$basedir/include"
8257 ;;
e598c29b
TT
8258 esac
8259 if test "X$additional_includedir" != "X"; then
8260 if test "X$additional_includedir" != "X/usr/include"; then
8261 haveit=
8262 if test "X$additional_includedir" = "X/usr/local/include"; then
8263 if test -n "$GCC"; then
8264 case $host_os in
8265 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8266 esac
8267 fi
8268 fi
8269 if test -z "$haveit"; then
8270 for x in $CPPFLAGS $INCICONV; do
93613951 8271
e598c29b
TT
8272 acl_save_prefix="$prefix"
8273 prefix="$acl_final_prefix"
8274 acl_save_exec_prefix="$exec_prefix"
8275 exec_prefix="$acl_final_exec_prefix"
8276 eval x=\"$x\"
8277 exec_prefix="$acl_save_exec_prefix"
8278 prefix="$acl_save_prefix"
93613951 8279
e598c29b
TT
8280 if test "X$x" = "X-I$additional_includedir"; then
8281 haveit=yes
8282 break
8283 fi
8284 done
8285 if test -z "$haveit"; then
8286 if test -d "$additional_includedir"; then
8287 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8288 fi
8289 fi
8290 fi
8291 fi
8292 fi
8293 if test -n "$found_la"; then
8294 save_libdir="$libdir"
8295 case "$found_la" in
8296 */* | *\\*) . "$found_la" ;;
8297 *) . "./$found_la" ;;
8298 esac
8299 libdir="$save_libdir"
8300 for dep in $dependency_libs; do
8301 case "$dep" in
8302 -L*)
bdcd5f22
TT
8303 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8304 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
8305 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
8306 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
e598c29b 8307 haveit=
bdcd5f22
TT
8308 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
8309 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
8310 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
e598c29b
TT
8311 if test -n "$GCC"; then
8312 case $host_os in
8313 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8314 esac
8315 fi
8316 fi
8317 if test -z "$haveit"; then
8318 haveit=
8319 for x in $LDFLAGS $LIBICONV; do
b0cacab0 8320
e598c29b
TT
8321 acl_save_prefix="$prefix"
8322 prefix="$acl_final_prefix"
8323 acl_save_exec_prefix="$exec_prefix"
8324 exec_prefix="$acl_final_exec_prefix"
8325 eval x=\"$x\"
8326 exec_prefix="$acl_save_exec_prefix"
8327 prefix="$acl_save_prefix"
50e1e10f 8328
bdcd5f22 8329 if test "X$x" = "X-L$dependency_libdir"; then
e598c29b
TT
8330 haveit=yes
8331 break
8332 fi
8333 done
8334 if test -z "$haveit"; then
bdcd5f22
TT
8335 if test -d "$dependency_libdir"; then
8336 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
e598c29b
TT
8337 fi
8338 fi
8339 haveit=
8340 for x in $LDFLAGS $LTLIBICONV; do
e1052144 8341
e598c29b
TT
8342 acl_save_prefix="$prefix"
8343 prefix="$acl_final_prefix"
8344 acl_save_exec_prefix="$exec_prefix"
8345 exec_prefix="$acl_final_exec_prefix"
8346 eval x=\"$x\"
8347 exec_prefix="$acl_save_exec_prefix"
8348 prefix="$acl_save_prefix"
8349
bdcd5f22 8350 if test "X$x" = "X-L$dependency_libdir"; then
e598c29b
TT
8351 haveit=yes
8352 break
8353 fi
8354 done
8355 if test -z "$haveit"; then
bdcd5f22
TT
8356 if test -d "$dependency_libdir"; then
8357 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
e598c29b
TT
8358 fi
8359 fi
8360 fi
8361 fi
8362 ;;
8363 -R*)
8364 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8365 if test "$enable_rpath" != no; then
8366 haveit=
8367 for x in $rpathdirs; do
8368 if test "X$x" = "X$dir"; then
8369 haveit=yes
8370 break
8371 fi
8372 done
8373 if test -z "$haveit"; then
8374 rpathdirs="$rpathdirs $dir"
8375 fi
8376 haveit=
8377 for x in $ltrpathdirs; do
8378 if test "X$x" = "X$dir"; then
8379 haveit=yes
8380 break
8381 fi
8382 done
8383 if test -z "$haveit"; then
8384 ltrpathdirs="$ltrpathdirs $dir"
8385 fi
8386 fi
8387 ;;
8388 -l*)
8389 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8390 ;;
8391 *.la)
8392 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8393 ;;
8394 *)
8395 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8396 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8397 ;;
8398 esac
8399 done
8400 fi
8401 else
8402 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8403 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8404 fi
8405 fi
8406 fi
8407 done
93613951 8408 done
e598c29b
TT
8409 if test "X$rpathdirs" != "X"; then
8410 if test -n "$acl_hardcode_libdir_separator"; then
8411 alldirs=
8412 for found_dir in $rpathdirs; do
8413 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8414 done
8415 acl_save_libdir="$libdir"
8416 libdir="$alldirs"
8417 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8418 libdir="$acl_save_libdir"
8419 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8420 else
8421 for found_dir in $rpathdirs; do
8422 acl_save_libdir="$libdir"
8423 libdir="$found_dir"
8424 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8425 libdir="$acl_save_libdir"
8426 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8427 done
8428 fi
8429 fi
8430 if test "X$ltrpathdirs" != "X"; then
8431 for found_dir in $ltrpathdirs; do
8432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8433 done
8434 fi
b0cacab0 8435
93613951 8436
93613951 8437
57aa50d4
TT
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
b0cacab0 8449
740837de 8450
b0cacab0
TT
8451
8452
8453
93613951
TT
8454
8455
8456
8457
8458
8459
8460
93613951
TT
8461
8462
8463
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8465$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8466if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8467 $as_echo_n "(cached) " >&6
50e1e10f 8468else
93613951
TT
8469 gt_save_LIBS="$LIBS"
8470 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472/* end confdefs.h. */
8473#include <CoreFoundation/CFPreferences.h>
8474int
8475main ()
8476{
8477CFPreferencesCopyAppValue(NULL, NULL)
8478 ;
8479 return 0;
8480}
8481_ACEOF
8482if ac_fn_c_try_link "$LINENO"; then :
8483 gt_cv_func_CFPreferencesCopyAppValue=yes
8484else
8485 gt_cv_func_CFPreferencesCopyAppValue=no
50e1e10f 8486fi
93613951
TT
8487rm -f core conftest.err conftest.$ac_objext \
8488 conftest$ac_exeext conftest.$ac_ext
8489 LIBS="$gt_save_LIBS"
50e1e10f 8490fi
93613951
TT
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8492$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8493 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8494
8495$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8496
8497 fi
bdcd5f22
TT
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
8499$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
8500if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
93613951
TT
8501 $as_echo_n "(cached) " >&6
8502else
8503 gt_save_LIBS="$LIBS"
8504 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506/* end confdefs.h. */
8507#include <CoreFoundation/CFLocale.h>
8508int
8509main ()
8510{
bdcd5f22 8511CFLocaleCopyPreferredLanguages();
93613951
TT
8512 ;
8513 return 0;
8514}
8515_ACEOF
8516if ac_fn_c_try_link "$LINENO"; then :
bdcd5f22 8517 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
93613951 8518else
bdcd5f22 8519 gt_cv_func_CFLocaleCopyPreferredLanguages=no
93613951
TT
8520fi
8521rm -f core conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523 LIBS="$gt_save_LIBS"
8524fi
bdcd5f22
TT
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
8526$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
8527 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
93613951 8528
bdcd5f22 8529$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
93613951
TT
8530
8531 fi
8532 INTL_MACOSX_LIBS=
bdcd5f22
TT
8533 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
8534 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
93613951
TT
8535 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8536 fi
8537
50e1e10f 8538
b0cacab0
TT
8539
8540
8541
8542
57aa50d4
TT
8543 LIBINTL=
8544 LTLIBINTL=
8545 POSUB=
8546
93613951
TT
8547 case " $gt_needs " in
8548 *" need-formatstring-macros "*) gt_api_version=3 ;;
8549 *" need-ngettext "*) gt_api_version=2 ;;
8550 *) gt_api_version=1 ;;
8551 esac
8552 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8553 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8554
57aa50d4
TT
8555 if test "$USE_NLS" = "yes"; then
8556 gt_use_preinstalled_gnugettext=no
b0cacab0
TT
8557
8558
e598c29b
TT
8559 if test $gt_api_version -ge 3; then
8560 gt_revision_test_code='
8561#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8562#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8563#endif
8564typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8565'
8566 else
8567 gt_revision_test_code=
8568 fi
8569 if test $gt_api_version -ge 2; then
8570 gt_expression_test_code=' + * ngettext ("", "", 0)'
8571 else
8572 gt_expression_test_code=
8573 fi
8574
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8576$as_echo_n "checking for GNU gettext in libc... " >&6; }
8577if eval \${$gt_func_gnugettext_libc+:} false; then :
8578 $as_echo_n "(cached) " >&6
8579else
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581/* end confdefs.h. */
8582
8583#include <libintl.h>
8584#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8585extern int _nl_msg_cat_cntr;
8586extern int *_nl_domain_bindings;
8587#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
8588#else
8589#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8590#endif
8591$gt_revision_test_code
8592
8593int
8594main ()
8595{
8596
8597bindtextdomain ("", "");
8598return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8599
8600 ;
8601 return 0;
8602}
8603_ACEOF
8604if ac_fn_c_try_link "$LINENO"; then :
8605 eval "$gt_func_gnugettext_libc=yes"
50e1e10f 8606else
e598c29b
TT
8607 eval "$gt_func_gnugettext_libc=no"
8608fi
8609rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
50e1e10f 8611fi
e598c29b
TT
8612eval ac_res=\$$gt_func_gnugettext_libc
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8614$as_echo "$ac_res" >&6; }
50e1e10f 8615
e598c29b
TT
8616 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8617
8618
8619
8620
8621
8622 am_save_CPPFLAGS="$CPPFLAGS"
8623
8624 for element in $INCICONV; do
8625 haveit=
8626 for x in $CPPFLAGS; do
8627
8628 acl_save_prefix="$prefix"
8629 prefix="$acl_final_prefix"
8630 acl_save_exec_prefix="$exec_prefix"
8631 exec_prefix="$acl_final_exec_prefix"
8632 eval x=\"$x\"
8633 exec_prefix="$acl_save_exec_prefix"
8634 prefix="$acl_save_prefix"
8635
8636 if test "X$x" = "X$element"; then
8637 haveit=yes
8638 break
8639 fi
8640 done
8641 if test -z "$haveit"; then
8642 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8643 fi
8644 done
8645
8646
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8648$as_echo_n "checking for iconv... " >&6; }
8649if ${am_cv_func_iconv+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651else
8652
8653 am_cv_func_iconv="no, consider installing GNU libiconv"
8654 am_cv_lib_iconv=no
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656/* end confdefs.h. */
8657
8658#include <stdlib.h>
8659#include <iconv.h>
b0cacab0 8660
e598c29b
TT
8661int
8662main ()
8663{
8664iconv_t cd = iconv_open("","");
8665 iconv(cd,NULL,NULL,NULL,NULL);
8666 iconv_close(cd);
8667 ;
8668 return 0;
8669}
8670_ACEOF
8671if ac_fn_c_try_link "$LINENO"; then :
8672 am_cv_func_iconv=yes
8673fi
8674rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 if test "$am_cv_func_iconv" != yes; then
8677 am_save_LIBS="$LIBS"
8678 LIBS="$LIBS $LIBICONV"
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h. */
b0cacab0 8681
e598c29b
TT
8682#include <stdlib.h>
8683#include <iconv.h>
b0cacab0 8684
e598c29b
TT
8685int
8686main ()
8687{
8688iconv_t cd = iconv_open("","");
8689 iconv(cd,NULL,NULL,NULL,NULL);
8690 iconv_close(cd);
8691 ;
8692 return 0;
8693}
8694_ACEOF
8695if ac_fn_c_try_link "$LINENO"; then :
8696 am_cv_lib_iconv=yes
8697 am_cv_func_iconv=yes
8698fi
8699rm -f core conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LIBS="$am_save_LIBS"
8702 fi
b0cacab0 8703
e598c29b
TT
8704fi
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8706$as_echo "$am_cv_func_iconv" >&6; }
8707 if test "$am_cv_func_iconv" = yes; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8709$as_echo_n "checking for working iconv... " >&6; }
8710if ${am_cv_func_iconv_works+:} false; then :
39fd3d4f 8711 $as_echo_n "(cached) " >&6
7321d94e 8712else
e598c29b
TT
8713
8714 am_save_LIBS="$LIBS"
8715 if test $am_cv_lib_iconv = yes; then
8716 LIBS="$LIBS $LIBICONV"
8717 fi
8718 am_cv_func_iconv_works=no
8719 for ac_iconv_const in '' 'const'; do
8720 if test "$cross_compiling" = yes; then :
8721 case "$host_os" in
8722 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8723 *) am_cv_func_iconv_works="guessing yes" ;;
8724 esac
8725else
57aa50d4
TT
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h. */
93613951 8728
e598c29b
TT
8729#include <iconv.h>
8730#include <string.h>
8731
8732#ifndef ICONV_CONST
8733# define ICONV_CONST $ac_iconv_const
8734#endif
93613951 8735
57aa50d4
TT
8736int
8737main ()
8738{
e598c29b
TT
8739int result = 0;
8740 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8741 returns. */
8742 {
8743 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8744 if (cd_utf8_to_88591 != (iconv_t)(-1))
8745 {
8746 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8747 char buf[10];
8748 ICONV_CONST char *inptr = input;
8749 size_t inbytesleft = strlen (input);
8750 char *outptr = buf;
8751 size_t outbytesleft = sizeof (buf);
8752 size_t res = iconv (cd_utf8_to_88591,
8753 &inptr, &inbytesleft,
8754 &outptr, &outbytesleft);
8755 if (res == 0)
8756 result |= 1;
8757 iconv_close (cd_utf8_to_88591);
8758 }
8759 }
8760 /* Test against Solaris 10 bug: Failures are not distinguishable from
8761 successful returns. */
8762 {
8763 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8764 if (cd_ascii_to_88591 != (iconv_t)(-1))
8765 {
8766 static ICONV_CONST char input[] = "\263";
8767 char buf[10];
8768 ICONV_CONST char *inptr = input;
8769 size_t inbytesleft = strlen (input);
8770 char *outptr = buf;
8771 size_t outbytesleft = sizeof (buf);
8772 size_t res = iconv (cd_ascii_to_88591,
8773 &inptr, &inbytesleft,
8774 &outptr, &outbytesleft);
8775 if (res == 0)
8776 result |= 2;
8777 iconv_close (cd_ascii_to_88591);
8778 }
8779 }
8780 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8781 {
8782 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8783 if (cd_88591_to_utf8 != (iconv_t)(-1))
8784 {
8785 static ICONV_CONST char input[] = "\304";
8786 static char buf[2] = { (char)0xDE, (char)0xAD };
8787 ICONV_CONST char *inptr = input;
8788 size_t inbytesleft = 1;
8789 char *outptr = buf;
8790 size_t outbytesleft = 1;
8791 size_t res = iconv (cd_88591_to_utf8,
8792 &inptr, &inbytesleft,
8793 &outptr, &outbytesleft);
8794 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8795 result |= 4;
8796 iconv_close (cd_88591_to_utf8);
8797 }
8798 }
8799#if 0 /* This bug could be worked around by the caller. */
8800 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8801 {
8802 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8803 if (cd_88591_to_utf8 != (iconv_t)(-1))
8804 {
8805 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8806 char buf[50];
8807 ICONV_CONST char *inptr = input;
8808 size_t inbytesleft = strlen (input);
8809 char *outptr = buf;
8810 size_t outbytesleft = sizeof (buf);
8811 size_t res = iconv (cd_88591_to_utf8,
8812 &inptr, &inbytesleft,
8813 &outptr, &outbytesleft);
8814 if ((int)res > 0)
8815 result |= 8;
8816 iconv_close (cd_88591_to_utf8);
8817 }
8818 }
8819#endif
8820 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8821 provided. */
bdcd5f22
TT
8822 {
8823 /* Try standardized names. */
8824 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8825 /* Try IRIX, OSF/1 names. */
8826 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8827 /* Try AIX names. */
8828 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8829 /* Try HP-UX names. */
8830 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8831 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8832 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8833 result |= 16;
8834 if (cd1 != (iconv_t)(-1))
8835 iconv_close (cd1);
8836 if (cd2 != (iconv_t)(-1))
8837 iconv_close (cd2);
8838 if (cd3 != (iconv_t)(-1))
8839 iconv_close (cd3);
8840 if (cd4 != (iconv_t)(-1))
8841 iconv_close (cd4);
8842 }
e598c29b 8843 return result;
93613951 8844
57aa50d4
TT
8845 ;
8846 return 0;
8847}
8848_ACEOF
e598c29b
TT
8849if ac_fn_c_try_run "$LINENO"; then :
8850 am_cv_func_iconv_works=yes
57aa50d4 8851fi
e598c29b
TT
8852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8853 conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 8854fi
93613951 8855
e598c29b
TT
8856 test "$am_cv_func_iconv_works" = no || break
8857 done
8858 LIBS="$am_save_LIBS"
8859
8860fi
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8862$as_echo "$am_cv_func_iconv_works" >&6; }
8863 case "$am_cv_func_iconv_works" in
8864 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8865 *) am_func_iconv=yes ;;
8866 esac
8867 else
8868 am_func_iconv=no am_cv_lib_iconv=no
8869 fi
8870 if test "$am_func_iconv" = yes; then
8871
8872$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8873
8874 fi
8875 if test "$am_cv_lib_iconv" = yes; then
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8877$as_echo_n "checking how to link with libiconv... " >&6; }
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8879$as_echo "$LIBICONV" >&6; }
8880 else
8881 CPPFLAGS="$am_save_CPPFLAGS"
8882 LIBICONV=
8883 LTLIBICONV=
8884 fi
8885
8886
8887
93613951
TT
8888
8889
8890
8891
b0cacab0
TT
8892
8893
8894
57aa50d4 8895 use_additional=yes
b0cacab0 8896
57aa50d4
TT
8897 acl_save_prefix="$prefix"
8898 prefix="$acl_final_prefix"
8899 acl_save_exec_prefix="$exec_prefix"
8900 exec_prefix="$acl_final_exec_prefix"
b0cacab0 8901
57aa50d4
TT
8902 eval additional_includedir=\"$includedir\"
8903 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
8904 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8905 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
b0cacab0 8906
57aa50d4
TT
8907 exec_prefix="$acl_save_exec_prefix"
8908 prefix="$acl_save_prefix"
b0cacab0
TT
8909
8910
57aa50d4
TT
8911# Check whether --with-libintl-prefix was given.
8912if test "${with_libintl_prefix+set}" = set; then :
8913 withval=$with_libintl_prefix;
8914 if test "X$withval" = "Xno"; then
8915 use_additional=no
8916 else
8917 if test "X$withval" = "X"; then
b0cacab0 8918
57aa50d4
TT
8919 acl_save_prefix="$prefix"
8920 prefix="$acl_final_prefix"
8921 acl_save_exec_prefix="$exec_prefix"
8922 exec_prefix="$acl_final_exec_prefix"
b0cacab0 8923
57aa50d4
TT
8924 eval additional_includedir=\"$includedir\"
8925 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
8926 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8927 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7321d94e 8928
57aa50d4
TT
8929 exec_prefix="$acl_save_exec_prefix"
8930 prefix="$acl_save_prefix"
7321d94e 8931
57aa50d4
TT
8932 else
8933 additional_includedir="$withval/include"
93613951 8934 additional_libdir="$withval/$acl_libdirstem"
bdcd5f22
TT
8935 additional_libdir2="$withval/$acl_libdirstem2"
8936 additional_libdir3="$withval/$acl_libdirstem3"
57aa50d4
TT
8937 fi
8938 fi
7321d94e 8939
7321d94e
MK
8940fi
8941
bdcd5f22
TT
8942 if test "X$additional_libdir2" = "X$additional_libdir"; then
8943 additional_libdir2=
8944 fi
8945 if test "X$additional_libdir3" = "X$additional_libdir"; then
8946 additional_libdir3=
8947 fi
57aa50d4
TT
8948 LIBINTL=
8949 LTLIBINTL=
8950 INCINTL=
93613951
TT
8951 LIBINTL_PREFIX=
8952 HAVE_LIBINTL=
57aa50d4
TT
8953 rpathdirs=
8954 ltrpathdirs=
8955 names_already_handled=
8956 names_next_round='intl '
8957 while test -n "$names_next_round"; do
8958 names_this_round="$names_next_round"
8959 names_next_round=
8960 for name in $names_this_round; do
8961 already_handled=
8962 for n in $names_already_handled; do
8963 if test "$n" = "$name"; then
8964 already_handled=yes
8965 break
8966 fi
50e1e10f 8967 done
57aa50d4
TT
8968 if test -z "$already_handled"; then
8969 names_already_handled="$names_already_handled $name"
93613951 8970 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
57aa50d4
TT
8971 eval value=\"\$HAVE_LIB$uppername\"
8972 if test -n "$value"; then
8973 if test "$value" = yes; then
8974 eval value=\"\$LIB$uppername\"
8975 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8976 eval value=\"\$LTLIB$uppername\"
8977 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8978 else
8979 :
8980 fi
8981 else
8982 found_dir=
8983 found_la=
8984 found_so=
8985 found_a=
93613951
TT
8986 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8987 if test -n "$acl_shlibext"; then
8988 shrext=".$acl_shlibext" # typically: shrext=.so
8989 else
8990 shrext=
8991 fi
57aa50d4 8992 if test $use_additional = yes; then
bdcd5f22
TT
8993 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8994 if test "X$found_dir" = "X"; then
8995 eval dir=\$$additional_libdir_variable
8996 if test -n "$dir"; then
8997 if test -n "$acl_shlibext"; then
8998 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8999 found_dir="$dir"
9000 found_so="$dir/$libname$shrext"
9001 else
9002 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9003 ver=`(cd "$dir" && \
9004 for f in "$libname$shrext".*; do echo "$f"; done \
9005 | sed -e "s,^$libname$shrext\\\\.,," \
9006 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9007 | sed 1q ) 2>/dev/null`
9008 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9009 found_dir="$dir"
9010 found_so="$dir/$libname$shrext.$ver"
9011 fi
9012 else
9013 eval library_names=\"$acl_library_names_spec\"
9014 for f in $library_names; do
9015 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9016 found_dir="$dir"
9017 found_so="$dir/$f"
9018 break
9019 fi
9020 done
9021 fi
9022 fi
93613951 9023 fi
bdcd5f22
TT
9024 if test "X$found_dir" = "X"; then
9025 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
93613951 9026 found_dir="$dir"
bdcd5f22 9027 found_a="$dir/$libname.$acl_libext"
93613951 9028 fi
bdcd5f22
TT
9029 fi
9030 if test "X$found_dir" != "X"; then
9031 if test -f "$dir/$libname.la"; then
9032 found_la="$dir/$libname.la"
9033 fi
9034 fi
57aa50d4
TT
9035 fi
9036 fi
bdcd5f22 9037 done
57aa50d4
TT
9038 fi
9039 if test "X$found_dir" = "X"; then
9040 for x in $LDFLAGS $LTLIBINTL; do
39fd3d4f 9041
57aa50d4
TT
9042 acl_save_prefix="$prefix"
9043 prefix="$acl_final_prefix"
9044 acl_save_exec_prefix="$exec_prefix"
9045 exec_prefix="$acl_final_exec_prefix"
9046 eval x=\"$x\"
9047 exec_prefix="$acl_save_exec_prefix"
9048 prefix="$acl_save_prefix"
3d05802f 9049
57aa50d4
TT
9050 case "$x" in
9051 -L*)
9052 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951 9053 if test -n "$acl_shlibext"; then
bdcd5f22 9054 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
57aa50d4 9055 found_dir="$dir"
93613951
TT
9056 found_so="$dir/$libname$shrext"
9057 else
9058 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9059 ver=`(cd "$dir" && \
9060 for f in "$libname$shrext".*; do echo "$f"; done \
9061 | sed -e "s,^$libname$shrext\\\\.,," \
9062 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9063 | sed 1q ) 2>/dev/null`
bdcd5f22 9064 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
93613951
TT
9065 found_dir="$dir"
9066 found_so="$dir/$libname$shrext.$ver"
9067 fi
9068 else
9069 eval library_names=\"$acl_library_names_spec\"
9070 for f in $library_names; do
bdcd5f22 9071 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
93613951
TT
9072 found_dir="$dir"
9073 found_so="$dir/$f"
9074 break
9075 fi
9076 done
57aa50d4
TT
9077 fi
9078 fi
93613951
TT
9079 fi
9080 if test "X$found_dir" = "X"; then
bdcd5f22 9081 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
93613951
TT
9082 found_dir="$dir"
9083 found_a="$dir/$libname.$acl_libext"
9084 fi
9085 fi
9086 if test "X$found_dir" != "X"; then
9087 if test -f "$dir/$libname.la"; then
9088 found_la="$dir/$libname.la"
9089 fi
57aa50d4
TT
9090 fi
9091 ;;
9092 esac
9093 if test "X$found_dir" != "X"; then
9094 break
9095 fi
9096 done
9097 fi
9098 if test "X$found_dir" != "X"; then
9099 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9100 if test "X$found_so" != "X"; then
93613951
TT
9101 if test "$enable_rpath" = no \
9102 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
bdcd5f22
TT
9103 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9104 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
57aa50d4
TT
9105 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9106 else
9107 haveit=
9108 for x in $ltrpathdirs; do
9109 if test "X$x" = "X$found_dir"; then
9110 haveit=yes
9111 break
9112 fi
9113 done
9114 if test -z "$haveit"; then
9115 ltrpathdirs="$ltrpathdirs $found_dir"
9116 fi
93613951 9117 if test "$acl_hardcode_direct" = yes; then
57aa50d4
TT
9118 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9119 else
93613951 9120 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
57aa50d4
TT
9121 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9122 haveit=
9123 for x in $rpathdirs; do
9124 if test "X$x" = "X$found_dir"; then
9125 haveit=yes
9126 break
9127 fi
9128 done
9129 if test -z "$haveit"; then
9130 rpathdirs="$rpathdirs $found_dir"
9131 fi
9132 else
9133 haveit=
9134 for x in $LDFLAGS $LIBINTL; do
6ec9ef18 9135
57aa50d4
TT
9136 acl_save_prefix="$prefix"
9137 prefix="$acl_final_prefix"
9138 acl_save_exec_prefix="$exec_prefix"
9139 exec_prefix="$acl_final_exec_prefix"
9140 eval x=\"$x\"
9141 exec_prefix="$acl_save_exec_prefix"
9142 prefix="$acl_save_prefix"
d7f45af8 9143
57aa50d4
TT
9144 if test "X$x" = "X-L$found_dir"; then
9145 haveit=yes
9146 break
9147 fi
9148 done
9149 if test -z "$haveit"; then
9150 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9151 fi
93613951 9152 if test "$acl_hardcode_minus_L" != no; then
57aa50d4
TT
9153 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9154 else
9155 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9156 fi
9157 fi
9158 fi
9159 fi
9160 else
9161 if test "X$found_a" != "X"; then
9162 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9163 else
9164 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9165 fi
9166 fi
9167 additional_includedir=
9168 case "$found_dir" in
93613951
TT
9169 */$acl_libdirstem | */$acl_libdirstem/)
9170 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9171 if test "$name" = 'intl'; then
9172 LIBINTL_PREFIX="$basedir"
9173 fi
9174 additional_includedir="$basedir/include"
9175 ;;
9176 */$acl_libdirstem2 | */$acl_libdirstem2/)
9177 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9178 if test "$name" = 'intl'; then
9179 LIBINTL_PREFIX="$basedir"
9180 fi
57aa50d4
TT
9181 additional_includedir="$basedir/include"
9182 ;;
bdcd5f22
TT
9183 */$acl_libdirstem3 | */$acl_libdirstem3/)
9184 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9185 if test "$name" = 'intl'; then
9186 LIBINTL_PREFIX="$basedir"
9187 fi
9188 additional_includedir="$basedir/include"
9189 ;;
57aa50d4
TT
9190 esac
9191 if test "X$additional_includedir" != "X"; then
9192 if test "X$additional_includedir" != "X/usr/include"; then
9193 haveit=
9194 if test "X$additional_includedir" = "X/usr/local/include"; then
9195 if test -n "$GCC"; then
9196 case $host_os in
93613951 9197 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
9198 esac
9199 fi
9200 fi
9201 if test -z "$haveit"; then
9202 for x in $CPPFLAGS $INCINTL; do
b0cacab0 9203
57aa50d4
TT
9204 acl_save_prefix="$prefix"
9205 prefix="$acl_final_prefix"
9206 acl_save_exec_prefix="$exec_prefix"
9207 exec_prefix="$acl_final_exec_prefix"
9208 eval x=\"$x\"
9209 exec_prefix="$acl_save_exec_prefix"
9210 prefix="$acl_save_prefix"
21c84b71 9211
57aa50d4
TT
9212 if test "X$x" = "X-I$additional_includedir"; then
9213 haveit=yes
9214 break
9215 fi
9216 done
9217 if test -z "$haveit"; then
9218 if test -d "$additional_includedir"; then
9219 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9220 fi
9221 fi
9222 fi
9223 fi
9224 fi
9225 if test -n "$found_la"; then
9226 save_libdir="$libdir"
9227 case "$found_la" in
9228 */* | *\\*) . "$found_la" ;;
9229 *) . "./$found_la" ;;
9230 esac
9231 libdir="$save_libdir"
9232 for dep in $dependency_libs; do
9233 case "$dep" in
9234 -L*)
bdcd5f22
TT
9235 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9236 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9237 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9238 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
57aa50d4 9239 haveit=
bdcd5f22
TT
9240 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9241 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9242 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
57aa50d4
TT
9243 if test -n "$GCC"; then
9244 case $host_os in
93613951 9245 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
9246 esac
9247 fi
9248 fi
9249 if test -z "$haveit"; then
9250 haveit=
9251 for x in $LDFLAGS $LIBINTL; do
50e1e10f 9252
57aa50d4
TT
9253 acl_save_prefix="$prefix"
9254 prefix="$acl_final_prefix"
9255 acl_save_exec_prefix="$exec_prefix"
9256 exec_prefix="$acl_final_exec_prefix"
9257 eval x=\"$x\"
9258 exec_prefix="$acl_save_exec_prefix"
9259 prefix="$acl_save_prefix"
50e1e10f 9260
bdcd5f22 9261 if test "X$x" = "X-L$dependency_libdir"; then
57aa50d4
TT
9262 haveit=yes
9263 break
9264 fi
9265 done
9266 if test -z "$haveit"; then
bdcd5f22
TT
9267 if test -d "$dependency_libdir"; then
9268 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
57aa50d4
TT
9269 fi
9270 fi
9271 haveit=
9272 for x in $LDFLAGS $LTLIBINTL; do
a4bf69d9 9273
57aa50d4
TT
9274 acl_save_prefix="$prefix"
9275 prefix="$acl_final_prefix"
9276 acl_save_exec_prefix="$exec_prefix"
9277 exec_prefix="$acl_final_exec_prefix"
9278 eval x=\"$x\"
9279 exec_prefix="$acl_save_exec_prefix"
9280 prefix="$acl_save_prefix"
50e1e10f 9281
bdcd5f22 9282 if test "X$x" = "X-L$dependency_libdir"; then
57aa50d4
TT
9283 haveit=yes
9284 break
9285 fi
9286 done
9287 if test -z "$haveit"; then
bdcd5f22
TT
9288 if test -d "$dependency_libdir"; then
9289 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
57aa50d4
TT
9290 fi
9291 fi
9292 fi
9293 fi
9294 ;;
9295 -R*)
9296 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9297 if test "$enable_rpath" != no; then
9298 haveit=
9299 for x in $rpathdirs; do
9300 if test "X$x" = "X$dir"; then
9301 haveit=yes
9302 break
9303 fi
9304 done
9305 if test -z "$haveit"; then
9306 rpathdirs="$rpathdirs $dir"
9307 fi
9308 haveit=
9309 for x in $ltrpathdirs; do
9310 if test "X$x" = "X$dir"; then
9311 haveit=yes
9312 break
9313 fi
9314 done
9315 if test -z "$haveit"; then
9316 ltrpathdirs="$ltrpathdirs $dir"
9317 fi
9318 fi
9319 ;;
9320 -l*)
9321 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9322 ;;
9323 *.la)
9324 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9325 ;;
9326 *)
9327 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9328 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9329 ;;
9330 esac
9331 done
9332 fi
9333 else
9334 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9335 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9336 fi
9337 fi
9338 fi
9339 done
9340 done
9341 if test "X$rpathdirs" != "X"; then
93613951 9342 if test -n "$acl_hardcode_libdir_separator"; then
57aa50d4
TT
9343 alldirs=
9344 for found_dir in $rpathdirs; do
93613951 9345 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
57aa50d4
TT
9346 done
9347 acl_save_libdir="$libdir"
9348 libdir="$alldirs"
93613951 9349 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
9350 libdir="$acl_save_libdir"
9351 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9352 else
9353 for found_dir in $rpathdirs; do
9354 acl_save_libdir="$libdir"
9355 libdir="$found_dir"
93613951 9356 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
9357 libdir="$acl_save_libdir"
9358 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9359 done
9360 fi
9361 fi
9362 if test "X$ltrpathdirs" != "X"; then
9363 for found_dir in $ltrpathdirs; do
9364 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9365 done
9366 fi
b0cacab0 9367
93613951
TT
9368
9369
9370
9371
57aa50d4
TT
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9373$as_echo_n "checking for GNU gettext in libintl... " >&6; }
93613951 9374if eval \${$gt_func_gnugettext_libintl+:} false; then :
39fd3d4f 9375 $as_echo_n "(cached) " >&6
6c133523 9376else
57aa50d4
TT
9377 gt_save_CPPFLAGS="$CPPFLAGS"
9378 CPPFLAGS="$CPPFLAGS $INCINTL"
9379 gt_save_LIBS="$LIBS"
9380 LIBS="$LIBS $LIBINTL"
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382/* end confdefs.h. */
93613951 9383
57aa50d4 9384#include <libintl.h>
e598c29b 9385#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
57aa50d4
TT
9386extern int _nl_msg_cat_cntr;
9387extern
9388#ifdef __cplusplus
9389"C"
9390#endif
93613951 9391const char *_nl_expand_alias (const char *);
e598c29b
TT
9392#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9393#else
9394#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9395#endif
9396$gt_revision_test_code
93613951 9397
57aa50d4
TT
9398int
9399main ()
9400{
93613951 9401
57aa50d4 9402bindtextdomain ("", "");
e598c29b 9403return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
93613951 9404
57aa50d4
TT
9405 ;
9406 return 0;
9407}
b0cacab0 9408_ACEOF
57aa50d4 9409if ac_fn_c_try_link "$LINENO"; then :
93613951 9410 eval "$gt_func_gnugettext_libintl=yes"
6c133523 9411else
93613951 9412 eval "$gt_func_gnugettext_libintl=no"
6c133523 9413fi
57aa50d4
TT
9414rm -f core conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
93613951 9416 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
57aa50d4
TT
9417 LIBS="$LIBS $LIBICONV"
9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da76d6b7 9419/* end confdefs.h. */
93613951 9420
57aa50d4 9421#include <libintl.h>
e598c29b 9422#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
57aa50d4
TT
9423extern int _nl_msg_cat_cntr;
9424extern
9425#ifdef __cplusplus
9426"C"
da76d6b7 9427#endif
93613951 9428const char *_nl_expand_alias (const char *);
e598c29b
TT
9429#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9430#else
9431#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9432#endif
9433$gt_revision_test_code
93613951 9434
57aa50d4
TT
9435int
9436main ()
9437{
93613951 9438
57aa50d4 9439bindtextdomain ("", "");
e598c29b 9440return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
93613951 9441
57aa50d4
TT
9442 ;
9443 return 0;
9444}
da76d6b7 9445_ACEOF
57aa50d4
TT
9446if ac_fn_c_try_link "$LINENO"; then :
9447 LIBINTL="$LIBINTL $LIBICONV"
93613951
TT
9448 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9449 eval "$gt_func_gnugettext_libintl=yes"
6c133523
TT
9450
9451fi
57aa50d4
TT
9452rm -f core conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454 fi
9455 CPPFLAGS="$gt_save_CPPFLAGS"
9456 LIBS="$gt_save_LIBS"
da76d6b7 9457fi
93613951
TT
9458eval ac_res=\$$gt_func_gnugettext_libintl
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9460$as_echo "$ac_res" >&6; }
57aa50d4 9461 fi
b0cacab0 9462
93613951
TT
9463 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9464 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
57aa50d4
TT
9465 && test "$PACKAGE" != gettext-runtime \
9466 && test "$PACKAGE" != gettext-tools; }; then
9467 gt_use_preinstalled_gnugettext=yes
9468 else
9469 LIBINTL=
9470 LTLIBINTL=
9471 INCINTL=
9472 fi
740837de 9473
b0cacab0 9474
b0cacab0 9475
93613951
TT
9476 if test -n "$INTL_MACOSX_LIBS"; then
9477 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9478 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9479 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9480 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9481 fi
9482 fi
9483
57aa50d4
TT
9484 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9485 || test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0 9486
57aa50d4 9487$as_echo "#define ENABLE_NLS 1" >>confdefs.h
b0cacab0 9488
57aa50d4
TT
9489 else
9490 USE_NLS=no
9491 fi
9492 fi
b0cacab0 9493
57aa50d4
TT
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9495$as_echo_n "checking whether to use NLS... " >&6; }
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9497$as_echo "$USE_NLS" >&6; }
9498 if test "$USE_NLS" = "yes"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9500$as_echo_n "checking where the gettext function comes from... " >&6; }
9501 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 9502 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
9503 gt_source="external libintl"
9504 else
9505 gt_source="libc"
9506 fi
9507 else
9508 gt_source="included intl directory"
9509 fi
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9511$as_echo "$gt_source" >&6; }
9512 fi
b0cacab0 9513
57aa50d4 9514 if test "$USE_NLS" = "yes"; then
b0cacab0 9515
57aa50d4 9516 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 9517 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9519$as_echo_n "checking how to link with libintl... " >&6; }
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9521$as_echo "$LIBINTL" >&6; }
b0cacab0 9522
57aa50d4
TT
9523 for element in $INCINTL; do
9524 haveit=
9525 for x in $CPPFLAGS; do
b0cacab0 9526
57aa50d4
TT
9527 acl_save_prefix="$prefix"
9528 prefix="$acl_final_prefix"
9529 acl_save_exec_prefix="$exec_prefix"
9530 exec_prefix="$acl_final_exec_prefix"
9531 eval x=\"$x\"
9532 exec_prefix="$acl_save_exec_prefix"
9533 prefix="$acl_save_prefix"
b0cacab0 9534
57aa50d4
TT
9535 if test "X$x" = "X$element"; then
9536 haveit=yes
9537 break
9538 fi
9539 done
9540 if test -z "$haveit"; then
9541 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9542 fi
9543 done
b0cacab0 9544
57aa50d4 9545 fi
b0cacab0
TT
9546
9547
57aa50d4 9548$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
b0cacab0
TT
9549
9550
57aa50d4 9551$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
b0cacab0 9552
57aa50d4 9553 fi
b0cacab0 9554
57aa50d4
TT
9555 POSUB=po
9556 fi
b0cacab0
TT
9557
9558
b0cacab0 9559
57aa50d4 9560 INTLLIBS="$LIBINTL"
e1052144 9561
b0cacab0 9562
93636bde 9563
93636bde 9564
b0cacab0 9565
93636bde 9566
50e1e10f 9567
57aa50d4
TT
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9569$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9570set x ${MAKE-make}
9571ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6a4bcb5 9572if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
57aa50d4
TT
9573 $as_echo_n "(cached) " >&6
9574else
9575 cat >conftest.make <<\_ACEOF
9576SHELL = /bin/sh
9577all:
9578 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 9579_ACEOF
d6a4bcb5 9580# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
9581case `${MAKE-make} -f conftest.make 2>/dev/null` in
9582 *@@@%%%=?*=@@@%%%*)
9583 eval ac_cv_prog_make_${ac_make}_set=yes;;
9584 *)
9585 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 9586esac
57aa50d4 9587rm -f conftest.make
b0cacab0 9588fi
57aa50d4
TT
9589if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9591$as_echo "yes" >&6; }
9592 SET_MAKE=
b0b9c4de 9593else
57aa50d4
TT
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595$as_echo "no" >&6; }
9596 SET_MAKE="MAKE=${MAKE-make}"
b0cacab0 9597fi
b0cacab0 9598
57aa50d4
TT
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9600$as_echo_n "checking for GNU make... " >&6; }
d6a4bcb5 9601if ${_cv_gnu_make_command+:} false; then :
57aa50d4 9602 $as_echo_n "(cached) " >&6
39fd3d4f 9603else
57aa50d4 9604 _cv_gnu_make_command='' ;
e703ba4b 9605 if test -n "$FORCE_NATIVE_MAKE" ; then
f3bc1561
TT
9606 MAKES="make"
9607 else
9608 MAKES="make gmake gnumake"
9609 fi
9610 for a in "$MAKE" $MAKES ; do
57aa50d4
TT
9611 if test -z "$a" ; then continue ; fi ;
9612 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9613 _cv_gnu_make_command=$a ;
9614 break;
9615 fi
9616 done ;
50e1e10f 9617
50e1e10f 9618fi
57aa50d4
TT
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9620$as_echo "$_cv_gnu_make_command" >&6; } ;
9621 if test "x$_cv_gnu_make_command" != "x" ; then
9622 ifGNUmake='' ;
9623 ifNotGNUmake='#' ;
9624 else
9625 ifGNUmake='#' ;
9626 ifNotGNUmake='' ;
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9628$as_echo "\"Not found\"" >&6; };
9629 fi
50e1e10f 9630
50e1e10f 9631
b0cacab0 9632
57aa50d4
TT
9633# Extract the first word of "ln", so it can be a program name with args.
9634set dummy ln; ac_word=$2
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9637if ${ac_cv_path_LN+:} false; then :
39fd3d4f 9638 $as_echo_n "(cached) " >&6
fff45483 9639else
57aa50d4
TT
9640 case $LN in
9641 [\\/]* | ?:[\\/]*)
9642 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9643 ;;
9644 *)
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646for as_dir in $PATH
9647do
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9652 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 break 2
9655 fi
9656done
9657 done
9658IFS=$as_save_IFS
6c65d251 9659
57aa50d4
TT
9660 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9661 ;;
e1052144 9662esac
fff45483 9663fi
57aa50d4
TT
9664LN=$ac_cv_path_LN
9665if test -n "$LN"; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9667$as_echo "$LN" >&6; }
9668else
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670$as_echo "no" >&6; }
fff45483 9671fi
e1052144 9672
fff45483 9673
5abc0414 9674
3fb16e74
TT
9675mkdir_p=$MKDIR_P
9676
57aa50d4
TT
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9678$as_echo_n "checking whether ln -s works... " >&6; }
9679LN_S=$as_ln_s
9680if test "$LN_S" = "ln -s"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9682$as_echo "yes" >&6; }
9683else
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9685$as_echo "no, using $LN_S" >&6; }
fff45483 9686fi
6c65d251 9687
57aa50d4
TT
9688# Extract the first word of "mv", so it can be a program name with args.
9689set dummy mv; ac_word=$2
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9691$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9692if ${ac_cv_path_MV+:} false; then :
39fd3d4f 9693 $as_echo_n "(cached) " >&6
fff45483 9694else
57aa50d4
TT
9695 case $MV in
9696 [\\/]* | ?:[\\/]*)
9697 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9698 ;;
9699 *)
9700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701for as_dir in $PATH
9702do
9703 IFS=$as_save_IFS
9704 test -z "$as_dir" && as_dir=.
9705 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9707 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 break 2
9710 fi
9711done
9712 done
9713IFS=$as_save_IFS
6c65d251 9714
57aa50d4
TT
9715 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9716 ;;
e1052144 9717esac
b0cacab0 9718fi
57aa50d4
TT
9719MV=$ac_cv_path_MV
9720if test -n "$MV"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9722$as_echo "$MV" >&6; }
b0b9c4de 9723else
57aa50d4
TT
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725$as_echo "no" >&6; }
39fd3d4f
SJR
9726fi
9727
39fd3d4f 9728
57aa50d4
TT
9729# Extract the first word of "cp", so it can be a program name with args.
9730set dummy cp; ac_word=$2
9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9733if ${ac_cv_path_CP+:} false; then :
39fd3d4f 9734 $as_echo_n "(cached) " >&6
b0cacab0 9735else
57aa50d4
TT
9736 case $CP in
9737 [\\/]* | ?:[\\/]*)
9738 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9739 ;;
9740 *)
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9748 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9751 fi
9752done
9753 done
9754IFS=$as_save_IFS
39fd3d4f 9755
57aa50d4
TT
9756 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9757 ;;
e1052144 9758esac
b0b9c4de 9759fi
57aa50d4
TT
9760CP=$ac_cv_path_CP
9761if test -n "$CP"; then
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9763$as_echo "$CP" >&6; }
b0cacab0 9764else
57aa50d4
TT
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766$as_echo "no" >&6; }
b0b9c4de 9767fi
b0b9c4de 9768
6c65d251 9769
57aa50d4
TT
9770# Extract the first word of "rm", so it can be a program name with args.
9771set dummy rm; ac_word=$2
9772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9774if ${ac_cv_path_RM+:} false; then :
39fd3d4f 9775 $as_echo_n "(cached) " >&6
6928adc9 9776else
57aa50d4
TT
9777 case $RM in
9778 [\\/]* | ?:[\\/]*)
9779 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9780 ;;
9781 *)
9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783for as_dir in $PATH
9784do
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
9787 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9789 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791 break 2
9792 fi
9793done
b0cacab0 9794 done
57aa50d4 9795IFS=$as_save_IFS
6c65d251 9796
57aa50d4
TT
9797 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9798 ;;
e1052144 9799esac
6928adc9 9800fi
57aa50d4
TT
9801RM=$ac_cv_path_RM
9802if test -n "$RM"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9804$as_echo "$RM" >&6; }
b0cacab0 9805else
57aa50d4
TT
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807$as_echo "no" >&6; }
6928adc9 9808fi
6928adc9 9809
6c65d251 9810
57aa50d4
TT
9811# Extract the first word of "chmod", so it can be a program name with args.
9812set dummy chmod; ac_word=$2
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9815if ${ac_cv_path_CHMOD+:} false; then :
39fd3d4f 9816 $as_echo_n "(cached) " >&6
b0cacab0 9817else
57aa50d4
TT
9818 case $CHMOD in
9819 [\\/]* | ?:[\\/]*)
9820 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9821 ;;
9822 *)
9823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9830 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 break 2
9833 fi
9834done
9835 done
9836IFS=$as_save_IFS
39fd3d4f 9837
57aa50d4
TT
9838 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9839 ;;
e1052144 9840esac
b0cacab0 9841fi
57aa50d4
TT
9842CHMOD=$ac_cv_path_CHMOD
9843if test -n "$CHMOD"; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9845$as_echo "$CHMOD" >&6; }
b0cacab0 9846else
57aa50d4
TT
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848$as_echo "no" >&6; }
b0cacab0 9849fi
39fd3d4f 9850
b0cacab0 9851
57aa50d4
TT
9852for ac_prog in gawk mawk nawk awk
9853do
9854 # Extract the first word of "$ac_prog", so it can be a program name with args.
9855set dummy $ac_prog; ac_word=$2
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9858if ${ac_cv_prog_AWK+:} false; then :
39fd3d4f 9859 $as_echo_n "(cached) " >&6
b0cacab0 9860else
57aa50d4
TT
9861 if test -n "$AWK"; then
9862 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b0cacab0 9863else
57aa50d4
TT
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
9866do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9871 ac_cv_prog_AWK="$ac_prog"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9874 fi
9875done
9876 done
9877IFS=$as_save_IFS
b0cacab0 9878
b0cacab0 9879fi
57aa50d4
TT
9880fi
9881AWK=$ac_cv_prog_AWK
9882if test -n "$AWK"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9884$as_echo "$AWK" >&6; }
b0cacab0 9885else
57aa50d4
TT
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887$as_echo "no" >&6; }
b0cacab0 9888fi
b0cacab0 9889
b0cacab0 9890
57aa50d4
TT
9891 test -n "$AWK" && break
9892done
b0cacab0 9893
57aa50d4
TT
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9895$as_echo_n "checking for egrep... " >&6; }
d6a4bcb5 9896if ${ac_cv_path_EGREP+:} false; then :
57aa50d4 9897 $as_echo_n "(cached) " >&6
b0cacab0 9898else
57aa50d4
TT
9899 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9900 then ac_cv_path_EGREP="$GREP -E"
9901 else
9902 if test -z "$EGREP"; then
9903 ac_path_EGREP_found=false
9904 # Loop through the user's path and test for each of PROGNAME-LIST
9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9907do
9908 IFS=$as_save_IFS
9909 test -z "$as_dir" && as_dir=.
9910 for ac_prog in egrep; do
9911 for ac_exec_ext in '' $ac_executable_extensions; do
9912 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d6a4bcb5 9913 as_fn_executable_p "$ac_path_EGREP" || continue
57aa50d4
TT
9914# Check for GNU ac_path_EGREP and select it if it is found.
9915 # Check for GNU $ac_path_EGREP
9916case `"$ac_path_EGREP" --version 2>&1` in
9917*GNU*)
9918 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9919*)
9920 ac_count=0
9921 $as_echo_n 0123456789 >"conftest.in"
9922 while :
9923 do
9924 cat "conftest.in" "conftest.in" >"conftest.tmp"
9925 mv "conftest.tmp" "conftest.in"
9926 cp "conftest.in" "conftest.nl"
9927 $as_echo 'EGREP' >> "conftest.nl"
9928 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9930 as_fn_arith $ac_count + 1 && ac_count=$as_val
9931 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9932 # Best one so far, save it but keep looking for a better one
9933 ac_cv_path_EGREP="$ac_path_EGREP"
9934 ac_path_EGREP_max=$ac_count
9935 fi
9936 # 10*(2^10) chars as input seems more than enough
9937 test $ac_count -gt 10 && break
9938 done
9939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
e1052144 9940esac
e1052144 9941
57aa50d4
TT
9942 $ac_path_EGREP_found && break 3
9943 done
b0cacab0 9944 done
57aa50d4
TT
9945 done
9946IFS=$as_save_IFS
9947 if test -z "$ac_cv_path_EGREP"; then
d6a4bcb5 9948 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
57aa50d4 9949 fi
b0cacab0 9950else
57aa50d4 9951 ac_cv_path_EGREP=$EGREP
b0cacab0 9952fi
e1052144 9953
57aa50d4 9954 fi
b0cacab0 9955fi
57aa50d4
TT
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9957$as_echo "$ac_cv_path_EGREP" >&6; }
9958 EGREP="$ac_cv_path_EGREP"
e1052144 9959
b0cacab0 9960
57aa50d4
TT
9961# Extract the first word of "sed", so it can be a program name with args.
9962set dummy sed; ac_word=$2
9963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9964$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9965if ${ac_cv_path_SED+:} false; then :
57aa50d4 9966 $as_echo_n "(cached) " >&6
b0cacab0 9967else
57aa50d4
TT
9968 case $SED in
9969 [\\/]* | ?:[\\/]*)
9970 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9971 ;;
9972 *)
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9980 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9983 fi
b0cacab0 9984done
57aa50d4
TT
9985 done
9986IFS=$as_save_IFS
b0cacab0 9987
57aa50d4
TT
9988 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9989 ;;
b0cacab0 9990esac
57aa50d4
TT
9991fi
9992SED=$ac_cv_path_SED
9993if test -n "$SED"; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9995$as_echo "$SED" >&6; }
b0cacab0 9996else
57aa50d4
TT
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998$as_echo "no" >&6; }
b0cacab0 9999fi
e1052144 10000
b0cacab0 10001
57aa50d4
TT
10002# Extract the first word of "perl", so it can be a program name with args.
10003set dummy perl; ac_word=$2
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10005$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10006if ${ac_cv_path_PERL+:} false; then :
57aa50d4
TT
10007 $as_echo_n "(cached) " >&6
10008else
10009 case $PERL in
10010 [\\/]* | ?:[\\/]*)
10011 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10012 ;;
10013 *)
10014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10015for as_dir in $PATH
10016do
10017 IFS=$as_save_IFS
10018 test -z "$as_dir" && as_dir=.
10019 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10021 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10023 break 2
10024 fi
b0cacab0 10025done
57aa50d4
TT
10026 done
10027IFS=$as_save_IFS
10028
10029 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10030 ;;
b0cacab0 10031esac
57aa50d4
TT
10032fi
10033PERL=$ac_cv_path_PERL
10034if test -n "$PERL"; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10036$as_echo "$PERL" >&6; }
b0cacab0 10037else
57aa50d4
TT
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039$as_echo "no" >&6; }
10040fi
b0cacab0 10041
b0cacab0 10042
57aa50d4
TT
10043# Extract the first word of "ldconfig", so it can be a program name with args.
10044set dummy ldconfig; ac_word=$2
10045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10047if ${ac_cv_path_LDCONFIG+:} false; then :
57aa50d4 10048 $as_echo_n "(cached) " >&6
b0cacab0 10049else
57aa50d4
TT
10050 case $LDCONFIG in
10051 [\\/]* | ?:[\\/]*)
10052 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10053 ;;
10054 *)
10055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056for as_dir in $PATH
10057do
10058 IFS=$as_save_IFS
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10062 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10064 break 2
10065 fi
10066done
10067 done
10068IFS=$as_save_IFS
b0cacab0 10069
57aa50d4
TT
10070 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10071 ;;
10072esac
39fd3d4f 10073fi
57aa50d4
TT
10074LDCONFIG=$ac_cv_path_LDCONFIG
10075if test -n "$LDCONFIG"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10077$as_echo "$LDCONFIG" >&6; }
10078else
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080$as_echo "no" >&6; }
b0cacab0 10081fi
39fd3d4f
SJR
10082
10083
57aa50d4
TT
10084if test -n "$ac_tool_prefix"; then
10085 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10086set dummy ${ac_tool_prefix}ar; ac_word=$2
10087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10089if ${ac_cv_prog_AR+:} false; then :
57aa50d4
TT
10090 $as_echo_n "(cached) " >&6
10091else
10092 if test -n "$AR"; then
10093 ac_cv_prog_AR="$AR" # Let the user override the test.
10094else
10095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096for as_dir in $PATH
10097do
10098 IFS=$as_save_IFS
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10102 ac_cv_prog_AR="${ac_tool_prefix}ar"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 break 2
10105 fi
10106done
10107 done
10108IFS=$as_save_IFS
39fd3d4f 10109
57aa50d4
TT
10110fi
10111fi
10112AR=$ac_cv_prog_AR
10113if test -n "$AR"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10115$as_echo "$AR" >&6; }
10116else
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118$as_echo "no" >&6; }
10119fi
39fd3d4f 10120
b0cacab0 10121
57aa50d4
TT
10122fi
10123if test -z "$ac_cv_prog_AR"; then
10124 ac_ct_AR=$AR
10125 # Extract the first word of "ar", so it can be a program name with args.
10126set dummy ar; ac_word=$2
10127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10129if ${ac_cv_prog_ac_ct_AR+:} false; then :
39fd3d4f 10130 $as_echo_n "(cached) " >&6
b0cacab0 10131else
57aa50d4
TT
10132 if test -n "$ac_ct_AR"; then
10133 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b0cacab0 10134else
57aa50d4
TT
10135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136for as_dir in $PATH
10137do
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10142 ac_cv_prog_ac_ct_AR="ar"
10143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10145 fi
10146done
10147 done
10148IFS=$as_save_IFS
b0cacab0 10149
b0cacab0 10150fi
57aa50d4
TT
10151fi
10152ac_ct_AR=$ac_cv_prog_ac_ct_AR
10153if test -n "$ac_ct_AR"; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10155$as_echo "$ac_ct_AR" >&6; }
b0cacab0 10156else
57aa50d4
TT
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158$as_echo "no" >&6; }
10159fi
b0cacab0 10160
57aa50d4
TT
10161 if test "x$ac_ct_AR" = x; then
10162 AR="ar"
10163 else
10164 case $cross_compiling:$ac_tool_warned in
10165yes:)
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10168ac_tool_warned=yes ;;
e1052144 10169esac
57aa50d4
TT
10170 AR=$ac_ct_AR
10171 fi
b0cacab0 10172else
57aa50d4 10173 AR="$ac_cv_prog_AR"
b0cacab0 10174fi
e1052144 10175
57aa50d4
TT
10176if test -n "$ac_tool_prefix"; then
10177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10178set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10181if ${ac_cv_prog_RANLIB+:} false; then :
57aa50d4 10182 $as_echo_n "(cached) " >&6
b0cacab0 10183else
57aa50d4
TT
10184 if test -n "$RANLIB"; then
10185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10186else
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
b0cacab0 10199 done
57aa50d4 10200IFS=$as_save_IFS
b0cacab0 10201
b0cacab0 10202fi
57aa50d4
TT
10203fi
10204RANLIB=$ac_cv_prog_RANLIB
10205if test -n "$RANLIB"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10207$as_echo "$RANLIB" >&6; }
b0cacab0 10208else
57aa50d4
TT
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210$as_echo "no" >&6; }
b0cacab0 10211fi
b0cacab0 10212
b0cacab0 10213
57aa50d4
TT
10214fi
10215if test -z "$ac_cv_prog_RANLIB"; then
10216 ac_ct_RANLIB=$RANLIB
10217 # Extract the first word of "ranlib", so it can be a program name with args.
10218set dummy ranlib; ac_word=$2
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10221if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
57aa50d4
TT
10222 $as_echo_n "(cached) " >&6
10223else
10224 if test -n "$ac_ct_RANLIB"; then
10225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b0cacab0 10226else
57aa50d4
TT
10227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228for as_dir in $PATH
10229do
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
10232 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10234 ac_cv_prog_ac_ct_RANLIB="ranlib"
10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10236 break 2
10237 fi
10238done
10239 done
10240IFS=$as_save_IFS
29a5deed 10241
b0cacab0 10242fi
57aa50d4
TT
10243fi
10244ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10245if test -n "$ac_ct_RANLIB"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10247$as_echo "$ac_ct_RANLIB" >&6; }
b0cacab0 10248else
57aa50d4
TT
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250$as_echo "no" >&6; }
10251fi
b0cacab0 10252
57aa50d4
TT
10253 if test "x$ac_ct_RANLIB" = x; then
10254 RANLIB=":"
b0cacab0 10255 else
57aa50d4
TT
10256 case $cross_compiling:$ac_tool_warned in
10257yes:)
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10260ac_tool_warned=yes ;;
e1052144 10261esac
57aa50d4
TT
10262 RANLIB=$ac_ct_RANLIB
10263 fi
b0cacab0 10264else
57aa50d4 10265 RANLIB="$ac_cv_prog_RANLIB"
b0cacab0 10266fi
e1052144 10267
57aa50d4
TT
10268if test -n "$ac_tool_prefix"; then
10269 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10270set dummy ${ac_tool_prefix}strip; ac_word=$2
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10273if ${ac_cv_prog_STRIP+:} false; then :
57aa50d4 10274 $as_echo_n "(cached) " >&6
b0cacab0 10275else
57aa50d4
TT
10276 if test -n "$STRIP"; then
10277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10278else
10279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280for as_dir in $PATH
10281do
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10286 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 break 2
10289 fi
10290done
10291 done
10292IFS=$as_save_IFS
b0cacab0 10293
b0cacab0 10294fi
b0cacab0 10295fi
57aa50d4
TT
10296STRIP=$ac_cv_prog_STRIP
10297if test -n "$STRIP"; then
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10299$as_echo "$STRIP" >&6; }
10300else
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302$as_echo "no" >&6; }
b0cacab0 10303fi
e1052144 10304
b0cacab0 10305
57aa50d4
TT
10306fi
10307if test -z "$ac_cv_prog_STRIP"; then
10308 ac_ct_STRIP=$STRIP
10309 # Extract the first word of "strip", so it can be a program name with args.
10310set dummy strip; ac_word=$2
10311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10313if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
39fd3d4f 10314 $as_echo_n "(cached) " >&6
b0cacab0 10315else
57aa50d4
TT
10316 if test -n "$ac_ct_STRIP"; then
10317 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10318else
10319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320for as_dir in $PATH
10321do
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
10324 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10326 ac_cv_prog_ac_ct_STRIP="strip"
10327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 break 2
10329 fi
10330done
10331 done
10332IFS=$as_save_IFS
b0cacab0 10333
b0cacab0 10334fi
57aa50d4
TT
10335fi
10336ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10337if test -n "$ac_ct_STRIP"; then
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10339$as_echo "$ac_ct_STRIP" >&6; }
b0cacab0 10340else
57aa50d4
TT
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342$as_echo "no" >&6; }
10343fi
b0cacab0 10344
57aa50d4
TT
10345 if test "x$ac_ct_STRIP" = x; then
10346 STRIP=":"
b0cacab0 10347 else
57aa50d4
TT
10348 case $cross_compiling:$ac_tool_warned in
10349yes:)
10350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10352ac_tool_warned=yes ;;
e1052144 10353esac
57aa50d4
TT
10354 STRIP=$ac_ct_STRIP
10355 fi
b0cacab0 10356else
57aa50d4 10357 STRIP="$ac_cv_prog_STRIP"
b0cacab0 10358fi
e1052144 10359
57aa50d4
TT
10360# Extract the first word of "makeinfo", so it can be a program name with args.
10361set dummy makeinfo; ac_word=$2
10362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10364if ${ac_cv_prog_MAKEINFO+:} false; then :
57aa50d4 10365 $as_echo_n "(cached) " >&6
07a0db15 10366else
57aa50d4
TT
10367 if test -n "$MAKEINFO"; then
10368 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10369else
10370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371for as_dir in $PATH
10372do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10377 ac_cv_prog_MAKEINFO="makeinfo"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10380 fi
10381done
10382 done
10383IFS=$as_save_IFS
b0cacab0 10384
b0cacab0
TT
10385fi
10386fi
57aa50d4
TT
10387MAKEINFO=$ac_cv_prog_MAKEINFO
10388if test -n "$MAKEINFO"; then
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10390$as_echo "$MAKEINFO" >&6; }
b0cacab0 10391else
57aa50d4
TT
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393$as_echo "no" >&6; }
07a0db15 10394fi
29a5deed
TT
10395
10396
57aa50d4 10397if test "_$MAKEINFO" = "_"; then
ca1de98a 10398 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
57aa50d4
TT
10399else
10400 case "$MAKEINFO" in
10401 */missing.*)
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10403*** Makeinfo is missing. Info documentation will not be built." >&5
10404$as_echo "$as_me: WARNING:
10405*** Makeinfo is missing. Info documentation will not be built." >&2;}
10406 ;;
10407 *)
10408 ;;
10409 esac
b0cacab0 10410fi
29a5deed 10411
b0cacab0 10412
57aa50d4
TT
10413# See if we need a separate native compiler.
10414if test $cross_compiling = no; then
10415 BUILD_CC="$CC"
b0cacab0 10416
b0cacab0 10417else
57aa50d4
TT
10418 for ac_prog in gcc cc
10419do
10420 # Extract the first word of "$ac_prog", so it can be a program name with args.
10421set dummy $ac_prog; ac_word=$2
10422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10424if ${ac_cv_prog_BUILD_CC+:} false; then :
57aa50d4 10425 $as_echo_n "(cached) " >&6
b0cacab0 10426else
57aa50d4
TT
10427 if test -n "$BUILD_CC"; then
10428 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10429else
10430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431for as_dir in $PATH
10432do
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10437 ac_cv_prog_BUILD_CC="$ac_prog"
10438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 break 2
10440 fi
10441done
10442 done
10443IFS=$as_save_IFS
b0cacab0 10444
b0cacab0 10445fi
57aa50d4
TT
10446fi
10447BUILD_CC=$ac_cv_prog_BUILD_CC
10448if test -n "$BUILD_CC"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10450$as_echo "$BUILD_CC" >&6; }
07a0db15 10451else
57aa50d4
TT
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453$as_echo "no" >&6; }
b0cacab0 10454fi
b0cacab0 10455
b0cacab0 10456
57aa50d4
TT
10457 test -n "$BUILD_CC" && break
10458done
b0cacab0 10459
57aa50d4 10460fi
39ace91b 10461for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h pthread.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/random.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
57aa50d4
TT
10462do :
10463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10464ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d6a4bcb5 10465if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
57aa50d4
TT
10466 cat >>confdefs.h <<_ACEOF
10467#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 10468_ACEOF
b0cacab0 10469
b0cacab0 10470fi
e1052144 10471
b0cacab0 10472done
93636bde 10473
ec3a69bb
MA
10474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
10475$as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
10476DD=
10477for i in dd gdd ; do
10478 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
10479 DD=$i
10480 break
10481 fi
10482done
10483if test -n "$DD" ; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
10485$as_echo "$DD" >&6; }
10486else
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
10488$as_echo "not found, using dd" >&6; }
10489 DD=dd
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
10491$as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
10492fi
10493
10494
57aa50d4
TT
10495for ac_header in net/if.h
10496do :
10497 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10498#if HAVE_SYS_TYPES_H
10499#include <sys/types.h>
10500#endif
10501#if HAVE_SYS_SOCKET
10502#include <sys/socket.h>
10503#endif
29a5deed 10504
57aa50d4 10505"
d6a4bcb5 10506if test "x$ac_cv_header_net_if_h" = xyes; then :
57aa50d4
TT
10507 cat >>confdefs.h <<_ACEOF
10508#define HAVE_NET_IF_H 1
b0cacab0 10509_ACEOF
b0cacab0 10510
b0cacab0 10511fi
e1052144 10512
b0cacab0 10513done
b0cacab0 10514
57aa50d4
TT
10515for ac_func in vprintf
10516do :
10517 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
d6a4bcb5 10518if test "x$ac_cv_func_vprintf" = xyes; then :
57aa50d4
TT
10519 cat >>confdefs.h <<_ACEOF
10520#define HAVE_VPRINTF 1
b0cacab0 10521_ACEOF
b0cacab0 10522
57aa50d4 10523ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
d6a4bcb5 10524if test "x$ac_cv_func__doprnt" = xyes; then :
b0cacab0 10525
57aa50d4 10526$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
b0cacab0 10527
50e1e10f 10528fi
29a5deed 10529
57aa50d4
TT
10530fi
10531done
29a5deed
TT
10532
10533
57aa50d4
TT
10534ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10535"
d6a4bcb5 10536if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
d1154eb4
TT
10537
10538$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
50e1e10f 10539
2873927d
TT
10540fi
10541
10542ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10543if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10544
10545cat >>confdefs.h <<_ACEOF
10546#define HAVE_STRUCT_STAT_ST_ATIM 1
10547_ACEOF
10548
10549
b0cacab0 10550fi
93636bde 10551
57aa50d4
TT
10552ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10553"
d6a4bcb5 10554if test "x$ac_cv_type_ssize_t" = xyes; then :
d1154eb4
TT
10555
10556$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
b0cacab0 10557
57aa50d4 10558fi
b0cacab0 10559
57aa50d4
TT
10560ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10561"
d6a4bcb5 10562if test "x$ac_cv_have_decl_llseek" = xyes; then :
d1154eb4
TT
10563
10564$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
b0cacab0 10565
b0cacab0 10566fi
e1052144 10567
57aa50d4
TT
10568ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10569 #define _LARGEFILE64_SOURCE
10570 #include <unistd.h>
10571"
d6a4bcb5 10572if test "x$ac_cv_have_decl_lseek64" = xyes; then :
d1154eb4
TT
10573
10574$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
b0cacab0 10575
b0cacab0 10576fi
b0cacab0 10577
57aa50d4
TT
10578# The cast to long int works around a bug in the HP C Compiler
10579# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10580# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10581# This bug is HP SR number 8606223364.
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10583$as_echo_n "checking size of short... " >&6; }
d6a4bcb5 10584if ${ac_cv_sizeof_short+:} false; then :
57aa50d4 10585 $as_echo_n "(cached) " >&6
07a0db15 10586else
57aa50d4 10587 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
b0cacab0 10588
b0cacab0 10589else
57aa50d4
TT
10590 if test "$ac_cv_type_short" = yes; then
10591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
10593as_fn_error 77 "cannot compute sizeof (short)
10594See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
10595 else
10596 ac_cv_sizeof_short=0
10597 fi
07a0db15 10598fi
b0cacab0 10599
b0cacab0 10600fi
57aa50d4
TT
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10602$as_echo "$ac_cv_sizeof_short" >&6; }
e1052144 10603
93636bde 10604
57aa50d4
TT
10605
10606cat >>confdefs.h <<_ACEOF
10607#define SIZEOF_SHORT $ac_cv_sizeof_short
b0cacab0 10608_ACEOF
57aa50d4
TT
10609
10610
10611# The cast to long int works around a bug in the HP C Compiler
10612# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10613# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10614# This bug is HP SR number 8606223364.
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10616$as_echo_n "checking size of int... " >&6; }
d6a4bcb5 10617if ${ac_cv_sizeof_int+:} false; then :
57aa50d4 10618 $as_echo_n "(cached) " >&6
07a0db15 10619else
57aa50d4 10620 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
93636bde 10621
57aa50d4
TT
10622else
10623 if test "$ac_cv_type_int" = yes; then
10624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
10626as_fn_error 77 "cannot compute sizeof (int)
10627See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
10628 else
10629 ac_cv_sizeof_int=0
10630 fi
07a0db15 10631fi
e1052144 10632
b0cacab0 10633fi
57aa50d4
TT
10634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10635$as_echo "$ac_cv_sizeof_int" >&6; }
e1052144 10636
93636bde 10637
57aa50d4
TT
10638
10639cat >>confdefs.h <<_ACEOF
10640#define SIZEOF_INT $ac_cv_sizeof_int
b0cacab0 10641_ACEOF
b0cacab0 10642
e1052144 10643
57aa50d4
TT
10644# The cast to long int works around a bug in the HP C Compiler
10645# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10646# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10647# This bug is HP SR number 8606223364.
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10649$as_echo_n "checking size of long... " >&6; }
d6a4bcb5 10650if ${ac_cv_sizeof_long+:} false; then :
57aa50d4
TT
10651 $as_echo_n "(cached) " >&6
10652else
10653 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10654
10655else
10656 if test "$ac_cv_type_long" = yes; then
10657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 10658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
10659as_fn_error 77 "cannot compute sizeof (long)
10660See \`config.log' for more details" "$LINENO" 5; }
29a5deed 10661 else
57aa50d4
TT
10662 ac_cv_sizeof_long=0
10663 fi
10664fi
39fd3d4f 10665
57aa50d4
TT
10666fi
10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10668$as_echo "$ac_cv_sizeof_long" >&6; }
39fd3d4f 10669
57aa50d4
TT
10670
10671
10672cat >>confdefs.h <<_ACEOF
10673#define SIZEOF_LONG $ac_cv_sizeof_long
39fd3d4f 10674_ACEOF
57aa50d4
TT
10675
10676
10677# The cast to long int works around a bug in the HP C Compiler
10678# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10679# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10680# This bug is HP SR number 8606223364.
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10682$as_echo_n "checking size of long long... " >&6; }
d6a4bcb5 10683if ${ac_cv_sizeof_long_long+:} false; then :
57aa50d4 10684 $as_echo_n "(cached) " >&6
39fd3d4f 10685else
57aa50d4 10686 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
39fd3d4f 10687
57aa50d4
TT
10688else
10689 if test "$ac_cv_type_long_long" = yes; then
10690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 10691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
10692as_fn_error 77 "cannot compute sizeof (long long)
10693See \`config.log' for more details" "$LINENO" 5; }
39fd3d4f
SJR
10694 else
10695 ac_cv_sizeof_long_long=0
10696 fi
10697fi
57aa50d4 10698
39fd3d4f 10699fi
57aa50d4 10700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
39fd3d4f
SJR
10701$as_echo "$ac_cv_sizeof_long_long" >&6; }
10702
10703
10704
10705cat >>confdefs.h <<_ACEOF
10706#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10707_ACEOF
10708
10709
cc68e8a6
TT
10710# The cast to long int works around a bug in the HP C Compiler
10711# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10712# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10713# This bug is HP SR number 8606223364.
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10715$as_echo_n "checking size of off_t... " >&6; }
10716if ${ac_cv_sizeof_off_t+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718else
10719 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10720
10721else
10722 if test "$ac_cv_type_off_t" = yes; then
10723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10725as_fn_error 77 "cannot compute sizeof (off_t)
10726See \`config.log' for more details" "$LINENO" 5; }
10727 else
10728 ac_cv_sizeof_off_t=0
10729 fi
10730fi
10731
10732fi
10733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10734$as_echo "$ac_cv_sizeof_off_t" >&6; }
10735
10736
10737
10738cat >>confdefs.h <<_ACEOF
10739#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10740_ACEOF
10741
10742
2dd680f3
TT
10743# The cast to long int works around a bug in the HP C Compiler
10744# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10745# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10746# This bug is HP SR number 8606223364.
10747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10748$as_echo_n "checking size of time_t... " >&6; }
10749if ${ac_cv_sizeof_time_t+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751else
10752 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
10753
10754else
10755 if test "$ac_cv_type_time_t" = yes; then
10756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10758as_fn_error 77 "cannot compute sizeof (time_t)
10759See \`config.log' for more details" "$LINENO" 5; }
10760 else
10761 ac_cv_sizeof_time_t=0
10762 fi
10763fi
10764
10765fi
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10767$as_echo "$ac_cv_sizeof_time_t" >&6; }
10768
10769
10770
10771cat >>confdefs.h <<_ACEOF
10772#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10773_ACEOF
10774
10775
39fd3d4f
SJR
10776SIZEOF_SHORT=$ac_cv_sizeof_short
10777SIZEOF_INT=$ac_cv_sizeof_int
10778SIZEOF_LONG=$ac_cv_sizeof_long
10779SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
cc68e8a6 10780SIZEOF_OFF_T=$ac_cv_sizeof_off_t
2dd680f3
TT
10781SIZEOF_TIME_T=$ac_cv_sizeof_time_t
10782
cc68e8a6 10783
39fd3d4f
SJR
10784
10785
10786
10787
57aa50d4 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
39fd3d4f 10789$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6a4bcb5 10790if ${ac_cv_c_bigendian+:} false; then :
39fd3d4f
SJR
10791 $as_echo_n "(cached) " >&6
10792else
10793 ac_cv_c_bigendian=unknown
10794 # See if we're dealing with a universal compiler.
57aa50d4 10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
10796/* end confdefs.h. */
10797#ifndef __APPLE_CC__
10798 not a universal capable compiler
10799 #endif
10800 typedef int dummy;
10801
10802_ACEOF
57aa50d4 10803if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
10804
10805 # Check for potential -arch flags. It is not universal unless
57aa50d4
TT
10806 # there are at least two -arch flags with different values.
10807 ac_arch=
10808 ac_prev=
10809 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10810 if test -n "$ac_prev"; then
10811 case $ac_word in
10812 i?86 | x86_64 | ppc | ppc64)
10813 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10814 ac_arch=$ac_word
10815 else
10816 ac_cv_c_bigendian=universal
10817 break
10818 fi
10819 ;;
10820 esac
10821 ac_prev=
10822 elif test "x$ac_word" = "x-arch"; then
10823 ac_prev=arch
10824 fi
10825 done
39fd3d4f 10826fi
39fd3d4f
SJR
10827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828 if test $ac_cv_c_bigendian = unknown; then
10829 # See if sys/param.h defines the BYTE_ORDER macro.
57aa50d4 10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
10831/* end confdefs.h. */
10832#include <sys/types.h>
10833 #include <sys/param.h>
10834
10835int
10836main ()
10837{
10838#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10839 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10840 && LITTLE_ENDIAN)
10841 bogus endian macros
10842 #endif
10843
10844 ;
10845 return 0;
10846}
10847_ACEOF
57aa50d4 10848if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 10849 # It does; now see whether it defined to BIG_ENDIAN or not.
57aa50d4 10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
10851/* end confdefs.h. */
10852#include <sys/types.h>
10853 #include <sys/param.h>
10854
b0cacab0
TT
10855int
10856main ()
07a0db15 10857{
39fd3d4f
SJR
10858#if BYTE_ORDER != BIG_ENDIAN
10859 not big endian
10860 #endif
b0cacab0
TT
10861
10862 ;
10863 return 0;
07a0db15 10864}
b0cacab0 10865_ACEOF
57aa50d4 10866if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 10867 ac_cv_c_bigendian=yes
b0cacab0 10868else
57aa50d4 10869 ac_cv_c_bigendian=no
fc6d9d51 10870fi
39fd3d4f 10871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 10872fi
39fd3d4f
SJR
10873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 fi
10875 if test $ac_cv_c_bigendian = unknown; then
10876 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57aa50d4 10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 10878/* end confdefs.h. */
39fd3d4f 10879#include <limits.h>
877eb6d9 10880
b0cacab0
TT
10881int
10882main ()
10883{
39fd3d4f
SJR
10884#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10885 bogus endian macros
10886 #endif
b0cacab0
TT
10887
10888 ;
10889 return 0;
10890}
b0cacab0 10891_ACEOF
57aa50d4
TT
10892if ac_fn_c_try_compile "$LINENO"; then :
10893 # It does; now see whether it defined to _BIG_ENDIAN or not.
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 10895/* end confdefs.h. */
39fd3d4f 10896#include <limits.h>
877eb6d9 10897
b0cacab0
TT
10898int
10899main ()
10900{
39fd3d4f
SJR
10901#ifndef _BIG_ENDIAN
10902 not big endian
10903 #endif
b0cacab0
TT
10904
10905 ;
10906 return 0;
10907}
10908_ACEOF
57aa50d4 10909if ac_fn_c_try_compile "$LINENO"; then :
877eb6d9
TT
10910 ac_cv_c_bigendian=yes
10911else
57aa50d4 10912 ac_cv_c_bigendian=no
877eb6d9 10913fi
e1052144 10914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 10915fi
39fd3d4f
SJR
10916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10917 fi
10918 if test $ac_cv_c_bigendian = unknown; then
10919 # Compile a test program.
57aa50d4 10920 if test "$cross_compiling" = yes; then :
39fd3d4f 10921 # Try to guess by grepping values from an object file.
57aa50d4 10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 10923/* end confdefs.h. */
39fd3d4f
SJR
10924short int ascii_mm[] =
10925 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10926 short int ascii_ii[] =
10927 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10928 int use_ascii (int i) {
10929 return ascii_mm[i] + ascii_ii[i];
10930 }
10931 short int ebcdic_ii[] =
10932 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10933 short int ebcdic_mm[] =
10934 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10935 int use_ebcdic (int i) {
10936 return ebcdic_mm[i] + ebcdic_ii[i];
10937 }
10938 extern int foo;
10939
b0cacab0
TT
10940int
10941main ()
10942{
39fd3d4f 10943return use_ascii (foo) == use_ebcdic (foo);
b0cacab0
TT
10944 ;
10945 return 0;
10946}
10947_ACEOF
57aa50d4 10948if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
10949 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10950 ac_cv_c_bigendian=yes
10951 fi
10952 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10953 if test "$ac_cv_c_bigendian" = unknown; then
10954 ac_cv_c_bigendian=no
10955 else
10956 # finding both strings is unlikely to happen, but who knows?
10957 ac_cv_c_bigendian=unknown
10958 fi
10959 fi
b0cacab0 10960fi
e1052144 10961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 10962else
57aa50d4 10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 10964/* end confdefs.h. */
e1052144 10965$ac_includes_default
b0cacab0
TT
10966int
10967main ()
10968{
e1052144 10969
39fd3d4f
SJR
10970 /* Are we little or big endian? From Harbison&Steele. */
10971 union
10972 {
10973 long int l;
10974 char c[sizeof (long int)];
10975 } u;
10976 u.l = 1;
10977 return u.c[sizeof (long int) - 1] == 1;
e1052144
TT
10978
10979 ;
10980 return 0;
877eb6d9 10981}
b0cacab0 10982_ACEOF
57aa50d4 10983if ac_fn_c_try_run "$LINENO"; then :
877eb6d9
TT
10984 ac_cv_c_bigendian=no
10985else
57aa50d4 10986 ac_cv_c_bigendian=yes
877eb6d9 10987fi
57aa50d4
TT
10988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10989 conftest.$ac_objext conftest.beam conftest.$ac_ext
877eb6d9 10990fi
e1052144 10991
39fd3d4f 10992 fi
877eb6d9 10993fi
57aa50d4 10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
39fd3d4f
SJR
10995$as_echo "$ac_cv_c_bigendian" >&6; }
10996 case $ac_cv_c_bigendian in #(
10997 yes)
57aa50d4 10998 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
39fd3d4f
SJR
10999;; #(
11000 no)
11001 ;; #(
11002 universal)
07a0db15 11003
57aa50d4 11004$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
39fd3d4f
SJR
11005
11006 ;; #(
11007 *)
d6a4bcb5 11008 as_fn_error $? "unknown endianness
57aa50d4 11009 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
39fd3d4f 11010 esac
877eb6d9 11011
91f04685
CQ
11012if test $cross_compiling = no; then
11013 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11014else
11015 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11016fi
4ea7ea00
TT
11017ASM_TYPES_HEADER=./asm_types.h
11018
488c75a6
TT
11019echo "/* These defines are needed for the public ext2fs.h header file */" \
11020 > public_config.h
11021if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
11022 uniq tmp_config.$$ >> public_config.h
11023else
11024 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
11025fi
11026if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
11027 uniq tmp_config.$$ >> public_config.h
11028else
11029 echo "#undef WORDS_BIGENDIAN" >> public_config.h
11030fi
11031rm -f tmp_config.$$
11032PUBLIC_CONFIG_HEADER=./public_config.h
11033
b0cacab0 11034for ac_header in inttypes.h
57aa50d4
TT
11035do :
11036 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
d6a4bcb5 11037if test "x$ac_cv_header_inttypes_h" = xyes; then :
b0cacab0 11038 cat >>confdefs.h <<_ACEOF
57aa50d4 11039#define HAVE_INTTYPES_H 1
b0cacab0
TT
11040_ACEOF
11041
11042fi
11043
0c193f82
TT
11044done
11045
57aa50d4 11046ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
d6a4bcb5 11047if test "x$ac_cv_type_intptr_t" = xyes; then :
b0cacab0
TT
11048
11049cat >>confdefs.h <<_ACEOF
d2ee56d8 11050#define HAVE_INTPTR_T 1
b0cacab0 11051_ACEOF
0c193f82 11052
d2ee56d8 11053
0c193f82
TT
11054fi
11055
57aa50d4 11056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
39fd3d4f 11057$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
d6a4bcb5 11058if ${e2fsprogs_cv_struct_st_flags+:} false; then :
39fd3d4f 11059 $as_echo_n "(cached) " >&6
50e1e10f 11060else
57aa50d4 11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 11062/* end confdefs.h. */
50e1e10f 11063#include <sys/stat.h>
b0cacab0
TT
11064int
11065main ()
11066{
50e1e10f 11067struct stat stat; stat.st_flags = 0;
b0cacab0
TT
11068 ;
11069 return 0;
11070}
11071_ACEOF
57aa50d4 11072if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f
TT
11073 e2fsprogs_cv_struct_st_flags=yes
11074else
57aa50d4 11075 e2fsprogs_cv_struct_st_flags=no
50e1e10f 11076fi
e1052144 11077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f
TT
11078fi
11079
57aa50d4 11080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
39fd3d4f 11081$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
50e1e10f 11082if test "$e2fsprogs_cv_struct_st_flags" = yes; then
57aa50d4 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
39fd3d4f 11084$as_echo_n "checking whether st_flags field is useful... " >&6; }
d6a4bcb5 11085 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
39fd3d4f 11086 $as_echo_n "(cached) " >&6
b0cacab0 11087else
57aa50d4 11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 11089/* end confdefs.h. */
c03bc4e8 11090#include <sys/stat.h>
b0cacab0
TT
11091int
11092main ()
11093{
c03bc4e8 11094struct stat stat; stat.st_flags |= UF_IMMUTABLE;
b0cacab0
TT
11095 ;
11096 return 0;
11097}
57aa50d4
TT
11098_ACEOF
11099if ac_fn_c_try_compile "$LINENO"; then :
11100 e2fsprogs_cv_struct_st_flags_immut=yes
6c65d251 11101else
57aa50d4 11102 e2fsprogs_cv_struct_st_flags_immut=no
84ea6e70 11103fi
e1052144 11104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84ea6e70 11105fi
e1052144 11106
57aa50d4
TT
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11108$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11109 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
d1154eb4
TT
11110
11111$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
57aa50d4
TT
11112
11113 fi
6c65d251 11114fi
57aa50d4
TT
11115ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11116 #include <sys/socket.h>
11117"
d6a4bcb5 11118if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
b0cacab0
TT
11119
11120cat >>confdefs.h <<_ACEOF
84ea6e70 11121#define HAVE_SA_LEN 1
b0cacab0 11122_ACEOF
84ea6e70 11123
50e1e10f 11124fi
b0cacab0 11125
9ed8e5fe 11126if test -n "$BLKID_CMT"; then
7154d974
TT
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
11128$as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
11129if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
9ed8e5fe
ES
11130 $as_echo_n "(cached) " >&6
11131else
7154d974
TT
11132 ac_check_lib_save_LIBS=$LIBS
11133LIBS="-lblkid $LIBS"
57aa50d4 11134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9ed8e5fe
ES
11135/* end confdefs.h. */
11136
11137/* Override any GCC internal prototype to avoid an error.
11138 Use char because int might match the return type of a GCC
11139 builtin and then its argument prototype would still apply. */
11140#ifdef __cplusplus
11141extern "C"
11142#endif
7154d974 11143char blkid_probe_get_topology ();
9ed8e5fe
ES
11144int
11145main ()
11146{
7154d974 11147return blkid_probe_get_topology ();
9ed8e5fe
ES
11148 ;
11149 return 0;
11150}
11151_ACEOF
7154d974
TT
11152if ac_fn_c_try_link "$LINENO"; then :
11153 ac_cv_lib_blkid_blkid_probe_get_topology=yes
11154else
11155 ac_cv_lib_blkid_blkid_probe_get_topology=no
9ed8e5fe 11156fi
57aa50d4 11157rm -f core conftest.err conftest.$ac_objext \
7154d974
TT
11158 conftest$ac_exeext conftest.$ac_ext
11159LIBS=$ac_check_lib_save_LIBS
9ed8e5fe 11160fi
7154d974
TT
11161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
11162$as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
11163if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
188bf39a
TT
11164
11165$as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
7154d974 11166
e598c29b
TT
11167fi
11168
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
11170$as_echo_n "checking for blkid_topology_get_dax in -lblkid... " >&6; }
11171if ${ac_cv_lib_blkid_blkid_topology_get_dax+:} false; then :
11172 $as_echo_n "(cached) " >&6
11173else
11174 ac_check_lib_save_LIBS=$LIBS
11175LIBS="-lblkid $LIBS"
11176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177/* end confdefs.h. */
11178
11179/* Override any GCC internal prototype to avoid an error.
11180 Use char because int might match the return type of a GCC
11181 builtin and then its argument prototype would still apply. */
11182#ifdef __cplusplus
11183extern "C"
11184#endif
11185char blkid_topology_get_dax ();
11186int
11187main ()
11188{
11189return blkid_topology_get_dax ();
11190 ;
11191 return 0;
11192}
11193_ACEOF
11194if ac_fn_c_try_link "$LINENO"; then :
11195 ac_cv_lib_blkid_blkid_topology_get_dax=yes
11196else
11197 ac_cv_lib_blkid_blkid_topology_get_dax=no
11198fi
11199rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201LIBS=$ac_check_lib_save_LIBS
11202fi
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
11204$as_echo "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
11205if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes; then :
11206
11207$as_echo "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
11208
7154d974
TT
11209fi
11210
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
11212$as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
11213if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
11214 $as_echo_n "(cached) " >&6
11215else
11216 ac_check_lib_save_LIBS=$LIBS
11217LIBS="-lblkid $LIBS"
11218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219/* end confdefs.h. */
57aa50d4 11220
7154d974
TT
11221/* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
11224#ifdef __cplusplus
11225extern "C"
11226#endif
11227char blkid_probe_enable_partitions ();
11228int
11229main ()
11230{
11231return blkid_probe_enable_partitions ();
11232 ;
11233 return 0;
11234}
11235_ACEOF
11236if ac_fn_c_try_link "$LINENO"; then :
11237 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
9ed8e5fe 11238else
7154d974 11239 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
9ed8e5fe 11240fi
7154d974
TT
11241rm -f core conftest.err conftest.$ac_objext \
11242 conftest$ac_exeext conftest.$ac_ext
11243LIBS=$ac_check_lib_save_LIBS
9ed8e5fe 11244fi
7154d974
TT
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
11246$as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
11247if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
188bf39a
TT
11248
11249$as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
9ed8e5fe
ES
11250
11251fi
11252
11253fi
32179ce2
TT
11254if test -n "$DLOPEN_LIB" ; then
11255 ac_cv_func_dlopen=yes
11256fi
97079a79 11257for ac_func in __secure_getenv add_key backtrace chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize getentropy gethostname getmntinfo getpwuid_r getrandom getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mallinfo2 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
11258do :
11259 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11260ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d6a4bcb5 11261if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b0cacab0 11262 cat >>confdefs.h <<_ACEOF
39fd3d4f 11263#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b0cacab0 11264_ACEOF
21c84b71 11265
50e1e10f
TT
11266fi
11267done
11268
fc6d9d51 11269SOCKET_LIB=''
57aa50d4 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
39fd3d4f 11271$as_echo_n "checking for socket in -lsocket... " >&6; }
d6a4bcb5 11272if ${ac_cv_lib_socket_socket+:} false; then :
39fd3d4f 11273 $as_echo_n "(cached) " >&6
50e1e10f 11274else
b0cacab0 11275 ac_check_lib_save_LIBS=$LIBS
fc6d9d51 11276LIBS="-lsocket $LIBS"
57aa50d4 11277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 11278/* end confdefs.h. */
93636bde 11279
e1052144
TT
11280/* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
b0cacab0
TT
11283#ifdef __cplusplus
11284extern "C"
11285#endif
b0cacab0
TT
11286char socket ();
11287int
11288main ()
11289{
e1052144 11290return socket ();
b0cacab0
TT
11291 ;
11292 return 0;
11293}
11294_ACEOF
57aa50d4 11295if ac_fn_c_try_link "$LINENO"; then :
b0cacab0
TT
11296 ac_cv_lib_socket_socket=yes
11297else
57aa50d4 11298 ac_cv_lib_socket_socket=no
b0cacab0 11299fi
57aa50d4
TT
11300rm -f core conftest.err conftest.$ac_objext \
11301 conftest$ac_exeext conftest.$ac_ext
b0cacab0
TT
11302LIBS=$ac_check_lib_save_LIBS
11303fi
57aa50d4 11304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
39fd3d4f 11305$as_echo "$ac_cv_lib_socket_socket" >&6; }
d6a4bcb5 11306if test "x$ac_cv_lib_socket_socket" = xyes; then :
fc6d9d51 11307 SOCKET_LIB=-lsocket
50e1e10f 11308fi
fc6d9d51 11309
93636bde 11310
b291c11f
DW
11311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
11312$as_echo_n "checking for magic_file in -lmagic... " >&6; }
11313if ${ac_cv_lib_magic_magic_file+:} false; then :
11314 $as_echo_n "(cached) " >&6
11315else
11316 ac_check_lib_save_LIBS=$LIBS
11317LIBS="-lmagic $LIBS"
11318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319/* end confdefs.h. */
11320
11321/* Override any GCC internal prototype to avoid an error.
11322 Use char because int might match the return type of a GCC
11323 builtin and then its argument prototype would still apply. */
11324#ifdef __cplusplus
11325extern "C"
11326#endif
11327char magic_file ();
11328int
11329main ()
11330{
11331return magic_file ();
11332 ;
11333 return 0;
11334}
11335_ACEOF
11336if ac_fn_c_try_link "$LINENO"; then :
11337 ac_cv_lib_magic_magic_file=yes
11338else
11339 ac_cv_lib_magic_magic_file=no
11340fi
11341rm -f core conftest.err conftest.$ac_objext \
11342 conftest$ac_exeext conftest.$ac_ext
11343LIBS=$ac_check_lib_save_LIBS
11344fi
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
11346$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
11347if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
11348 MAGIC_LIB=-lmagic
11349for ac_header in magic.h
11350do :
11351 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
11352if test "x$ac_cv_header_magic_h" = xyes; then :
11353 cat >>confdefs.h <<_ACEOF
11354#define HAVE_MAGIC_H 1
11355_ACEOF
11356
11357fi
11358
11359done
11360
11361fi
11362
32179ce2 11363if test "$ac_cv_func_dlopen" = yes ; then
d2e3c0dc
TT
11364 MAGIC_LIB=$DLOPEN_LIB
11365fi
b291c11f 11366
c94da047
TT
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11368$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11369if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371else
11372 ac_check_lib_save_LIBS=$LIBS
11373LIBS="-lrt $LIBS"
11374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375/* end confdefs.h. */
11376
11377/* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11380#ifdef __cplusplus
11381extern "C"
11382#endif
11383char clock_gettime ();
11384int
11385main ()
11386{
11387return clock_gettime ();
11388 ;
11389 return 0;
11390}
11391_ACEOF
11392if ac_fn_c_try_link "$LINENO"; then :
11393 ac_cv_lib_rt_clock_gettime=yes
11394else
11395 ac_cv_lib_rt_clock_gettime=no
11396fi
11397rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11399LIBS=$ac_check_lib_save_LIBS
11400fi
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11402$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11403if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11404 CLOCK_GETTIME_LIB=-lrt
11405fi
11406
11407
81cbf1ef
DW
11408FUSE_CMT=
11409FUSE_LIB=
11410# Check whether --enable-fuse2fs was given.
11411if test "${enable_fuse2fs+set}" = set; then :
11412 enableval=$enable_fuse2fs; if test "$enableval" = "no"
11413then
11414 FUSE_CMT="#"
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
11416$as_echo "Disabling fuse2fs" >&6; }
11417else
11418 for ac_header in pthread.h fuse.h
11419do :
11420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11421ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11422#define FUSE_USE_VERSION 29
11423"
11424if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11425 cat >>confdefs.h <<_ACEOF
11426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11427_ACEOF
11428
11429else
11430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11432as_fn_error $? "Cannot find fuse2fs headers.
11433See \`config.log' for more details" "$LINENO" 5; }
11434fi
11435
11436done
11437
11438
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440/* end confdefs.h. */
11441#define FUSE_USE_VERSION 29
11442#ifdef __linux__
11443#include <linux/fs.h>
11444#include <linux/falloc.h>
11445#include <linux/xattr.h>
11446#endif
11447
11448int
11449main ()
11450{
11451
11452 ;
11453 return 0;
11454}
11455_ACEOF
11456if ac_fn_c_try_cpp "$LINENO"; then :
11457
11458else
11459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11461as_fn_error $? "Cannot find fuse2fs Linux headers.
11462See \`config.log' for more details" "$LINENO" 5; }
11463fi
11464rm -f conftest.err conftest.i conftest.$ac_ext
11465
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11467$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11468if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470else
11471 ac_check_lib_save_LIBS=$LIBS
11472LIBS="-losxfuse $LIBS"
11473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474/* end confdefs.h. */
11475
11476/* Override any GCC internal prototype to avoid an error.
11477 Use char because int might match the return type of a GCC
11478 builtin and then its argument prototype would still apply. */
11479#ifdef __cplusplus
11480extern "C"
11481#endif
11482char fuse_main ();
11483int
11484main ()
11485{
11486return fuse_main ();
11487 ;
11488 return 0;
11489}
11490_ACEOF
11491if ac_fn_c_try_link "$LINENO"; then :
11492 ac_cv_lib_osxfuse_fuse_main=yes
11493else
11494 ac_cv_lib_osxfuse_fuse_main=no
11495fi
11496rm -f core conftest.err conftest.$ac_objext \
11497 conftest$ac_exeext conftest.$ac_ext
11498LIBS=$ac_check_lib_save_LIBS
11499fi
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11501$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11502if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11503 FUSE_LIB=-losxfuse
11504else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11506$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11507if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509else
11510 ac_check_lib_save_LIBS=$LIBS
11511LIBS="-lfuse $LIBS"
11512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513/* end confdefs.h. */
11514
11515/* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11518#ifdef __cplusplus
11519extern "C"
11520#endif
11521char fuse_main ();
11522int
11523main ()
11524{
11525return fuse_main ();
11526 ;
11527 return 0;
11528}
11529_ACEOF
11530if ac_fn_c_try_link "$LINENO"; then :
11531 ac_cv_lib_fuse_fuse_main=yes
11532else
11533 ac_cv_lib_fuse_fuse_main=no
11534fi
11535rm -f core conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext conftest.$ac_ext
11537LIBS=$ac_check_lib_save_LIBS
11538fi
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11540$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11541if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11542 FUSE_LIB=-lfuse
11543else
11544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11546as_fn_error $? "Cannot find fuse library.
11547See \`config.log' for more details" "$LINENO" 5; }
11548fi
11549
11550fi
11551
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
11553$as_echo "Enabling fuse2fs" >&6; }
11554fi
11555
11556else
11557 for ac_header in pthread.h fuse.h
11558do :
11559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11560ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11561#define FUSE_USE_VERSION 29
11562#ifdef __linux__
11563# include <linux/fs.h>
11564# include <linux/falloc.h>
11565# include <linux/xattr.h>
11566#endif
11567"
11568if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11569 cat >>confdefs.h <<_ACEOF
11570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11571_ACEOF
11572
11573else
11574 FUSE_CMT="#"
11575fi
11576
11577done
11578
11579if test -z "$FUSE_CMT"
11580then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11582$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11583if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585else
11586 ac_check_lib_save_LIBS=$LIBS
11587LIBS="-losxfuse $LIBS"
11588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589/* end confdefs.h. */
11590
11591/* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11594#ifdef __cplusplus
11595extern "C"
11596#endif
11597char fuse_main ();
11598int
11599main ()
11600{
11601return fuse_main ();
11602 ;
11603 return 0;
11604}
11605_ACEOF
11606if ac_fn_c_try_link "$LINENO"; then :
11607 ac_cv_lib_osxfuse_fuse_main=yes
11608else
11609 ac_cv_lib_osxfuse_fuse_main=no
11610fi
11611rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11613LIBS=$ac_check_lib_save_LIBS
11614fi
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11616$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11617if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11618 FUSE_LIB=-losxfuse
11619else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11621$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11622if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11623 $as_echo_n "(cached) " >&6
11624else
11625 ac_check_lib_save_LIBS=$LIBS
11626LIBS="-lfuse $LIBS"
11627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628/* end confdefs.h. */
11629
11630/* Override any GCC internal prototype to avoid an error.
11631 Use char because int might match the return type of a GCC
11632 builtin and then its argument prototype would still apply. */
11633#ifdef __cplusplus
11634extern "C"
11635#endif
11636char fuse_main ();
11637int
11638main ()
11639{
11640return fuse_main ();
11641 ;
11642 return 0;
11643}
11644_ACEOF
11645if ac_fn_c_try_link "$LINENO"; then :
11646 ac_cv_lib_fuse_fuse_main=yes
11647else
11648 ac_cv_lib_fuse_fuse_main=no
11649fi
11650rm -f core conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11652LIBS=$ac_check_lib_save_LIBS
11653fi
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11655$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11656if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11657 FUSE_LIB=-lfuse
11658else
11659 FUSE_CMT="#"
11660fi
11661
11662fi
11663
11664fi
11665if test -z "$FUSE_CMT"
11666then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
11668$as_echo "Enabling fuse2fs by default." >&6; }
11669fi
11670
11671fi
11672
11673
11674
57aa50d4 11675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
39fd3d4f 11676$as_echo_n "checking for optreset... " >&6; }
d6a4bcb5 11677if ${ac_cv_have_optreset+:} false; then :
39fd3d4f 11678 $as_echo_n "(cached) " >&6
d7f45af8 11679else
57aa50d4 11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8 11681/* end confdefs.h. */
57aa50d4
TT
11682#include <unistd.h>
11683
11684_ACEOF
11685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11686 $EGREP "optreset" >/dev/null 2>&1; then :
11687 ac_cv_have_optreset=yes
d7f45af8 11688else
57aa50d4
TT
11689 ac_cv_have_optreset=no
11690fi
11691rm -f conftest*
d7f45af8 11692
d7f45af8 11693fi
57aa50d4
TT
11694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11695$as_echo "$ac_cv_have_optreset" >&6; }
11696if test $ac_cv_have_optreset = yes; then
d1154eb4
TT
11697
11698$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
d7f45af8 11699
d7f45af8 11700fi
d1154eb4 11701
57aa50d4 11702SEM_INIT_LIB=''
cfb8e0bd
TT
11703echo GL_THREADS_API: ${gl_threads_api}
11704if test "${gl_threads_api}" != none
11705then
11706 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
d6a4bcb5 11707if test "x$ac_cv_func_sem_init" = xyes; then :
57aa50d4 11708
d7f45af8 11709else
57aa50d4 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
39fd3d4f 11711$as_echo_n "checking for sem_init in -lpthread... " >&6; }
d6a4bcb5 11712if ${ac_cv_lib_pthread_sem_init+:} false; then :
39fd3d4f 11713 $as_echo_n "(cached) " >&6
d7f45af8
TT
11714else
11715 ac_check_lib_save_LIBS=$LIBS
11716LIBS="-lpthread $LIBS"
57aa50d4 11717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
11718/* end confdefs.h. */
11719
11720/* Override any GCC internal prototype to avoid an error.
11721 Use char because int might match the return type of a GCC
11722 builtin and then its argument prototype would still apply. */
11723#ifdef __cplusplus
11724extern "C"
11725#endif
11726char sem_init ();
11727int
11728main ()
11729{
11730return sem_init ();
11731 ;
11732 return 0;
11733}
11734_ACEOF
57aa50d4 11735if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
11736 ac_cv_lib_pthread_sem_init=yes
11737else
57aa50d4 11738 ac_cv_lib_pthread_sem_init=no
d7f45af8 11739fi
57aa50d4
TT
11740rm -f core conftest.err conftest.$ac_objext \
11741 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
11742LIBS=$ac_check_lib_save_LIBS
11743fi
57aa50d4 11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
39fd3d4f 11745$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
d6a4bcb5 11746if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
57aa50d4 11747 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
11748
11749 SEM_INIT_LIB=-lpthread
11750else
57aa50d4 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
39fd3d4f 11752$as_echo_n "checking for sem_init in -lrt... " >&6; }
d6a4bcb5 11753if ${ac_cv_lib_rt_sem_init+:} false; then :
39fd3d4f 11754 $as_echo_n "(cached) " >&6
d7f45af8
TT
11755else
11756 ac_check_lib_save_LIBS=$LIBS
11757LIBS="-lrt $LIBS"
57aa50d4 11758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
11759/* end confdefs.h. */
11760
11761/* Override any GCC internal prototype to avoid an error.
11762 Use char because int might match the return type of a GCC
11763 builtin and then its argument prototype would still apply. */
11764#ifdef __cplusplus
11765extern "C"
11766#endif
11767char sem_init ();
11768int
11769main ()
11770{
11771return sem_init ();
11772 ;
11773 return 0;
11774}
11775_ACEOF
57aa50d4 11776if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
11777 ac_cv_lib_rt_sem_init=yes
11778else
57aa50d4 11779 ac_cv_lib_rt_sem_init=no
d7f45af8 11780fi
57aa50d4
TT
11781rm -f core conftest.err conftest.$ac_objext \
11782 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
11783LIBS=$ac_check_lib_save_LIBS
11784fi
57aa50d4 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
39fd3d4f 11786$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
d6a4bcb5 11787if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
57aa50d4 11788 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
11789
11790 SEM_INIT_LIB=-lrt
11791else
57aa50d4 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
39fd3d4f 11793$as_echo_n "checking for sem_init in -lposix4... " >&6; }
d6a4bcb5 11794if ${ac_cv_lib_posix4_sem_init+:} false; then :
39fd3d4f 11795 $as_echo_n "(cached) " >&6
d7f45af8
TT
11796else
11797 ac_check_lib_save_LIBS=$LIBS
11798LIBS="-lposix4 $LIBS"
57aa50d4 11799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
11800/* end confdefs.h. */
11801
11802/* Override any GCC internal prototype to avoid an error.
11803 Use char because int might match the return type of a GCC
11804 builtin and then its argument prototype would still apply. */
11805#ifdef __cplusplus
11806extern "C"
11807#endif
11808char sem_init ();
11809int
11810main ()
11811{
11812return sem_init ();
11813 ;
11814 return 0;
11815}
11816_ACEOF
57aa50d4 11817if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
11818 ac_cv_lib_posix4_sem_init=yes
11819else
57aa50d4 11820 ac_cv_lib_posix4_sem_init=no
d7f45af8 11821fi
57aa50d4
TT
11822rm -f core conftest.err conftest.$ac_objext \
11823 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
11824LIBS=$ac_check_lib_save_LIBS
11825fi
57aa50d4 11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
39fd3d4f 11827$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
d6a4bcb5 11828if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
57aa50d4 11829 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
11830
11831 SEM_INIT_LIB=-lposix4
11832fi
11833
11834fi
11835
11836fi
11837
cfb8e0bd 11838fi
d7f45af8
TT
11839fi
11840
57aa50d4 11841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
39fd3d4f 11842$as_echo_n "checking for unified diff option... " >&6; }
27f991b0 11843if diff -u $0 $0 > /dev/null 2>&1 ; then
e54635de
TT
11844 UNI_DIFF_OPTS=-u
11845else
11846 UNI_DIFF_OPTS=-c
11847fi
57aa50d4 11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
39fd3d4f 11849$as_echo "$UNI_DIFF_OPTS" >&6; }
e54635de 11850
8f3f29d3
TT
11851case "$host_os" in
11852linux*)
d1154eb4
TT
11853
11854$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
50e1e10f 11855
8f3f29d3
TT
11856 ;;
11857esac
ea1a3fa2 11858
ea1a3fa2
NC
11859 $as_echo_n "checking for mount 'nosuid' option... "
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861/* end confdefs.h. */
11862#include <sys/mount.h>
11863int
11864main ()
11865{
11866void *temp = (void *)(MS_NOSUID); (void) temp;
11867 ;
11868 return 0;
11869}
11870_ACEOF
11871if ac_fn_c_try_compile "$LINENO"; then :
11872
11873$as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11874
11875 ac_cv_mount_nosuid=yes
11876 $as_echo "yes"
11877else
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879/* end confdefs.h. */
11880#include <sys/mount.h>
11881int
11882main ()
11883{
11884void *temp = (void *)(MNT_NOSUID); (void) temp;
11885 ;
11886 return 0;
11887}
11888_ACEOF
11889if ac_fn_c_try_compile "$LINENO"; then :
11890
11891$as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11892
11893 ac_cv_mount_nosuid=yes
11894 $as_echo "yes"
11895else
11896 ac_cv_mount_nosuid=no
11897 $as_echo "no"
11898
11899fi
11900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901
11902fi
11903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904
11905
ea1a3fa2
NC
11906 $as_echo_n "checking for mount 'nodev' option... "
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908/* end confdefs.h. */
11909#include <sys/mount.h>
11910int
11911main ()
11912{
11913void *temp = (void *)(MS_NODEV); (void) temp;
11914 ;
11915 return 0;
11916}
11917_ACEOF
11918if ac_fn_c_try_compile "$LINENO"; then :
11919
11920$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11921
11922 ac_cv_mount_nodev=yes
11923 $as_echo "yes"
11924else
11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926/* end confdefs.h. */
11927#include <sys/mount.h>
11928int
11929main ()
11930{
11931void *temp = (void *)(MNT_NODEV); (void) temp;
11932 ;
11933 return 0;
11934}
11935_ACEOF
11936if ac_fn_c_try_compile "$LINENO"; then :
11937
11938$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11939
11940 ac_cv_mount_nodev=yes
11941 $as_echo "yes"
11942else
11943 ac_cv_mount_nodev=no
11944 $as_echo "no"
11945
11946fi
11947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948
11949fi
11950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951
4aece328
DW
11952# Check whether --enable-lto was given.
11953if test "${enable_lto+set}" = set; then :
11954 enableval=$enable_lto;
11955else
139a3092 11956 enable_lto=no
4aece328
DW
11957fi
11958
11959if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
11961$as_echo_n "checking if C compiler supports LTO... " >&6; }
11962 OLD_CFLAGS="$CFLAGS"
11963 OLD_LDFLAGS="$LDFLAGS"
49715704 11964 LTO_FLAGS="-g -flto -ffat-lto-objects"
4aece328
DW
11965 CFLAGS="$CFLAGS $LTO_FLAGS"
11966 LDFLAGS="$LDFLAGS $LTO_FLAGS"
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968/* end confdefs.h. */
11969
11970int
11971main ()
11972{
11973
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978if ac_fn_c_try_link "$LINENO"; then :
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11980$as_echo "yes" >&6; }
11981 lto_cflags=$LTO_FLAGS
11982 lto_ldflags=$LTO_FLAGS
11983 # Extract the first word of "gcc-ar", so it can be a program name with args.
11984set dummy gcc-ar; ac_word=$2
11985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11986$as_echo_n "checking for $ac_word... " >&6; }
11987if ${ac_cv_path_gcc_ar+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989else
11990 case $gcc_ar in
11991 [\\/]* | ?:[\\/]*)
11992 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
11993 ;;
11994 *)
11995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996for as_dir in $PATH
11997do
11998 IFS=$as_save_IFS
11999 test -z "$as_dir" && as_dir=.
12000 for ac_exec_ext in '' $ac_executable_extensions; do
12001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12002 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
12003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 break 2
12005 fi
12006done
12007 done
12008IFS=$as_save_IFS
12009
12010 ;;
12011esac
12012fi
12013gcc_ar=$ac_cv_path_gcc_ar
12014if test -n "$gcc_ar"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
12016$as_echo "$gcc_ar" >&6; }
12017else
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019$as_echo "no" >&6; }
12020fi
12021
12022
12023 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
12024set dummy gcc-ranlib; ac_word=$2
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12026$as_echo_n "checking for $ac_word... " >&6; }
12027if ${ac_cv_path_gcc_ranlib+:} false; then :
12028 $as_echo_n "(cached) " >&6
12029else
12030 case $gcc_ranlib in
12031 [\\/]* | ?:[\\/]*)
12032 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
12033 ;;
12034 *)
12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036for as_dir in $PATH
12037do
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12042 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
12043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12044 break 2
12045 fi
12046done
12047 done
12048IFS=$as_save_IFS
12049
12050 ;;
12051esac
12052fi
12053gcc_ranlib=$ac_cv_path_gcc_ranlib
12054if test -n "$gcc_ranlib"; then
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
12056$as_echo "$gcc_ranlib" >&6; }
12057else
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059$as_echo "no" >&6; }
12060fi
12061
12062
12063else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065$as_echo "no" >&6; }
12066fi
12067rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
12070 have_lto=yes
12071 AR="${gcc_ar}"
12072 RANLIB="${gcc_ranlib}"
12073 fi
12074 CFLAGS="${OLD_CFLAGS}"
12075 LDFLAGS="${OLD_LDFLAGS}"
12076
12077
12078
12079fi
12080if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
12081 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
12082fi
1c2a76ae
DW
12083# Check whether --enable-ubsan was given.
12084if test "${enable_ubsan+set}" = set; then :
12085 enableval=$enable_ubsan;
12086else
12087 enable_ubsan=no
12088fi
12089
12090if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
12092$as_echo_n "checking if C compiler supports UBSAN... " >&6; }
12093 OLD_CFLAGS="$CFLAGS"
12094 OLD_LDFLAGS="$LDFLAGS"
12095 UBSAN_FLAGS="-fsanitize=undefined"
12096 CFLAGS="$CFLAGS $UBSAN_FLAGS"
12097 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099/* end confdefs.h. */
12100
12101int
12102main ()
12103{
12104
12105 ;
12106 return 0;
12107}
12108_ACEOF
12109if ac_fn_c_try_link "$LINENO"; then :
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12111$as_echo "yes" >&6; }
12112 ubsan_cflags=$UBSAN_FLAGS
12113 ubsan_ldflags=$UBSAN_FLAGS
12114 have_ubsan=yes
12115else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117$as_echo "no" >&6; }
12118fi
12119rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121 CFLAGS="${OLD_CFLAGS}"
12122 LDFLAGS="${OLD_LDFLAGS}"
12123
12124
12125
12126fi
12127if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
12128 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
12129fi
5e666e3d
DW
12130# Check whether --enable-addrsan was given.
12131if test "${enable_addrsan+set}" = set; then :
12132 enableval=$enable_addrsan;
12133else
12134 enable_addrsan=no
12135fi
12136
12137if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
12139$as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
12140 OLD_CFLAGS="$CFLAGS"
12141 OLD_LDFLAGS="$LDFLAGS"
12142 ADDRSAN_FLAGS="-fsanitize=address"
12143 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
12144 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146/* end confdefs.h. */
12147
12148int
12149main ()
12150{
12151
12152 ;
12153 return 0;
12154}
12155_ACEOF
12156if ac_fn_c_try_link "$LINENO"; then :
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12158$as_echo "yes" >&6; }
12159 addrsan_cflags=$ADDRSAN_FLAGS
12160 addrsan_ldflags=$ADDRSAN_FLAGS
12161 have_addrsan=yes
12162else
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164$as_echo "no" >&6; }
12165fi
12166rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12168 CFLAGS="${OLD_CFLAGS}"
12169 LDFLAGS="${OLD_LDFLAGS}"
12170
12171
12172
12173fi
12174if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
12175 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
12176fi
bcca786b
DW
12177# Check whether --enable-threadsan was given.
12178if test "${enable_threadsan+set}" = set; then :
12179 enableval=$enable_threadsan;
12180else
12181 enable_threadsan=no
12182fi
12183
12184if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
12186$as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
12187 OLD_CFLAGS="$CFLAGS"
12188 OLD_LDFLAGS="$LDFLAGS"
12189 THREADSAN_FLAGS="-fsanitize=thread"
12190 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
12191 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193/* end confdefs.h. */
12194
12195int
12196main ()
12197{
12198
12199 ;
12200 return 0;
12201}
12202_ACEOF
12203if ac_fn_c_try_link "$LINENO"; then :
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12205$as_echo "yes" >&6; }
12206 threadsan_cflags=$THREADSAN_FLAGS
12207 threadsan_ldflags=$THREADSAN_FLAGS
12208 have_threadsan=yes
12209else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211$as_echo "no" >&6; }
12212fi
12213rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext
12215 CFLAGS="${OLD_CFLAGS}"
12216 LDFLAGS="${OLD_LDFLAGS}"
12217
12218
12219
12220fi
12221if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
12222 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
12223fi
12224if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
12226$as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
12227fi
e6f2bda3 12228LINUX_CMT="#"
fff45483
TT
12229CYGWIN_CMT="#"
12230UNIX_CMT=
e6f2bda3
TT
12231case "$host_os" in
12232linux*)
12233 LINUX_CMT=
fff45483
TT
12234 ;;
12235cygwin)
12236 CYGWIN_CMT=
12237 UNIX_CMT="#"
e6f2bda3
TT
12238 ;;
12239esac
12240
93636bde
TT
12241
12242
5ce368f0
DW
12243E2SCRUB_CMT="$LINUX_CMT"
12244
50e1e10f 12245case "$host_os" in
93636bde 12246linux* | gnu* | k*bsd*-gnu)
a4b2d3ce
TT
12247 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
12248 root_prefix="";
57aa50d4 12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
39fd3d4f 12250$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
fc6d9d51
TT
12251 fi
12252 ;;
12253esac
fc6d9d51 12254case "$host_os" in
93636bde 12255linux* | gnu* | k*bsd*-gnu)
fc6d9d51 12256 if test "$prefix" = NONE ; then
a4b2d3ce 12257 prefix="/usr";
57aa50d4 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
39fd3d4f 12259$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
bff61a7a 12260 if test "$mandir" = '${prefix}/man' ; then
57aa50d4 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
39fd3d4f 12262$as_echo "...and mandir defaults to /usr/share/man" >&6; }
bff61a7a
TT
12263 mandir=/usr/share/man
12264 fi
50e1e10f
TT
12265 fi
12266;;
12267esac
a4b2d3ce 12268if test "$root_prefix" = NONE ; then
ffe1991f 12269 if test "$prefix" = NONE ; then
a4b2d3ce
TT
12270 root_prefix="$ac_default_prefix"
12271 else
12272 root_prefix="$prefix"
12273 fi
b5ffeade
TT
12274 root_bindir=$bindir
12275 root_sbindir=$sbindir
12276 root_libdir=$libdir
12277 root_sysconfdir=$sysconfdir
12278else
12279 root_bindir='${root_prefix}/bin'
12280 root_sbindir='${root_prefix}/sbin'
12281 root_libdir='${root_prefix}/lib'
12282 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce 12283fi
c4ef11c5
TT
12284if test "$bindir" != '${exec_prefix}/bin'; then
12285 root_bindir=$bindir
57aa50d4 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
39fd3d4f 12287$as_echo "Setting root_bindir to $root_bindir" >&6; }
c4ef11c5
TT
12288fi
12289if test "$sbindir" != '${exec_prefix}/sbin'; then
12290 root_sbindir=$sbindir
57aa50d4 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
39fd3d4f 12292$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
c4ef11c5
TT
12293fi
12294if test "$libdir" != '${exec_prefix}/lib'; then
12295 root_libdir=$libdir
57aa50d4 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
39fd3d4f 12297$as_echo "Setting root_libdir to $root_libdir" >&6; }
c4ef11c5
TT
12298fi
12299if test "$sysconfdir" != '${prefix}/etc'; then
12300 root_sysconfdir=$sysconfdir
57aa50d4 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
39fd3d4f 12302$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
c4ef11c5 12303fi
a4b2d3ce 12304
93636bde
TT
12305
12306
12307
12308
55e00a25
TT
12309
12310# Check whether --with-multiarch was given.
12311if test "${with_multiarch+set}" = set; then :
d7fa4103
TT
12312 withval=$with_multiarch; if test "$withval" = "lib64"; then
12313 libdir=/usr/lib64
12314 root_libdir=/lib64
12315else
12316 libdir=$libdir/$withval
12317 root_libdir=$root_libdir/$withval
12318fi
55e00a25
TT
12319
12320fi
a2df5894 12321
d3de1a71
TT
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
12323$as_echo_n "checking whether we can link with -static... " >&6; }
d6a4bcb5 12324if ${ac_cv_e2fsprogs_use_static+:} false; then :
39fd3d4f 12325 $as_echo_n "(cached) " >&6
ae851482 12326else
fd1677e8 12327 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
57aa50d4 12328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12329/* end confdefs.h. */
ae851482 12330#include <stdio.h>
b0cacab0
TT
12331int
12332main ()
12333{
ae851482 12334fflush(stdout);
b0cacab0
TT
12335 ;
12336 return 0;
12337}
12338_ACEOF
57aa50d4 12339if ac_fn_c_try_link "$LINENO"; then :
ae851482
TT
12340 ac_cv_e2fsprogs_use_static=yes
12341else
57aa50d4 12342 ac_cv_e2fsprogs_use_static=no
ae851482 12343fi
57aa50d4
TT
12344rm -f core conftest.err conftest.$ac_objext \
12345 conftest$ac_exeext conftest.$ac_ext
ae851482
TT
12346LDFLAGS=$SAVE_LDFLAGS
12347fi
50e1e10f 12348
defde784
TT
12349case "$host_os" in
12350solaris2.*)
b0cacab0 12351 ac_cv_e2fsprogs_use_static=no
defde784
TT
12352;;
12353esac
57aa50d4 12354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
39fd3d4f 12355$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
ae851482 12356if test $ac_cv_e2fsprogs_use_static = yes; then
fd1677e8 12357 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
ae851482 12358fi
50e1e10f 12359
07a0db15
TT
12360case "$host_os" in
12361darwin*)
57aa50d4 12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
39fd3d4f 12363$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
d1154eb4
TT
12364
12365$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
07a0db15
TT
12366
12367 ;;
12368esac
50e1e10f
TT
12369if test "$cross_compiling" = yes ; then
12370 DO_TEST_SUITE=
12371else
12372 DO_TEST_SUITE=check
12373fi
12374
d1154eb4
TT
12375INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
12376if test -n "$CPPFLAGS" ; then
12377 INCLUDES="$INCLUDES $CPPFLAGS"
12378fi
c6f35b8a 12379if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
d1154eb4 12380 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
c6f35b8a 12381fi
6c59a665
TT
12382if test -n "$WITH_DIET_LIBC" ; then
12383 INCLUDES="$INCLUDES -D_REENTRANT"
12384fi
c6f35b8a 12385
dd947da2 12386if test $cross_compiling = no; then
2873927d 12387 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
dd947da2 12388 BUILD_LDFLAGS="$LDFLAGS"
dd947da2
TT
12389fi
12390
12391
fd1677e8
TT
12392CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
12393CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
12394LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
12395
12396
12397
5ce368f0
DW
12398
12399
12400# Check whether --with-udev_rules_dir was given.
12401if test "${with_udev_rules_dir+set}" = set; then :
12402 withval=$with_udev_rules_dir;
12403else
12404 with_udev_rules_dir=yes
12405fi
12406
12407if test "x${with_udev_rules_dir}" != "xno"; then :
12408
12409 if test "x${with_udev_rules_dir}" = "xyes"; then :
12410
12411
12412pkg_failed=no
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
12414$as_echo_n "checking for udev... " >&6; }
12415
12416if test -n "$udev_CFLAGS"; then
12417 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
12418 elif test -n "$PKG_CONFIG"; then
12419 if test -n "$PKG_CONFIG" && \
12420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12421 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12422 ac_status=$?
12423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12424 test $ac_status = 0; }; then
12425 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
12426 test "x$?" != "x0" && pkg_failed=yes
12427else
12428 pkg_failed=yes
12429fi
12430 else
12431 pkg_failed=untried
12432fi
12433if test -n "$udev_LIBS"; then
12434 pkg_cv_udev_LIBS="$udev_LIBS"
12435 elif test -n "$PKG_CONFIG"; then
12436 if test -n "$PKG_CONFIG" && \
12437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12438 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12439 ac_status=$?
12440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12441 test $ac_status = 0; }; then
12442 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
12443 test "x$?" != "x0" && pkg_failed=yes
12444else
12445 pkg_failed=yes
12446fi
12447 else
12448 pkg_failed=untried
12449fi
12450
12451
12452
12453if test $pkg_failed = yes; then
bdcd5f22 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5ce368f0
DW
12455$as_echo "no" >&6; }
12456
12457if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12458 _pkg_short_errors_supported=yes
12459else
12460 _pkg_short_errors_supported=no
12461fi
12462 if test $_pkg_short_errors_supported = yes; then
12463 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
12464 else
12465 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
12466 fi
12467 # Put the nasty error message in config.log where it belongs
12468 echo "$udev_PKG_ERRORS" >&5
12469
12470
12471 with_udev_rules_dir=""
12472
12473elif test $pkg_failed = untried; then
bdcd5f22 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5ce368f0
DW
12475$as_echo "no" >&6; }
12476
12477 with_udev_rules_dir=""
12478
12479else
12480 udev_CFLAGS=$pkg_cv_udev_CFLAGS
12481 udev_LIBS=$pkg_cv_udev_LIBS
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12483$as_echo "yes" >&6; }
12484
12485 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
12486
12487fi
12488
12489fi
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
12491$as_echo_n "checking for udev rules dir... " >&6; }
12492 pkg_udev_rules_dir="${with_udev_rules_dir}"
12493 if test -n "${pkg_udev_rules_dir}"; then :
12494
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
12496$as_echo "${pkg_udev_rules_dir}" >&6; }
12497 have_udev="yes"
12498
12499else
12500
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502$as_echo "no" >&6; }
12503 have_udev="no"
12504
12505fi
12506
12507else
12508
12509 have_udev="disabled"
12510
12511fi
12512
12513
12514
a2df5894
DW
12515
12516# Check whether --with-crond_dir was given.
12517if test "${with_crond_dir+set}" = set; then :
12518 withval=$with_crond_dir;
12519else
12520 with_crond_dir=yes
12521fi
12522
12523if test "x${with_crond_dir}" != "xno"; then :
12524
12525 if test "x${with_crond_dir}" = "xyes"; then :
12526
12527 if test -d "/etc/cron.d"; then :
12528 with_crond_dir="/etc/cron.d"
188bf39a
TT
12529else
12530 have_crond="no"; with_crond_dir=""
a2df5894
DW
12531fi
12532
12533fi
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
12535$as_echo_n "checking for system crontab dir... " >&6; }
12536 crond_dir="${with_crond_dir}"
12537 if test -n "${crond_dir}"; then :
12538
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
12540$as_echo "${crond_dir}" >&6; }
12541 have_crond="yes"
12542
12543else
12544
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
12547 have_crond="no"
12548
12549fi
12550
12551else
12552
12553 have_crond="disabled"
12554
12555fi
12556
12557
12558
12559
12560# Check whether --with-systemd_unit_dir was given.
12561if test "${with_systemd_unit_dir+set}" = set; then :
12562 withval=$with_systemd_unit_dir;
12563else
12564 with_systemd_unit_dir=yes
12565fi
12566
12567if test "x${with_systemd_unit_dir}" != "xno"; then :
12568
12569 if test "x${with_systemd_unit_dir}" = "xyes"; then :
12570
12571
12572pkg_failed=no
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
12574$as_echo_n "checking for systemd... " >&6; }
12575
12576if test -n "$systemd_CFLAGS"; then
12577 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
12578 elif test -n "$PKG_CONFIG"; then
12579 if test -n "$PKG_CONFIG" && \
12580 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12581 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12582 ac_status=$?
12583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12584 test $ac_status = 0; }; then
12585 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
12586 test "x$?" != "x0" && pkg_failed=yes
12587else
12588 pkg_failed=yes
12589fi
12590 else
12591 pkg_failed=untried
12592fi
12593if test -n "$systemd_LIBS"; then
12594 pkg_cv_systemd_LIBS="$systemd_LIBS"
12595 elif test -n "$PKG_CONFIG"; then
12596 if test -n "$PKG_CONFIG" && \
12597 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12598 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12599 ac_status=$?
12600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12601 test $ac_status = 0; }; then
12602 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
12603 test "x$?" != "x0" && pkg_failed=yes
12604else
12605 pkg_failed=yes
12606fi
12607 else
12608 pkg_failed=untried
12609fi
12610
12611
12612
12613if test $pkg_failed = yes; then
bdcd5f22 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
a2df5894
DW
12615$as_echo "no" >&6; }
12616
12617if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12618 _pkg_short_errors_supported=yes
12619else
12620 _pkg_short_errors_supported=no
12621fi
12622 if test $_pkg_short_errors_supported = yes; then
12623 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
12624 else
12625 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
12626 fi
12627 # Put the nasty error message in config.log where it belongs
12628 echo "$systemd_PKG_ERRORS" >&5
12629
12630
12631 with_systemd_unit_dir=""
12632
12633elif test $pkg_failed = untried; then
bdcd5f22 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
a2df5894
DW
12635$as_echo "no" >&6; }
12636
12637 with_systemd_unit_dir=""
12638
12639else
12640 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
12641 systemd_LIBS=$pkg_cv_systemd_LIBS
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12643$as_echo "yes" >&6; }
12644
12645 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
12646
12647fi
12648
12649
12650fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
12652$as_echo_n "checking for systemd system unit dir... " >&6; }
12653 systemd_system_unit_dir="${with_systemd_unit_dir}"
12654 if test -n "${systemd_system_unit_dir}"; then :
12655
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
12657$as_echo "${systemd_system_unit_dir}" >&6; }
12658 have_systemd="yes"
12659
12660else
12661
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663$as_echo "no" >&6; }
12664 have_systemd="no"
12665
12666fi
12667
12668else
12669
12670 have_systemd="disabled"
12671
12672fi
12673
12674
d1d44c14
PAA
12675OS_IO_FILE=""
12676case "$host_os" in
12677 cigwin*|mingw*|msys*)
12678 OS_IO_FILE=windows_io
12679 ;;
12680 *)
12681 OS_IO_FILE=unix_io
12682 ;;
12683esac
a2df5894 12684
50e1e10f
TT
12685test -d lib || mkdir lib
12686test -d include || mkdir include
12687test -d include/linux || mkdir include/linux
defde784 12688test -d include/asm || mkdir include/asm
44dfb378
TT
12689if test -z "$UUID_CMT" ; then
12690 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
12691 lib/uuid/uuid_types.h"
12692fi
12693if test -z "$BLKID_CMT" ; then
12694 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
12695 lib/blkid/blkid_types.h"
12696fi
e5f0f3ee 12697for i in MCONFIG Makefile \
183c73b0 12698 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
4ea7ea00
TT
12699 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
12700 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
f34af41b 12701 $uuid_out_list $blkid_out_list lib/support/Makefile \
44dfb378 12702 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
921f4ad5 12703 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
94ba8c75 12704 debugfs/Makefile tests/Makefile tests/progs/Makefile \
e598c29b 12705 resize/Makefile doc/Makefile po/Makefile.in scrub/Makefile; do
94ba8c75
TT
12706 if test -d `dirname ${srcdir}/$i` ; then
12707 outlist="$outlist $i"
12708 fi
12709done
e1052144
TT
12710ac_config_files="$ac_config_files $outlist"
12711
b0cacab0 12712cat >confcache <<\_ACEOF
50e1e10f
TT
12713# This file is a shell script that caches the results of configure
12714# tests run on this system so they can be shared between configure
b0cacab0
TT
12715# scripts and configure runs, see configure's option --config-cache.
12716# It is not useful on other systems. If it contains results you don't
12717# want to keep, you may remove or edit it.
50e1e10f 12718#
b0cacab0
TT
12719# config.status only pays attention to the cache file if you give it
12720# the --recheck option to rerun configure.
50e1e10f 12721#
b0cacab0
TT
12722# `ac_cv_env_foo' variables (set or unset) will be overridden when
12723# loading this file, other *unset* `ac_cv_foo' will be assigned the
12724# following values.
12725
12726_ACEOF
12727
21c84b71
TT
12728# The following way of writing the cache mishandles newlines in values,
12729# but we know of no workaround that is simple, portable, and efficient.
e1052144 12730# So, we kill variables containing newlines.
50e1e10f
TT
12731# Ultrix sh set writes to stderr and can't be redirected directly,
12732# and sets the high bit in the cache file unless we assign to the vars.
e1052144
TT
12733(
12734 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12735 eval ac_val=\$$ac_var
12736 case $ac_val in #(
12737 *${as_nl}*)
12738 case $ac_var in #(
57aa50d4 12739 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39fd3d4f 12740$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
e1052144
TT
12741 esac
12742 case $ac_var in #(
12743 _ | IFS | as_nl) ;; #(
39fd3d4f 12744 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
57aa50d4 12745 *) { eval $ac_var=; unset $ac_var;} ;;
e1052144
TT
12746 esac ;;
12747 esac
12748 done
12749
b0cacab0 12750 (set) 2>&1 |
e1052144
TT
12751 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12752 *${as_nl}ac_space=\ *)
57aa50d4
TT
12753 # `set' does not quote correctly, so add quotes: double-quote
12754 # substitution turns \\\\ into \\, and sed turns \\ into \.
b0cacab0
TT
12755 sed -n \
12756 "s/'/'\\\\''/g;
12757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e1052144 12758 ;; #(
b0cacab0
TT
12759 *)
12760 # `set' quotes correctly as required by POSIX, so do not add quotes.
e1052144 12761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b0cacab0 12762 ;;
e1052144
TT
12763 esac |
12764 sort
12765) |
b0cacab0 12766 sed '
e1052144 12767 /^ac_cv_env_/b end
b0cacab0 12768 t clear
e1052144 12769 :clear
b0cacab0
TT
12770 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12771 t end
e1052144
TT
12772 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12773 :end' >>confcache
12774if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12775 if test -w "$cache_file"; then
d6a4bcb5 12776 if test "x$cache_file" != "x/dev/null"; then
57aa50d4 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39fd3d4f 12778$as_echo "$as_me: updating cache $cache_file" >&6;}
d6a4bcb5
TB
12779 if test ! -f "$cache_file" || test -h "$cache_file"; then
12780 cat confcache >"$cache_file"
12781 else
12782 case $cache_file in #(
12783 */* | ?:*)
12784 mv -f confcache "$cache_file"$$ &&
12785 mv -f "$cache_file"$$ "$cache_file" ;; #(
12786 *)
12787 mv -f confcache "$cache_file" ;;
12788 esac
12789 fi
12790 fi
50e1e10f 12791 else
57aa50d4 12792 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39fd3d4f 12793$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50e1e10f
TT
12794 fi
12795fi
12796rm -f confcache
12797
50e1e10f
TT
12798test "x$prefix" = xNONE && prefix=$ac_default_prefix
12799# Let make expand exec_prefix.
12800test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12801
d1154eb4 12802DEFS=-DHAVE_CONFIG_H
b0cacab0
TT
12803
12804ac_libobjs=
12805ac_ltlibobjs=
d6a4bcb5 12806U=
b0cacab0
TT
12807for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12808 # 1. Remove the extension, and $U if already installed.
e1052144 12809 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39fd3d4f 12810 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
e1052144
TT
12811 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12812 # will be set to the directory where LIBOBJS objects are built.
57aa50d4
TT
12813 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12814 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b0cacab0
TT
12815done
12816LIBOBJS=$ac_libobjs
50e1e10f 12817
b0cacab0
TT
12818LTLIBOBJS=$ac_ltlibobjs
12819
12820
12821
39fd3d4f 12822
d6a4bcb5 12823: "${CONFIG_STATUS=./config.status}"
39fd3d4f 12824ac_write_fail=0
b0cacab0
TT
12825ac_clean_files_save=$ac_clean_files
12826ac_clean_files="$ac_clean_files $CONFIG_STATUS"
57aa50d4 12827{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39fd3d4f 12828$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
57aa50d4
TT
12829as_write_fail=0
12830cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b0cacab0
TT
12831#! $SHELL
12832# Generated by $as_me.
93636bde 12833# Run this file to recreate the current configuration.
93636bde 12834# Compiler output produced by configure, useful for debugging
b0cacab0 12835# configure, is in config.log if it exists.
07a0db15 12836
b0cacab0
TT
12837debug=false
12838ac_cs_recheck=false
12839ac_cs_silent=false
b0cacab0 12840
57aa50d4
TT
12841SHELL=\${CONFIG_SHELL-$SHELL}
12842export SHELL
12843_ASEOF
12844cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12845## -------------------- ##
12846## M4sh Initialization. ##
12847## -------------------- ##
b0cacab0 12848
29a5deed
TT
12849# Be more Bourne compatible
12850DUALCASE=1; export DUALCASE # for MKS sh
57aa50d4 12851if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b0cacab0
TT
12852 emulate sh
12853 NULLCMD=:
39fd3d4f 12854 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
12855 # is contrary to our usage. Disable this feature.
12856 alias -g '${1+"$@"}'='"$@"'
e1052144
TT
12857 setopt NO_GLOB_SUBST
12858else
57aa50d4
TT
12859 case `(set -o) 2>/dev/null` in #(
12860 *posix*) :
12861 set -o posix ;; #(
12862 *) :
12863 ;;
29a5deed 12864esac
b0cacab0 12865fi
29a5deed
TT
12866
12867
39fd3d4f
SJR
12868as_nl='
12869'
12870export as_nl
12871# Printing a long string crashes Solaris 7 /usr/bin/printf.
12872as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12873as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12874as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
57aa50d4
TT
12875# Prefer a ksh shell builtin over an external printf program on Solaris,
12876# but without wasting forks for bash or zsh.
12877if test -z "$BASH_VERSION$ZSH_VERSION" \
12878 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12879 as_echo='print -r --'
12880 as_echo_n='print -rn --'
12881elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39fd3d4f
SJR
12882 as_echo='printf %s\n'
12883 as_echo_n='printf %s'
12884else
12885 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12886 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12887 as_echo_n='/usr/ucb/echo -n'
e1052144 12888 else
39fd3d4f
SJR
12889 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12890 as_echo_n_body='eval
12891 arg=$1;
57aa50d4 12892 case $arg in #(
39fd3d4f
SJR
12893 *"$as_nl"*)
12894 expr "X$arg" : "X\\(.*\\)$as_nl";
12895 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12896 esac;
12897 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12898 '
12899 export as_echo_n_body
12900 as_echo_n='sh -c $as_echo_n_body as_echo'
e1052144 12901 fi
39fd3d4f
SJR
12902 export as_echo_body
12903 as_echo='sh -c $as_echo_body as_echo'
12904fi
12905
12906# The user is always right.
12907if test "${PATH_SEPARATOR+set}" != set; then
12908 PATH_SEPARATOR=:
12909 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12910 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12911 PATH_SEPARATOR=';'
12912 }
e1052144
TT
12913fi
12914
b0cacab0 12915
e1052144
TT
12916# IFS
12917# We need space, tab and new line, in precisely that order. Quoting is
12918# there to prevent editors from complaining about space-tab.
12919# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12920# splitting by setting IFS to empty value.)
e1052144
TT
12921IFS=" "" $as_nl"
12922
12923# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 12924as_myself=
57aa50d4 12925case $0 in #((
e1052144
TT
12926 *[\\/]* ) as_myself=$0 ;;
12927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928for as_dir in $PATH
12929do
12930 IFS=$as_save_IFS
12931 test -z "$as_dir" && as_dir=.
57aa50d4
TT
12932 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12933 done
e1052144
TT
12934IFS=$as_save_IFS
12935
12936 ;;
12937esac
12938# We did not find ourselves, most probably we were run as `sh COMMAND'
12939# in which case we are not to be found in the path.
12940if test "x$as_myself" = x; then
12941 as_myself=$0
12942fi
12943if test ! -f "$as_myself"; then
39fd3d4f 12944 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 12945 exit 1
e1052144
TT
12946fi
12947
57aa50d4
TT
12948# Unset variables that we do not need and which cause bugs (e.g. in
12949# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12950# suppresses any "Segmentation fault" message there. '((' could
12951# trigger a bug in pdksh 5.2.14.
12952for as_var in BASH_ENV ENV MAIL MAILPATH
12953do eval test x\${$as_var+set} = xset \
12954 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
e1052144 12955done
b0cacab0
TT
12956PS1='$ '
12957PS2='> '
12958PS4='+ '
12959
12960# NLS nuisances.
39fd3d4f
SJR
12961LC_ALL=C
12962export LC_ALL
12963LANGUAGE=C
12964export LANGUAGE
b0cacab0 12965
57aa50d4
TT
12966# CDPATH.
12967(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12968
12969
d6a4bcb5
TB
12970# as_fn_error STATUS ERROR [LINENO LOG_FD]
12971# ----------------------------------------
57aa50d4
TT
12972# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12973# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d6a4bcb5 12974# script with STATUS, using 1 if that was 0.
57aa50d4
TT
12975as_fn_error ()
12976{
d6a4bcb5
TB
12977 as_status=$1; test $as_status -eq 0 && as_status=1
12978 if test "$4"; then
12979 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12980 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 12981 fi
d6a4bcb5 12982 $as_echo "$as_me: error: $2" >&2
57aa50d4
TT
12983 as_fn_exit $as_status
12984} # as_fn_error
12985
12986
12987# as_fn_set_status STATUS
12988# -----------------------
12989# Set $? to STATUS, without forking.
12990as_fn_set_status ()
12991{
12992 return $1
12993} # as_fn_set_status
12994
12995# as_fn_exit STATUS
12996# -----------------
12997# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12998as_fn_exit ()
12999{
13000 set +e
13001 as_fn_set_status $1
13002 exit $1
13003} # as_fn_exit
13004
13005# as_fn_unset VAR
13006# ---------------
13007# Portably unset VAR.
13008as_fn_unset ()
13009{
13010 { eval $1=; unset $1;}
13011}
13012as_unset=as_fn_unset
13013# as_fn_append VAR VALUE
13014# ----------------------
13015# Append the text in VALUE to the end of the definition contained in VAR. Take
13016# advantage of any shell optimizations that allow amortized linear growth over
13017# repeated appends, instead of the typical quadratic growth present in naive
13018# implementations.
13019if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13020 eval 'as_fn_append ()
13021 {
13022 eval $1+=\$2
13023 }'
13024else
13025 as_fn_append ()
13026 {
13027 eval $1=\$$1\$2
13028 }
13029fi # as_fn_append
13030
13031# as_fn_arith ARG...
13032# ------------------
13033# Perform arithmetic evaluation on the ARGs, and store the result in the
13034# global $as_val. Take advantage of shells that can avoid forks. The arguments
13035# must be portable across $(()) and expr.
13036if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13037 eval 'as_fn_arith ()
13038 {
13039 as_val=$(( $* ))
13040 }'
13041else
13042 as_fn_arith ()
13043 {
13044 as_val=`expr "$@" || test $? -eq 1`
13045 }
13046fi # as_fn_arith
13047
13048
e1052144
TT
13049if expr a : '\(a\)' >/dev/null 2>&1 &&
13050 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
13051 as_expr=expr
13052else
13053 as_expr=false
13054fi
13055
e1052144 13056if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
13057 as_basename=basename
13058else
13059 as_basename=false
13060fi
13061
57aa50d4
TT
13062if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13063 as_dirname=dirname
13064else
13065 as_dirname=false
13066fi
b0cacab0 13067
e1052144 13068as_me=`$as_basename -- "$0" ||
b0cacab0
TT
13069$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13070 X"$0" : 'X\(//\)$' \| \
e1052144 13071 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 13072$as_echo X/"$0" |
e1052144
TT
13073 sed '/^.*\/\([^/][^/]*\)\/*$/{
13074 s//\1/
13075 q
13076 }
13077 /^X\/\(\/\/\)$/{
13078 s//\1/
13079 q
13080 }
13081 /^X\/\(\/\).*/{
13082 s//\1/
13083 q
13084 }
13085 s/.*/./; q'`
b0cacab0 13086
57aa50d4
TT
13087# Avoid depending upon Character Ranges.
13088as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13089as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13090as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13091as_cr_digits='0123456789'
13092as_cr_alnum=$as_cr_Letters$as_cr_digits
e1052144
TT
13093
13094ECHO_C= ECHO_N= ECHO_T=
57aa50d4 13095case `echo -n x` in #(((((
e1052144 13096-n*)
57aa50d4 13097 case `echo 'xy\c'` in
e1052144 13098 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
57aa50d4
TT
13099 xy) ECHO_C='\c';;
13100 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13101 ECHO_T=' ';;
e1052144
TT
13102 esac;;
13103*)
13104 ECHO_N='-n';;
b0cacab0 13105esac
b0cacab0
TT
13106
13107rm -f conf$$ conf$$.exe conf$$.file
e1052144
TT
13108if test -d conf$$.dir; then
13109 rm -f conf$$.dir/conf$$.file
13110else
13111 rm -f conf$$.dir
39fd3d4f
SJR
13112 mkdir conf$$.dir 2>/dev/null
13113fi
13114if (echo >conf$$.file) 2>/dev/null; then
13115 if ln -s conf$$.file conf$$ 2>/dev/null; then
13116 as_ln_s='ln -s'
13117 # ... but there are two gotchas:
13118 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13119 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d6a4bcb5 13120 # In both cases, we have to default to `cp -pR'.
39fd3d4f 13121 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 13122 as_ln_s='cp -pR'
39fd3d4f
SJR
13123 elif ln conf$$.file conf$$ 2>/dev/null; then
13124 as_ln_s=ln
13125 else
d6a4bcb5 13126 as_ln_s='cp -pR'
39fd3d4f 13127 fi
b0cacab0 13128else
d6a4bcb5 13129 as_ln_s='cp -pR'
b0cacab0 13130fi
e1052144
TT
13131rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13132rmdir conf$$.dir 2>/dev/null
b0cacab0 13133
57aa50d4
TT
13134
13135# as_fn_mkdir_p
13136# -------------
13137# Create "$as_dir" as a directory, including parents if necessary.
13138as_fn_mkdir_p ()
13139{
13140
13141 case $as_dir in #(
13142 -*) as_dir=./$as_dir;;
13143 esac
13144 test -d "$as_dir" || eval $as_mkdir_p || {
13145 as_dirs=
13146 while :; do
13147 case $as_dir in #(
13148 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13149 *) as_qdir=$as_dir;;
13150 esac
13151 as_dirs="'$as_qdir' $as_dirs"
13152 as_dir=`$as_dirname -- "$as_dir" ||
13153$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13154 X"$as_dir" : 'X\(//\)[^/]' \| \
13155 X"$as_dir" : 'X\(//\)$' \| \
13156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13157$as_echo X"$as_dir" |
13158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13159 s//\1/
13160 q
13161 }
13162 /^X\(\/\/\)[^/].*/{
13163 s//\1/
13164 q
13165 }
13166 /^X\(\/\/\)$/{
13167 s//\1/
13168 q
13169 }
13170 /^X\(\/\).*/{
13171 s//\1/
13172 q
13173 }
13174 s/.*/./; q'`
13175 test -d "$as_dir" && break
13176 done
13177 test -z "$as_dirs" || eval "mkdir $as_dirs"
d6a4bcb5 13178 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
13179
13180
13181} # as_fn_mkdir_p
b0cacab0 13182if mkdir -p . 2>/dev/null; then
57aa50d4 13183 as_mkdir_p='mkdir -p "$as_dir"'
b0cacab0
TT
13184else
13185 test -d ./-p && rmdir ./-p
13186 as_mkdir_p=false
13187fi
13188
d6a4bcb5
TB
13189
13190# as_fn_executable_p FILE
13191# -----------------------
13192# Test if FILE is an executable regular file.
13193as_fn_executable_p ()
13194{
13195 test -f "$1" && test -x "$1"
13196} # as_fn_executable_p
13197as_test_x='test -x'
13198as_executable_p=as_fn_executable_p
b0cacab0
TT
13199
13200# Sed expression to map a string onto a valid CPP name.
13201as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13202
13203# Sed expression to map a string onto a valid variable name.
13204as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13205
13206
b0cacab0 13207exec 6>&1
57aa50d4
TT
13208## ----------------------------------- ##
13209## Main body of $CONFIG_STATUS script. ##
13210## ----------------------------------- ##
13211_ASEOF
13212test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b0cacab0 13213
57aa50d4
TT
13214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13215# Save the log message, to keep $0 and so on meaningful, and to
b0cacab0 13216# report actual input values of CONFIG_FILES etc. instead of their
e1052144
TT
13217# values after options handling.
13218ac_log="
b0cacab0 13219This file was extended by $as_me, which was
d6a4bcb5 13220generated by GNU Autoconf 2.69. Invocation command line was
b0cacab0
TT
13221
13222 CONFIG_FILES = $CONFIG_FILES
13223 CONFIG_HEADERS = $CONFIG_HEADERS
13224 CONFIG_LINKS = $CONFIG_LINKS
13225 CONFIG_COMMANDS = $CONFIG_COMMANDS
13226 $ $0 $@
13227
e1052144
TT
13228on `(hostname || uname -n) 2>/dev/null | sed 1q`
13229"
13230
b0cacab0
TT
13231_ACEOF
13232
39fd3d4f
SJR
13233case $ac_config_files in *"
13234"*) set x $ac_config_files; shift; ac_config_files=$*;;
13235esac
13236
d1154eb4
TT
13237case $ac_config_headers in *"
13238"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13239esac
39fd3d4f
SJR
13240
13241
13242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 13243# Files that config.status was made for.
e1052144 13244config_files="$ac_config_files"
d1154eb4 13245config_headers="$ac_config_headers"
e1052144 13246config_commands="$ac_config_commands"
b0cacab0 13247
e1052144 13248_ACEOF
b0cacab0 13249
39fd3d4f 13250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0 13251ac_cs_usage="\
57aa50d4
TT
13252\`$as_me' instantiates files and other configuration actions
13253from templates according to the current configuration. Unless the files
13254and actions are specified as TAGs, all are instantiated by default.
b0cacab0 13255
57aa50d4 13256Usage: $0 [OPTION]... [TAG]...
b0cacab0
TT
13257
13258 -h, --help print this help, then exit
29a5deed 13259 -V, --version print version number and configuration settings, then exit
61ef2474 13260 --config print configuration, then exit
39fd3d4f
SJR
13261 -q, --quiet, --silent
13262 do not print progress messages
b0cacab0
TT
13263 -d, --debug don't remove temporary files
13264 --recheck update $as_me by reconfiguring in the same conditions
39fd3d4f
SJR
13265 --file=FILE[:TEMPLATE]
13266 instantiate the configuration file FILE
d1154eb4
TT
13267 --header=FILE[:TEMPLATE]
13268 instantiate the configuration header FILE
b0cacab0
TT
13269
13270Configuration files:
13271$config_files
13272
d1154eb4
TT
13273Configuration headers:
13274$config_headers
13275
b0cacab0
TT
13276Configuration commands:
13277$config_commands
13278
57aa50d4 13279Report bugs to the package provider."
b0cacab0 13280
e1052144 13281_ACEOF
39fd3d4f 13282cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61ef2474 13283ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b0cacab0
TT
13284ac_cs_version="\\
13285config.status
d6a4bcb5 13286configured by $0, generated by GNU Autoconf 2.69,
61ef2474 13287 with options \\"\$ac_cs_config\\"
b0cacab0 13288
d6a4bcb5 13289Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
13290This config.status script is free software; the Free Software Foundation
13291gives unlimited permission to copy, distribute and modify it."
e1052144
TT
13292
13293ac_pwd='$ac_pwd'
13294srcdir='$srcdir'
13295INSTALL='$INSTALL'
93613951 13296MKDIR_P='$MKDIR_P'
39fd3d4f
SJR
13297AWK='$AWK'
13298test -n "\$AWK" || AWK=awk
b0cacab0
TT
13299_ACEOF
13300
39fd3d4f
SJR
13301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13302# The default lists apply if the user does not specify any file.
b0cacab0
TT
13303ac_need_defaults=:
13304while test $# != 0
07a0db15 13305do
b0cacab0 13306 case $1 in
d6a4bcb5 13307 --*=?*)
e1052144
TT
13308 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13309 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b0cacab0
TT
13310 ac_shift=:
13311 ;;
d6a4bcb5
TB
13312 --*=)
13313 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13314 ac_optarg=
13315 ac_shift=:
13316 ;;
e1052144 13317 *)
b0cacab0
TT
13318 ac_option=$1
13319 ac_optarg=$2
13320 ac_shift=shift
13321 ;;
b0cacab0
TT
13322 esac
13323
13324 case $ac_option in
13325 # Handling of the options.
93636bde 13326 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b0cacab0 13327 ac_cs_recheck=: ;;
e1052144 13328 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39fd3d4f 13329 $as_echo "$ac_cs_version"; exit ;;
61ef2474
TT
13330 --config | --confi | --conf | --con | --co | --c )
13331 $as_echo "$ac_cs_config"; exit ;;
e1052144 13332 --debug | --debu | --deb | --de | --d | -d )
b0cacab0
TT
13333 debug=: ;;
13334 --file | --fil | --fi | --f )
13335 $ac_shift
39fd3d4f
SJR
13336 case $ac_optarg in
13337 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6a4bcb5 13338 '') as_fn_error $? "missing file argument" ;;
39fd3d4f 13339 esac
57aa50d4 13340 as_fn_append CONFIG_FILES " '$ac_optarg'"
b0cacab0 13341 ac_need_defaults=false;;
d1154eb4
TT
13342 --header | --heade | --head | --hea )
13343 $ac_shift
13344 case $ac_optarg in
13345 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13346 esac
13347 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13348 ac_need_defaults=false;;
13349 --he | --h)
13350 # Conflict between --help and --header
d6a4bcb5 13351 as_fn_error $? "ambiguous option: \`$1'
d1154eb4
TT
13352Try \`$0 --help' for more information.";;
13353 --help | --hel | -h )
39fd3d4f 13354 $as_echo "$ac_cs_usage"; exit ;;
b0cacab0
TT
13355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13356 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13357 ac_cs_silent=: ;;
13358
13359 # This is an error.
d6a4bcb5 13360 -*) as_fn_error $? "unrecognized option: \`$1'
57aa50d4 13361Try \`$0 --help' for more information." ;;
b0cacab0 13362
57aa50d4 13363 *) as_fn_append ac_config_targets " $1"
e1052144 13364 ac_need_defaults=false ;;
b0cacab0 13365
07a0db15 13366 esac
b0cacab0 13367 shift
07a0db15
TT
13368done
13369
b0cacab0
TT
13370ac_configure_extra_args=
13371
13372if $ac_cs_silent; then
13373 exec 6>/dev/null
13374 ac_configure_extra_args="$ac_configure_extra_args --silent"
13375fi
13376
13377_ACEOF
39fd3d4f 13378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 13379if \$ac_cs_recheck; then
d6a4bcb5 13380 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39fd3d4f
SJR
13381 shift
13382 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13383 CONFIG_SHELL='$SHELL'
e1052144 13384 export CONFIG_SHELL
39fd3d4f 13385 exec "\$@"
b0cacab0 13386fi
07a0db15 13387
b0cacab0 13388_ACEOF
39fd3d4f 13389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
13390exec 5>>config.log
13391{
13392 echo
13393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13394## Running $as_me. ##
13395_ASBOX
39fd3d4f 13396 $as_echo "$ac_log"
e1052144 13397} >&5
07a0db15 13398
e1052144 13399_ACEOF
39fd3d4f 13400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 13401#
e1052144 13402# INIT-COMMANDS
b0cacab0 13403#
b0cacab0 13404# Capture the value of obsolete ALL_LINGUAS because we need it to compute
bdcd5f22
TT
13405 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
13406 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
b0cacab0
TT
13407 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13408 LINGUAS="${LINGUAS-%UNSET%}"
13409
13410
13411_ACEOF
13412
39fd3d4f 13413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
13414
13415# Handling of arguments.
b0cacab0
TT
13416for ac_config_target in $ac_config_targets
13417do
e1052144 13418 case $ac_config_target in
d1154eb4 13419 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
93613951 13420 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
e1052144
TT
13421 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
13422
d6a4bcb5 13423 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b0cacab0
TT
13424 esac
13425done
13426
e1052144 13427
b0cacab0
TT
13428# If the user did not use the arguments to specify the items to instantiate,
13429# then the envvar interface is used. Set only those that are not.
13430# We use the long form for the default assignment because of an extremely
13431# bizarre bug on SunOS 4.1.3.
13432if $ac_need_defaults; then
13433 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
d1154eb4 13434 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b0cacab0
TT
13435 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13436fi
13437
13438# Have a temporary directory for convenience. Make it in the build tree
e1052144 13439# simply because there is no reason against having it here, and in addition,
b0cacab0 13440# creating and moving files from /tmp can sometimes cause problems.
e1052144
TT
13441# Hook for its removal unless debugging.
13442# Note that there is a small window in which the directory will not be cleaned:
13443# after its creation but before its name has been assigned to `$tmp'.
b0cacab0
TT
13444$debug ||
13445{
d6a4bcb5 13446 tmp= ac_tmp=
e1052144 13447 trap 'exit_status=$?
d6a4bcb5
TB
13448 : "${ac_tmp:=$tmp}"
13449 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
e1052144 13450' 0
57aa50d4 13451 trap 'as_fn_exit 1' 1 2 13 15
b0cacab0 13452}
b0cacab0
TT
13453# Create a (secure) tmp directory for tmp files.
13454
13455{
e1052144 13456 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6a4bcb5 13457 test -d "$tmp"
b0cacab0
TT
13458} ||
13459{
e1052144
TT
13460 tmp=./conf$$-$RANDOM
13461 (umask 077 && mkdir "$tmp")
d6a4bcb5
TB
13462} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13463ac_tmp=$tmp
b0cacab0 13464
39fd3d4f
SJR
13465# Set up the scripts for CONFIG_FILES section.
13466# No need to generate them if there are no CONFIG_FILES.
13467# This happens for instance with `./config.status config.h'.
e1052144
TT
13468if test -n "$CONFIG_FILES"; then
13469
39fd3d4f
SJR
13470if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13471 ac_cs_awk_getline=:
13472 ac_cs_awk_pipe_init=
13473 ac_cs_awk_read_file='
13474 while ((getline aline < (F[key])) > 0)
13475 print(aline)
13476 close(F[key])'
13477 ac_cs_awk_pipe_fini=
13478else
13479 ac_cs_awk_getline=false
13480 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13481 ac_cs_awk_read_file='
13482 print "|#_!!_#|"
13483 print "cat " F[key] " &&"
13484 '$ac_cs_awk_pipe_init
13485 # The final `:' finishes the AND list.
13486 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13487fi
57aa50d4
TT
13488ac_cr=`echo X | tr X '\015'`
13489# On cygwin, bash can eat \r inside `` if the user requested igncr.
13490# But we know of no other shell where ac_cr would be empty at this
13491# point, so we can use a bashism as a fallback.
13492if test "x$ac_cr" = x; then
13493 eval ac_cr=\$\'\\r\'
13494fi
39fd3d4f
SJR
13495ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13496if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d6a4bcb5 13497 ac_cs_awk_cr='\\r'
39fd3d4f
SJR
13498else
13499 ac_cs_awk_cr=$ac_cr
13500fi
e1052144 13501
d6a4bcb5 13502echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39fd3d4f 13503_ACEOF
e1052144 13504
39fd3d4f
SJR
13505# Create commands to substitute file output variables.
13506{
13507 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6a4bcb5 13508 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
39fd3d4f
SJR
13509 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13510 echo "_ACAWK" &&
13511 echo "_ACEOF"
13512} >conf$$files.sh &&
13513. ./conf$$files.sh ||
d6a4bcb5 13514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 13515rm -f conf$$files.sh
e1052144 13516
39fd3d4f
SJR
13517{
13518 echo "cat >conf$$subs.awk <<_ACEOF" &&
13519 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13520 echo "_ACEOF"
13521} >conf$$subs.sh ||
d6a4bcb5
TB
13522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13523ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
e1052144
TT
13524ac_delim='%!_!# '
13525for ac_last_try in false false false false false :; do
39fd3d4f 13526 . ./conf$$subs.sh ||
d6a4bcb5 13527 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f
SJR
13528
13529 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13530 if test $ac_delim_n = $ac_delim_num; then
e1052144
TT
13531 break
13532 elif $ac_last_try; then
d6a4bcb5 13533 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e1052144
TT
13534 else
13535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21c84b71 13536 fi
e1052144 13537done
39fd3d4f
SJR
13538rm -f conf$$subs.sh
13539
13540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6a4bcb5 13541cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
39fd3d4f
SJR
13542_ACEOF
13543sed -n '
13544h
13545s/^/S["/; s/!.*/"]=/
13546p
13547g
13548s/^[^!]*!//
13549:repl
13550t repl
13551s/'"$ac_delim"'$//
13552t delim
13553:nl
13554h
61ef2474 13555s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
13556t more1
13557s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13558p
13559n
13560b repl
13561:more1
13562s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13563p
13564g
13565s/.\{148\}//
13566t nl
13567:delim
13568h
61ef2474 13569s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
13570t more2
13571s/["\\]/\\&/g; s/^/"/; s/$/"/
13572p
13573b
13574:more2
13575s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13576p
13577g
13578s/.\{148\}//
13579t delim
13580' <conf$$subs.awk | sed '
13581/^[^""]/{
13582 N
13583 s/\n//
e1052144 13584}
39fd3d4f
SJR
13585' >>$CONFIG_STATUS || ac_write_fail=1
13586rm -f conf$$subs.awk
13587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13588_ACAWK
d6a4bcb5 13589cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
39fd3d4f
SJR
13590 for (key in S) S_is_set[key] = 1
13591 FS = "\a"
13592 \$ac_cs_awk_pipe_init
e1052144 13593}
39fd3d4f
SJR
13594{
13595 line = $ 0
13596 nfields = split(line, field, "@")
13597 substed = 0
13598 len = length(field[1])
13599 for (i = 2; i < nfields; i++) {
13600 key = field[i]
13601 keylen = length(key)
13602 if (S_is_set[key]) {
13603 value = S[key]
13604 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13605 len += length(value) + length(field[++i])
13606 substed = 1
13607 } else
13608 len += 1 + keylen
13609 }
13610 if (nfields == 3 && !substed) {
13611 key = field[2]
13612 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
13613 \$ac_cs_awk_read_file
13614 next
13615 }
13616 }
13617 print line
488c75a6 13618}
39fd3d4f
SJR
13619\$ac_cs_awk_pipe_fini
13620_ACAWK
e1052144 13621_ACEOF
39fd3d4f
SJR
13622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13623if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13624 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13625else
13626 cat
d6a4bcb5
TB
13627fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13628 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b0cacab0 13629_ACEOF
e1052144 13630
d6a4bcb5
TB
13631# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13632# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
e1052144
TT
13633# trailing colons and then remove the whole line if VPATH becomes empty
13634# (actually we leave an empty line to preserve line numbers).
13635if test "x$srcdir" = x.; then
d6a4bcb5
TB
13636 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13637h
13638s///
13639s/^/:/
13640s/[ ]*$/:/
13641s/:\$(srcdir):/:/g
13642s/:\${srcdir}:/:/g
13643s/:@srcdir@:/:/g
13644s/^:*//
e1052144 13645s/:*$//
d6a4bcb5
TB
13646x
13647s/\(=[ ]*\).*/\1/
13648G
13649s/\n//
e1052144
TT
13650s/^[^=]*=[ ]*$//
13651}'
13652fi
13653
39fd3d4f 13654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
13655fi # test -n "$CONFIG_FILES"
13656
d1154eb4
TT
13657# Set up the scripts for CONFIG_HEADERS section.
13658# No need to generate them if there are no CONFIG_HEADERS.
13659# This happens for instance with `./config.status Makefile'.
13660if test -n "$CONFIG_HEADERS"; then
d6a4bcb5 13661cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
d1154eb4
TT
13662BEGIN {
13663_ACEOF
13664
13665# Transform confdefs.h into an awk script `defines.awk', embedded as
13666# here-document in config.status, that substitutes the proper values into
13667# config.h.in to produce config.h.
13668
13669# Create a delimiter string that does not exist in confdefs.h, to ease
13670# handling of long lines.
13671ac_delim='%!_!# '
13672for ac_last_try in false false :; do
d6a4bcb5
TB
13673 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13674 if test -z "$ac_tt"; then
d1154eb4
TT
13675 break
13676 elif $ac_last_try; then
d6a4bcb5 13677 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
d1154eb4
TT
13678 else
13679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13680 fi
13681done
13682
13683# For the awk script, D is an array of macro values keyed by name,
13684# likewise P contains macro parameters if any. Preserve backslash
13685# newline sequences.
13686
13687ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13688sed -n '
13689s/.\{148\}/&'"$ac_delim"'/g
13690t rset
13691:rset
13692s/^[ ]*#[ ]*define[ ][ ]*/ /
13693t def
13694d
13695:def
13696s/\\$//
13697t bsnl
13698s/["\\]/\\&/g
13699s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13700D["\1"]=" \3"/p
13701s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13702d
13703:bsnl
13704s/["\\]/\\&/g
13705s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13706D["\1"]=" \3\\\\\\n"\\/p
13707t cont
13708s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13709t cont
13710d
13711:cont
13712n
13713s/.\{148\}/&'"$ac_delim"'/g
13714t clear
13715:clear
13716s/\\$//
13717t bsnlc
13718s/["\\]/\\&/g; s/^/"/; s/$/"/p
13719d
13720:bsnlc
13721s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13722b cont
13723' <confdefs.h | sed '
13724s/'"$ac_delim"'/"\\\
13725"/g' >>$CONFIG_STATUS || ac_write_fail=1
13726
13727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13728 for (key in D) D_is_set[key] = 1
13729 FS = "\a"
13730}
13731/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13732 line = \$ 0
13733 split(line, arg, " ")
13734 if (arg[1] == "#") {
13735 defundef = arg[2]
13736 mac1 = arg[3]
13737 } else {
13738 defundef = substr(arg[1], 2)
13739 mac1 = arg[2]
13740 }
13741 split(mac1, mac2, "(") #)
13742 macro = mac2[1]
13743 prefix = substr(line, 1, index(line, defundef) - 1)
13744 if (D_is_set[macro]) {
13745 # Preserve the white space surrounding the "#".
13746 print prefix "define", macro P[macro] D[macro]
13747 next
13748 } else {
13749 # Replace #undef with comments. This is necessary, for example,
13750 # in the case of _POSIX_SOURCE, which is predefined and required
13751 # on some systems where configure will not decide to define it.
13752 if (defundef == "undef") {
13753 print "/*", prefix defundef, macro, "*/"
13754 next
13755 }
13756 }
13757}
13758{ print }
13759_ACAWK
13760_ACEOF
13761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d6a4bcb5 13762 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
d1154eb4
TT
13763fi # test -n "$CONFIG_HEADERS"
13764
e1052144 13765
d1154eb4 13766eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39fd3d4f
SJR
13767shift
13768for ac_tag
e1052144
TT
13769do
13770 case $ac_tag in
13771 :[FHLC]) ac_mode=$ac_tag; continue;;
13772 esac
13773 case $ac_mode$ac_tag in
13774 :[FHL]*:*);;
d6a4bcb5 13775 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
e1052144
TT
13776 :[FH]-) ac_tag=-:-;;
13777 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13778 esac
13779 ac_save_IFS=$IFS
13780 IFS=:
13781 set x $ac_tag
13782 IFS=$ac_save_IFS
13783 shift
13784 ac_file=$1
13785 shift
13786
13787 case $ac_mode in
13788 :L) ac_source=$1;;
13789 :[FH])
13790 ac_file_inputs=
13791 for ac_f
13792 do
13793 case $ac_f in
d6a4bcb5 13794 -) ac_f="$ac_tmp/stdin";;
e1052144
TT
13795 *) # Look for the file first in the build tree, then in the source tree
13796 # (if the path is not absolute). The absolute path cannot be DOS-style,
13797 # because $ac_f cannot contain `:'.
13798 test -f "$ac_f" ||
13799 case $ac_f in
13800 [\\/$]*) false;;
13801 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13802 esac ||
d6a4bcb5 13803 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
e1052144 13804 esac
39fd3d4f 13805 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57aa50d4 13806 as_fn_append ac_file_inputs " '$ac_f'"
e1052144
TT
13807 done
13808
13809 # Let's still pretend it is `configure' which instantiates (i.e., don't
13810 # use $as_me), people would be surprised to read:
13811 # /* config.h. Generated by config.status. */
39fd3d4f
SJR
13812 configure_input='Generated from '`
13813 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13814 `' by configure.'
e1052144
TT
13815 if test x"$ac_file" != x-; then
13816 configure_input="$ac_file. $configure_input"
57aa50d4 13817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39fd3d4f 13818$as_echo "$as_me: creating $ac_file" >&6;}
e1052144 13819 fi
39fd3d4f
SJR
13820 # Neutralize special characters interpreted by sed in replacement strings.
13821 case $configure_input in #(
13822 *\&* | *\|* | *\\* )
13823 ac_sed_conf_input=`$as_echo "$configure_input" |
13824 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13825 *) ac_sed_conf_input=$configure_input;;
13826 esac
e1052144
TT
13827
13828 case $ac_tag in
d6a4bcb5
TB
13829 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
e1052144
TT
13831 esac
13832 ;;
b0cacab0
TT
13833 esac
13834
e1052144 13835 ac_dir=`$as_dirname -- "$ac_file" ||
b0cacab0
TT
13836$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13837 X"$ac_file" : 'X\(//\)[^/]' \| \
13838 X"$ac_file" : 'X\(//\)$' \| \
e1052144 13839 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 13840$as_echo X"$ac_file" |
e1052144
TT
13841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13842 s//\1/
13843 q
13844 }
13845 /^X\(\/\/\)[^/].*/{
13846 s//\1/
13847 q
13848 }
13849 /^X\(\/\/\)$/{
13850 s//\1/
13851 q
13852 }
13853 /^X\(\/\).*/{
13854 s//\1/
13855 q
13856 }
13857 s/.*/./; q'`
57aa50d4 13858 as_dir="$ac_dir"; as_fn_mkdir_p
b0cacab0
TT
13859 ac_builddir=.
13860
e1052144
TT
13861case "$ac_dir" in
13862.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13863*)
39fd3d4f 13864 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 13865 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 13866 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
13867 case $ac_top_builddir_sub in
13868 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13869 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13870 esac ;;
13871esac
13872ac_abs_top_builddir=$ac_pwd
13873ac_abs_builddir=$ac_pwd$ac_dir_suffix
13874# for backward compatibility:
13875ac_top_builddir=$ac_top_build_prefix
93636bde 13876
b0cacab0 13877case $srcdir in
e1052144 13878 .) # We are building in place.
b0cacab0 13879 ac_srcdir=.
e1052144
TT
13880 ac_top_srcdir=$ac_top_builddir_sub
13881 ac_abs_top_srcdir=$ac_pwd ;;
13882 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 13883 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
13884 ac_top_srcdir=$srcdir
13885 ac_abs_top_srcdir=$srcdir ;;
13886 *) # Relative name.
13887 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13888 ac_top_srcdir=$ac_top_build_prefix$srcdir
13889 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 13890esac
e1052144 13891ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b0cacab0 13892
b0cacab0 13893
e1052144
TT
13894 case $ac_mode in
13895 :F)
13896 #
13897 # CONFIG_FILE
13898 #
50e1e10f 13899
b0cacab0
TT
13900 case $INSTALL in
13901 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
e1052144 13902 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50e1e10f 13903 esac
93613951
TT
13904 ac_MKDIR_P=$MKDIR_P
13905 case $MKDIR_P in
13906 [\\/$]* | ?:[\\/]* ) ;;
13907 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13908 esac
e1052144 13909_ACEOF
50e1e10f 13910
39fd3d4f 13911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
13912# If the template does not know about datarootdir, expand it.
13913# FIXME: This hack should be removed a few years after 2.60.
13914ac_datarootdir_hack=; ac_datarootdir_seen=
39fd3d4f
SJR
13915ac_sed_dataroot='
13916/datarootdir/ {
e1052144
TT
13917 p
13918 q
13919}
13920/@datadir@/p
13921/@docdir@/p
13922/@infodir@/p
13923/@localedir@/p
57aa50d4 13924/@mandir@/p'
39fd3d4f 13925case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
e1052144
TT
13926*datarootdir*) ac_datarootdir_seen=yes;;
13927*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57aa50d4 13928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39fd3d4f 13929$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b0cacab0 13930_ACEOF
39fd3d4f 13931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
e1052144
TT
13932 ac_datarootdir_hack='
13933 s&@datadir@&$datadir&g
13934 s&@docdir@&$docdir&g
13935 s&@infodir@&$infodir&g
13936 s&@localedir@&$localedir&g
13937 s&@mandir@&$mandir&g
57aa50d4 13938 s&\\\${datarootdir}&$datarootdir&g' ;;
e1052144
TT
13939esac
13940_ACEOF
13941
13942# Neutralize VPATH when `$srcdir' = `.'.
13943# Shell code in configure.ac might set extrasub.
13944# FIXME: do we really want to maintain this feature?
39fd3d4f
SJR
13945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13946ac_sed_extra="$ac_vpsub
b0cacab0
TT
13947$extrasub
13948_ACEOF
39fd3d4f 13949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0
TT
13950:t
13951/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39fd3d4f 13952s|@configure_input@|$ac_sed_conf_input|;t t
e1052144 13953s&@top_builddir@&$ac_top_builddir_sub&;t t
39fd3d4f 13954s&@top_build_prefix@&$ac_top_build_prefix&;t t
e1052144
TT
13955s&@srcdir@&$ac_srcdir&;t t
13956s&@abs_srcdir@&$ac_abs_srcdir&;t t
13957s&@top_srcdir@&$ac_top_srcdir&;t t
13958s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13959s&@builddir@&$ac_builddir&;t t
13960s&@abs_builddir@&$ac_abs_builddir&;t t
13961s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13962s&@INSTALL@&$ac_INSTALL&;t t
93613951 13963s&@MKDIR_P@&$ac_MKDIR_P&;t t
e1052144 13964$ac_datarootdir_hack
39fd3d4f
SJR
13965"
13966eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13967if $ac_cs_awk_getline; then
d6a4bcb5 13968 $AWK -f "$ac_tmp/subs.awk"
39fd3d4f 13969else
d6a4bcb5
TB
13970 $AWK -f "$ac_tmp/subs.awk" | $SHELL
13971fi \
13972 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144
TT
13973
13974test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6a4bcb5
TB
13975 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13976 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13977 "$ac_tmp/out"`; test -z "$ac_out"; } &&
57aa50d4 13978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 13979which seems to be undefined. Please make sure it is defined" >&5
39fd3d4f 13980$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 13981which seems to be undefined. Please make sure it is defined" >&2;}
e1052144 13982
d6a4bcb5 13983 rm -f "$ac_tmp/stdin"
e1052144 13984 case $ac_file in
d6a4bcb5
TB
13985 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13986 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39fd3d4f 13987 esac \
d6a4bcb5 13988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144 13989 ;;
d1154eb4
TT
13990 :H)
13991 #
13992 # CONFIG_HEADER
13993 #
13994 if test x"$ac_file" != x-; then
13995 {
13996 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
13997 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13998 } >"$ac_tmp/config.h" \
13999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14000 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
d1154eb4
TT
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14002$as_echo "$as_me: $ac_file is unchanged" >&6;}
14003 else
14004 rm -f "$ac_file"
d6a4bcb5
TB
14005 mv "$ac_tmp/config.h" "$ac_file" \
14006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d1154eb4
TT
14007 fi
14008 else
14009 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
14010 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14011 || as_fn_error $? "could not create -" "$LINENO" 5
d1154eb4
TT
14012 fi
14013 ;;
07a0db15 14014
57aa50d4 14015 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39fd3d4f 14016$as_echo "$as_me: executing $ac_file commands" >&6;}
e1052144
TT
14017 ;;
14018 esac
a04eba3f 14019
b0cacab0 14020
e1052144 14021 case $ac_file$ac_mode in
93613951 14022 "po-directories":C)
a04eba3f
TT
14023 for ac_file in $CONFIG_FILES; do
14024 # Support "outfile[:infile[:infile...]]"
14025 case "$ac_file" in
14026 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14027 esac
14028 # PO directories have a Makefile.in generated from Makefile.in.in.
14029 case "$ac_file" in */Makefile.in)
14030 # Adjust a relative srcdir.
14031 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
93613951 14032 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
a04eba3f
TT
14033 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14034 # In autoconf-2.13 it is called $ac_given_srcdir.
14035 # In autoconf-2.50 it is called $srcdir.
14036 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14037 case "$ac_given_srcdir" in
14038 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14039 /*) top_srcdir="$ac_given_srcdir" ;;
14040 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14041 esac
93613951
TT
14042 # Treat a directory as a PO directory if and only if it has a
14043 # POTFILES.in file. This allows packages to have multiple PO
14044 # directories under different names or in different locations.
a04eba3f
TT
14045 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14046 rm -f "$ac_dir/POTFILES"
14047 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
93613951
TT
14048 gt_tab=`printf '\t'`
14049 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
14050 POMAKEFILEDEPS="POTFILES.in"
14051 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
a04eba3f
TT
14052 # on $ac_dir but don't depend on user-specified configuration
14053 # parameters.
14054 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14055 # The LINGUAS file contains the set of available languages.
b0cacab0 14056 if test -n "$OBSOLETE_ALL_LINGUAS"; then
a04eba3f
TT
14057 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14058 fi
bdcd5f22 14059 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
b0cacab0
TT
14060 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14061 else
14062 # The set of available languages was given in configure.in.
bdcd5f22 14063 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
a04eba3f 14064 fi
b0cacab0
TT
14065 # Compute POFILES
14066 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14067 # Compute UPDATEPOFILES
14068 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14069 # Compute DUMMYPOFILES
14070 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14071 # Compute GMOFILES
14072 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
a04eba3f
TT
14073 case "$ac_given_srcdir" in
14074 .) srcdirpre= ;;
14075 *) srcdirpre='$(srcdir)/' ;;
14076 esac
14077 POFILES=
a04eba3f
TT
14078 UPDATEPOFILES=
14079 DUMMYPOFILES=
b0cacab0 14080 GMOFILES=
a04eba3f
TT
14081 for lang in $ALL_LINGUAS; do
14082 POFILES="$POFILES $srcdirpre$lang.po"
a04eba3f
TT
14083 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14084 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
b0cacab0 14085 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
a04eba3f
TT
14086 done
14087 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14088 # environment variable.
14089 INST_LINGUAS=
14090 if test -n "$ALL_LINGUAS"; then
14091 for presentlang in $ALL_LINGUAS; do
14092 useit=no
14093 if test "%UNSET%" != "$LINGUAS"; then
14094 desiredlanguages="$LINGUAS"
14095 else
14096 desiredlanguages="$ALL_LINGUAS"
14097 fi
14098 for desiredlang in $desiredlanguages; do
14099 # Use the presentlang catalog if desiredlang is
14100 # a. equal to presentlang, or
14101 # b. a variant of presentlang (because in this case,
14102 # presentlang can be used as a fallback for messages
14103 # which are not translated in the desiredlang catalog).
14104 case "$desiredlang" in
14105 "$presentlang"*) useit=yes;;
14106 esac
14107 done
14108 if test $useit = yes; then
14109 INST_LINGUAS="$INST_LINGUAS $presentlang"
14110 fi
14111 done
14112 fi
14113 CATALOGS=
14114 if test -n "$INST_LINGUAS"; then
14115 for lang in $INST_LINGUAS; do
14116 CATALOGS="$CATALOGS $lang.gmo"
14117 done
14118 fi
14119 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
b0cacab0 14120 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
14121 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14122 if test -f "$f"; then
14123 case "$f" in
14124 *.orig | *.bak | *~) ;;
14125 *) cat "$f" >> "$ac_dir/Makefile" ;;
14126 esac
14127 fi
14128 done
14129 fi
14130 ;;
a64c9c13 14131 esac
b0cacab0 14132 done ;;
e1052144 14133
b0cacab0 14134 esac
e1052144 14135done # for ac_tag
07a0db15 14136
b0cacab0 14137
57aa50d4 14138as_fn_exit 0
b0cacab0 14139_ACEOF
b0cacab0
TT
14140ac_clean_files=$ac_clean_files_save
14141
39fd3d4f 14142test $ac_write_fail = 0 ||
d6a4bcb5 14143 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 14144
b0cacab0
TT
14145
14146# configure is writing to config.log, and then calls config.status.
14147# config.status does its own redirection, appending to config.log.
14148# Unfortunately, on DOS this fails, as config.log is still kept open
14149# by configure, so config.status won't be able to write to it; its
14150# output is simply discarded. So we exec the FD to /dev/null,
14151# effectively closing config.log, so it can be properly (re)opened and
14152# appended to by config.status. When coming back to configure, we
14153# need to make the FD available again.
14154if test "$no_create" != yes; then
14155 ac_cs_success=:
14156 ac_config_status_args=
14157 test "$silent" = yes &&
14158 ac_config_status_args="$ac_config_status_args --quiet"
14159 exec 5>/dev/null
14160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14161 exec 5>>config.log
14162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14163 # would make configure fail if this is the last instruction.
d6a4bcb5 14164 $ac_cs_success || as_fn_exit 1
b0cacab0 14165fi
39fd3d4f 14166if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
57aa50d4 14167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39fd3d4f
SJR
14168$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14169fi
50e1e10f 14170
ee683a13 14171if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi