]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
Merge branch 'maint' into next
[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
a2df5894
DW
625systemd_system_unit_dir
626have_systemd
627systemd_LIBS
628systemd_CFLAGS
629crond_dir
630have_crond
5ce368f0
DW
631pkg_udev_rules_dir
632have_udev
633udev_LIBS
634udev_CFLAGS
fd1677e8
TT
635LDFLAGS_SHLIB
636CFLAGS_STLIB
637CFLAGS_SHLIB
39fd3d4f
SJR
638BUILD_LDFLAGS
639BUILD_CFLAGS
d1154eb4 640INCLUDES
39fd3d4f 641DO_TEST_SUITE
fd1677e8 642LDFLAGS_STATIC
39fd3d4f
SJR
643root_sysconfdir
644root_libdir
645root_sbindir
646root_bindir
647root_prefix
5ce368f0 648E2SCRUB_CMT
39fd3d4f
SJR
649UNIX_CMT
650CYGWIN_CMT
651LINUX_CMT
bcca786b
DW
652threadsan_ldflags
653threadsan_cflags
654have_threadsan
5e666e3d
DW
655addrsan_ldflags
656addrsan_cflags
657have_addrsan
1c2a76ae
DW
658ubsan_ldflags
659ubsan_cflags
660have_ubsan
4aece328
DW
661lto_ldflags
662lto_cflags
663have_lto
664gcc_ranlib
665gcc_ar
39fd3d4f
SJR
666UNI_DIFF_OPTS
667SEM_INIT_LIB
81cbf1ef
DW
668FUSE_CMT
669FUSE_LIB
c94da047 670CLOCK_GETTIME_LIB
b291c11f 671MAGIC_LIB
39fd3d4f 672SOCKET_LIB
2dd680f3 673SIZEOF_TIME_T
cc68e8a6 674SIZEOF_OFF_T
39fd3d4f
SJR
675SIZEOF_LONG_LONG
676SIZEOF_LONG
677SIZEOF_INT
678SIZEOF_SHORT
ec3a69bb 679DD
39fd3d4f
SJR
680BUILD_CC
681MAKEINFO
682STRIP
e598c29b 683RANLIB
39fd3d4f
SJR
684AR
685LDCONFIG
686PERL
39fd3d4f
SJR
687AWK
688CHMOD
689RM
690CP
691MV
692LN_S
693LN
bcb915b0
TT
694ifNotGNUmake
695ifGNUmake
39fd3d4f
SJR
696BINARY_TYPE
697POSUB
698LTLIBINTL
699LIBINTL
700INTLLIBS
93613951
TT
701LTLIBICONV
702LIBICONV
e598c29b 703INTL_MACOSX_LIBS
93613951 704XGETTEXT_EXTRA_OPTIONS
bdcd5f22 705MSGMERGE_FOR_MSGFMT_OPTION
39fd3d4f 706MSGMERGE
93613951 707XGETTEXT_015
39fd3d4f 708XGETTEXT
93613951 709GMSGFMT_015
39fd3d4f
SJR
710GMSGFMT
711MSGFMT
93613951 712GETTEXT_MACRO_VERSION
39fd3d4f 713USE_NLS
93613951 714MKDIR_P
39fd3d4f
SJR
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718SET_MAKE
719VERSION
720PACKAGE
721GETTEXT_PACKAGE
749f0712
TT
722TDB_MAN_COMMENT
723TDB_CMT
39fd3d4f 724UUIDD_CMT
bdcd5f22
TT
725PTHREAD_CFLAGS
726PTHREAD_LIBS
727PTHREAD_CC
728ax_pthread_config
729SED
39fd3d4f
SJR
730E2INITRD_MAN
731E2INITRD_PROG
732FSCK_MAN
733FSCK_PROG
8d9c50c5 734DEFRAG_CMT
39fd3d4f
SJR
735RESIZER_CMT
736IMAGER_CMT
737DEBUGFS_CMT
feb235e0 738SUBSET_CMT
0afb9be6 739ALL_CMT
39fd3d4f
SJR
740BLKID_CMT
741DEPPROFILED_LIBBLKID
742PROFILED_LIBBLKID
743DEPSTATIC_LIBBLKID
744STATIC_LIBBLKID
745DEPLIBBLKID
746LIBBLKID
747UUID_CMT
748DEPPROFILED_LIBUUID
749PROFILED_LIBUUID
750DEPSTATIC_LIBUUID
751STATIC_LIBUUID
752DEPLIBUUID
753LIBUUID
93613951
TT
754PKG_CONFIG_LIBDIR
755PKG_CONFIG_PATH
39fd3d4f 756PKG_CONFIG
b9e66a18 757DEV_FEATURES_CMT
39fd3d4f
SJR
758TEST_IO_CMT
759PRIVATE_LIBS_CMT
760LDFLAG_DYNAMIC
761PROFILED_LIB_EXT
762STATIC_LIB_EXT
763LIB_EXT
39fd3d4f
SJR
764PROFILE_CMT
765BSDLIB_CMT
766ELF_CMT
c13351f6 767Q
c1986ecb 768ES
c13351f6 769E
5aa6c3f6 770LINK_BUILD_FLAGS
183c73b0 771SYMLINK_RELATIVE
5aa6c3f6 772LINK_INSTALL_FLAGS
39fd3d4f 773MAINTAINER_CMT
93613951
TT
774EGREP
775GREP
39fd3d4f 776CPP
9b3018a8 777RDYNAMIC
57aa50d4 778DLOPEN_LIB
39fd3d4f
SJR
779OBJEXT
780EXEEXT
781ac_ct_CC
782CPPFLAGS
783LDFLAGS
784CFLAGS
785CC
786host_os
787host_vendor
788host_cpu
789host
790build_os
791build_vendor
792build_cpu
793build
5ce368f0 794E2FSPROGS_DATE
39fd3d4f
SJR
795E2FSPROGS_PKGVER
796E2FSPROGS_VERSION
797E2FSPROGS_DAY
798E2FSPROGS_MONTH
799E2FSPROGS_YEAR
800target_alias
801host_alias
802build_alias
803LIBS
804ECHO_T
805ECHO_N
806ECHO_C
807DEFS
808mandir
809localedir
810libdir
811psdir
812pdfdir
813dvidir
814htmldir
815infodir
816docdir
817oldincludedir
818includedir
2ab53829 819runstatedir
39fd3d4f
SJR
820localstatedir
821sharedstatedir
822sysconfdir
823datadir
824datarootdir
825libexecdir
826sbindir
827bindir
828program_transform_name
829prefix
830exec_prefix
57aa50d4 831PACKAGE_URL
39fd3d4f
SJR
832PACKAGE_BUGREPORT
833PACKAGE_STRING
834PACKAGE_VERSION
835PACKAGE_TARNAME
836PACKAGE_NAME
837PATH_SEPARATOR
838SHELL'
e1052144
TT
839ac_subst_files='MCONFIG
840MAKEFILE_ELF
841MAKEFILE_BSDLIB
842MAKEFILE_PROFILE
e1052144 843MAKEFILE_LIBRARY
488c75a6
TT
844ASM_TYPES_HEADER
845PUBLIC_CONFIG_HEADER'
39fd3d4f
SJR
846ac_user_opts='
847enable_option_checking
848with_diet_libc
849with_cc
39fd3d4f
SJR
850with_ccopts
851with_ldopts
852with_root_prefix
853enable_maintainer_mode
5aa6c3f6 854enable_symlink_install
91d11da1 855enable_relative_symlinks
183c73b0 856enable_symlink_relative_symlinks
5aa6c3f6 857enable_symlink_build
c13351f6 858enable_verbose_makecmds
39fd3d4f
SJR
859enable_elf_shlibs
860enable_bsd_shlibs
861enable_profile
fedfb27f 862enable_gcov
fd1677e8 863enable_hardening
39fd3d4f
SJR
864enable_jbd_debug
865enable_blkid_debug
866enable_testio_debug
b9e66a18 867enable_developer_features
39fd3d4f
SJR
868enable_libuuid
869enable_libblkid
0afb9be6 870enable_subset
3df6014a 871enable_backtrace
39fd3d4f
SJR
872enable_debugfs
873enable_imager
874enable_resizer
8d9c50c5 875enable_defrag
39fd3d4f
SJR
876enable_fsck
877enable_e2initrd_helper
878enable_tls
bdcd5f22 879with_pthread
39fd3d4f 880enable_uuidd
d6a4bcb5 881enable_mmp
749f0712 882enable_tdb
1625bf42
TB
883enable_bmap_stats
884enable_bmap_stats_ops
39fd3d4f
SJR
885enable_nls
886with_gnu_ld
887enable_rpath
888with_libiconv_prefix
39fd3d4f 889with_libintl_prefix
81cbf1ef 890enable_fuse2fs
4aece328 891enable_lto
1c2a76ae 892enable_ubsan
5e666e3d 893enable_addrsan
bcca786b 894enable_threadsan
55e00a25 895with_multiarch
5ce368f0 896with_udev_rules_dir
a2df5894
DW
897with_crond_dir
898with_systemd_unit_dir
39fd3d4f 899'
e1052144
TT
900 ac_precious_vars='build_alias
901host_alias
902target_alias
903CC
904CFLAGS
905LDFLAGS
29a5deed 906LIBS
e1052144 907CPPFLAGS
14b596d4 908CPP
93613951
TT
909PKG_CONFIG
910PKG_CONFIG_PATH
5ce368f0
DW
911PKG_CONFIG_LIBDIR
912udev_CFLAGS
a2df5894
DW
913udev_LIBS
914systemd_CFLAGS
915systemd_LIBS'
e1052144 916
50e1e10f
TT
917
918# Initialize some variables set by options.
b0cacab0
TT
919ac_init_help=
920ac_init_version=false
39fd3d4f
SJR
921ac_unrecognized_opts=
922ac_unrecognized_sep=
50e1e10f
TT
923# The variables have the same names as the options, with
924# dashes changed to underlines.
b0cacab0 925cache_file=/dev/null
50e1e10f 926exec_prefix=NONE
50e1e10f 927no_create=
50e1e10f
TT
928no_recursion=
929prefix=NONE
930program_prefix=NONE
931program_suffix=NONE
932program_transform_name=s,x,x,
933silent=
934site=
935srcdir=
50e1e10f
TT
936verbose=
937x_includes=NONE
938x_libraries=NONE
b0cacab0
TT
939
940# Installation directory options.
941# These are left unexpanded so users can "make install exec_prefix=/foo"
942# and all the variables that are supposed to be based on exec_prefix
943# by default will actually change.
944# Use braces instead of parens because sh, perl, etc. also accept them.
e1052144 945# (The list follows the same order as the GNU Coding Standards.)
21c84b71
TT
946bindir='${exec_prefix}/bin'
947sbindir='${exec_prefix}/sbin'
948libexecdir='${exec_prefix}/libexec'
e1052144
TT
949datarootdir='${prefix}/share'
950datadir='${datarootdir}'
21c84b71
TT
951sysconfdir='${prefix}/etc'
952sharedstatedir='${prefix}/com'
953localstatedir='${prefix}/var'
2ab53829 954runstatedir='${localstatedir}/run'
21c84b71
TT
955includedir='${prefix}/include'
956oldincludedir='/usr/include'
e1052144
TT
957docdir='${datarootdir}/doc/${PACKAGE}'
958infodir='${datarootdir}/info'
959htmldir='${docdir}'
960dvidir='${docdir}'
961pdfdir='${docdir}'
962psdir='${docdir}'
963libdir='${exec_prefix}/lib'
964localedir='${datarootdir}/locale'
965mandir='${datarootdir}/man'
50e1e10f 966
50e1e10f 967ac_prev=
e1052144 968ac_dashdash=
50e1e10f
TT
969for ac_option
970do
50e1e10f
TT
971 # If the previous option needs an argument, assign it.
972 if test -n "$ac_prev"; then
e1052144 973 eval $ac_prev=\$ac_option
50e1e10f
TT
974 ac_prev=
975 continue
976 fi
977
e1052144 978 case $ac_option in
d6a4bcb5
TB
979 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 *=) ac_optarg= ;;
981 *) ac_optarg=yes ;;
e1052144 982 esac
50e1e10f
TT
983
984 # Accept the important Cygnus configure options, so we can diagnose typos.
985
e1052144
TT
986 case $ac_dashdash$ac_option in
987 --)
988 ac_dashdash=yes ;;
50e1e10f 989
21c84b71
TT
990 -bindir | --bindir | --bindi | --bind | --bin | --bi)
991 ac_prev=bindir ;;
992 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b0cacab0 993 bindir=$ac_optarg ;;
21c84b71
TT
994
995 -build | --build | --buil | --bui | --bu)
b0cacab0 996 ac_prev=build_alias ;;
21c84b71 997 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b0cacab0 998 build_alias=$ac_optarg ;;
50e1e10f
TT
999
1000 -cache-file | --cache-file | --cache-fil | --cache-fi \
1001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002 ac_prev=cache_file ;;
1003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b0cacab0
TT
1005 cache_file=$ac_optarg ;;
1006
1007 --config-cache | -C)
1008 cache_file=config.cache ;;
50e1e10f 1009
e1052144 1010 -datadir | --datadir | --datadi | --datad)
21c84b71 1011 ac_prev=datadir ;;
e1052144 1012 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b0cacab0 1013 datadir=$ac_optarg ;;
21c84b71 1014
e1052144
TT
1015 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016 | --dataroo | --dataro | --datar)
1017 ac_prev=datarootdir ;;
1018 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020 datarootdir=$ac_optarg ;;
1021
50e1e10f 1022 -disable-* | --disable-*)
39fd3d4f 1023 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
50e1e10f 1024 # Reject names that are not valid shell variable names.
39fd3d4f 1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1026 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1030 *"
1031"enable_$ac_useropt"
1032"*) ;;
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1035 esac
1036 eval enable_$ac_useropt=no ;;
e1052144
TT
1037
1038 -docdir | --docdir | --docdi | --doc | --do)
1039 ac_prev=docdir ;;
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1042
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044 ac_prev=dvidir ;;
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
50e1e10f
TT
1047
1048 -enable-* | --enable-*)
39fd3d4f 1049 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
50e1e10f 1050 # Reject names that are not valid shell variable names.
39fd3d4f 1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1052 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057"enable_$ac_useropt"
1058"*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval enable_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1063
1064 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066 | --exec | --exe | --ex)
1067 ac_prev=exec_prefix ;;
1068 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070 | --exec=* | --exe=* | --ex=*)
b0cacab0 1071 exec_prefix=$ac_optarg ;;
50e1e10f
TT
1072
1073 -gas | --gas | --ga | --g)
1074 # Obsolete; use --with-gas.
1075 with_gas=yes ;;
1076
b0cacab0
TT
1077 -help | --help | --hel | --he | -h)
1078 ac_init_help=long ;;
1079 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080 ac_init_help=recursive ;;
1081 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082 ac_init_help=short ;;
50e1e10f
TT
1083
1084 -host | --host | --hos | --ho)
b0cacab0 1085 ac_prev=host_alias ;;
50e1e10f 1086 -host=* | --host=* | --hos=* | --ho=*)
b0cacab0 1087 host_alias=$ac_optarg ;;
50e1e10f 1088
e1052144
TT
1089 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090 ac_prev=htmldir ;;
1091 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092 | --ht=*)
1093 htmldir=$ac_optarg ;;
1094
21c84b71
TT
1095 -includedir | --includedir | --includedi | --included | --include \
1096 | --includ | --inclu | --incl | --inc)
1097 ac_prev=includedir ;;
1098 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099 | --includ=* | --inclu=* | --incl=* | --inc=*)
b0cacab0 1100 includedir=$ac_optarg ;;
21c84b71
TT
1101
1102 -infodir | --infodir | --infodi | --infod | --info | --inf)
1103 ac_prev=infodir ;;
1104 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b0cacab0 1105 infodir=$ac_optarg ;;
21c84b71
TT
1106
1107 -libdir | --libdir | --libdi | --libd)
1108 ac_prev=libdir ;;
1109 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b0cacab0 1110 libdir=$ac_optarg ;;
21c84b71
TT
1111
1112 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113 | --libexe | --libex | --libe)
1114 ac_prev=libexecdir ;;
1115 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116 | --libexe=* | --libex=* | --libe=*)
b0cacab0 1117 libexecdir=$ac_optarg ;;
21c84b71 1118
e1052144
TT
1119 -localedir | --localedir | --localedi | --localed | --locale)
1120 ac_prev=localedir ;;
1121 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122 localedir=$ac_optarg ;;
1123
21c84b71 1124 -localstatedir | --localstatedir | --localstatedi | --localstated \
e1052144 1125 | --localstate | --localstat | --localsta | --localst | --locals)
21c84b71
TT
1126 ac_prev=localstatedir ;;
1127 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
e1052144 1128 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b0cacab0 1129 localstatedir=$ac_optarg ;;
21c84b71
TT
1130
1131 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132 ac_prev=mandir ;;
1133 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b0cacab0 1134 mandir=$ac_optarg ;;
21c84b71 1135
50e1e10f
TT
1136 -nfp | --nfp | --nf)
1137 # Obsolete; use --without-fp.
1138 with_fp=no ;;
1139
1140 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b0cacab0 1141 | --no-cr | --no-c | -n)
50e1e10f
TT
1142 no_create=yes ;;
1143
1144 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 no_recursion=yes ;;
1147
21c84b71
TT
1148 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150 | --oldin | --oldi | --old | --ol | --o)
1151 ac_prev=oldincludedir ;;
1152 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b0cacab0 1155 oldincludedir=$ac_optarg ;;
21c84b71 1156
50e1e10f
TT
1157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158 ac_prev=prefix ;;
1159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b0cacab0 1160 prefix=$ac_optarg ;;
50e1e10f
TT
1161
1162 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163 | --program-pre | --program-pr | --program-p)
1164 ac_prev=program_prefix ;;
1165 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b0cacab0 1167 program_prefix=$ac_optarg ;;
50e1e10f
TT
1168
1169 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170 | --program-suf | --program-su | --program-s)
1171 ac_prev=program_suffix ;;
1172 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b0cacab0 1174 program_suffix=$ac_optarg ;;
50e1e10f
TT
1175
1176 -program-transform-name | --program-transform-name \
1177 | --program-transform-nam | --program-transform-na \
1178 | --program-transform-n | --program-transform- \
1179 | --program-transform | --program-transfor \
1180 | --program-transfo | --program-transf \
1181 | --program-trans | --program-tran \
1182 | --progr-tra | --program-tr | --program-t)
1183 ac_prev=program_transform_name ;;
1184 -program-transform-name=* | --program-transform-name=* \
1185 | --program-transform-nam=* | --program-transform-na=* \
1186 | --program-transform-n=* | --program-transform-=* \
1187 | --program-transform=* | --program-transfor=* \
1188 | --program-transfo=* | --program-transf=* \
1189 | --program-trans=* | --program-tran=* \
1190 | --progr-tra=* | --program-tr=* | --program-t=*)
b0cacab0 1191 program_transform_name=$ac_optarg ;;
50e1e10f 1192
e1052144
TT
1193 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194 ac_prev=pdfdir ;;
1195 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196 pdfdir=$ac_optarg ;;
1197
1198 -psdir | --psdir | --psdi | --psd | --ps)
1199 ac_prev=psdir ;;
1200 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 psdir=$ac_optarg ;;
1202
50e1e10f
TT
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1205 silent=yes ;;
1206
2ab53829
TT
1207 -runstatedir | --runstatedir | --runstatedi | --runstated \
1208 | --runstate | --runstat | --runsta | --runst | --runs \
1209 | --run | --ru | --r)
1210 ac_prev=runstatedir ;;
1211 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1212 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1213 | --run=* | --ru=* | --r=*)
1214 runstatedir=$ac_optarg ;;
1215
21c84b71
TT
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 ac_prev=sbindir ;;
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 | --sbi=* | --sb=*)
b0cacab0 1220 sbindir=$ac_optarg ;;
21c84b71
TT
1221
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1225 | --sha | --sh)
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 | --sha=* | --sh=*)
b0cacab0 1231 sharedstatedir=$ac_optarg ;;
21c84b71 1232
50e1e10f
TT
1233 -site | --site | --sit)
1234 ac_prev=site ;;
1235 -site=* | --site=* | --sit=*)
b0cacab0 1236 site=$ac_optarg ;;
50e1e10f
TT
1237
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 ac_prev=srcdir ;;
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b0cacab0 1241 srcdir=$ac_optarg ;;
50e1e10f 1242
21c84b71
TT
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b0cacab0 1248 sysconfdir=$ac_optarg ;;
21c84b71 1249
50e1e10f 1250 -target | --target | --targe | --targ | --tar | --ta | --t)
b0cacab0 1251 ac_prev=target_alias ;;
50e1e10f 1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b0cacab0 1253 target_alias=$ac_optarg ;;
50e1e10f
TT
1254
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 verbose=yes ;;
1257
b0cacab0
TT
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
50e1e10f
TT
1260
1261 -with-* | --with-*)
39fd3d4f 1262 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
50e1e10f 1263 # Reject names that are not valid shell variable names.
39fd3d4f 1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1265 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270"with_$ac_useropt"
1271"*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1276
1277 -without-* | --without-*)
39fd3d4f 1278 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
50e1e10f 1279 # Reject names that are not valid shell variable names.
39fd3d4f 1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1281 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1285 *"
1286"with_$ac_useropt"
1287"*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=no ;;
50e1e10f
TT
1292
1293 --x)
1294 # Obsolete; use --with-x.
1295 with_x=yes ;;
1296
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b0cacab0 1302 x_includes=$ac_optarg ;;
50e1e10f
TT
1303
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b0cacab0 1309 x_libraries=$ac_optarg ;;
50e1e10f 1310
d6a4bcb5
TB
1311 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1312Try \`$0 --help' for more information"
50e1e10f
TT
1313 ;;
1314
b0cacab0
TT
1315 *=*)
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
57aa50d4
TT
1318 case $ac_envvar in #(
1319 '' | [0-9]* | *[!_$as_cr_alnum]* )
d6a4bcb5 1320 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
57aa50d4 1321 esac
e1052144 1322 eval $ac_envvar=\$ac_optarg
b0cacab0
TT
1323 export $ac_envvar ;;
1324
21c84b71 1325 *)
b0cacab0 1326 # FIXME: should be removed in autoconf 3.0.
39fd3d4f 1327 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b0cacab0 1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
39fd3d4f 1329 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6a4bcb5 1330 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
50e1e10f
TT
1331 ;;
1332
1333 esac
1334done
1335
1336if test -n "$ac_prev"; then
b0cacab0 1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d6a4bcb5 1338 as_fn_error $? "missing argument to $ac_option"
50e1e10f 1339fi
50e1e10f 1340
39fd3d4f
SJR
1341if test -n "$ac_unrecognized_opts"; then
1342 case $enable_option_checking in
1343 no) ;;
d6a4bcb5 1344 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
39fd3d4f
SJR
1345 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346 esac
1347fi
1348
1349# Check all directory arguments for consistency.
e1052144
TT
1350for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2ab53829 1353 libdir localedir mandir runstatedir
50e1e10f 1354do
e1052144 1355 eval ac_val=\$$ac_var
39fd3d4f
SJR
1356 # Remove trailing slashes.
1357 case $ac_val in
1358 */ )
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
1361 esac
1362 # Be sure to have absolute directory names.
b0cacab0 1363 case $ac_val in
e1052144
TT
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
50e1e10f 1366 esac
d6a4bcb5 1367 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
50e1e10f
TT
1368done
1369
b0cacab0
TT
1370# There might be people who depend on the old broken behavior: `$host'
1371# used to hold the argument of --host etc.
1372# FIXME: To remove some day.
1373build=$build_alias
1374host=$host_alias
1375target=$target_alias
1376
1377# FIXME: To remove some day.
1378if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
b0cacab0
TT
1381 elif test "x$build_alias" != "x$host_alias"; then
1382 cross_compiling=yes
1383 fi
1384fi
50e1e10f 1385
b0cacab0
TT
1386ac_tool_prefix=
1387test -n "$host_alias" && ac_tool_prefix=$host_alias-
1388
1389test "$silent" = yes && exec 6>/dev/null
50e1e10f 1390
50e1e10f 1391
e1052144
TT
1392ac_pwd=`pwd` && test -n "$ac_pwd" &&
1393ac_ls_di=`ls -di .` &&
1394ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d6a4bcb5 1395 as_fn_error $? "working directory cannot be determined"
e1052144 1396test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d6a4bcb5 1397 as_fn_error $? "pwd does not report name of working directory"
e1052144
TT
1398
1399
50e1e10f
TT
1400# Find the source files, if location was not specified.
1401if test -z "$srcdir"; then
1402 ac_srcdir_defaulted=yes
e1052144 1403 # Try the directory containing this script, then the parent directory.
39fd3d4f
SJR
1404 ac_confdir=`$as_dirname -- "$as_myself" ||
1405$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406 X"$as_myself" : 'X\(//\)[^/]' \| \
1407 X"$as_myself" : 'X\(//\)$' \| \
1408 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1409$as_echo X"$as_myself" |
e1052144
TT
1410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)[^/].*/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\).*/{
1423 s//\1/
1424 q
1425 }
1426 s/.*/./; q'`
50e1e10f 1427 srcdir=$ac_confdir
e1052144 1428 if test ! -r "$srcdir/$ac_unique_file"; then
50e1e10f
TT
1429 srcdir=..
1430 fi
1431else
1432 ac_srcdir_defaulted=no
1433fi
e1052144
TT
1434if test ! -r "$srcdir/$ac_unique_file"; then
1435 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d6a4bcb5 1436 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
50e1e10f 1437fi
e1052144
TT
1438ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439ac_abs_confdir=`(
d6a4bcb5 1440 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
e1052144
TT
1441 pwd)`
1442# When building in place, set srcdir=.
1443if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 srcdir=.
1445fi
1446# Remove unnecessary trailing slashes from srcdir.
1447# Double slashes in file names in object file debugging info
1448# mess up M-x gdb in Emacs.
1449case $srcdir in
1450*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451esac
1452for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457done
b0cacab0
TT
1458
1459#
1460# Report the --help message.
1461#
1462if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1465 cat <<_ACEOF
1466\`configure' configures this package to adapt to many kinds of systems.
1467
1468Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471VAR=VALUE. See below for descriptions of some of the useful variables.
1472
1473Defaults for the options are specified in brackets.
1474
1475Configuration:
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
d6a4bcb5 1480 -q, --quiet, --silent do not print \`checking ...' messages
b0cacab0
TT
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485
b0cacab0
TT
1486Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
39fd3d4f 1488 [$ac_default_prefix]
b0cacab0 1489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
39fd3d4f 1490 [PREFIX]
b0cacab0
TT
1491
1492By default, \`make install' will install all the files in
1493\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495for instance \`--prefix=\$HOME'.
1496
1497For better control, use the options below.
1498
1499Fine tuning of the installation directories:
39fd3d4f
SJR
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2ab53829 1506 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
39fd3d4f
SJR
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
b0cacab0
TT
1520_ACEOF
1521
1522 cat <<\_ACEOF
1523
1524System types:
1525 --build=BUILD configure for building on BUILD [guessed]
1526 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1527_ACEOF
1528fi
1529
1530if test -n "$ac_init_help"; then
1531
1532 cat <<\_ACEOF
1533
1534Optional Features:
39fd3d4f 1535 --disable-option-checking ignore unrecognized --enable/--with options
b0cacab0
TT
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
98919bdb 1538 --enable-maintainer-mode enable makefile rules useful for maintainers
5aa6c3f6 1539 --enable-symlink-install use symlinks when installing instead of hard links
183c73b0 1540 --enable-relative-symlinks use relative symlinks when installing
91d11da1 1541
5aa6c3f6
TT
1542 --enable-symlink-build use symlinks while building instead of hard links
1543 --enable-verbose-makecmds enable verbose make command output
b0cacab0
TT
1544 --enable-elf-shlibs select ELF shared libraries
1545 --enable-bsd-shlibs select BSD shared libraries
1546 --enable-profile build profiling libraries
fedfb27f 1547 --enable-gcov build for coverage testing using gcov
fd1677e8 1548 --enable-hardening build for coverage testing using gcov
b0cacab0
TT
1549 --enable-jbd-debug enable journal debugging
1550 --enable-blkid-debug enable blkid debugging
af773654 1551 --disable-testio-debug disable the use of the test I/O manager for debugging
b9e66a18 1552 --enable-developer-features enable features for use by ext4 developers
f5dffb81
TT
1553 --enable-libuuid build and use private uuid library
1554 --enable-libblkid build and use private blkid library
0afb9be6 1555 --enable-subset enable subset-only build
3df6014a 1556 --disable-backtrace disable use backtrace
b0cacab0
TT
1557 --disable-debugfs disable support of debugfs program
1558 --disable-imager disable support of e2image program
1559 --disable-resizer disable support of e2resize program
8d9c50c5 1560 --disable-defrag disable support of e4defrag program
b0cacab0
TT
1561 --enable-fsck build fsck wrapper program
1562 --enable-e2initrd-helper build e2initrd-helper program
3249394d 1563 --disable-tls disable use of thread local support
5610f992 1564 --disable-uuidd disable building the uuid daemon
d6a4bcb5 1565 --disable-mmp disable support mmp, Multi Mount Protection
749f0712 1566 --disable-tdb disable tdb support
1625bf42
TB
1567 --disable-bmap-stats disable collection of bitmap stats.
1568 --enable-bmap-stats-ops enable collection of additional bitmap stats
b0cacab0
TT
1569 --disable-nls do not use Native Language Support
1570 --disable-rpath do not hardcode runtime library paths
f5dffb81 1571 --disable-fuse2fs do not build fuse2fs
4aece328 1572 --enable-lto enable link time optimization
1c2a76ae 1573 --enable-ubsan enable undefined behavior sanitizer
5e666e3d 1574 --enable-addrsan enable address sanitizer
bcca786b 1575 --enable-threadsan enable thread sanitizer
b0cacab0
TT
1576
1577Optional Packages:
1578 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1579 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3249394d 1580 --with-diet-libc use diet libc
0b5b9f90
TT
1581 --with-cc no longer supported, use CC= instead
1582 --with-ccopts no longer supported, use CFLAGS= instead
1583 --with-ldopts no longer supported, use LDFLAGS= instead
b0cacab0 1584 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
bdcd5f22 1585 --without-pthread disable use of pthread support
93613951 1586 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b0cacab0
TT
1587 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1588 --without-libiconv-prefix don't search for libiconv in includedir and libdir
b0cacab0
TT
1589 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1590 --without-libintl-prefix don't search for libintl in includedir and libdir
55e00a25 1591 --with-multiarch=ARCH specify the multiarch triplet
5ce368f0
DW
1592 --with-udev-rules-dir[=DIR]
1593 Install udev rules into DIR.
a2df5894
DW
1594 --with-crond-dir[=DIR] Install system crontabs into DIR.
1595 --with-systemd-unit-dir[=DIR]
1596 Install systemd system units into DIR.
b0cacab0
TT
1597
1598Some influential environment variables:
1599 CC C compiler command
1600 CFLAGS C compiler flags
1601 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1602 nonstandard directory <lib dir>
29a5deed 1603 LIBS libraries to pass to the linker, e.g. -l<library>
61ef2474 1604 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
e1052144 1605 you have headers in a nonstandard directory <include dir>
b0cacab0 1606 CPP C preprocessor
14b596d4 1607 PKG_CONFIG path to pkg-config utility
93613951
TT
1608 PKG_CONFIG_PATH
1609 directories to add to pkg-config's search path
1610 PKG_CONFIG_LIBDIR
1611 path overriding pkg-config's built-in search path
5ce368f0
DW
1612 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1613 udev_LIBS linker flags for udev, overriding pkg-config
a2df5894
DW
1614 systemd_CFLAGS
1615 C compiler flags for systemd, overriding pkg-config
1616 systemd_LIBS
1617 linker flags for systemd, overriding pkg-config
b0cacab0
TT
1618
1619Use these variables to override the choices made by `configure' or to help
1620it to find libraries and programs with nonstandard names/locations.
1621
57aa50d4 1622Report bugs to the package provider.
b0cacab0 1623_ACEOF
e1052144 1624ac_status=$?
b0cacab0
TT
1625fi
1626
1627if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
b0cacab0 1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
39fd3d4f
SJR
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632 continue
b0cacab0
TT
1633 ac_builddir=.
1634
e1052144
TT
1635case "$ac_dir" in
1636.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637*)
39fd3d4f 1638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 1639 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 1640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 esac ;;
1645esac
1646ac_abs_top_builddir=$ac_pwd
1647ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648# for backward compatibility:
1649ac_top_builddir=$ac_top_build_prefix
b0cacab0
TT
1650
1651case $srcdir in
e1052144 1652 .) # We are building in place.
b0cacab0 1653 ac_srcdir=.
e1052144
TT
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 1657 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1660 *) # Relative name.
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 1664esac
e1052144
TT
1665ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure" --help=recursive
b0cacab0 1675 else
39fd3d4f 1676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
e1052144
TT
1677 fi || ac_status=$?
1678 cd "$ac_pwd" || { ac_status=$?; break; }
b0cacab0
TT
1679 done
1680fi
1681
e1052144 1682test -n "$ac_init_help" && exit $ac_status
b0cacab0
TT
1683if $ac_init_version; then
1684 cat <<\_ACEOF
e1052144 1685configure
d6a4bcb5 1686generated by GNU Autoconf 2.69
b0cacab0 1687
d6a4bcb5 1688Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
1689This configure script is free software; the Free Software Foundation
1690gives unlimited permission to copy, distribute and modify it.
1691_ACEOF
e1052144 1692 exit
b0cacab0 1693fi
b0cacab0 1694
57aa50d4
TT
1695## ------------------------ ##
1696## Autoconf initialization. ##
1697## ------------------------ ##
b0cacab0 1698
57aa50d4
TT
1699# ac_fn_c_try_compile LINENO
1700# --------------------------
1701# Try to compile conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_compile ()
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1725 ac_retval=0
1726else
1727 $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1729
57aa50d4
TT
1730 ac_retval=1
1731fi
d6a4bcb5 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1733 as_fn_set_status $ac_retval
57aa50d4
TT
1734
1735} # ac_fn_c_try_compile
1736
1737# ac_fn_c_try_link LINENO
1738# -----------------------
1739# Try to link conftest.$ac_ext, and return whether this succeeded.
1740ac_fn_c_try_link ()
b0cacab0 1741{
57aa50d4
TT
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext conftest$ac_exeext
1744 if { { ac_try="$ac_link"
1745case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest$ac_exeext && {
1763 test "$cross_compiling" = yes ||
d6a4bcb5 1764 test -x conftest$ac_exeext
57aa50d4
TT
1765 }; then :
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1770
57aa50d4
TT
1771 ac_retval=1
1772fi
1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775 # interfere with the next link command; also delete a directory that is
1776 # left behind by Apple's compiler. We do this before executing the actions.
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1779 as_fn_set_status $ac_retval
b0cacab0 1780
57aa50d4 1781} # ac_fn_c_try_link
b0cacab0 1782
57aa50d4
TT
1783# ac_fn_c_try_cpp LINENO
1784# ----------------------
1785# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1786ac_fn_c_try_cpp ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_cpp conftest.$ac_ext"
1790case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6a4bcb5 1804 test $ac_status = 0; } > conftest.i && {
57aa50d4
TT
1805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 }; then :
1808 ac_retval=0
1809else
1810 $as_echo "$as_me: failed program was:" >&5
1811sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1812
57aa50d4
TT
1813 ac_retval=1
1814fi
d6a4bcb5 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1816 as_fn_set_status $ac_retval
b0cacab0 1817
57aa50d4 1818} # ac_fn_c_try_cpp
b0cacab0 1819
93613951
TT
1820# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1821# -------------------------------------------------------
1822# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1823# the include files in INCLUDES and setting the cache variable VAR
1824# accordingly.
1825ac_fn_c_check_header_mongrel ()
1826{
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if eval \${$3+:} false; then :
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830$as_echo_n "checking for $2... " >&6; }
1831if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833fi
1834eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836$as_echo "$ac_res" >&6; }
1837else
1838 # Is the header compilable?
1839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1840$as_echo_n "checking $2 usability... " >&6; }
1841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h. */
1843$4
1844#include <$2>
1845_ACEOF
1846if ac_fn_c_try_compile "$LINENO"; then :
1847 ac_header_compiler=yes
1848else
1849 ac_header_compiler=no
1850fi
1851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1853$as_echo "$ac_header_compiler" >&6; }
1854
1855# Is the header present?
1856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1857$as_echo_n "checking $2 presence... " >&6; }
1858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859/* end confdefs.h. */
1860#include <$2>
1861_ACEOF
1862if ac_fn_c_try_cpp "$LINENO"; then :
1863 ac_header_preproc=yes
1864else
1865 ac_header_preproc=no
1866fi
1867rm -f conftest.err conftest.i conftest.$ac_ext
1868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1869$as_echo "$ac_header_preproc" >&6; }
1870
1871# So? What about this header?
1872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1873 yes:no: )
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1875$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1877$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1878 ;;
1879 no:yes:* )
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1881$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1883$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1885$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1887$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890 ;;
1891esac
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893$as_echo_n "checking for $2... " >&6; }
1894if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1896else
1897 eval "$3=\$ac_header_compiler"
1898fi
1899eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901$as_echo "$ac_res" >&6; }
1902fi
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905} # ac_fn_c_check_header_mongrel
1906
57aa50d4
TT
1907# ac_fn_c_try_run LINENO
1908# ----------------------
1909# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1910# that executables *can* be run.
1911ac_fn_c_try_run ()
1912{
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { { ac_try="$ac_link"
1915case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918esac
1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920$as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_link") 2>&5
1922 ac_status=$?
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1925 { { case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928esac
1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930$as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_try") 2>&5
1932 ac_status=$?
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; }; }; then :
1935 ac_retval=0
1936else
1937 $as_echo "$as_me: program exited with status $ac_status" >&5
1938 $as_echo "$as_me: failed program was:" >&5
1939sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1940
57aa50d4
TT
1941 ac_retval=$ac_status
1942fi
1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1945 as_fn_set_status $ac_retval
b0cacab0 1946
57aa50d4 1947} # ac_fn_c_try_run
b0cacab0 1948
93613951
TT
1949# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1950# -------------------------------------------------------
1951# Tests whether HEADER exists and can be compiled using the include files in
1952# INCLUDES, setting the cache variable VAR accordingly.
1953ac_fn_c_check_header_compile ()
1954{
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957$as_echo_n "checking for $2... " >&6; }
1958if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1960else
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963$4
1964#include <$2>
1965_ACEOF
1966if ac_fn_c_try_compile "$LINENO"; then :
1967 eval "$3=yes"
1968else
1969 eval "$3=no"
1970fi
1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972fi
1973eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975$as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977
1978} # ac_fn_c_check_header_compile
1979
57aa50d4
TT
1980# ac_fn_c_check_func LINENO FUNC VAR
1981# ----------------------------------
1982# Tests whether FUNC exists, setting the cache variable VAR accordingly
1983ac_fn_c_check_func ()
1984{
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987$as_echo_n "checking for $2... " >&6; }
d6a4bcb5 1988if eval \${$3+:} false; then :
57aa50d4
TT
1989 $as_echo_n "(cached) " >&6
1990else
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h. */
1993/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1995#define $2 innocuous_$2
b0cacab0 1996
57aa50d4
TT
1997/* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $2 (); below.
1999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2000 <limits.h> exists even on freestanding compilers. */
b0cacab0 2001
57aa50d4
TT
2002#ifdef __STDC__
2003# include <limits.h>
2004#else
2005# include <assert.h>
2006#endif
a04eba3f 2007
57aa50d4 2008#undef $2
07a0db15 2009
57aa50d4
TT
2010/* Override any GCC internal prototype to avoid an error.
2011 Use char because int might match the return type of a GCC
2012 builtin and then its argument prototype would still apply. */
2013#ifdef __cplusplus
2014extern "C"
2015#endif
2016char $2 ();
2017/* The GNU C library defines this for functions which it implements
2018 to always fail with ENOSYS. Some functions are actually named
2019 something starting with __ and the normal name is an alias. */
2020#if defined __stub_$2 || defined __stub___$2
2021choke me
2022#endif
74becf3c 2023
57aa50d4
TT
2024int
2025main ()
2026{
2027return $2 ();
2028 ;
2029 return 0;
2030}
2031_ACEOF
2032if ac_fn_c_try_link "$LINENO"; then :
2033 eval "$3=yes"
2034else
2035 eval "$3=no"
2036fi
2037rm -f core conftest.err conftest.$ac_objext \
2038 conftest$ac_exeext conftest.$ac_ext
2039fi
2040eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042$as_echo "$ac_res" >&6; }
d6a4bcb5 2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
93636bde 2044
57aa50d4 2045} # ac_fn_c_check_func
93636bde 2046
e598c29b
TT
2047# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2048# ----------------------------------------------------
2049# Tries to find if the field MEMBER exists in type AGGR, after including
2050# INCLUDES, setting cache variable VAR accordingly.
2051ac_fn_c_check_member ()
2052{
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2055$as_echo_n "checking for $2.$3... " >&6; }
2056if eval \${$4+:} false; then :
2057 $as_echo_n "(cached) " >&6
2058else
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h. */
2061$5
2062int
2063main ()
2064{
2065static $2 ac_aggr;
2066if (ac_aggr.$3)
2067return 0;
2068 ;
2069 return 0;
2070}
2071_ACEOF
2072if ac_fn_c_try_compile "$LINENO"; then :
2073 eval "$4=yes"
2074else
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h. */
2077$5
2078int
2079main ()
2080{
2081static $2 ac_aggr;
2082if (sizeof ac_aggr.$3)
2083return 0;
2084 ;
2085 return 0;
2086}
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089 eval "$4=yes"
2090else
2091 eval "$4=no"
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096fi
2097eval ac_res=\$$4
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099$as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101
2102} # ac_fn_c_check_member
2103
2104# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2105# -------------------------------------------
2106# Tests whether TYPE exists after having included INCLUDES, setting cache
2107# variable VAR accordingly.
2108ac_fn_c_check_type ()
2109{
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112$as_echo_n "checking for $2... " >&6; }
2113if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2115else
2116 eval "$3=no"
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118/* end confdefs.h. */
2119$4
2120int
2121main ()
2122{
2123if (sizeof ($2))
2124 return 0;
2125 ;
2126 return 0;
2127}
2128_ACEOF
2129if ac_fn_c_try_compile "$LINENO"; then :
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h. */
2132$4
2133int
2134main ()
2135{
2136if (sizeof (($2)))
2137 return 0;
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_compile "$LINENO"; then :
2143
2144else
2145 eval "$3=yes"
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148fi
2149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150fi
2151eval ac_res=\$$3
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153$as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155
2156} # ac_fn_c_check_type
2157
93613951
TT
2158# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2159# ---------------------------------------------
2160# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
d1154eb4 2161# accordingly.
93613951 2162ac_fn_c_check_decl ()
d1154eb4
TT
2163{
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
93613951
TT
2165 as_decl_name=`echo $2|sed 's/ *(.*//'`
2166 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2168$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6a4bcb5 2169if eval \${$3+:} false; then :
d1154eb4 2170 $as_echo_n "(cached) " >&6
d1154eb4 2171else
93613951 2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
2173/* end confdefs.h. */
2174$4
93613951
TT
2175int
2176main ()
2177{
2178#ifndef $as_decl_name
2179#ifdef __cplusplus
2180 (void) $as_decl_use;
2181#else
2182 (void) $as_decl_name;
2183#endif
2184#endif
2185
2186 ;
2187 return 0;
2188}
d1154eb4
TT
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
93613951 2191 eval "$3=yes"
d1154eb4 2192else
93613951 2193 eval "$3=no"
d1154eb4
TT
2194fi
2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4
TT
2196fi
2197eval ac_res=\$$3
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199$as_echo "$ac_res" >&6; }
d6a4bcb5 2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1154eb4 2201
93613951 2202} # ac_fn_c_check_decl
d1154eb4 2203
57aa50d4
TT
2204# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2205# --------------------------------------------
2206# Tries to find the compile-time value of EXPR in a program that includes
2207# INCLUDES, setting VAR accordingly. Returns whether the value could be
2208# computed
2209ac_fn_c_compute_int ()
2210{
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 if test "$cross_compiling" = yes; then
2213 # Depending upon the size, compute the lo and hi bounds.
2214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h. */
2216$4
2217int
2218main ()
2219{
2220static int test_array [1 - 2 * !(($2) >= 0)];
d6a4bcb5
TB
2221test_array [0] = 0;
2222return test_array [0];
93636bde 2223
57aa50d4
TT
2224 ;
2225 return 0;
2226}
2227_ACEOF
2228if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_lo=0 ac_mid=0
2230 while :; do
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232/* end confdefs.h. */
2233$4
2234int
2235main ()
2236{
2237static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2238test_array [0] = 0;
2239return test_array [0];
93636bde 2240
57aa50d4
TT
2241 ;
2242 return 0;
2243}
2244_ACEOF
2245if ac_fn_c_try_compile "$LINENO"; then :
2246 ac_hi=$ac_mid; break
2247else
2248 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2249 if test $ac_lo -le $ac_mid; then
2250 ac_lo= ac_hi=
2251 break
2252 fi
2253 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
b0cacab0 2254fi
57aa50d4
TT
2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 done
2257else
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259/* end confdefs.h. */
2260$4
2261int
2262main ()
2263{
2264static int test_array [1 - 2 * !(($2) < 0)];
d6a4bcb5
TB
2265test_array [0] = 0;
2266return test_array [0];
e1052144 2267
57aa50d4
TT
2268 ;
2269 return 0;
2270}
2271_ACEOF
2272if ac_fn_c_try_compile "$LINENO"; then :
2273 ac_hi=-1 ac_mid=-1
2274 while :; do
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h. */
2277$4
2278int
2279main ()
2280{
2281static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d6a4bcb5
TB
2282test_array [0] = 0;
2283return test_array [0];
93636bde 2284
57aa50d4
TT
2285 ;
2286 return 0;
2287}
2288_ACEOF
2289if ac_fn_c_try_compile "$LINENO"; then :
2290 ac_lo=$ac_mid; break
93636bde 2291else
57aa50d4
TT
2292 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2293 if test $ac_mid -le $ac_hi; then
2294 ac_lo= ac_hi=
2295 break
2296 fi
2297 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
93636bde 2298fi
57aa50d4
TT
2299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 done
2301else
2302 ac_lo= ac_hi=
2303fi
2304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305fi
2306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307# Binary search between lo and hi bounds.
2308while test "x$ac_lo" != "x$ac_hi"; do
2309 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h. */
2312$4
2313int
2314main ()
2315{
2316static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2317test_array [0] = 0;
2318return test_array [0];
93636bde 2319
57aa50d4
TT
2320 ;
2321 return 0;
2322}
2323_ACEOF
2324if ac_fn_c_try_compile "$LINENO"; then :
2325 ac_hi=$ac_mid
2326else
2327 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2328fi
2329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330done
2331case $ac_lo in #((
2332?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2333'') ac_retval=1 ;;
927566a3 2334esac
57aa50d4
TT
2335 else
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337/* end confdefs.h. */
2338$4
2339static long int longval () { return $2; }
2340static unsigned long int ulongval () { return $2; }
2341#include <stdio.h>
2342#include <stdlib.h>
2343int
2344main ()
2345{
927566a3 2346
57aa50d4
TT
2347 FILE *f = fopen ("conftest.val", "w");
2348 if (! f)
2349 return 1;
2350 if (($2) < 0)
2351 {
2352 long int i = longval ();
2353 if (i != ($2))
2354 return 1;
2355 fprintf (f, "%ld", i);
2356 }
2357 else
2358 {
2359 unsigned long int i = ulongval ();
2360 if (i != ($2))
2361 return 1;
2362 fprintf (f, "%lu", i);
2363 }
2364 /* Do not output a trailing newline, as this causes \r\n confusion
2365 on some platforms. */
2366 return ferror (f) || fclose (f) != 0;
93636bde 2367
57aa50d4
TT
2368 ;
2369 return 0;
2370}
2371_ACEOF
2372if ac_fn_c_try_run "$LINENO"; then :
2373 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2374else
2375 ac_retval=1
2376fi
2377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2378 conftest.$ac_objext conftest.beam conftest.$ac_ext
2379rm -f conftest.val
93636bde 2380
57aa50d4 2381 fi
d6a4bcb5 2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 2383 as_fn_set_status $ac_retval
927566a3 2384
57aa50d4 2385} # ac_fn_c_compute_int
57aa50d4
TT
2386cat >config.log <<_ACEOF
2387This file contains any messages produced by compilers while
2388running configure, to aid debugging if configure makes a mistake.
93636bde 2389
57aa50d4 2390It was created by $as_me, which was
d6a4bcb5 2391generated by GNU Autoconf 2.69. Invocation command line was
07a0db15 2392
57aa50d4 2393 $ $0 $@
e1052144 2394
57aa50d4
TT
2395_ACEOF
2396exec 5>>config.log
2397{
2398cat <<_ASUNAME
2399## --------- ##
2400## Platform. ##
2401## --------- ##
0b5b9f90 2402
57aa50d4
TT
2403hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2404uname -m = `(uname -m) 2>/dev/null || echo unknown`
2405uname -r = `(uname -r) 2>/dev/null || echo unknown`
2406uname -s = `(uname -s) 2>/dev/null || echo unknown`
2407uname -v = `(uname -v) 2>/dev/null || echo unknown`
0b5b9f90 2408
57aa50d4
TT
2409/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2410/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
0b5b9f90 2411
57aa50d4
TT
2412/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2413/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2414/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2415/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2416/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2417/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2418/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
0b5b9f90 2419
57aa50d4 2420_ASUNAME
b0cacab0 2421
b0cacab0
TT
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
57aa50d4
TT
2427 $as_echo "PATH: $as_dir"
2428 done
e1052144 2429IFS=$as_save_IFS
b0cacab0 2430
57aa50d4 2431} >&5
74becf3c 2432
57aa50d4 2433cat >&5 <<_ACEOF
e1052144 2434
b0cacab0 2435
57aa50d4
TT
2436## ----------- ##
2437## Core tests. ##
2438## ----------- ##
b0cacab0 2439
57aa50d4 2440_ACEOF
b0cacab0 2441
57aa50d4
TT
2442
2443# Keep a trace of the command line.
2444# Strip out --no-create and --no-recursion so they do not pile up.
2445# Strip out --silent because we don't want to record it for future runs.
2446# Also quote any args containing shell meta-characters.
2447# Make two passes to allow for proper duplicate-argument suppression.
2448ac_configure_args=
2449ac_configure_args0=
2450ac_configure_args1=
2451ac_must_keep_next=false
2452for ac_pass in 1 2
b0cacab0 2453do
57aa50d4
TT
2454 for ac_arg
2455 do
2456 case $ac_arg in
2457 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2459 | -silent | --silent | --silen | --sile | --sil)
2460 continue ;;
2461 *\'*)
2462 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2463 esac
2464 case $ac_pass in
2465 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2466 2)
2467 as_fn_append ac_configure_args1 " '$ac_arg'"
2468 if test $ac_must_keep_next = true; then
2469 ac_must_keep_next=false # Got value, back to normal.
2470 else
2471 case $ac_arg in
2472 *=* | --config-cache | -C | -disable-* | --disable-* \
2473 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2474 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2475 | -with-* | --with-* | -without-* | --without-* | --x)
2476 case "$ac_configure_args0 " in
2477 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2478 esac
2479 ;;
2480 -* ) ac_must_keep_next=true ;;
2481 esac
2482 fi
2483 as_fn_append ac_configure_args " '$ac_arg'"
2484 ;;
2485 esac
2486 done
b0cacab0 2487done
57aa50d4
TT
2488{ ac_configure_args0=; unset ac_configure_args0;}
2489{ ac_configure_args1=; unset ac_configure_args1;}
2490
2491# When interrupted or exit'd, cleanup temporary files, and complete
2492# config.log. We remove comments because anyway the quotes in there
2493# would cause problems or look ugly.
2494# WARNING: Use '\'' to represent an apostrophe within the trap.
2495# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2496trap 'exit_status=$?
2497 # Save into config.log some information that might help in debugging.
2498 {
2499 echo
2500
d6a4bcb5 2501 $as_echo "## ---------------- ##
57aa50d4 2502## Cache variables. ##
d6a4bcb5 2503## ---------------- ##"
57aa50d4
TT
2504 echo
2505 # The following way of writing the cache mishandles newlines in values,
2506(
2507 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2508 eval ac_val=\$$ac_var
2509 case $ac_val in #(
2510 *${as_nl}*)
2511 case $ac_var in #(
2512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2513$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2514 esac
2515 case $ac_var in #(
2516 _ | IFS | as_nl) ;; #(
2517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2518 *) { eval $ac_var=; unset $ac_var;} ;;
2519 esac ;;
2520 esac
2521 done
2522 (set) 2>&1 |
2523 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2524 *${as_nl}ac_space=\ *)
2525 sed -n \
2526 "s/'\''/'\''\\\\'\'''\''/g;
2527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2528 ;; #(
2529 *)
2530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2531 ;;
2532 esac |
2533 sort
2534)
2535 echo
2536
d6a4bcb5 2537 $as_echo "## ----------------- ##
57aa50d4 2538## Output variables. ##
d6a4bcb5 2539## ----------------- ##"
57aa50d4
TT
2540 echo
2541 for ac_var in $ac_subst_vars
2542 do
2543 eval ac_val=\$$ac_var
2544 case $ac_val in
2545 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2546 esac
2547 $as_echo "$ac_var='\''$ac_val'\''"
2548 done | sort
2549 echo
2550
2551 if test -n "$ac_subst_files"; then
d6a4bcb5 2552 $as_echo "## ------------------- ##
57aa50d4 2553## File substitutions. ##
d6a4bcb5 2554## ------------------- ##"
57aa50d4
TT
2555 echo
2556 for ac_var in $ac_subst_files
2557 do
2558 eval ac_val=\$$ac_var
2559 case $ac_val in
2560 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2561 esac
2562 $as_echo "$ac_var='\''$ac_val'\''"
2563 done | sort
2564 echo
2565 fi
2566
2567 if test -s confdefs.h; then
d6a4bcb5 2568 $as_echo "## ----------- ##
57aa50d4 2569## confdefs.h. ##
d6a4bcb5 2570## ----------- ##"
57aa50d4
TT
2571 echo
2572 cat confdefs.h
2573 echo
2574 fi
2575 test "$ac_signal" != 0 &&
2576 $as_echo "$as_me: caught signal $ac_signal"
2577 $as_echo "$as_me: exit $exit_status"
2578 } >&5
2579 rm -f core *.core core.conftest.* &&
2580 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2581 exit $exit_status
2582' 0
2583for ac_signal in 1 2 13 15; do
2584 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b0cacab0 2585done
57aa50d4 2586ac_signal=0
b0cacab0 2587
57aa50d4
TT
2588# confdefs.h avoids OS command line length limits that DEFS can exceed.
2589rm -f -r conftest* confdefs.h
b0cacab0 2590
57aa50d4 2591$as_echo "/* confdefs.h */" > confdefs.h
73ae2d4a 2592
57aa50d4
TT
2593# Predefined preprocessor variables.
2594
2595cat >>confdefs.h <<_ACEOF
2596#define PACKAGE_NAME "$PACKAGE_NAME"
2597_ACEOF
2598
2599cat >>confdefs.h <<_ACEOF
2600#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2601_ACEOF
2602
2603cat >>confdefs.h <<_ACEOF
2604#define PACKAGE_VERSION "$PACKAGE_VERSION"
2605_ACEOF
2606
2607cat >>confdefs.h <<_ACEOF
2608#define PACKAGE_STRING "$PACKAGE_STRING"
2609_ACEOF
2610
2611cat >>confdefs.h <<_ACEOF
2612#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2613_ACEOF
2614
2615cat >>confdefs.h <<_ACEOF
2616#define PACKAGE_URL "$PACKAGE_URL"
2617_ACEOF
2618
2619
2620# Let the site file select an alternate cache file if it wants to.
2621# Prefer an explicitly selected file to automatically selected ones.
2622ac_site_file1=NONE
2623ac_site_file2=NONE
2624if test -n "$CONFIG_SITE"; then
d6a4bcb5
TB
2625 # We do not want a PATH search for config.site.
2626 case $CONFIG_SITE in #((
2627 -*) ac_site_file1=./$CONFIG_SITE;;
2628 */*) ac_site_file1=$CONFIG_SITE;;
2629 *) ac_site_file1=./$CONFIG_SITE;;
2630 esac
57aa50d4
TT
2631elif test "x$prefix" != xNONE; then
2632 ac_site_file1=$prefix/share/config.site
2633 ac_site_file2=$prefix/etc/config.site
73ae2d4a 2634else
57aa50d4
TT
2635 ac_site_file1=$ac_default_prefix/share/config.site
2636 ac_site_file2=$ac_default_prefix/etc/config.site
2637fi
2638for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b0cacab0 2639do
57aa50d4 2640 test "x$ac_site_file" = xNONE && continue
61ef2474 2641 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
57aa50d4
TT
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2643$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2644 sed 's/^/| /' "$ac_site_file" >&5
d6a4bcb5
TB
2645 . "$ac_site_file" \
2646 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648as_fn_error $? "failed to load site script $ac_site_file
2649See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
2650 fi
2651done
b0cacab0 2652
57aa50d4 2653if test -r "$cache_file"; then
61ef2474
TT
2654 # Some versions of bash will fail to source /dev/null (special files
2655 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2656 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
57aa50d4
TT
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2658$as_echo "$as_me: loading cache $cache_file" >&6;}
2659 case $cache_file in
2660 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2661 *) . "./$cache_file";;
2662 esac
73ae2d4a 2663 fi
57aa50d4
TT
2664else
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2666$as_echo "$as_me: creating cache $cache_file" >&6;}
2667 >$cache_file
73ae2d4a 2668fi
57aa50d4 2669
93613951 2670gt_needs="$gt_needs "
57aa50d4
TT
2671# Check that the precious variables saved in the cache have kept the same
2672# value.
2673ac_cache_corrupted=false
2674for ac_var in $ac_precious_vars; do
2675 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2676 eval ac_new_set=\$ac_env_${ac_var}_set
2677 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2678 eval ac_new_val=\$ac_env_${ac_var}_value
2679 case $ac_old_set,$ac_new_set in
2680 set,)
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2682$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2683 ac_cache_corrupted=: ;;
2684 ,set)
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2686$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2687 ac_cache_corrupted=: ;;
2688 ,);;
2689 *)
2690 if test "x$ac_old_val" != "x$ac_new_val"; then
2691 # differences in whitespace do not lead to failure.
2692 ac_old_val_w=`echo x $ac_old_val`
2693 ac_new_val_w=`echo x $ac_new_val`
2694 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2696$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2697 ac_cache_corrupted=:
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2700$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2701 eval $ac_var=\$ac_old_val
2702 fi
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2704$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2706$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2707 fi;;
2708 esac
2709 # Pass precious variables to config.status.
2710 if test "$ac_new_set" = set; then
2711 case $ac_new_val in
2712 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2713 *) ac_arg=$ac_var=$ac_new_val ;;
2714 esac
2715 case " $ac_configure_args " in
2716 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2717 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2718 esac
2719 fi
2720done
2721if $ac_cache_corrupted; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2725$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d6a4bcb5 2726 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
73ae2d4a 2727fi
57aa50d4
TT
2728## -------------------- ##
2729## Main body of script. ##
2730## -------------------- ##
2731
2732ac_ext=c
2733ac_cpp='$CPP $CPPFLAGS'
2734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739
2740ac_aux_dir=
2741for ac_dir in config "$srcdir"/config; do
d6a4bcb5
TB
2742 if test -f "$ac_dir/install-sh"; then
2743 ac_aux_dir=$ac_dir
2744 ac_install_sh="$ac_aux_dir/install-sh -c"
2745 break
2746 elif test -f "$ac_dir/install.sh"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/install.sh -c"
2749 break
2750 elif test -f "$ac_dir/shtool"; then
2751 ac_aux_dir=$ac_dir
2752 ac_install_sh="$ac_aux_dir/shtool install -c"
2753 break
2754 fi
57aa50d4
TT
2755done
2756if test -z "$ac_aux_dir"; then
d6a4bcb5 2757 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
73ae2d4a 2758fi
57aa50d4
TT
2759
2760# These three variables are undocumented and unsupported,
2761# and are intended to be withdrawn in a future Autoconf release.
2762# They can cause serious problems if a builder's source tree is in a directory
2763# whose full name contains unusual characters.
2764ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2765ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2766ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2767
2768
d1154eb4
TT
2769ac_config_headers="$ac_config_headers lib/config.h"
2770
2771
57aa50d4
TT
2772MCONFIG=./MCONFIG
2773
2774BINARY_TYPE=bin
2775E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2776 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
5ce368f0
DW
2777E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2778 | tr \" " " | awk '{print $1}'`
2779E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2780MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2781YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
57aa50d4
TT
2782
2783if expr $YEAR ">" 1900 > /dev/null ; then
2784 E2FSPROGS_YEAR=$YEAR
2785elif expr $YEAR ">" 90 >/dev/null ; then
2786 E2FSPROGS_YEAR=19$YEAR
73ae2d4a 2787else
57aa50d4
TT
2788 E2FSPROGS_YEAR=20$YEAR
2789fi
2790
2791case $MONTH in
2792Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2793Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2794Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2795Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2796May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2797Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2798Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2799Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2800Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2801Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2802Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2803Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2804*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2805$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2806esac
2807
2808base_ver=`echo $E2FSPROGS_VERSION | \
2809 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2810
2811date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2812
2813case $E2FSPROGS_VERSION in
2814*-WIP|pre-*)
2ab53829 2815 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
57aa50d4
TT
2816 ;;
2817*)
2818 E2FSPROGS_PKGVER="$base_ver"
2819 ;;
2820esac
2821
2822unset DATE MONTH YEAR base_ver pre_vers date_spec
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2824$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2826$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2827
2828
2829
2830
2831
5ce368f0 2832
6c59a665
TT
2833WITH_DIET_LIBC=
2834
2835# Check whether --with-diet-libc was given.
2836if test "${with_diet_libc+set}" = set; then :
2837 withval=$with_diet_libc; CC="diet cc -nostdinc"
2838WITH_DIET_LIBC=yes
2839if test -z "$LIBS"
2840then
2841 LIBS="-lcompat"
2842else
2843 LIBS="$LIBS -lcompat"
2844fi
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2846$as_echo "CC=$CC" >&6; }
2847fi
57aa50d4
TT
2848# Make sure we can run config.sub.
2849$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d6a4bcb5 2850 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
57aa50d4
TT
2851
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2853$as_echo_n "checking build system type... " >&6; }
d6a4bcb5 2854if ${ac_cv_build+:} false; then :
57aa50d4
TT
2855 $as_echo_n "(cached) " >&6
2856else
2857 ac_build_alias=$build_alias
2858test "x$ac_build_alias" = x &&
2859 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2860test "x$ac_build_alias" = x &&
d6a4bcb5 2861 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
57aa50d4 2862ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d6a4bcb5 2863 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
57aa50d4 2864
73ae2d4a 2865fi
57aa50d4
TT
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2867$as_echo "$ac_cv_build" >&6; }
2868case $ac_cv_build in
2869*-*-*) ;;
d6a4bcb5 2870*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
57aa50d4
TT
2871esac
2872build=$ac_cv_build
2873ac_save_IFS=$IFS; IFS='-'
2874set x $ac_cv_build
2875shift
2876build_cpu=$1
2877build_vendor=$2
2878shift; shift
2879# Remember, the first character of IFS is used to create $*,
2880# except with old shells:
2881build_os=$*
2882IFS=$ac_save_IFS
2883case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
73ae2d4a 2884
e1052144 2885
57aa50d4
TT
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2887$as_echo_n "checking host system type... " >&6; }
d6a4bcb5 2888if ${ac_cv_host+:} false; then :
57aa50d4
TT
2889 $as_echo_n "(cached) " >&6
2890else
2891 if test "x$host_alias" = x; then
2892 ac_cv_host=$ac_cv_build
2893else
2894 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d6a4bcb5 2895 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b0cacab0 2896fi
57aa50d4
TT
2897
2898fi
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2900$as_echo "$ac_cv_host" >&6; }
2901case $ac_cv_host in
2902*-*-*) ;;
d6a4bcb5 2903*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
57aa50d4
TT
2904esac
2905host=$ac_cv_host
2906ac_save_IFS=$IFS; IFS='-'
2907set x $ac_cv_host
2908shift
2909host_cpu=$1
2910host_vendor=$2
2911shift; shift
2912# Remember, the first character of IFS is used to create $*,
2913# except with old shells:
2914host_os=$*
2915IFS=$ac_save_IFS
2916case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2917
2918
2919DLOPEN_LIB=''
2920ac_ext=c
2921ac_cpp='$CPP $CPPFLAGS'
2922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2927set dummy ${ac_tool_prefix}gcc; ac_word=$2
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2929$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2930if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 2931 $as_echo_n "(cached) " >&6
73ae2d4a
TT
2932else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935else
b0cacab0
TT
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
57aa50d4 2941 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2943 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
2945 break 2
2946 fi
2947done
57aa50d4 2948 done
e1052144 2949IFS=$as_save_IFS
b0cacab0 2950
73ae2d4a
TT
2951fi
2952fi
b0cacab0 2953CC=$ac_cv_prog_CC
73ae2d4a 2954if test -n "$CC"; then
57aa50d4 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
39fd3d4f 2956$as_echo "$CC" >&6; }
73ae2d4a 2957else
57aa50d4 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 2959$as_echo "no" >&6; }
73ae2d4a 2960fi
b0cacab0 2961
e1052144 2962
b0cacab0 2963fi
57aa50d4 2964if test -z "$ac_cv_prog_CC"; then
b0cacab0 2965 ac_ct_CC=$CC
57aa50d4
TT
2966 # Extract the first word of "gcc", so it can be a program name with args.
2967set dummy gcc; ac_word=$2
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2969$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2970if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 2971 $as_echo_n "(cached) " >&6
b0cacab0
TT
2972else
2973 if test -n "$ac_ct_CC"; then
2974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
57aa50d4 2981 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2983 ac_cv_prog_ac_ct_CC="gcc"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0 2985 break 2
93636bde 2986 fi
b0cacab0 2987done
57aa50d4 2988 done
e1052144 2989IFS=$as_save_IFS
b0cacab0
TT
2990
2991fi
2992fi
2993ac_ct_CC=$ac_cv_prog_ac_ct_CC
2994if test -n "$ac_ct_CC"; then
57aa50d4 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
39fd3d4f 2996$as_echo "$ac_ct_CC" >&6; }
b0cacab0 2997else
57aa50d4 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 2999$as_echo "no" >&6; }
07a0db15 3000fi
73ae2d4a 3001
e1052144
TT
3002 if test "x$ac_ct_CC" = x; then
3003 CC=""
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006yes:)
57aa50d4 3007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39fd3d4f 3008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
e1052144
TT
3009ac_tool_warned=yes ;;
3010esac
3011 CC=$ac_ct_CC
3012 fi
57aa50d4
TT
3013else
3014 CC="$ac_cv_prog_CC"
b0cacab0
TT
3015fi
3016
57aa50d4
TT
3017if test -z "$CC"; then
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3020set dummy ${ac_tool_prefix}cc; ac_word=$2
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3023if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3024 $as_echo_n "(cached) " >&6
3025else
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3036 ac_cv_prog_CC="${ac_tool_prefix}cc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040done
3041 done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046CC=$ac_cv_prog_CC
3047if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049$as_echo "$CC" >&6; }
3050else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056 fi
3057fi
3058if test -z "$CC"; then
3059 # Extract the first word of "cc", so it can be a program name with args.
3060set dummy cc; ac_word=$2
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3063if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3064 $as_echo_n "(cached) " >&6
3065else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068else
3069 ac_prog_rejected=no
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3077 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3078 ac_prog_rejected=yes
3079 continue
3080 fi
3081 ac_cv_prog_CC="cc"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085done
3086 done
3087IFS=$as_save_IFS
3088
3089if test $ac_prog_rejected = yes; then
3090 # We found a bogon in the path, so make sure we never use it.
3091 set dummy $ac_cv_prog_CC
3092 shift
3093 if test $# != 0; then
3094 # We chose a different compiler from the bogus one.
3095 # However, it has the same basename, so the bogon will be chosen
3096 # first if we set CC to just the basename; use the full file name.
3097 shift
3098 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3099 fi
3100fi
3101fi
3102fi
3103CC=$ac_cv_prog_CC
3104if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106$as_echo "$CC" >&6; }
3107else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112
3113fi
3114if test -z "$CC"; then
3115 if test -n "$ac_tool_prefix"; then
3116 for ac_prog in cl.exe
3117 do
3118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3119set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3122if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3123 $as_echo_n "(cached) " >&6
3124else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3135 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139done
3140 done
3141IFS=$as_save_IFS
3142
3143fi
3144fi
3145CC=$ac_cv_prog_CC
3146if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148$as_echo "$CC" >&6; }
3149else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154
3155 test -n "$CC" && break
3156 done
3157fi
3158if test -z "$CC"; then
3159 ac_ct_CC=$CC
3160 for ac_prog in cl.exe
3161do
3162 # Extract the first word of "$ac_prog", so it can be a program name with args.
3163set dummy $ac_prog; ac_word=$2
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3166if ${ac_cv_prog_ac_ct_CC+:} false; then :
57aa50d4
TT
3167 $as_echo_n "(cached) " >&6
3168else
3169 if test -n "$ac_ct_CC"; then
3170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3179 ac_cv_prog_ac_ct_CC="$ac_prog"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183done
3184 done
3185IFS=$as_save_IFS
3186
3187fi
3188fi
3189ac_ct_CC=$ac_cv_prog_ac_ct_CC
3190if test -n "$ac_ct_CC"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3192$as_echo "$ac_ct_CC" >&6; }
3193else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198
3199 test -n "$ac_ct_CC" && break
3200done
3201
3202 if test "x$ac_ct_CC" = x; then
3203 CC=""
3204 else
3205 case $cross_compiling:$ac_tool_warned in
3206yes:)
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209ac_tool_warned=yes ;;
3210esac
3211 CC=$ac_ct_CC
3212 fi
3213fi
3214
3215fi
3216
3217
3218test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3220as_fn_error $? "no acceptable C compiler found in \$PATH
3221See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
3222
3223# Provide some information about the compiler.
57aa50d4 3224$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
39fd3d4f
SJR
3225set X $ac_compile
3226ac_compiler=$2
57aa50d4
TT
3227for ac_option in --version -v -V -qversion; do
3228 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
3229case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232esac
57aa50d4
TT
3233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234$as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 3236 ac_status=$?
57aa50d4
TT
3237 if test -s conftest.err; then
3238 sed '10a\
3239... rest of stderr output deleted ...
3240 10q' conftest.err >conftest.er1
3241 cat conftest.er1 >&5
57aa50d4 3242 fi
61ef2474 3243 rm -f conftest.er1 conftest.err
57aa50d4
TT
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }
3246done
b0cacab0 3247
57aa50d4 3248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3249/* end confdefs.h. */
61ef2474 3250
b0cacab0
TT
3251int
3252main ()
3253{
3254
3255 ;
3256 return 0;
3257}
3258_ACEOF
3259ac_clean_files_save=$ac_clean_files
61ef2474 3260ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b0cacab0
TT
3261# Try to create an executable without -o first, disregard a.out.
3262# It will help us diagnose broken compilers, and finding out an intuition
3263# of exeext.
61ef2474
TT
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3265$as_echo_n "checking whether the C compiler works... " >&6; }
39fd3d4f
SJR
3266ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3267
3268# The possible output files:
3269ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3270
e1052144
TT
3271ac_rmfiles=
3272for ac_file in $ac_files
3273do
3274 case $ac_file in
39fd3d4f 3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
e1052144
TT
3276 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3277 esac
3278done
3279rm -f $ac_rmfiles
3280
57aa50d4 3281if { { ac_try="$ac_link_default"
e1052144
TT
3282case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285esac
57aa50d4
TT
3286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287$as_echo "$ac_try_echo"; } >&5
e1052144 3288 (eval "$ac_link_default") 2>&5
b0cacab0 3289 ac_status=$?
57aa50d4
TT
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }; then :
e1052144
TT
3292 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3293# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3294# in a Makefile. We should not override ac_cv_exeext if it was cached,
3295# so that the user can short-circuit this test for compilers unknown to
3296# Autoconf.
29a5deed 3297for ac_file in $ac_files ''
b0cacab0
TT
3298do
3299 test -f "$ac_file" || continue
3300 case $ac_file in
39fd3d4f 3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b0cacab0
TT
3302 ;;
3303 [ab].out )
3304 # We found the default executable, but exeext='' is most
3305 # certainly right.
3306 break;;
3307 *.* )
57aa50d4 3308 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
e1052144
TT
3309 then :; else
3310 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3311 fi
3312 # We set ac_cv_exeext here because the later test for it is not
3313 # safe: cross compilers may not add the suffix if given an `-o'
3314 # argument, so we may need to know it at that point already.
3315 # Even if this section looks crufty: it has the advantage of
3316 # actually working.
b0cacab0
TT
3317 break;;
3318 * )
3319 break;;
3320 esac
3321done
e1052144
TT
3322test "$ac_cv_exeext" = no && ac_cv_exeext=
3323
b0cacab0 3324else
29a5deed
TT
3325 ac_file=''
3326fi
57aa50d4 3327if test -z "$ac_file"; then :
61ef2474
TT
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329$as_echo "no" >&6; }
3330$as_echo "$as_me: failed program was:" >&5
b0cacab0
TT
3331sed 's/^/| /' conftest.$ac_ext >&5
3332
57aa50d4 3333{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3335as_fn_error 77 "C compiler cannot create executables
3336See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3337else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339$as_echo "yes" >&6; }
b0cacab0 3340fi
61ef2474
TT
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3342$as_echo_n "checking for C compiler default output file name... " >&6; }
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3344$as_echo "$ac_file" >&6; }
b0cacab0 3345ac_exeext=$ac_cv_exeext
b0cacab0 3346
61ef2474 3347rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b0cacab0 3348ac_clean_files=$ac_clean_files_save
57aa50d4 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
39fd3d4f 3350$as_echo_n "checking for suffix of executables... " >&6; }
57aa50d4 3351if { { ac_try="$ac_link"
e1052144
TT
3352case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355esac
57aa50d4
TT
3356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357$as_echo "$ac_try_echo"; } >&5
e1052144 3358 (eval "$ac_link") 2>&5
b0cacab0 3359 ac_status=$?
57aa50d4
TT
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
b0cacab0
TT
3362 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3363# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3364# work properly (i.e., refer to `conftest.exe'), while it won't with
3365# `rm'.
3366for ac_file in conftest.exe conftest conftest.*; do
3367 test -f "$ac_file" || continue
3368 case $ac_file in
39fd3d4f 3369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b0cacab0 3370 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b0cacab0
TT
3371 break;;
3372 * ) break;;
3373 esac
3374done
73ae2d4a 3375else
57aa50d4 3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3378as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3379See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3380fi
61ef2474 3381rm -f conftest conftest$ac_cv_exeext
57aa50d4 3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
39fd3d4f 3383$as_echo "$ac_cv_exeext" >&6; }
73ae2d4a 3384
b0cacab0
TT
3385rm -f conftest.$ac_ext
3386EXEEXT=$ac_cv_exeext
3387ac_exeext=$EXEEXT
61ef2474
TT
3388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389/* end confdefs.h. */
3390#include <stdio.h>
3391int
3392main ()
3393{
3394FILE *f = fopen ("conftest.out", "w");
3395 return ferror (f) || fclose (f) != 0;
3396
3397 ;
3398 return 0;
3399}
3400_ACEOF
3401ac_clean_files="$ac_clean_files conftest.out"
3402# Check that the compiler produces executables we can run. If not, either
3403# the compiler is broken, or we cross compile.
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3405$as_echo_n "checking whether we are cross compiling... " >&6; }
3406if test "$cross_compiling" != yes; then
3407 { { ac_try="$ac_link"
3408case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411esac
3412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_link") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }
3418 if { ac_try='./conftest$ac_cv_exeext'
3419 { { case "(($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_try") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }; }; then
3429 cross_compiling=no
3430 else
3431 if test "$cross_compiling" = maybe; then
3432 cross_compiling=yes
3433 else
3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5 3436as_fn_error $? "cannot run C compiled programs.
61ef2474 3437If you meant to cross compile, use \`--host'.
d6a4bcb5 3438See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3439 fi
3440 fi
3441fi
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3443$as_echo "$cross_compiling" >&6; }
3444
3445rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3446ac_clean_files=$ac_clean_files_save
57aa50d4 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
39fd3d4f 3448$as_echo_n "checking for suffix of object files... " >&6; }
d6a4bcb5 3449if ${ac_cv_objext+:} false; then :
39fd3d4f 3450 $as_echo_n "(cached) " >&6
73ae2d4a 3451else
57aa50d4 3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3453/* end confdefs.h. */
07a0db15 3454
b0cacab0
TT
3455int
3456main ()
3457{
07a0db15 3458
b0cacab0
TT
3459 ;
3460 return 0;
3461}
3462_ACEOF
3463rm -f conftest.o conftest.obj
57aa50d4 3464if { { ac_try="$ac_compile"
e1052144
TT
3465case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468esac
57aa50d4
TT
3469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470$as_echo "$ac_try_echo"; } >&5
e1052144 3471 (eval "$ac_compile") 2>&5
b0cacab0 3472 ac_status=$?
57aa50d4
TT
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }; then :
e1052144
TT
3475 for ac_file in conftest.o conftest.obj conftest.*; do
3476 test -f "$ac_file" || continue;
b0cacab0 3477 case $ac_file in
39fd3d4f 3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b0cacab0
TT
3479 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480 break;;
3481 esac
3482done
93636bde 3483else
39fd3d4f 3484 $as_echo "$as_me: failed program was:" >&5
b0cacab0 3485sed 's/^/| /' conftest.$ac_ext >&5
07a0db15 3486
57aa50d4 3487{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3489as_fn_error $? "cannot compute suffix of object files: cannot compile
3490See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3491fi
b0cacab0 3492rm -f conftest.$ac_cv_objext conftest.$ac_ext
73ae2d4a 3493fi
57aa50d4 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
39fd3d4f 3495$as_echo "$ac_cv_objext" >&6; }
b0cacab0
TT
3496OBJEXT=$ac_cv_objext
3497ac_objext=$OBJEXT
57aa50d4 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
39fd3d4f 3499$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 3500if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 3501 $as_echo_n "(cached) " >&6
b0cacab0 3502else
57aa50d4 3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3504/* end confdefs.h. */
3505
3506int
3507main ()
3508{
3509#ifndef __GNUC__
3510 choke me
3511#endif
3512
3513 ;
3514 return 0;
3515}
3516_ACEOF
57aa50d4 3517if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0
TT
3518 ac_compiler_gnu=yes
3519else
57aa50d4 3520 ac_compiler_gnu=no
b0cacab0 3521fi
e1052144 3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0
TT
3523ac_cv_c_compiler_gnu=$ac_compiler_gnu
3524
3525fi
57aa50d4 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
39fd3d4f
SJR
3527$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3528if test $ac_compiler_gnu = yes; then
3529 GCC=yes
3530else
3531 GCC=
3532fi
b0cacab0
TT
3533ac_test_CFLAGS=${CFLAGS+set}
3534ac_save_CFLAGS=$CFLAGS
57aa50d4 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
39fd3d4f 3536$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 3537if ${ac_cv_prog_cc_g+:} false; then :
39fd3d4f 3538 $as_echo_n "(cached) " >&6
b0cacab0 3539else
e1052144
TT
3540 ac_save_c_werror_flag=$ac_c_werror_flag
3541 ac_c_werror_flag=yes
3542 ac_cv_prog_cc_g=no
3543 CFLAGS="-g"
57aa50d4 3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3545/* end confdefs.h. */
3546
3547int
3548main ()
3549{
3550
3551 ;
3552 return 0;
3553}
3554_ACEOF
57aa50d4 3555if ac_fn_c_try_compile "$LINENO"; then :
e1052144
TT
3556 ac_cv_prog_cc_g=yes
3557else
57aa50d4
TT
3558 CFLAGS=""
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3560/* end confdefs.h. */
3561
3562int
3563main ()
3564{
3565
3566 ;
3567 return 0;
3568}
3569_ACEOF
57aa50d4 3570if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3571
57aa50d4
TT
3572else
3573 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 3574 CFLAGS="-g"
57aa50d4 3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3576/* end confdefs.h. */
3577
3578int
3579main ()
3580{
3581
3582 ;
3583 return 0;
3584}
3585_ACEOF
57aa50d4 3586if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0 3587 ac_cv_prog_cc_g=yes
e1052144 3588fi
e1052144
TT
3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590fi
e1052144 3591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0 3592fi
e1052144
TT
3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 ac_c_werror_flag=$ac_save_c_werror_flag
b0cacab0 3595fi
57aa50d4 3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
39fd3d4f 3597$as_echo "$ac_cv_prog_cc_g" >&6; }
b0cacab0
TT
3598if test "$ac_test_CFLAGS" = set; then
3599 CFLAGS=$ac_save_CFLAGS
3600elif test $ac_cv_prog_cc_g = yes; then
3601 if test "$GCC" = yes; then
3602 CFLAGS="-g -O2"
3603 else
3604 CFLAGS="-g"
3605 fi
73ae2d4a
TT
3606else
3607 if test "$GCC" = yes; then
3608 CFLAGS="-O2"
3609 else
3610 CFLAGS=
3611 fi
3612fi
57aa50d4 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
39fd3d4f 3614$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 3615if ${ac_cv_prog_cc_c89+:} false; then :
39fd3d4f 3616 $as_echo_n "(cached) " >&6
b0cacab0 3617else
e1052144 3618 ac_cv_prog_cc_c89=no
b0cacab0 3619ac_save_CC=$CC
57aa50d4 3620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3621/* end confdefs.h. */
3622#include <stdarg.h>
3623#include <stdio.h>
d6a4bcb5 3624struct stat;
b0cacab0
TT
3625/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3626struct buf { int x; };
3627FILE * (*rcsopen) (struct buf *, struct stat *, int);
3628static char *e (p, i)
3629 char **p;
3630 int i;
3631{
3632 return p[i];
3633}
3634static char *f (char * (*g) (char **, int), char **p, ...)
3635{
3636 char *s;
3637 va_list v;
3638 va_start (v,p);
3639 s = g (p, va_arg (v,int));
3640 va_end (v);
3641 return s;
3642}
3643
3644/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3645 function prototypes and stuff, but not '\xHH' hex character constants.
3646 These don't provoke an error unfortunately, instead are silently treated
e1052144 3647 as 'x'. The following induces an error, until -std is added to get
b0cacab0
TT
3648 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3649 array size at least. It's necessary to write '\x00'==0 to get something
e1052144 3650 that's true only with -std. */
b0cacab0
TT
3651int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3652
e1052144
TT
3653/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3654 inside strings and character constants. */
3655#define FOO(x) 'x'
3656int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3657
b0cacab0
TT
3658int test (int i, double x);
3659struct s1 {int (*f) (int a);};
3660struct s2 {int (*f) (double a);};
3661int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3662int argc;
3663char **argv;
3664int
3665main ()
3666{
3667return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3668 ;
3669 return 0;
3670}
3671_ACEOF
e1052144
TT
3672for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3673 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b0cacab0
TT
3674do
3675 CC="$ac_save_CC $ac_arg"
57aa50d4 3676 if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3677 ac_cv_prog_cc_c89=$ac_arg
b0cacab0 3678fi
e1052144
TT
3679rm -f core conftest.err conftest.$ac_objext
3680 test "x$ac_cv_prog_cc_c89" != "xno" && break
b0cacab0 3681done
e1052144 3682rm -f conftest.$ac_ext
b0cacab0
TT
3683CC=$ac_save_CC
3684
3685fi
e1052144
TT
3686# AC_CACHE_VAL
3687case "x$ac_cv_prog_cc_c89" in
3688 x)
57aa50d4 3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
39fd3d4f 3690$as_echo "none needed" >&6; } ;;
e1052144 3691 xno)
57aa50d4 3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
39fd3d4f 3693$as_echo "unsupported" >&6; } ;;
b0cacab0 3694 *)
e1052144 3695 CC="$CC $ac_cv_prog_cc_c89"
57aa50d4 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
39fd3d4f 3697$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b0cacab0 3698esac
57aa50d4 3699if test "x$ac_cv_prog_cc_c89" != xno; then :
b0cacab0 3700
57aa50d4 3701fi
b0cacab0 3702
b0cacab0
TT
3703ac_ext=c
3704ac_cpp='$CPP $CPPFLAGS'
3705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708
57aa50d4
TT
3709
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3711$as_echo_n "checking for dlopen in -ldl... " >&6; }
d6a4bcb5 3712if ${ac_cv_lib_dl_dlopen+:} false; then :
39fd3d4f 3713 $as_echo_n "(cached) " >&6
b0cacab0 3714else
57aa50d4
TT
3715 ac_check_lib_save_LIBS=$LIBS
3716LIBS="-ldl $LIBS"
3717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3718/* end confdefs.h. */
57aa50d4
TT
3719
3720/* Override any GCC internal prototype to avoid an error.
3721 Use char because int might match the return type of a GCC
3722 builtin and then its argument prototype would still apply. */
3723#ifdef __cplusplus
3724extern "C"
b0cacab0 3725#endif
57aa50d4
TT
3726char dlopen ();
3727int
3728main ()
3729{
3730return dlopen ();
3731 ;
3732 return 0;
3733}
b0cacab0 3734_ACEOF
57aa50d4
TT
3735if ac_fn_c_try_link "$LINENO"; then :
3736 ac_cv_lib_dl_dlopen=yes
b0cacab0 3737else
57aa50d4 3738 ac_cv_lib_dl_dlopen=no
b0cacab0 3739fi
57aa50d4
TT
3740rm -f core conftest.err conftest.$ac_objext \
3741 conftest$ac_exeext conftest.$ac_ext
3742LIBS=$ac_check_lib_save_LIBS
b0cacab0 3743fi
57aa50d4
TT
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3745$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d6a4bcb5 3746if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
57aa50d4 3747 DLOPEN_LIB=-ldl
b0cacab0
TT
3748fi
3749
b0cacab0 3750
e1052144 3751
57aa50d4
TT
3752# Check whether --with-cc was given.
3753if test "${with_cc+set}" = set; then :
d6a4bcb5 3754 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
57aa50d4 3755fi
b0cacab0 3756
b0cacab0 3757
57aa50d4
TT
3758# Check whether --with-ccopts was given.
3759if test "${with_ccopts+set}" = set; then :
d6a4bcb5 3760 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
b0cacab0 3761fi
e1052144 3762
b0cacab0 3763
57aa50d4
TT
3764# Check whether --with-ldopts was given.
3765if test "${with_ldopts+set}" = set; then :
d6a4bcb5 3766 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
b0cacab0
TT
3767fi
3768
3769ac_ext=c
3770ac_cpp='$CPP $CPPFLAGS'
3771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773ac_compiler_gnu=$ac_cv_c_compiler_gnu
57aa50d4
TT
3774if test -n "$ac_tool_prefix"; then
3775 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3776set dummy ${ac_tool_prefix}gcc; ac_word=$2
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3779if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 3780 $as_echo_n "(cached) " >&6
e1052144 3781else
57aa50d4
TT
3782 if test -n "$CC"; then
3783 ac_cv_prog_CC="$CC" # Let the user override the test.
3784else
3785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786for as_dir in $PATH
e1052144
TT
3787do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
39fd3d4f 3790 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3792 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 break 2
3795 fi
e1052144 3796done
57aa50d4 3797 done
e1052144 3798IFS=$as_save_IFS
e1052144 3799
e1052144 3800fi
57aa50d4
TT
3801fi
3802CC=$ac_cv_prog_CC
3803if test -n "$CC"; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3805$as_echo "$CC" >&6; }
3806else
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808$as_echo "no" >&6; }
3809fi
e1052144
TT
3810
3811
57aa50d4
TT
3812fi
3813if test -z "$ac_cv_prog_CC"; then
3814 ac_ct_CC=$CC
3815 # Extract the first word of "gcc", so it can be a program name with args.
3816set dummy gcc; ac_word=$2
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3819if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 3820 $as_echo_n "(cached) " >&6
e1052144 3821else
57aa50d4
TT
3822 if test -n "$ac_ct_CC"; then
3823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3824else
3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826for as_dir in $PATH
e1052144
TT
3827do
3828 IFS=$as_save_IFS
3829 test -z "$as_dir" && as_dir=.
39fd3d4f 3830 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3832 ac_cv_prog_ac_ct_CC="gcc"
3833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834 break 2
3835 fi
e1052144 3836done
57aa50d4 3837 done
e1052144 3838IFS=$as_save_IFS
b0cacab0 3839
e1052144 3840fi
57aa50d4
TT
3841fi
3842ac_ct_CC=$ac_cv_prog_ac_ct_CC
3843if test -n "$ac_ct_CC"; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3845$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3846else
57aa50d4
TT
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848$as_echo "no" >&6; }
3849fi
b0cacab0 3850
57aa50d4
TT
3851 if test "x$ac_ct_CC" = x; then
3852 CC=""
3853 else
3854 case $cross_compiling:$ac_tool_warned in
3855yes:)
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3858ac_tool_warned=yes ;;
e1052144 3859esac
57aa50d4
TT
3860 CC=$ac_ct_CC
3861 fi
b0cacab0 3862else
57aa50d4 3863 CC="$ac_cv_prog_CC"
b0cacab0 3864fi
e1052144 3865
57aa50d4
TT
3866if test -z "$CC"; then
3867 if test -n "$ac_tool_prefix"; then
3868 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3869set dummy ${ac_tool_prefix}cc; ac_word=$2
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3872if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3873 $as_echo_n "(cached) " >&6
a64c9c13 3874else
57aa50d4
TT
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3877else
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3885 ac_cv_prog_CC="${ac_tool_prefix}cc"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889done
3890 done
3891IFS=$as_save_IFS
b0cacab0 3892
a64c9c13 3893fi
57aa50d4
TT
3894fi
3895CC=$ac_cv_prog_CC
3896if test -n "$CC"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898$as_echo "$CC" >&6; }
b0cacab0 3899else
57aa50d4
TT
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901$as_echo "no" >&6; }
a64c9c13 3902fi
b0cacab0 3903
b0cacab0 3904
57aa50d4
TT
3905 fi
3906fi
3907if test -z "$CC"; then
3908 # Extract the first word of "cc", so it can be a program name with args.
3909set dummy cc; ac_word=$2
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3912if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3913 $as_echo_n "(cached) " >&6
a64c9c13 3914else
57aa50d4
TT
3915 if test -n "$CC"; then
3916 ac_cv_prog_CC="$CC" # Let the user override the test.
a64c9c13 3917else
57aa50d4
TT
3918 ac_prog_rejected=no
3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH
3921do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3927 ac_prog_rejected=yes
3928 continue
3929 fi
3930 ac_cv_prog_CC="cc"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934done
3935 done
3936IFS=$as_save_IFS
b0cacab0 3937
57aa50d4
TT
3938if test $ac_prog_rejected = yes; then
3939 # We found a bogon in the path, so make sure we never use it.
3940 set dummy $ac_cv_prog_CC
3941 shift
3942 if test $# != 0; then
3943 # We chose a different compiler from the bogus one.
3944 # However, it has the same basename, so the bogon will be chosen
3945 # first if we set CC to just the basename; use the full file name.
3946 shift
3947 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3948 fi
b0cacab0 3949fi
b0cacab0
TT
3950fi
3951fi
57aa50d4
TT
3952CC=$ac_cv_prog_CC
3953if test -n "$CC"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3955$as_echo "$CC" >&6; }
3956else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958$as_echo "no" >&6; }
b0cacab0 3959fi
b0cacab0 3960
b0cacab0
TT
3961
3962fi
57aa50d4
TT
3963if test -z "$CC"; then
3964 if test -n "$ac_tool_prefix"; then
3965 for ac_prog in cl.exe
3966 do
3967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3968set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3971if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3972 $as_echo_n "(cached) " >&6
3973else
3974 if test -n "$CC"; then
3975 ac_cv_prog_CC="$CC" # Let the user override the test.
3976else
3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH
3979do
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 break 2
3987 fi
3988done
3989 done
3990IFS=$as_save_IFS
b0cacab0 3991
57aa50d4
TT
3992fi
3993fi
3994CC=$ac_cv_prog_CC
3995if test -n "$CC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3997$as_echo "$CC" >&6; }
3998else
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000$as_echo "no" >&6; }
4001fi
b0cacab0
TT
4002
4003
57aa50d4
TT
4004 test -n "$CC" && break
4005 done
4006fi
4007if test -z "$CC"; then
4008 ac_ct_CC=$CC
4009 for ac_prog in cl.exe
b0cacab0 4010do
57aa50d4
TT
4011 # Extract the first word of "$ac_prog", so it can be a program name with args.
4012set dummy $ac_prog; ac_word=$2
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 4015if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 4016 $as_echo_n "(cached) " >&6
b0cacab0 4017else
57aa50d4
TT
4018 if test -n "$ac_ct_CC"; then
4019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b0cacab0 4020else
57aa50d4
TT
4021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022for as_dir in $PATH
4023do
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 4027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
4028 ac_cv_prog_ac_ct_CC="$ac_prog"
4029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 break 2
4031 fi
4032done
4033 done
4034IFS=$as_save_IFS
b0cacab0 4035
b0cacab0 4036fi
b0cacab0 4037fi
57aa50d4
TT
4038ac_ct_CC=$ac_cv_prog_ac_ct_CC
4039if test -n "$ac_ct_CC"; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4041$as_echo "$ac_ct_CC" >&6; }
4042else
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044$as_echo "no" >&6; }
b0cacab0
TT
4045fi
4046
b0cacab0 4047
57aa50d4
TT
4048 test -n "$ac_ct_CC" && break
4049done
b0cacab0 4050
57aa50d4
TT
4051 if test "x$ac_ct_CC" = x; then
4052 CC=""
4053 else
4054 case $cross_compiling:$ac_tool_warned in
4055yes:)
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4058ac_tool_warned=yes ;;
e1052144 4059esac
57aa50d4
TT
4060 CC=$ac_ct_CC
4061 fi
4062fi
b0cacab0 4063
b0cacab0 4064fi
e1052144 4065
b0cacab0 4066
57aa50d4
TT
4067test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4069as_fn_error $? "no acceptable C compiler found in \$PATH
4070See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
4071
4072# Provide some information about the compiler.
4073$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4074set X $ac_compile
4075ac_compiler=$2
4076for ac_option in --version -v -V -qversion; do
4077 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
4078case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
57aa50d4
TT
4082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083$as_echo "$ac_try_echo"; } >&5
4084 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 4085 ac_status=$?
57aa50d4
TT
4086 if test -s conftest.err; then
4087 sed '10a\
4088... rest of stderr output deleted ...
4089 10q' conftest.err >conftest.er1
4090 cat conftest.er1 >&5
57aa50d4 4091 fi
61ef2474 4092 rm -f conftest.er1 conftest.err
57aa50d4
TT
4093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094 test $ac_status = 0; }
4095done
e1052144 4096
57aa50d4
TT
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4098$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 4099if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 4100 $as_echo_n "(cached) " >&6
b0cacab0 4101else
57aa50d4
TT
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103/* end confdefs.h. */
b0cacab0 4104
57aa50d4
TT
4105int
4106main ()
4107{
4108#ifndef __GNUC__
4109 choke me
4110#endif
a64c9c13 4111
57aa50d4
TT
4112 ;
4113 return 0;
4114}
4115_ACEOF
4116if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_compiler_gnu=yes
b1c92f91 4118else
57aa50d4 4119 ac_compiler_gnu=no
b1c92f91 4120fi
57aa50d4
TT
4121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122ac_cv_c_compiler_gnu=$ac_compiler_gnu
b0cacab0 4123
e1052144 4124fi
57aa50d4
TT
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4126$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4127if test $ac_compiler_gnu = yes; then
4128 GCC=yes
98919bdb 4129else
57aa50d4 4130 GCC=
98919bdb 4131fi
57aa50d4
TT
4132ac_test_CFLAGS=${CFLAGS+set}
4133ac_save_CFLAGS=$CFLAGS
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4135$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 4136if ${ac_cv_prog_cc_g+:} false; then :
57aa50d4 4137 $as_echo_n "(cached) " >&6
98919bdb 4138else
57aa50d4
TT
4139 ac_save_c_werror_flag=$ac_c_werror_flag
4140 ac_c_werror_flag=yes
4141 ac_cv_prog_cc_g=no
4142 CFLAGS="-g"
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144/* end confdefs.h. */
e1052144 4145
57aa50d4
TT
4146int
4147main ()
4148{
98919bdb 4149
57aa50d4
TT
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154if ac_fn_c_try_compile "$LINENO"; then :
4155 ac_cv_prog_cc_g=yes
c13351f6 4156else
57aa50d4
TT
4157 CFLAGS=""
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159/* end confdefs.h. */
c13351f6 4160
57aa50d4
TT
4161int
4162main ()
4163{
c13351f6 4164
57aa50d4
TT
4165 ;
4166 return 0;
4167}
4168_ACEOF
4169if ac_fn_c_try_compile "$LINENO"; then :
c13351f6 4170
57aa50d4
TT
4171else
4172 ac_c_werror_flag=$ac_save_c_werror_flag
4173 CFLAGS="-g"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175/* end confdefs.h. */
c13351f6 4176
57aa50d4
TT
4177int
4178main ()
4179{
c13351f6 4180
57aa50d4
TT
4181 ;
4182 return 0;
4183}
b0cacab0 4184_ACEOF
57aa50d4
TT
4185if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_g=yes
1917875f 4187fi
57aa50d4 4188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e1052144 4189fi
57aa50d4 4190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdc9985 4191fi
57aa50d4
TT
4192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 4194fi
57aa50d4
TT
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4196$as_echo "$ac_cv_prog_cc_g" >&6; }
4197if test "$ac_test_CFLAGS" = set; then
4198 CFLAGS=$ac_save_CFLAGS
4199elif test $ac_cv_prog_cc_g = yes; then
4200 if test "$GCC" = yes; then
4201 CFLAGS="-g -O2"
4202 else
4203 CFLAGS="-g"
4204 fi
a64c9c13 4205else
57aa50d4
TT
4206 if test "$GCC" = yes; then
4207 CFLAGS="-O2"
4208 else
4209 CFLAGS=
4210 fi
a64c9c13 4211fi
57aa50d4
TT
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4213$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 4214if ${ac_cv_prog_cc_c89+:} false; then :
57aa50d4 4215 $as_echo_n "(cached) " >&6
a64c9c13 4216else
57aa50d4
TT
4217 ac_cv_prog_cc_c89=no
4218ac_save_CC=$CC
4219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220/* end confdefs.h. */
4221#include <stdarg.h>
4222#include <stdio.h>
d6a4bcb5 4223struct stat;
57aa50d4
TT
4224/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4225struct buf { int x; };
4226FILE * (*rcsopen) (struct buf *, struct stat *, int);
4227static char *e (p, i)
4228 char **p;
4229 int i;
4230{
4231 return p[i];
4232}
4233static char *f (char * (*g) (char **, int), char **p, ...)
4234{
4235 char *s;
4236 va_list v;
4237 va_start (v,p);
4238 s = g (p, va_arg (v,int));
4239 va_end (v);
4240 return s;
4241}
e1052144 4242
57aa50d4
TT
4243/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4244 function prototypes and stuff, but not '\xHH' hex character constants.
4245 These don't provoke an error unfortunately, instead are silently treated
4246 as 'x'. The following induces an error, until -std is added to get
4247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4248 array size at least. It's necessary to write '\x00'==0 to get something
4249 that's true only with -std. */
4250int osf4_cc_array ['\x00' == 0 ? 1 : -1];
93636bde 4251
57aa50d4
TT
4252/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4253 inside strings and character constants. */
4254#define FOO(x) 'x'
4255int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
a64c9c13 4256
57aa50d4
TT
4257int test (int i, double x);
4258struct s1 {int (*f) (int a);};
4259struct s2 {int (*f) (double a);};
4260int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4261int argc;
4262char **argv;
4263int
4264main ()
4265{
4266return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4267 ;
4268 return 0;
4269}
4270_ACEOF
4271for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4272 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4273do
4274 CC="$ac_save_CC $ac_arg"
4275 if ac_fn_c_try_compile "$LINENO"; then :
4276 ac_cv_prog_cc_c89=$ac_arg
a64c9c13 4277fi
57aa50d4
TT
4278rm -f core conftest.err conftest.$ac_objext
4279 test "x$ac_cv_prog_cc_c89" != "xno" && break
4280done
4281rm -f conftest.$ac_ext
4282CC=$ac_save_CC
a64c9c13 4283
57aa50d4
TT
4284fi
4285# AC_CACHE_VAL
4286case "x$ac_cv_prog_cc_c89" in
4287 x)
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4289$as_echo "none needed" >&6; } ;;
4290 xno)
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4292$as_echo "unsupported" >&6; } ;;
4293 *)
4294 CC="$CC $ac_cv_prog_cc_c89"
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4296$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4297esac
4298if test "x$ac_cv_prog_cc_c89" != xno; then :
a64c9c13 4299
e1052144
TT
4300fi
4301
57aa50d4
TT
4302ac_ext=c
4303ac_cpp='$CPP $CPPFLAGS'
4304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_c_compiler_gnu
93636bde 4307
9b3018a8
TT
4308if test "$GCC" = yes; then
4309 RDYNAMIC="-rdynamic"
4310
4311fi
57aa50d4
TT
4312ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4318$as_echo_n "checking how to run the C preprocessor... " >&6; }
4319# On Suns, sometimes $CPP names a directory.
4320if test -n "$CPP" && test -d "$CPP"; then
4321 CPP=
4322fi
4323if test -z "$CPP"; then
d6a4bcb5 4324 if ${ac_cv_prog_CPP+:} false; then :
57aa50d4
TT
4325 $as_echo_n "(cached) " >&6
4326else
4327 # Double quotes because CPP needs to be expanded
4328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4329 do
4330 ac_preproc_ok=false
4331for ac_c_preproc_warn_flag in '' yes
4332do
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h. */
4341#ifdef __STDC__
4342# include <limits.h>
4343#else
4344# include <assert.h>
4345#endif
4346 Syntax error
4347_ACEOF
4348if ac_fn_c_try_cpp "$LINENO"; then :
a64c9c13 4349
cdf186e4 4350else
57aa50d4
TT
4351 # Broken: fails on valid input.
4352continue
cdf186e4 4353fi
d6a4bcb5 4354rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4355
57aa50d4
TT
4356 # OK, works on sane cases. Now check whether nonexistent headers
4357 # can be detected and how.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359/* end confdefs.h. */
4360#include <ac_nonexistent.h>
4361_ACEOF
4362if ac_fn_c_try_cpp "$LINENO"; then :
4363 # Broken: success on invalid input.
4364continue
cdf186e4 4365else
57aa50d4
TT
4366 # Passes both tests.
4367ac_preproc_ok=:
4368break
4369fi
d6a4bcb5 4370rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4371
57aa50d4
TT
4372done
4373# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4374rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4
TT
4375if $ac_preproc_ok; then :
4376 break
e1052144
TT
4377fi
4378
57aa50d4
TT
4379 done
4380 ac_cv_prog_CPP=$CPP
93636bde 4381
cdf186e4 4382fi
57aa50d4 4383 CPP=$ac_cv_prog_CPP
cdf186e4 4384else
57aa50d4 4385 ac_cv_prog_CPP=$CPP
e1052144 4386fi
57aa50d4
TT
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4388$as_echo "$CPP" >&6; }
4389ac_preproc_ok=false
4390for ac_c_preproc_warn_flag in '' yes
4391do
4392 # Use a header file that comes with gcc, so configuring glibc
4393 # with a fresh cross-compiler works.
4394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4395 # <limits.h> exists even on freestanding compilers.
4396 # On the NeXT, cc -E runs the code through the compiler's parser,
4397 # not just through cpp. "Syntax error" is here to catch this case.
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399/* end confdefs.h. */
4400#ifdef __STDC__
4401# include <limits.h>
4402#else
4403# include <assert.h>
4404#endif
4405 Syntax error
b0cacab0 4406_ACEOF
57aa50d4 4407if ac_fn_c_try_cpp "$LINENO"; then :
80bfaa3e
TT
4408
4409else
57aa50d4
TT
4410 # Broken: fails on valid input.
4411continue
e1052144 4412fi
d6a4bcb5 4413rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4414
57aa50d4
TT
4415 # OK, works on sane cases. Now check whether nonexistent headers
4416 # can be detected and how.
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418/* end confdefs.h. */
4419#include <ac_nonexistent.h>
b0cacab0 4420_ACEOF
57aa50d4
TT
4421if ac_fn_c_try_cpp "$LINENO"; then :
4422 # Broken: success on invalid input.
4423continue
f0a22d0f 4424else
57aa50d4
TT
4425 # Passes both tests.
4426ac_preproc_ok=:
4427break
e1052144 4428fi
d6a4bcb5 4429rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4430
57aa50d4
TT
4431done
4432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4433rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4 4434if $ac_preproc_ok; then :
2a29f135
TT
4435
4436else
57aa50d4
TT
4437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4439as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4440See \`config.log' for more details" "$LINENO" 5; }
e1052144
TT
4441fi
4442
57aa50d4
TT
4443ac_ext=c
4444ac_cpp='$CPP $CPPFLAGS'
4445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447ac_compiler_gnu=$ac_cv_c_compiler_gnu
af773654 4448
57aa50d4
TT
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4450$as_echo_n "checking for additional special compiler flags... " >&6; }
4451if test "$GCC" = yes
4452then
4453 case "$host_cpu" in
4454 alpha) addcflags="-mieee" ;;
4455 esac
14b596d4 4456fi
57aa50d4
TT
4457if test "x$addcflags" != x
4458then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4460$as_echo "$addcflags" >&6; }
4461 CFLAGS="$addcflags $CFLAGS"
14b596d4 4462else
57aa50d4
TT
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4464$as_echo "(none)" >&6; }
14b596d4
TT
4465fi
4466
93613951
TT
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4468$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4469if ${ac_cv_path_GREP+:} false; then :
4470 $as_echo_n "(cached) " >&6
57aa50d4 4471else
93613951
TT
4472 if test -z "$GREP"; then
4473 ac_path_GREP_found=false
4474 # Loop through the user's path and test for each of PROGNAME-LIST
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_prog in grep ggrep; do
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4483 as_fn_executable_p "$ac_path_GREP" || continue
4484# Check for GNU ac_path_GREP and select it if it is found.
4485 # Check for GNU $ac_path_GREP
4486case `"$ac_path_GREP" --version 2>&1` in
4487*GNU*)
4488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4489*)
4490 ac_count=0
4491 $as_echo_n 0123456789 >"conftest.in"
4492 while :
4493 do
4494 cat "conftest.in" "conftest.in" >"conftest.tmp"
4495 mv "conftest.tmp" "conftest.in"
4496 cp "conftest.in" "conftest.nl"
4497 $as_echo 'GREP' >> "conftest.nl"
4498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4500 as_fn_arith $ac_count + 1 && ac_count=$as_val
4501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4502 # Best one so far, save it but keep looking for a better one
4503 ac_cv_path_GREP="$ac_path_GREP"
4504 ac_path_GREP_max=$ac_count
4505 fi
4506 # 10*(2^10) chars as input seems more than enough
4507 test $ac_count -gt 10 && break
4508 done
4509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4510esac
14b596d4 4511
93613951
TT
4512 $ac_path_GREP_found && break 3
4513 done
4514 done
4515 done
4516IFS=$as_save_IFS
4517 if test -z "$ac_cv_path_GREP"; then
4518 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4519 fi
57aa50d4 4520else
93613951
TT
4521 ac_cv_path_GREP=$GREP
4522fi
57aa50d4 4523
14b596d4 4524fi
93613951
TT
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4526$as_echo "$ac_cv_path_GREP" >&6; }
4527 GREP="$ac_cv_path_GREP"
14b596d4 4528
14b596d4 4529
93613951
TT
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4531$as_echo_n "checking for egrep... " >&6; }
4532if ${ac_cv_path_EGREP+:} false; then :
4533 $as_echo_n "(cached) " >&6
5aa6c3f6 4534else
93613951
TT
4535 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4536 then ac_cv_path_EGREP="$GREP -E"
4537 else
4538 if test -z "$EGREP"; then
4539 ac_path_EGREP_found=false
4540 # Loop through the user's path and test for each of PROGNAME-LIST
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4543do
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_prog in egrep; do
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4549 as_fn_executable_p "$ac_path_EGREP" || continue
4550# Check for GNU ac_path_EGREP and select it if it is found.
4551 # Check for GNU $ac_path_EGREP
4552case `"$ac_path_EGREP" --version 2>&1` in
4553*GNU*)
4554 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4555*)
4556 ac_count=0
4557 $as_echo_n 0123456789 >"conftest.in"
4558 while :
4559 do
4560 cat "conftest.in" "conftest.in" >"conftest.tmp"
4561 mv "conftest.tmp" "conftest.in"
4562 cp "conftest.in" "conftest.nl"
4563 $as_echo 'EGREP' >> "conftest.nl"
4564 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4566 as_fn_arith $ac_count + 1 && ac_count=$as_val
4567 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4568 # Best one so far, save it but keep looking for a better one
4569 ac_cv_path_EGREP="$ac_path_EGREP"
4570 ac_path_EGREP_max=$ac_count
4571 fi
4572 # 10*(2^10) chars as input seems more than enough
4573 test $ac_count -gt 10 && break
4574 done
4575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4576esac
5aa6c3f6 4577
93613951
TT
4578 $ac_path_EGREP_found && break 3
4579 done
4580 done
4581 done
4582IFS=$as_save_IFS
4583 if test -z "$ac_cv_path_EGREP"; then
4584 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4585 fi
5aa6c3f6 4586else
93613951
TT
4587 ac_cv_path_EGREP=$EGREP
4588fi
183c73b0 4589
93613951 4590 fi
183c73b0 4591fi
93613951
TT
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4593$as_echo "$ac_cv_path_EGREP" >&6; }
4594 EGREP="$ac_cv_path_EGREP"
183c73b0
TT
4595
4596
93613951
TT
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4598$as_echo_n "checking for ANSI C header files... " >&6; }
4599if ${ac_cv_header_stdc+:} false; then :
4600 $as_echo_n "(cached) " >&6
91d11da1 4601else
93613951
TT
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603/* end confdefs.h. */
4604#include <stdlib.h>
4605#include <stdarg.h>
4606#include <string.h>
4607#include <float.h>
91d11da1 4608
93613951
TT
4609int
4610main ()
4611{
183c73b0 4612
93613951
TT
4613 ;
4614 return 0;
4615}
4616_ACEOF
4617if ac_fn_c_try_compile "$LINENO"; then :
4618 ac_cv_header_stdc=yes
183c73b0 4619else
93613951 4620 ac_cv_header_stdc=no
5aa6c3f6 4621fi
93613951 4622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5aa6c3f6 4623
93613951
TT
4624if test $ac_cv_header_stdc = yes; then
4625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627/* end confdefs.h. */
4628#include <string.h>
4629
4630_ACEOF
4631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632 $EGREP "memchr" >/dev/null 2>&1; then :
4633
4634else
4635 ac_cv_header_stdc=no
4636fi
4637rm -f conftest*
4638
4639fi
4640
4641if test $ac_cv_header_stdc = yes; then
4642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h. */
4645#include <stdlib.h>
4646
4647_ACEOF
4648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "free" >/dev/null 2>&1; then :
4650
4651else
4652 ac_cv_header_stdc=no
4653fi
4654rm -f conftest*
4655
4656fi
4657
4658if test $ac_cv_header_stdc = yes; then
4659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4660 if test "$cross_compiling" = yes; then :
4661 :
4662else
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664/* end confdefs.h. */
4665#include <ctype.h>
4666#include <stdlib.h>
4667#if ((' ' & 0x0FF) == 0x020)
4668# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4669# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4670#else
4671# define ISLOWER(c) \
4672 (('a' <= (c) && (c) <= 'i') \
4673 || ('j' <= (c) && (c) <= 'r') \
4674 || ('s' <= (c) && (c) <= 'z'))
4675# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4676#endif
4677
4678#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4679int
4680main ()
4681{
4682 int i;
4683 for (i = 0; i < 256; i++)
4684 if (XOR (islower (i), ISLOWER (i))
4685 || toupper (i) != TOUPPER (i))
4686 return 2;
4687 return 0;
4688}
4689_ACEOF
4690if ac_fn_c_try_run "$LINENO"; then :
4691
4692else
4693 ac_cv_header_stdc=no
4694fi
4695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4696 conftest.$ac_objext conftest.beam conftest.$ac_ext
4697fi
4698
4699fi
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4702$as_echo "$ac_cv_header_stdc" >&6; }
4703if test $ac_cv_header_stdc = yes; then
4704
4705$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4706
4707fi
4708
4709# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4710for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4711 inttypes.h stdint.h unistd.h
4712do :
4713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4714ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4715"
4716if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4717 cat >>confdefs.h <<_ACEOF
4718#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4719_ACEOF
4720
4721fi
4722
4723done
4724
4725
4726
4727 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4728if test "x$ac_cv_header_minix_config_h" = xyes; then :
4729 MINIX=yes
4730else
4731 MINIX=
4732fi
4733
4734
4735 if test "$MINIX" = yes; then
4736
4737$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4738
4739
4740$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4741
4742
4743$as_echo "#define _MINIX 1" >>confdefs.h
4744
4745 fi
4746
4747
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4749$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4750if ${ac_cv_safe_to_define___extensions__+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752else
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754/* end confdefs.h. */
4755
4756# define __EXTENSIONS__ 1
4757 $ac_includes_default
4758int
4759main ()
4760{
4761
4762 ;
4763 return 0;
4764}
4765_ACEOF
4766if ac_fn_c_try_compile "$LINENO"; then :
4767 ac_cv_safe_to_define___extensions__=yes
4768else
4769 ac_cv_safe_to_define___extensions__=no
4770fi
4771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772fi
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4774$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4775 test $ac_cv_safe_to_define___extensions__ = yes &&
4776 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4777
4778 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4779
4780 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4781
4782 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4783
4784 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4785
4786
4787LIB_EXT=.a
4788STATIC_LIB_EXT=.a
4789PROFILED_LIB_EXT=.a
4790
4791# Check whether --with-root-prefix was given.
4792if test "${with_root_prefix+set}" = set; then :
4793 withval=$with_root_prefix; root_prefix=$withval
4794else
4795 root_prefix=NONE
4796fi
4797# Check whether --enable-maintainer-mode was given.
4798if test "${enable_maintainer_mode+set}" = set; then :
4799 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4800then
4801 MAINTAINER_CMT=#
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4803$as_echo "Disabling maintainer mode" >&6; }
4804else
4805 MAINTAINER_CMT=
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4807$as_echo "Enabling maintainer mode" >&6; }
4808fi
4809
4810else
4811 MAINTAINER_CMT=#
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4813$as_echo "Disabling maintainer mode by default" >&6; }
4814
4815fi
4816
4817
4818# Check whether --enable-symlink-install was given.
4819if test "${enable_symlink_install+set}" = set; then :
4820 enableval=$enable_symlink_install; if test "$enableval" = "no"
4821then
4822 LINK_INSTALL_FLAGS=-f
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4824$as_echo "Disabling symlinks for install" >&6; }
4825else
4826 LINK_INSTALL_FLAGS=-sf
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4828$as_echo "Enabling symlinks for install" >&6; }
4829fi
4830
4831else
4832 LINK_INSTALL_FLAGS=-f
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4834$as_echo "Disabling symlinks for install by default" >&6; }
4835
4836fi
4837
4838
4839relative_symlink_defined=
4840# Check whether --enable-relative-symlinks was given.
4841if test "${enable_relative_symlinks+set}" = set; then :
4842 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4843then
4844 SYMLINK_RELATIVE=
4845 relative_symlink_defined=yes
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4847$as_echo "Disabling relative symlinks for install" >&6; }
4848else
4849 SYMLINK_RELATIVE=--relative
4850 relative_symlink_defined=yes
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4852$as_echo "Enabling relative symlinks for install" >&6; }
4853fi
4854fi
4855
4856# Check whether --enable-symlink-relative-symlinks was given.
4857if test "${enable_symlink_relative_symlinks+set}" = set; then :
4858 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4859then
4860 SYMLINK_RELATIVE=yes
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4862$as_echo "Disabling relative symlinks for install" >&6; }
4863else
4864 SYMLINK_RELATIVE=--relative
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4866$as_echo "Enabling relative symlinks for install" >&6; }
4867fi
4868
4869else
4870 if test -z "$relative_symlink_defined"
4871then
4872 SYMLINK_RELATIVE=
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4874$as_echo "Disabling relative symlinks for install by default" >&6; }
4875fi
4876
4877fi
4878
4879
4880# Check whether --enable-symlink-build was given.
4881if test "${enable_symlink_build+set}" = set; then :
5aa6c3f6
TT
4882 enableval=$enable_symlink_build; if test "$enableval" = "no"
4883then
4884 LINK_BUILD_FLAGS=
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4886$as_echo "Disabling symlinks for build" >&6; }
4887else
4888 LINK_BUILD_FLAGS=-s
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4890$as_echo "Enabling symlinks for build" >&6; }
4891fi
4892
4893else
4894 LINK_BUILD_FLAGS=
183c73b0
TT
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4896$as_echo "Disabling symlinks for build by default" >&6; }
5aa6c3f6
TT
4897
4898fi
4899
4900
57aa50d4
TT
4901# Check whether --enable-verbose-makecmds was given.
4902if test "${enable_verbose_makecmds+set}" = set; then :
4903 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4904then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4906$as_echo "Disabling verbose make commands" >&6; }
4907 E=@echo
c1986ecb 4908 ES=echo
57aa50d4 4909 Q=@
14b596d4 4910else
57aa50d4
TT
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4912$as_echo "Enabling verbose make commands" >&6; }
4913 E=@\\#
c1986ecb 4914 ES=\\#
57aa50d4
TT
4915 Q=
4916fi
14b596d4 4917
14b596d4 4918else
57aa50d4
TT
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4920$as_echo "Disabling verbose make commands" >&6; }
4921E=@echo
c1986ecb 4922ES=echo
57aa50d4 4923Q=@
14b596d4 4924
14b596d4
TT
4925fi
4926
14b596d4 4927
57aa50d4 4928
c1986ecb 4929
57aa50d4
TT
4930E2_PKG_CONFIG_STATIC=--static
4931LDFLAG_DYNAMIC=
4932PRIVATE_LIBS_CMT=
4933# Check whether --enable-elf-shlibs was given.
4934if test "${enable_elf_shlibs+set}" = set; then :
4935 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
cdf186e4 4936then
57aa50d4
TT
4937 ELF_CMT=#
4938 MAKEFILE_ELF=/dev/null
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4940$as_echo "Disabling ELF shared libraries" >&6; }
cdf186e4 4941else
57aa50d4
TT
4942 E2_PKG_CONFIG_STATIC=
4943 ELF_CMT=
4944 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4945 case "$host_os" in
4946 solaris2.*)
4947 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4948 ;;
4949 esac
4950 BINARY_TYPE=elfbin
4951 LIB_EXT=.so
4952 PRIVATE_LIBS_CMT=#
4953 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4955$as_echo "Enabling ELF shared libraries" >&6; }
cdf186e4
TT
4956fi
4957
4958else
57aa50d4
TT
4959 MAKEFILE_ELF=/dev/null
4960ELF_CMT=#
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4962$as_echo "Disabling ELF shared libraries by default" >&6; }
cdf186e4 4963
e1052144
TT
4964fi
4965
cdf186e4 4966
57aa50d4
TT
4967
4968# Check whether --enable-bsd-shlibs was given.
4969if test "${enable_bsd_shlibs+set}" = set; then :
4970 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
cdf186e4 4971then
57aa50d4
TT
4972 BSDLIB_CMT=#
4973 MAKEFILE_BSDLIB=/dev/null
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4975$as_echo "Disabling BSD shared libraries" >&6; }
cdf186e4 4976else
57aa50d4
TT
4977 E2_PKG_CONFIG_STATIC=
4978 BSDLIB_CMT=
4979 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4980 LIB_EXT=.so
4981 case "$host_os" in
4982 darwin*)
4983 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4984 LIB_EXT=.dylib
4985 ;;
4986 esac
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4988$as_echo "Enabling BSD shared libraries" >&6; }
cdf186e4
TT
4989fi
4990
4991else
57aa50d4
TT
4992 MAKEFILE_BSDLIB=/dev/null
4993BSDLIB_CMT=#
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4995$as_echo "Disabling BSD shared libraries by default" >&6; }
cdf186e4 4996
e1052144
TT
4997fi
4998
cdf186e4 4999
57aa50d4
TT
5000
5001# Check whether --enable-profile was given.
5002if test "${enable_profile+set}" = set; then :
5003 enableval=$enable_profile; if test "$enableval" = "no"
cdf186e4 5004then
57aa50d4
TT
5005 PROFILE_CMT=#
5006 MAKEFILE_PROFILE=/dev/null
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5008$as_echo "Disabling profiling libraries" >&6; }
cdf186e4 5009else
57aa50d4
TT
5010 PROFILE_CMT=
5011 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5012 PROFILED_LIB_EXT=_p.a
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5014$as_echo "Building profiling libraries" >&6; }
cdf186e4
TT
5015fi
5016
5017else
57aa50d4
TT
5018 PROFILE_CMT=#
5019MAKEFILE_PROFILE=/dev/null
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5021$as_echo "Disabling profiling libraries by default" >&6; }
cdf186e4 5022
e1052144
TT
5023fi
5024
cdf186e4 5025
57aa50d4 5026
fedfb27f
TT
5027# Check whether --enable-gcov was given.
5028if test "${enable_gcov+set}" = set; then :
5029 enableval=$enable_gcov; if test "$enableval" = "yes"
5030then
5031 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5032 LDFLAGS="-fprofile-arcs -ftest-coverage"
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5034$as_echo "Enabling gcov support" >&6; }
5035fi
5036
5037fi
5038
fd1677e8
TT
5039CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5040CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5041LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5042LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5043# Check whether --enable-hardening was given.
5044if test "${enable_hardening+set}" = set; then :
5045 enableval=$enable_hardening; if test "$enableval" = "yes"
5046then
5047 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5048 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5049 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5050 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5051 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5052 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5053 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5054 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5056$as_echo "Enabling hardening support" >&6; }
5057fi
5058
5059fi
cdf186e4 5060
57aa50d4
TT
5061
5062
5063
5064
5065
5066# Check whether --enable-jbd-debug was given.
5067if test "${enable_jbd_debug+set}" = set; then :
5068 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5d40773b 5069then
57aa50d4
TT
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5071$as_echo "Disabling journal debugging" >&6; }
5d40773b 5072else
d1154eb4
TT
5073
5074$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
57aa50d4
TT
5075
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5077$as_echo "Enabling journal debugging" >&6; }
5d40773b
TT
5078fi
5079
5080else
57aa50d4
TT
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5082$as_echo "Disabling journal debugging by default" >&6; }
5d40773b 5083
e1052144
TT
5084fi
5085
57aa50d4
TT
5086# Check whether --enable-blkid-debug was given.
5087if test "${enable_blkid_debug+set}" = set; then :
5088 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3249394d 5089then
57aa50d4
TT
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5091$as_echo "Disabling blkid debugging" >&6; }
3249394d 5092else
d1154eb4
TT
5093
5094$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
57aa50d4
TT
5095
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5097$as_echo "Enabling blkid debugging" >&6; }
3249394d
TT
5098fi
5099
5100else
57aa50d4
TT
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5102$as_echo "Disabling blkid debugging by default" >&6; }
3249394d
TT
5103
5104fi
5105
57aa50d4
TT
5106# Check whether --enable-testio-debug was given.
5107if test "${enable_testio_debug+set}" = set; then :
d1154eb4
TT
5108 enableval=$enable_testio_debug;
5109if test "$enableval" = "no"
3249394d 5110then
57aa50d4
TT
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5112$as_echo "Disabling testio debugging" >&6; }
5113 TEST_IO_CMT="#"
3249394d 5114else
57aa50d4
TT
5115 TEST_IO_CMT=
5116 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5117
57aa50d4
TT
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5119$as_echo "Enabling testio debugging" >&6; }
5120fi
3249394d 5121
3249394d 5122else
57aa50d4
TT
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5124$as_echo "Enabling testio debugging by default" >&6; }
5125$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5126
57aa50d4 5127TEST_IO_CMT=
3249394d
TT
5128
5129fi
5130
3249394d 5131
b9e66a18
TT
5132# Check whether --enable-developer-features was given.
5133if test "${enable_developer_features+set}" = set; then :
5134 enableval=$enable_developer_features;
5135if test "$enableval" = "yes"
5136then
5137 DEV_FEATURES_CMT=
5138 $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
5139
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
5141$as_echo "Enabling ext4 developer features" >&6; }
5142else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
5144$as_echo "Disabling ext4 developer features" >&6; }
5145 DEV_FEATURES_CMT="#"
5146fi
5147
5148else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
5150$as_echo "Disabling ext4 developer features by default" >&6; }
5151DEV_FEATURES_CMT=
5152
5153fi
5154
5155
57aa50d4
TT
5156
5157
93613951
TT
5158
5159
5160
5161
5162
57aa50d4 5163if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5164 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5165 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5166set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5169if ${ac_cv_path_PKG_CONFIG+:} false; then :
57aa50d4
TT
5170 $as_echo_n "(cached) " >&6
5171else
5172 case $PKG_CONFIG in
5173 [\\/]* | ?:[\\/]*)
5174 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5175 ;;
5176 *)
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5184 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188done
5189 done
5190IFS=$as_save_IFS
5191
5192 ;;
5193esac
5194fi
5195PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5196if test -n "$PKG_CONFIG"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5198$as_echo "$PKG_CONFIG" >&6; }
5199else
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201$as_echo "no" >&6; }
3249394d
TT
5202fi
5203
5204
57aa50d4
TT
5205fi
5206if test -z "$ac_cv_path_PKG_CONFIG"; then
5207 ac_pt_PKG_CONFIG=$PKG_CONFIG
5208 # Extract the first word of "pkg-config", so it can be a program name with args.
5209set dummy pkg-config; ac_word=$2
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5212if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
57aa50d4
TT
5213 $as_echo_n "(cached) " >&6
5214else
5215 case $ac_pt_PKG_CONFIG in
5216 [\\/]* | ?:[\\/]*)
5217 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5218 ;;
5219 *)
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5227 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231done
5232 done
5233IFS=$as_save_IFS
3249394d 5234
57aa50d4
TT
5235 ;;
5236esac
5237fi
5238ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5239if test -n "$ac_pt_PKG_CONFIG"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5241$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5242else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244$as_echo "no" >&6; }
5245fi
3249394d 5246
57aa50d4
TT
5247 if test "x$ac_pt_PKG_CONFIG" = x; then
5248 PKG_CONFIG=""
5249 else
5250 case $cross_compiling:$ac_tool_warned in
5251yes:)
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254ac_tool_warned=yes ;;
5255esac
5256 PKG_CONFIG=$ac_pt_PKG_CONFIG
3249394d 5257 fi
57aa50d4
TT
5258else
5259 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5260fi
3249394d
TT
5261
5262fi
57aa50d4 5263if test -n "$PKG_CONFIG"; then
93613951
TT
5264 _pkg_min_version=0.9.0
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5266$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5267 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5269$as_echo "yes" >&6; }
93613951
TT
5270 else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5272$as_echo "no" >&6; }
93613951
TT
5273 PKG_CONFIG=""
5274 fi
57aa50d4
TT
5275fi
5276LIBUUID=
5277DEPLIBUUID=
5278STATIC_LIBUUID=
5279DEPSTATIC_LIBUUID=
5280PROFILED_LIBUUID=
5281DEPPROFILED_LIBUUID=
5282UUID_CMT=
5283# Check whether --enable-libuuid was given.
5284if test "${enable_libuuid+set}" = set; then :
5285 enableval=$enable_libuuid; if test "$enableval" = "no"
5610f992 5286then
57aa50d4 5287 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5288 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5289 fi
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5292$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
d6a4bcb5 5293if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
57aa50d4 5294 $as_echo_n "(cached) " >&6
5610f992 5295else
57aa50d4 5296 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5297LIBS="-luuid $LIBS"
57aa50d4
TT
5298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299/* end confdefs.h. */
5610f992 5300
57aa50d4
TT
5301/* Override any GCC internal prototype to avoid an error.
5302 Use char because int might match the return type of a GCC
5303 builtin and then its argument prototype would still apply. */
5304#ifdef __cplusplus
5305extern "C"
5306#endif
5307char uuid_generate ();
5308int
5309main ()
5310{
5311return uuid_generate ();
5312 ;
5313 return 0;
5314}
5315_ACEOF
5316if ac_fn_c_try_link "$LINENO"; then :
5317 ac_cv_lib_uuid_uuid_generate=yes
5318else
5319 ac_cv_lib_uuid_uuid_generate=no
5320fi
5321rm -f core conftest.err conftest.$ac_objext \
5322 conftest$ac_exeext conftest.$ac_ext
5323LIBS=$ac_check_lib_save_LIBS
5324fi
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5326$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
d6a4bcb5 5327if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
57aa50d4
TT
5328 LIBUUID=`$PKG_CONFIG --libs uuid`;
5329 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5330else
d6a4bcb5 5331 as_fn_error $? "external uuid library not found" "$LINENO" 5
5610f992
TT
5332fi
5333
5afdf37b 5334 PROFILED_LIBUUID=$LIBUUID
57aa50d4
TT
5335 UUID_CMT=#
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5337$as_echo "Disabling private uuid library" >&6; }
5610f992 5338else
57aa50d4
TT
5339 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5340 DEPLIBUUID=$LIBUUID
5341 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5342 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5343 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5344 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5346$as_echo "Enabling private uuid library" >&6; }
5347fi
5610f992 5348
57aa50d4 5349else
f5dffb81
TT
5350 if test -n "$PKG_CONFIG"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5352$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5353if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355else
5356 ac_check_lib_save_LIBS=$LIBS
5357LIBS="-luuid $LIBS"
5358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359/* end confdefs.h. */
5360
5361/* Override any GCC internal prototype to avoid an error.
5362 Use char because int might match the return type of a GCC
5363 builtin and then its argument prototype would still apply. */
5364#ifdef __cplusplus
5365extern "C"
5366#endif
5367char uuid_generate ();
5368int
5369main ()
5370{
5371return uuid_generate ();
5372 ;
5373 return 0;
5374}
5375_ACEOF
5376if ac_fn_c_try_link "$LINENO"; then :
5377 ac_cv_lib_uuid_uuid_generate=yes
5378else
5379 ac_cv_lib_uuid_uuid_generate=no
5380fi
5381rm -f core conftest.err conftest.$ac_objext \
5382 conftest$ac_exeext conftest.$ac_ext
5383LIBS=$ac_check_lib_save_LIBS
5384fi
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5386$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5387if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5388 LIBUUID=`$PKG_CONFIG --libs uuid`;
5389 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5390fi
5391
5392fi
5393if test -n "$LIBUUID"; then
5394 PROFILED_LIBUUID=$LIBUUID
5395 UUID_CMT=#
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5397$as_echo "Using system uuid by default" >&6; }
5398else
5399 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5400 DEPLIBUUID=$LIBUUID
5401 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5402 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5403 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5404 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
57aa50d4 5406$as_echo "Enabling private uuid library by default" >&6; }
f5dffb81 5407fi
5610f992
TT
5408
5409fi
5410
5411
cdf186e4 5412
a64c9c13 5413
93636bde
TT
5414
5415
93636bde 5416
93636bde
TT
5417
5418
57aa50d4 5419
93613951
TT
5420
5421
5422
5423
5424
57aa50d4 5425if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5426 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5427 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5428set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5431if ${ac_cv_path_PKG_CONFIG+:} false; then :
39fd3d4f 5432 $as_echo_n "(cached) " >&6
a64c9c13 5433else
57aa50d4
TT
5434 case $PKG_CONFIG in
5435 [\\/]* | ?:[\\/]*)
5436 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5437 ;;
e1052144 5438 *)
b0cacab0
TT
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
57aa50d4 5444 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5446 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5449 fi
b0cacab0 5450done
57aa50d4 5451 done
e1052144 5452IFS=$as_save_IFS
b0cacab0 5453
57aa50d4 5454 ;;
b0cacab0
TT
5455esac
5456fi
57aa50d4
TT
5457PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5458if test -n "$PKG_CONFIG"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5460$as_echo "$PKG_CONFIG" >&6; }
07a0db15 5461else
57aa50d4 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5463$as_echo "no" >&6; }
07a0db15 5464fi
07a0db15 5465
57aa50d4
TT
5466
5467fi
5468if test -z "$ac_cv_path_PKG_CONFIG"; then
5469 ac_pt_PKG_CONFIG=$PKG_CONFIG
5470 # Extract the first word of "pkg-config", so it can be a program name with args.
5471set dummy pkg-config; ac_word=$2
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 5473$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5474if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
39fd3d4f 5475 $as_echo_n "(cached) " >&6
a64c9c13 5476else
57aa50d4 5477 case $ac_pt_PKG_CONFIG in
b0cacab0 5478 [\\/]* | ?:[\\/]*)
57aa50d4 5479 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
b0cacab0
TT
5480 ;;
5481 *)
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
57aa50d4 5487 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5489 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
5491 break 2
5492 fi
5493done
57aa50d4 5494 done
e1052144 5495IFS=$as_save_IFS
a64c9c13 5496
b0cacab0
TT
5497 ;;
5498esac
a64c9c13 5499fi
57aa50d4
TT
5500ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5501if test -n "$ac_pt_PKG_CONFIG"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5503$as_echo "$ac_pt_PKG_CONFIG" >&6; }
a64c9c13 5504else
57aa50d4 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5506$as_echo "no" >&6; }
a64c9c13 5507fi
a64c9c13 5508
57aa50d4
TT
5509 if test "x$ac_pt_PKG_CONFIG" = x; then
5510 PKG_CONFIG=""
b0cacab0 5511 else
57aa50d4
TT
5512 case $cross_compiling:$ac_tool_warned in
5513yes:)
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5516ac_tool_warned=yes ;;
5517esac
5518 PKG_CONFIG=$ac_pt_PKG_CONFIG
b0cacab0 5519 fi
57aa50d4
TT
5520else
5521 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
a64c9c13 5522fi
93636bde 5523
a64c9c13 5524fi
57aa50d4 5525if test -n "$PKG_CONFIG"; then
93613951
TT
5526 _pkg_min_version=0.9.0
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5528$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5529 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5531$as_echo "yes" >&6; }
93613951
TT
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5534$as_echo "no" >&6; }
93613951
TT
5535 PKG_CONFIG=""
5536 fi
57aa50d4
TT
5537fi
5538LIBBLKID=
5539DEPLIBBLKID=
5540STATIC_LIBBLKID=
5541DEPSTATIC_LIBBLKID=
5542PROFILED_LIBBLKID=
5543DEPPROFILED_LIBBLKID=
5544BLKID_CMT=
d1154eb4 5545
57aa50d4
TT
5546# Check whether --enable-libblkid was given.
5547if test "${enable_libblkid+set}" = set; then :
5548 enableval=$enable_libblkid; if test "$enableval" = "no"
5549then
5550 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5551 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5552 fi
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5555$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
d6a4bcb5 5556if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
39fd3d4f 5557 $as_echo_n "(cached) " >&6
a64c9c13 5558else
57aa50d4 5559 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5560LIBS="-lblkid -luuid $LIBS"
57aa50d4
TT
5561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562/* end confdefs.h. */
5563
5564/* Override any GCC internal prototype to avoid an error.
5565 Use char because int might match the return type of a GCC
5566 builtin and then its argument prototype would still apply. */
5567#ifdef __cplusplus
5568extern "C"
5569#endif
5570char blkid_get_cache ();
5571int
5572main ()
5573{
5574return blkid_get_cache ();
5575 ;
5576 return 0;
5577}
5578_ACEOF
5579if ac_fn_c_try_link "$LINENO"; then :
5580 ac_cv_lib_blkid_blkid_get_cache=yes
b0cacab0 5581else
57aa50d4 5582 ac_cv_lib_blkid_blkid_get_cache=no
a64c9c13 5583fi
57aa50d4
TT
5584rm -f core conftest.err conftest.$ac_objext \
5585 conftest$ac_exeext conftest.$ac_ext
5586LIBS=$ac_check_lib_save_LIBS
a64c9c13 5587fi
57aa50d4
TT
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5589$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
d6a4bcb5 5590if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
57aa50d4
TT
5591 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5592 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
b0cacab0 5593else
d6a4bcb5 5594 as_fn_error $? "external blkid library not found" "$LINENO" 5
a64c9c13 5595fi
93636bde 5596
57aa50d4 5597 BLKID_CMT=#
5afdf37b 5598 PROFILED_LIBBLKID=$LIBBLKID
57aa50d4
TT
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5600$as_echo "Disabling private blkid library" >&6; }
07a0db15 5601else
57aa50d4
TT
5602 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5603 DEPLIBBLKID=$LIBBLKID
5604 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5605 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5606 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5607 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5608 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5609
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5611$as_echo "Enabling private blkid library" >&6; }
b0cacab0 5612fi
57aa50d4 5613
a64c9c13 5614else
f5dffb81
TT
5615 if test -n "$PKG_CONFIG"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5617$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5618if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620else
5621 ac_check_lib_save_LIBS=$LIBS
5622LIBS="-lblkid $LIBS"
5623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624/* end confdefs.h. */
5625
5626/* Override any GCC internal prototype to avoid an error.
5627 Use char because int might match the return type of a GCC
5628 builtin and then its argument prototype would still apply. */
5629#ifdef __cplusplus
5630extern "C"
5631#endif
5632char blkid_get_cache ();
5633int
5634main ()
5635{
5636return blkid_get_cache ();
5637 ;
5638 return 0;
5639}
5640_ACEOF
5641if ac_fn_c_try_link "$LINENO"; then :
5642 ac_cv_lib_blkid_blkid_get_cache=yes
5643else
5644 ac_cv_lib_blkid_blkid_get_cache=no
5645fi
5646rm -f core conftest.err conftest.$ac_objext \
5647 conftest$ac_exeext conftest.$ac_ext
5648LIBS=$ac_check_lib_save_LIBS
5649fi
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5651$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5652if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5653 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5654 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5655fi
5656
5657fi
5658if test -n "$LIBBLKID"; then
5659 BLKID_CMT=#
5660 PROFILED_LIBBLKID=$LIBBLKID
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5662$as_echo "Using system blkid library by default" >&6; }
5663else
5664 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5665 DEPLIBBLKID=$LIBBLKID
5666 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5667 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5668 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5669 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5670 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
57aa50d4 5671
f5dffb81 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
57aa50d4 5673$as_echo "Enabling private blkid library by default" >&6; }
f5dffb81 5674fi
57aa50d4 5675
a64c9c13 5676fi
07a0db15 5677
a64c9c13 5678
b0cacab0 5679
b0cacab0 5680
a64c9c13 5681
b0cacab0 5682
07a0db15 5683
57aa50d4 5684
0afb9be6 5685ALL_CMT=
feb235e0 5686SUBSET_CMT=
0afb9be6
TT
5687# Check whether --enable-subset was given.
5688if test "${enable_subset+set}" = set; then :
5689 enableval=$enable_subset; if test "$enableval" = "no"
5690then
feb235e0 5691 SUBSET_CMT=#
0afb9be6
TT
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5693$as_echo "Disabling subset-only build" >&6; }
5694else
5695 ALL_CMT=#
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5697$as_echo "Enabling subset-only-build" >&6; }
5698fi
5699
5700fi
5701
5702
3df6014a 5703
feb235e0 5704
3df6014a
TT
5705# Check whether --enable-backtrace was given.
5706if test "${enable_backtrace+set}" = set; then :
5707 enableval=$enable_backtrace; if test "$enableval" = "no"
5708then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5710$as_echo "Disabling use of backtrace" >&6; }
5711 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5712
5713else
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5715$as_echo "Enabling use of backtrace" >&6; }
5716fi
5717
5718else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5720$as_echo "Enabling use of backtrace by default" >&6; }
5721
5722fi
5723
57aa50d4
TT
5724# Check whether --enable-debugfs was given.
5725if test "${enable_debugfs+set}" = set; then :
5726 enableval=$enable_debugfs; if test "$enableval" = "no"
5727then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5729$as_echo "Disabling debugfs support" >&6; }
5730 DEBUGFS_CMT="#"
b0cacab0 5731else
57aa50d4
TT
5732 DEBUGFS_CMT=
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5734$as_echo "Enabling debugfs support" >&6; }
b0cacab0 5735fi
a64c9c13 5736
b0cacab0 5737else
57aa50d4
TT
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5739$as_echo "Enabling debugfs support by default" >&6; }
5740DEBUGFS_CMT=
a64c9c13 5741
93636bde 5742fi
57aa50d4
TT
5743
5744
5745# Check whether --enable-imager was given.
5746if test "${enable_imager+set}" = set; then :
5747 enableval=$enable_imager; if test "$enableval" = "no"
5748then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5750$as_echo "Disabling e2image support" >&6; }
5751 IMAGER_CMT="#"
b0cacab0 5752else
57aa50d4
TT
5753 IMAGER_CMT=
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5755$as_echo "Enabling e2image support" >&6; }
b0cacab0
TT
5756fi
5757
b0cacab0 5758else
57aa50d4
TT
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5760$as_echo "Enabling e2image support by default" >&6; }
5761IMAGER_CMT=
5762
93636bde
TT
5763fi
5764
a64c9c13 5765
57aa50d4
TT
5766# Check whether --enable-resizer was given.
5767if test "${enable_resizer+set}" = set; then :
5768 enableval=$enable_resizer; if test "$enableval" = "no"
5769then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5771$as_echo "Disabling e2resize support" >&6; }
5772 RESIZER_CMT="#"
b0cacab0 5773else
57aa50d4
TT
5774 RESIZER_CMT=
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5776$as_echo "Enabling e2resize support" >&6; }
5777fi
b0cacab0 5778
b0cacab0 5779else
57aa50d4
TT
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5781$as_echo "Enabling e2resize support by default" >&6; }
5782RESIZER_CMT=
b0cacab0 5783
b0cacab0 5784fi
e1052144 5785
57aa50d4 5786
8d9c50c5
TT
5787# Check whether --enable-defrag was given.
5788if test "${enable_defrag+set}" = set; then :
5789 enableval=$enable_defrag; if test "$enableval" = "no"
5790then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5792$as_echo "Disabling e4defrag support" >&6; }
5793 DEFRAG_CMT="#"
5794else
5795 DEFRAG_CMT=
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5797$as_echo "Enabling e4defrag support" >&6; }
5798fi
5799
5800else
6c59a665
TT
5801 if test -z "$WITH_DIET_LIBC"
5802then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
8d9c50c5 5804$as_echo "Enabling e4defrag support by default" >&6; }
6c59a665
TT
5805 DEFRAG_CMT=
5806else
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5808$as_echo "Disabling e4defrag support by default" >&6; }
5809 DEFRAG_CMT="#"
5810fi
8d9c50c5
TT
5811
5812fi
5813
5814
57aa50d4
TT
5815# Check whether --enable-fsck was given.
5816if test "${enable_fsck+set}" = set; then :
5817 enableval=$enable_fsck; if test "$enableval" = "no"
5818then
5819 FSCK_PROG='' FSCK_MAN=''
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5821$as_echo "Not building fsck wrapper" >&6; }
5822else
5823 FSCK_PROG=fsck FSCK_MAN=fsck.8
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5825$as_echo "Building fsck wrapper" >&6; }
a64c9c13
TT
5826fi
5827
57aa50d4
TT
5828else
5829 case "$host_os" in
5830 gnu*)
5831 FSCK_PROG='' FSCK_MAN=''
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5833$as_echo "Not building fsck wrapper by default" >&6; }
5834 ;;
5835 *)
5836 FSCK_PROG=fsck FSCK_MAN=fsck.8
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5838$as_echo "Building fsck wrapper by default" >&6; }
5839esac
b0cacab0 5840
57aa50d4 5841fi
b0cacab0 5842
93636bde 5843
b0cacab0 5844
57aa50d4
TT
5845# Check whether --enable-e2initrd-helper was given.
5846if test "${enable_e2initrd_helper+set}" = set; then :
5847 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5848then
5849 E2INITRD_PROG='' E2INITRD_MAN=''
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5851$as_echo "Not building e2initrd helper" >&6; }
5852else
5853 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5855$as_echo "Building e2initrd helper" >&6; }
5856fi
a64c9c13 5857
a64c9c13 5858else
57aa50d4
TT
5859 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5861$as_echo "Building e2initrd helper by default" >&6; }
b0cacab0 5862
a64c9c13 5863fi
e1052144 5864
57aa50d4
TT
5865
5866
5867# Check whether --enable-tls was given.
5868if test "${enable_tls+set}" = set; then :
5869 enableval=$enable_tls; if test "$enableval" = "no"
5870then
5871 try_tls=""
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5873$as_echo "Disabling thread local support" >&6; }
5874else
5875 try_tls="yes"
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5877$as_echo "Enabling thread local support" >&6; }
a64c9c13
TT
5878fi
5879
57aa50d4
TT
5880else
5881 if test -n "$WITH_DIET_LIBC"
5882then
5883 try_tls=""
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5885$as_echo "Diet libc does not support thread local support" >&6; }
5886else
5887 try_tls="yes"
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5889$as_echo "Try using thread local support by default" >&6; }
5890fi
a64c9c13 5891
93636bde 5892fi
07a0db15 5893
57aa50d4
TT
5894if test "$try_tls" = "yes"
5895then
a64c9c13 5896
57aa50d4
TT
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5898$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
d6a4bcb5 5899 if ${ac_cv_tls+:} false; then :
39fd3d4f 5900 $as_echo_n "(cached) " >&6
b0cacab0 5901else
b0cacab0 5902
57aa50d4
TT
5903 ax_tls_keywords="__thread __declspec(thread) none"
5904 for ax_tls_keyword in $ax_tls_keywords; do
5905 case $ax_tls_keyword in
5906 none) ac_cv_tls=none ; break ;;
5907 *)
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909/* end confdefs.h. */
5910#include <stdlib.h>
5911 static void
5912 foo(void) {
5913 static $ax_tls_keyword int bar;
5914 exit(1);
5915 }
b0cacab0
TT
5916int
5917main ()
5918{
57aa50d4 5919
b0cacab0
TT
5920 ;
5921 return 0;
5922}
5923_ACEOF
57aa50d4
TT
5924if ac_fn_c_try_compile "$LINENO"; then :
5925 ac_cv_tls=$ax_tls_keyword ; break
b0cacab0 5926else
57aa50d4 5927 ac_cv_tls=none
b0cacab0 5928
b0cacab0 5929fi
e1052144 5930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
5931 esac
5932 done
5933
b0cacab0 5934fi
b0cacab0 5935
57aa50d4
TT
5936
5937 if test "$ac_cv_tls" != "none"; then
5938
5939cat >>confdefs.h <<_ACEOF
5940#define TLS $ac_cv_tls
b0cacab0 5941_ACEOF
93636bde 5942
b0cacab0 5943 fi
57aa50d4
TT
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5945$as_echo "$ac_cv_tls" >&6; }
b0cacab0 5946
57aa50d4 5947fi
d1154eb4 5948
bdcd5f22
TT
5949# Check whether --with-pthread was given.
5950if test "${with_pthread+set}" = set; then :
5951 withval=$with_pthread; if test "$withval" = "no"
57aa50d4 5952then
bdcd5f22
TT
5953 try_pthread=""
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
5955$as_echo "Disabling pthread support" >&6; }
a64c9c13 5956else
bdcd5f22
TT
5957 try_pthread="yes"
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
5959$as_echo "Testing for pthread support" >&6; }
57aa50d4 5960fi
a64c9c13 5961
a64c9c13 5962else
bdcd5f22
TT
5963 try_pthread="yes"
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
5965$as_echo "Try testing for pthread support by default" >&6; }
a64c9c13 5966
bdcd5f22
TT
5967fi
5968
5969if test "$try_pthread" = "yes"
e3d10158 5970then
bdcd5f22
TT
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5972$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5973if ${ac_cv_path_SED+:} false; then :
5974 $as_echo_n "(cached) " >&6
e3d10158 5975else
bdcd5f22
TT
5976 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5977 for ac_i in 1 2 3 4 5 6 7; do
5978 ac_script="$ac_script$as_nl$ac_script"
5979 done
5980 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5981 { ac_script=; unset ac_script;}
5982 if test -z "$SED"; then
5983 ac_path_SED_found=false
5984 # Loop through the user's path and test for each of PROGNAME-LIST
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_prog in sed gsed; do
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5993 as_fn_executable_p "$ac_path_SED" || continue
5994# Check for GNU ac_path_SED and select it if it is found.
5995 # Check for GNU $ac_path_SED
5996case `"$ac_path_SED" --version 2>&1` in
5997*GNU*)
5998 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5999*)
6000 ac_count=0
6001 $as_echo_n 0123456789 >"conftest.in"
6002 while :
6003 do
6004 cat "conftest.in" "conftest.in" >"conftest.tmp"
6005 mv "conftest.tmp" "conftest.in"
6006 cp "conftest.in" "conftest.nl"
6007 $as_echo '' >> "conftest.nl"
6008 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6010 as_fn_arith $ac_count + 1 && ac_count=$as_val
6011 if test $ac_count -gt ${ac_path_SED_max-0}; then
6012 # Best one so far, save it but keep looking for a better one
6013 ac_cv_path_SED="$ac_path_SED"
6014 ac_path_SED_max=$ac_count
6015 fi
6016 # 10*(2^10) chars as input seems more than enough
6017 test $ac_count -gt 10 && break
6018 done
6019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6020esac
6021
6022 $ac_path_SED_found && break 3
6023 done
6024 done
6025 done
6026IFS=$as_save_IFS
6027 if test -z "$ac_cv_path_SED"; then
6028 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6029 fi
6030else
6031 ac_cv_path_SED=$SED
e3d10158 6032fi
e1052144 6033
a64c9c13 6034fi
bdcd5f22
TT
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6036$as_echo "$ac_cv_path_SED" >&6; }
6037 SED="$ac_cv_path_SED"
6038 rm -f conftest.sed
e1052144 6039
93636bde 6040
d6a4bcb5 6041
d6a4bcb5 6042
d6a4bcb5 6043
bdcd5f22
TT
6044ac_ext=c
6045ac_cpp='$CPP $CPPFLAGS'
6046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6048ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6a4bcb5 6049
bdcd5f22
TT
6050ax_pthread_ok=no
6051
6052# We used to check for pthread.h first, but this fails if pthread.h
6053# requires special compiler flags (e.g. on Tru64 or Sequent).
6054# It gets checked for in the link test anyway.
6055
6056# First of all, check if the user has set any of the PTHREAD_LIBS,
6057# etcetera environment variables, and if threads linking works using
6058# them:
6059if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6060 ax_pthread_save_CC="$CC"
6061 ax_pthread_save_CFLAGS="$CFLAGS"
6062 ax_pthread_save_LIBS="$LIBS"
6063 if test "x$PTHREAD_CC" != "x"; then :
6064 CC="$PTHREAD_CC"
6065fi
6066 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6067 LIBS="$PTHREAD_LIBS $LIBS"
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6069$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071/* end confdefs.h. */
d6a4bcb5 6072
bdcd5f22
TT
6073/* Override any GCC internal prototype to avoid an error.
6074 Use char because int might match the return type of a GCC
6075 builtin and then its argument prototype would still apply. */
6076#ifdef __cplusplus
6077extern "C"
6078#endif
6079char pthread_join ();
6080int
6081main ()
6082{
6083return pthread_join ();
6084 ;
6085 return 0;
6086}
6087_ACEOF
6088if ac_fn_c_try_link "$LINENO"; then :
6089 ax_pthread_ok=yes
1625bf42 6090fi
bdcd5f22
TT
6091rm -f core conftest.err conftest.$ac_objext \
6092 conftest$ac_exeext conftest.$ac_ext
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6094$as_echo "$ax_pthread_ok" >&6; }
6095 if test "x$ax_pthread_ok" = "xno"; then
6096 PTHREAD_LIBS=""
6097 PTHREAD_CFLAGS=""
6098 fi
6099 CC="$ax_pthread_save_CC"
6100 CFLAGS="$ax_pthread_save_CFLAGS"
6101 LIBS="$ax_pthread_save_LIBS"
6102fi
6103
6104# We must check for the threads library under a number of different
6105# names; the ordering is very important because some systems
6106# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6107# libraries is broken (non-POSIX).
6108
6109# Create a list of thread flags to try. Items starting with a "-" are
6110# C compiler flags, and other items are library names, except for "none"
6111# which indicates that we try without any flags at all, and "pthread-config"
6112# which is a program returning the flags for the Pth emulation library.
6113
6114ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6115
6116# The ordering *is* (sometimes) important. Some notes on the
6117# individual items follow:
6118
6119# pthreads: AIX (must check this before -lpthread)
6120# none: in case threads are in libc; should be tried before -Kthread and
6121# other compiler flags to prevent continual compiler warnings
6122# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6123# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
6124# (Note: HP C rejects this with "bad form for `-t' option")
6125# -pthreads: Solaris/gcc (Note: HP C also rejects)
6126# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6127# doesn't hurt to check since this sometimes defines pthreads and
6128# -D_REENTRANT too), HP C (must be checked before -lpthread, which
6129# is present but should not be used directly; and before -mthreads,
6130# because the compiler interprets this as "-mt" + "-hreads")
6131# -mthreads: Mingw32/gcc, Lynx/gcc
6132# pthread: Linux, etcetera
6133# --thread-safe: KAI C++
6134# pthread-config: use pthread-config program (for GNU Pth library)
6135
6136case $host_os in
6137
6138 freebsd*)
6139
6140 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6141 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6142
6143 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
6144 ;;
1625bf42 6145
bdcd5f22 6146 hpux*)
1625bf42 6147
bdcd5f22
TT
6148 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
6149 # multi-threading and also sets -lpthread."
749f0712 6150
bdcd5f22
TT
6151 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
6152 ;;
749f0712 6153
bdcd5f22 6154 openedition*)
749f0712 6155
bdcd5f22
TT
6156 # IBM z/OS requires a feature-test macro to be defined in order to
6157 # enable POSIX threads at all, so give the user a hint if this is
6158 # not set. (We don't define these ourselves, as they can affect
6159 # other portions of the system API in unpredictable ways.)
749f0712 6160
bdcd5f22
TT
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h. */
6163
6164# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
6165 AX_PTHREAD_ZOS_MISSING
6166# endif
6167
6168_ACEOF
6169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6170 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
6172$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
749f0712 6173fi
bdcd5f22 6174rm -f conftest*
749f0712 6175
bdcd5f22 6176 ;;
749f0712 6177
bdcd5f22 6178 solaris*)
749f0712 6179
bdcd5f22
TT
6180 # On Solaris (at least, for some versions), libc contains stubbed
6181 # (non-functional) versions of the pthreads routines, so link-based
6182 # tests will erroneously succeed. (N.B.: The stubs are missing
6183 # pthread_cleanup_push, or rather a function called by this macro,
6184 # so we could check for that, but who knows whether they'll stub
6185 # that too in a future libc.) So we'll check first for the
6186 # standard Solaris way of linking pthreads (-mt -lpthread).
749f0712 6187
bdcd5f22
TT
6188 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
6189 ;;
6190esac
6191
6192# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
1625bf42 6193
bdcd5f22
TT
6194if test "x$GCC" = "xyes"; then :
6195 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
1625bf42
TB
6196fi
6197
bdcd5f22
TT
6198# The presence of a feature test macro requesting re-entrant function
6199# definitions is, on some systems, a strong hint that pthreads support is
6200# correctly enabled
1625bf42 6201
bdcd5f22
TT
6202case $host_os in
6203 darwin* | hpux* | linux* | osf* | solaris*)
6204 ax_pthread_check_macro="_REENTRANT"
6205 ;;
6206
6207 aix*)
6208 ax_pthread_check_macro="_THREAD_SAFE"
6209 ;;
1625bf42 6210
bdcd5f22
TT
6211 *)
6212 ax_pthread_check_macro="--"
6213 ;;
6214esac
6215if test "x$ax_pthread_check_macro" = "x--"; then :
6216 ax_pthread_check_cond=0
6217else
6218 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
1625bf42
TB
6219fi
6220
bdcd5f22 6221# Are we compiling with Clang?
1625bf42 6222
bdcd5f22
TT
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
6224$as_echo_n "checking whether $CC is Clang... " >&6; }
6225if ${ax_cv_PTHREAD_CLANG+:} false; then :
6226 $as_echo_n "(cached) " >&6
1625bf42 6227else
bdcd5f22
TT
6228 ax_cv_PTHREAD_CLANG=no
6229 # Note that Autoconf sets GCC=yes for Clang as well as GCC
6230 if test "x$GCC" = "xyes"; then
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232/* end confdefs.h. */
6233/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
6234# if defined(__clang__) && defined(__llvm__)
6235 AX_PTHREAD_CC_IS_CLANG
6236# endif
6237
6238_ACEOF
6239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6240 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
6241 ax_cv_PTHREAD_CLANG=yes
1625bf42 6242fi
bdcd5f22 6243rm -f conftest*
1625bf42 6244
bdcd5f22 6245 fi
1625bf42
TB
6246
6247fi
bdcd5f22
TT
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
6249$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
6250ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
6251
6252ax_pthread_clang_warning=no
6253
6254# Clang needs special handling, because older versions handle the -pthread
6255# option in a rather... idiosyncratic way
6256
6257if test "x$ax_pthread_clang" = "xyes"; then
6258
6259 # Clang takes -pthread; it has never supported any other flag
6260
6261 # (Note 1: This will need to be revisited if a system that Clang
6262 # supports has POSIX threads in a separate library. This tends not
6263 # to be the way of modern systems, but it's conceivable.)
6264
6265 # (Note 2: On some systems, notably Darwin, -pthread is not needed
6266 # to get POSIX threads support; the API is always present and
6267 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
6268 # -pthread does define _REENTRANT, and while the Darwin headers
6269 # ignore this macro, third-party headers might not.)
6270
6271 PTHREAD_CFLAGS="-pthread"
6272 PTHREAD_LIBS=
6273
6274 ax_pthread_ok=yes
6275
6276 # However, older versions of Clang make a point of warning the user
6277 # that, in an invocation where only linking and no compilation is
6278 # taking place, the -pthread option has no effect ("argument unused
6279 # during compilation"). They expect -pthread to be passed in only
6280 # when source code is being compiled.
6281 #
6282 # Problem is, this is at odds with the way Automake and most other
6283 # C build frameworks function, which is that the same flags used in
6284 # compilation (CFLAGS) are also used in linking. Many systems
6285 # supported by AX_PTHREAD require exactly this for POSIX threads
6286 # support, and in fact it is often not straightforward to specify a
6287 # flag that is used only in the compilation phase and not in
6288 # linking. Such a scenario is extremely rare in practice.
6289 #
6290 # Even though use of the -pthread flag in linking would only print
6291 # a warning, this can be a nuisance for well-run software projects
6292 # that build with -Werror. So if the active version of Clang has
6293 # this misfeature, we search for an option to squash it.
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6296$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6297if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
6298 $as_echo_n "(cached) " >&6
1625bf42 6299else
bdcd5f22
TT
6300 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6301 # Create an alternate version of $ac_link that compiles and
6302 # links in two steps (.c -> .o, .o -> exe) instead of one
6303 # (.c -> exe), because the warning occurs only in the second
6304 # step
6305 ax_pthread_save_ac_link="$ac_link"
6306 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6307 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
6308 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6309 ax_pthread_save_CFLAGS="$CFLAGS"
6310 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6311 if test "x$ax_pthread_try" = "xunknown"; then :
6312 break
d6a4bcb5 6313fi
bdcd5f22
TT
6314 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6315 ac_link="$ax_pthread_save_ac_link"
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317/* end confdefs.h. */
6318int main(void){return 0;}
6319_ACEOF
6320if ac_fn_c_try_link "$LINENO"; then :
6321 ac_link="$ax_pthread_2step_ac_link"
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323/* end confdefs.h. */
6324int main(void){return 0;}
6325_ACEOF
6326if ac_fn_c_try_link "$LINENO"; then :
6327 break
6328fi
6329rm -f core conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext conftest.$ac_ext
d6a4bcb5 6331
bdcd5f22
TT
6332fi
6333rm -f core conftest.err conftest.$ac_objext \
6334 conftest$ac_exeext conftest.$ac_ext
6335 done
6336 ac_link="$ax_pthread_save_ac_link"
6337 CFLAGS="$ax_pthread_save_CFLAGS"
6338 if test "x$ax_pthread_try" = "x"; then :
6339 ax_pthread_try=no
6340fi
6341 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
d1154eb4 6342
bdcd5f22
TT
6343fi
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6345$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
a64c9c13 6346
bdcd5f22
TT
6347 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6348 no | unknown) ;;
6349 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6350 esac
d1154eb4 6351
bdcd5f22 6352fi # $ax_pthread_clang = yes
57aa50d4 6353
bdcd5f22
TT
6354if test "x$ax_pthread_ok" = "xno"; then
6355for ax_pthread_try_flag in $ax_pthread_flags; do
57aa50d4 6356
bdcd5f22
TT
6357 case $ax_pthread_try_flag in
6358 none)
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6360$as_echo_n "checking whether pthreads work without any flags... " >&6; }
6361 ;;
57aa50d4 6362
bdcd5f22
TT
6363 -mt,pthread)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
6365$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
6366 PTHREAD_CFLAGS="-mt"
6367 PTHREAD_LIBS="-lpthread"
6368 ;;
57aa50d4 6369
bdcd5f22
TT
6370 -*)
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6372$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6373 PTHREAD_CFLAGS="$ax_pthread_try_flag"
6374 ;;
57aa50d4 6375
bdcd5f22
TT
6376 pthread-config)
6377 # Extract the first word of "pthread-config", so it can be a program name with args.
6378set dummy pthread-config; ac_word=$2
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
6381if ${ac_cv_prog_ax_pthread_config+:} false; then :
39fd3d4f 6382 $as_echo_n "(cached) " >&6
b0cacab0 6383else
bdcd5f22
TT
6384 if test -n "$ax_pthread_config"; then
6385 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_ax_pthread_config="yes"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398done
6399 done
6400IFS=$as_save_IFS
6401
6402 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6403fi
6404fi
6405ax_pthread_config=$ac_cv_prog_ax_pthread_config
6406if test -n "$ax_pthread_config"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6408$as_echo "$ax_pthread_config" >&6; }
6409else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411$as_echo "no" >&6; }
6412fi
6413
6414
6415 if test "x$ax_pthread_config" = "xno"; then :
6416 continue
6417fi
6418 PTHREAD_CFLAGS="`pthread-config --cflags`"
6419 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6420 ;;
6421
6422 *)
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6424$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6425 PTHREAD_LIBS="-l$ax_pthread_try_flag"
6426 ;;
6427 esac
6428
6429 ax_pthread_save_CFLAGS="$CFLAGS"
6430 ax_pthread_save_LIBS="$LIBS"
6431 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6432 LIBS="$PTHREAD_LIBS $LIBS"
6433
6434 # Check for various functions. We must include pthread.h,
6435 # since some functions may be macros. (On the Sequent, we
6436 # need a special flag -Kthread to make this header compile.)
6437 # We check for pthread_join because it is in -lpthread on IRIX
6438 # while pthread_create is in libc. We check for pthread_attr_init
6439 # due to DEC craziness with -lpthreads. We check for
6440 # pthread_cleanup_push because it is one of the few pthread
6441 # functions on Solaris that doesn't have a non-functional libc stub.
6442 # We try pthread_create on general principles.
6443
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445/* end confdefs.h. */
6446#include <pthread.h>
6447# if $ax_pthread_check_cond
6448# error "$ax_pthread_check_macro must be defined"
6449# endif
6450 static void routine(void *a) { a = 0; }
6451 static void *start_routine(void *a) { return a; }
6452int
6453main ()
6454{
6455pthread_t th; pthread_attr_t attr;
6456 pthread_create(&th, 0, start_routine, 0);
6457 pthread_join(th, 0);
6458 pthread_attr_init(&attr);
6459 pthread_cleanup_push(routine, 0);
6460 pthread_cleanup_pop(0) /* ; */
6461 ;
6462 return 0;
6463}
6464_ACEOF
6465if ac_fn_c_try_link "$LINENO"; then :
6466 ax_pthread_ok=yes
6467fi
6468rm -f core conftest.err conftest.$ac_objext \
6469 conftest$ac_exeext conftest.$ac_ext
6470
6471 CFLAGS="$ax_pthread_save_CFLAGS"
6472 LIBS="$ax_pthread_save_LIBS"
6473
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6475$as_echo "$ax_pthread_ok" >&6; }
6476 if test "x$ax_pthread_ok" = "xyes"; then :
6477 break
6478fi
6479
6480 PTHREAD_LIBS=""
6481 PTHREAD_CFLAGS=""
6482done
6483fi
6484
6485# Various other checks:
6486if test "x$ax_pthread_ok" = "xyes"; then
6487 ax_pthread_save_CFLAGS="$CFLAGS"
6488 ax_pthread_save_LIBS="$LIBS"
6489 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6490 LIBS="$PTHREAD_LIBS $LIBS"
6491
6492 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6494$as_echo_n "checking for joinable pthread attribute... " >&6; }
6495if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497else
6498 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6499 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h. */
6502#include <pthread.h>
6503int
6504main ()
6505{
6506int attr = $ax_pthread_attr; return attr /* ; */
6507 ;
6508 return 0;
6509}
6510_ACEOF
6511if ac_fn_c_try_link "$LINENO"; then :
6512 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6513fi
6514rm -f core conftest.err conftest.$ac_objext \
6515 conftest$ac_exeext conftest.$ac_ext
6516 done
6517
6518fi
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6520$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6521 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6522 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6523 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
6524
6525cat >>confdefs.h <<_ACEOF
6526#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
6527_ACEOF
6528
6529 ax_pthread_joinable_attr_defined=yes
6530
6531fi
6532
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6534$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
6535if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537else
6538 ax_cv_PTHREAD_SPECIAL_FLAGS=no
6539 case $host_os in
6540 solaris*)
6541 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6542 ;;
6543 esac
6544
6545fi
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
6547$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
6548 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
6549 test "x$ax_pthread_special_flags_added" != "xyes"; then :
6550 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
6551 ax_pthread_special_flags_added=yes
6552fi
6553
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6555$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6556if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558else
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560/* end confdefs.h. */
6561#include <pthread.h>
6562int
6563main ()
6564{
6565int i = PTHREAD_PRIO_INHERIT;
6566 ;
6567 return 0;
6568}
6569_ACEOF
6570if ac_fn_c_try_link "$LINENO"; then :
6571 ax_cv_PTHREAD_PRIO_INHERIT=yes
6572else
6573 ax_cv_PTHREAD_PRIO_INHERIT=no
6574fi
6575rm -f core conftest.err conftest.$ac_objext \
6576 conftest$ac_exeext conftest.$ac_ext
6577
6578fi
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6580$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6581 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
6582 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
6583
6584$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6585
6586 ax_pthread_prio_inherit_defined=yes
6587
6588fi
6589
6590 CFLAGS="$ax_pthread_save_CFLAGS"
6591 LIBS="$ax_pthread_save_LIBS"
6592
6593 # More AIX lossage: compile with *_r variant
6594 if test "x$GCC" != "xyes"; then
6595 case $host_os in
6596 aix*)
6597 case "x/$CC" in #(
6598 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
6599 #handle absolute path differently from PATH based program lookup
6600 case "x$CC" in #(
6601 x/*) :
6602 if as_fn_executable_p ${CC}_r; then :
6603 PTHREAD_CC="${CC}_r"
6604fi ;; #(
6605 *) :
6606 for ac_prog in ${CC}_r
6607do
6608 # Extract the first word of "$ac_prog", so it can be a program name with args.
6609set dummy $ac_prog; ac_word=$2
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611$as_echo_n "checking for $ac_word... " >&6; }
6612if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614else
6615 if test -n "$PTHREAD_CC"; then
6616 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6617else
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_PTHREAD_CC="$ac_prog"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629done
6630 done
6631IFS=$as_save_IFS
6632
6633fi
6634fi
6635PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6636if test -n "$PTHREAD_CC"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6638$as_echo "$PTHREAD_CC" >&6; }
6639else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641$as_echo "no" >&6; }
6642fi
6643
6644
6645 test -n "$PTHREAD_CC" && break
6646done
6647test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6648 ;;
6649esac ;; #(
6650 *) :
6651 ;;
6652esac
6653 ;;
6654 esac
6655 fi
6656fi
6657
6658test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6659
6660
6661
6662
6663
6664# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6665if test "x$ax_pthread_ok" = "xyes"; then
6666
6667$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6668
6669 :
6670else
6671 ax_pthread_ok=no
6672
6673fi
6674ac_ext=c
6675ac_cpp='$CPP $CPPFLAGS'
6676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678ac_compiler_gnu=$ac_cv_c_compiler_gnu
6679
6680
6681else
6682test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6683
6684fi
6685
6686# Check whether --enable-uuidd was given.
6687if test "${enable_uuidd+set}" = set; then :
6688 enableval=$enable_uuidd; if test "$enableval" = "no"
6689then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
6691$as_echo "Not building uuidd" >&6; }
6692 UUIDD_CMT="#"
6693else
6694 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6695
6696 UUIDD_CMT=""
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6698$as_echo "Building uuidd" >&6; }
6699fi
6700
6701else
6702 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6703
6704if test -z "$UUID_CMT"
6705then
6706 UUIDD_CMT=""
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
6708$as_echo "Building uuidd by default" >&6; }
6709else
6710 UUIDD_CMT="#"
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6712$as_echo "Disabling uuidd by default" >&6; }
6713fi
6714
6715fi
6716
6717
6718
6719# Check whether --enable-mmp was given.
6720if test "${enable_mmp+set}" = set; then :
6721 enableval=$enable_mmp; if test "$enableval" = "no"
6722then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6724$as_echo "Disabling mmp support" >&6; }
6725else
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6727$as_echo "Enabling mmp support" >&6; }
6728 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6729
6730fi
6731
6732else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6734$as_echo "Enabling mmp support by default" >&6; }
6735$as_echo "#define CONFIG_MMP 1" >>confdefs.h
6736
6737
6738fi
6739
6740
6741# Check whether --enable-tdb was given.
6742if test "${enable_tdb+set}" = set; then :
6743 enableval=$enable_tdb; if test "$enableval" = "no"
6744then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6746$as_echo "Disabling tdb support" >&6; }
6747 TDB_CMT="#"
6748 TDB_MAN_COMMENT='.\"'
6749else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6751$as_echo "Enabling tdb support" >&6; }
6752 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6753
6754 TDB_CMT=""
6755 TDB_MAN_COMMENT=""
6756fi
6757
6758else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6760$as_echo "Enabling mmp support by default" >&6; }
6761$as_echo "#define CONFIG_TDB 1" >>confdefs.h
6762
6763TDB_CMT=""
6764TDB_MAN_COMMENT=""
6765
6766fi
6767
6768
6769
6770
6771# Check whether --enable-bmap-stats was given.
6772if test "${enable_bmap_stats+set}" = set; then :
6773 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6774then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6776$as_echo "Disabling bitmap statistics support" >&6; }
6777else
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6779$as_echo "Enabling bitmap statistics support" >&6; }
6780 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6781
6782fi
6783
6784else
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6786$as_echo "Enabling bitmap statistics support by default" >&6; }
6787$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6788
6789
6790fi
6791
6792
6793# Check whether --enable-bmap-stats-ops was given.
6794if test "${enable_bmap_stats_ops+set}" = set; then :
6795 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6796then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6798$as_echo "Disabling additional bitmap statistics" >&6; }
6799else
6800 if test "x${enable_bmap_stats}" = "xno"; then :
6801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6803as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6804See \`config.log' for more details" "$LINENO" 5; }
6805fi
6806
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6808$as_echo "Enabling additional bitmap statistics" >&6; }
6809 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6810
6811fi
6812
6813else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6815$as_echo "Disabling additional bitmap statistics by default" >&6; }
6816
6817fi
6818
6819MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6820
6821GETTEXT_PACKAGE=e2fsprogs
6822PACKAGE=e2fsprogs
6823VERSION="$E2FSPROGS_VERSION"
6824VERSION=0.14.1
6825
6826cat >>confdefs.h <<_ACEOF
6827#define PACKAGE "$PACKAGE"
6828_ACEOF
6829
6830
6831cat >>confdefs.h <<_ACEOF
6832#define VERSION "$VERSION"
6833_ACEOF
6834
6835
6836
6837
6838
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6840$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6841set x ${MAKE-make}
6842ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6843if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845else
6846 cat >conftest.make <<\_ACEOF
6847SHELL = /bin/sh
6848all:
6849 @echo '@@@%%%=$(MAKE)=@@@%%%'
6850_ACEOF
6851# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6852case `${MAKE-make} -f conftest.make 2>/dev/null` in
6853 *@@@%%%=?*=@@@%%%*)
6854 eval ac_cv_prog_make_${ac_make}_set=yes;;
6855 *)
6856 eval ac_cv_prog_make_${ac_make}_set=no;;
6857esac
57aa50d4
TT
6858rm -f conftest.make
6859fi
6860if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6862$as_echo "yes" >&6; }
6863 SET_MAKE=
39fd3d4f 6864else
57aa50d4
TT
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866$as_echo "no" >&6; }
6867 SET_MAKE="MAKE=${MAKE-make}"
39fd3d4f
SJR
6868fi
6869
57aa50d4
TT
6870# Find a good install program. We prefer a C program (faster),
6871# so one script is as good as another. But avoid the broken or
6872# incompatible versions:
6873# SysV /etc/install, /usr/sbin/install
6874# SunOS /usr/etc/install
6875# IRIX /sbin/install
6876# AIX /bin/install
6877# AmigaOS /C/install, which installs bootblocks on floppy discs
6878# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6879# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6880# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6881# OS/2's system install, which has a completely different semantic
6882# ./install, which can be erroneously created by make from ./install.sh.
6883# Reject install programs that cannot install multiple files.
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6885$as_echo_n "checking for a BSD-compatible install... " >&6; }
6886if test -z "$INSTALL"; then
d6a4bcb5 6887if ${ac_cv_path_install+:} false; then :
57aa50d4 6888 $as_echo_n "(cached) " >&6
93636bde 6889else
57aa50d4
TT
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 # Account for people who put trailing slashes in PATH elements.
6896case $as_dir/ in #((
6897 ./ | .// | /[cC]/* | \
6898 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6899 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6900 /usr/ucb/* ) ;;
6901 *)
6902 # OSF1 and SCO ODT 3.0 have their own names for install.
6903 # Don't use installbsd from OSF since it installs stuff as root
6904 # by default.
6905 for ac_prog in ginstall scoinst install; do
6906 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6907 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
57aa50d4
TT
6908 if test $ac_prog = install &&
6909 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6910 # AIX install. It has an incompatible calling convention.
6911 :
6912 elif test $ac_prog = install &&
6913 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6914 # program-specific install script used by HP pwplus--don't use.
6915 :
6916 else
6917 rm -rf conftest.one conftest.two conftest.dir
6918 echo one > conftest.one
6919 echo two > conftest.two
6920 mkdir conftest.dir
6921 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6922 test -s conftest.one && test -s conftest.two &&
6923 test -s conftest.dir/conftest.one &&
6924 test -s conftest.dir/conftest.two
6925 then
6926 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6927 break 3
6928 fi
6929 fi
6930 fi
6931 done
6932 done
6933 ;;
6934esac
6935
6936 done
6937IFS=$as_save_IFS
b0cacab0 6938
57aa50d4 6939rm -rf conftest.one conftest.two conftest.dir
39fd3d4f 6940
93636bde 6941fi
57aa50d4
TT
6942 if test "${ac_cv_path_install+set}" = set; then
6943 INSTALL=$ac_cv_path_install
6944 else
6945 # As a last resort, use the slow shell script. Don't cache a
6946 # value for INSTALL within a source directory, because that will
6947 # break other packages using the cache if that directory is
6948 # removed, or if the value is a relative name.
6949 INSTALL=$ac_install_sh
6950 fi
93636bde 6951fi
57aa50d4
TT
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6953$as_echo "$INSTALL" >&6; }
a64c9c13 6954
57aa50d4
TT
6955# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6956# It thinks the first close brace ends the variable substitution.
6957test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b0cacab0 6958
57aa50d4 6959test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a64c9c13 6960
57aa50d4 6961test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39fd3d4f 6962
93613951
TT
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6964$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6965if test -z "$MKDIR_P"; then
6966 if ${ac_cv_path_mkdir+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968else
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6971do
6972 IFS=$as_save_IFS
6973 test -z "$as_dir" && as_dir=.
6974 for ac_prog in mkdir gmkdir; do
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6977 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6978 'mkdir (GNU coreutils) '* | \
6979 'mkdir (coreutils) '* | \
6980 'mkdir (fileutils) '4.1*)
6981 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6982 break 3;;
6983 esac
6984 done
6985 done
6986 done
6987IFS=$as_save_IFS
6988
6989fi
39fd3d4f 6990
93613951
TT
6991 test -d ./--version && rmdir ./--version
6992 if test "${ac_cv_path_mkdir+set}" = set; then
6993 MKDIR_P="$ac_cv_path_mkdir -p"
6994 else
6995 # As a last resort, use the slow shell script. Don't cache a
6996 # value for MKDIR_P within a source directory, because that will
6997 # break other packages using the cache if that directory is
6998 # removed, or if the value is a relative name.
6999 MKDIR_P="$ac_install_sh -d"
57aa50d4 7000 fi
93613951
TT
7001fi
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7003$as_echo "$MKDIR_P" >&6; }
7004
e1052144 7005
57aa50d4
TT
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7007$as_echo_n "checking whether NLS is requested... " >&6; }
7008 # Check whether --enable-nls was given.
7009if test "${enable_nls+set}" = set; then :
7010 enableval=$enable_nls; USE_NLS=$enableval
b0cacab0 7011else
57aa50d4
TT
7012 USE_NLS=yes
7013fi
b0cacab0 7014
57aa50d4
TT
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7016$as_echo "$USE_NLS" >&6; }
93636bde 7017
a64c9c13 7018
a64c9c13 7019
b0cacab0 7020
bdcd5f22 7021 GETTEXT_MACRO_VERSION=0.20
93613951
TT
7022
7023
b0cacab0 7024
a64c9c13 7025
57aa50d4
TT
7026# Prepare PATH_SEPARATOR.
7027# The user is always right.
7028if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
7029 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7030 # contains only /bin. Note that ksh looks also at the FPATH variable,
7031 # so we have to set that as well for the test.
7032 PATH_SEPARATOR=:
7033 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7034 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7035 || PATH_SEPARATOR=';'
7036 }
57aa50d4 7037fi
b0cacab0 7038
57aa50d4
TT
7039# Find out how to test for executable files. Don't use a zero-byte file,
7040# as systems may use methods other than mode bits to determine executability.
7041cat >conf$$.file <<_ASEOF
7042#! /bin/sh
7043exit 0
7044_ASEOF
7045chmod +x conf$$.file
7046if test -x conf$$.file >/dev/null 2>&1; then
7047 ac_executable_p="test -x"
7048else
7049 ac_executable_p="test -f"
7050fi
7051rm -f conf$$.file
b0cacab0 7052
57aa50d4
TT
7053# Extract the first word of "msgfmt", so it can be a program name with args.
7054set dummy msgfmt; ac_word=$2
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 7057if ${ac_cv_path_MSGFMT+:} false; then :
39fd3d4f 7058 $as_echo_n "(cached) " >&6
93636bde 7059else
57aa50d4
TT
7060 case "$MSGFMT" in
7061 [\\/]* | ?:[\\/]*)
7062 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7063 ;;
7064 *)
7065 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7066 for ac_dir in $PATH; do
7067 IFS="$ac_save_IFS"
7068 test -z "$ac_dir" && ac_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
7071 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7072 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
57aa50d4
TT
7073 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7074 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7075 break 2
7076 fi
7077 fi
7078 done
7079 done
7080 IFS="$ac_save_IFS"
7081 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7082 ;;
e1052144 7083esac
b0cacab0 7084fi
57aa50d4
TT
7085MSGFMT="$ac_cv_path_MSGFMT"
7086if test "$MSGFMT" != ":"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7088$as_echo "$MSGFMT" >&6; }
7089else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091$as_echo "no" >&6; }
b0cacab0 7092fi
a64c9c13 7093
57aa50d4
TT
7094 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7095set dummy gmsgfmt; ac_word=$2
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 7098if ${ac_cv_path_GMSGFMT+:} false; then :
39fd3d4f 7099 $as_echo_n "(cached) " >&6
93636bde 7100else
57aa50d4
TT
7101 case $GMSGFMT in
7102 [\\/]* | ?:[\\/]*)
7103 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7104 ;;
7105 *)
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 7112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
7113 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117done
7118 done
7119IFS=$as_save_IFS
a64c9c13 7120
57aa50d4
TT
7121 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7122 ;;
e1052144 7123esac
57aa50d4
TT
7124fi
7125GMSGFMT=$ac_cv_path_GMSGFMT
7126if test -n "$GMSGFMT"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7128$as_echo "$GMSGFMT" >&6; }
b0cacab0 7129else
57aa50d4
TT
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131$as_echo "no" >&6; }
b0cacab0 7132fi
e1052144 7133
b0cacab0 7134
b0cacab0 7135
bdcd5f22 7136 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
93613951
TT
7137 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7138 *) GMSGFMT_015=$GMSGFMT ;;
7139 esac
7140
7141
57aa50d4
TT
7142
7143# Prepare PATH_SEPARATOR.
7144# The user is always right.
7145if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
7146 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7147 # contains only /bin. Note that ksh looks also at the FPATH variable,
7148 # so we have to set that as well for the test.
7149 PATH_SEPARATOR=:
7150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7151 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7152 || PATH_SEPARATOR=';'
7153 }
57aa50d4 7154fi
b0cacab0 7155
57aa50d4
TT
7156# Find out how to test for executable files. Don't use a zero-byte file,
7157# as systems may use methods other than mode bits to determine executability.
7158cat >conf$$.file <<_ASEOF
7159#! /bin/sh
7160exit 0
7161_ASEOF
7162chmod +x conf$$.file
7163if test -x conf$$.file >/dev/null 2>&1; then
7164 ac_executable_p="test -x"
7165else
7166 ac_executable_p="test -f"
7167fi
7168rm -f conf$$.file
b0cacab0 7169
57aa50d4
TT
7170# Extract the first word of "xgettext", so it can be a program name with args.
7171set dummy xgettext; ac_word=$2
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 7174if ${ac_cv_path_XGETTEXT+:} false; then :
39fd3d4f 7175 $as_echo_n "(cached) " >&6
a64c9c13 7176else
57aa50d4
TT
7177 case "$XGETTEXT" in
7178 [\\/]* | ?:[\\/]*)
7179 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7180 ;;
7181 *)
7182 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7183 for ac_dir in $PATH; do
7184 IFS="$ac_save_IFS"
7185 test -z "$ac_dir" && ac_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
7188 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7189 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
57aa50d4
TT
7190 (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
7191 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7192 break 2
7193 fi
7194 fi
7195 done
7196 done
7197 IFS="$ac_save_IFS"
7198 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7199 ;;
e1052144 7200esac
b0cacab0 7201fi
57aa50d4
TT
7202XGETTEXT="$ac_cv_path_XGETTEXT"
7203if test "$XGETTEXT" != ":"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7205$as_echo "$XGETTEXT" >&6; }
7206else
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208$as_echo "no" >&6; }
b0cacab0 7209fi
b0cacab0 7210
57aa50d4 7211 rm -f messages.po
a64c9c13 7212
93613951
TT
7213 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7214 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7215 *) XGETTEXT_015=$XGETTEXT ;;
7216 esac
7217
7218
b0cacab0 7219
57aa50d4
TT
7220# Prepare PATH_SEPARATOR.
7221# The user is always right.
7222if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
7223 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7224 # contains only /bin. Note that ksh looks also at the FPATH variable,
7225 # so we have to set that as well for the test.
7226 PATH_SEPARATOR=:
7227 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7228 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7229 || PATH_SEPARATOR=';'
7230 }
57aa50d4 7231fi
b0cacab0 7232
57aa50d4
TT
7233# Find out how to test for executable files. Don't use a zero-byte file,
7234# as systems may use methods other than mode bits to determine executability.
7235cat >conf$$.file <<_ASEOF
7236#! /bin/sh
7237exit 0
7238_ASEOF
7239chmod +x conf$$.file
7240if test -x conf$$.file >/dev/null 2>&1; then
7241 ac_executable_p="test -x"
7242else
7243 ac_executable_p="test -f"
7244fi
7245rm -f conf$$.file
7246
7247# Extract the first word of "msgmerge", so it can be a program name with args.
7248set dummy msgmerge; ac_word=$2
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 7251if ${ac_cv_path_MSGMERGE+:} false; then :
39fd3d4f 7252 $as_echo_n "(cached) " >&6
b0cacab0 7253else
57aa50d4
TT
7254 case "$MSGMERGE" in
7255 [\\/]* | ?:[\\/]*)
7256 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7257 ;;
7258 *)
7259 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7260 for ac_dir in $PATH; do
7261 IFS="$ac_save_IFS"
7262 test -z "$ac_dir" && ac_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
7265 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7266 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
57aa50d4
TT
7267 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7268 break 2
7269 fi
7270 fi
7271 done
7272 done
7273 IFS="$ac_save_IFS"
7274 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7275 ;;
e1052144 7276esac
57aa50d4
TT
7277fi
7278MSGMERGE="$ac_cv_path_MSGMERGE"
7279if test "$MSGMERGE" != ":"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7281$as_echo "$MSGMERGE" >&6; }
b0cacab0 7282else
57aa50d4
TT
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284$as_echo "no" >&6; }
b0cacab0 7285fi
e1052144 7286
93636bde 7287
bdcd5f22
TT
7288 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
7289 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
7290 else
7291 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
7292 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
7293 else
7294 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
7295 fi
7296 fi
93613951
TT
7297
7298
7299 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7300
7301
7302 ac_config_commands="$ac_config_commands po-directories"
a64c9c13 7303
a64c9c13 7304
93613951 7305
e598c29b
TT
7306 if test "X$prefix" = "XNONE"; then
7307 acl_final_prefix="$ac_default_prefix"
7308 else
7309 acl_final_prefix="$prefix"
7310 fi
7311 if test "X$exec_prefix" = "XNONE"; then
7312 acl_final_exec_prefix='${prefix}'
7313 else
7314 acl_final_exec_prefix="$exec_prefix"
7315 fi
7316 acl_save_prefix="$prefix"
7317 prefix="$acl_final_prefix"
7318 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7319 prefix="$acl_save_prefix"
93613951 7320
93613951 7321
e598c29b
TT
7322
7323# Check whether --with-gnu-ld was given.
7324if test "${with_gnu_ld+set}" = set; then :
7325 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
93613951 7326else
e598c29b 7327 with_gnu_ld=no
93613951 7328fi
a64c9c13 7329
e598c29b
TT
7330# Prepare PATH_SEPARATOR.
7331# The user is always right.
7332if test "${PATH_SEPARATOR+set}" != set; then
7333 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7334 # contains only /bin. Note that ksh looks also at the FPATH variable,
7335 # so we have to set that as well for the test.
7336 PATH_SEPARATOR=:
7337 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7338 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7339 || PATH_SEPARATOR=';'
7340 }
d1154eb4
TT
7341fi
7342
bdcd5f22
TT
7343if test -n "$LD"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
7345$as_echo_n "checking for ld... " >&6; }
7346elif test "$GCC" = yes; then
e598c29b 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
bdcd5f22 7348$as_echo_n "checking for ld used by $CC... " >&6; }
e598c29b
TT
7349elif test "$with_gnu_ld" = yes; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7351$as_echo_n "checking for GNU ld... " >&6; }
7352else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7354$as_echo_n "checking for non-GNU ld... " >&6; }
d1154eb4 7355fi
bdcd5f22
TT
7356if test -n "$LD"; then
7357 # Let the user override the test with a path.
7358 :
7359else
7360 if ${acl_cv_path_LD+:} false; then :
d1154eb4
TT
7361 $as_echo_n "(cached) " >&6
7362else
bdcd5f22
TT
7363
7364 acl_cv_path_LD= # Final result of this test
7365 ac_prog=ld # Program to search in $PATH
7366 if test "$GCC" = yes; then
7367 # Check if gcc -print-prog-name=ld gives a path.
7368 case $host in
7369 *-*-mingw*)
7370 # gcc leaves a trailing carriage return which upsets mingw
7371 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7372 *)
7373 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
7374 esac
7375 case $acl_output in
7376 # Accept absolute paths.
7377 [\\/]* | ?:[\\/]*)
7378 re_direlt='/[^/][^/]*/\.\./'
7379 # Canonicalize the pathname of ld
7380 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
7381 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
7382 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
7383 done
7384 # Got the pathname. No search in PATH is needed.
7385 acl_cv_path_LD="$acl_output"
7386 ac_prog=
7387 ;;
7388 "")
7389 # If it fails, then pretend we aren't using GCC.
7390 ;;
7391 *)
7392 # If it is relative, then search for the first ld in PATH.
7393 with_gnu_ld=unknown
7394 ;;
e598c29b
TT
7395 esac
7396 fi
bdcd5f22
TT
7397 if test -n "$ac_prog"; then
7398 # Search for $ac_prog in $PATH.
7399 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7400 for ac_dir in $PATH; do
7401 IFS="$acl_save_ifs"
7402 test -z "$ac_dir" && ac_dir=.
7403 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7404 acl_cv_path_LD="$ac_dir/$ac_prog"
7405 # Check to see if the program is GNU ld. I'd rather use --version,
7406 # but apparently some variants of GNU ld only accept -v.
7407 # Break only if it was the GNU/non-GNU ld that we prefer.
7408 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7409 *GNU* | *'with BFD'*)
7410 test "$with_gnu_ld" != no && break
7411 ;;
7412 *)
7413 test "$with_gnu_ld" != yes && break
7414 ;;
7415 esac
7416 fi
7417 done
7418 IFS="$acl_save_ifs"
7419 fi
7420 case $host in
7421 *-*-aix*)
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423/* end confdefs.h. */
7424#if defined __powerpc64__ || defined _ARCH_PPC64
7425 int ok;
7426 #else
7427 error fail
7428 #endif
7429
7430_ACEOF
7431if ac_fn_c_try_compile "$LINENO"; then :
7432 # The compiler produces 64-bit code. Add option '-b64' so that the
7433 # linker groks 64-bit object files.
7434 case "$acl_cv_path_LD " in
7435 *" -b64 "*) ;;
7436 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
7437 esac
7438
7439fi
7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 ;;
7442 sparc64-*-netbsd*)
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h. */
7445#if defined __sparcv9 || defined __arch64__
7446 int ok;
7447 #else
7448 error fail
7449 #endif
7450
7451_ACEOF
7452if ac_fn_c_try_compile "$LINENO"; then :
7453
e598c29b 7454else
bdcd5f22
TT
7455 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
7456 # so that the linker groks 32-bit object files.
7457 case "$acl_cv_path_LD " in
7458 *" -m elf32_sparc "*) ;;
7459 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
7460 esac
7461
d1154eb4 7462fi
bdcd5f22
TT
7463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464 ;;
7465 esac
7466
d1154eb4 7467fi
e598c29b 7468
bdcd5f22
TT
7469 LD="$acl_cv_path_LD"
7470fi
e598c29b
TT
7471if test -n "$LD"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7473$as_echo "$LD" >&6; }
d1154eb4
TT
7474else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476$as_echo "no" >&6; }
bdcd5f22 7477 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
d1154eb4 7478fi
e598c29b
TT
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7480$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7481if ${acl_cv_prog_gnu_ld+:} false; then :
d1154eb4
TT
7482 $as_echo_n "(cached) " >&6
7483else
e598c29b
TT
7484 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7485case `$LD -v 2>&1 </dev/null` in
7486*GNU* | *'with BFD'*)
7487 acl_cv_prog_gnu_ld=yes
7488 ;;
7489*)
7490 acl_cv_prog_gnu_ld=no
7491 ;;
7492esac
7493fi
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7495$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7496with_gnu_ld=$acl_cv_prog_gnu_ld
93613951 7497
d1154eb4 7498
93613951 7499
d1154eb4 7500
e598c29b
TT
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7502$as_echo_n "checking for shared library run path origin... " >&6; }
7503if ${acl_cv_rpath+:} false; then :
93613951
TT
7504 $as_echo_n "(cached) " >&6
7505else
d1154eb4 7506
e598c29b
TT
7507 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7508 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7509 . ./conftest.sh
7510 rm -f ./conftest.sh
7511 acl_cv_rpath=done
d1154eb4 7512
93613951 7513fi
e598c29b
TT
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7515$as_echo "$acl_cv_rpath" >&6; }
7516 wl="$acl_cv_wl"
7517 acl_libext="$acl_cv_libext"
7518 acl_shlibext="$acl_cv_shlibext"
7519 acl_libname_spec="$acl_cv_libname_spec"
7520 acl_library_names_spec="$acl_cv_library_names_spec"
7521 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7522 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7523 acl_hardcode_direct="$acl_cv_hardcode_direct"
7524 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7525 # Check whether --enable-rpath was given.
7526if test "${enable_rpath+set}" = set; then :
7527 enableval=$enable_rpath; :
7528else
7529 enable_rpath=yes
93613951 7530fi
d1154eb4 7531
d1154eb4
TT
7532
7533
93613951 7534
bdcd5f22
TT
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
7536$as_echo_n "checking 32-bit host C ABI... " >&6; }
7537if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
57aa50d4
TT
7538 $as_echo_n "(cached) " >&6
7539else
bdcd5f22
TT
7540 if test -n "$gl_cv_host_cpu_c_abi"; then
7541 case "$gl_cv_host_cpu_c_abi" in
7542 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
7543 gl_cv_host_cpu_c_abi_32bit=yes ;;
7544 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
7545 gl_cv_host_cpu_c_abi_32bit=no ;;
7546 *)
7547 gl_cv_host_cpu_c_abi_32bit=unknown ;;
7548 esac
7549 else
7550 case "$host_cpu" in
7551
7552 # CPUs that only support a 32-bit ABI.
7553 arc \
7554 | bfin \
7555 | cris* \
7556 | csky \
7557 | epiphany \
7558 | ft32 \
7559 | h8300 \
7560 | m68k \
7561 | microblaze | microblazeel \
7562 | nds32 | nds32le | nds32be \
7563 | nios2 | nios2eb | nios2el \
7564 | or1k* \
7565 | or32 \
7566 | sh | sh1234 | sh1234elb \
7567 | tic6x \
7568 | xtensa* )
7569 gl_cv_host_cpu_c_abi_32bit=yes
7570 ;;
7571
7572 # CPUs that only support a 64-bit ABI.
7573 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
7574 | mmix )
7575 gl_cv_host_cpu_c_abi_32bit=no
7576 ;;
7577
7578 i[34567]86 )
7579 gl_cv_host_cpu_c_abi_32bit=yes
7580 ;;
7581
7582 x86_64 )
7583 # On x86_64 systems, the C compiler may be generating code in one of
7584 # these ABIs:
7585 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7586 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7587 # with native Windows (mingw, MSVC).
7588 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7589 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4 7591/* end confdefs.h. */
bdcd5f22
TT
7592#if (defined __x86_64__ || defined __amd64__ \
7593 || defined _M_X64 || defined _M_AMD64) \
7594 && !(defined __ILP32__ || defined _ILP32)
7595 int ok;
7596 #else
7597 error fail
7598 #endif
e598c29b 7599
bdcd5f22
TT
7600_ACEOF
7601if ac_fn_c_try_compile "$LINENO"; then :
7602 gl_cv_host_cpu_c_abi_32bit=no
7603else
7604 gl_cv_host_cpu_c_abi_32bit=yes
7605fi
7606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 ;;
7608
7609 arm* | aarch64 )
7610 # Assume arm with EABI.
7611 # On arm64 systems, the C compiler may be generating code in one of
7612 # these ABIs:
7613 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7614 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7615 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617/* end confdefs.h. */
7618#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
7619 int ok;
7620 #else
7621 error fail
7622 #endif
7623
7624_ACEOF
7625if ac_fn_c_try_compile "$LINENO"; then :
7626 gl_cv_host_cpu_c_abi_32bit=no
7627else
7628 gl_cv_host_cpu_c_abi_32bit=yes
7629fi
7630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 ;;
7632
7633 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7634 # On hppa, the C compiler may be generating 32-bit code or 64-bit
7635 # code. In the latter case, it defines _LP64 and __LP64__.
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h. */
7638#ifdef __LP64__
7639 int ok;
7640 #else
7641 error fail
7642 #endif
7643
7644_ACEOF
7645if ac_fn_c_try_compile "$LINENO"; then :
7646 gl_cv_host_cpu_c_abi_32bit=no
7647else
7648 gl_cv_host_cpu_c_abi_32bit=yes
7649fi
7650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651 ;;
7652
7653 ia64* )
7654 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7655 # 32-bit code. In the latter case, it defines _ILP32.
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657/* end confdefs.h. */
7658#ifdef _ILP32
7659 int ok;
7660 #else
7661 error fail
7662 #endif
7663
7664_ACEOF
7665if ac_fn_c_try_compile "$LINENO"; then :
7666 gl_cv_host_cpu_c_abi_32bit=yes
7667else
7668 gl_cv_host_cpu_c_abi_32bit=no
7669fi
7670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671 ;;
7672
7673 mips* )
7674 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7675 # at 32.
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677/* end confdefs.h. */
7678#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7679 int ok;
7680 #else
7681 error fail
7682 #endif
7683
7684_ACEOF
7685if ac_fn_c_try_compile "$LINENO"; then :
7686 gl_cv_host_cpu_c_abi_32bit=no
7687else
7688 gl_cv_host_cpu_c_abi_32bit=yes
7689fi
7690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 ;;
7692
7693 powerpc* )
7694 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
7695 # No need to distinguish them here; the caller may distinguish
7696 # them based on the OS.
7697 # On powerpc64 systems, the C compiler may still be generating
7698 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
7699 # be generating 64-bit code.
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701/* end confdefs.h. */
7702#if defined __powerpc64__ || defined _ARCH_PPC64
7703 int ok;
7704 #else
7705 error fail
7706 #endif
7707
7708_ACEOF
7709if ac_fn_c_try_compile "$LINENO"; then :
7710 gl_cv_host_cpu_c_abi_32bit=no
7711else
7712 gl_cv_host_cpu_c_abi_32bit=yes
7713fi
7714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 ;;
7716
7717 rs6000 )
7718 gl_cv_host_cpu_c_abi_32bit=yes
7719 ;;
7720
7721 riscv32 | riscv64 )
7722 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
7723 # Size of 'long' and 'void *':
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h. */
7726#if defined __LP64__
7727 int ok;
7728 #else
7729 error fail
7730 #endif
7731
7732_ACEOF
7733if ac_fn_c_try_compile "$LINENO"; then :
7734 gl_cv_host_cpu_c_abi_32bit=no
7735else
7736 gl_cv_host_cpu_c_abi_32bit=yes
7737fi
7738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 ;;
7740
7741 s390* )
7742 # On s390x, the C compiler may be generating 64-bit (= s390x) code
7743 # or 31-bit (= s390) code.
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745/* end confdefs.h. */
7746#if defined __LP64__ || defined __s390x__
7747 int ok;
7748 #else
7749 error fail
7750 #endif
7751
7752_ACEOF
7753if ac_fn_c_try_compile "$LINENO"; then :
7754 gl_cv_host_cpu_c_abi_32bit=no
7755else
7756 gl_cv_host_cpu_c_abi_32bit=yes
7757fi
7758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 ;;
7760
7761 sparc | sparc64 )
7762 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
7763 # C compiler still generates 32-bit code.
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765/* end confdefs.h. */
7766#if defined __sparcv9 || defined __arch64__
7767 int ok;
7768 #else
7769 error fail
7770 #endif
7771
7772_ACEOF
7773if ac_fn_c_try_compile "$LINENO"; then :
7774 gl_cv_host_cpu_c_abi_32bit=no
7775else
7776 gl_cv_host_cpu_c_abi_32bit=yes
7777fi
7778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 ;;
7780
7781 *)
7782 gl_cv_host_cpu_c_abi_32bit=unknown
7783 ;;
7784 esac
7785 fi
7786
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
7789$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
7790
7791 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
7792
7793
7794
7795
7796
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
7798$as_echo_n "checking for ELF binary format... " >&6; }
7799if ${gl_cv_elf+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801else
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803/* end confdefs.h. */
7804#ifdef __ELF__
7805 Extensible Linking Format
7806 #endif
d1154eb4 7807
d1154eb4 7808_ACEOF
e598c29b 7809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bdcd5f22
TT
7810 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7811 gl_cv_elf=yes
e598c29b 7812else
bdcd5f22 7813 gl_cv_elf=no
57aa50d4 7814fi
e598c29b 7815rm -f conftest*
d1154eb4 7816
d1154eb4 7817
e598c29b 7818fi
bdcd5f22
TT
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
7820$as_echo "$gl_cv_elf" >&6; }
7821 if test $gl_cv_elf; then
7822 # Extract the ELF class of a file (5th byte) in decimal.
7823 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
7824 if od -A x < /dev/null >/dev/null 2>/dev/null; then
7825 # Use POSIX od.
7826 func_elfclass ()
7827 {
7828 od -A n -t d1 -j 4 -N 1
7829 }
7830 else
7831 # Use BSD hexdump.
7832 func_elfclass ()
7833 {
7834 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
7835 echo
7836 }
7837 fi
7838 case $HOST_CPU_C_ABI_32BIT in
7839 yes)
7840 # 32-bit ABI.
7841 acl_is_expected_elfclass ()
7842 {
7843 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
7844 }
7845 ;;
7846 no)
7847 # 64-bit ABI.
7848 acl_is_expected_elfclass ()
7849 {
7850 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
7851 }
7852 ;;
7853 *)
7854 # Unknown.
7855 acl_is_expected_elfclass ()
7856 {
7857 :
7858 }
7859 ;;
7860 esac
7861 else
7862 acl_is_expected_elfclass ()
7863 {
7864 :
7865 }
7866 fi
d1154eb4 7867
bdcd5f22
TT
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
7869$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
7870if ${acl_cv_libdirstems+:} false; then :
7871 $as_echo_n "(cached) " >&6
7872else
7873 acl_libdirstem=lib
7874 acl_libdirstem2=
7875 acl_libdirstem3=
7876 case "$host_os" in
7877 solaris*)
7878 if test $HOST_CPU_C_ABI_32BIT = no; then
7879 acl_libdirstem2=lib/64
7880 case "$host_cpu" in
7881 sparc*) acl_libdirstem3=lib/sparcv9 ;;
7882 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
7883 esac
7884 fi
7885 ;;
7886 *)
7887 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
7888 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7889 if test $HOST_CPU_C_ABI_32BIT != no; then
7890 # 32-bit or unknown ABI.
7891 if test -d /usr/lib32; then
7892 acl_libdirstem2=lib32
7893 fi
7894 fi
7895 if test $HOST_CPU_C_ABI_32BIT != yes; then
7896 # 64-bit or unknown ABI.
7897 if test -d /usr/lib64; then
7898 acl_libdirstem3=lib64
7899 fi
7900 fi
7901 if test -n "$searchpath"; then
7902 acl_save_IFS="${IFS= }"; IFS=":"
7903 for searchdir in $searchpath; do
7904 if test -d "$searchdir"; then
7905 case "$searchdir" in
7906 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7907 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7908 */../ | */.. )
7909 # Better ignore directories of this form. They are misleading.
7910 ;;
7911 *) searchdir=`cd "$searchdir" && pwd`
7912 case "$searchdir" in
7913 */lib32 ) acl_libdirstem2=lib32 ;;
7914 */lib64 ) acl_libdirstem3=lib64 ;;
7915 esac ;;
7916 esac
7917 fi
7918 done
7919 IFS="$acl_save_IFS"
7920 if test $HOST_CPU_C_ABI_32BIT = yes; then
7921 # 32-bit ABI.
7922 acl_libdirstem3=
7923 fi
7924 if test $HOST_CPU_C_ABI_32BIT = no; then
7925 # 64-bit ABI.
7926 acl_libdirstem2=
7927 fi
7928 fi
7929 ;;
7930 esac
7931 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7932 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7933 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7934
7935fi
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7937$as_echo "$acl_cv_libdirstems" >&6; }
7938 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7939 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7940 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
d1154eb4 7941
d1154eb4 7942
b0cacab0
TT
7943
7944
7945
b0cacab0
TT
7946
7947
7948
57aa50d4 7949
57aa50d4 7950
b0cacab0 7951
e598c29b 7952 use_additional=yes
b0cacab0 7953
e598c29b
TT
7954 acl_save_prefix="$prefix"
7955 prefix="$acl_final_prefix"
7956 acl_save_exec_prefix="$exec_prefix"
7957 exec_prefix="$acl_final_exec_prefix"
57aa50d4 7958
e598c29b
TT
7959 eval additional_includedir=\"$includedir\"
7960 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
7961 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7962 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57aa50d4 7963
e598c29b
TT
7964 exec_prefix="$acl_save_exec_prefix"
7965 prefix="$acl_save_prefix"
57aa50d4 7966
b0cacab0 7967
e598c29b
TT
7968# Check whether --with-libiconv-prefix was given.
7969if test "${with_libiconv_prefix+set}" = set; then :
7970 withval=$with_libiconv_prefix;
7971 if test "X$withval" = "Xno"; then
7972 use_additional=no
7973 else
7974 if test "X$withval" = "X"; then
57aa50d4 7975
e598c29b
TT
7976 acl_save_prefix="$prefix"
7977 prefix="$acl_final_prefix"
7978 acl_save_exec_prefix="$exec_prefix"
7979 exec_prefix="$acl_final_exec_prefix"
57aa50d4 7980
e598c29b
TT
7981 eval additional_includedir=\"$includedir\"
7982 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
7983 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7984 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57aa50d4 7985
e598c29b
TT
7986 exec_prefix="$acl_save_exec_prefix"
7987 prefix="$acl_save_prefix"
b0cacab0 7988
e598c29b
TT
7989 else
7990 additional_includedir="$withval/include"
7991 additional_libdir="$withval/$acl_libdirstem"
bdcd5f22
TT
7992 additional_libdir2="$withval/$acl_libdirstem2"
7993 additional_libdir3="$withval/$acl_libdirstem3"
e598c29b
TT
7994 fi
7995 fi
d1154eb4
TT
7996
7997fi
e1052144 7998
bdcd5f22
TT
7999 if test "X$additional_libdir2" = "X$additional_libdir"; then
8000 additional_libdir2=
8001 fi
8002 if test "X$additional_libdir3" = "X$additional_libdir"; then
8003 additional_libdir3=
8004 fi
e598c29b
TT
8005 LIBICONV=
8006 LTLIBICONV=
8007 INCICONV=
8008 LIBICONV_PREFIX=
8009 HAVE_LIBICONV=
8010 rpathdirs=
8011 ltrpathdirs=
8012 names_already_handled=
8013 names_next_round='iconv '
8014 while test -n "$names_next_round"; do
8015 names_this_round="$names_next_round"
8016 names_next_round=
8017 for name in $names_this_round; do
8018 already_handled=
8019 for n in $names_already_handled; do
8020 if test "$n" = "$name"; then
8021 already_handled=yes
8022 break
8023 fi
8024 done
8025 if test -z "$already_handled"; then
8026 names_already_handled="$names_already_handled $name"
8027 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8028 eval value=\"\$HAVE_LIB$uppername\"
8029 if test -n "$value"; then
8030 if test "$value" = yes; then
8031 eval value=\"\$LIB$uppername\"
8032 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8033 eval value=\"\$LTLIB$uppername\"
8034 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8035 else
8036 :
8037 fi
8038 else
8039 found_dir=
8040 found_la=
8041 found_so=
8042 found_a=
8043 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8044 if test -n "$acl_shlibext"; then
8045 shrext=".$acl_shlibext" # typically: shrext=.so
8046 else
8047 shrext=
8048 fi
8049 if test $use_additional = yes; then
bdcd5f22
TT
8050 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8051 if test "X$found_dir" = "X"; then
8052 eval dir=\$$additional_libdir_variable
8053 if test -n "$dir"; then
8054 if test -n "$acl_shlibext"; then
8055 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8056 found_dir="$dir"
8057 found_so="$dir/$libname$shrext"
8058 else
8059 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8060 ver=`(cd "$dir" && \
8061 for f in "$libname$shrext".*; do echo "$f"; done \
8062 | sed -e "s,^$libname$shrext\\\\.,," \
8063 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8064 | sed 1q ) 2>/dev/null`
8065 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8066 found_dir="$dir"
8067 found_so="$dir/$libname$shrext.$ver"
8068 fi
8069 else
8070 eval library_names=\"$acl_library_names_spec\"
8071 for f in $library_names; do
8072 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8073 found_dir="$dir"
8074 found_so="$dir/$f"
8075 break
8076 fi
8077 done
8078 fi
8079 fi
e598c29b 8080 fi
bdcd5f22
TT
8081 if test "X$found_dir" = "X"; then
8082 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
e598c29b 8083 found_dir="$dir"
bdcd5f22 8084 found_a="$dir/$libname.$acl_libext"
e598c29b 8085 fi
bdcd5f22
TT
8086 fi
8087 if test "X$found_dir" != "X"; then
8088 if test -f "$dir/$libname.la"; then
8089 found_la="$dir/$libname.la"
8090 fi
8091 fi
e598c29b
TT
8092 fi
8093 fi
bdcd5f22 8094 done
e598c29b
TT
8095 fi
8096 if test "X$found_dir" = "X"; then
8097 for x in $LDFLAGS $LTLIBICONV; do
07a0db15 8098
e598c29b
TT
8099 acl_save_prefix="$prefix"
8100 prefix="$acl_final_prefix"
8101 acl_save_exec_prefix="$exec_prefix"
8102 exec_prefix="$acl_final_exec_prefix"
8103 eval x=\"$x\"
8104 exec_prefix="$acl_save_exec_prefix"
8105 prefix="$acl_save_prefix"
50e1e10f 8106
e598c29b
TT
8107 case "$x" in
8108 -L*)
8109 dir=`echo "X$x" | sed -e 's/^X-L//'`
8110 if test -n "$acl_shlibext"; then
bdcd5f22 8111 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
e598c29b
TT
8112 found_dir="$dir"
8113 found_so="$dir/$libname$shrext"
8114 else
8115 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8116 ver=`(cd "$dir" && \
8117 for f in "$libname$shrext".*; do echo "$f"; done \
8118 | sed -e "s,^$libname$shrext\\\\.,," \
8119 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8120 | sed 1q ) 2>/dev/null`
bdcd5f22 8121 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
e598c29b
TT
8122 found_dir="$dir"
8123 found_so="$dir/$libname$shrext.$ver"
8124 fi
8125 else
8126 eval library_names=\"$acl_library_names_spec\"
8127 for f in $library_names; do
bdcd5f22 8128 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
e598c29b
TT
8129 found_dir="$dir"
8130 found_so="$dir/$f"
8131 break
8132 fi
8133 done
8134 fi
8135 fi
8136 fi
8137 if test "X$found_dir" = "X"; then
bdcd5f22 8138 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
e598c29b
TT
8139 found_dir="$dir"
8140 found_a="$dir/$libname.$acl_libext"
8141 fi
8142 fi
8143 if test "X$found_dir" != "X"; then
8144 if test -f "$dir/$libname.la"; then
8145 found_la="$dir/$libname.la"
8146 fi
8147 fi
8148 ;;
8149 esac
8150 if test "X$found_dir" != "X"; then
8151 break
8152 fi
8153 done
8154 fi
8155 if test "X$found_dir" != "X"; then
8156 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8157 if test "X$found_so" != "X"; then
8158 if test "$enable_rpath" = no \
8159 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
bdcd5f22
TT
8160 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
8161 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
e598c29b
TT
8162 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8163 else
8164 haveit=
8165 for x in $ltrpathdirs; do
8166 if test "X$x" = "X$found_dir"; then
8167 haveit=yes
8168 break
8169 fi
8170 done
8171 if test -z "$haveit"; then
8172 ltrpathdirs="$ltrpathdirs $found_dir"
8173 fi
8174 if test "$acl_hardcode_direct" = yes; then
8175 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8176 else
8177 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8178 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8179 haveit=
8180 for x in $rpathdirs; do
8181 if test "X$x" = "X$found_dir"; then
8182 haveit=yes
8183 break
8184 fi
8185 done
8186 if test -z "$haveit"; then
8187 rpathdirs="$rpathdirs $found_dir"
8188 fi
8189 else
8190 haveit=
8191 for x in $LDFLAGS $LIBICONV; do
93613951 8192
e598c29b
TT
8193 acl_save_prefix="$prefix"
8194 prefix="$acl_final_prefix"
8195 acl_save_exec_prefix="$exec_prefix"
8196 exec_prefix="$acl_final_exec_prefix"
8197 eval x=\"$x\"
8198 exec_prefix="$acl_save_exec_prefix"
8199 prefix="$acl_save_prefix"
b0cacab0 8200
e598c29b
TT
8201 if test "X$x" = "X-L$found_dir"; then
8202 haveit=yes
8203 break
8204 fi
8205 done
8206 if test -z "$haveit"; then
8207 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8208 fi
8209 if test "$acl_hardcode_minus_L" != no; then
8210 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8211 else
8212 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8213 fi
8214 fi
8215 fi
8216 fi
8217 else
8218 if test "X$found_a" != "X"; then
8219 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8220 else
8221 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8222 fi
8223 fi
8224 additional_includedir=
8225 case "$found_dir" in
8226 */$acl_libdirstem | */$acl_libdirstem/)
8227 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8228 if test "$name" = 'iconv'; then
8229 LIBICONV_PREFIX="$basedir"
8230 fi
8231 additional_includedir="$basedir/include"
8232 ;;
8233 */$acl_libdirstem2 | */$acl_libdirstem2/)
8234 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8235 if test "$name" = 'iconv'; then
8236 LIBICONV_PREFIX="$basedir"
8237 fi
8238 additional_includedir="$basedir/include"
8239 ;;
bdcd5f22
TT
8240 */$acl_libdirstem3 | */$acl_libdirstem3/)
8241 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
8242 if test "$name" = 'iconv'; then
8243 LIBICONV_PREFIX="$basedir"
8244 fi
8245 additional_includedir="$basedir/include"
8246 ;;
e598c29b
TT
8247 esac
8248 if test "X$additional_includedir" != "X"; then
8249 if test "X$additional_includedir" != "X/usr/include"; then
8250 haveit=
8251 if test "X$additional_includedir" = "X/usr/local/include"; then
8252 if test -n "$GCC"; then
8253 case $host_os in
8254 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8255 esac
8256 fi
8257 fi
8258 if test -z "$haveit"; then
8259 for x in $CPPFLAGS $INCICONV; do
93613951 8260
e598c29b
TT
8261 acl_save_prefix="$prefix"
8262 prefix="$acl_final_prefix"
8263 acl_save_exec_prefix="$exec_prefix"
8264 exec_prefix="$acl_final_exec_prefix"
8265 eval x=\"$x\"
8266 exec_prefix="$acl_save_exec_prefix"
8267 prefix="$acl_save_prefix"
93613951 8268
e598c29b
TT
8269 if test "X$x" = "X-I$additional_includedir"; then
8270 haveit=yes
8271 break
8272 fi
8273 done
8274 if test -z "$haveit"; then
8275 if test -d "$additional_includedir"; then
8276 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8277 fi
8278 fi
8279 fi
8280 fi
8281 fi
8282 if test -n "$found_la"; then
8283 save_libdir="$libdir"
8284 case "$found_la" in
8285 */* | *\\*) . "$found_la" ;;
8286 *) . "./$found_la" ;;
8287 esac
8288 libdir="$save_libdir"
8289 for dep in $dependency_libs; do
8290 case "$dep" in
8291 -L*)
bdcd5f22
TT
8292 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8293 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
8294 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
8295 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
e598c29b 8296 haveit=
bdcd5f22
TT
8297 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
8298 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
8299 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
e598c29b
TT
8300 if test -n "$GCC"; then
8301 case $host_os in
8302 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8303 esac
8304 fi
8305 fi
8306 if test -z "$haveit"; then
8307 haveit=
8308 for x in $LDFLAGS $LIBICONV; do
b0cacab0 8309
e598c29b
TT
8310 acl_save_prefix="$prefix"
8311 prefix="$acl_final_prefix"
8312 acl_save_exec_prefix="$exec_prefix"
8313 exec_prefix="$acl_final_exec_prefix"
8314 eval x=\"$x\"
8315 exec_prefix="$acl_save_exec_prefix"
8316 prefix="$acl_save_prefix"
50e1e10f 8317
bdcd5f22 8318 if test "X$x" = "X-L$dependency_libdir"; then
e598c29b
TT
8319 haveit=yes
8320 break
8321 fi
8322 done
8323 if test -z "$haveit"; then
bdcd5f22
TT
8324 if test -d "$dependency_libdir"; then
8325 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
e598c29b
TT
8326 fi
8327 fi
8328 haveit=
8329 for x in $LDFLAGS $LTLIBICONV; do
e1052144 8330
e598c29b
TT
8331 acl_save_prefix="$prefix"
8332 prefix="$acl_final_prefix"
8333 acl_save_exec_prefix="$exec_prefix"
8334 exec_prefix="$acl_final_exec_prefix"
8335 eval x=\"$x\"
8336 exec_prefix="$acl_save_exec_prefix"
8337 prefix="$acl_save_prefix"
8338
bdcd5f22 8339 if test "X$x" = "X-L$dependency_libdir"; then
e598c29b
TT
8340 haveit=yes
8341 break
8342 fi
8343 done
8344 if test -z "$haveit"; then
bdcd5f22
TT
8345 if test -d "$dependency_libdir"; then
8346 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
e598c29b
TT
8347 fi
8348 fi
8349 fi
8350 fi
8351 ;;
8352 -R*)
8353 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8354 if test "$enable_rpath" != no; then
8355 haveit=
8356 for x in $rpathdirs; do
8357 if test "X$x" = "X$dir"; then
8358 haveit=yes
8359 break
8360 fi
8361 done
8362 if test -z "$haveit"; then
8363 rpathdirs="$rpathdirs $dir"
8364 fi
8365 haveit=
8366 for x in $ltrpathdirs; do
8367 if test "X$x" = "X$dir"; then
8368 haveit=yes
8369 break
8370 fi
8371 done
8372 if test -z "$haveit"; then
8373 ltrpathdirs="$ltrpathdirs $dir"
8374 fi
8375 fi
8376 ;;
8377 -l*)
8378 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8379 ;;
8380 *.la)
8381 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8382 ;;
8383 *)
8384 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8385 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8386 ;;
8387 esac
8388 done
8389 fi
8390 else
8391 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8392 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8393 fi
8394 fi
8395 fi
8396 done
93613951 8397 done
e598c29b
TT
8398 if test "X$rpathdirs" != "X"; then
8399 if test -n "$acl_hardcode_libdir_separator"; then
8400 alldirs=
8401 for found_dir in $rpathdirs; do
8402 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8403 done
8404 acl_save_libdir="$libdir"
8405 libdir="$alldirs"
8406 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8407 libdir="$acl_save_libdir"
8408 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8409 else
8410 for found_dir in $rpathdirs; do
8411 acl_save_libdir="$libdir"
8412 libdir="$found_dir"
8413 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8414 libdir="$acl_save_libdir"
8415 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8416 done
8417 fi
8418 fi
8419 if test "X$ltrpathdirs" != "X"; then
8420 for found_dir in $ltrpathdirs; do
8421 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8422 done
8423 fi
b0cacab0 8424
93613951 8425
93613951 8426
57aa50d4
TT
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
b0cacab0 8438
740837de 8439
b0cacab0
TT
8440
8441
8442
93613951
TT
8443
8444
8445
8446
8447
8448
8449
93613951
TT
8450
8451
8452
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8454$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8455if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8456 $as_echo_n "(cached) " >&6
50e1e10f 8457else
93613951
TT
8458 gt_save_LIBS="$LIBS"
8459 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h. */
8462#include <CoreFoundation/CFPreferences.h>
8463int
8464main ()
8465{
8466CFPreferencesCopyAppValue(NULL, NULL)
8467 ;
8468 return 0;
8469}
8470_ACEOF
8471if ac_fn_c_try_link "$LINENO"; then :
8472 gt_cv_func_CFPreferencesCopyAppValue=yes
8473else
8474 gt_cv_func_CFPreferencesCopyAppValue=no
50e1e10f 8475fi
93613951
TT
8476rm -f core conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 LIBS="$gt_save_LIBS"
50e1e10f 8479fi
93613951
TT
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8481$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8482 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8483
8484$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8485
8486 fi
bdcd5f22
TT
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
8488$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
8489if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
93613951
TT
8490 $as_echo_n "(cached) " >&6
8491else
8492 gt_save_LIBS="$LIBS"
8493 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495/* end confdefs.h. */
8496#include <CoreFoundation/CFLocale.h>
8497int
8498main ()
8499{
bdcd5f22 8500CFLocaleCopyPreferredLanguages();
93613951
TT
8501 ;
8502 return 0;
8503}
8504_ACEOF
8505if ac_fn_c_try_link "$LINENO"; then :
bdcd5f22 8506 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
93613951 8507else
bdcd5f22 8508 gt_cv_func_CFLocaleCopyPreferredLanguages=no
93613951
TT
8509fi
8510rm -f core conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512 LIBS="$gt_save_LIBS"
8513fi
bdcd5f22
TT
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
8515$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
8516 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
93613951 8517
bdcd5f22 8518$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
93613951
TT
8519
8520 fi
8521 INTL_MACOSX_LIBS=
bdcd5f22
TT
8522 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
8523 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
93613951
TT
8524 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8525 fi
8526
50e1e10f 8527
b0cacab0
TT
8528
8529
8530
8531
57aa50d4
TT
8532 LIBINTL=
8533 LTLIBINTL=
8534 POSUB=
8535
93613951
TT
8536 case " $gt_needs " in
8537 *" need-formatstring-macros "*) gt_api_version=3 ;;
8538 *" need-ngettext "*) gt_api_version=2 ;;
8539 *) gt_api_version=1 ;;
8540 esac
8541 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8542 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8543
57aa50d4
TT
8544 if test "$USE_NLS" = "yes"; then
8545 gt_use_preinstalled_gnugettext=no
b0cacab0
TT
8546
8547
e598c29b
TT
8548 if test $gt_api_version -ge 3; then
8549 gt_revision_test_code='
8550#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8551#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8552#endif
8553typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8554'
8555 else
8556 gt_revision_test_code=
8557 fi
8558 if test $gt_api_version -ge 2; then
8559 gt_expression_test_code=' + * ngettext ("", "", 0)'
8560 else
8561 gt_expression_test_code=
8562 fi
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8565$as_echo_n "checking for GNU gettext in libc... " >&6; }
8566if eval \${$gt_func_gnugettext_libc+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568else
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570/* end confdefs.h. */
8571
8572#include <libintl.h>
8573#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8574extern int _nl_msg_cat_cntr;
8575extern int *_nl_domain_bindings;
8576#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
8577#else
8578#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8579#endif
8580$gt_revision_test_code
8581
8582int
8583main ()
8584{
8585
8586bindtextdomain ("", "");
8587return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8588
8589 ;
8590 return 0;
8591}
8592_ACEOF
8593if ac_fn_c_try_link "$LINENO"; then :
8594 eval "$gt_func_gnugettext_libc=yes"
50e1e10f 8595else
e598c29b
TT
8596 eval "$gt_func_gnugettext_libc=no"
8597fi
8598rm -f core conftest.err conftest.$ac_objext \
8599 conftest$ac_exeext conftest.$ac_ext
50e1e10f 8600fi
e598c29b
TT
8601eval ac_res=\$$gt_func_gnugettext_libc
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8603$as_echo "$ac_res" >&6; }
50e1e10f 8604
e598c29b
TT
8605 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8606
8607
8608
8609
8610
8611 am_save_CPPFLAGS="$CPPFLAGS"
8612
8613 for element in $INCICONV; do
8614 haveit=
8615 for x in $CPPFLAGS; do
8616
8617 acl_save_prefix="$prefix"
8618 prefix="$acl_final_prefix"
8619 acl_save_exec_prefix="$exec_prefix"
8620 exec_prefix="$acl_final_exec_prefix"
8621 eval x=\"$x\"
8622 exec_prefix="$acl_save_exec_prefix"
8623 prefix="$acl_save_prefix"
8624
8625 if test "X$x" = "X$element"; then
8626 haveit=yes
8627 break
8628 fi
8629 done
8630 if test -z "$haveit"; then
8631 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8632 fi
8633 done
8634
8635
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8637$as_echo_n "checking for iconv... " >&6; }
8638if ${am_cv_func_iconv+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640else
8641
8642 am_cv_func_iconv="no, consider installing GNU libiconv"
8643 am_cv_lib_iconv=no
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645/* end confdefs.h. */
8646
8647#include <stdlib.h>
8648#include <iconv.h>
b0cacab0 8649
e598c29b
TT
8650int
8651main ()
8652{
8653iconv_t cd = iconv_open("","");
8654 iconv(cd,NULL,NULL,NULL,NULL);
8655 iconv_close(cd);
8656 ;
8657 return 0;
8658}
8659_ACEOF
8660if ac_fn_c_try_link "$LINENO"; then :
8661 am_cv_func_iconv=yes
8662fi
8663rm -f core conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
8665 if test "$am_cv_func_iconv" != yes; then
8666 am_save_LIBS="$LIBS"
8667 LIBS="$LIBS $LIBICONV"
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669/* end confdefs.h. */
b0cacab0 8670
e598c29b
TT
8671#include <stdlib.h>
8672#include <iconv.h>
b0cacab0 8673
e598c29b
TT
8674int
8675main ()
8676{
8677iconv_t cd = iconv_open("","");
8678 iconv(cd,NULL,NULL,NULL,NULL);
8679 iconv_close(cd);
8680 ;
8681 return 0;
8682}
8683_ACEOF
8684if ac_fn_c_try_link "$LINENO"; then :
8685 am_cv_lib_iconv=yes
8686 am_cv_func_iconv=yes
8687fi
8688rm -f core conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8690 LIBS="$am_save_LIBS"
8691 fi
b0cacab0 8692
e598c29b
TT
8693fi
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8695$as_echo "$am_cv_func_iconv" >&6; }
8696 if test "$am_cv_func_iconv" = yes; then
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8698$as_echo_n "checking for working iconv... " >&6; }
8699if ${am_cv_func_iconv_works+:} false; then :
39fd3d4f 8700 $as_echo_n "(cached) " >&6
7321d94e 8701else
e598c29b
TT
8702
8703 am_save_LIBS="$LIBS"
8704 if test $am_cv_lib_iconv = yes; then
8705 LIBS="$LIBS $LIBICONV"
8706 fi
8707 am_cv_func_iconv_works=no
8708 for ac_iconv_const in '' 'const'; do
8709 if test "$cross_compiling" = yes; then :
8710 case "$host_os" in
8711 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8712 *) am_cv_func_iconv_works="guessing yes" ;;
8713 esac
8714else
57aa50d4
TT
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716/* end confdefs.h. */
93613951 8717
e598c29b
TT
8718#include <iconv.h>
8719#include <string.h>
8720
8721#ifndef ICONV_CONST
8722# define ICONV_CONST $ac_iconv_const
8723#endif
93613951 8724
57aa50d4
TT
8725int
8726main ()
8727{
e598c29b
TT
8728int result = 0;
8729 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8730 returns. */
8731 {
8732 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8733 if (cd_utf8_to_88591 != (iconv_t)(-1))
8734 {
8735 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8736 char buf[10];
8737 ICONV_CONST char *inptr = input;
8738 size_t inbytesleft = strlen (input);
8739 char *outptr = buf;
8740 size_t outbytesleft = sizeof (buf);
8741 size_t res = iconv (cd_utf8_to_88591,
8742 &inptr, &inbytesleft,
8743 &outptr, &outbytesleft);
8744 if (res == 0)
8745 result |= 1;
8746 iconv_close (cd_utf8_to_88591);
8747 }
8748 }
8749 /* Test against Solaris 10 bug: Failures are not distinguishable from
8750 successful returns. */
8751 {
8752 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8753 if (cd_ascii_to_88591 != (iconv_t)(-1))
8754 {
8755 static ICONV_CONST char input[] = "\263";
8756 char buf[10];
8757 ICONV_CONST char *inptr = input;
8758 size_t inbytesleft = strlen (input);
8759 char *outptr = buf;
8760 size_t outbytesleft = sizeof (buf);
8761 size_t res = iconv (cd_ascii_to_88591,
8762 &inptr, &inbytesleft,
8763 &outptr, &outbytesleft);
8764 if (res == 0)
8765 result |= 2;
8766 iconv_close (cd_ascii_to_88591);
8767 }
8768 }
8769 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8770 {
8771 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8772 if (cd_88591_to_utf8 != (iconv_t)(-1))
8773 {
8774 static ICONV_CONST char input[] = "\304";
8775 static char buf[2] = { (char)0xDE, (char)0xAD };
8776 ICONV_CONST char *inptr = input;
8777 size_t inbytesleft = 1;
8778 char *outptr = buf;
8779 size_t outbytesleft = 1;
8780 size_t res = iconv (cd_88591_to_utf8,
8781 &inptr, &inbytesleft,
8782 &outptr, &outbytesleft);
8783 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8784 result |= 4;
8785 iconv_close (cd_88591_to_utf8);
8786 }
8787 }
8788#if 0 /* This bug could be worked around by the caller. */
8789 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8790 {
8791 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8792 if (cd_88591_to_utf8 != (iconv_t)(-1))
8793 {
8794 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8795 char buf[50];
8796 ICONV_CONST char *inptr = input;
8797 size_t inbytesleft = strlen (input);
8798 char *outptr = buf;
8799 size_t outbytesleft = sizeof (buf);
8800 size_t res = iconv (cd_88591_to_utf8,
8801 &inptr, &inbytesleft,
8802 &outptr, &outbytesleft);
8803 if ((int)res > 0)
8804 result |= 8;
8805 iconv_close (cd_88591_to_utf8);
8806 }
8807 }
8808#endif
8809 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8810 provided. */
bdcd5f22
TT
8811 {
8812 /* Try standardized names. */
8813 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8814 /* Try IRIX, OSF/1 names. */
8815 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8816 /* Try AIX names. */
8817 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8818 /* Try HP-UX names. */
8819 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8820 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8821 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8822 result |= 16;
8823 if (cd1 != (iconv_t)(-1))
8824 iconv_close (cd1);
8825 if (cd2 != (iconv_t)(-1))
8826 iconv_close (cd2);
8827 if (cd3 != (iconv_t)(-1))
8828 iconv_close (cd3);
8829 if (cd4 != (iconv_t)(-1))
8830 iconv_close (cd4);
8831 }
e598c29b 8832 return result;
93613951 8833
57aa50d4
TT
8834 ;
8835 return 0;
8836}
8837_ACEOF
e598c29b
TT
8838if ac_fn_c_try_run "$LINENO"; then :
8839 am_cv_func_iconv_works=yes
57aa50d4 8840fi
e598c29b
TT
8841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8842 conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 8843fi
93613951 8844
e598c29b
TT
8845 test "$am_cv_func_iconv_works" = no || break
8846 done
8847 LIBS="$am_save_LIBS"
8848
8849fi
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8851$as_echo "$am_cv_func_iconv_works" >&6; }
8852 case "$am_cv_func_iconv_works" in
8853 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8854 *) am_func_iconv=yes ;;
8855 esac
8856 else
8857 am_func_iconv=no am_cv_lib_iconv=no
8858 fi
8859 if test "$am_func_iconv" = yes; then
8860
8861$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8862
8863 fi
8864 if test "$am_cv_lib_iconv" = yes; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8866$as_echo_n "checking how to link with libiconv... " >&6; }
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8868$as_echo "$LIBICONV" >&6; }
8869 else
8870 CPPFLAGS="$am_save_CPPFLAGS"
8871 LIBICONV=
8872 LTLIBICONV=
8873 fi
8874
8875
8876
93613951
TT
8877
8878
8879
8880
b0cacab0
TT
8881
8882
8883
57aa50d4 8884 use_additional=yes
b0cacab0 8885
57aa50d4
TT
8886 acl_save_prefix="$prefix"
8887 prefix="$acl_final_prefix"
8888 acl_save_exec_prefix="$exec_prefix"
8889 exec_prefix="$acl_final_exec_prefix"
b0cacab0 8890
57aa50d4
TT
8891 eval additional_includedir=\"$includedir\"
8892 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
8893 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8894 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
b0cacab0 8895
57aa50d4
TT
8896 exec_prefix="$acl_save_exec_prefix"
8897 prefix="$acl_save_prefix"
b0cacab0
TT
8898
8899
57aa50d4
TT
8900# Check whether --with-libintl-prefix was given.
8901if test "${with_libintl_prefix+set}" = set; then :
8902 withval=$with_libintl_prefix;
8903 if test "X$withval" = "Xno"; then
8904 use_additional=no
8905 else
8906 if test "X$withval" = "X"; then
b0cacab0 8907
57aa50d4
TT
8908 acl_save_prefix="$prefix"
8909 prefix="$acl_final_prefix"
8910 acl_save_exec_prefix="$exec_prefix"
8911 exec_prefix="$acl_final_exec_prefix"
b0cacab0 8912
57aa50d4
TT
8913 eval additional_includedir=\"$includedir\"
8914 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
8915 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8916 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7321d94e 8917
57aa50d4
TT
8918 exec_prefix="$acl_save_exec_prefix"
8919 prefix="$acl_save_prefix"
7321d94e 8920
57aa50d4
TT
8921 else
8922 additional_includedir="$withval/include"
93613951 8923 additional_libdir="$withval/$acl_libdirstem"
bdcd5f22
TT
8924 additional_libdir2="$withval/$acl_libdirstem2"
8925 additional_libdir3="$withval/$acl_libdirstem3"
57aa50d4
TT
8926 fi
8927 fi
7321d94e 8928
7321d94e
MK
8929fi
8930
bdcd5f22
TT
8931 if test "X$additional_libdir2" = "X$additional_libdir"; then
8932 additional_libdir2=
8933 fi
8934 if test "X$additional_libdir3" = "X$additional_libdir"; then
8935 additional_libdir3=
8936 fi
57aa50d4
TT
8937 LIBINTL=
8938 LTLIBINTL=
8939 INCINTL=
93613951
TT
8940 LIBINTL_PREFIX=
8941 HAVE_LIBINTL=
57aa50d4
TT
8942 rpathdirs=
8943 ltrpathdirs=
8944 names_already_handled=
8945 names_next_round='intl '
8946 while test -n "$names_next_round"; do
8947 names_this_round="$names_next_round"
8948 names_next_round=
8949 for name in $names_this_round; do
8950 already_handled=
8951 for n in $names_already_handled; do
8952 if test "$n" = "$name"; then
8953 already_handled=yes
8954 break
8955 fi
50e1e10f 8956 done
57aa50d4
TT
8957 if test -z "$already_handled"; then
8958 names_already_handled="$names_already_handled $name"
93613951 8959 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
57aa50d4
TT
8960 eval value=\"\$HAVE_LIB$uppername\"
8961 if test -n "$value"; then
8962 if test "$value" = yes; then
8963 eval value=\"\$LIB$uppername\"
8964 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8965 eval value=\"\$LTLIB$uppername\"
8966 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8967 else
8968 :
8969 fi
8970 else
8971 found_dir=
8972 found_la=
8973 found_so=
8974 found_a=
93613951
TT
8975 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8976 if test -n "$acl_shlibext"; then
8977 shrext=".$acl_shlibext" # typically: shrext=.so
8978 else
8979 shrext=
8980 fi
57aa50d4 8981 if test $use_additional = yes; then
bdcd5f22
TT
8982 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8983 if test "X$found_dir" = "X"; then
8984 eval dir=\$$additional_libdir_variable
8985 if test -n "$dir"; then
8986 if test -n "$acl_shlibext"; then
8987 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8988 found_dir="$dir"
8989 found_so="$dir/$libname$shrext"
8990 else
8991 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8992 ver=`(cd "$dir" && \
8993 for f in "$libname$shrext".*; do echo "$f"; done \
8994 | sed -e "s,^$libname$shrext\\\\.,," \
8995 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8996 | sed 1q ) 2>/dev/null`
8997 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8998 found_dir="$dir"
8999 found_so="$dir/$libname$shrext.$ver"
9000 fi
9001 else
9002 eval library_names=\"$acl_library_names_spec\"
9003 for f in $library_names; do
9004 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9005 found_dir="$dir"
9006 found_so="$dir/$f"
9007 break
9008 fi
9009 done
9010 fi
9011 fi
93613951 9012 fi
bdcd5f22
TT
9013 if test "X$found_dir" = "X"; then
9014 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
93613951 9015 found_dir="$dir"
bdcd5f22 9016 found_a="$dir/$libname.$acl_libext"
93613951 9017 fi
bdcd5f22
TT
9018 fi
9019 if test "X$found_dir" != "X"; then
9020 if test -f "$dir/$libname.la"; then
9021 found_la="$dir/$libname.la"
9022 fi
9023 fi
57aa50d4
TT
9024 fi
9025 fi
bdcd5f22 9026 done
57aa50d4
TT
9027 fi
9028 if test "X$found_dir" = "X"; then
9029 for x in $LDFLAGS $LTLIBINTL; do
39fd3d4f 9030
57aa50d4
TT
9031 acl_save_prefix="$prefix"
9032 prefix="$acl_final_prefix"
9033 acl_save_exec_prefix="$exec_prefix"
9034 exec_prefix="$acl_final_exec_prefix"
9035 eval x=\"$x\"
9036 exec_prefix="$acl_save_exec_prefix"
9037 prefix="$acl_save_prefix"
3d05802f 9038
57aa50d4
TT
9039 case "$x" in
9040 -L*)
9041 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951 9042 if test -n "$acl_shlibext"; then
bdcd5f22 9043 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
57aa50d4 9044 found_dir="$dir"
93613951
TT
9045 found_so="$dir/$libname$shrext"
9046 else
9047 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9048 ver=`(cd "$dir" && \
9049 for f in "$libname$shrext".*; do echo "$f"; done \
9050 | sed -e "s,^$libname$shrext\\\\.,," \
9051 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9052 | sed 1q ) 2>/dev/null`
bdcd5f22 9053 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
93613951
TT
9054 found_dir="$dir"
9055 found_so="$dir/$libname$shrext.$ver"
9056 fi
9057 else
9058 eval library_names=\"$acl_library_names_spec\"
9059 for f in $library_names; do
bdcd5f22 9060 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
93613951
TT
9061 found_dir="$dir"
9062 found_so="$dir/$f"
9063 break
9064 fi
9065 done
57aa50d4
TT
9066 fi
9067 fi
93613951
TT
9068 fi
9069 if test "X$found_dir" = "X"; then
bdcd5f22 9070 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
93613951
TT
9071 found_dir="$dir"
9072 found_a="$dir/$libname.$acl_libext"
9073 fi
9074 fi
9075 if test "X$found_dir" != "X"; then
9076 if test -f "$dir/$libname.la"; then
9077 found_la="$dir/$libname.la"
9078 fi
57aa50d4
TT
9079 fi
9080 ;;
9081 esac
9082 if test "X$found_dir" != "X"; then
9083 break
9084 fi
9085 done
9086 fi
9087 if test "X$found_dir" != "X"; then
9088 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9089 if test "X$found_so" != "X"; then
93613951
TT
9090 if test "$enable_rpath" = no \
9091 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
bdcd5f22
TT
9092 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9093 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
57aa50d4
TT
9094 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9095 else
9096 haveit=
9097 for x in $ltrpathdirs; do
9098 if test "X$x" = "X$found_dir"; then
9099 haveit=yes
9100 break
9101 fi
9102 done
9103 if test -z "$haveit"; then
9104 ltrpathdirs="$ltrpathdirs $found_dir"
9105 fi
93613951 9106 if test "$acl_hardcode_direct" = yes; then
57aa50d4
TT
9107 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9108 else
93613951 9109 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
57aa50d4
TT
9110 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9111 haveit=
9112 for x in $rpathdirs; do
9113 if test "X$x" = "X$found_dir"; then
9114 haveit=yes
9115 break
9116 fi
9117 done
9118 if test -z "$haveit"; then
9119 rpathdirs="$rpathdirs $found_dir"
9120 fi
9121 else
9122 haveit=
9123 for x in $LDFLAGS $LIBINTL; do
6ec9ef18 9124
57aa50d4
TT
9125 acl_save_prefix="$prefix"
9126 prefix="$acl_final_prefix"
9127 acl_save_exec_prefix="$exec_prefix"
9128 exec_prefix="$acl_final_exec_prefix"
9129 eval x=\"$x\"
9130 exec_prefix="$acl_save_exec_prefix"
9131 prefix="$acl_save_prefix"
d7f45af8 9132
57aa50d4
TT
9133 if test "X$x" = "X-L$found_dir"; then
9134 haveit=yes
9135 break
9136 fi
9137 done
9138 if test -z "$haveit"; then
9139 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9140 fi
93613951 9141 if test "$acl_hardcode_minus_L" != no; then
57aa50d4
TT
9142 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9143 else
9144 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9145 fi
9146 fi
9147 fi
9148 fi
9149 else
9150 if test "X$found_a" != "X"; then
9151 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9152 else
9153 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9154 fi
9155 fi
9156 additional_includedir=
9157 case "$found_dir" in
93613951
TT
9158 */$acl_libdirstem | */$acl_libdirstem/)
9159 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9160 if test "$name" = 'intl'; then
9161 LIBINTL_PREFIX="$basedir"
9162 fi
9163 additional_includedir="$basedir/include"
9164 ;;
9165 */$acl_libdirstem2 | */$acl_libdirstem2/)
9166 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9167 if test "$name" = 'intl'; then
9168 LIBINTL_PREFIX="$basedir"
9169 fi
57aa50d4
TT
9170 additional_includedir="$basedir/include"
9171 ;;
bdcd5f22
TT
9172 */$acl_libdirstem3 | */$acl_libdirstem3/)
9173 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9174 if test "$name" = 'intl'; then
9175 LIBINTL_PREFIX="$basedir"
9176 fi
9177 additional_includedir="$basedir/include"
9178 ;;
57aa50d4
TT
9179 esac
9180 if test "X$additional_includedir" != "X"; then
9181 if test "X$additional_includedir" != "X/usr/include"; then
9182 haveit=
9183 if test "X$additional_includedir" = "X/usr/local/include"; then
9184 if test -n "$GCC"; then
9185 case $host_os in
93613951 9186 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
9187 esac
9188 fi
9189 fi
9190 if test -z "$haveit"; then
9191 for x in $CPPFLAGS $INCINTL; do
b0cacab0 9192
57aa50d4
TT
9193 acl_save_prefix="$prefix"
9194 prefix="$acl_final_prefix"
9195 acl_save_exec_prefix="$exec_prefix"
9196 exec_prefix="$acl_final_exec_prefix"
9197 eval x=\"$x\"
9198 exec_prefix="$acl_save_exec_prefix"
9199 prefix="$acl_save_prefix"
21c84b71 9200
57aa50d4
TT
9201 if test "X$x" = "X-I$additional_includedir"; then
9202 haveit=yes
9203 break
9204 fi
9205 done
9206 if test -z "$haveit"; then
9207 if test -d "$additional_includedir"; then
9208 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9209 fi
9210 fi
9211 fi
9212 fi
9213 fi
9214 if test -n "$found_la"; then
9215 save_libdir="$libdir"
9216 case "$found_la" in
9217 */* | *\\*) . "$found_la" ;;
9218 *) . "./$found_la" ;;
9219 esac
9220 libdir="$save_libdir"
9221 for dep in $dependency_libs; do
9222 case "$dep" in
9223 -L*)
bdcd5f22
TT
9224 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9225 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9226 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9227 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
57aa50d4 9228 haveit=
bdcd5f22
TT
9229 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9230 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9231 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
57aa50d4
TT
9232 if test -n "$GCC"; then
9233 case $host_os in
93613951 9234 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
9235 esac
9236 fi
9237 fi
9238 if test -z "$haveit"; then
9239 haveit=
9240 for x in $LDFLAGS $LIBINTL; do
50e1e10f 9241
57aa50d4
TT
9242 acl_save_prefix="$prefix"
9243 prefix="$acl_final_prefix"
9244 acl_save_exec_prefix="$exec_prefix"
9245 exec_prefix="$acl_final_exec_prefix"
9246 eval x=\"$x\"
9247 exec_prefix="$acl_save_exec_prefix"
9248 prefix="$acl_save_prefix"
50e1e10f 9249
bdcd5f22 9250 if test "X$x" = "X-L$dependency_libdir"; then
57aa50d4
TT
9251 haveit=yes
9252 break
9253 fi
9254 done
9255 if test -z "$haveit"; then
bdcd5f22
TT
9256 if test -d "$dependency_libdir"; then
9257 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
57aa50d4
TT
9258 fi
9259 fi
9260 haveit=
9261 for x in $LDFLAGS $LTLIBINTL; do
a4bf69d9 9262
57aa50d4
TT
9263 acl_save_prefix="$prefix"
9264 prefix="$acl_final_prefix"
9265 acl_save_exec_prefix="$exec_prefix"
9266 exec_prefix="$acl_final_exec_prefix"
9267 eval x=\"$x\"
9268 exec_prefix="$acl_save_exec_prefix"
9269 prefix="$acl_save_prefix"
50e1e10f 9270
bdcd5f22 9271 if test "X$x" = "X-L$dependency_libdir"; then
57aa50d4
TT
9272 haveit=yes
9273 break
9274 fi
9275 done
9276 if test -z "$haveit"; then
bdcd5f22
TT
9277 if test -d "$dependency_libdir"; then
9278 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
57aa50d4
TT
9279 fi
9280 fi
9281 fi
9282 fi
9283 ;;
9284 -R*)
9285 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9286 if test "$enable_rpath" != no; then
9287 haveit=
9288 for x in $rpathdirs; do
9289 if test "X$x" = "X$dir"; then
9290 haveit=yes
9291 break
9292 fi
9293 done
9294 if test -z "$haveit"; then
9295 rpathdirs="$rpathdirs $dir"
9296 fi
9297 haveit=
9298 for x in $ltrpathdirs; do
9299 if test "X$x" = "X$dir"; then
9300 haveit=yes
9301 break
9302 fi
9303 done
9304 if test -z "$haveit"; then
9305 ltrpathdirs="$ltrpathdirs $dir"
9306 fi
9307 fi
9308 ;;
9309 -l*)
9310 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9311 ;;
9312 *.la)
9313 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9314 ;;
9315 *)
9316 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9317 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9318 ;;
9319 esac
9320 done
9321 fi
9322 else
9323 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9324 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9325 fi
9326 fi
9327 fi
9328 done
9329 done
9330 if test "X$rpathdirs" != "X"; then
93613951 9331 if test -n "$acl_hardcode_libdir_separator"; then
57aa50d4
TT
9332 alldirs=
9333 for found_dir in $rpathdirs; do
93613951 9334 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
57aa50d4
TT
9335 done
9336 acl_save_libdir="$libdir"
9337 libdir="$alldirs"
93613951 9338 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
9339 libdir="$acl_save_libdir"
9340 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9341 else
9342 for found_dir in $rpathdirs; do
9343 acl_save_libdir="$libdir"
9344 libdir="$found_dir"
93613951 9345 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
9346 libdir="$acl_save_libdir"
9347 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9348 done
9349 fi
9350 fi
9351 if test "X$ltrpathdirs" != "X"; then
9352 for found_dir in $ltrpathdirs; do
9353 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9354 done
9355 fi
b0cacab0 9356
93613951
TT
9357
9358
9359
9360
57aa50d4
TT
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9362$as_echo_n "checking for GNU gettext in libintl... " >&6; }
93613951 9363if eval \${$gt_func_gnugettext_libintl+:} false; then :
39fd3d4f 9364 $as_echo_n "(cached) " >&6
6c133523 9365else
57aa50d4
TT
9366 gt_save_CPPFLAGS="$CPPFLAGS"
9367 CPPFLAGS="$CPPFLAGS $INCINTL"
9368 gt_save_LIBS="$LIBS"
9369 LIBS="$LIBS $LIBINTL"
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371/* end confdefs.h. */
93613951 9372
57aa50d4 9373#include <libintl.h>
e598c29b 9374#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
57aa50d4
TT
9375extern int _nl_msg_cat_cntr;
9376extern
9377#ifdef __cplusplus
9378"C"
9379#endif
93613951 9380const char *_nl_expand_alias (const char *);
e598c29b
TT
9381#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9382#else
9383#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9384#endif
9385$gt_revision_test_code
93613951 9386
57aa50d4
TT
9387int
9388main ()
9389{
93613951 9390
57aa50d4 9391bindtextdomain ("", "");
e598c29b 9392return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
93613951 9393
57aa50d4
TT
9394 ;
9395 return 0;
9396}
b0cacab0 9397_ACEOF
57aa50d4 9398if ac_fn_c_try_link "$LINENO"; then :
93613951 9399 eval "$gt_func_gnugettext_libintl=yes"
6c133523 9400else
93613951 9401 eval "$gt_func_gnugettext_libintl=no"
6c133523 9402fi
57aa50d4
TT
9403rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
93613951 9405 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
57aa50d4
TT
9406 LIBS="$LIBS $LIBICONV"
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da76d6b7 9408/* end confdefs.h. */
93613951 9409
57aa50d4 9410#include <libintl.h>
e598c29b 9411#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
57aa50d4
TT
9412extern int _nl_msg_cat_cntr;
9413extern
9414#ifdef __cplusplus
9415"C"
da76d6b7 9416#endif
93613951 9417const char *_nl_expand_alias (const char *);
e598c29b
TT
9418#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9419#else
9420#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9421#endif
9422$gt_revision_test_code
93613951 9423
57aa50d4
TT
9424int
9425main ()
9426{
93613951 9427
57aa50d4 9428bindtextdomain ("", "");
e598c29b 9429return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
93613951 9430
57aa50d4
TT
9431 ;
9432 return 0;
9433}
da76d6b7 9434_ACEOF
57aa50d4
TT
9435if ac_fn_c_try_link "$LINENO"; then :
9436 LIBINTL="$LIBINTL $LIBICONV"
93613951
TT
9437 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9438 eval "$gt_func_gnugettext_libintl=yes"
6c133523
TT
9439
9440fi
57aa50d4
TT
9441rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443 fi
9444 CPPFLAGS="$gt_save_CPPFLAGS"
9445 LIBS="$gt_save_LIBS"
da76d6b7 9446fi
93613951
TT
9447eval ac_res=\$$gt_func_gnugettext_libintl
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9449$as_echo "$ac_res" >&6; }
57aa50d4 9450 fi
b0cacab0 9451
93613951
TT
9452 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9453 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
57aa50d4
TT
9454 && test "$PACKAGE" != gettext-runtime \
9455 && test "$PACKAGE" != gettext-tools; }; then
9456 gt_use_preinstalled_gnugettext=yes
9457 else
9458 LIBINTL=
9459 LTLIBINTL=
9460 INCINTL=
9461 fi
740837de 9462
b0cacab0 9463
b0cacab0 9464
93613951
TT
9465 if test -n "$INTL_MACOSX_LIBS"; then
9466 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9467 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9468 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9469 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9470 fi
9471 fi
9472
57aa50d4
TT
9473 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9474 || test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0 9475
57aa50d4 9476$as_echo "#define ENABLE_NLS 1" >>confdefs.h
b0cacab0 9477
57aa50d4
TT
9478 else
9479 USE_NLS=no
9480 fi
9481 fi
b0cacab0 9482
57aa50d4
TT
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9484$as_echo_n "checking whether to use NLS... " >&6; }
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9486$as_echo "$USE_NLS" >&6; }
9487 if test "$USE_NLS" = "yes"; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9489$as_echo_n "checking where the gettext function comes from... " >&6; }
9490 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 9491 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
9492 gt_source="external libintl"
9493 else
9494 gt_source="libc"
9495 fi
9496 else
9497 gt_source="included intl directory"
9498 fi
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9500$as_echo "$gt_source" >&6; }
9501 fi
b0cacab0 9502
57aa50d4 9503 if test "$USE_NLS" = "yes"; then
b0cacab0 9504
57aa50d4 9505 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 9506 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9508$as_echo_n "checking how to link with libintl... " >&6; }
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9510$as_echo "$LIBINTL" >&6; }
b0cacab0 9511
57aa50d4
TT
9512 for element in $INCINTL; do
9513 haveit=
9514 for x in $CPPFLAGS; do
b0cacab0 9515
57aa50d4
TT
9516 acl_save_prefix="$prefix"
9517 prefix="$acl_final_prefix"
9518 acl_save_exec_prefix="$exec_prefix"
9519 exec_prefix="$acl_final_exec_prefix"
9520 eval x=\"$x\"
9521 exec_prefix="$acl_save_exec_prefix"
9522 prefix="$acl_save_prefix"
b0cacab0 9523
57aa50d4
TT
9524 if test "X$x" = "X$element"; then
9525 haveit=yes
9526 break
9527 fi
9528 done
9529 if test -z "$haveit"; then
9530 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9531 fi
9532 done
b0cacab0 9533
57aa50d4 9534 fi
b0cacab0
TT
9535
9536
57aa50d4 9537$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
b0cacab0
TT
9538
9539
57aa50d4 9540$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
b0cacab0 9541
57aa50d4 9542 fi
b0cacab0 9543
57aa50d4
TT
9544 POSUB=po
9545 fi
b0cacab0
TT
9546
9547
b0cacab0 9548
57aa50d4 9549 INTLLIBS="$LIBINTL"
e1052144 9550
b0cacab0 9551
93636bde 9552
93636bde 9553
b0cacab0 9554
93636bde 9555
50e1e10f 9556
57aa50d4
TT
9557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9558$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9559set x ${MAKE-make}
9560ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6a4bcb5 9561if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
57aa50d4
TT
9562 $as_echo_n "(cached) " >&6
9563else
9564 cat >conftest.make <<\_ACEOF
9565SHELL = /bin/sh
9566all:
9567 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 9568_ACEOF
d6a4bcb5 9569# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
9570case `${MAKE-make} -f conftest.make 2>/dev/null` in
9571 *@@@%%%=?*=@@@%%%*)
9572 eval ac_cv_prog_make_${ac_make}_set=yes;;
9573 *)
9574 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 9575esac
57aa50d4 9576rm -f conftest.make
b0cacab0 9577fi
57aa50d4
TT
9578if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9580$as_echo "yes" >&6; }
9581 SET_MAKE=
b0b9c4de 9582else
57aa50d4
TT
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584$as_echo "no" >&6; }
9585 SET_MAKE="MAKE=${MAKE-make}"
b0cacab0 9586fi
b0cacab0 9587
57aa50d4
TT
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9589$as_echo_n "checking for GNU make... " >&6; }
d6a4bcb5 9590if ${_cv_gnu_make_command+:} false; then :
57aa50d4 9591 $as_echo_n "(cached) " >&6
39fd3d4f 9592else
57aa50d4 9593 _cv_gnu_make_command='' ;
e703ba4b 9594 if test -n "$FORCE_NATIVE_MAKE" ; then
f3bc1561
TT
9595 MAKES="make"
9596 else
9597 MAKES="make gmake gnumake"
9598 fi
9599 for a in "$MAKE" $MAKES ; do
57aa50d4
TT
9600 if test -z "$a" ; then continue ; fi ;
9601 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9602 _cv_gnu_make_command=$a ;
9603 break;
9604 fi
9605 done ;
50e1e10f 9606
50e1e10f 9607fi
57aa50d4
TT
9608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9609$as_echo "$_cv_gnu_make_command" >&6; } ;
9610 if test "x$_cv_gnu_make_command" != "x" ; then
9611 ifGNUmake='' ;
9612 ifNotGNUmake='#' ;
9613 else
9614 ifGNUmake='#' ;
9615 ifNotGNUmake='' ;
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9617$as_echo "\"Not found\"" >&6; };
9618 fi
50e1e10f 9619
50e1e10f 9620
b0cacab0 9621
57aa50d4
TT
9622# Extract the first word of "ln", so it can be a program name with args.
9623set dummy ln; ac_word=$2
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9626if ${ac_cv_path_LN+:} false; then :
39fd3d4f 9627 $as_echo_n "(cached) " >&6
fff45483 9628else
57aa50d4
TT
9629 case $LN in
9630 [\\/]* | ?:[\\/]*)
9631 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9632 ;;
9633 *)
9634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9635for as_dir in $PATH
9636do
9637 IFS=$as_save_IFS
9638 test -z "$as_dir" && as_dir=.
9639 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9641 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9643 break 2
9644 fi
9645done
9646 done
9647IFS=$as_save_IFS
6c65d251 9648
57aa50d4
TT
9649 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9650 ;;
e1052144 9651esac
fff45483 9652fi
57aa50d4
TT
9653LN=$ac_cv_path_LN
9654if test -n "$LN"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9656$as_echo "$LN" >&6; }
9657else
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659$as_echo "no" >&6; }
fff45483 9660fi
e1052144 9661
fff45483 9662
5abc0414 9663
57aa50d4
TT
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9665$as_echo_n "checking whether ln -s works... " >&6; }
9666LN_S=$as_ln_s
9667if test "$LN_S" = "ln -s"; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9669$as_echo "yes" >&6; }
9670else
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9672$as_echo "no, using $LN_S" >&6; }
fff45483 9673fi
6c65d251 9674
57aa50d4
TT
9675# Extract the first word of "mv", so it can be a program name with args.
9676set dummy mv; ac_word=$2
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9679if ${ac_cv_path_MV+:} false; then :
39fd3d4f 9680 $as_echo_n "(cached) " >&6
fff45483 9681else
57aa50d4
TT
9682 case $MV in
9683 [\\/]* | ?:[\\/]*)
9684 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9685 ;;
9686 *)
9687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688for as_dir in $PATH
9689do
9690 IFS=$as_save_IFS
9691 test -z "$as_dir" && as_dir=.
9692 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9694 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9696 break 2
9697 fi
9698done
9699 done
9700IFS=$as_save_IFS
6c65d251 9701
57aa50d4
TT
9702 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9703 ;;
e1052144 9704esac
b0cacab0 9705fi
57aa50d4
TT
9706MV=$ac_cv_path_MV
9707if test -n "$MV"; then
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9709$as_echo "$MV" >&6; }
b0b9c4de 9710else
57aa50d4
TT
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712$as_echo "no" >&6; }
39fd3d4f
SJR
9713fi
9714
39fd3d4f 9715
57aa50d4
TT
9716# Extract the first word of "cp", so it can be a program name with args.
9717set dummy cp; ac_word=$2
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9720if ${ac_cv_path_CP+:} false; then :
39fd3d4f 9721 $as_echo_n "(cached) " >&6
b0cacab0 9722else
57aa50d4
TT
9723 case $CP in
9724 [\\/]* | ?:[\\/]*)
9725 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9726 ;;
9727 *)
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729for as_dir in $PATH
9730do
9731 IFS=$as_save_IFS
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9735 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 break 2
9738 fi
9739done
9740 done
9741IFS=$as_save_IFS
39fd3d4f 9742
57aa50d4
TT
9743 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9744 ;;
e1052144 9745esac
b0b9c4de 9746fi
57aa50d4
TT
9747CP=$ac_cv_path_CP
9748if test -n "$CP"; then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9750$as_echo "$CP" >&6; }
b0cacab0 9751else
57aa50d4
TT
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753$as_echo "no" >&6; }
b0b9c4de 9754fi
b0b9c4de 9755
6c65d251 9756
57aa50d4
TT
9757# Extract the first word of "rm", so it can be a program name with args.
9758set dummy rm; ac_word=$2
9759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9761if ${ac_cv_path_RM+:} false; then :
39fd3d4f 9762 $as_echo_n "(cached) " >&6
6928adc9 9763else
57aa50d4
TT
9764 case $RM in
9765 [\\/]* | ?:[\\/]*)
9766 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9767 ;;
9768 *)
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770for as_dir in $PATH
9771do
9772 IFS=$as_save_IFS
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9776 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 break 2
9779 fi
9780done
b0cacab0 9781 done
57aa50d4 9782IFS=$as_save_IFS
6c65d251 9783
57aa50d4
TT
9784 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9785 ;;
e1052144 9786esac
6928adc9 9787fi
57aa50d4
TT
9788RM=$ac_cv_path_RM
9789if test -n "$RM"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9791$as_echo "$RM" >&6; }
b0cacab0 9792else
57aa50d4
TT
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794$as_echo "no" >&6; }
6928adc9 9795fi
6928adc9 9796
6c65d251 9797
57aa50d4
TT
9798# Extract the first word of "chmod", so it can be a program name with args.
9799set dummy chmod; ac_word=$2
9800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9801$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9802if ${ac_cv_path_CHMOD+:} false; then :
39fd3d4f 9803 $as_echo_n "(cached) " >&6
b0cacab0 9804else
57aa50d4
TT
9805 case $CHMOD in
9806 [\\/]* | ?:[\\/]*)
9807 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9808 ;;
9809 *)
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811for as_dir in $PATH
9812do
9813 IFS=$as_save_IFS
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9817 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 break 2
9820 fi
9821done
9822 done
9823IFS=$as_save_IFS
39fd3d4f 9824
57aa50d4
TT
9825 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9826 ;;
e1052144 9827esac
b0cacab0 9828fi
57aa50d4
TT
9829CHMOD=$ac_cv_path_CHMOD
9830if test -n "$CHMOD"; then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9832$as_echo "$CHMOD" >&6; }
b0cacab0 9833else
57aa50d4
TT
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835$as_echo "no" >&6; }
b0cacab0 9836fi
39fd3d4f 9837
b0cacab0 9838
57aa50d4
TT
9839for ac_prog in gawk mawk nawk awk
9840do
9841 # Extract the first word of "$ac_prog", so it can be a program name with args.
9842set dummy $ac_prog; ac_word=$2
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9844$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9845if ${ac_cv_prog_AWK+:} false; then :
39fd3d4f 9846 $as_echo_n "(cached) " >&6
b0cacab0 9847else
57aa50d4
TT
9848 if test -n "$AWK"; then
9849 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b0cacab0 9850else
57aa50d4
TT
9851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852for as_dir in $PATH
9853do
9854 IFS=$as_save_IFS
9855 test -z "$as_dir" && as_dir=.
9856 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9858 ac_cv_prog_AWK="$ac_prog"
9859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 break 2
9861 fi
9862done
9863 done
9864IFS=$as_save_IFS
b0cacab0 9865
b0cacab0 9866fi
57aa50d4
TT
9867fi
9868AWK=$ac_cv_prog_AWK
9869if test -n "$AWK"; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9871$as_echo "$AWK" >&6; }
b0cacab0 9872else
57aa50d4
TT
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874$as_echo "no" >&6; }
b0cacab0 9875fi
b0cacab0 9876
b0cacab0 9877
57aa50d4
TT
9878 test -n "$AWK" && break
9879done
b0cacab0 9880
57aa50d4
TT
9881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9882$as_echo_n "checking for egrep... " >&6; }
d6a4bcb5 9883if ${ac_cv_path_EGREP+:} false; then :
57aa50d4 9884 $as_echo_n "(cached) " >&6
b0cacab0 9885else
57aa50d4
TT
9886 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9887 then ac_cv_path_EGREP="$GREP -E"
9888 else
9889 if test -z "$EGREP"; then
9890 ac_path_EGREP_found=false
9891 # Loop through the user's path and test for each of PROGNAME-LIST
9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9894do
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
9897 for ac_prog in egrep; do
9898 for ac_exec_ext in '' $ac_executable_extensions; do
9899 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d6a4bcb5 9900 as_fn_executable_p "$ac_path_EGREP" || continue
57aa50d4
TT
9901# Check for GNU ac_path_EGREP and select it if it is found.
9902 # Check for GNU $ac_path_EGREP
9903case `"$ac_path_EGREP" --version 2>&1` in
9904*GNU*)
9905 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9906*)
9907 ac_count=0
9908 $as_echo_n 0123456789 >"conftest.in"
9909 while :
9910 do
9911 cat "conftest.in" "conftest.in" >"conftest.tmp"
9912 mv "conftest.tmp" "conftest.in"
9913 cp "conftest.in" "conftest.nl"
9914 $as_echo 'EGREP' >> "conftest.nl"
9915 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9917 as_fn_arith $ac_count + 1 && ac_count=$as_val
9918 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9919 # Best one so far, save it but keep looking for a better one
9920 ac_cv_path_EGREP="$ac_path_EGREP"
9921 ac_path_EGREP_max=$ac_count
9922 fi
9923 # 10*(2^10) chars as input seems more than enough
9924 test $ac_count -gt 10 && break
9925 done
9926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
e1052144 9927esac
e1052144 9928
57aa50d4
TT
9929 $ac_path_EGREP_found && break 3
9930 done
b0cacab0 9931 done
57aa50d4
TT
9932 done
9933IFS=$as_save_IFS
9934 if test -z "$ac_cv_path_EGREP"; then
d6a4bcb5 9935 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
57aa50d4 9936 fi
b0cacab0 9937else
57aa50d4 9938 ac_cv_path_EGREP=$EGREP
b0cacab0 9939fi
e1052144 9940
57aa50d4 9941 fi
b0cacab0 9942fi
57aa50d4
TT
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9944$as_echo "$ac_cv_path_EGREP" >&6; }
9945 EGREP="$ac_cv_path_EGREP"
e1052144 9946
b0cacab0 9947
57aa50d4
TT
9948# Extract the first word of "sed", so it can be a program name with args.
9949set dummy sed; ac_word=$2
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9952if ${ac_cv_path_SED+:} false; then :
57aa50d4 9953 $as_echo_n "(cached) " >&6
b0cacab0 9954else
57aa50d4
TT
9955 case $SED in
9956 [\\/]* | ?:[\\/]*)
9957 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9958 ;;
9959 *)
9960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961for as_dir in $PATH
9962do
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
9965 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9967 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 break 2
9970 fi
b0cacab0 9971done
57aa50d4
TT
9972 done
9973IFS=$as_save_IFS
b0cacab0 9974
57aa50d4
TT
9975 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9976 ;;
b0cacab0 9977esac
57aa50d4
TT
9978fi
9979SED=$ac_cv_path_SED
9980if test -n "$SED"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9982$as_echo "$SED" >&6; }
b0cacab0 9983else
57aa50d4
TT
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985$as_echo "no" >&6; }
b0cacab0 9986fi
e1052144 9987
b0cacab0 9988
57aa50d4
TT
9989# Extract the first word of "perl", so it can be a program name with args.
9990set dummy perl; ac_word=$2
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9993if ${ac_cv_path_PERL+:} false; then :
57aa50d4
TT
9994 $as_echo_n "(cached) " >&6
9995else
9996 case $PERL in
9997 [\\/]* | ?:[\\/]*)
9998 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9999 ;;
10000 *)
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002for as_dir in $PATH
10003do
10004 IFS=$as_save_IFS
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10008 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10010 break 2
10011 fi
b0cacab0 10012done
57aa50d4
TT
10013 done
10014IFS=$as_save_IFS
10015
10016 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10017 ;;
b0cacab0 10018esac
57aa50d4
TT
10019fi
10020PERL=$ac_cv_path_PERL
10021if test -n "$PERL"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10023$as_echo "$PERL" >&6; }
b0cacab0 10024else
57aa50d4
TT
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026$as_echo "no" >&6; }
10027fi
b0cacab0 10028
b0cacab0 10029
57aa50d4
TT
10030# Extract the first word of "ldconfig", so it can be a program name with args.
10031set dummy ldconfig; ac_word=$2
10032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10034if ${ac_cv_path_LDCONFIG+:} false; then :
57aa50d4 10035 $as_echo_n "(cached) " >&6
b0cacab0 10036else
57aa50d4
TT
10037 case $LDCONFIG in
10038 [\\/]* | ?:[\\/]*)
10039 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10040 ;;
10041 *)
10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043for as_dir in $PATH
10044do
10045 IFS=$as_save_IFS
10046 test -z "$as_dir" && as_dir=.
10047 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10049 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 break 2
10052 fi
10053done
10054 done
10055IFS=$as_save_IFS
b0cacab0 10056
57aa50d4
TT
10057 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10058 ;;
10059esac
39fd3d4f 10060fi
57aa50d4
TT
10061LDCONFIG=$ac_cv_path_LDCONFIG
10062if test -n "$LDCONFIG"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10064$as_echo "$LDCONFIG" >&6; }
10065else
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067$as_echo "no" >&6; }
b0cacab0 10068fi
39fd3d4f
SJR
10069
10070
57aa50d4
TT
10071if test -n "$ac_tool_prefix"; then
10072 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10073set dummy ${ac_tool_prefix}ar; ac_word=$2
10074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10076if ${ac_cv_prog_AR+:} false; then :
57aa50d4
TT
10077 $as_echo_n "(cached) " >&6
10078else
10079 if test -n "$AR"; then
10080 ac_cv_prog_AR="$AR" # Let the user override the test.
10081else
10082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083for as_dir in $PATH
10084do
10085 IFS=$as_save_IFS
10086 test -z "$as_dir" && as_dir=.
10087 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10089 ac_cv_prog_AR="${ac_tool_prefix}ar"
10090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10091 break 2
10092 fi
10093done
10094 done
10095IFS=$as_save_IFS
39fd3d4f 10096
57aa50d4
TT
10097fi
10098fi
10099AR=$ac_cv_prog_AR
10100if test -n "$AR"; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10102$as_echo "$AR" >&6; }
10103else
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105$as_echo "no" >&6; }
10106fi
39fd3d4f 10107
b0cacab0 10108
57aa50d4
TT
10109fi
10110if test -z "$ac_cv_prog_AR"; then
10111 ac_ct_AR=$AR
10112 # Extract the first word of "ar", so it can be a program name with args.
10113set dummy ar; ac_word=$2
10114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10116if ${ac_cv_prog_ac_ct_AR+:} false; then :
39fd3d4f 10117 $as_echo_n "(cached) " >&6
b0cacab0 10118else
57aa50d4
TT
10119 if test -n "$ac_ct_AR"; then
10120 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b0cacab0 10121else
57aa50d4
TT
10122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123for as_dir in $PATH
10124do
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
10127 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10129 ac_cv_prog_ac_ct_AR="ar"
10130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131 break 2
10132 fi
10133done
10134 done
10135IFS=$as_save_IFS
b0cacab0 10136
b0cacab0 10137fi
57aa50d4
TT
10138fi
10139ac_ct_AR=$ac_cv_prog_ac_ct_AR
10140if test -n "$ac_ct_AR"; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10142$as_echo "$ac_ct_AR" >&6; }
b0cacab0 10143else
57aa50d4
TT
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145$as_echo "no" >&6; }
10146fi
b0cacab0 10147
57aa50d4
TT
10148 if test "x$ac_ct_AR" = x; then
10149 AR="ar"
10150 else
10151 case $cross_compiling:$ac_tool_warned in
10152yes:)
10153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10155ac_tool_warned=yes ;;
e1052144 10156esac
57aa50d4
TT
10157 AR=$ac_ct_AR
10158 fi
b0cacab0 10159else
57aa50d4 10160 AR="$ac_cv_prog_AR"
b0cacab0 10161fi
e1052144 10162
57aa50d4
TT
10163if test -n "$ac_tool_prefix"; then
10164 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10165set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10168if ${ac_cv_prog_RANLIB+:} false; then :
57aa50d4 10169 $as_echo_n "(cached) " >&6
b0cacab0 10170else
57aa50d4
TT
10171 if test -n "$RANLIB"; then
10172 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10173else
10174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175for as_dir in $PATH
10176do
10177 IFS=$as_save_IFS
10178 test -z "$as_dir" && as_dir=.
10179 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183 break 2
10184 fi
10185done
b0cacab0 10186 done
57aa50d4 10187IFS=$as_save_IFS
b0cacab0 10188
b0cacab0 10189fi
57aa50d4
TT
10190fi
10191RANLIB=$ac_cv_prog_RANLIB
10192if test -n "$RANLIB"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10194$as_echo "$RANLIB" >&6; }
b0cacab0 10195else
57aa50d4
TT
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197$as_echo "no" >&6; }
b0cacab0 10198fi
b0cacab0 10199
b0cacab0 10200
57aa50d4
TT
10201fi
10202if test -z "$ac_cv_prog_RANLIB"; then
10203 ac_ct_RANLIB=$RANLIB
10204 # Extract the first word of "ranlib", so it can be a program name with args.
10205set dummy ranlib; ac_word=$2
10206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10208if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
57aa50d4
TT
10209 $as_echo_n "(cached) " >&6
10210else
10211 if test -n "$ac_ct_RANLIB"; then
10212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b0cacab0 10213else
57aa50d4
TT
10214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215for as_dir in $PATH
10216do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10221 ac_cv_prog_ac_ct_RANLIB="ranlib"
10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10223 break 2
10224 fi
10225done
10226 done
10227IFS=$as_save_IFS
29a5deed 10228
b0cacab0 10229fi
57aa50d4
TT
10230fi
10231ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10232if test -n "$ac_ct_RANLIB"; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10234$as_echo "$ac_ct_RANLIB" >&6; }
b0cacab0 10235else
57aa50d4
TT
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237$as_echo "no" >&6; }
10238fi
b0cacab0 10239
57aa50d4
TT
10240 if test "x$ac_ct_RANLIB" = x; then
10241 RANLIB=":"
b0cacab0 10242 else
57aa50d4
TT
10243 case $cross_compiling:$ac_tool_warned in
10244yes:)
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10247ac_tool_warned=yes ;;
e1052144 10248esac
57aa50d4
TT
10249 RANLIB=$ac_ct_RANLIB
10250 fi
b0cacab0 10251else
57aa50d4 10252 RANLIB="$ac_cv_prog_RANLIB"
b0cacab0 10253fi
e1052144 10254
57aa50d4
TT
10255if test -n "$ac_tool_prefix"; then
10256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10257set dummy ${ac_tool_prefix}strip; ac_word=$2
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10260if ${ac_cv_prog_STRIP+:} false; then :
57aa50d4 10261 $as_echo_n "(cached) " >&6
b0cacab0 10262else
57aa50d4
TT
10263 if test -n "$STRIP"; then
10264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10265else
10266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267for as_dir in $PATH
10268do
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10273 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 break 2
10276 fi
10277done
10278 done
10279IFS=$as_save_IFS
b0cacab0 10280
b0cacab0 10281fi
b0cacab0 10282fi
57aa50d4
TT
10283STRIP=$ac_cv_prog_STRIP
10284if test -n "$STRIP"; then
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10286$as_echo "$STRIP" >&6; }
10287else
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289$as_echo "no" >&6; }
b0cacab0 10290fi
e1052144 10291
b0cacab0 10292
57aa50d4
TT
10293fi
10294if test -z "$ac_cv_prog_STRIP"; then
10295 ac_ct_STRIP=$STRIP
10296 # Extract the first word of "strip", so it can be a program name with args.
10297set dummy strip; ac_word=$2
10298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10300if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
39fd3d4f 10301 $as_echo_n "(cached) " >&6
b0cacab0 10302else
57aa50d4
TT
10303 if test -n "$ac_ct_STRIP"; then
10304 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10305else
10306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307for as_dir in $PATH
10308do
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10313 ac_cv_prog_ac_ct_STRIP="strip"
10314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10316 fi
10317done
10318 done
10319IFS=$as_save_IFS
b0cacab0 10320
b0cacab0 10321fi
57aa50d4
TT
10322fi
10323ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10324if test -n "$ac_ct_STRIP"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10326$as_echo "$ac_ct_STRIP" >&6; }
b0cacab0 10327else
57aa50d4
TT
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329$as_echo "no" >&6; }
10330fi
b0cacab0 10331
57aa50d4
TT
10332 if test "x$ac_ct_STRIP" = x; then
10333 STRIP=":"
b0cacab0 10334 else
57aa50d4
TT
10335 case $cross_compiling:$ac_tool_warned in
10336yes:)
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10339ac_tool_warned=yes ;;
e1052144 10340esac
57aa50d4
TT
10341 STRIP=$ac_ct_STRIP
10342 fi
b0cacab0 10343else
57aa50d4 10344 STRIP="$ac_cv_prog_STRIP"
b0cacab0 10345fi
e1052144 10346
57aa50d4
TT
10347# Extract the first word of "makeinfo", so it can be a program name with args.
10348set dummy makeinfo; ac_word=$2
10349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10351if ${ac_cv_prog_MAKEINFO+:} false; then :
57aa50d4 10352 $as_echo_n "(cached) " >&6
07a0db15 10353else
57aa50d4
TT
10354 if test -n "$MAKEINFO"; then
10355 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10356else
10357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358for as_dir in $PATH
10359do
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10364 ac_cv_prog_MAKEINFO="makeinfo"
10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 break 2
10367 fi
10368done
10369 done
10370IFS=$as_save_IFS
b0cacab0 10371
b0cacab0
TT
10372fi
10373fi
57aa50d4
TT
10374MAKEINFO=$ac_cv_prog_MAKEINFO
10375if test -n "$MAKEINFO"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10377$as_echo "$MAKEINFO" >&6; }
b0cacab0 10378else
57aa50d4
TT
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380$as_echo "no" >&6; }
07a0db15 10381fi
29a5deed
TT
10382
10383
57aa50d4 10384if test "_$MAKEINFO" = "_"; then
ca1de98a 10385 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
57aa50d4
TT
10386else
10387 case "$MAKEINFO" in
10388 */missing.*)
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10390*** Makeinfo is missing. Info documentation will not be built." >&5
10391$as_echo "$as_me: WARNING:
10392*** Makeinfo is missing. Info documentation will not be built." >&2;}
10393 ;;
10394 *)
10395 ;;
10396 esac
b0cacab0 10397fi
29a5deed 10398
b0cacab0 10399
57aa50d4
TT
10400# See if we need a separate native compiler.
10401if test $cross_compiling = no; then
10402 BUILD_CC="$CC"
b0cacab0 10403
b0cacab0 10404else
57aa50d4
TT
10405 for ac_prog in gcc cc
10406do
10407 # Extract the first word of "$ac_prog", so it can be a program name with args.
10408set dummy $ac_prog; ac_word=$2
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10411if ${ac_cv_prog_BUILD_CC+:} false; then :
57aa50d4 10412 $as_echo_n "(cached) " >&6
b0cacab0 10413else
57aa50d4
TT
10414 if test -n "$BUILD_CC"; then
10415 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10416else
10417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418for as_dir in $PATH
10419do
10420 IFS=$as_save_IFS
10421 test -z "$as_dir" && as_dir=.
10422 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10424 ac_cv_prog_BUILD_CC="$ac_prog"
10425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10426 break 2
10427 fi
10428done
10429 done
10430IFS=$as_save_IFS
b0cacab0 10431
b0cacab0 10432fi
57aa50d4
TT
10433fi
10434BUILD_CC=$ac_cv_prog_BUILD_CC
10435if test -n "$BUILD_CC"; then
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10437$as_echo "$BUILD_CC" >&6; }
07a0db15 10438else
57aa50d4
TT
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440$as_echo "no" >&6; }
b0cacab0 10441fi
b0cacab0 10442
b0cacab0 10443
57aa50d4
TT
10444 test -n "$BUILD_CC" && break
10445done
b0cacab0 10446
57aa50d4 10447fi
3829c16c 10448for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
57aa50d4
TT
10449do :
10450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10451ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d6a4bcb5 10452if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
57aa50d4
TT
10453 cat >>confdefs.h <<_ACEOF
10454#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 10455_ACEOF
b0cacab0 10456
b0cacab0 10457fi
e1052144 10458
b0cacab0 10459done
93636bde 10460
ec3a69bb
MA
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
10462$as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
10463DD=
10464for i in dd gdd ; do
10465 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
10466 DD=$i
10467 break
10468 fi
10469done
10470if test -n "$DD" ; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
10472$as_echo "$DD" >&6; }
10473else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
10475$as_echo "not found, using dd" >&6; }
10476 DD=dd
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
10478$as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
10479fi
10480
10481
57aa50d4
TT
10482for ac_header in net/if.h
10483do :
10484 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10485#if HAVE_SYS_TYPES_H
10486#include <sys/types.h>
10487#endif
10488#if HAVE_SYS_SOCKET
10489#include <sys/socket.h>
10490#endif
29a5deed 10491
57aa50d4 10492"
d6a4bcb5 10493if test "x$ac_cv_header_net_if_h" = xyes; then :
57aa50d4
TT
10494 cat >>confdefs.h <<_ACEOF
10495#define HAVE_NET_IF_H 1
b0cacab0 10496_ACEOF
b0cacab0 10497
b0cacab0 10498fi
e1052144 10499
b0cacab0 10500done
b0cacab0 10501
57aa50d4
TT
10502for ac_func in vprintf
10503do :
10504 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
d6a4bcb5 10505if test "x$ac_cv_func_vprintf" = xyes; then :
57aa50d4
TT
10506 cat >>confdefs.h <<_ACEOF
10507#define HAVE_VPRINTF 1
b0cacab0 10508_ACEOF
b0cacab0 10509
57aa50d4 10510ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
d6a4bcb5 10511if test "x$ac_cv_func__doprnt" = xyes; then :
b0cacab0 10512
57aa50d4 10513$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
b0cacab0 10514
50e1e10f 10515fi
29a5deed 10516
57aa50d4
TT
10517fi
10518done
29a5deed
TT
10519
10520
57aa50d4
TT
10521ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10522"
d6a4bcb5 10523if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
d1154eb4
TT
10524
10525$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
50e1e10f 10526
2873927d
TT
10527fi
10528
10529ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10530if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10531
10532cat >>confdefs.h <<_ACEOF
10533#define HAVE_STRUCT_STAT_ST_ATIM 1
10534_ACEOF
10535
10536
b0cacab0 10537fi
93636bde 10538
57aa50d4
TT
10539ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10540"
d6a4bcb5 10541if test "x$ac_cv_type_ssize_t" = xyes; then :
d1154eb4
TT
10542
10543$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
b0cacab0 10544
57aa50d4 10545fi
b0cacab0 10546
57aa50d4
TT
10547ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10548"
d6a4bcb5 10549if test "x$ac_cv_have_decl_llseek" = xyes; then :
d1154eb4
TT
10550
10551$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
b0cacab0 10552
b0cacab0 10553fi
e1052144 10554
57aa50d4
TT
10555ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10556 #define _LARGEFILE64_SOURCE
10557 #include <unistd.h>
10558"
d6a4bcb5 10559if test "x$ac_cv_have_decl_lseek64" = xyes; then :
d1154eb4
TT
10560
10561$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
b0cacab0 10562
b0cacab0 10563fi
b0cacab0 10564
57aa50d4
TT
10565# The cast to long int works around a bug in the HP C Compiler
10566# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10567# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10568# This bug is HP SR number 8606223364.
10569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10570$as_echo_n "checking size of short... " >&6; }
d6a4bcb5 10571if ${ac_cv_sizeof_short+:} false; then :
57aa50d4 10572 $as_echo_n "(cached) " >&6
07a0db15 10573else
57aa50d4 10574 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
b0cacab0 10575
b0cacab0 10576else
57aa50d4
TT
10577 if test "$ac_cv_type_short" = yes; then
10578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
10580as_fn_error 77 "cannot compute sizeof (short)
10581See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
10582 else
10583 ac_cv_sizeof_short=0
10584 fi
07a0db15 10585fi
b0cacab0 10586
b0cacab0 10587fi
57aa50d4
TT
10588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10589$as_echo "$ac_cv_sizeof_short" >&6; }
e1052144 10590
93636bde 10591
57aa50d4
TT
10592
10593cat >>confdefs.h <<_ACEOF
10594#define SIZEOF_SHORT $ac_cv_sizeof_short
b0cacab0 10595_ACEOF
57aa50d4
TT
10596
10597
10598# The cast to long int works around a bug in the HP C Compiler
10599# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10600# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10601# This bug is HP SR number 8606223364.
10602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10603$as_echo_n "checking size of int... " >&6; }
d6a4bcb5 10604if ${ac_cv_sizeof_int+:} false; then :
57aa50d4 10605 $as_echo_n "(cached) " >&6
07a0db15 10606else
57aa50d4 10607 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
93636bde 10608
57aa50d4
TT
10609else
10610 if test "$ac_cv_type_int" = yes; then
10611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
10613as_fn_error 77 "cannot compute sizeof (int)
10614See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
10615 else
10616 ac_cv_sizeof_int=0
10617 fi
07a0db15 10618fi
e1052144 10619
b0cacab0 10620fi
57aa50d4
TT
10621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10622$as_echo "$ac_cv_sizeof_int" >&6; }
e1052144 10623
93636bde 10624
57aa50d4
TT
10625
10626cat >>confdefs.h <<_ACEOF
10627#define SIZEOF_INT $ac_cv_sizeof_int
b0cacab0 10628_ACEOF
b0cacab0 10629
e1052144 10630
57aa50d4
TT
10631# The cast to long int works around a bug in the HP C Compiler
10632# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10633# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10634# This bug is HP SR number 8606223364.
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10636$as_echo_n "checking size of long... " >&6; }
d6a4bcb5 10637if ${ac_cv_sizeof_long+:} false; then :
57aa50d4
TT
10638 $as_echo_n "(cached) " >&6
10639else
10640 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10641
10642else
10643 if test "$ac_cv_type_long" = yes; then
10644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 10645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
10646as_fn_error 77 "cannot compute sizeof (long)
10647See \`config.log' for more details" "$LINENO" 5; }
29a5deed 10648 else
57aa50d4
TT
10649 ac_cv_sizeof_long=0
10650 fi
10651fi
39fd3d4f 10652
57aa50d4
TT
10653fi
10654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10655$as_echo "$ac_cv_sizeof_long" >&6; }
39fd3d4f 10656
57aa50d4
TT
10657
10658
10659cat >>confdefs.h <<_ACEOF
10660#define SIZEOF_LONG $ac_cv_sizeof_long
39fd3d4f 10661_ACEOF
57aa50d4
TT
10662
10663
10664# The cast to long int works around a bug in the HP C Compiler
10665# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10666# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10667# This bug is HP SR number 8606223364.
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10669$as_echo_n "checking size of long long... " >&6; }
d6a4bcb5 10670if ${ac_cv_sizeof_long_long+:} false; then :
57aa50d4 10671 $as_echo_n "(cached) " >&6
39fd3d4f 10672else
57aa50d4 10673 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
39fd3d4f 10674
57aa50d4
TT
10675else
10676 if test "$ac_cv_type_long_long" = yes; then
10677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 10678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
10679as_fn_error 77 "cannot compute sizeof (long long)
10680See \`config.log' for more details" "$LINENO" 5; }
39fd3d4f
SJR
10681 else
10682 ac_cv_sizeof_long_long=0
10683 fi
10684fi
57aa50d4 10685
39fd3d4f 10686fi
57aa50d4 10687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
39fd3d4f
SJR
10688$as_echo "$ac_cv_sizeof_long_long" >&6; }
10689
10690
10691
10692cat >>confdefs.h <<_ACEOF
10693#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10694_ACEOF
10695
10696
cc68e8a6
TT
10697# The cast to long int works around a bug in the HP C Compiler
10698# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10699# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10700# This bug is HP SR number 8606223364.
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10702$as_echo_n "checking size of off_t... " >&6; }
10703if ${ac_cv_sizeof_off_t+:} false; then :
10704 $as_echo_n "(cached) " >&6
10705else
10706 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10707
10708else
10709 if test "$ac_cv_type_off_t" = yes; then
10710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10712as_fn_error 77 "cannot compute sizeof (off_t)
10713See \`config.log' for more details" "$LINENO" 5; }
10714 else
10715 ac_cv_sizeof_off_t=0
10716 fi
10717fi
10718
10719fi
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10721$as_echo "$ac_cv_sizeof_off_t" >&6; }
10722
10723
10724
10725cat >>confdefs.h <<_ACEOF
10726#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10727_ACEOF
10728
10729
2dd680f3
TT
10730# The cast to long int works around a bug in the HP C Compiler
10731# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10732# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10733# This bug is HP SR number 8606223364.
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10735$as_echo_n "checking size of time_t... " >&6; }
10736if ${ac_cv_sizeof_time_t+:} false; then :
10737 $as_echo_n "(cached) " >&6
10738else
10739 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
10740
10741else
10742 if test "$ac_cv_type_time_t" = yes; then
10743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10745as_fn_error 77 "cannot compute sizeof (time_t)
10746See \`config.log' for more details" "$LINENO" 5; }
10747 else
10748 ac_cv_sizeof_time_t=0
10749 fi
10750fi
10751
10752fi
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10754$as_echo "$ac_cv_sizeof_time_t" >&6; }
10755
10756
10757
10758cat >>confdefs.h <<_ACEOF
10759#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10760_ACEOF
10761
10762
39fd3d4f
SJR
10763SIZEOF_SHORT=$ac_cv_sizeof_short
10764SIZEOF_INT=$ac_cv_sizeof_int
10765SIZEOF_LONG=$ac_cv_sizeof_long
10766SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
cc68e8a6 10767SIZEOF_OFF_T=$ac_cv_sizeof_off_t
2dd680f3
TT
10768SIZEOF_TIME_T=$ac_cv_sizeof_time_t
10769
cc68e8a6 10770
39fd3d4f
SJR
10771
10772
10773
10774
57aa50d4 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
39fd3d4f 10776$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6a4bcb5 10777if ${ac_cv_c_bigendian+:} false; then :
39fd3d4f
SJR
10778 $as_echo_n "(cached) " >&6
10779else
10780 ac_cv_c_bigendian=unknown
10781 # See if we're dealing with a universal compiler.
57aa50d4 10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
10783/* end confdefs.h. */
10784#ifndef __APPLE_CC__
10785 not a universal capable compiler
10786 #endif
10787 typedef int dummy;
10788
10789_ACEOF
57aa50d4 10790if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
10791
10792 # Check for potential -arch flags. It is not universal unless
57aa50d4
TT
10793 # there are at least two -arch flags with different values.
10794 ac_arch=
10795 ac_prev=
10796 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10797 if test -n "$ac_prev"; then
10798 case $ac_word in
10799 i?86 | x86_64 | ppc | ppc64)
10800 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10801 ac_arch=$ac_word
10802 else
10803 ac_cv_c_bigendian=universal
10804 break
10805 fi
10806 ;;
10807 esac
10808 ac_prev=
10809 elif test "x$ac_word" = "x-arch"; then
10810 ac_prev=arch
10811 fi
10812 done
39fd3d4f 10813fi
39fd3d4f
SJR
10814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 if test $ac_cv_c_bigendian = unknown; then
10816 # See if sys/param.h defines the BYTE_ORDER macro.
57aa50d4 10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
10818/* end confdefs.h. */
10819#include <sys/types.h>
10820 #include <sys/param.h>
10821
10822int
10823main ()
10824{
10825#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10826 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10827 && LITTLE_ENDIAN)
10828 bogus endian macros
10829 #endif
10830
10831 ;
10832 return 0;
10833}
10834_ACEOF
57aa50d4 10835if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 10836 # It does; now see whether it defined to BIG_ENDIAN or not.
57aa50d4 10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
10838/* end confdefs.h. */
10839#include <sys/types.h>
10840 #include <sys/param.h>
10841
b0cacab0
TT
10842int
10843main ()
07a0db15 10844{
39fd3d4f
SJR
10845#if BYTE_ORDER != BIG_ENDIAN
10846 not big endian
10847 #endif
b0cacab0
TT
10848
10849 ;
10850 return 0;
07a0db15 10851}
b0cacab0 10852_ACEOF
57aa50d4 10853if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 10854 ac_cv_c_bigendian=yes
b0cacab0 10855else
57aa50d4 10856 ac_cv_c_bigendian=no
fc6d9d51 10857fi
39fd3d4f 10858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 10859fi
39fd3d4f
SJR
10860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10861 fi
10862 if test $ac_cv_c_bigendian = unknown; then
10863 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57aa50d4 10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 10865/* end confdefs.h. */
39fd3d4f 10866#include <limits.h>
877eb6d9 10867
b0cacab0
TT
10868int
10869main ()
10870{
39fd3d4f
SJR
10871#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10872 bogus endian macros
10873 #endif
b0cacab0
TT
10874
10875 ;
10876 return 0;
10877}
b0cacab0 10878_ACEOF
57aa50d4
TT
10879if ac_fn_c_try_compile "$LINENO"; then :
10880 # It does; now see whether it defined to _BIG_ENDIAN or not.
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 10882/* end confdefs.h. */
39fd3d4f 10883#include <limits.h>
877eb6d9 10884
b0cacab0
TT
10885int
10886main ()
10887{
39fd3d4f
SJR
10888#ifndef _BIG_ENDIAN
10889 not big endian
10890 #endif
b0cacab0
TT
10891
10892 ;
10893 return 0;
10894}
10895_ACEOF
57aa50d4 10896if ac_fn_c_try_compile "$LINENO"; then :
877eb6d9
TT
10897 ac_cv_c_bigendian=yes
10898else
57aa50d4 10899 ac_cv_c_bigendian=no
877eb6d9 10900fi
e1052144 10901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 10902fi
39fd3d4f
SJR
10903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10904 fi
10905 if test $ac_cv_c_bigendian = unknown; then
10906 # Compile a test program.
57aa50d4 10907 if test "$cross_compiling" = yes; then :
39fd3d4f 10908 # Try to guess by grepping values from an object file.
57aa50d4 10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 10910/* end confdefs.h. */
39fd3d4f
SJR
10911short int ascii_mm[] =
10912 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10913 short int ascii_ii[] =
10914 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10915 int use_ascii (int i) {
10916 return ascii_mm[i] + ascii_ii[i];
10917 }
10918 short int ebcdic_ii[] =
10919 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10920 short int ebcdic_mm[] =
10921 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10922 int use_ebcdic (int i) {
10923 return ebcdic_mm[i] + ebcdic_ii[i];
10924 }
10925 extern int foo;
10926
b0cacab0
TT
10927int
10928main ()
10929{
39fd3d4f 10930return use_ascii (foo) == use_ebcdic (foo);
b0cacab0
TT
10931 ;
10932 return 0;
10933}
10934_ACEOF
57aa50d4 10935if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
10936 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10937 ac_cv_c_bigendian=yes
10938 fi
10939 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10940 if test "$ac_cv_c_bigendian" = unknown; then
10941 ac_cv_c_bigendian=no
10942 else
10943 # finding both strings is unlikely to happen, but who knows?
10944 ac_cv_c_bigendian=unknown
10945 fi
10946 fi
b0cacab0 10947fi
e1052144 10948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 10949else
57aa50d4 10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 10951/* end confdefs.h. */
e1052144 10952$ac_includes_default
b0cacab0
TT
10953int
10954main ()
10955{
e1052144 10956
39fd3d4f
SJR
10957 /* Are we little or big endian? From Harbison&Steele. */
10958 union
10959 {
10960 long int l;
10961 char c[sizeof (long int)];
10962 } u;
10963 u.l = 1;
10964 return u.c[sizeof (long int) - 1] == 1;
e1052144
TT
10965
10966 ;
10967 return 0;
877eb6d9 10968}
b0cacab0 10969_ACEOF
57aa50d4 10970if ac_fn_c_try_run "$LINENO"; then :
877eb6d9
TT
10971 ac_cv_c_bigendian=no
10972else
57aa50d4 10973 ac_cv_c_bigendian=yes
877eb6d9 10974fi
57aa50d4
TT
10975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10976 conftest.$ac_objext conftest.beam conftest.$ac_ext
877eb6d9 10977fi
e1052144 10978
39fd3d4f 10979 fi
877eb6d9 10980fi
57aa50d4 10981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
39fd3d4f
SJR
10982$as_echo "$ac_cv_c_bigendian" >&6; }
10983 case $ac_cv_c_bigendian in #(
10984 yes)
57aa50d4 10985 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
39fd3d4f
SJR
10986;; #(
10987 no)
10988 ;; #(
10989 universal)
07a0db15 10990
57aa50d4 10991$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
39fd3d4f
SJR
10992
10993 ;; #(
10994 *)
d6a4bcb5 10995 as_fn_error $? "unknown endianness
57aa50d4 10996 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
39fd3d4f 10997 esac
877eb6d9 10998
91f04685
CQ
10999if test $cross_compiling = no; then
11000 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11001else
11002 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11003fi
4ea7ea00
TT
11004ASM_TYPES_HEADER=./asm_types.h
11005
488c75a6
TT
11006echo "/* These defines are needed for the public ext2fs.h header file */" \
11007 > public_config.h
11008if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
11009 uniq tmp_config.$$ >> public_config.h
11010else
11011 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
11012fi
11013if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
11014 uniq tmp_config.$$ >> public_config.h
11015else
11016 echo "#undef WORDS_BIGENDIAN" >> public_config.h
11017fi
11018rm -f tmp_config.$$
11019PUBLIC_CONFIG_HEADER=./public_config.h
11020
b0cacab0 11021for ac_header in inttypes.h
57aa50d4
TT
11022do :
11023 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
d6a4bcb5 11024if test "x$ac_cv_header_inttypes_h" = xyes; then :
b0cacab0 11025 cat >>confdefs.h <<_ACEOF
57aa50d4 11026#define HAVE_INTTYPES_H 1
b0cacab0
TT
11027_ACEOF
11028
11029fi
11030
0c193f82
TT
11031done
11032
57aa50d4 11033ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
d6a4bcb5 11034if test "x$ac_cv_type_intptr_t" = xyes; then :
b0cacab0
TT
11035
11036cat >>confdefs.h <<_ACEOF
d2ee56d8 11037#define HAVE_INTPTR_T 1
b0cacab0 11038_ACEOF
0c193f82 11039
d2ee56d8 11040
0c193f82
TT
11041fi
11042
57aa50d4 11043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
39fd3d4f 11044$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
d6a4bcb5 11045if ${e2fsprogs_cv_struct_st_flags+:} false; then :
39fd3d4f 11046 $as_echo_n "(cached) " >&6
50e1e10f 11047else
57aa50d4 11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 11049/* end confdefs.h. */
50e1e10f 11050#include <sys/stat.h>
b0cacab0
TT
11051int
11052main ()
11053{
50e1e10f 11054struct stat stat; stat.st_flags = 0;
b0cacab0
TT
11055 ;
11056 return 0;
11057}
11058_ACEOF
57aa50d4 11059if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f
TT
11060 e2fsprogs_cv_struct_st_flags=yes
11061else
57aa50d4 11062 e2fsprogs_cv_struct_st_flags=no
50e1e10f 11063fi
e1052144 11064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f
TT
11065fi
11066
57aa50d4 11067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
39fd3d4f 11068$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
50e1e10f 11069if test "$e2fsprogs_cv_struct_st_flags" = yes; then
57aa50d4 11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
39fd3d4f 11071$as_echo_n "checking whether st_flags field is useful... " >&6; }
d6a4bcb5 11072 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
39fd3d4f 11073 $as_echo_n "(cached) " >&6
b0cacab0 11074else
57aa50d4 11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 11076/* end confdefs.h. */
c03bc4e8 11077#include <sys/stat.h>
b0cacab0
TT
11078int
11079main ()
11080{
c03bc4e8 11081struct stat stat; stat.st_flags |= UF_IMMUTABLE;
b0cacab0
TT
11082 ;
11083 return 0;
11084}
57aa50d4
TT
11085_ACEOF
11086if ac_fn_c_try_compile "$LINENO"; then :
11087 e2fsprogs_cv_struct_st_flags_immut=yes
6c65d251 11088else
57aa50d4 11089 e2fsprogs_cv_struct_st_flags_immut=no
84ea6e70 11090fi
e1052144 11091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84ea6e70 11092fi
e1052144 11093
57aa50d4
TT
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11095$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11096 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
d1154eb4
TT
11097
11098$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
57aa50d4
TT
11099
11100 fi
6c65d251 11101fi
57aa50d4
TT
11102ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11103 #include <sys/socket.h>
11104"
d6a4bcb5 11105if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
b0cacab0
TT
11106
11107cat >>confdefs.h <<_ACEOF
84ea6e70 11108#define HAVE_SA_LEN 1
b0cacab0 11109_ACEOF
84ea6e70 11110
50e1e10f 11111fi
b0cacab0 11112
9ed8e5fe 11113if test -n "$BLKID_CMT"; then
7154d974
TT
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
11115$as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
11116if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
9ed8e5fe
ES
11117 $as_echo_n "(cached) " >&6
11118else
7154d974
TT
11119 ac_check_lib_save_LIBS=$LIBS
11120LIBS="-lblkid $LIBS"
57aa50d4 11121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9ed8e5fe
ES
11122/* end confdefs.h. */
11123
11124/* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11127#ifdef __cplusplus
11128extern "C"
11129#endif
7154d974 11130char blkid_probe_get_topology ();
9ed8e5fe
ES
11131int
11132main ()
11133{
7154d974 11134return blkid_probe_get_topology ();
9ed8e5fe
ES
11135 ;
11136 return 0;
11137}
11138_ACEOF
7154d974
TT
11139if ac_fn_c_try_link "$LINENO"; then :
11140 ac_cv_lib_blkid_blkid_probe_get_topology=yes
11141else
11142 ac_cv_lib_blkid_blkid_probe_get_topology=no
9ed8e5fe 11143fi
57aa50d4 11144rm -f core conftest.err conftest.$ac_objext \
7154d974
TT
11145 conftest$ac_exeext conftest.$ac_ext
11146LIBS=$ac_check_lib_save_LIBS
9ed8e5fe 11147fi
7154d974
TT
11148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
11149$as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
11150if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
188bf39a
TT
11151
11152$as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
7154d974 11153
e598c29b
TT
11154fi
11155
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
11157$as_echo_n "checking for blkid_topology_get_dax in -lblkid... " >&6; }
11158if ${ac_cv_lib_blkid_blkid_topology_get_dax+:} false; then :
11159 $as_echo_n "(cached) " >&6
11160else
11161 ac_check_lib_save_LIBS=$LIBS
11162LIBS="-lblkid $LIBS"
11163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164/* end confdefs.h. */
11165
11166/* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11169#ifdef __cplusplus
11170extern "C"
11171#endif
11172char blkid_topology_get_dax ();
11173int
11174main ()
11175{
11176return blkid_topology_get_dax ();
11177 ;
11178 return 0;
11179}
11180_ACEOF
11181if ac_fn_c_try_link "$LINENO"; then :
11182 ac_cv_lib_blkid_blkid_topology_get_dax=yes
11183else
11184 ac_cv_lib_blkid_blkid_topology_get_dax=no
11185fi
11186rm -f core conftest.err conftest.$ac_objext \
11187 conftest$ac_exeext conftest.$ac_ext
11188LIBS=$ac_check_lib_save_LIBS
11189fi
11190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
11191$as_echo "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
11192if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes; then :
11193
11194$as_echo "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
11195
7154d974
TT
11196fi
11197
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
11199$as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
11200if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
11201 $as_echo_n "(cached) " >&6
11202else
11203 ac_check_lib_save_LIBS=$LIBS
11204LIBS="-lblkid $LIBS"
11205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206/* end confdefs.h. */
57aa50d4 11207
7154d974
TT
11208/* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
11211#ifdef __cplusplus
11212extern "C"
11213#endif
11214char blkid_probe_enable_partitions ();
11215int
11216main ()
11217{
11218return blkid_probe_enable_partitions ();
11219 ;
11220 return 0;
11221}
11222_ACEOF
11223if ac_fn_c_try_link "$LINENO"; then :
11224 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
9ed8e5fe 11225else
7154d974 11226 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
9ed8e5fe 11227fi
7154d974
TT
11228rm -f core conftest.err conftest.$ac_objext \
11229 conftest$ac_exeext conftest.$ac_ext
11230LIBS=$ac_check_lib_save_LIBS
9ed8e5fe 11231fi
7154d974
TT
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
11233$as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
11234if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
188bf39a
TT
11235
11236$as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
9ed8e5fe
ES
11237
11238fi
11239
11240fi
32179ce2
TT
11241if test -n "$DLOPEN_LIB" ; then
11242 ac_cv_func_dlopen=yes
11243fi
7154d974 11244for ac_func in __secure_getenv add_key backtrace chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
57aa50d4
TT
11245do :
11246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11247ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d6a4bcb5 11248if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b0cacab0 11249 cat >>confdefs.h <<_ACEOF
39fd3d4f 11250#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b0cacab0 11251_ACEOF
21c84b71 11252
50e1e10f
TT
11253fi
11254done
11255
fc6d9d51 11256SOCKET_LIB=''
57aa50d4 11257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
39fd3d4f 11258$as_echo_n "checking for socket in -lsocket... " >&6; }
d6a4bcb5 11259if ${ac_cv_lib_socket_socket+:} false; then :
39fd3d4f 11260 $as_echo_n "(cached) " >&6
50e1e10f 11261else
b0cacab0 11262 ac_check_lib_save_LIBS=$LIBS
fc6d9d51 11263LIBS="-lsocket $LIBS"
57aa50d4 11264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 11265/* end confdefs.h. */
93636bde 11266
e1052144
TT
11267/* Override any GCC internal prototype to avoid an error.
11268 Use char because int might match the return type of a GCC
11269 builtin and then its argument prototype would still apply. */
b0cacab0
TT
11270#ifdef __cplusplus
11271extern "C"
11272#endif
b0cacab0
TT
11273char socket ();
11274int
11275main ()
11276{
e1052144 11277return socket ();
b0cacab0
TT
11278 ;
11279 return 0;
11280}
11281_ACEOF
57aa50d4 11282if ac_fn_c_try_link "$LINENO"; then :
b0cacab0
TT
11283 ac_cv_lib_socket_socket=yes
11284else
57aa50d4 11285 ac_cv_lib_socket_socket=no
b0cacab0 11286fi
57aa50d4
TT
11287rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
b0cacab0
TT
11289LIBS=$ac_check_lib_save_LIBS
11290fi
57aa50d4 11291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
39fd3d4f 11292$as_echo "$ac_cv_lib_socket_socket" >&6; }
d6a4bcb5 11293if test "x$ac_cv_lib_socket_socket" = xyes; then :
fc6d9d51 11294 SOCKET_LIB=-lsocket
50e1e10f 11295fi
fc6d9d51 11296
93636bde 11297
b291c11f
DW
11298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
11299$as_echo_n "checking for magic_file in -lmagic... " >&6; }
11300if ${ac_cv_lib_magic_magic_file+:} false; then :
11301 $as_echo_n "(cached) " >&6
11302else
11303 ac_check_lib_save_LIBS=$LIBS
11304LIBS="-lmagic $LIBS"
11305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306/* end confdefs.h. */
11307
11308/* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311#ifdef __cplusplus
11312extern "C"
11313#endif
11314char magic_file ();
11315int
11316main ()
11317{
11318return magic_file ();
11319 ;
11320 return 0;
11321}
11322_ACEOF
11323if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_lib_magic_magic_file=yes
11325else
11326 ac_cv_lib_magic_magic_file=no
11327fi
11328rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
11330LIBS=$ac_check_lib_save_LIBS
11331fi
11332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
11333$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
11334if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
11335 MAGIC_LIB=-lmagic
11336for ac_header in magic.h
11337do :
11338 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
11339if test "x$ac_cv_header_magic_h" = xyes; then :
11340 cat >>confdefs.h <<_ACEOF
11341#define HAVE_MAGIC_H 1
11342_ACEOF
11343
11344fi
11345
11346done
11347
11348fi
11349
32179ce2 11350if test "$ac_cv_func_dlopen" = yes ; then
d2e3c0dc
TT
11351 MAGIC_LIB=$DLOPEN_LIB
11352fi
b291c11f 11353
c94da047
TT
11354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11355$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11356if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11357 $as_echo_n "(cached) " >&6
11358else
11359 ac_check_lib_save_LIBS=$LIBS
11360LIBS="-lrt $LIBS"
11361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362/* end confdefs.h. */
11363
11364/* Override any GCC internal prototype to avoid an error.
11365 Use char because int might match the return type of a GCC
11366 builtin and then its argument prototype would still apply. */
11367#ifdef __cplusplus
11368extern "C"
11369#endif
11370char clock_gettime ();
11371int
11372main ()
11373{
11374return clock_gettime ();
11375 ;
11376 return 0;
11377}
11378_ACEOF
11379if ac_fn_c_try_link "$LINENO"; then :
11380 ac_cv_lib_rt_clock_gettime=yes
11381else
11382 ac_cv_lib_rt_clock_gettime=no
11383fi
11384rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
11386LIBS=$ac_check_lib_save_LIBS
11387fi
11388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11389$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11390if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11391 CLOCK_GETTIME_LIB=-lrt
11392fi
11393
11394
81cbf1ef
DW
11395FUSE_CMT=
11396FUSE_LIB=
11397# Check whether --enable-fuse2fs was given.
11398if test "${enable_fuse2fs+set}" = set; then :
11399 enableval=$enable_fuse2fs; if test "$enableval" = "no"
11400then
11401 FUSE_CMT="#"
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
11403$as_echo "Disabling fuse2fs" >&6; }
11404else
11405 for ac_header in pthread.h fuse.h
11406do :
11407 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11408ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11409#define FUSE_USE_VERSION 29
11410"
11411if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11412 cat >>confdefs.h <<_ACEOF
11413#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11414_ACEOF
11415
11416else
11417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11419as_fn_error $? "Cannot find fuse2fs headers.
11420See \`config.log' for more details" "$LINENO" 5; }
11421fi
11422
11423done
11424
11425
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427/* end confdefs.h. */
11428#define FUSE_USE_VERSION 29
11429#ifdef __linux__
11430#include <linux/fs.h>
11431#include <linux/falloc.h>
11432#include <linux/xattr.h>
11433#endif
11434
11435int
11436main ()
11437{
11438
11439 ;
11440 return 0;
11441}
11442_ACEOF
11443if ac_fn_c_try_cpp "$LINENO"; then :
11444
11445else
11446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11448as_fn_error $? "Cannot find fuse2fs Linux headers.
11449See \`config.log' for more details" "$LINENO" 5; }
11450fi
11451rm -f conftest.err conftest.i conftest.$ac_ext
11452
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11454$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11455if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11456 $as_echo_n "(cached) " >&6
11457else
11458 ac_check_lib_save_LIBS=$LIBS
11459LIBS="-losxfuse $LIBS"
11460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461/* end confdefs.h. */
11462
11463/* Override any GCC internal prototype to avoid an error.
11464 Use char because int might match the return type of a GCC
11465 builtin and then its argument prototype would still apply. */
11466#ifdef __cplusplus
11467extern "C"
11468#endif
11469char fuse_main ();
11470int
11471main ()
11472{
11473return fuse_main ();
11474 ;
11475 return 0;
11476}
11477_ACEOF
11478if ac_fn_c_try_link "$LINENO"; then :
11479 ac_cv_lib_osxfuse_fuse_main=yes
11480else
11481 ac_cv_lib_osxfuse_fuse_main=no
11482fi
11483rm -f core conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11485LIBS=$ac_check_lib_save_LIBS
11486fi
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11488$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11489if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11490 FUSE_LIB=-losxfuse
11491else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11493$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11494if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11495 $as_echo_n "(cached) " >&6
11496else
11497 ac_check_lib_save_LIBS=$LIBS
11498LIBS="-lfuse $LIBS"
11499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500/* end confdefs.h. */
11501
11502/* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11505#ifdef __cplusplus
11506extern "C"
11507#endif
11508char fuse_main ();
11509int
11510main ()
11511{
11512return fuse_main ();
11513 ;
11514 return 0;
11515}
11516_ACEOF
11517if ac_fn_c_try_link "$LINENO"; then :
11518 ac_cv_lib_fuse_fuse_main=yes
11519else
11520 ac_cv_lib_fuse_fuse_main=no
11521fi
11522rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524LIBS=$ac_check_lib_save_LIBS
11525fi
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11527$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11528if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11529 FUSE_LIB=-lfuse
11530else
11531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11533as_fn_error $? "Cannot find fuse library.
11534See \`config.log' for more details" "$LINENO" 5; }
11535fi
11536
11537fi
11538
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
11540$as_echo "Enabling fuse2fs" >&6; }
11541fi
11542
11543else
11544 for ac_header in pthread.h fuse.h
11545do :
11546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11547ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11548#define FUSE_USE_VERSION 29
11549#ifdef __linux__
11550# include <linux/fs.h>
11551# include <linux/falloc.h>
11552# include <linux/xattr.h>
11553#endif
11554"
11555if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11556 cat >>confdefs.h <<_ACEOF
11557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11558_ACEOF
11559
11560else
11561 FUSE_CMT="#"
11562fi
11563
11564done
11565
11566if test -z "$FUSE_CMT"
11567then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11569$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11570if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572else
11573 ac_check_lib_save_LIBS=$LIBS
11574LIBS="-losxfuse $LIBS"
11575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576/* end confdefs.h. */
11577
11578/* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11581#ifdef __cplusplus
11582extern "C"
11583#endif
11584char fuse_main ();
11585int
11586main ()
11587{
11588return fuse_main ();
11589 ;
11590 return 0;
11591}
11592_ACEOF
11593if ac_fn_c_try_link "$LINENO"; then :
11594 ac_cv_lib_osxfuse_fuse_main=yes
11595else
11596 ac_cv_lib_osxfuse_fuse_main=no
11597fi
11598rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11600LIBS=$ac_check_lib_save_LIBS
11601fi
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11603$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11604if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11605 FUSE_LIB=-losxfuse
11606else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11608$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11609if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611else
11612 ac_check_lib_save_LIBS=$LIBS
11613LIBS="-lfuse $LIBS"
11614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615/* end confdefs.h. */
11616
11617/* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11620#ifdef __cplusplus
11621extern "C"
11622#endif
11623char fuse_main ();
11624int
11625main ()
11626{
11627return fuse_main ();
11628 ;
11629 return 0;
11630}
11631_ACEOF
11632if ac_fn_c_try_link "$LINENO"; then :
11633 ac_cv_lib_fuse_fuse_main=yes
11634else
11635 ac_cv_lib_fuse_fuse_main=no
11636fi
11637rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11639LIBS=$ac_check_lib_save_LIBS
11640fi
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11642$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11643if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11644 FUSE_LIB=-lfuse
11645else
11646 FUSE_CMT="#"
11647fi
11648
11649fi
11650
11651fi
11652if test -z "$FUSE_CMT"
11653then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
11655$as_echo "Enabling fuse2fs by default." >&6; }
11656fi
11657
11658fi
11659
11660
11661
57aa50d4 11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
39fd3d4f 11663$as_echo_n "checking for optreset... " >&6; }
d6a4bcb5 11664if ${ac_cv_have_optreset+:} false; then :
39fd3d4f 11665 $as_echo_n "(cached) " >&6
d7f45af8 11666else
57aa50d4 11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8 11668/* end confdefs.h. */
57aa50d4
TT
11669#include <unistd.h>
11670
11671_ACEOF
11672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11673 $EGREP "optreset" >/dev/null 2>&1; then :
11674 ac_cv_have_optreset=yes
d7f45af8 11675else
57aa50d4
TT
11676 ac_cv_have_optreset=no
11677fi
11678rm -f conftest*
d7f45af8 11679
d7f45af8 11680fi
57aa50d4
TT
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11682$as_echo "$ac_cv_have_optreset" >&6; }
11683if test $ac_cv_have_optreset = yes; then
d1154eb4
TT
11684
11685$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
d7f45af8 11686
d7f45af8 11687fi
d1154eb4 11688
57aa50d4 11689SEM_INIT_LIB=''
cfb8e0bd
TT
11690echo GL_THREADS_API: ${gl_threads_api}
11691if test "${gl_threads_api}" != none
11692then
11693 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
d6a4bcb5 11694if test "x$ac_cv_func_sem_init" = xyes; then :
57aa50d4 11695
d7f45af8 11696else
57aa50d4 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
39fd3d4f 11698$as_echo_n "checking for sem_init in -lpthread... " >&6; }
d6a4bcb5 11699if ${ac_cv_lib_pthread_sem_init+:} false; then :
39fd3d4f 11700 $as_echo_n "(cached) " >&6
d7f45af8
TT
11701else
11702 ac_check_lib_save_LIBS=$LIBS
11703LIBS="-lpthread $LIBS"
57aa50d4 11704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
11705/* end confdefs.h. */
11706
11707/* Override any GCC internal prototype to avoid an error.
11708 Use char because int might match the return type of a GCC
11709 builtin and then its argument prototype would still apply. */
11710#ifdef __cplusplus
11711extern "C"
11712#endif
11713char sem_init ();
11714int
11715main ()
11716{
11717return sem_init ();
11718 ;
11719 return 0;
11720}
11721_ACEOF
57aa50d4 11722if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
11723 ac_cv_lib_pthread_sem_init=yes
11724else
57aa50d4 11725 ac_cv_lib_pthread_sem_init=no
d7f45af8 11726fi
57aa50d4
TT
11727rm -f core conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
11729LIBS=$ac_check_lib_save_LIBS
11730fi
57aa50d4 11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
39fd3d4f 11732$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
d6a4bcb5 11733if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
57aa50d4 11734 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
11735
11736 SEM_INIT_LIB=-lpthread
11737else
57aa50d4 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
39fd3d4f 11739$as_echo_n "checking for sem_init in -lrt... " >&6; }
d6a4bcb5 11740if ${ac_cv_lib_rt_sem_init+:} false; then :
39fd3d4f 11741 $as_echo_n "(cached) " >&6
d7f45af8
TT
11742else
11743 ac_check_lib_save_LIBS=$LIBS
11744LIBS="-lrt $LIBS"
57aa50d4 11745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
11746/* end confdefs.h. */
11747
11748/* Override any GCC internal prototype to avoid an error.
11749 Use char because int might match the return type of a GCC
11750 builtin and then its argument prototype would still apply. */
11751#ifdef __cplusplus
11752extern "C"
11753#endif
11754char sem_init ();
11755int
11756main ()
11757{
11758return sem_init ();
11759 ;
11760 return 0;
11761}
11762_ACEOF
57aa50d4 11763if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
11764 ac_cv_lib_rt_sem_init=yes
11765else
57aa50d4 11766 ac_cv_lib_rt_sem_init=no
d7f45af8 11767fi
57aa50d4
TT
11768rm -f core conftest.err conftest.$ac_objext \
11769 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
11770LIBS=$ac_check_lib_save_LIBS
11771fi
57aa50d4 11772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
39fd3d4f 11773$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
d6a4bcb5 11774if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
57aa50d4 11775 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
11776
11777 SEM_INIT_LIB=-lrt
11778else
57aa50d4 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
39fd3d4f 11780$as_echo_n "checking for sem_init in -lposix4... " >&6; }
d6a4bcb5 11781if ${ac_cv_lib_posix4_sem_init+:} false; then :
39fd3d4f 11782 $as_echo_n "(cached) " >&6
d7f45af8
TT
11783else
11784 ac_check_lib_save_LIBS=$LIBS
11785LIBS="-lposix4 $LIBS"
57aa50d4 11786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
11787/* end confdefs.h. */
11788
11789/* Override any GCC internal prototype to avoid an error.
11790 Use char because int might match the return type of a GCC
11791 builtin and then its argument prototype would still apply. */
11792#ifdef __cplusplus
11793extern "C"
11794#endif
11795char sem_init ();
11796int
11797main ()
11798{
11799return sem_init ();
11800 ;
11801 return 0;
11802}
11803_ACEOF
57aa50d4 11804if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
11805 ac_cv_lib_posix4_sem_init=yes
11806else
57aa50d4 11807 ac_cv_lib_posix4_sem_init=no
d7f45af8 11808fi
57aa50d4
TT
11809rm -f core conftest.err conftest.$ac_objext \
11810 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
11811LIBS=$ac_check_lib_save_LIBS
11812fi
57aa50d4 11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
39fd3d4f 11814$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
d6a4bcb5 11815if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
57aa50d4 11816 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
11817
11818 SEM_INIT_LIB=-lposix4
11819fi
11820
11821fi
11822
11823fi
11824
cfb8e0bd 11825fi
d7f45af8
TT
11826fi
11827
57aa50d4 11828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
39fd3d4f 11829$as_echo_n "checking for unified diff option... " >&6; }
27f991b0 11830if diff -u $0 $0 > /dev/null 2>&1 ; then
e54635de
TT
11831 UNI_DIFF_OPTS=-u
11832else
11833 UNI_DIFF_OPTS=-c
11834fi
57aa50d4 11835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
39fd3d4f 11836$as_echo "$UNI_DIFF_OPTS" >&6; }
e54635de 11837
8f3f29d3
TT
11838case "$host_os" in
11839linux*)
d1154eb4
TT
11840
11841$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
50e1e10f 11842
8f3f29d3
TT
11843 ;;
11844esac
ea1a3fa2 11845
ea1a3fa2
NC
11846 $as_echo_n "checking for mount 'nosuid' option... "
11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848/* end confdefs.h. */
11849#include <sys/mount.h>
11850int
11851main ()
11852{
11853void *temp = (void *)(MS_NOSUID); (void) temp;
11854 ;
11855 return 0;
11856}
11857_ACEOF
11858if ac_fn_c_try_compile "$LINENO"; then :
11859
11860$as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11861
11862 ac_cv_mount_nosuid=yes
11863 $as_echo "yes"
11864else
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866/* end confdefs.h. */
11867#include <sys/mount.h>
11868int
11869main ()
11870{
11871void *temp = (void *)(MNT_NOSUID); (void) temp;
11872 ;
11873 return 0;
11874}
11875_ACEOF
11876if ac_fn_c_try_compile "$LINENO"; then :
11877
11878$as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11879
11880 ac_cv_mount_nosuid=yes
11881 $as_echo "yes"
11882else
11883 ac_cv_mount_nosuid=no
11884 $as_echo "no"
11885
11886fi
11887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888
11889fi
11890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891
11892
ea1a3fa2
NC
11893 $as_echo_n "checking for mount 'nodev' option... "
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895/* end confdefs.h. */
11896#include <sys/mount.h>
11897int
11898main ()
11899{
11900void *temp = (void *)(MS_NODEV); (void) temp;
11901 ;
11902 return 0;
11903}
11904_ACEOF
11905if ac_fn_c_try_compile "$LINENO"; then :
11906
11907$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11908
11909 ac_cv_mount_nodev=yes
11910 $as_echo "yes"
11911else
11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913/* end confdefs.h. */
11914#include <sys/mount.h>
11915int
11916main ()
11917{
11918void *temp = (void *)(MNT_NODEV); (void) temp;
11919 ;
11920 return 0;
11921}
11922_ACEOF
11923if ac_fn_c_try_compile "$LINENO"; then :
11924
11925$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11926
11927 ac_cv_mount_nodev=yes
11928 $as_echo "yes"
11929else
11930 ac_cv_mount_nodev=no
11931 $as_echo "no"
11932
11933fi
11934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935
11936fi
11937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11938
4aece328
DW
11939# Check whether --enable-lto was given.
11940if test "${enable_lto+set}" = set; then :
11941 enableval=$enable_lto;
11942else
139a3092 11943 enable_lto=no
4aece328
DW
11944fi
11945
11946if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
11948$as_echo_n "checking if C compiler supports LTO... " >&6; }
11949 OLD_CFLAGS="$CFLAGS"
11950 OLD_LDFLAGS="$LDFLAGS"
49715704 11951 LTO_FLAGS="-g -flto -ffat-lto-objects"
4aece328
DW
11952 CFLAGS="$CFLAGS $LTO_FLAGS"
11953 LDFLAGS="$LDFLAGS $LTO_FLAGS"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955/* end confdefs.h. */
11956
11957int
11958main ()
11959{
11960
11961 ;
11962 return 0;
11963}
11964_ACEOF
11965if ac_fn_c_try_link "$LINENO"; then :
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967$as_echo "yes" >&6; }
11968 lto_cflags=$LTO_FLAGS
11969 lto_ldflags=$LTO_FLAGS
11970 # Extract the first word of "gcc-ar", so it can be a program name with args.
11971set dummy gcc-ar; ac_word=$2
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973$as_echo_n "checking for $ac_word... " >&6; }
11974if ${ac_cv_path_gcc_ar+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976else
11977 case $gcc_ar in
11978 [\\/]* | ?:[\\/]*)
11979 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
11980 ;;
11981 *)
11982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983for as_dir in $PATH
11984do
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11989 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11991 break 2
11992 fi
11993done
11994 done
11995IFS=$as_save_IFS
11996
11997 ;;
11998esac
11999fi
12000gcc_ar=$ac_cv_path_gcc_ar
12001if test -n "$gcc_ar"; then
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
12003$as_echo "$gcc_ar" >&6; }
12004else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006$as_echo "no" >&6; }
12007fi
12008
12009
12010 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
12011set dummy gcc-ranlib; ac_word=$2
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013$as_echo_n "checking for $ac_word... " >&6; }
12014if ${ac_cv_path_gcc_ranlib+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016else
12017 case $gcc_ranlib in
12018 [\\/]* | ?:[\\/]*)
12019 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
12020 ;;
12021 *)
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023for as_dir in $PATH
12024do
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12029 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12031 break 2
12032 fi
12033done
12034 done
12035IFS=$as_save_IFS
12036
12037 ;;
12038esac
12039fi
12040gcc_ranlib=$ac_cv_path_gcc_ranlib
12041if test -n "$gcc_ranlib"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
12043$as_echo "$gcc_ranlib" >&6; }
12044else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
12047fi
12048
12049
12050else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052$as_echo "no" >&6; }
12053fi
12054rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12056 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
12057 have_lto=yes
12058 AR="${gcc_ar}"
12059 RANLIB="${gcc_ranlib}"
12060 fi
12061 CFLAGS="${OLD_CFLAGS}"
12062 LDFLAGS="${OLD_LDFLAGS}"
12063
12064
12065
12066fi
12067if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
12068 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
12069fi
1c2a76ae
DW
12070# Check whether --enable-ubsan was given.
12071if test "${enable_ubsan+set}" = set; then :
12072 enableval=$enable_ubsan;
12073else
12074 enable_ubsan=no
12075fi
12076
12077if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
12079$as_echo_n "checking if C compiler supports UBSAN... " >&6; }
12080 OLD_CFLAGS="$CFLAGS"
12081 OLD_LDFLAGS="$LDFLAGS"
12082 UBSAN_FLAGS="-fsanitize=undefined"
12083 CFLAGS="$CFLAGS $UBSAN_FLAGS"
12084 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086/* end confdefs.h. */
12087
12088int
12089main ()
12090{
12091
12092 ;
12093 return 0;
12094}
12095_ACEOF
12096if ac_fn_c_try_link "$LINENO"; then :
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12098$as_echo "yes" >&6; }
12099 ubsan_cflags=$UBSAN_FLAGS
12100 ubsan_ldflags=$UBSAN_FLAGS
12101 have_ubsan=yes
12102else
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104$as_echo "no" >&6; }
12105fi
12106rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108 CFLAGS="${OLD_CFLAGS}"
12109 LDFLAGS="${OLD_LDFLAGS}"
12110
12111
12112
12113fi
12114if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
12115 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
12116fi
5e666e3d
DW
12117# Check whether --enable-addrsan was given.
12118if test "${enable_addrsan+set}" = set; then :
12119 enableval=$enable_addrsan;
12120else
12121 enable_addrsan=no
12122fi
12123
12124if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
12126$as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
12127 OLD_CFLAGS="$CFLAGS"
12128 OLD_LDFLAGS="$LDFLAGS"
12129 ADDRSAN_FLAGS="-fsanitize=address"
12130 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
12131 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133/* end confdefs.h. */
12134
12135int
12136main ()
12137{
12138
12139 ;
12140 return 0;
12141}
12142_ACEOF
12143if ac_fn_c_try_link "$LINENO"; then :
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12145$as_echo "yes" >&6; }
12146 addrsan_cflags=$ADDRSAN_FLAGS
12147 addrsan_ldflags=$ADDRSAN_FLAGS
12148 have_addrsan=yes
12149else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151$as_echo "no" >&6; }
12152fi
12153rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 CFLAGS="${OLD_CFLAGS}"
12156 LDFLAGS="${OLD_LDFLAGS}"
12157
12158
12159
12160fi
12161if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
12162 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
12163fi
bcca786b
DW
12164# Check whether --enable-threadsan was given.
12165if test "${enable_threadsan+set}" = set; then :
12166 enableval=$enable_threadsan;
12167else
12168 enable_threadsan=no
12169fi
12170
12171if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
12173$as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
12174 OLD_CFLAGS="$CFLAGS"
12175 OLD_LDFLAGS="$LDFLAGS"
12176 THREADSAN_FLAGS="-fsanitize=thread"
12177 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
12178 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180/* end confdefs.h. */
12181
12182int
12183main ()
12184{
12185
12186 ;
12187 return 0;
12188}
12189_ACEOF
12190if ac_fn_c_try_link "$LINENO"; then :
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12192$as_echo "yes" >&6; }
12193 threadsan_cflags=$THREADSAN_FLAGS
12194 threadsan_ldflags=$THREADSAN_FLAGS
12195 have_threadsan=yes
12196else
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198$as_echo "no" >&6; }
12199fi
12200rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 CFLAGS="${OLD_CFLAGS}"
12203 LDFLAGS="${OLD_LDFLAGS}"
12204
12205
12206
12207fi
12208if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
12209 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
12210fi
12211if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
12213$as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
12214fi
e6f2bda3 12215LINUX_CMT="#"
fff45483
TT
12216CYGWIN_CMT="#"
12217UNIX_CMT=
e6f2bda3
TT
12218case "$host_os" in
12219linux*)
12220 LINUX_CMT=
fff45483
TT
12221 ;;
12222cygwin)
12223 CYGWIN_CMT=
12224 UNIX_CMT="#"
e6f2bda3
TT
12225 ;;
12226esac
12227
93636bde
TT
12228
12229
5ce368f0
DW
12230E2SCRUB_CMT="$LINUX_CMT"
12231
50e1e10f 12232case "$host_os" in
93636bde 12233linux* | gnu* | k*bsd*-gnu)
a4b2d3ce
TT
12234 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
12235 root_prefix="";
57aa50d4 12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
39fd3d4f 12237$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
fc6d9d51
TT
12238 fi
12239 ;;
12240esac
fc6d9d51 12241case "$host_os" in
93636bde 12242linux* | gnu* | k*bsd*-gnu)
fc6d9d51 12243 if test "$prefix" = NONE ; then
a4b2d3ce 12244 prefix="/usr";
57aa50d4 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
39fd3d4f 12246$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
bff61a7a 12247 if test "$mandir" = '${prefix}/man' ; then
57aa50d4 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
39fd3d4f 12249$as_echo "...and mandir defaults to /usr/share/man" >&6; }
bff61a7a
TT
12250 mandir=/usr/share/man
12251 fi
50e1e10f
TT
12252 fi
12253;;
12254esac
a4b2d3ce 12255if test "$root_prefix" = NONE ; then
ffe1991f 12256 if test "$prefix" = NONE ; then
a4b2d3ce
TT
12257 root_prefix="$ac_default_prefix"
12258 else
12259 root_prefix="$prefix"
12260 fi
b5ffeade
TT
12261 root_bindir=$bindir
12262 root_sbindir=$sbindir
12263 root_libdir=$libdir
12264 root_sysconfdir=$sysconfdir
12265else
12266 root_bindir='${root_prefix}/bin'
12267 root_sbindir='${root_prefix}/sbin'
12268 root_libdir='${root_prefix}/lib'
12269 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce 12270fi
c4ef11c5
TT
12271if test "$bindir" != '${exec_prefix}/bin'; then
12272 root_bindir=$bindir
57aa50d4 12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
39fd3d4f 12274$as_echo "Setting root_bindir to $root_bindir" >&6; }
c4ef11c5
TT
12275fi
12276if test "$sbindir" != '${exec_prefix}/sbin'; then
12277 root_sbindir=$sbindir
57aa50d4 12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
39fd3d4f 12279$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
c4ef11c5
TT
12280fi
12281if test "$libdir" != '${exec_prefix}/lib'; then
12282 root_libdir=$libdir
57aa50d4 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
39fd3d4f 12284$as_echo "Setting root_libdir to $root_libdir" >&6; }
c4ef11c5
TT
12285fi
12286if test "$sysconfdir" != '${prefix}/etc'; then
12287 root_sysconfdir=$sysconfdir
57aa50d4 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
39fd3d4f 12289$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
c4ef11c5 12290fi
a4b2d3ce 12291
93636bde
TT
12292
12293
12294
12295
55e00a25
TT
12296
12297# Check whether --with-multiarch was given.
12298if test "${with_multiarch+set}" = set; then :
d7fa4103
TT
12299 withval=$with_multiarch; if test "$withval" = "lib64"; then
12300 libdir=/usr/lib64
12301 root_libdir=/lib64
12302else
12303 libdir=$libdir/$withval
12304 root_libdir=$root_libdir/$withval
12305fi
55e00a25
TT
12306
12307fi
a2df5894 12308
d3de1a71
TT
12309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
12310$as_echo_n "checking whether we can link with -static... " >&6; }
d6a4bcb5 12311if ${ac_cv_e2fsprogs_use_static+:} false; then :
39fd3d4f 12312 $as_echo_n "(cached) " >&6
ae851482 12313else
fd1677e8 12314 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
57aa50d4 12315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12316/* end confdefs.h. */
ae851482 12317#include <stdio.h>
b0cacab0
TT
12318int
12319main ()
12320{
ae851482 12321fflush(stdout);
b0cacab0
TT
12322 ;
12323 return 0;
12324}
12325_ACEOF
57aa50d4 12326if ac_fn_c_try_link "$LINENO"; then :
ae851482
TT
12327 ac_cv_e2fsprogs_use_static=yes
12328else
57aa50d4 12329 ac_cv_e2fsprogs_use_static=no
ae851482 12330fi
57aa50d4
TT
12331rm -f core conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
ae851482
TT
12333LDFLAGS=$SAVE_LDFLAGS
12334fi
50e1e10f 12335
defde784
TT
12336case "$host_os" in
12337solaris2.*)
b0cacab0 12338 ac_cv_e2fsprogs_use_static=no
defde784
TT
12339;;
12340esac
57aa50d4 12341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
39fd3d4f 12342$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
ae851482 12343if test $ac_cv_e2fsprogs_use_static = yes; then
fd1677e8 12344 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
ae851482 12345fi
50e1e10f 12346
07a0db15
TT
12347case "$host_os" in
12348darwin*)
57aa50d4 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
39fd3d4f 12350$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
d1154eb4
TT
12351
12352$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
07a0db15
TT
12353
12354 ;;
12355esac
50e1e10f
TT
12356if test "$cross_compiling" = yes ; then
12357 DO_TEST_SUITE=
12358else
12359 DO_TEST_SUITE=check
12360fi
12361
d1154eb4
TT
12362INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
12363if test -n "$CPPFLAGS" ; then
12364 INCLUDES="$INCLUDES $CPPFLAGS"
12365fi
c6f35b8a 12366if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
d1154eb4 12367 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
c6f35b8a 12368fi
6c59a665
TT
12369if test -n "$WITH_DIET_LIBC" ; then
12370 INCLUDES="$INCLUDES -D_REENTRANT"
12371fi
c6f35b8a 12372
dd947da2 12373if test $cross_compiling = no; then
2873927d 12374 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
dd947da2 12375 BUILD_LDFLAGS="$LDFLAGS"
dd947da2
TT
12376fi
12377
12378
fd1677e8
TT
12379CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
12380CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
12381LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
12382
12383
12384
5ce368f0
DW
12385
12386
12387# Check whether --with-udev_rules_dir was given.
12388if test "${with_udev_rules_dir+set}" = set; then :
12389 withval=$with_udev_rules_dir;
12390else
12391 with_udev_rules_dir=yes
12392fi
12393
12394if test "x${with_udev_rules_dir}" != "xno"; then :
12395
12396 if test "x${with_udev_rules_dir}" = "xyes"; then :
12397
12398
12399pkg_failed=no
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
12401$as_echo_n "checking for udev... " >&6; }
12402
12403if test -n "$udev_CFLAGS"; then
12404 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
12405 elif test -n "$PKG_CONFIG"; then
12406 if test -n "$PKG_CONFIG" && \
12407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12408 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12409 ac_status=$?
12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12411 test $ac_status = 0; }; then
12412 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
12413 test "x$?" != "x0" && pkg_failed=yes
12414else
12415 pkg_failed=yes
12416fi
12417 else
12418 pkg_failed=untried
12419fi
12420if test -n "$udev_LIBS"; then
12421 pkg_cv_udev_LIBS="$udev_LIBS"
12422 elif test -n "$PKG_CONFIG"; then
12423 if test -n "$PKG_CONFIG" && \
12424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12425 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12426 ac_status=$?
12427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12428 test $ac_status = 0; }; then
12429 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
12430 test "x$?" != "x0" && pkg_failed=yes
12431else
12432 pkg_failed=yes
12433fi
12434 else
12435 pkg_failed=untried
12436fi
12437
12438
12439
12440if test $pkg_failed = yes; then
bdcd5f22 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5ce368f0
DW
12442$as_echo "no" >&6; }
12443
12444if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12445 _pkg_short_errors_supported=yes
12446else
12447 _pkg_short_errors_supported=no
12448fi
12449 if test $_pkg_short_errors_supported = yes; then
12450 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
12451 else
12452 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
12453 fi
12454 # Put the nasty error message in config.log where it belongs
12455 echo "$udev_PKG_ERRORS" >&5
12456
12457
12458 with_udev_rules_dir=""
12459
12460elif test $pkg_failed = untried; then
bdcd5f22 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5ce368f0
DW
12462$as_echo "no" >&6; }
12463
12464 with_udev_rules_dir=""
12465
12466else
12467 udev_CFLAGS=$pkg_cv_udev_CFLAGS
12468 udev_LIBS=$pkg_cv_udev_LIBS
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12470$as_echo "yes" >&6; }
12471
12472 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
12473
12474fi
12475
12476fi
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
12478$as_echo_n "checking for udev rules dir... " >&6; }
12479 pkg_udev_rules_dir="${with_udev_rules_dir}"
12480 if test -n "${pkg_udev_rules_dir}"; then :
12481
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
12483$as_echo "${pkg_udev_rules_dir}" >&6; }
12484 have_udev="yes"
12485
12486else
12487
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489$as_echo "no" >&6; }
12490 have_udev="no"
12491
12492fi
12493
12494else
12495
12496 have_udev="disabled"
12497
12498fi
12499
12500
12501
a2df5894
DW
12502
12503# Check whether --with-crond_dir was given.
12504if test "${with_crond_dir+set}" = set; then :
12505 withval=$with_crond_dir;
12506else
12507 with_crond_dir=yes
12508fi
12509
12510if test "x${with_crond_dir}" != "xno"; then :
12511
12512 if test "x${with_crond_dir}" = "xyes"; then :
12513
12514 if test -d "/etc/cron.d"; then :
12515 with_crond_dir="/etc/cron.d"
188bf39a
TT
12516else
12517 have_crond="no"; with_crond_dir=""
a2df5894
DW
12518fi
12519
12520fi
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
12522$as_echo_n "checking for system crontab dir... " >&6; }
12523 crond_dir="${with_crond_dir}"
12524 if test -n "${crond_dir}"; then :
12525
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
12527$as_echo "${crond_dir}" >&6; }
12528 have_crond="yes"
12529
12530else
12531
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533$as_echo "no" >&6; }
12534 have_crond="no"
12535
12536fi
12537
12538else
12539
12540 have_crond="disabled"
12541
12542fi
12543
12544
12545
12546
12547# Check whether --with-systemd_unit_dir was given.
12548if test "${with_systemd_unit_dir+set}" = set; then :
12549 withval=$with_systemd_unit_dir;
12550else
12551 with_systemd_unit_dir=yes
12552fi
12553
12554if test "x${with_systemd_unit_dir}" != "xno"; then :
12555
12556 if test "x${with_systemd_unit_dir}" = "xyes"; then :
12557
12558
12559pkg_failed=no
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
12561$as_echo_n "checking for systemd... " >&6; }
12562
12563if test -n "$systemd_CFLAGS"; then
12564 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
12565 elif test -n "$PKG_CONFIG"; then
12566 if test -n "$PKG_CONFIG" && \
12567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12568 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12569 ac_status=$?
12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571 test $ac_status = 0; }; then
12572 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
12573 test "x$?" != "x0" && pkg_failed=yes
12574else
12575 pkg_failed=yes
12576fi
12577 else
12578 pkg_failed=untried
12579fi
12580if test -n "$systemd_LIBS"; then
12581 pkg_cv_systemd_LIBS="$systemd_LIBS"
12582 elif test -n "$PKG_CONFIG"; then
12583 if test -n "$PKG_CONFIG" && \
12584 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12585 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12586 ac_status=$?
12587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12588 test $ac_status = 0; }; then
12589 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
12590 test "x$?" != "x0" && pkg_failed=yes
12591else
12592 pkg_failed=yes
12593fi
12594 else
12595 pkg_failed=untried
12596fi
12597
12598
12599
12600if test $pkg_failed = yes; then
bdcd5f22 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
a2df5894
DW
12602$as_echo "no" >&6; }
12603
12604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12605 _pkg_short_errors_supported=yes
12606else
12607 _pkg_short_errors_supported=no
12608fi
12609 if test $_pkg_short_errors_supported = yes; then
12610 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
12611 else
12612 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
12613 fi
12614 # Put the nasty error message in config.log where it belongs
12615 echo "$systemd_PKG_ERRORS" >&5
12616
12617
12618 with_systemd_unit_dir=""
12619
12620elif test $pkg_failed = untried; then
bdcd5f22 12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
a2df5894
DW
12622$as_echo "no" >&6; }
12623
12624 with_systemd_unit_dir=""
12625
12626else
12627 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
12628 systemd_LIBS=$pkg_cv_systemd_LIBS
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12630$as_echo "yes" >&6; }
12631
12632 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
12633
12634fi
12635
12636
12637fi
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
12639$as_echo_n "checking for systemd system unit dir... " >&6; }
12640 systemd_system_unit_dir="${with_systemd_unit_dir}"
12641 if test -n "${systemd_system_unit_dir}"; then :
12642
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
12644$as_echo "${systemd_system_unit_dir}" >&6; }
12645 have_systemd="yes"
12646
12647else
12648
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650$as_echo "no" >&6; }
12651 have_systemd="no"
12652
12653fi
12654
12655else
12656
12657 have_systemd="disabled"
12658
12659fi
12660
12661
12662
50e1e10f
TT
12663test -d lib || mkdir lib
12664test -d include || mkdir include
12665test -d include/linux || mkdir include/linux
defde784 12666test -d include/asm || mkdir include/asm
44dfb378
TT
12667if test -z "$UUID_CMT" ; then
12668 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
12669 lib/uuid/uuid_types.h"
12670fi
12671if test -z "$BLKID_CMT" ; then
12672 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
12673 lib/blkid/blkid_types.h"
12674fi
e5f0f3ee 12675for i in MCONFIG Makefile \
183c73b0 12676 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
4ea7ea00
TT
12677 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
12678 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
f34af41b 12679 $uuid_out_list $blkid_out_list lib/support/Makefile \
44dfb378 12680 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
921f4ad5 12681 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
94ba8c75 12682 debugfs/Makefile tests/Makefile tests/progs/Makefile \
e598c29b 12683 resize/Makefile doc/Makefile po/Makefile.in scrub/Makefile; do
94ba8c75
TT
12684 if test -d `dirname ${srcdir}/$i` ; then
12685 outlist="$outlist $i"
12686 fi
12687done
e1052144
TT
12688ac_config_files="$ac_config_files $outlist"
12689
b0cacab0 12690cat >confcache <<\_ACEOF
50e1e10f
TT
12691# This file is a shell script that caches the results of configure
12692# tests run on this system so they can be shared between configure
b0cacab0
TT
12693# scripts and configure runs, see configure's option --config-cache.
12694# It is not useful on other systems. If it contains results you don't
12695# want to keep, you may remove or edit it.
50e1e10f 12696#
b0cacab0
TT
12697# config.status only pays attention to the cache file if you give it
12698# the --recheck option to rerun configure.
50e1e10f 12699#
b0cacab0
TT
12700# `ac_cv_env_foo' variables (set or unset) will be overridden when
12701# loading this file, other *unset* `ac_cv_foo' will be assigned the
12702# following values.
12703
12704_ACEOF
12705
21c84b71
TT
12706# The following way of writing the cache mishandles newlines in values,
12707# but we know of no workaround that is simple, portable, and efficient.
e1052144 12708# So, we kill variables containing newlines.
50e1e10f
TT
12709# Ultrix sh set writes to stderr and can't be redirected directly,
12710# and sets the high bit in the cache file unless we assign to the vars.
e1052144
TT
12711(
12712 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12713 eval ac_val=\$$ac_var
12714 case $ac_val in #(
12715 *${as_nl}*)
12716 case $ac_var in #(
57aa50d4 12717 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39fd3d4f 12718$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
e1052144
TT
12719 esac
12720 case $ac_var in #(
12721 _ | IFS | as_nl) ;; #(
39fd3d4f 12722 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
57aa50d4 12723 *) { eval $ac_var=; unset $ac_var;} ;;
e1052144
TT
12724 esac ;;
12725 esac
12726 done
12727
b0cacab0 12728 (set) 2>&1 |
e1052144
TT
12729 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12730 *${as_nl}ac_space=\ *)
57aa50d4
TT
12731 # `set' does not quote correctly, so add quotes: double-quote
12732 # substitution turns \\\\ into \\, and sed turns \\ into \.
b0cacab0
TT
12733 sed -n \
12734 "s/'/'\\\\''/g;
12735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e1052144 12736 ;; #(
b0cacab0
TT
12737 *)
12738 # `set' quotes correctly as required by POSIX, so do not add quotes.
e1052144 12739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b0cacab0 12740 ;;
e1052144
TT
12741 esac |
12742 sort
12743) |
b0cacab0 12744 sed '
e1052144 12745 /^ac_cv_env_/b end
b0cacab0 12746 t clear
e1052144 12747 :clear
b0cacab0
TT
12748 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12749 t end
e1052144
TT
12750 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12751 :end' >>confcache
12752if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12753 if test -w "$cache_file"; then
d6a4bcb5 12754 if test "x$cache_file" != "x/dev/null"; then
57aa50d4 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39fd3d4f 12756$as_echo "$as_me: updating cache $cache_file" >&6;}
d6a4bcb5
TB
12757 if test ! -f "$cache_file" || test -h "$cache_file"; then
12758 cat confcache >"$cache_file"
12759 else
12760 case $cache_file in #(
12761 */* | ?:*)
12762 mv -f confcache "$cache_file"$$ &&
12763 mv -f "$cache_file"$$ "$cache_file" ;; #(
12764 *)
12765 mv -f confcache "$cache_file" ;;
12766 esac
12767 fi
12768 fi
50e1e10f 12769 else
57aa50d4 12770 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39fd3d4f 12771$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50e1e10f
TT
12772 fi
12773fi
12774rm -f confcache
12775
50e1e10f
TT
12776test "x$prefix" = xNONE && prefix=$ac_default_prefix
12777# Let make expand exec_prefix.
12778test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12779
d1154eb4 12780DEFS=-DHAVE_CONFIG_H
b0cacab0
TT
12781
12782ac_libobjs=
12783ac_ltlibobjs=
d6a4bcb5 12784U=
b0cacab0
TT
12785for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12786 # 1. Remove the extension, and $U if already installed.
e1052144 12787 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39fd3d4f 12788 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
e1052144
TT
12789 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12790 # will be set to the directory where LIBOBJS objects are built.
57aa50d4
TT
12791 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12792 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b0cacab0
TT
12793done
12794LIBOBJS=$ac_libobjs
50e1e10f 12795
b0cacab0
TT
12796LTLIBOBJS=$ac_ltlibobjs
12797
12798
12799
39fd3d4f 12800
d6a4bcb5 12801: "${CONFIG_STATUS=./config.status}"
39fd3d4f 12802ac_write_fail=0
b0cacab0
TT
12803ac_clean_files_save=$ac_clean_files
12804ac_clean_files="$ac_clean_files $CONFIG_STATUS"
57aa50d4 12805{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39fd3d4f 12806$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
57aa50d4
TT
12807as_write_fail=0
12808cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b0cacab0
TT
12809#! $SHELL
12810# Generated by $as_me.
93636bde 12811# Run this file to recreate the current configuration.
93636bde 12812# Compiler output produced by configure, useful for debugging
b0cacab0 12813# configure, is in config.log if it exists.
07a0db15 12814
b0cacab0
TT
12815debug=false
12816ac_cs_recheck=false
12817ac_cs_silent=false
b0cacab0 12818
57aa50d4
TT
12819SHELL=\${CONFIG_SHELL-$SHELL}
12820export SHELL
12821_ASEOF
12822cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12823## -------------------- ##
12824## M4sh Initialization. ##
12825## -------------------- ##
b0cacab0 12826
29a5deed
TT
12827# Be more Bourne compatible
12828DUALCASE=1; export DUALCASE # for MKS sh
57aa50d4 12829if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b0cacab0
TT
12830 emulate sh
12831 NULLCMD=:
39fd3d4f 12832 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
12833 # is contrary to our usage. Disable this feature.
12834 alias -g '${1+"$@"}'='"$@"'
e1052144
TT
12835 setopt NO_GLOB_SUBST
12836else
57aa50d4
TT
12837 case `(set -o) 2>/dev/null` in #(
12838 *posix*) :
12839 set -o posix ;; #(
12840 *) :
12841 ;;
29a5deed 12842esac
b0cacab0 12843fi
29a5deed
TT
12844
12845
39fd3d4f
SJR
12846as_nl='
12847'
12848export as_nl
12849# Printing a long string crashes Solaris 7 /usr/bin/printf.
12850as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12851as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12852as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
57aa50d4
TT
12853# Prefer a ksh shell builtin over an external printf program on Solaris,
12854# but without wasting forks for bash or zsh.
12855if test -z "$BASH_VERSION$ZSH_VERSION" \
12856 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12857 as_echo='print -r --'
12858 as_echo_n='print -rn --'
12859elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39fd3d4f
SJR
12860 as_echo='printf %s\n'
12861 as_echo_n='printf %s'
12862else
12863 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12864 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12865 as_echo_n='/usr/ucb/echo -n'
e1052144 12866 else
39fd3d4f
SJR
12867 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12868 as_echo_n_body='eval
12869 arg=$1;
57aa50d4 12870 case $arg in #(
39fd3d4f
SJR
12871 *"$as_nl"*)
12872 expr "X$arg" : "X\\(.*\\)$as_nl";
12873 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12874 esac;
12875 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12876 '
12877 export as_echo_n_body
12878 as_echo_n='sh -c $as_echo_n_body as_echo'
e1052144 12879 fi
39fd3d4f
SJR
12880 export as_echo_body
12881 as_echo='sh -c $as_echo_body as_echo'
12882fi
12883
12884# The user is always right.
12885if test "${PATH_SEPARATOR+set}" != set; then
12886 PATH_SEPARATOR=:
12887 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12888 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12889 PATH_SEPARATOR=';'
12890 }
e1052144
TT
12891fi
12892
b0cacab0 12893
e1052144
TT
12894# IFS
12895# We need space, tab and new line, in precisely that order. Quoting is
12896# there to prevent editors from complaining about space-tab.
12897# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12898# splitting by setting IFS to empty value.)
e1052144
TT
12899IFS=" "" $as_nl"
12900
12901# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 12902as_myself=
57aa50d4 12903case $0 in #((
e1052144
TT
12904 *[\\/]* ) as_myself=$0 ;;
12905 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906for as_dir in $PATH
12907do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
57aa50d4
TT
12910 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12911 done
e1052144
TT
12912IFS=$as_save_IFS
12913
12914 ;;
12915esac
12916# We did not find ourselves, most probably we were run as `sh COMMAND'
12917# in which case we are not to be found in the path.
12918if test "x$as_myself" = x; then
12919 as_myself=$0
12920fi
12921if test ! -f "$as_myself"; then
39fd3d4f 12922 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 12923 exit 1
e1052144
TT
12924fi
12925
57aa50d4
TT
12926# Unset variables that we do not need and which cause bugs (e.g. in
12927# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12928# suppresses any "Segmentation fault" message there. '((' could
12929# trigger a bug in pdksh 5.2.14.
12930for as_var in BASH_ENV ENV MAIL MAILPATH
12931do eval test x\${$as_var+set} = xset \
12932 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
e1052144 12933done
b0cacab0
TT
12934PS1='$ '
12935PS2='> '
12936PS4='+ '
12937
12938# NLS nuisances.
39fd3d4f
SJR
12939LC_ALL=C
12940export LC_ALL
12941LANGUAGE=C
12942export LANGUAGE
b0cacab0 12943
57aa50d4
TT
12944# CDPATH.
12945(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12946
12947
d6a4bcb5
TB
12948# as_fn_error STATUS ERROR [LINENO LOG_FD]
12949# ----------------------------------------
57aa50d4
TT
12950# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12951# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d6a4bcb5 12952# script with STATUS, using 1 if that was 0.
57aa50d4
TT
12953as_fn_error ()
12954{
d6a4bcb5
TB
12955 as_status=$1; test $as_status -eq 0 && as_status=1
12956 if test "$4"; then
12957 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12958 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 12959 fi
d6a4bcb5 12960 $as_echo "$as_me: error: $2" >&2
57aa50d4
TT
12961 as_fn_exit $as_status
12962} # as_fn_error
12963
12964
12965# as_fn_set_status STATUS
12966# -----------------------
12967# Set $? to STATUS, without forking.
12968as_fn_set_status ()
12969{
12970 return $1
12971} # as_fn_set_status
12972
12973# as_fn_exit STATUS
12974# -----------------
12975# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12976as_fn_exit ()
12977{
12978 set +e
12979 as_fn_set_status $1
12980 exit $1
12981} # as_fn_exit
12982
12983# as_fn_unset VAR
12984# ---------------
12985# Portably unset VAR.
12986as_fn_unset ()
12987{
12988 { eval $1=; unset $1;}
12989}
12990as_unset=as_fn_unset
12991# as_fn_append VAR VALUE
12992# ----------------------
12993# Append the text in VALUE to the end of the definition contained in VAR. Take
12994# advantage of any shell optimizations that allow amortized linear growth over
12995# repeated appends, instead of the typical quadratic growth present in naive
12996# implementations.
12997if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12998 eval 'as_fn_append ()
12999 {
13000 eval $1+=\$2
13001 }'
13002else
13003 as_fn_append ()
13004 {
13005 eval $1=\$$1\$2
13006 }
13007fi # as_fn_append
13008
13009# as_fn_arith ARG...
13010# ------------------
13011# Perform arithmetic evaluation on the ARGs, and store the result in the
13012# global $as_val. Take advantage of shells that can avoid forks. The arguments
13013# must be portable across $(()) and expr.
13014if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13015 eval 'as_fn_arith ()
13016 {
13017 as_val=$(( $* ))
13018 }'
13019else
13020 as_fn_arith ()
13021 {
13022 as_val=`expr "$@" || test $? -eq 1`
13023 }
13024fi # as_fn_arith
13025
13026
e1052144
TT
13027if expr a : '\(a\)' >/dev/null 2>&1 &&
13028 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
13029 as_expr=expr
13030else
13031 as_expr=false
13032fi
13033
e1052144 13034if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
13035 as_basename=basename
13036else
13037 as_basename=false
13038fi
13039
57aa50d4
TT
13040if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13041 as_dirname=dirname
13042else
13043 as_dirname=false
13044fi
b0cacab0 13045
e1052144 13046as_me=`$as_basename -- "$0" ||
b0cacab0
TT
13047$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13048 X"$0" : 'X\(//\)$' \| \
e1052144 13049 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 13050$as_echo X/"$0" |
e1052144
TT
13051 sed '/^.*\/\([^/][^/]*\)\/*$/{
13052 s//\1/
13053 q
13054 }
13055 /^X\/\(\/\/\)$/{
13056 s//\1/
13057 q
13058 }
13059 /^X\/\(\/\).*/{
13060 s//\1/
13061 q
13062 }
13063 s/.*/./; q'`
b0cacab0 13064
57aa50d4
TT
13065# Avoid depending upon Character Ranges.
13066as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13067as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13068as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13069as_cr_digits='0123456789'
13070as_cr_alnum=$as_cr_Letters$as_cr_digits
e1052144
TT
13071
13072ECHO_C= ECHO_N= ECHO_T=
57aa50d4 13073case `echo -n x` in #(((((
e1052144 13074-n*)
57aa50d4 13075 case `echo 'xy\c'` in
e1052144 13076 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
57aa50d4
TT
13077 xy) ECHO_C='\c';;
13078 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13079 ECHO_T=' ';;
e1052144
TT
13080 esac;;
13081*)
13082 ECHO_N='-n';;
b0cacab0 13083esac
b0cacab0
TT
13084
13085rm -f conf$$ conf$$.exe conf$$.file
e1052144
TT
13086if test -d conf$$.dir; then
13087 rm -f conf$$.dir/conf$$.file
13088else
13089 rm -f conf$$.dir
39fd3d4f
SJR
13090 mkdir conf$$.dir 2>/dev/null
13091fi
13092if (echo >conf$$.file) 2>/dev/null; then
13093 if ln -s conf$$.file conf$$ 2>/dev/null; then
13094 as_ln_s='ln -s'
13095 # ... but there are two gotchas:
13096 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13097 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d6a4bcb5 13098 # In both cases, we have to default to `cp -pR'.
39fd3d4f 13099 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 13100 as_ln_s='cp -pR'
39fd3d4f
SJR
13101 elif ln conf$$.file conf$$ 2>/dev/null; then
13102 as_ln_s=ln
13103 else
d6a4bcb5 13104 as_ln_s='cp -pR'
39fd3d4f 13105 fi
b0cacab0 13106else
d6a4bcb5 13107 as_ln_s='cp -pR'
b0cacab0 13108fi
e1052144
TT
13109rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13110rmdir conf$$.dir 2>/dev/null
b0cacab0 13111
57aa50d4
TT
13112
13113# as_fn_mkdir_p
13114# -------------
13115# Create "$as_dir" as a directory, including parents if necessary.
13116as_fn_mkdir_p ()
13117{
13118
13119 case $as_dir in #(
13120 -*) as_dir=./$as_dir;;
13121 esac
13122 test -d "$as_dir" || eval $as_mkdir_p || {
13123 as_dirs=
13124 while :; do
13125 case $as_dir in #(
13126 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13127 *) as_qdir=$as_dir;;
13128 esac
13129 as_dirs="'$as_qdir' $as_dirs"
13130 as_dir=`$as_dirname -- "$as_dir" ||
13131$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13132 X"$as_dir" : 'X\(//\)[^/]' \| \
13133 X"$as_dir" : 'X\(//\)$' \| \
13134 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13135$as_echo X"$as_dir" |
13136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13137 s//\1/
13138 q
13139 }
13140 /^X\(\/\/\)[^/].*/{
13141 s//\1/
13142 q
13143 }
13144 /^X\(\/\/\)$/{
13145 s//\1/
13146 q
13147 }
13148 /^X\(\/\).*/{
13149 s//\1/
13150 q
13151 }
13152 s/.*/./; q'`
13153 test -d "$as_dir" && break
13154 done
13155 test -z "$as_dirs" || eval "mkdir $as_dirs"
d6a4bcb5 13156 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
13157
13158
13159} # as_fn_mkdir_p
b0cacab0 13160if mkdir -p . 2>/dev/null; then
57aa50d4 13161 as_mkdir_p='mkdir -p "$as_dir"'
b0cacab0
TT
13162else
13163 test -d ./-p && rmdir ./-p
13164 as_mkdir_p=false
13165fi
13166
d6a4bcb5
TB
13167
13168# as_fn_executable_p FILE
13169# -----------------------
13170# Test if FILE is an executable regular file.
13171as_fn_executable_p ()
13172{
13173 test -f "$1" && test -x "$1"
13174} # as_fn_executable_p
13175as_test_x='test -x'
13176as_executable_p=as_fn_executable_p
b0cacab0
TT
13177
13178# Sed expression to map a string onto a valid CPP name.
13179as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13180
13181# Sed expression to map a string onto a valid variable name.
13182as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13183
13184
b0cacab0 13185exec 6>&1
57aa50d4
TT
13186## ----------------------------------- ##
13187## Main body of $CONFIG_STATUS script. ##
13188## ----------------------------------- ##
13189_ASEOF
13190test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b0cacab0 13191
57aa50d4
TT
13192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13193# Save the log message, to keep $0 and so on meaningful, and to
b0cacab0 13194# report actual input values of CONFIG_FILES etc. instead of their
e1052144
TT
13195# values after options handling.
13196ac_log="
b0cacab0 13197This file was extended by $as_me, which was
d6a4bcb5 13198generated by GNU Autoconf 2.69. Invocation command line was
b0cacab0
TT
13199
13200 CONFIG_FILES = $CONFIG_FILES
13201 CONFIG_HEADERS = $CONFIG_HEADERS
13202 CONFIG_LINKS = $CONFIG_LINKS
13203 CONFIG_COMMANDS = $CONFIG_COMMANDS
13204 $ $0 $@
13205
e1052144
TT
13206on `(hostname || uname -n) 2>/dev/null | sed 1q`
13207"
13208
b0cacab0
TT
13209_ACEOF
13210
39fd3d4f
SJR
13211case $ac_config_files in *"
13212"*) set x $ac_config_files; shift; ac_config_files=$*;;
13213esac
13214
d1154eb4
TT
13215case $ac_config_headers in *"
13216"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13217esac
39fd3d4f
SJR
13218
13219
13220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 13221# Files that config.status was made for.
e1052144 13222config_files="$ac_config_files"
d1154eb4 13223config_headers="$ac_config_headers"
e1052144 13224config_commands="$ac_config_commands"
b0cacab0 13225
e1052144 13226_ACEOF
b0cacab0 13227
39fd3d4f 13228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0 13229ac_cs_usage="\
57aa50d4
TT
13230\`$as_me' instantiates files and other configuration actions
13231from templates according to the current configuration. Unless the files
13232and actions are specified as TAGs, all are instantiated by default.
b0cacab0 13233
57aa50d4 13234Usage: $0 [OPTION]... [TAG]...
b0cacab0
TT
13235
13236 -h, --help print this help, then exit
29a5deed 13237 -V, --version print version number and configuration settings, then exit
61ef2474 13238 --config print configuration, then exit
39fd3d4f
SJR
13239 -q, --quiet, --silent
13240 do not print progress messages
b0cacab0
TT
13241 -d, --debug don't remove temporary files
13242 --recheck update $as_me by reconfiguring in the same conditions
39fd3d4f
SJR
13243 --file=FILE[:TEMPLATE]
13244 instantiate the configuration file FILE
d1154eb4
TT
13245 --header=FILE[:TEMPLATE]
13246 instantiate the configuration header FILE
b0cacab0
TT
13247
13248Configuration files:
13249$config_files
13250
d1154eb4
TT
13251Configuration headers:
13252$config_headers
13253
b0cacab0
TT
13254Configuration commands:
13255$config_commands
13256
57aa50d4 13257Report bugs to the package provider."
b0cacab0 13258
e1052144 13259_ACEOF
39fd3d4f 13260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61ef2474 13261ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b0cacab0
TT
13262ac_cs_version="\\
13263config.status
d6a4bcb5 13264configured by $0, generated by GNU Autoconf 2.69,
61ef2474 13265 with options \\"\$ac_cs_config\\"
b0cacab0 13266
d6a4bcb5 13267Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
13268This config.status script is free software; the Free Software Foundation
13269gives unlimited permission to copy, distribute and modify it."
e1052144
TT
13270
13271ac_pwd='$ac_pwd'
13272srcdir='$srcdir'
13273INSTALL='$INSTALL'
93613951 13274MKDIR_P='$MKDIR_P'
39fd3d4f
SJR
13275AWK='$AWK'
13276test -n "\$AWK" || AWK=awk
b0cacab0
TT
13277_ACEOF
13278
39fd3d4f
SJR
13279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13280# The default lists apply if the user does not specify any file.
b0cacab0
TT
13281ac_need_defaults=:
13282while test $# != 0
07a0db15 13283do
b0cacab0 13284 case $1 in
d6a4bcb5 13285 --*=?*)
e1052144
TT
13286 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13287 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b0cacab0
TT
13288 ac_shift=:
13289 ;;
d6a4bcb5
TB
13290 --*=)
13291 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13292 ac_optarg=
13293 ac_shift=:
13294 ;;
e1052144 13295 *)
b0cacab0
TT
13296 ac_option=$1
13297 ac_optarg=$2
13298 ac_shift=shift
13299 ;;
b0cacab0
TT
13300 esac
13301
13302 case $ac_option in
13303 # Handling of the options.
93636bde 13304 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b0cacab0 13305 ac_cs_recheck=: ;;
e1052144 13306 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39fd3d4f 13307 $as_echo "$ac_cs_version"; exit ;;
61ef2474
TT
13308 --config | --confi | --conf | --con | --co | --c )
13309 $as_echo "$ac_cs_config"; exit ;;
e1052144 13310 --debug | --debu | --deb | --de | --d | -d )
b0cacab0
TT
13311 debug=: ;;
13312 --file | --fil | --fi | --f )
13313 $ac_shift
39fd3d4f
SJR
13314 case $ac_optarg in
13315 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6a4bcb5 13316 '') as_fn_error $? "missing file argument" ;;
39fd3d4f 13317 esac
57aa50d4 13318 as_fn_append CONFIG_FILES " '$ac_optarg'"
b0cacab0 13319 ac_need_defaults=false;;
d1154eb4
TT
13320 --header | --heade | --head | --hea )
13321 $ac_shift
13322 case $ac_optarg in
13323 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13324 esac
13325 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13326 ac_need_defaults=false;;
13327 --he | --h)
13328 # Conflict between --help and --header
d6a4bcb5 13329 as_fn_error $? "ambiguous option: \`$1'
d1154eb4
TT
13330Try \`$0 --help' for more information.";;
13331 --help | --hel | -h )
39fd3d4f 13332 $as_echo "$ac_cs_usage"; exit ;;
b0cacab0
TT
13333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13334 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13335 ac_cs_silent=: ;;
13336
13337 # This is an error.
d6a4bcb5 13338 -*) as_fn_error $? "unrecognized option: \`$1'
57aa50d4 13339Try \`$0 --help' for more information." ;;
b0cacab0 13340
57aa50d4 13341 *) as_fn_append ac_config_targets " $1"
e1052144 13342 ac_need_defaults=false ;;
b0cacab0 13343
07a0db15 13344 esac
b0cacab0 13345 shift
07a0db15
TT
13346done
13347
b0cacab0
TT
13348ac_configure_extra_args=
13349
13350if $ac_cs_silent; then
13351 exec 6>/dev/null
13352 ac_configure_extra_args="$ac_configure_extra_args --silent"
13353fi
13354
13355_ACEOF
39fd3d4f 13356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 13357if \$ac_cs_recheck; then
d6a4bcb5 13358 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39fd3d4f
SJR
13359 shift
13360 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13361 CONFIG_SHELL='$SHELL'
e1052144 13362 export CONFIG_SHELL
39fd3d4f 13363 exec "\$@"
b0cacab0 13364fi
07a0db15 13365
b0cacab0 13366_ACEOF
39fd3d4f 13367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
13368exec 5>>config.log
13369{
13370 echo
13371 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13372## Running $as_me. ##
13373_ASBOX
39fd3d4f 13374 $as_echo "$ac_log"
e1052144 13375} >&5
07a0db15 13376
e1052144 13377_ACEOF
39fd3d4f 13378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 13379#
e1052144 13380# INIT-COMMANDS
b0cacab0 13381#
b0cacab0 13382# Capture the value of obsolete ALL_LINGUAS because we need it to compute
bdcd5f22
TT
13383 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
13384 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
b0cacab0
TT
13385 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13386 LINGUAS="${LINGUAS-%UNSET%}"
13387
13388
13389_ACEOF
13390
39fd3d4f 13391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
13392
13393# Handling of arguments.
b0cacab0
TT
13394for ac_config_target in $ac_config_targets
13395do
e1052144 13396 case $ac_config_target in
d1154eb4 13397 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
93613951 13398 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
e1052144
TT
13399 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
13400
d6a4bcb5 13401 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b0cacab0
TT
13402 esac
13403done
13404
e1052144 13405
b0cacab0
TT
13406# If the user did not use the arguments to specify the items to instantiate,
13407# then the envvar interface is used. Set only those that are not.
13408# We use the long form for the default assignment because of an extremely
13409# bizarre bug on SunOS 4.1.3.
13410if $ac_need_defaults; then
13411 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
d1154eb4 13412 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b0cacab0
TT
13413 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13414fi
13415
13416# Have a temporary directory for convenience. Make it in the build tree
e1052144 13417# simply because there is no reason against having it here, and in addition,
b0cacab0 13418# creating and moving files from /tmp can sometimes cause problems.
e1052144
TT
13419# Hook for its removal unless debugging.
13420# Note that there is a small window in which the directory will not be cleaned:
13421# after its creation but before its name has been assigned to `$tmp'.
b0cacab0
TT
13422$debug ||
13423{
d6a4bcb5 13424 tmp= ac_tmp=
e1052144 13425 trap 'exit_status=$?
d6a4bcb5
TB
13426 : "${ac_tmp:=$tmp}"
13427 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
e1052144 13428' 0
57aa50d4 13429 trap 'as_fn_exit 1' 1 2 13 15
b0cacab0 13430}
b0cacab0
TT
13431# Create a (secure) tmp directory for tmp files.
13432
13433{
e1052144 13434 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6a4bcb5 13435 test -d "$tmp"
b0cacab0
TT
13436} ||
13437{
e1052144
TT
13438 tmp=./conf$$-$RANDOM
13439 (umask 077 && mkdir "$tmp")
d6a4bcb5
TB
13440} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13441ac_tmp=$tmp
b0cacab0 13442
39fd3d4f
SJR
13443# Set up the scripts for CONFIG_FILES section.
13444# No need to generate them if there are no CONFIG_FILES.
13445# This happens for instance with `./config.status config.h'.
e1052144
TT
13446if test -n "$CONFIG_FILES"; then
13447
39fd3d4f
SJR
13448if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13449 ac_cs_awk_getline=:
13450 ac_cs_awk_pipe_init=
13451 ac_cs_awk_read_file='
13452 while ((getline aline < (F[key])) > 0)
13453 print(aline)
13454 close(F[key])'
13455 ac_cs_awk_pipe_fini=
13456else
13457 ac_cs_awk_getline=false
13458 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13459 ac_cs_awk_read_file='
13460 print "|#_!!_#|"
13461 print "cat " F[key] " &&"
13462 '$ac_cs_awk_pipe_init
13463 # The final `:' finishes the AND list.
13464 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13465fi
57aa50d4
TT
13466ac_cr=`echo X | tr X '\015'`
13467# On cygwin, bash can eat \r inside `` if the user requested igncr.
13468# But we know of no other shell where ac_cr would be empty at this
13469# point, so we can use a bashism as a fallback.
13470if test "x$ac_cr" = x; then
13471 eval ac_cr=\$\'\\r\'
13472fi
39fd3d4f
SJR
13473ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13474if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d6a4bcb5 13475 ac_cs_awk_cr='\\r'
39fd3d4f
SJR
13476else
13477 ac_cs_awk_cr=$ac_cr
13478fi
e1052144 13479
d6a4bcb5 13480echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39fd3d4f 13481_ACEOF
e1052144 13482
39fd3d4f
SJR
13483# Create commands to substitute file output variables.
13484{
13485 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6a4bcb5 13486 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
39fd3d4f
SJR
13487 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13488 echo "_ACAWK" &&
13489 echo "_ACEOF"
13490} >conf$$files.sh &&
13491. ./conf$$files.sh ||
d6a4bcb5 13492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 13493rm -f conf$$files.sh
e1052144 13494
39fd3d4f
SJR
13495{
13496 echo "cat >conf$$subs.awk <<_ACEOF" &&
13497 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13498 echo "_ACEOF"
13499} >conf$$subs.sh ||
d6a4bcb5
TB
13500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13501ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
e1052144
TT
13502ac_delim='%!_!# '
13503for ac_last_try in false false false false false :; do
39fd3d4f 13504 . ./conf$$subs.sh ||
d6a4bcb5 13505 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f
SJR
13506
13507 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13508 if test $ac_delim_n = $ac_delim_num; then
e1052144
TT
13509 break
13510 elif $ac_last_try; then
d6a4bcb5 13511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e1052144
TT
13512 else
13513 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21c84b71 13514 fi
e1052144 13515done
39fd3d4f
SJR
13516rm -f conf$$subs.sh
13517
13518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6a4bcb5 13519cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
39fd3d4f
SJR
13520_ACEOF
13521sed -n '
13522h
13523s/^/S["/; s/!.*/"]=/
13524p
13525g
13526s/^[^!]*!//
13527:repl
13528t repl
13529s/'"$ac_delim"'$//
13530t delim
13531:nl
13532h
61ef2474 13533s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
13534t more1
13535s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13536p
13537n
13538b repl
13539:more1
13540s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13541p
13542g
13543s/.\{148\}//
13544t nl
13545:delim
13546h
61ef2474 13547s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
13548t more2
13549s/["\\]/\\&/g; s/^/"/; s/$/"/
13550p
13551b
13552:more2
13553s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13554p
13555g
13556s/.\{148\}//
13557t delim
13558' <conf$$subs.awk | sed '
13559/^[^""]/{
13560 N
13561 s/\n//
e1052144 13562}
39fd3d4f
SJR
13563' >>$CONFIG_STATUS || ac_write_fail=1
13564rm -f conf$$subs.awk
13565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13566_ACAWK
d6a4bcb5 13567cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
39fd3d4f
SJR
13568 for (key in S) S_is_set[key] = 1
13569 FS = "\a"
13570 \$ac_cs_awk_pipe_init
e1052144 13571}
39fd3d4f
SJR
13572{
13573 line = $ 0
13574 nfields = split(line, field, "@")
13575 substed = 0
13576 len = length(field[1])
13577 for (i = 2; i < nfields; i++) {
13578 key = field[i]
13579 keylen = length(key)
13580 if (S_is_set[key]) {
13581 value = S[key]
13582 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13583 len += length(value) + length(field[++i])
13584 substed = 1
13585 } else
13586 len += 1 + keylen
13587 }
13588 if (nfields == 3 && !substed) {
13589 key = field[2]
13590 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
13591 \$ac_cs_awk_read_file
13592 next
13593 }
13594 }
13595 print line
488c75a6 13596}
39fd3d4f
SJR
13597\$ac_cs_awk_pipe_fini
13598_ACAWK
e1052144 13599_ACEOF
39fd3d4f
SJR
13600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13601if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13602 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13603else
13604 cat
d6a4bcb5
TB
13605fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13606 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b0cacab0 13607_ACEOF
e1052144 13608
d6a4bcb5
TB
13609# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13610# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
e1052144
TT
13611# trailing colons and then remove the whole line if VPATH becomes empty
13612# (actually we leave an empty line to preserve line numbers).
13613if test "x$srcdir" = x.; then
d6a4bcb5
TB
13614 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13615h
13616s///
13617s/^/:/
13618s/[ ]*$/:/
13619s/:\$(srcdir):/:/g
13620s/:\${srcdir}:/:/g
13621s/:@srcdir@:/:/g
13622s/^:*//
e1052144 13623s/:*$//
d6a4bcb5
TB
13624x
13625s/\(=[ ]*\).*/\1/
13626G
13627s/\n//
e1052144
TT
13628s/^[^=]*=[ ]*$//
13629}'
13630fi
13631
39fd3d4f 13632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
13633fi # test -n "$CONFIG_FILES"
13634
d1154eb4
TT
13635# Set up the scripts for CONFIG_HEADERS section.
13636# No need to generate them if there are no CONFIG_HEADERS.
13637# This happens for instance with `./config.status Makefile'.
13638if test -n "$CONFIG_HEADERS"; then
d6a4bcb5 13639cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
d1154eb4
TT
13640BEGIN {
13641_ACEOF
13642
13643# Transform confdefs.h into an awk script `defines.awk', embedded as
13644# here-document in config.status, that substitutes the proper values into
13645# config.h.in to produce config.h.
13646
13647# Create a delimiter string that does not exist in confdefs.h, to ease
13648# handling of long lines.
13649ac_delim='%!_!# '
13650for ac_last_try in false false :; do
d6a4bcb5
TB
13651 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13652 if test -z "$ac_tt"; then
d1154eb4
TT
13653 break
13654 elif $ac_last_try; then
d6a4bcb5 13655 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
d1154eb4
TT
13656 else
13657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13658 fi
13659done
13660
13661# For the awk script, D is an array of macro values keyed by name,
13662# likewise P contains macro parameters if any. Preserve backslash
13663# newline sequences.
13664
13665ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13666sed -n '
13667s/.\{148\}/&'"$ac_delim"'/g
13668t rset
13669:rset
13670s/^[ ]*#[ ]*define[ ][ ]*/ /
13671t def
13672d
13673:def
13674s/\\$//
13675t bsnl
13676s/["\\]/\\&/g
13677s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13678D["\1"]=" \3"/p
13679s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13680d
13681:bsnl
13682s/["\\]/\\&/g
13683s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13684D["\1"]=" \3\\\\\\n"\\/p
13685t cont
13686s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13687t cont
13688d
13689:cont
13690n
13691s/.\{148\}/&'"$ac_delim"'/g
13692t clear
13693:clear
13694s/\\$//
13695t bsnlc
13696s/["\\]/\\&/g; s/^/"/; s/$/"/p
13697d
13698:bsnlc
13699s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13700b cont
13701' <confdefs.h | sed '
13702s/'"$ac_delim"'/"\\\
13703"/g' >>$CONFIG_STATUS || ac_write_fail=1
13704
13705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13706 for (key in D) D_is_set[key] = 1
13707 FS = "\a"
13708}
13709/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13710 line = \$ 0
13711 split(line, arg, " ")
13712 if (arg[1] == "#") {
13713 defundef = arg[2]
13714 mac1 = arg[3]
13715 } else {
13716 defundef = substr(arg[1], 2)
13717 mac1 = arg[2]
13718 }
13719 split(mac1, mac2, "(") #)
13720 macro = mac2[1]
13721 prefix = substr(line, 1, index(line, defundef) - 1)
13722 if (D_is_set[macro]) {
13723 # Preserve the white space surrounding the "#".
13724 print prefix "define", macro P[macro] D[macro]
13725 next
13726 } else {
13727 # Replace #undef with comments. This is necessary, for example,
13728 # in the case of _POSIX_SOURCE, which is predefined and required
13729 # on some systems where configure will not decide to define it.
13730 if (defundef == "undef") {
13731 print "/*", prefix defundef, macro, "*/"
13732 next
13733 }
13734 }
13735}
13736{ print }
13737_ACAWK
13738_ACEOF
13739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d6a4bcb5 13740 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
d1154eb4
TT
13741fi # test -n "$CONFIG_HEADERS"
13742
e1052144 13743
d1154eb4 13744eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39fd3d4f
SJR
13745shift
13746for ac_tag
e1052144
TT
13747do
13748 case $ac_tag in
13749 :[FHLC]) ac_mode=$ac_tag; continue;;
13750 esac
13751 case $ac_mode$ac_tag in
13752 :[FHL]*:*);;
d6a4bcb5 13753 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
e1052144
TT
13754 :[FH]-) ac_tag=-:-;;
13755 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13756 esac
13757 ac_save_IFS=$IFS
13758 IFS=:
13759 set x $ac_tag
13760 IFS=$ac_save_IFS
13761 shift
13762 ac_file=$1
13763 shift
13764
13765 case $ac_mode in
13766 :L) ac_source=$1;;
13767 :[FH])
13768 ac_file_inputs=
13769 for ac_f
13770 do
13771 case $ac_f in
d6a4bcb5 13772 -) ac_f="$ac_tmp/stdin";;
e1052144
TT
13773 *) # Look for the file first in the build tree, then in the source tree
13774 # (if the path is not absolute). The absolute path cannot be DOS-style,
13775 # because $ac_f cannot contain `:'.
13776 test -f "$ac_f" ||
13777 case $ac_f in
13778 [\\/$]*) false;;
13779 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13780 esac ||
d6a4bcb5 13781 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
e1052144 13782 esac
39fd3d4f 13783 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57aa50d4 13784 as_fn_append ac_file_inputs " '$ac_f'"
e1052144
TT
13785 done
13786
13787 # Let's still pretend it is `configure' which instantiates (i.e., don't
13788 # use $as_me), people would be surprised to read:
13789 # /* config.h. Generated by config.status. */
39fd3d4f
SJR
13790 configure_input='Generated from '`
13791 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13792 `' by configure.'
e1052144
TT
13793 if test x"$ac_file" != x-; then
13794 configure_input="$ac_file. $configure_input"
57aa50d4 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39fd3d4f 13796$as_echo "$as_me: creating $ac_file" >&6;}
e1052144 13797 fi
39fd3d4f
SJR
13798 # Neutralize special characters interpreted by sed in replacement strings.
13799 case $configure_input in #(
13800 *\&* | *\|* | *\\* )
13801 ac_sed_conf_input=`$as_echo "$configure_input" |
13802 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13803 *) ac_sed_conf_input=$configure_input;;
13804 esac
e1052144
TT
13805
13806 case $ac_tag in
d6a4bcb5
TB
13807 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
e1052144
TT
13809 esac
13810 ;;
b0cacab0
TT
13811 esac
13812
e1052144 13813 ac_dir=`$as_dirname -- "$ac_file" ||
b0cacab0
TT
13814$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13815 X"$ac_file" : 'X\(//\)[^/]' \| \
13816 X"$ac_file" : 'X\(//\)$' \| \
e1052144 13817 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 13818$as_echo X"$ac_file" |
e1052144
TT
13819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13820 s//\1/
13821 q
13822 }
13823 /^X\(\/\/\)[^/].*/{
13824 s//\1/
13825 q
13826 }
13827 /^X\(\/\/\)$/{
13828 s//\1/
13829 q
13830 }
13831 /^X\(\/\).*/{
13832 s//\1/
13833 q
13834 }
13835 s/.*/./; q'`
57aa50d4 13836 as_dir="$ac_dir"; as_fn_mkdir_p
b0cacab0
TT
13837 ac_builddir=.
13838
e1052144
TT
13839case "$ac_dir" in
13840.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13841*)
39fd3d4f 13842 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 13843 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 13844 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
13845 case $ac_top_builddir_sub in
13846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13848 esac ;;
13849esac
13850ac_abs_top_builddir=$ac_pwd
13851ac_abs_builddir=$ac_pwd$ac_dir_suffix
13852# for backward compatibility:
13853ac_top_builddir=$ac_top_build_prefix
93636bde 13854
b0cacab0 13855case $srcdir in
e1052144 13856 .) # We are building in place.
b0cacab0 13857 ac_srcdir=.
e1052144
TT
13858 ac_top_srcdir=$ac_top_builddir_sub
13859 ac_abs_top_srcdir=$ac_pwd ;;
13860 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 13861 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
13862 ac_top_srcdir=$srcdir
13863 ac_abs_top_srcdir=$srcdir ;;
13864 *) # Relative name.
13865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13866 ac_top_srcdir=$ac_top_build_prefix$srcdir
13867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 13868esac
e1052144 13869ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b0cacab0 13870
b0cacab0 13871
e1052144
TT
13872 case $ac_mode in
13873 :F)
13874 #
13875 # CONFIG_FILE
13876 #
50e1e10f 13877
b0cacab0
TT
13878 case $INSTALL in
13879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
e1052144 13880 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50e1e10f 13881 esac
93613951
TT
13882 ac_MKDIR_P=$MKDIR_P
13883 case $MKDIR_P in
13884 [\\/$]* | ?:[\\/]* ) ;;
13885 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13886 esac
e1052144 13887_ACEOF
50e1e10f 13888
39fd3d4f 13889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
13890# If the template does not know about datarootdir, expand it.
13891# FIXME: This hack should be removed a few years after 2.60.
13892ac_datarootdir_hack=; ac_datarootdir_seen=
39fd3d4f
SJR
13893ac_sed_dataroot='
13894/datarootdir/ {
e1052144
TT
13895 p
13896 q
13897}
13898/@datadir@/p
13899/@docdir@/p
13900/@infodir@/p
13901/@localedir@/p
57aa50d4 13902/@mandir@/p'
39fd3d4f 13903case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
e1052144
TT
13904*datarootdir*) ac_datarootdir_seen=yes;;
13905*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57aa50d4 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39fd3d4f 13907$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b0cacab0 13908_ACEOF
39fd3d4f 13909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
e1052144
TT
13910 ac_datarootdir_hack='
13911 s&@datadir@&$datadir&g
13912 s&@docdir@&$docdir&g
13913 s&@infodir@&$infodir&g
13914 s&@localedir@&$localedir&g
13915 s&@mandir@&$mandir&g
57aa50d4 13916 s&\\\${datarootdir}&$datarootdir&g' ;;
e1052144
TT
13917esac
13918_ACEOF
13919
13920# Neutralize VPATH when `$srcdir' = `.'.
13921# Shell code in configure.ac might set extrasub.
13922# FIXME: do we really want to maintain this feature?
39fd3d4f
SJR
13923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13924ac_sed_extra="$ac_vpsub
b0cacab0
TT
13925$extrasub
13926_ACEOF
39fd3d4f 13927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0
TT
13928:t
13929/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39fd3d4f 13930s|@configure_input@|$ac_sed_conf_input|;t t
e1052144 13931s&@top_builddir@&$ac_top_builddir_sub&;t t
39fd3d4f 13932s&@top_build_prefix@&$ac_top_build_prefix&;t t
e1052144
TT
13933s&@srcdir@&$ac_srcdir&;t t
13934s&@abs_srcdir@&$ac_abs_srcdir&;t t
13935s&@top_srcdir@&$ac_top_srcdir&;t t
13936s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13937s&@builddir@&$ac_builddir&;t t
13938s&@abs_builddir@&$ac_abs_builddir&;t t
13939s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13940s&@INSTALL@&$ac_INSTALL&;t t
93613951 13941s&@MKDIR_P@&$ac_MKDIR_P&;t t
e1052144 13942$ac_datarootdir_hack
39fd3d4f
SJR
13943"
13944eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13945if $ac_cs_awk_getline; then
d6a4bcb5 13946 $AWK -f "$ac_tmp/subs.awk"
39fd3d4f 13947else
d6a4bcb5
TB
13948 $AWK -f "$ac_tmp/subs.awk" | $SHELL
13949fi \
13950 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144
TT
13951
13952test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6a4bcb5
TB
13953 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13954 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13955 "$ac_tmp/out"`; test -z "$ac_out"; } &&
57aa50d4 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 13957which seems to be undefined. Please make sure it is defined" >&5
39fd3d4f 13958$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 13959which seems to be undefined. Please make sure it is defined" >&2;}
e1052144 13960
d6a4bcb5 13961 rm -f "$ac_tmp/stdin"
e1052144 13962 case $ac_file in
d6a4bcb5
TB
13963 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13964 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39fd3d4f 13965 esac \
d6a4bcb5 13966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144 13967 ;;
d1154eb4
TT
13968 :H)
13969 #
13970 # CONFIG_HEADER
13971 #
13972 if test x"$ac_file" != x-; then
13973 {
13974 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
13975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13976 } >"$ac_tmp/config.h" \
13977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13978 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
d1154eb4
TT
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13980$as_echo "$as_me: $ac_file is unchanged" >&6;}
13981 else
13982 rm -f "$ac_file"
d6a4bcb5
TB
13983 mv "$ac_tmp/config.h" "$ac_file" \
13984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d1154eb4
TT
13985 fi
13986 else
13987 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
13988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13989 || as_fn_error $? "could not create -" "$LINENO" 5
d1154eb4
TT
13990 fi
13991 ;;
07a0db15 13992
57aa50d4 13993 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39fd3d4f 13994$as_echo "$as_me: executing $ac_file commands" >&6;}
e1052144
TT
13995 ;;
13996 esac
a04eba3f 13997
b0cacab0 13998
e1052144 13999 case $ac_file$ac_mode in
93613951 14000 "po-directories":C)
a04eba3f
TT
14001 for ac_file in $CONFIG_FILES; do
14002 # Support "outfile[:infile[:infile...]]"
14003 case "$ac_file" in
14004 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14005 esac
14006 # PO directories have a Makefile.in generated from Makefile.in.in.
14007 case "$ac_file" in */Makefile.in)
14008 # Adjust a relative srcdir.
14009 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
93613951 14010 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
a04eba3f
TT
14011 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14012 # In autoconf-2.13 it is called $ac_given_srcdir.
14013 # In autoconf-2.50 it is called $srcdir.
14014 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14015 case "$ac_given_srcdir" in
14016 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14017 /*) top_srcdir="$ac_given_srcdir" ;;
14018 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14019 esac
93613951
TT
14020 # Treat a directory as a PO directory if and only if it has a
14021 # POTFILES.in file. This allows packages to have multiple PO
14022 # directories under different names or in different locations.
a04eba3f
TT
14023 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14024 rm -f "$ac_dir/POTFILES"
14025 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
93613951
TT
14026 gt_tab=`printf '\t'`
14027 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
14028 POMAKEFILEDEPS="POTFILES.in"
14029 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
a04eba3f
TT
14030 # on $ac_dir but don't depend on user-specified configuration
14031 # parameters.
14032 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14033 # The LINGUAS file contains the set of available languages.
b0cacab0 14034 if test -n "$OBSOLETE_ALL_LINGUAS"; then
a04eba3f
TT
14035 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14036 fi
bdcd5f22 14037 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
b0cacab0
TT
14038 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14039 else
14040 # The set of available languages was given in configure.in.
bdcd5f22 14041 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
a04eba3f 14042 fi
b0cacab0
TT
14043 # Compute POFILES
14044 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14045 # Compute UPDATEPOFILES
14046 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14047 # Compute DUMMYPOFILES
14048 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14049 # Compute GMOFILES
14050 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
a04eba3f
TT
14051 case "$ac_given_srcdir" in
14052 .) srcdirpre= ;;
14053 *) srcdirpre='$(srcdir)/' ;;
14054 esac
14055 POFILES=
a04eba3f
TT
14056 UPDATEPOFILES=
14057 DUMMYPOFILES=
b0cacab0 14058 GMOFILES=
a04eba3f
TT
14059 for lang in $ALL_LINGUAS; do
14060 POFILES="$POFILES $srcdirpre$lang.po"
a04eba3f
TT
14061 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14062 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
b0cacab0 14063 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
a04eba3f
TT
14064 done
14065 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14066 # environment variable.
14067 INST_LINGUAS=
14068 if test -n "$ALL_LINGUAS"; then
14069 for presentlang in $ALL_LINGUAS; do
14070 useit=no
14071 if test "%UNSET%" != "$LINGUAS"; then
14072 desiredlanguages="$LINGUAS"
14073 else
14074 desiredlanguages="$ALL_LINGUAS"
14075 fi
14076 for desiredlang in $desiredlanguages; do
14077 # Use the presentlang catalog if desiredlang is
14078 # a. equal to presentlang, or
14079 # b. a variant of presentlang (because in this case,
14080 # presentlang can be used as a fallback for messages
14081 # which are not translated in the desiredlang catalog).
14082 case "$desiredlang" in
14083 "$presentlang"*) useit=yes;;
14084 esac
14085 done
14086 if test $useit = yes; then
14087 INST_LINGUAS="$INST_LINGUAS $presentlang"
14088 fi
14089 done
14090 fi
14091 CATALOGS=
14092 if test -n "$INST_LINGUAS"; then
14093 for lang in $INST_LINGUAS; do
14094 CATALOGS="$CATALOGS $lang.gmo"
14095 done
14096 fi
14097 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
b0cacab0 14098 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
14099 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14100 if test -f "$f"; then
14101 case "$f" in
14102 *.orig | *.bak | *~) ;;
14103 *) cat "$f" >> "$ac_dir/Makefile" ;;
14104 esac
14105 fi
14106 done
14107 fi
14108 ;;
a64c9c13 14109 esac
b0cacab0 14110 done ;;
e1052144 14111
b0cacab0 14112 esac
e1052144 14113done # for ac_tag
07a0db15 14114
b0cacab0 14115
57aa50d4 14116as_fn_exit 0
b0cacab0 14117_ACEOF
b0cacab0
TT
14118ac_clean_files=$ac_clean_files_save
14119
39fd3d4f 14120test $ac_write_fail = 0 ||
d6a4bcb5 14121 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 14122
b0cacab0
TT
14123
14124# configure is writing to config.log, and then calls config.status.
14125# config.status does its own redirection, appending to config.log.
14126# Unfortunately, on DOS this fails, as config.log is still kept open
14127# by configure, so config.status won't be able to write to it; its
14128# output is simply discarded. So we exec the FD to /dev/null,
14129# effectively closing config.log, so it can be properly (re)opened and
14130# appended to by config.status. When coming back to configure, we
14131# need to make the FD available again.
14132if test "$no_create" != yes; then
14133 ac_cs_success=:
14134 ac_config_status_args=
14135 test "$silent" = yes &&
14136 ac_config_status_args="$ac_config_status_args --quiet"
14137 exec 5>/dev/null
14138 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14139 exec 5>>config.log
14140 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14141 # would make configure fail if this is the last instruction.
d6a4bcb5 14142 $ac_cs_success || as_fn_exit 1
b0cacab0 14143fi
39fd3d4f 14144if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
57aa50d4 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39fd3d4f
SJR
14146$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14147fi
50e1e10f 14148
ee683a13 14149if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi