]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
configure.in: fix external libblkid test for static link
[thirdparty/e2fsprogs.git] / configure
CommitLineData
50e1e10f 1#! /bin/sh
50e1e10f 2# Guess values for system-dependent variables and create Makefiles.
91d11da1 3# Generated by GNU Autoconf 2.69.
61ef2474 4#
50e1e10f 5#
91d11da1 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.
91d11da1 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
91d11da1
TT
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
91d11da1
TT
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 :
91d11da1
TT
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"
91d11da1 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
356
357
358} # as_fn_mkdir_p
91d11da1
TT
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
91d11da1
TT
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
91d11da1 407# script with STATUS, using 1 if that was 0.
57aa50d4
TT
408as_fn_error ()
409{
91d11da1
TT
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
91d11da1 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
91d11da1
TT
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.
91d11da1 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 ||
91d11da1 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
91d11da1 532 as_ln_s='cp -pR'
57aa50d4 533 fi
e1052144 534else
91d11da1 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
91d11da1
TT
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.
91d11da1 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b0cacab0
TT
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
50e1e10f 564
b0cacab0
TT
565#
566# Initializations.
567#
50e1e10f 568ac_default_prefix=/usr/local
e1052144 569ac_clean_files=
b0cacab0 570ac_config_libobj_dir=.
e1052144 571LIBOBJS=
b0cacab0
TT
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
b0cacab0 576
b0cacab0
TT
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
57aa50d4 583PACKAGE_URL=
b0cacab0
TT
584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
29a5deed 589#ifdef HAVE_SYS_TYPES_H
b0cacab0
TT
590# include <sys/types.h>
591#endif
29a5deed 592#ifdef HAVE_SYS_STAT_H
b0cacab0
TT
593# include <sys/stat.h>
594#endif
29a5deed 595#ifdef STDC_HEADERS
b0cacab0
TT
596# include <stdlib.h>
597# include <stddef.h>
598#else
29a5deed 599# ifdef HAVE_STDLIB_H
b0cacab0
TT
600# include <stdlib.h>
601# endif
602#endif
29a5deed
TT
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b0cacab0
TT
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
29a5deed 609#ifdef HAVE_STRINGS_H
b0cacab0
TT
610# include <strings.h>
611#endif
29a5deed 612#ifdef HAVE_INTTYPES_H
b0cacab0 613# include <inttypes.h>
e1052144 614#endif
29a5deed 615#ifdef HAVE_STDINT_H
e1052144 616# include <stdint.h>
b0cacab0 617#endif
29a5deed 618#ifdef HAVE_UNISTD_H
b0cacab0
TT
619# include <unistd.h>
620#endif"
621
93613951 622gt_needs=
61ef2474 623ac_header_list=
93613951
TT
624gl_use_threads_default=
625ac_func_list=
39fd3d4f 626ac_subst_vars='LTLIBOBJS
e1052144 627LIBOBJS
39fd3d4f
SJR
628BUILD_LDFLAGS
629BUILD_CFLAGS
d1154eb4 630INCLUDES
39fd3d4f
SJR
631DO_TEST_SUITE
632ET_DIR
633SS_DIR
634LDFLAG_STATIC
635root_sysconfdir
636root_libdir
637root_sbindir
638root_bindir
639root_prefix
640UNIX_CMT
641CYGWIN_CMT
642LINUX_CMT
643UNI_DIFF_OPTS
644SEM_INIT_LIB
39fd3d4f 645SOCKET_LIB
cc68e8a6 646SIZEOF_OFF_T
39fd3d4f
SJR
647SIZEOF_LONG_LONG
648SIZEOF_LONG
649SIZEOF_INT
650SIZEOF_SHORT
651BUILD_CC
652MAKEINFO
653STRIP
654AR
655LDCONFIG
656PERL
39fd3d4f
SJR
657AWK
658CHMOD
659RM
660CP
661MV
662LN_S
663LN
bcb915b0
TT
664ifNotGNUmake
665ifGNUmake
39fd3d4f
SJR
666BINARY_TYPE
667POSUB
668LTLIBINTL
669LIBINTL
670INTLLIBS
671INTL_LIBTOOL_SUFFIX_PREFIX
672INTLOBJS
673GENCAT
674INSTOBJEXT
675DATADIRNAME
676CATOBJEXT
677USE_INCLUDED_LIBINTL
678BUILD_INCLUDED_LIBINTL
93613951
TT
679LTLIBC
680WINDRES
681WOE32
682WOE32DLL
39fd3d4f 683HAVE_WPRINTF
93613951 684HAVE_NEWLOCALE
39fd3d4f
SJR
685HAVE_SNPRINTF
686HAVE_ASPRINTF
687HAVE_POSIX_PRINTF
93613951
TT
688INTL_DEFAULT_VERBOSITY
689INTL_MACOSX_LIBS
39fd3d4f 690GLIBC21
93613951
TT
691INTLBISON
692LTLIBICONV
693LIBICONV
694LTLIBMULTITHREAD
695LIBMULTITHREAD
696LTLIBTHREAD
697LIBTHREAD
698LIBPTH_PREFIX
699LTLIBPTH
700LIBPTH
701PRI_MACROS_BROKEN
39fd3d4f 702ALLOCA
93613951
TT
703HAVE_VISIBILITY
704CFLAG_VISIBILITY
39fd3d4f 705RANLIB
93613951
TT
706GLIBC2
707XGETTEXT_EXTRA_OPTIONS
39fd3d4f 708MSGMERGE
93613951 709XGETTEXT_015
39fd3d4f 710XGETTEXT
93613951
TT
711GMSGFMT_015
712MSGFMT_015
39fd3d4f
SJR
713GMSGFMT
714MSGFMT
93613951 715GETTEXT_MACRO_VERSION
39fd3d4f 716USE_NLS
93613951
TT
717SED
718MKDIR_P
39fd3d4f
SJR
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722SET_MAKE
723VERSION
724PACKAGE
725GETTEXT_PACKAGE
726UUIDD_CMT
727E2INITRD_MAN
728E2INITRD_PROG
729FSCK_MAN
730FSCK_PROG
8d9c50c5 731DEFRAG_CMT
39fd3d4f
SJR
732RESIZER_CMT
733IMAGER_CMT
734DEBUGFS_CMT
f239fefc
AK
735QUOTA_CMT
736DEPPROFILED_LIBQUOTA
737PROFILED_LIBQUOTA
738DEPSTATIC_LIBQUOTA
739STATIC_LIBQUOTA
740DEPLIBQUOTA
741LIBQUOTA
f5589f4c 742QUOTA_MAN_COMMENT
39fd3d4f
SJR
743BLKID_CMT
744DEPPROFILED_LIBBLKID
745PROFILED_LIBBLKID
746DEPSTATIC_LIBBLKID
747STATIC_LIBBLKID
748DEPLIBBLKID
749LIBBLKID
750UUID_CMT
751DEPPROFILED_LIBUUID
752PROFILED_LIBUUID
753DEPSTATIC_LIBUUID
754STATIC_LIBUUID
755DEPLIBUUID
756LIBUUID
93613951
TT
757PKG_CONFIG_LIBDIR
758PKG_CONFIG_PATH
39fd3d4f
SJR
759PKG_CONFIG
760TEST_IO_CMT
761PRIVATE_LIBS_CMT
762LDFLAG_DYNAMIC
763PROFILED_LIB_EXT
764STATIC_LIB_EXT
765LIB_EXT
39fd3d4f
SJR
766PROFILE_CMT
767BSDLIB_CMT
768ELF_CMT
769HTREE_CMT
c13351f6 770Q
c1986ecb 771ES
c13351f6 772E
5aa6c3f6 773LINK_BUILD_FLAGS
183c73b0 774SYMLINK_RELATIVE
5aa6c3f6 775LINK_INSTALL_FLAGS
39fd3d4f 776MAINTAINER_CMT
93613951
TT
777EGREP
778GREP
39fd3d4f 779CPP
9b3018a8 780RDYNAMIC
57aa50d4 781DLOPEN_LIB
39fd3d4f
SJR
782OBJEXT
783EXEEXT
784ac_ct_CC
785CPPFLAGS
786LDFLAGS
787CFLAGS
788CC
789host_os
790host_vendor
791host_cpu
792host
793build_os
794build_vendor
795build_cpu
796build
797E2FSPROGS_PKGVER
798E2FSPROGS_VERSION
799E2FSPROGS_DAY
800E2FSPROGS_MONTH
801E2FSPROGS_YEAR
802target_alias
803host_alias
804build_alias
805LIBS
806ECHO_T
807ECHO_N
808ECHO_C
809DEFS
810mandir
811localedir
812libdir
813psdir
814pdfdir
815dvidir
816htmldir
817infodir
818docdir
819oldincludedir
820includedir
821localstatedir
822sharedstatedir
823sysconfdir
824datadir
825datarootdir
826libexecdir
827sbindir
828bindir
829program_transform_name
830prefix
831exec_prefix
57aa50d4 832PACKAGE_URL
39fd3d4f
SJR
833PACKAGE_BUGREPORT
834PACKAGE_STRING
835PACKAGE_VERSION
836PACKAGE_TARNAME
837PACKAGE_NAME
838PATH_SEPARATOR
839SHELL'
e1052144
TT
840ac_subst_files='MCONFIG
841MAKEFILE_ELF
842MAKEFILE_BSDLIB
843MAKEFILE_PROFILE
e1052144 844MAKEFILE_LIBRARY
488c75a6
TT
845ASM_TYPES_HEADER
846PUBLIC_CONFIG_HEADER'
39fd3d4f
SJR
847ac_user_opts='
848enable_option_checking
849with_diet_libc
850with_cc
39fd3d4f
SJR
851with_ccopts
852with_ldopts
853with_root_prefix
854enable_maintainer_mode
5aa6c3f6 855enable_symlink_install
91d11da1 856enable_relative_symlinks
183c73b0 857enable_symlink_relative_symlinks
5aa6c3f6 858enable_symlink_build
c13351f6 859enable_verbose_makecmds
39fd3d4f
SJR
860enable_compression
861enable_htree
862enable_elf_shlibs
863enable_bsd_shlibs
864enable_profile
fedfb27f 865enable_gcov
39fd3d4f
SJR
866enable_jbd_debug
867enable_blkid_debug
868enable_testio_debug
869enable_libuuid
870enable_libblkid
7becb206 871enable_quota
3df6014a 872enable_backtrace
39fd3d4f
SJR
873enable_debugfs
874enable_imager
875enable_resizer
8d9c50c5 876enable_defrag
39fd3d4f
SJR
877enable_fsck
878enable_e2initrd_helper
879enable_tls
880enable_uuidd
881enable_nls
93613951 882enable_threads
39fd3d4f
SJR
883with_gnu_ld
884enable_rpath
93613951 885with_libpth_prefix
39fd3d4f
SJR
886with_libiconv_prefix
887with_included_gettext
888with_libintl_prefix
55e00a25 889with_multiarch
39fd3d4f 890'
e1052144
TT
891 ac_precious_vars='build_alias
892host_alias
893target_alias
894CC
895CFLAGS
896LDFLAGS
29a5deed 897LIBS
e1052144 898CPPFLAGS
14b596d4 899CPP
93613951
TT
900PKG_CONFIG
901PKG_CONFIG_PATH
902PKG_CONFIG_LIBDIR'
e1052144 903
50e1e10f
TT
904
905# Initialize some variables set by options.
b0cacab0
TT
906ac_init_help=
907ac_init_version=false
39fd3d4f
SJR
908ac_unrecognized_opts=
909ac_unrecognized_sep=
50e1e10f
TT
910# The variables have the same names as the options, with
911# dashes changed to underlines.
b0cacab0 912cache_file=/dev/null
50e1e10f 913exec_prefix=NONE
50e1e10f 914no_create=
50e1e10f
TT
915no_recursion=
916prefix=NONE
917program_prefix=NONE
918program_suffix=NONE
919program_transform_name=s,x,x,
920silent=
921site=
922srcdir=
50e1e10f
TT
923verbose=
924x_includes=NONE
925x_libraries=NONE
b0cacab0
TT
926
927# Installation directory options.
928# These are left unexpanded so users can "make install exec_prefix=/foo"
929# and all the variables that are supposed to be based on exec_prefix
930# by default will actually change.
931# Use braces instead of parens because sh, perl, etc. also accept them.
e1052144 932# (The list follows the same order as the GNU Coding Standards.)
21c84b71
TT
933bindir='${exec_prefix}/bin'
934sbindir='${exec_prefix}/sbin'
935libexecdir='${exec_prefix}/libexec'
e1052144
TT
936datarootdir='${prefix}/share'
937datadir='${datarootdir}'
21c84b71
TT
938sysconfdir='${prefix}/etc'
939sharedstatedir='${prefix}/com'
940localstatedir='${prefix}/var'
21c84b71
TT
941includedir='${prefix}/include'
942oldincludedir='/usr/include'
e1052144
TT
943docdir='${datarootdir}/doc/${PACKAGE}'
944infodir='${datarootdir}/info'
945htmldir='${docdir}'
946dvidir='${docdir}'
947pdfdir='${docdir}'
948psdir='${docdir}'
949libdir='${exec_prefix}/lib'
950localedir='${datarootdir}/locale'
951mandir='${datarootdir}/man'
50e1e10f 952
50e1e10f 953ac_prev=
e1052144 954ac_dashdash=
50e1e10f
TT
955for ac_option
956do
50e1e10f
TT
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
e1052144 959 eval $ac_prev=\$ac_option
50e1e10f
TT
960 ac_prev=
961 continue
962 fi
963
e1052144 964 case $ac_option in
91d11da1
TT
965 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 *=) ac_optarg= ;;
967 *) ac_optarg=yes ;;
e1052144 968 esac
50e1e10f
TT
969
970 # Accept the important Cygnus configure options, so we can diagnose typos.
971
e1052144
TT
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
50e1e10f 975
21c84b71
TT
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b0cacab0 979 bindir=$ac_optarg ;;
21c84b71
TT
980
981 -build | --build | --buil | --bui | --bu)
b0cacab0 982 ac_prev=build_alias ;;
21c84b71 983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b0cacab0 984 build_alias=$ac_optarg ;;
50e1e10f
TT
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b0cacab0
TT
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
50e1e10f 995
e1052144 996 -datadir | --datadir | --datadi | --datad)
21c84b71 997 ac_prev=datadir ;;
e1052144 998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b0cacab0 999 datadir=$ac_optarg ;;
21c84b71 1000
e1052144
TT
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
50e1e10f 1008 -disable-* | --disable-*)
39fd3d4f 1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
50e1e10f 1010 # Reject names that are not valid shell variable names.
39fd3d4f 1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
91d11da1 1012 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017"enable_$ac_useropt"
1018"*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
e1052144
TT
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
50e1e10f
TT
1033
1034 -enable-* | --enable-*)
39fd3d4f 1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
50e1e10f 1036 # Reject names that are not valid shell variable names.
39fd3d4f 1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
91d11da1 1038 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043"enable_$ac_useropt"
1044"*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
b0cacab0 1057 exec_prefix=$ac_optarg ;;
50e1e10f
TT
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
b0cacab0
TT
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
50e1e10f
TT
1069
1070 -host | --host | --hos | --ho)
b0cacab0 1071 ac_prev=host_alias ;;
50e1e10f 1072 -host=* | --host=* | --hos=* | --ho=*)
b0cacab0 1073 host_alias=$ac_optarg ;;
50e1e10f 1074
e1052144
TT
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
21c84b71
TT
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
b0cacab0 1086 includedir=$ac_optarg ;;
21c84b71
TT
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b0cacab0 1091 infodir=$ac_optarg ;;
21c84b71
TT
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b0cacab0 1096 libdir=$ac_optarg ;;
21c84b71
TT
1097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
b0cacab0 1103 libexecdir=$ac_optarg ;;
21c84b71 1104
e1052144
TT
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
21c84b71 1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
e1052144 1111 | --localstate | --localstat | --localsta | --localst | --locals)
21c84b71
TT
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
e1052144 1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b0cacab0 1115 localstatedir=$ac_optarg ;;
21c84b71
TT
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b0cacab0 1120 mandir=$ac_optarg ;;
21c84b71 1121
50e1e10f
TT
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b0cacab0 1127 | --no-cr | --no-c | -n)
50e1e10f
TT
1128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
21c84b71
TT
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b0cacab0 1141 oldincludedir=$ac_optarg ;;
21c84b71 1142
50e1e10f
TT
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b0cacab0 1146 prefix=$ac_optarg ;;
50e1e10f
TT
1147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b0cacab0 1153 program_prefix=$ac_optarg ;;
50e1e10f
TT
1154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b0cacab0 1160 program_suffix=$ac_optarg ;;
50e1e10f
TT
1161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
b0cacab0 1177 program_transform_name=$ac_optarg ;;
50e1e10f 1178
e1052144
TT
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
50e1e10f
TT
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
21c84b71
TT
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 ac_prev=sbindir ;;
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 | --sbi=* | --sb=*)
b0cacab0 1197 sbindir=$ac_optarg ;;
21c84b71
TT
1198
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1202 | --sha | --sh)
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 | --sha=* | --sh=*)
b0cacab0 1208 sharedstatedir=$ac_optarg ;;
21c84b71 1209
50e1e10f
TT
1210 -site | --site | --sit)
1211 ac_prev=site ;;
1212 -site=* | --site=* | --sit=*)
b0cacab0 1213 site=$ac_optarg ;;
50e1e10f
TT
1214
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 ac_prev=srcdir ;;
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b0cacab0 1218 srcdir=$ac_optarg ;;
50e1e10f 1219
21c84b71
TT
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b0cacab0 1225 sysconfdir=$ac_optarg ;;
21c84b71 1226
50e1e10f 1227 -target | --target | --targe | --targ | --tar | --ta | --t)
b0cacab0 1228 ac_prev=target_alias ;;
50e1e10f 1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b0cacab0 1230 target_alias=$ac_optarg ;;
50e1e10f
TT
1231
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 verbose=yes ;;
1234
b0cacab0
TT
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
50e1e10f
TT
1237
1238 -with-* | --with-*)
39fd3d4f 1239 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
50e1e10f 1240 # Reject names that are not valid shell variable names.
39fd3d4f 1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
91d11da1 1242 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247"with_$ac_useropt"
1248"*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1253
1254 -without-* | --without-*)
39fd3d4f 1255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
50e1e10f 1256 # Reject names that are not valid shell variable names.
39fd3d4f 1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
91d11da1 1258 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263"with_$ac_useropt"
1264"*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=no ;;
50e1e10f
TT
1269
1270 --x)
1271 # Obsolete; use --with-x.
1272 with_x=yes ;;
1273
1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275 | --x-incl | --x-inc | --x-in | --x-i)
1276 ac_prev=x_includes ;;
1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b0cacab0 1279 x_includes=$ac_optarg ;;
50e1e10f
TT
1280
1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283 ac_prev=x_libraries ;;
1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b0cacab0 1286 x_libraries=$ac_optarg ;;
50e1e10f 1287
91d11da1
TT
1288 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289Try \`$0 --help' for more information"
50e1e10f
TT
1290 ;;
1291
b0cacab0
TT
1292 *=*)
1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
57aa50d4
TT
1295 case $ac_envvar in #(
1296 '' | [0-9]* | *[!_$as_cr_alnum]* )
91d11da1 1297 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
57aa50d4 1298 esac
e1052144 1299 eval $ac_envvar=\$ac_optarg
b0cacab0
TT
1300 export $ac_envvar ;;
1301
21c84b71 1302 *)
b0cacab0 1303 # FIXME: should be removed in autoconf 3.0.
39fd3d4f 1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b0cacab0 1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
39fd3d4f 1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
91d11da1 1307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
50e1e10f
TT
1308 ;;
1309
1310 esac
1311done
1312
1313if test -n "$ac_prev"; then
b0cacab0 1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
91d11da1 1315 as_fn_error $? "missing argument to $ac_option"
50e1e10f 1316fi
50e1e10f 1317
39fd3d4f
SJR
1318if test -n "$ac_unrecognized_opts"; then
1319 case $enable_option_checking in
1320 no) ;;
91d11da1 1321 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
39fd3d4f
SJR
1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 esac
1324fi
1325
1326# Check all directory arguments for consistency.
e1052144
TT
1327for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
50e1e10f 1331do
e1052144 1332 eval ac_val=\$$ac_var
39fd3d4f
SJR
1333 # Remove trailing slashes.
1334 case $ac_val in
1335 */ )
1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\$ac_val;;
1338 esac
1339 # Be sure to have absolute directory names.
b0cacab0 1340 case $ac_val in
e1052144
TT
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
50e1e10f 1343 esac
91d11da1 1344 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
50e1e10f
TT
1345done
1346
b0cacab0
TT
1347# There might be people who depend on the old broken behavior: `$host'
1348# used to hold the argument of --host etc.
1349# FIXME: To remove some day.
1350build=$build_alias
1351host=$host_alias
1352target=$target_alias
1353
1354# FIXME: To remove some day.
1355if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
b0cacab0
TT
1358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1360 fi
1361fi
50e1e10f 1362
b0cacab0
TT
1363ac_tool_prefix=
1364test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366test "$silent" = yes && exec 6>/dev/null
50e1e10f 1367
50e1e10f 1368
e1052144
TT
1369ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370ac_ls_di=`ls -di .` &&
1371ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
91d11da1 1372 as_fn_error $? "working directory cannot be determined"
e1052144 1373test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
91d11da1 1374 as_fn_error $? "pwd does not report name of working directory"
e1052144
TT
1375
1376
50e1e10f
TT
1377# Find the source files, if location was not specified.
1378if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
e1052144 1380 # Try the directory containing this script, then the parent directory.
39fd3d4f
SJR
1381 ac_confdir=`$as_dirname -- "$as_myself" ||
1382$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386$as_echo X"$as_myself" |
e1052144
TT
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\).*/{
1400 s//\1/
1401 q
1402 }
1403 s/.*/./; q'`
50e1e10f 1404 srcdir=$ac_confdir
e1052144 1405 if test ! -r "$srcdir/$ac_unique_file"; then
50e1e10f
TT
1406 srcdir=..
1407 fi
1408else
1409 ac_srcdir_defaulted=no
1410fi
e1052144
TT
1411if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
91d11da1 1413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
50e1e10f 1414fi
e1052144
TT
1415ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416ac_abs_confdir=`(
91d11da1 1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
e1052144
TT
1418 pwd)`
1419# When building in place, set srcdir=.
1420if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 srcdir=.
1422fi
1423# Remove unnecessary trailing slashes from srcdir.
1424# Double slashes in file names in object file debugging info
1425# mess up M-x gdb in Emacs.
1426case $srcdir in
1427*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428esac
1429for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434done
b0cacab0
TT
1435
1436#
1437# Report the --help message.
1438#
1439if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1442 cat <<_ACEOF
1443\`configure' configures this package to adapt to many kinds of systems.
1444
1445Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448VAR=VALUE. See below for descriptions of some of the useful variables.
1449
1450Defaults for the options are specified in brackets.
1451
1452Configuration:
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
91d11da1 1457 -q, --quiet, --silent do not print \`checking ...' messages
b0cacab0
TT
1458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462
b0cacab0
TT
1463Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
39fd3d4f 1465 [$ac_default_prefix]
b0cacab0 1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
39fd3d4f 1467 [PREFIX]
b0cacab0
TT
1468
1469By default, \`make install' will install all the files in
1470\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472for instance \`--prefix=\$HOME'.
1473
1474For better control, use the options below.
1475
1476Fine tuning of the installation directories:
39fd3d4f
SJR
1477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --libdir=DIR object code libraries [EPREFIX/lib]
1484 --includedir=DIR C header files [PREFIX/include]
1485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1488 --infodir=DIR info documentation [DATAROOTDIR/info]
1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1490 --mandir=DIR man documentation [DATAROOTDIR/man]
1491 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1492 --htmldir=DIR html documentation [DOCDIR]
1493 --dvidir=DIR dvi documentation [DOCDIR]
1494 --pdfdir=DIR pdf documentation [DOCDIR]
1495 --psdir=DIR ps documentation [DOCDIR]
b0cacab0
TT
1496_ACEOF
1497
1498 cat <<\_ACEOF
1499
1500System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503_ACEOF
1504fi
1505
1506if test -n "$ac_init_help"; then
1507
1508 cat <<\_ACEOF
1509
1510Optional Features:
39fd3d4f 1511 --disable-option-checking ignore unrecognized --enable/--with options
b0cacab0
TT
1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
98919bdb 1514 --enable-maintainer-mode enable makefile rules useful for maintainers
5aa6c3f6 1515 --enable-symlink-install use symlinks when installing instead of hard links
183c73b0 1516 --enable-relative-symlinks use relative symlinks when installing
91d11da1 1517
5aa6c3f6
TT
1518 --enable-symlink-build use symlinks while building instead of hard links
1519 --enable-verbose-makecmds enable verbose make command output
b0cacab0
TT
1520 --enable-compression enable EXPERIMENTAL compression support
1521 --enable-htree enable EXPERIMENTAL htree directory support
b0cacab0
TT
1522 --enable-elf-shlibs select ELF shared libraries
1523 --enable-bsd-shlibs select BSD shared libraries
1524 --enable-profile build profiling libraries
fedfb27f 1525 --enable-gcov build for coverage testing using gcov
b0cacab0
TT
1526 --enable-jbd-debug enable journal debugging
1527 --enable-blkid-debug enable blkid debugging
af773654 1528 --disable-testio-debug disable the use of the test I/O manager for debugging
39fd3d4f 1529 --disable-libuuid do not build private uuid library
14b596d4 1530 --disable-libblkid do not build private blkid library
7b8912ea 1531 --enable-quota enable quota support
3df6014a 1532 --disable-backtrace disable use backtrace
b0cacab0
TT
1533 --disable-debugfs disable support of debugfs program
1534 --disable-imager disable support of e2image program
1535 --disable-resizer disable support of e2resize program
8d9c50c5 1536 --disable-defrag disable support of e4defrag program
b0cacab0
TT
1537 --enable-fsck build fsck wrapper program
1538 --enable-e2initrd-helper build e2initrd-helper program
3249394d 1539 --disable-tls disable use of thread local support
5610f992 1540 --disable-uuidd disable building the uuid daemon
b0cacab0 1541 --disable-nls do not use Native Language Support
93613951
TT
1542 --enable-threads={posix|solaris|pth|windows}
1543 specify multithreading API
1544 --disable-threads build without multithread safety
b0cacab0
TT
1545 --disable-rpath do not hardcode runtime library paths
1546
1547Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3249394d 1550 --with-diet-libc use diet libc
0b5b9f90
TT
1551 --with-cc no longer supported, use CC= instead
1552 --with-ccopts no longer supported, use CFLAGS= instead
1553 --with-ldopts no longer supported, use LDFLAGS= instead
b0cacab0 1554 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
93613951
TT
1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1556 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1557 --without-libpth-prefix don't search for libpth in includedir and libdir
b0cacab0
TT
1558 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1559 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1560 --with-included-gettext use the GNU gettext library included here
1561 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1562 --without-libintl-prefix don't search for libintl in includedir and libdir
55e00a25 1563 --with-multiarch=ARCH specify the multiarch triplet
b0cacab0
TT
1564
1565Some influential environment variables:
1566 CC C compiler command
1567 CFLAGS C compiler flags
1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1569 nonstandard directory <lib dir>
29a5deed 1570 LIBS libraries to pass to the linker, e.g. -l<library>
61ef2474 1571 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
e1052144 1572 you have headers in a nonstandard directory <include dir>
b0cacab0 1573 CPP C preprocessor
14b596d4 1574 PKG_CONFIG path to pkg-config utility
93613951
TT
1575 PKG_CONFIG_PATH
1576 directories to add to pkg-config's search path
1577 PKG_CONFIG_LIBDIR
1578 path overriding pkg-config's built-in search path
b0cacab0
TT
1579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
57aa50d4 1583Report bugs to the package provider.
b0cacab0 1584_ACEOF
e1052144 1585ac_status=$?
b0cacab0
TT
1586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
b0cacab0 1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
39fd3d4f
SJR
1591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593 continue
b0cacab0
TT
1594 ac_builddir=.
1595
e1052144
TT
1596case "$ac_dir" in
1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598*)
39fd3d4f 1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 1600 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
1602 case $ac_top_builddir_sub in
1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605 esac ;;
1606esac
1607ac_abs_top_builddir=$ac_pwd
1608ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609# for backward compatibility:
1610ac_top_builddir=$ac_top_build_prefix
b0cacab0
TT
1611
1612case $srcdir in
e1052144 1613 .) # We are building in place.
b0cacab0 1614 ac_srcdir=.
e1052144
TT
1615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 1618 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
1619 ac_top_srcdir=$srcdir
1620 ac_abs_top_srcdir=$srcdir ;;
1621 *) # Relative name.
1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 1625esac
e1052144
TT
1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628 cd "$ac_dir" || { ac_status=$?; continue; }
1629 # Check for guested configure.
1630 if test -f "$ac_srcdir/configure.gnu"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633 elif test -f "$ac_srcdir/configure"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure" --help=recursive
b0cacab0 1636 else
39fd3d4f 1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
e1052144
TT
1638 fi || ac_status=$?
1639 cd "$ac_pwd" || { ac_status=$?; break; }
b0cacab0
TT
1640 done
1641fi
1642
e1052144 1643test -n "$ac_init_help" && exit $ac_status
b0cacab0
TT
1644if $ac_init_version; then
1645 cat <<\_ACEOF
e1052144 1646configure
91d11da1 1647generated by GNU Autoconf 2.69
b0cacab0 1648
91d11da1 1649Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
1650This configure script is free software; the Free Software Foundation
1651gives unlimited permission to copy, distribute and modify it.
1652_ACEOF
e1052144 1653 exit
b0cacab0 1654fi
b0cacab0 1655
57aa50d4
TT
1656## ------------------------ ##
1657## Autoconf initialization. ##
1658## ------------------------ ##
b0cacab0 1659
57aa50d4
TT
1660# ac_fn_c_try_compile LINENO
1661# --------------------------
1662# Try to compile conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_compile ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext
1667 if { { ac_try="$ac_compile"
1668case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_compile") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest.$ac_objext; then :
1686 ac_retval=0
1687else
1688 $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1690
57aa50d4
TT
1691 ac_retval=1
1692fi
91d11da1 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1694 as_fn_set_status $ac_retval
57aa50d4
TT
1695
1696} # ac_fn_c_try_compile
1697
1698# ac_fn_c_try_link LINENO
1699# -----------------------
1700# Try to link conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_link ()
b0cacab0 1702{
57aa50d4
TT
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 rm -f conftest.$ac_objext conftest$ac_exeext
1705 if { { ac_try="$ac_link"
1706case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest$ac_exeext && {
1724 test "$cross_compiling" = yes ||
91d11da1 1725 test -x conftest$ac_exeext
57aa50d4
TT
1726 }; then :
1727 ac_retval=0
1728else
1729 $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1731
57aa50d4
TT
1732 ac_retval=1
1733fi
1734 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1735 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1736 # interfere with the next link command; also delete a directory that is
1737 # left behind by Apple's compiler. We do this before executing the actions.
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
91d11da1 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1740 as_fn_set_status $ac_retval
b0cacab0 1741
57aa50d4 1742} # ac_fn_c_try_link
b0cacab0 1743
57aa50d4
TT
1744# ac_fn_c_try_cpp LINENO
1745# ----------------------
1746# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1747ac_fn_c_try_cpp ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_cpp conftest.$ac_ext"
1751case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1763 fi
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91d11da1 1765 test $ac_status = 0; } > conftest.i && {
57aa50d4
TT
1766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 }; then :
1769 ac_retval=0
1770else
1771 $as_echo "$as_me: failed program was:" >&5
1772sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1773
57aa50d4
TT
1774 ac_retval=1
1775fi
91d11da1 1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1777 as_fn_set_status $ac_retval
b0cacab0 1778
57aa50d4 1779} # ac_fn_c_try_cpp
b0cacab0 1780
93613951
TT
1781# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1782# -------------------------------------------------------
1783# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1784# the include files in INCLUDES and setting the cache variable VAR
1785# accordingly.
1786ac_fn_c_check_header_mongrel ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if eval \${$3+:} false; then :
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1794fi
1795eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798else
1799 # Is the header compilable?
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1801$as_echo_n "checking $2 usability... " >&6; }
1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h. */
1804$4
1805#include <$2>
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_header_compiler=yes
1809else
1810 ac_header_compiler=no
1811fi
1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1814$as_echo "$ac_header_compiler" >&6; }
1815
1816# Is the header present?
1817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1818$as_echo_n "checking $2 presence... " >&6; }
1819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h. */
1821#include <$2>
1822_ACEOF
1823if ac_fn_c_try_cpp "$LINENO"; then :
1824 ac_header_preproc=yes
1825else
1826 ac_header_preproc=no
1827fi
1828rm -f conftest.err conftest.i conftest.$ac_ext
1829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1830$as_echo "$ac_header_preproc" >&6; }
1831
1832# So? What about this header?
1833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1834 yes:no: )
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1836$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 ;;
1840 no:yes:* )
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1842$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1844$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1846$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1848$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851 ;;
1852esac
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 eval "$3=\$ac_header_compiler"
1859fi
1860eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863fi
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866} # ac_fn_c_check_header_mongrel
1867
57aa50d4
TT
1868# ac_fn_c_try_run LINENO
1869# ----------------------
1870# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1871# that executables *can* be run.
1872ac_fn_c_try_run ()
1873{
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_link"
1876case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879esac
1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881$as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_link") 2>&5
1883 ac_status=$?
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1886 { { case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889esac
1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891$as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_try") 2>&5
1893 ac_status=$?
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; }; }; then :
1896 ac_retval=0
1897else
1898 $as_echo "$as_me: program exited with status $ac_status" >&5
1899 $as_echo "$as_me: failed program was:" >&5
1900sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1901
57aa50d4
TT
1902 ac_retval=$ac_status
1903fi
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
91d11da1 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1906 as_fn_set_status $ac_retval
b0cacab0 1907
57aa50d4 1908} # ac_fn_c_try_run
b0cacab0 1909
93613951
TT
1910# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1911# -------------------------------------------------------
1912# Tests whether HEADER exists and can be compiled using the include files in
1913# INCLUDES, setting the cache variable VAR accordingly.
1914ac_fn_c_check_header_compile ()
1915{
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918$as_echo_n "checking for $2... " >&6; }
1919if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1921else
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h. */
1924$4
1925#include <$2>
1926_ACEOF
1927if ac_fn_c_try_compile "$LINENO"; then :
1928 eval "$3=yes"
1929else
1930 eval "$3=no"
1931fi
1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933fi
1934eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939} # ac_fn_c_check_header_compile
1940
57aa50d4
TT
1941# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1942# -------------------------------------------
1943# Tests whether TYPE exists after having included INCLUDES, setting cache
1944# variable VAR accordingly.
1945ac_fn_c_check_type ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949$as_echo_n "checking for $2... " >&6; }
91d11da1 1950if eval \${$3+:} false; then :
57aa50d4 1951 $as_echo_n "(cached) " >&6
e1052144 1952else
57aa50d4
TT
1953 eval "$3=no"
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h. */
1956$4
1957int
1958main ()
1959{
1960if (sizeof ($2))
1961 return 0;
1962 ;
1963 return 0;
1964}
1965_ACEOF
1966if ac_fn_c_try_compile "$LINENO"; then :
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h. */
1969$4
1970int
1971main ()
1972{
1973if (sizeof (($2)))
1974 return 0;
1975 ;
1976 return 0;
1977}
1978_ACEOF
1979if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f 1980
50e1e10f 1981else
57aa50d4 1982 eval "$3=yes"
b0cacab0 1983fi
57aa50d4 1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 1985fi
57aa50d4
TT
1986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
91d11da1 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
50e1e10f 1992
57aa50d4 1993} # ac_fn_c_check_type
b0cacab0 1994
57aa50d4
TT
1995# ac_fn_c_check_func LINENO FUNC VAR
1996# ----------------------------------
1997# Tests whether FUNC exists, setting the cache variable VAR accordingly
1998ac_fn_c_check_func ()
1999{
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002$as_echo_n "checking for $2... " >&6; }
91d11da1 2003if eval \${$3+:} false; then :
57aa50d4
TT
2004 $as_echo_n "(cached) " >&6
2005else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h. */
2008/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2010#define $2 innocuous_$2
b0cacab0 2011
57aa50d4
TT
2012/* System header to define __stub macros and hopefully few prototypes,
2013 which can conflict with char $2 (); below.
2014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2015 <limits.h> exists even on freestanding compilers. */
b0cacab0 2016
57aa50d4
TT
2017#ifdef __STDC__
2018# include <limits.h>
2019#else
2020# include <assert.h>
2021#endif
a04eba3f 2022
57aa50d4 2023#undef $2
07a0db15 2024
57aa50d4
TT
2025/* Override any GCC internal prototype to avoid an error.
2026 Use char because int might match the return type of a GCC
2027 builtin and then its argument prototype would still apply. */
2028#ifdef __cplusplus
2029extern "C"
2030#endif
2031char $2 ();
2032/* The GNU C library defines this for functions which it implements
2033 to always fail with ENOSYS. Some functions are actually named
2034 something starting with __ and the normal name is an alias. */
2035#if defined __stub_$2 || defined __stub___$2
2036choke me
2037#endif
74becf3c 2038
57aa50d4
TT
2039int
2040main ()
2041{
2042return $2 ();
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_link "$LINENO"; then :
2048 eval "$3=yes"
2049else
2050 eval "$3=no"
2051fi
2052rm -f core conftest.err conftest.$ac_objext \
2053 conftest$ac_exeext conftest.$ac_ext
2054fi
2055eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
91d11da1 2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
93636bde 2059
57aa50d4 2060} # ac_fn_c_check_func
93636bde 2061
93613951
TT
2062# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2063# ---------------------------------------------
2064# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
d1154eb4 2065# accordingly.
93613951 2066ac_fn_c_check_decl ()
d1154eb4
TT
2067{
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
93613951
TT
2069 as_decl_name=`echo $2|sed 's/ *(.*//'`
2070 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2072$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
91d11da1 2073if eval \${$3+:} false; then :
d1154eb4 2074 $as_echo_n "(cached) " >&6
d1154eb4 2075else
93613951 2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
2077/* end confdefs.h. */
2078$4
93613951
TT
2079int
2080main ()
2081{
2082#ifndef $as_decl_name
2083#ifdef __cplusplus
2084 (void) $as_decl_use;
2085#else
2086 (void) $as_decl_name;
2087#endif
2088#endif
2089
2090 ;
2091 return 0;
2092}
d1154eb4
TT
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
93613951 2095 eval "$3=yes"
d1154eb4 2096else
93613951 2097 eval "$3=no"
d1154eb4
TT
2098fi
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4
TT
2100fi
2101eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
91d11da1 2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1154eb4 2105
93613951 2106} # ac_fn_c_check_decl
d1154eb4 2107
57aa50d4
TT
2108# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109# --------------------------------------------
2110# Tries to find the compile-time value of EXPR in a program that includes
2111# INCLUDES, setting VAR accordingly. Returns whether the value could be
2112# computed
2113ac_fn_c_compute_int ()
2114{
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if test "$cross_compiling" = yes; then
2117 # Depending upon the size, compute the lo and hi bounds.
2118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h. */
2120$4
2121int
2122main ()
2123{
2124static int test_array [1 - 2 * !(($2) >= 0)];
91d11da1
TT
2125test_array [0] = 0;
2126return test_array [0];
93636bde 2127
57aa50d4
TT
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_lo=0 ac_mid=0
2134 while :; do
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */
2137$4
2138int
2139main ()
2140{
2141static int test_array [1 - 2 * !(($2) <= $ac_mid)];
91d11da1
TT
2142test_array [0] = 0;
2143return test_array [0];
93636bde 2144
57aa50d4
TT
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=$ac_mid; break
2151else
2152 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2153 if test $ac_lo -le $ac_mid; then
2154 ac_lo= ac_hi=
2155 break
2156 fi
2157 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
b0cacab0 2158fi
57aa50d4
TT
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161else
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163/* end confdefs.h. */
2164$4
2165int
2166main ()
2167{
2168static int test_array [1 - 2 * !(($2) < 0)];
91d11da1
TT
2169test_array [0] = 0;
2170return test_array [0];
e1052144 2171
57aa50d4
TT
2172 ;
2173 return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_hi=-1 ac_mid=-1
2178 while :; do
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182int
2183main ()
2184{
2185static int test_array [1 - 2 * !(($2) >= $ac_mid)];
91d11da1
TT
2186test_array [0] = 0;
2187return test_array [0];
93636bde 2188
57aa50d4
TT
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_lo=$ac_mid; break
93636bde 2195else
57aa50d4
TT
2196 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2197 if test $ac_mid -le $ac_hi; then
2198 ac_lo= ac_hi=
2199 break
2200 fi
2201 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
93636bde 2202fi
57aa50d4
TT
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 done
2205else
2206 ac_lo= ac_hi=
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209fi
2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211# Binary search between lo and hi bounds.
2212while test "x$ac_lo" != "x$ac_hi"; do
2213 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h. */
2216$4
2217int
2218main ()
2219{
2220static int test_array [1 - 2 * !(($2) <= $ac_mid)];
91d11da1
TT
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_hi=$ac_mid
2230else
2231 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2232fi
2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234done
2235case $ac_lo in #((
2236?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2237'') ac_retval=1 ;;
927566a3 2238esac
57aa50d4
TT
2239 else
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241/* end confdefs.h. */
2242$4
2243static long int longval () { return $2; }
2244static unsigned long int ulongval () { return $2; }
2245#include <stdio.h>
2246#include <stdlib.h>
2247int
2248main ()
2249{
927566a3 2250
57aa50d4
TT
2251 FILE *f = fopen ("conftest.val", "w");
2252 if (! f)
2253 return 1;
2254 if (($2) < 0)
2255 {
2256 long int i = longval ();
2257 if (i != ($2))
2258 return 1;
2259 fprintf (f, "%ld", i);
2260 }
2261 else
2262 {
2263 unsigned long int i = ulongval ();
2264 if (i != ($2))
2265 return 1;
2266 fprintf (f, "%lu", i);
2267 }
2268 /* Do not output a trailing newline, as this causes \r\n confusion
2269 on some platforms. */
2270 return ferror (f) || fclose (f) != 0;
93636bde 2271
57aa50d4
TT
2272 ;
2273 return 0;
2274}
2275_ACEOF
2276if ac_fn_c_try_run "$LINENO"; then :
2277 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2278else
2279 ac_retval=1
2280fi
2281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282 conftest.$ac_objext conftest.beam conftest.$ac_ext
2283rm -f conftest.val
93636bde 2284
57aa50d4 2285 fi
91d11da1 2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 2287 as_fn_set_status $ac_retval
927566a3 2288
57aa50d4 2289} # ac_fn_c_compute_int
b0cacab0 2290
57aa50d4
TT
2291# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2292# ----------------------------------------------------
2293# Tries to find if the field MEMBER exists in type AGGR, after including
2294# INCLUDES, setting cache variable VAR accordingly.
2295ac_fn_c_check_member ()
2296{
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2299$as_echo_n "checking for $2.$3... " >&6; }
91d11da1 2300if eval \${$4+:} false; then :
39fd3d4f 2301 $as_echo_n "(cached) " >&6
b0cacab0 2302else
57aa50d4
TT
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h. */
2305$5
2306int
2307main ()
2308{
2309static $2 ac_aggr;
2310if (ac_aggr.$3)
2311return 0;
2312 ;
2313 return 0;
2314}
2315_ACEOF
2316if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$4=yes"
2318else
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320/* end confdefs.h. */
2321$5
2322int
2323main ()
2324{
2325static $2 ac_aggr;
2326if (sizeof ac_aggr.$3)
2327return 0;
2328 ;
2329 return 0;
2330}
2331_ACEOF
2332if ac_fn_c_try_compile "$LINENO"; then :
2333 eval "$4=yes"
2334else
2335 eval "$4=no"
b0cacab0 2336fi
57aa50d4
TT
2337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338fi
2339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340fi
2341eval ac_res=\$$4
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343$as_echo "$ac_res" >&6; }
91d11da1 2344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e1052144 2345
57aa50d4 2346} # ac_fn_c_check_member
57aa50d4
TT
2347cat >config.log <<_ACEOF
2348This file contains any messages produced by compilers while
2349running configure, to aid debugging if configure makes a mistake.
93636bde 2350
57aa50d4 2351It was created by $as_me, which was
91d11da1 2352generated by GNU Autoconf 2.69. Invocation command line was
07a0db15 2353
57aa50d4 2354 $ $0 $@
e1052144 2355
57aa50d4
TT
2356_ACEOF
2357exec 5>>config.log
2358{
2359cat <<_ASUNAME
2360## --------- ##
2361## Platform. ##
2362## --------- ##
0b5b9f90 2363
57aa50d4
TT
2364hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2365uname -m = `(uname -m) 2>/dev/null || echo unknown`
2366uname -r = `(uname -r) 2>/dev/null || echo unknown`
2367uname -s = `(uname -s) 2>/dev/null || echo unknown`
2368uname -v = `(uname -v) 2>/dev/null || echo unknown`
0b5b9f90 2369
57aa50d4
TT
2370/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2371/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
0b5b9f90 2372
57aa50d4
TT
2373/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2374/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2375/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2376/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2377/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2378/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2379/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
0b5b9f90 2380
57aa50d4 2381_ASUNAME
b0cacab0 2382
b0cacab0
TT
2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384for as_dir in $PATH
2385do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
57aa50d4
TT
2388 $as_echo "PATH: $as_dir"
2389 done
e1052144 2390IFS=$as_save_IFS
b0cacab0 2391
57aa50d4 2392} >&5
74becf3c 2393
57aa50d4 2394cat >&5 <<_ACEOF
e1052144 2395
b0cacab0 2396
57aa50d4
TT
2397## ----------- ##
2398## Core tests. ##
2399## ----------- ##
b0cacab0 2400
57aa50d4 2401_ACEOF
b0cacab0 2402
57aa50d4
TT
2403
2404# Keep a trace of the command line.
2405# Strip out --no-create and --no-recursion so they do not pile up.
2406# Strip out --silent because we don't want to record it for future runs.
2407# Also quote any args containing shell meta-characters.
2408# Make two passes to allow for proper duplicate-argument suppression.
2409ac_configure_args=
2410ac_configure_args0=
2411ac_configure_args1=
2412ac_must_keep_next=false
2413for ac_pass in 1 2
b0cacab0 2414do
57aa50d4
TT
2415 for ac_arg
2416 do
2417 case $ac_arg in
2418 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2420 | -silent | --silent | --silen | --sile | --sil)
2421 continue ;;
2422 *\'*)
2423 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2424 esac
2425 case $ac_pass in
2426 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2427 2)
2428 as_fn_append ac_configure_args1 " '$ac_arg'"
2429 if test $ac_must_keep_next = true; then
2430 ac_must_keep_next=false # Got value, back to normal.
2431 else
2432 case $ac_arg in
2433 *=* | --config-cache | -C | -disable-* | --disable-* \
2434 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2435 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2436 | -with-* | --with-* | -without-* | --without-* | --x)
2437 case "$ac_configure_args0 " in
2438 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2439 esac
2440 ;;
2441 -* ) ac_must_keep_next=true ;;
2442 esac
2443 fi
2444 as_fn_append ac_configure_args " '$ac_arg'"
2445 ;;
2446 esac
2447 done
b0cacab0 2448done
57aa50d4
TT
2449{ ac_configure_args0=; unset ac_configure_args0;}
2450{ ac_configure_args1=; unset ac_configure_args1;}
2451
2452# When interrupted or exit'd, cleanup temporary files, and complete
2453# config.log. We remove comments because anyway the quotes in there
2454# would cause problems or look ugly.
2455# WARNING: Use '\'' to represent an apostrophe within the trap.
2456# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2457trap 'exit_status=$?
2458 # Save into config.log some information that might help in debugging.
2459 {
2460 echo
2461
91d11da1 2462 $as_echo "## ---------------- ##
57aa50d4 2463## Cache variables. ##
91d11da1 2464## ---------------- ##"
57aa50d4
TT
2465 echo
2466 # The following way of writing the cache mishandles newlines in values,
2467(
2468 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2469 eval ac_val=\$$ac_var
2470 case $ac_val in #(
2471 *${as_nl}*)
2472 case $ac_var in #(
2473 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2474$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2475 esac
2476 case $ac_var in #(
2477 _ | IFS | as_nl) ;; #(
2478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2479 *) { eval $ac_var=; unset $ac_var;} ;;
2480 esac ;;
2481 esac
2482 done
2483 (set) 2>&1 |
2484 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2485 *${as_nl}ac_space=\ *)
2486 sed -n \
2487 "s/'\''/'\''\\\\'\'''\''/g;
2488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2489 ;; #(
2490 *)
2491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2492 ;;
2493 esac |
2494 sort
2495)
2496 echo
2497
91d11da1 2498 $as_echo "## ----------------- ##
57aa50d4 2499## Output variables. ##
91d11da1 2500## ----------------- ##"
57aa50d4
TT
2501 echo
2502 for ac_var in $ac_subst_vars
2503 do
2504 eval ac_val=\$$ac_var
2505 case $ac_val in
2506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507 esac
2508 $as_echo "$ac_var='\''$ac_val'\''"
2509 done | sort
2510 echo
2511
2512 if test -n "$ac_subst_files"; then
91d11da1 2513 $as_echo "## ------------------- ##
57aa50d4 2514## File substitutions. ##
91d11da1 2515## ------------------- ##"
57aa50d4
TT
2516 echo
2517 for ac_var in $ac_subst_files
2518 do
2519 eval ac_val=\$$ac_var
2520 case $ac_val in
2521 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2522 esac
2523 $as_echo "$ac_var='\''$ac_val'\''"
2524 done | sort
2525 echo
2526 fi
2527
2528 if test -s confdefs.h; then
91d11da1 2529 $as_echo "## ----------- ##
57aa50d4 2530## confdefs.h. ##
91d11da1 2531## ----------- ##"
57aa50d4
TT
2532 echo
2533 cat confdefs.h
2534 echo
2535 fi
2536 test "$ac_signal" != 0 &&
2537 $as_echo "$as_me: caught signal $ac_signal"
2538 $as_echo "$as_me: exit $exit_status"
2539 } >&5
2540 rm -f core *.core core.conftest.* &&
2541 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2542 exit $exit_status
2543' 0
2544for ac_signal in 1 2 13 15; do
2545 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b0cacab0 2546done
57aa50d4 2547ac_signal=0
b0cacab0 2548
57aa50d4
TT
2549# confdefs.h avoids OS command line length limits that DEFS can exceed.
2550rm -f -r conftest* confdefs.h
b0cacab0 2551
57aa50d4 2552$as_echo "/* confdefs.h */" > confdefs.h
73ae2d4a 2553
57aa50d4
TT
2554# Predefined preprocessor variables.
2555
2556cat >>confdefs.h <<_ACEOF
2557#define PACKAGE_NAME "$PACKAGE_NAME"
2558_ACEOF
2559
2560cat >>confdefs.h <<_ACEOF
2561#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2562_ACEOF
2563
2564cat >>confdefs.h <<_ACEOF
2565#define PACKAGE_VERSION "$PACKAGE_VERSION"
2566_ACEOF
2567
2568cat >>confdefs.h <<_ACEOF
2569#define PACKAGE_STRING "$PACKAGE_STRING"
2570_ACEOF
2571
2572cat >>confdefs.h <<_ACEOF
2573#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2574_ACEOF
2575
2576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_URL "$PACKAGE_URL"
2578_ACEOF
2579
2580
2581# Let the site file select an alternate cache file if it wants to.
2582# Prefer an explicitly selected file to automatically selected ones.
2583ac_site_file1=NONE
2584ac_site_file2=NONE
2585if test -n "$CONFIG_SITE"; then
91d11da1
TT
2586 # We do not want a PATH search for config.site.
2587 case $CONFIG_SITE in #((
2588 -*) ac_site_file1=./$CONFIG_SITE;;
2589 */*) ac_site_file1=$CONFIG_SITE;;
2590 *) ac_site_file1=./$CONFIG_SITE;;
2591 esac
57aa50d4
TT
2592elif test "x$prefix" != xNONE; then
2593 ac_site_file1=$prefix/share/config.site
2594 ac_site_file2=$prefix/etc/config.site
73ae2d4a 2595else
57aa50d4
TT
2596 ac_site_file1=$ac_default_prefix/share/config.site
2597 ac_site_file2=$ac_default_prefix/etc/config.site
2598fi
2599for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b0cacab0 2600do
57aa50d4 2601 test "x$ac_site_file" = xNONE && continue
61ef2474 2602 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
57aa50d4
TT
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2604$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2605 sed 's/^/| /' "$ac_site_file" >&5
91d11da1
TT
2606 . "$ac_site_file" \
2607 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609as_fn_error $? "failed to load site script $ac_site_file
2610See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
2611 fi
2612done
b0cacab0 2613
57aa50d4 2614if test -r "$cache_file"; then
61ef2474
TT
2615 # Some versions of bash will fail to source /dev/null (special files
2616 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2617 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
57aa50d4
TT
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619$as_echo "$as_me: loading cache $cache_file" >&6;}
2620 case $cache_file in
2621 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622 *) . "./$cache_file";;
2623 esac
73ae2d4a 2624 fi
57aa50d4
TT
2625else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627$as_echo "$as_me: creating cache $cache_file" >&6;}
2628 >$cache_file
73ae2d4a 2629fi
57aa50d4 2630
93613951 2631gt_needs="$gt_needs "
61ef2474
TT
2632as_fn_append ac_header_list " stdlib.h"
2633as_fn_append ac_header_list " unistd.h"
2634as_fn_append ac_header_list " sys/param.h"
93613951 2635as_fn_append ac_func_list " symlink"
57aa50d4
TT
2636# Check that the precious variables saved in the cache have kept the same
2637# value.
2638ac_cache_corrupted=false
2639for ac_var in $ac_precious_vars; do
2640 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2641 eval ac_new_set=\$ac_env_${ac_var}_set
2642 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2643 eval ac_new_val=\$ac_env_${ac_var}_value
2644 case $ac_old_set,$ac_new_set in
2645 set,)
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2647$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2648 ac_cache_corrupted=: ;;
2649 ,set)
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2651$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2652 ac_cache_corrupted=: ;;
2653 ,);;
2654 *)
2655 if test "x$ac_old_val" != "x$ac_new_val"; then
2656 # differences in whitespace do not lead to failure.
2657 ac_old_val_w=`echo x $ac_old_val`
2658 ac_new_val_w=`echo x $ac_new_val`
2659 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2661$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2662 ac_cache_corrupted=:
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2665$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2666 eval $ac_var=\$ac_old_val
2667 fi
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2669$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2671$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2672 fi;;
2673 esac
2674 # Pass precious variables to config.status.
2675 if test "$ac_new_set" = set; then
2676 case $ac_new_val in
2677 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2678 *) ac_arg=$ac_var=$ac_new_val ;;
2679 esac
2680 case " $ac_configure_args " in
2681 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2682 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2683 esac
2684 fi
2685done
2686if $ac_cache_corrupted; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2690$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
91d11da1 2691 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
73ae2d4a 2692fi
57aa50d4
TT
2693## -------------------- ##
2694## Main body of script. ##
2695## -------------------- ##
2696
2697ac_ext=c
2698ac_cpp='$CPP $CPPFLAGS'
2699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2701ac_compiler_gnu=$ac_cv_c_compiler_gnu
2702
2703
2704
2705ac_aux_dir=
2706for ac_dir in config "$srcdir"/config; do
91d11da1
TT
2707 if test -f "$ac_dir/install-sh"; then
2708 ac_aux_dir=$ac_dir
2709 ac_install_sh="$ac_aux_dir/install-sh -c"
2710 break
2711 elif test -f "$ac_dir/install.sh"; then
2712 ac_aux_dir=$ac_dir
2713 ac_install_sh="$ac_aux_dir/install.sh -c"
2714 break
2715 elif test -f "$ac_dir/shtool"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/shtool install -c"
2718 break
2719 fi
57aa50d4
TT
2720done
2721if test -z "$ac_aux_dir"; then
91d11da1 2722 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
73ae2d4a 2723fi
57aa50d4
TT
2724
2725# These three variables are undocumented and unsupported,
2726# and are intended to be withdrawn in a future Autoconf release.
2727# They can cause serious problems if a builder's source tree is in a directory
2728# whose full name contains unusual characters.
2729ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2730ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2731ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2732
2733
d1154eb4
TT
2734ac_config_headers="$ac_config_headers lib/config.h"
2735
2736
57aa50d4
TT
2737MCONFIG=./MCONFIG
2738
2739BINARY_TYPE=bin
2740E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2741 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2742DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2743 | tr \" " "`
2744E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2745MONTH=`echo $DATE | awk -F- '{print $2}'`
2746YEAR=`echo $DATE | awk -F- '{print $3}'`
2747
2748if expr $YEAR ">" 1900 > /dev/null ; then
2749 E2FSPROGS_YEAR=$YEAR
2750elif expr $YEAR ">" 90 >/dev/null ; then
2751 E2FSPROGS_YEAR=19$YEAR
73ae2d4a 2752else
57aa50d4
TT
2753 E2FSPROGS_YEAR=20$YEAR
2754fi
2755
2756case $MONTH in
2757Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2758Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2759Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2760Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2761May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2762Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2763Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2764Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2765Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2766Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2767Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2768Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2769*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2770$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2771esac
2772
2773base_ver=`echo $E2FSPROGS_VERSION | \
2774 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2775
2776date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2777
2778case $E2FSPROGS_VERSION in
2779*-WIP|pre-*)
2780 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2781 ;;
2782*)
2783 E2FSPROGS_PKGVER="$base_ver"
2784 ;;
2785esac
2786
2787unset DATE MONTH YEAR base_ver pre_vers date_spec
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2789$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2791$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2792
2793
2794
2795
2796
6c59a665
TT
2797WITH_DIET_LIBC=
2798
2799# Check whether --with-diet-libc was given.
2800if test "${with_diet_libc+set}" = set; then :
2801 withval=$with_diet_libc; CC="diet cc -nostdinc"
2802WITH_DIET_LIBC=yes
2803if test -z "$LIBS"
2804then
2805 LIBS="-lcompat"
2806else
2807 LIBS="$LIBS -lcompat"
2808fi
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2810$as_echo "CC=$CC" >&6; }
2811fi
57aa50d4
TT
2812# Make sure we can run config.sub.
2813$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
91d11da1 2814 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
57aa50d4
TT
2815
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2817$as_echo_n "checking build system type... " >&6; }
91d11da1 2818if ${ac_cv_build+:} false; then :
57aa50d4
TT
2819 $as_echo_n "(cached) " >&6
2820else
2821 ac_build_alias=$build_alias
2822test "x$ac_build_alias" = x &&
2823 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2824test "x$ac_build_alias" = x &&
91d11da1 2825 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
57aa50d4 2826ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
91d11da1 2827 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
57aa50d4 2828
73ae2d4a 2829fi
57aa50d4
TT
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2831$as_echo "$ac_cv_build" >&6; }
2832case $ac_cv_build in
2833*-*-*) ;;
91d11da1 2834*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
57aa50d4
TT
2835esac
2836build=$ac_cv_build
2837ac_save_IFS=$IFS; IFS='-'
2838set x $ac_cv_build
2839shift
2840build_cpu=$1
2841build_vendor=$2
2842shift; shift
2843# Remember, the first character of IFS is used to create $*,
2844# except with old shells:
2845build_os=$*
2846IFS=$ac_save_IFS
2847case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
73ae2d4a 2848
e1052144 2849
57aa50d4
TT
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2851$as_echo_n "checking host system type... " >&6; }
91d11da1 2852if ${ac_cv_host+:} false; then :
57aa50d4
TT
2853 $as_echo_n "(cached) " >&6
2854else
2855 if test "x$host_alias" = x; then
2856 ac_cv_host=$ac_cv_build
2857else
2858 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
91d11da1 2859 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b0cacab0 2860fi
57aa50d4
TT
2861
2862fi
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2864$as_echo "$ac_cv_host" >&6; }
2865case $ac_cv_host in
2866*-*-*) ;;
91d11da1 2867*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
57aa50d4
TT
2868esac
2869host=$ac_cv_host
2870ac_save_IFS=$IFS; IFS='-'
2871set x $ac_cv_host
2872shift
2873host_cpu=$1
2874host_vendor=$2
2875shift; shift
2876# Remember, the first character of IFS is used to create $*,
2877# except with old shells:
2878host_os=$*
2879IFS=$ac_save_IFS
2880case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2881
2882
2883DLOPEN_LIB=''
2884ac_ext=c
2885ac_cpp='$CPP $CPPFLAGS'
2886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2891set dummy ${ac_tool_prefix}gcc; ac_word=$2
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2893$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 2894if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 2895 $as_echo_n "(cached) " >&6
73ae2d4a
TT
2896else
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2899else
b0cacab0
TT
2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901for as_dir in $PATH
2902do
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
57aa50d4 2905 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 2906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2907 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
2909 break 2
2910 fi
2911done
57aa50d4 2912 done
e1052144 2913IFS=$as_save_IFS
b0cacab0 2914
73ae2d4a
TT
2915fi
2916fi
b0cacab0 2917CC=$ac_cv_prog_CC
73ae2d4a 2918if test -n "$CC"; then
57aa50d4 2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
39fd3d4f 2920$as_echo "$CC" >&6; }
73ae2d4a 2921else
57aa50d4 2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 2923$as_echo "no" >&6; }
73ae2d4a 2924fi
b0cacab0 2925
e1052144 2926
b0cacab0 2927fi
57aa50d4 2928if test -z "$ac_cv_prog_CC"; then
b0cacab0 2929 ac_ct_CC=$CC
57aa50d4
TT
2930 # Extract the first word of "gcc", so it can be a program name with args.
2931set dummy gcc; ac_word=$2
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2933$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 2934if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 2935 $as_echo_n "(cached) " >&6
b0cacab0
TT
2936else
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
57aa50d4 2945 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2947 ac_cv_prog_ac_ct_CC="gcc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0 2949 break 2
93636bde 2950 fi
b0cacab0 2951done
57aa50d4 2952 done
e1052144 2953IFS=$as_save_IFS
b0cacab0
TT
2954
2955fi
2956fi
2957ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958if test -n "$ac_ct_CC"; then
57aa50d4 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
39fd3d4f 2960$as_echo "$ac_ct_CC" >&6; }
b0cacab0 2961else
57aa50d4 2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 2963$as_echo "no" >&6; }
07a0db15 2964fi
73ae2d4a 2965
e1052144
TT
2966 if test "x$ac_ct_CC" = x; then
2967 CC=""
2968 else
2969 case $cross_compiling:$ac_tool_warned in
2970yes:)
57aa50d4 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39fd3d4f 2972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
e1052144
TT
2973ac_tool_warned=yes ;;
2974esac
2975 CC=$ac_ct_CC
2976 fi
57aa50d4
TT
2977else
2978 CC="$ac_cv_prog_CC"
b0cacab0
TT
2979fi
2980
57aa50d4
TT
2981if test -z "$CC"; then
2982 if test -n "$ac_tool_prefix"; then
2983 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2984set dummy ${ac_tool_prefix}cc; ac_word=$2
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 2987if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
2988 $as_echo_n "(cached) " >&6
2989else
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3000 ac_cv_prog_CC="${ac_tool_prefix}cc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004done
3005 done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010CC=$ac_cv_prog_CC
3011if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013$as_echo "$CC" >&6; }
3014else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019
3020 fi
3021fi
3022if test -z "$CC"; then
3023 # Extract the first word of "cc", so it can be a program name with args.
3024set dummy cc; ac_word=$2
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 3027if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3028 $as_echo_n "(cached) " >&6
3029else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032else
3033 ac_prog_rejected=no
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3042 ac_prog_rejected=yes
3043 continue
3044 fi
3045 ac_cv_prog_CC="cc"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049done
3050 done
3051IFS=$as_save_IFS
3052
3053if test $ac_prog_rejected = yes; then
3054 # We found a bogon in the path, so make sure we never use it.
3055 set dummy $ac_cv_prog_CC
3056 shift
3057 if test $# != 0; then
3058 # We chose a different compiler from the bogus one.
3059 # However, it has the same basename, so the bogon will be chosen
3060 # first if we set CC to just the basename; use the full file name.
3061 shift
3062 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3063 fi
3064fi
3065fi
3066fi
3067CC=$ac_cv_prog_CC
3068if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070$as_echo "$CC" >&6; }
3071else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3074fi
3075
3076
3077fi
3078if test -z "$CC"; then
3079 if test -n "$ac_tool_prefix"; then
3080 for ac_prog in cl.exe
3081 do
3082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 3086if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3087 $as_echo_n "(cached) " >&6
3088else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3099 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103done
3104 done
3105IFS=$as_save_IFS
3106
3107fi
3108fi
3109CC=$ac_cv_prog_CC
3110if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112$as_echo "$CC" >&6; }
3113else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115$as_echo "no" >&6; }
3116fi
3117
3118
3119 test -n "$CC" && break
3120 done
3121fi
3122if test -z "$CC"; then
3123 ac_ct_CC=$CC
3124 for ac_prog in cl.exe
3125do
3126 # Extract the first word of "$ac_prog", so it can be a program name with args.
3127set dummy $ac_prog; ac_word=$2
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 3130if ${ac_cv_prog_ac_ct_CC+:} false; then :
57aa50d4
TT
3131 $as_echo_n "(cached) " >&6
3132else
3133 if test -n "$ac_ct_CC"; then
3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135else
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3143 ac_cv_prog_ac_ct_CC="$ac_prog"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3146 fi
3147done
3148 done
3149IFS=$as_save_IFS
3150
3151fi
3152fi
3153ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154if test -n "$ac_ct_CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156$as_echo "$ac_ct_CC" >&6; }
3157else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159$as_echo "no" >&6; }
3160fi
3161
3162
3163 test -n "$ac_ct_CC" && break
3164done
3165
3166 if test "x$ac_ct_CC" = x; then
3167 CC=""
3168 else
3169 case $cross_compiling:$ac_tool_warned in
3170yes:)
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173ac_tool_warned=yes ;;
3174esac
3175 CC=$ac_ct_CC
3176 fi
3177fi
3178
3179fi
3180
3181
3182test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91d11da1
TT
3184as_fn_error $? "no acceptable C compiler found in \$PATH
3185See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
3186
3187# Provide some information about the compiler.
57aa50d4 3188$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
39fd3d4f
SJR
3189set X $ac_compile
3190ac_compiler=$2
57aa50d4
TT
3191for ac_option in --version -v -V -qversion; do
3192 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
3193case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
57aa50d4
TT
3197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198$as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 3200 ac_status=$?
57aa50d4
TT
3201 if test -s conftest.err; then
3202 sed '10a\
3203... rest of stderr output deleted ...
3204 10q' conftest.err >conftest.er1
3205 cat conftest.er1 >&5
57aa50d4 3206 fi
61ef2474 3207 rm -f conftest.er1 conftest.err
57aa50d4
TT
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3210done
b0cacab0 3211
57aa50d4 3212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3213/* end confdefs.h. */
61ef2474 3214
b0cacab0
TT
3215int
3216main ()
3217{
3218
3219 ;
3220 return 0;
3221}
3222_ACEOF
3223ac_clean_files_save=$ac_clean_files
61ef2474 3224ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b0cacab0
TT
3225# Try to create an executable without -o first, disregard a.out.
3226# It will help us diagnose broken compilers, and finding out an intuition
3227# of exeext.
61ef2474
TT
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3229$as_echo_n "checking whether the C compiler works... " >&6; }
39fd3d4f
SJR
3230ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3231
3232# The possible output files:
3233ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3234
e1052144
TT
3235ac_rmfiles=
3236for ac_file in $ac_files
3237do
3238 case $ac_file in
39fd3d4f 3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
e1052144
TT
3240 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3241 esac
3242done
3243rm -f $ac_rmfiles
3244
57aa50d4 3245if { { ac_try="$ac_link_default"
e1052144
TT
3246case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249esac
57aa50d4
TT
3250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251$as_echo "$ac_try_echo"; } >&5
e1052144 3252 (eval "$ac_link_default") 2>&5
b0cacab0 3253 ac_status=$?
57aa50d4
TT
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; then :
e1052144
TT
3256 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3257# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3258# in a Makefile. We should not override ac_cv_exeext if it was cached,
3259# so that the user can short-circuit this test for compilers unknown to
3260# Autoconf.
29a5deed 3261for ac_file in $ac_files ''
b0cacab0
TT
3262do
3263 test -f "$ac_file" || continue
3264 case $ac_file in
39fd3d4f 3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b0cacab0
TT
3266 ;;
3267 [ab].out )
3268 # We found the default executable, but exeext='' is most
3269 # certainly right.
3270 break;;
3271 *.* )
57aa50d4 3272 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
e1052144
TT
3273 then :; else
3274 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275 fi
3276 # We set ac_cv_exeext here because the later test for it is not
3277 # safe: cross compilers may not add the suffix if given an `-o'
3278 # argument, so we may need to know it at that point already.
3279 # Even if this section looks crufty: it has the advantage of
3280 # actually working.
b0cacab0
TT
3281 break;;
3282 * )
3283 break;;
3284 esac
3285done
e1052144
TT
3286test "$ac_cv_exeext" = no && ac_cv_exeext=
3287
b0cacab0 3288else
29a5deed
TT
3289 ac_file=''
3290fi
57aa50d4 3291if test -z "$ac_file"; then :
61ef2474
TT
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294$as_echo "$as_me: failed program was:" >&5
b0cacab0
TT
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
57aa50d4 3297{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91d11da1
TT
3299as_fn_error 77 "C compiler cannot create executables
3300See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3301else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303$as_echo "yes" >&6; }
b0cacab0 3304fi
61ef2474
TT
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306$as_echo_n "checking for C compiler default output file name... " >&6; }
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3308$as_echo "$ac_file" >&6; }
b0cacab0 3309ac_exeext=$ac_cv_exeext
b0cacab0 3310
61ef2474 3311rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b0cacab0 3312ac_clean_files=$ac_clean_files_save
57aa50d4 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
39fd3d4f 3314$as_echo_n "checking for suffix of executables... " >&6; }
57aa50d4 3315if { { ac_try="$ac_link"
e1052144
TT
3316case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
57aa50d4
TT
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
e1052144 3322 (eval "$ac_link") 2>&5
b0cacab0 3323 ac_status=$?
57aa50d4
TT
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
b0cacab0
TT
3326 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3327# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3328# work properly (i.e., refer to `conftest.exe'), while it won't with
3329# `rm'.
3330for ac_file in conftest.exe conftest conftest.*; do
3331 test -f "$ac_file" || continue
3332 case $ac_file in
39fd3d4f 3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b0cacab0 3334 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b0cacab0
TT
3335 break;;
3336 * ) break;;
3337 esac
3338done
73ae2d4a 3339else
57aa50d4 3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91d11da1
TT
3342as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3343See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3344fi
61ef2474 3345rm -f conftest conftest$ac_cv_exeext
57aa50d4 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
39fd3d4f 3347$as_echo "$ac_cv_exeext" >&6; }
73ae2d4a 3348
b0cacab0
TT
3349rm -f conftest.$ac_ext
3350EXEEXT=$ac_cv_exeext
3351ac_exeext=$EXEEXT
61ef2474
TT
3352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353/* end confdefs.h. */
3354#include <stdio.h>
3355int
3356main ()
3357{
3358FILE *f = fopen ("conftest.out", "w");
3359 return ferror (f) || fclose (f) != 0;
3360
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365ac_clean_files="$ac_clean_files conftest.out"
3366# Check that the compiler produces executables we can run. If not, either
3367# the compiler is broken, or we cross compile.
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3369$as_echo_n "checking whether we are cross compiling... " >&6; }
3370if test "$cross_compiling" != yes; then
3371 { { ac_try="$ac_link"
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377$as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_link") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }
3382 if { ac_try='./conftest$ac_cv_exeext'
3383 { { case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388$as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_try") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; }; then
3393 cross_compiling=no
3394 else
3395 if test "$cross_compiling" = maybe; then
3396 cross_compiling=yes
3397 else
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91d11da1 3400as_fn_error $? "cannot run C compiled programs.
61ef2474 3401If you meant to cross compile, use \`--host'.
91d11da1 3402See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3403 fi
3404 fi
3405fi
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3407$as_echo "$cross_compiling" >&6; }
3408
3409rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3410ac_clean_files=$ac_clean_files_save
57aa50d4 3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
39fd3d4f 3412$as_echo_n "checking for suffix of object files... " >&6; }
91d11da1 3413if ${ac_cv_objext+:} false; then :
39fd3d4f 3414 $as_echo_n "(cached) " >&6
73ae2d4a 3415else
57aa50d4 3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3417/* end confdefs.h. */
07a0db15 3418
b0cacab0
TT
3419int
3420main ()
3421{
07a0db15 3422
b0cacab0
TT
3423 ;
3424 return 0;
3425}
3426_ACEOF
3427rm -f conftest.o conftest.obj
57aa50d4 3428if { { ac_try="$ac_compile"
e1052144
TT
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
57aa50d4
TT
3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434$as_echo "$ac_try_echo"; } >&5
e1052144 3435 (eval "$ac_compile") 2>&5
b0cacab0 3436 ac_status=$?
57aa50d4
TT
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; then :
e1052144
TT
3439 for ac_file in conftest.o conftest.obj conftest.*; do
3440 test -f "$ac_file" || continue;
b0cacab0 3441 case $ac_file in
39fd3d4f 3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b0cacab0
TT
3443 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3444 break;;
3445 esac
3446done
93636bde 3447else
39fd3d4f 3448 $as_echo "$as_me: failed program was:" >&5
b0cacab0 3449sed 's/^/| /' conftest.$ac_ext >&5
07a0db15 3450
57aa50d4 3451{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91d11da1
TT
3453as_fn_error $? "cannot compute suffix of object files: cannot compile
3454See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3455fi
b0cacab0 3456rm -f conftest.$ac_cv_objext conftest.$ac_ext
73ae2d4a 3457fi
57aa50d4 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
39fd3d4f 3459$as_echo "$ac_cv_objext" >&6; }
b0cacab0
TT
3460OBJEXT=$ac_cv_objext
3461ac_objext=$OBJEXT
57aa50d4 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
39fd3d4f 3463$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
91d11da1 3464if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 3465 $as_echo_n "(cached) " >&6
b0cacab0 3466else
57aa50d4 3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3468/* end confdefs.h. */
3469
3470int
3471main ()
3472{
3473#ifndef __GNUC__
3474 choke me
3475#endif
3476
3477 ;
3478 return 0;
3479}
3480_ACEOF
57aa50d4 3481if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0
TT
3482 ac_compiler_gnu=yes
3483else
57aa50d4 3484 ac_compiler_gnu=no
b0cacab0 3485fi
e1052144 3486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0
TT
3487ac_cv_c_compiler_gnu=$ac_compiler_gnu
3488
3489fi
57aa50d4 3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
39fd3d4f
SJR
3491$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3492if test $ac_compiler_gnu = yes; then
3493 GCC=yes
3494else
3495 GCC=
3496fi
b0cacab0
TT
3497ac_test_CFLAGS=${CFLAGS+set}
3498ac_save_CFLAGS=$CFLAGS
57aa50d4 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
39fd3d4f 3500$as_echo_n "checking whether $CC accepts -g... " >&6; }
91d11da1 3501if ${ac_cv_prog_cc_g+:} false; then :
39fd3d4f 3502 $as_echo_n "(cached) " >&6
b0cacab0 3503else
e1052144
TT
3504 ac_save_c_werror_flag=$ac_c_werror_flag
3505 ac_c_werror_flag=yes
3506 ac_cv_prog_cc_g=no
3507 CFLAGS="-g"
57aa50d4 3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3509/* end confdefs.h. */
3510
3511int
3512main ()
3513{
3514
3515 ;
3516 return 0;
3517}
3518_ACEOF
57aa50d4 3519if ac_fn_c_try_compile "$LINENO"; then :
e1052144
TT
3520 ac_cv_prog_cc_g=yes
3521else
57aa50d4
TT
3522 CFLAGS=""
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3524/* end confdefs.h. */
3525
3526int
3527main ()
3528{
3529
3530 ;
3531 return 0;
3532}
3533_ACEOF
57aa50d4 3534if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3535
57aa50d4
TT
3536else
3537 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 3538 CFLAGS="-g"
57aa50d4 3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3540/* end confdefs.h. */
3541
3542int
3543main ()
3544{
3545
3546 ;
3547 return 0;
3548}
3549_ACEOF
57aa50d4 3550if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0 3551 ac_cv_prog_cc_g=yes
e1052144 3552fi
e1052144
TT
3553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554fi
e1052144 3555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0 3556fi
e1052144
TT
3557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_c_werror_flag=$ac_save_c_werror_flag
b0cacab0 3559fi
57aa50d4 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
39fd3d4f 3561$as_echo "$ac_cv_prog_cc_g" >&6; }
b0cacab0
TT
3562if test "$ac_test_CFLAGS" = set; then
3563 CFLAGS=$ac_save_CFLAGS
3564elif test $ac_cv_prog_cc_g = yes; then
3565 if test "$GCC" = yes; then
3566 CFLAGS="-g -O2"
3567 else
3568 CFLAGS="-g"
3569 fi
73ae2d4a
TT
3570else
3571 if test "$GCC" = yes; then
3572 CFLAGS="-O2"
3573 else
3574 CFLAGS=
3575 fi
3576fi
57aa50d4 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
39fd3d4f 3578$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
91d11da1 3579if ${ac_cv_prog_cc_c89+:} false; then :
39fd3d4f 3580 $as_echo_n "(cached) " >&6
b0cacab0 3581else
e1052144 3582 ac_cv_prog_cc_c89=no
b0cacab0 3583ac_save_CC=$CC
57aa50d4 3584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3585/* end confdefs.h. */
3586#include <stdarg.h>
3587#include <stdio.h>
91d11da1 3588struct stat;
b0cacab0
TT
3589/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3590struct buf { int x; };
3591FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592static char *e (p, i)
3593 char **p;
3594 int i;
3595{
3596 return p[i];
3597}
3598static char *f (char * (*g) (char **, int), char **p, ...)
3599{
3600 char *s;
3601 va_list v;
3602 va_start (v,p);
3603 s = g (p, va_arg (v,int));
3604 va_end (v);
3605 return s;
3606}
3607
3608/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3609 function prototypes and stuff, but not '\xHH' hex character constants.
3610 These don't provoke an error unfortunately, instead are silently treated
e1052144 3611 as 'x'. The following induces an error, until -std is added to get
b0cacab0
TT
3612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3613 array size at least. It's necessary to write '\x00'==0 to get something
e1052144 3614 that's true only with -std. */
b0cacab0
TT
3615int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616
e1052144
TT
3617/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618 inside strings and character constants. */
3619#define FOO(x) 'x'
3620int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3621
b0cacab0
TT
3622int test (int i, double x);
3623struct s1 {int (*f) (int a);};
3624struct s2 {int (*f) (double a);};
3625int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626int argc;
3627char **argv;
3628int
3629main ()
3630{
3631return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3632 ;
3633 return 0;
3634}
3635_ACEOF
e1052144
TT
3636for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b0cacab0
TT
3638do
3639 CC="$ac_save_CC $ac_arg"
57aa50d4 3640 if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3641 ac_cv_prog_cc_c89=$ac_arg
b0cacab0 3642fi
e1052144
TT
3643rm -f core conftest.err conftest.$ac_objext
3644 test "x$ac_cv_prog_cc_c89" != "xno" && break
b0cacab0 3645done
e1052144 3646rm -f conftest.$ac_ext
b0cacab0
TT
3647CC=$ac_save_CC
3648
3649fi
e1052144
TT
3650# AC_CACHE_VAL
3651case "x$ac_cv_prog_cc_c89" in
3652 x)
57aa50d4 3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
39fd3d4f 3654$as_echo "none needed" >&6; } ;;
e1052144 3655 xno)
57aa50d4 3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
39fd3d4f 3657$as_echo "unsupported" >&6; } ;;
b0cacab0 3658 *)
e1052144 3659 CC="$CC $ac_cv_prog_cc_c89"
57aa50d4 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
39fd3d4f 3661$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b0cacab0 3662esac
57aa50d4 3663if test "x$ac_cv_prog_cc_c89" != xno; then :
b0cacab0 3664
57aa50d4 3665fi
b0cacab0 3666
b0cacab0
TT
3667ac_ext=c
3668ac_cpp='$CPP $CPPFLAGS'
3669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672
57aa50d4
TT
3673
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3675$as_echo_n "checking for dlopen in -ldl... " >&6; }
91d11da1 3676if ${ac_cv_lib_dl_dlopen+:} false; then :
39fd3d4f 3677 $as_echo_n "(cached) " >&6
b0cacab0 3678else
57aa50d4
TT
3679 ac_check_lib_save_LIBS=$LIBS
3680LIBS="-ldl $LIBS"
3681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3682/* end confdefs.h. */
57aa50d4
TT
3683
3684/* Override any GCC internal prototype to avoid an error.
3685 Use char because int might match the return type of a GCC
3686 builtin and then its argument prototype would still apply. */
3687#ifdef __cplusplus
3688extern "C"
b0cacab0 3689#endif
57aa50d4
TT
3690char dlopen ();
3691int
3692main ()
3693{
3694return dlopen ();
3695 ;
3696 return 0;
3697}
b0cacab0 3698_ACEOF
57aa50d4
TT
3699if ac_fn_c_try_link "$LINENO"; then :
3700 ac_cv_lib_dl_dlopen=yes
b0cacab0 3701else
57aa50d4 3702 ac_cv_lib_dl_dlopen=no
b0cacab0 3703fi
57aa50d4
TT
3704rm -f core conftest.err conftest.$ac_objext \
3705 conftest$ac_exeext conftest.$ac_ext
3706LIBS=$ac_check_lib_save_LIBS
b0cacab0 3707fi
57aa50d4
TT
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3709$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
91d11da1 3710if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
57aa50d4 3711 DLOPEN_LIB=-ldl
d1154eb4 3712
57aa50d4 3713$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
e1052144 3714
b0cacab0
TT
3715fi
3716
b0cacab0 3717
e1052144 3718
57aa50d4
TT
3719# Check whether --with-cc was given.
3720if test "${with_cc+set}" = set; then :
91d11da1 3721 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
57aa50d4 3722fi
b0cacab0 3723
b0cacab0 3724
57aa50d4
TT
3725# Check whether --with-ccopts was given.
3726if test "${with_ccopts+set}" = set; then :
91d11da1 3727 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
b0cacab0 3728fi
e1052144 3729
b0cacab0 3730
57aa50d4
TT
3731# Check whether --with-ldopts was given.
3732if test "${with_ldopts+set}" = set; then :
91d11da1 3733 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
b0cacab0
TT
3734fi
3735
3736ac_ext=c
3737ac_cpp='$CPP $CPPFLAGS'
3738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_c_compiler_gnu
57aa50d4
TT
3741if test -n "$ac_tool_prefix"; then
3742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3743set dummy ${ac_tool_prefix}gcc; ac_word=$2
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 3746if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 3747 $as_echo_n "(cached) " >&6
e1052144 3748else
57aa50d4
TT
3749 if test -n "$CC"; then
3750 ac_cv_prog_CC="$CC" # Let the user override the test.
3751else
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
e1052144
TT
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
39fd3d4f 3757 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 3758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3759 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3762 fi
e1052144 3763done
57aa50d4 3764 done
e1052144 3765IFS=$as_save_IFS
e1052144 3766
e1052144 3767fi
57aa50d4
TT
3768fi
3769CC=$ac_cv_prog_CC
3770if test -n "$CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3772$as_echo "$CC" >&6; }
3773else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775$as_echo "no" >&6; }
3776fi
e1052144
TT
3777
3778
57aa50d4
TT
3779fi
3780if test -z "$ac_cv_prog_CC"; then
3781 ac_ct_CC=$CC
3782 # Extract the first word of "gcc", so it can be a program name with args.
3783set dummy gcc; ac_word=$2
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 3786if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 3787 $as_echo_n "(cached) " >&6
e1052144 3788else
57aa50d4
TT
3789 if test -n "$ac_ct_CC"; then
3790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3791else
3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
e1052144
TT
3794do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
39fd3d4f 3797 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 3798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3799 ac_cv_prog_ac_ct_CC="gcc"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
e1052144 3803done
57aa50d4 3804 done
e1052144 3805IFS=$as_save_IFS
b0cacab0 3806
e1052144 3807fi
57aa50d4
TT
3808fi
3809ac_ct_CC=$ac_cv_prog_ac_ct_CC
3810if test -n "$ac_ct_CC"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3812$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3813else
57aa50d4
TT
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815$as_echo "no" >&6; }
3816fi
b0cacab0 3817
57aa50d4
TT
3818 if test "x$ac_ct_CC" = x; then
3819 CC=""
3820 else
3821 case $cross_compiling:$ac_tool_warned in
3822yes:)
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825ac_tool_warned=yes ;;
e1052144 3826esac
57aa50d4
TT
3827 CC=$ac_ct_CC
3828 fi
b0cacab0 3829else
57aa50d4 3830 CC="$ac_cv_prog_CC"
b0cacab0 3831fi
e1052144 3832
57aa50d4
TT
3833if test -z "$CC"; then
3834 if test -n "$ac_tool_prefix"; then
3835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3836set dummy ${ac_tool_prefix}cc; ac_word=$2
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 3839if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3840 $as_echo_n "(cached) " >&6
a64c9c13 3841else
57aa50d4
TT
3842 if test -n "$CC"; then
3843 ac_cv_prog_CC="$CC" # Let the user override the test.
3844else
3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH
3847do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 3851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3852 ac_cv_prog_CC="${ac_tool_prefix}cc"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 break 2
3855 fi
3856done
3857 done
3858IFS=$as_save_IFS
b0cacab0 3859
a64c9c13 3860fi
57aa50d4
TT
3861fi
3862CC=$ac_cv_prog_CC
3863if test -n "$CC"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3865$as_echo "$CC" >&6; }
b0cacab0 3866else
57aa50d4
TT
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868$as_echo "no" >&6; }
a64c9c13 3869fi
b0cacab0 3870
b0cacab0 3871
57aa50d4
TT
3872 fi
3873fi
3874if test -z "$CC"; then
3875 # Extract the first word of "cc", so it can be a program name with args.
3876set dummy cc; ac_word=$2
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 3879if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3880 $as_echo_n "(cached) " >&6
a64c9c13 3881else
57aa50d4
TT
3882 if test -n "$CC"; then
3883 ac_cv_prog_CC="$CC" # Let the user override the test.
a64c9c13 3884else
57aa50d4
TT
3885 ac_prog_rejected=no
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 3892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3894 ac_prog_rejected=yes
3895 continue
3896 fi
3897 ac_cv_prog_CC="cc"
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901done
3902 done
3903IFS=$as_save_IFS
b0cacab0 3904
57aa50d4
TT
3905if test $ac_prog_rejected = yes; then
3906 # We found a bogon in the path, so make sure we never use it.
3907 set dummy $ac_cv_prog_CC
3908 shift
3909 if test $# != 0; then
3910 # We chose a different compiler from the bogus one.
3911 # However, it has the same basename, so the bogon will be chosen
3912 # first if we set CC to just the basename; use the full file name.
3913 shift
3914 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3915 fi
b0cacab0 3916fi
b0cacab0
TT
3917fi
3918fi
57aa50d4
TT
3919CC=$ac_cv_prog_CC
3920if test -n "$CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922$as_echo "$CC" >&6; }
3923else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925$as_echo "no" >&6; }
b0cacab0 3926fi
b0cacab0 3927
b0cacab0
TT
3928
3929fi
57aa50d4
TT
3930if test -z "$CC"; then
3931 if test -n "$ac_tool_prefix"; then
3932 for ac_prog in cl.exe
3933 do
3934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 3938if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3939 $as_echo_n "(cached) " >&6
3940else
3941 if test -n "$CC"; then
3942 ac_cv_prog_CC="$CC" # Let the user override the test.
3943else
3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH
3946do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3951 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955done
3956 done
3957IFS=$as_save_IFS
b0cacab0 3958
57aa50d4
TT
3959fi
3960fi
3961CC=$ac_cv_prog_CC
3962if test -n "$CC"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3964$as_echo "$CC" >&6; }
3965else
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967$as_echo "no" >&6; }
3968fi
b0cacab0
TT
3969
3970
57aa50d4
TT
3971 test -n "$CC" && break
3972 done
3973fi
3974if test -z "$CC"; then
3975 ac_ct_CC=$CC
3976 for ac_prog in cl.exe
b0cacab0 3977do
57aa50d4
TT
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979set dummy $ac_prog; ac_word=$2
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 3982if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 3983 $as_echo_n "(cached) " >&6
b0cacab0 3984else
57aa50d4
TT
3985 if test -n "$ac_ct_CC"; then
3986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b0cacab0 3987else
57aa50d4
TT
3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH
3990do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3995 ac_cv_prog_ac_ct_CC="$ac_prog"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999done
4000 done
4001IFS=$as_save_IFS
b0cacab0 4002
b0cacab0 4003fi
b0cacab0 4004fi
57aa50d4
TT
4005ac_ct_CC=$ac_cv_prog_ac_ct_CC
4006if test -n "$ac_ct_CC"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4008$as_echo "$ac_ct_CC" >&6; }
4009else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011$as_echo "no" >&6; }
b0cacab0
TT
4012fi
4013
b0cacab0 4014
57aa50d4
TT
4015 test -n "$ac_ct_CC" && break
4016done
b0cacab0 4017
57aa50d4
TT
4018 if test "x$ac_ct_CC" = x; then
4019 CC=""
4020 else
4021 case $cross_compiling:$ac_tool_warned in
4022yes:)
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4025ac_tool_warned=yes ;;
e1052144 4026esac
57aa50d4
TT
4027 CC=$ac_ct_CC
4028 fi
4029fi
b0cacab0 4030
b0cacab0 4031fi
e1052144 4032
b0cacab0 4033
57aa50d4
TT
4034test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91d11da1
TT
4036as_fn_error $? "no acceptable C compiler found in \$PATH
4037See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
4038
4039# Provide some information about the compiler.
4040$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4041set X $ac_compile
4042ac_compiler=$2
4043for ac_option in --version -v -V -qversion; do
4044 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
4045case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048esac
57aa50d4
TT
4049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050$as_echo "$ac_try_echo"; } >&5
4051 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 4052 ac_status=$?
57aa50d4
TT
4053 if test -s conftest.err; then
4054 sed '10a\
4055... rest of stderr output deleted ...
4056 10q' conftest.err >conftest.er1
4057 cat conftest.er1 >&5
57aa50d4 4058 fi
61ef2474 4059 rm -f conftest.er1 conftest.err
57aa50d4
TT
4060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }
4062done
e1052144 4063
57aa50d4
TT
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4065$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
91d11da1 4066if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 4067 $as_echo_n "(cached) " >&6
b0cacab0 4068else
57aa50d4
TT
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070/* end confdefs.h. */
b0cacab0 4071
57aa50d4
TT
4072int
4073main ()
4074{
4075#ifndef __GNUC__
4076 choke me
4077#endif
a64c9c13 4078
57aa50d4
TT
4079 ;
4080 return 0;
4081}
4082_ACEOF
4083if ac_fn_c_try_compile "$LINENO"; then :
4084 ac_compiler_gnu=yes
b1c92f91 4085else
57aa50d4 4086 ac_compiler_gnu=no
b1c92f91 4087fi
57aa50d4
TT
4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089ac_cv_c_compiler_gnu=$ac_compiler_gnu
b0cacab0 4090
e1052144 4091fi
57aa50d4
TT
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4093$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4094if test $ac_compiler_gnu = yes; then
4095 GCC=yes
98919bdb 4096else
57aa50d4 4097 GCC=
98919bdb 4098fi
57aa50d4
TT
4099ac_test_CFLAGS=${CFLAGS+set}
4100ac_save_CFLAGS=$CFLAGS
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4102$as_echo_n "checking whether $CC accepts -g... " >&6; }
91d11da1 4103if ${ac_cv_prog_cc_g+:} false; then :
57aa50d4 4104 $as_echo_n "(cached) " >&6
98919bdb 4105else
57aa50d4
TT
4106 ac_save_c_werror_flag=$ac_c_werror_flag
4107 ac_c_werror_flag=yes
4108 ac_cv_prog_cc_g=no
4109 CFLAGS="-g"
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h. */
e1052144 4112
57aa50d4
TT
4113int
4114main ()
4115{
98919bdb 4116
57aa50d4
TT
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121if ac_fn_c_try_compile "$LINENO"; then :
4122 ac_cv_prog_cc_g=yes
c13351f6 4123else
57aa50d4
TT
4124 CFLAGS=""
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h. */
c13351f6 4127
57aa50d4
TT
4128int
4129main ()
4130{
c13351f6 4131
57aa50d4
TT
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136if ac_fn_c_try_compile "$LINENO"; then :
c13351f6 4137
57aa50d4
TT
4138else
4139 ac_c_werror_flag=$ac_save_c_werror_flag
4140 CFLAGS="-g"
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142/* end confdefs.h. */
c13351f6 4143
57aa50d4
TT
4144int
4145main ()
4146{
c13351f6 4147
57aa50d4
TT
4148 ;
4149 return 0;
4150}
b0cacab0 4151_ACEOF
57aa50d4
TT
4152if ac_fn_c_try_compile "$LINENO"; then :
4153 ac_cv_prog_cc_g=yes
1917875f 4154fi
57aa50d4 4155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e1052144 4156fi
57aa50d4 4157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdc9985 4158fi
57aa50d4
TT
4159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 4161fi
57aa50d4
TT
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4163$as_echo "$ac_cv_prog_cc_g" >&6; }
4164if test "$ac_test_CFLAGS" = set; then
4165 CFLAGS=$ac_save_CFLAGS
4166elif test $ac_cv_prog_cc_g = yes; then
4167 if test "$GCC" = yes; then
4168 CFLAGS="-g -O2"
4169 else
4170 CFLAGS="-g"
4171 fi
a64c9c13 4172else
57aa50d4
TT
4173 if test "$GCC" = yes; then
4174 CFLAGS="-O2"
4175 else
4176 CFLAGS=
4177 fi
a64c9c13 4178fi
57aa50d4
TT
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4180$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
91d11da1 4181if ${ac_cv_prog_cc_c89+:} false; then :
57aa50d4 4182 $as_echo_n "(cached) " >&6
a64c9c13 4183else
57aa50d4
TT
4184 ac_cv_prog_cc_c89=no
4185ac_save_CC=$CC
4186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h. */
4188#include <stdarg.h>
4189#include <stdio.h>
91d11da1 4190struct stat;
57aa50d4
TT
4191/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4192struct buf { int x; };
4193FILE * (*rcsopen) (struct buf *, struct stat *, int);
4194static char *e (p, i)
4195 char **p;
4196 int i;
4197{
4198 return p[i];
4199}
4200static char *f (char * (*g) (char **, int), char **p, ...)
4201{
4202 char *s;
4203 va_list v;
4204 va_start (v,p);
4205 s = g (p, va_arg (v,int));
4206 va_end (v);
4207 return s;
4208}
e1052144 4209
57aa50d4
TT
4210/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4211 function prototypes and stuff, but not '\xHH' hex character constants.
4212 These don't provoke an error unfortunately, instead are silently treated
4213 as 'x'. The following induces an error, until -std is added to get
4214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4215 array size at least. It's necessary to write '\x00'==0 to get something
4216 that's true only with -std. */
4217int osf4_cc_array ['\x00' == 0 ? 1 : -1];
93636bde 4218
57aa50d4
TT
4219/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4220 inside strings and character constants. */
4221#define FOO(x) 'x'
4222int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
a64c9c13 4223
57aa50d4
TT
4224int test (int i, double x);
4225struct s1 {int (*f) (int a);};
4226struct s2 {int (*f) (double a);};
4227int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4228int argc;
4229char **argv;
4230int
4231main ()
4232{
4233return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4234 ;
4235 return 0;
4236}
4237_ACEOF
4238for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4239 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4240do
4241 CC="$ac_save_CC $ac_arg"
4242 if ac_fn_c_try_compile "$LINENO"; then :
4243 ac_cv_prog_cc_c89=$ac_arg
a64c9c13 4244fi
57aa50d4
TT
4245rm -f core conftest.err conftest.$ac_objext
4246 test "x$ac_cv_prog_cc_c89" != "xno" && break
4247done
4248rm -f conftest.$ac_ext
4249CC=$ac_save_CC
a64c9c13 4250
57aa50d4
TT
4251fi
4252# AC_CACHE_VAL
4253case "x$ac_cv_prog_cc_c89" in
4254 x)
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4256$as_echo "none needed" >&6; } ;;
4257 xno)
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4259$as_echo "unsupported" >&6; } ;;
4260 *)
4261 CC="$CC $ac_cv_prog_cc_c89"
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4263$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4264esac
4265if test "x$ac_cv_prog_cc_c89" != xno; then :
a64c9c13 4266
e1052144
TT
4267fi
4268
57aa50d4
TT
4269ac_ext=c
4270ac_cpp='$CPP $CPPFLAGS'
4271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273ac_compiler_gnu=$ac_cv_c_compiler_gnu
93636bde 4274
9b3018a8
TT
4275if test "$GCC" = yes; then
4276 RDYNAMIC="-rdynamic"
4277
4278fi
57aa50d4
TT
4279ac_ext=c
4280ac_cpp='$CPP $CPPFLAGS'
4281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4285$as_echo_n "checking how to run the C preprocessor... " >&6; }
4286# On Suns, sometimes $CPP names a directory.
4287if test -n "$CPP" && test -d "$CPP"; then
4288 CPP=
4289fi
4290if test -z "$CPP"; then
91d11da1 4291 if ${ac_cv_prog_CPP+:} false; then :
57aa50d4
TT
4292 $as_echo_n "(cached) " >&6
4293else
4294 # Double quotes because CPP needs to be expanded
4295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4296 do
4297 ac_preproc_ok=false
4298for ac_c_preproc_warn_flag in '' yes
4299do
4300 # Use a header file that comes with gcc, so configuring glibc
4301 # with a fresh cross-compiler works.
4302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4303 # <limits.h> exists even on freestanding compilers.
4304 # On the NeXT, cc -E runs the code through the compiler's parser,
4305 # not just through cpp. "Syntax error" is here to catch this case.
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307/* end confdefs.h. */
4308#ifdef __STDC__
4309# include <limits.h>
4310#else
4311# include <assert.h>
4312#endif
4313 Syntax error
4314_ACEOF
4315if ac_fn_c_try_cpp "$LINENO"; then :
a64c9c13 4316
cdf186e4 4317else
57aa50d4
TT
4318 # Broken: fails on valid input.
4319continue
cdf186e4 4320fi
91d11da1 4321rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4322
57aa50d4
TT
4323 # OK, works on sane cases. Now check whether nonexistent headers
4324 # can be detected and how.
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326/* end confdefs.h. */
4327#include <ac_nonexistent.h>
4328_ACEOF
4329if ac_fn_c_try_cpp "$LINENO"; then :
4330 # Broken: success on invalid input.
4331continue
cdf186e4 4332else
57aa50d4
TT
4333 # Passes both tests.
4334ac_preproc_ok=:
4335break
4336fi
91d11da1 4337rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4338
57aa50d4
TT
4339done
4340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
91d11da1 4341rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4
TT
4342if $ac_preproc_ok; then :
4343 break
e1052144
TT
4344fi
4345
57aa50d4
TT
4346 done
4347 ac_cv_prog_CPP=$CPP
93636bde 4348
cdf186e4 4349fi
57aa50d4 4350 CPP=$ac_cv_prog_CPP
cdf186e4 4351else
57aa50d4 4352 ac_cv_prog_CPP=$CPP
e1052144 4353fi
57aa50d4
TT
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4355$as_echo "$CPP" >&6; }
4356ac_preproc_ok=false
4357for ac_c_preproc_warn_flag in '' yes
4358do
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 # <limits.h> exists even on freestanding compilers.
4363 # On the NeXT, cc -E runs the code through the compiler's parser,
4364 # not just through cpp. "Syntax error" is here to catch this case.
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366/* end confdefs.h. */
4367#ifdef __STDC__
4368# include <limits.h>
4369#else
4370# include <assert.h>
4371#endif
4372 Syntax error
b0cacab0 4373_ACEOF
57aa50d4 4374if ac_fn_c_try_cpp "$LINENO"; then :
80bfaa3e
TT
4375
4376else
57aa50d4
TT
4377 # Broken: fails on valid input.
4378continue
e1052144 4379fi
91d11da1 4380rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4381
57aa50d4
TT
4382 # OK, works on sane cases. Now check whether nonexistent headers
4383 # can be detected and how.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h. */
4386#include <ac_nonexistent.h>
b0cacab0 4387_ACEOF
57aa50d4
TT
4388if ac_fn_c_try_cpp "$LINENO"; then :
4389 # Broken: success on invalid input.
4390continue
f0a22d0f 4391else
57aa50d4
TT
4392 # Passes both tests.
4393ac_preproc_ok=:
4394break
e1052144 4395fi
91d11da1 4396rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4397
57aa50d4
TT
4398done
4399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
91d11da1 4400rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4 4401if $ac_preproc_ok; then :
2a29f135
TT
4402
4403else
57aa50d4
TT
4404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91d11da1
TT
4406as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4407See \`config.log' for more details" "$LINENO" 5; }
e1052144
TT
4408fi
4409
57aa50d4
TT
4410ac_ext=c
4411ac_cpp='$CPP $CPPFLAGS'
4412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414ac_compiler_gnu=$ac_cv_c_compiler_gnu
af773654 4415
57aa50d4
TT
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4417$as_echo_n "checking for additional special compiler flags... " >&6; }
4418if test "$GCC" = yes
4419then
4420 case "$host_cpu" in
4421 alpha) addcflags="-mieee" ;;
4422 esac
14b596d4 4423fi
57aa50d4
TT
4424if test "x$addcflags" != x
4425then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4427$as_echo "$addcflags" >&6; }
4428 CFLAGS="$addcflags $CFLAGS"
14b596d4 4429else
57aa50d4
TT
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4431$as_echo "(none)" >&6; }
14b596d4
TT
4432fi
4433
93613951
TT
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4435$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4436if ${ac_cv_path_GREP+:} false; then :
4437 $as_echo_n "(cached) " >&6
57aa50d4 4438else
93613951
TT
4439 if test -z "$GREP"; then
4440 ac_path_GREP_found=false
4441 # Loop through the user's path and test for each of PROGNAME-LIST
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_prog in grep ggrep; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4450 as_fn_executable_p "$ac_path_GREP" || continue
4451# Check for GNU ac_path_GREP and select it if it is found.
4452 # Check for GNU $ac_path_GREP
4453case `"$ac_path_GREP" --version 2>&1` in
4454*GNU*)
4455 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4456*)
4457 ac_count=0
4458 $as_echo_n 0123456789 >"conftest.in"
4459 while :
4460 do
4461 cat "conftest.in" "conftest.in" >"conftest.tmp"
4462 mv "conftest.tmp" "conftest.in"
4463 cp "conftest.in" "conftest.nl"
4464 $as_echo 'GREP' >> "conftest.nl"
4465 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4466 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4467 as_fn_arith $ac_count + 1 && ac_count=$as_val
4468 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4469 # Best one so far, save it but keep looking for a better one
4470 ac_cv_path_GREP="$ac_path_GREP"
4471 ac_path_GREP_max=$ac_count
4472 fi
4473 # 10*(2^10) chars as input seems more than enough
4474 test $ac_count -gt 10 && break
4475 done
4476 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4477esac
14b596d4 4478
93613951
TT
4479 $ac_path_GREP_found && break 3
4480 done
4481 done
4482 done
4483IFS=$as_save_IFS
4484 if test -z "$ac_cv_path_GREP"; then
4485 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4486 fi
57aa50d4 4487else
93613951
TT
4488 ac_cv_path_GREP=$GREP
4489fi
57aa50d4 4490
14b596d4 4491fi
93613951
TT
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4493$as_echo "$ac_cv_path_GREP" >&6; }
4494 GREP="$ac_cv_path_GREP"
14b596d4 4495
14b596d4 4496
93613951
TT
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4498$as_echo_n "checking for egrep... " >&6; }
4499if ${ac_cv_path_EGREP+:} false; then :
4500 $as_echo_n "(cached) " >&6
5aa6c3f6 4501else
93613951
TT
4502 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4503 then ac_cv_path_EGREP="$GREP -E"
4504 else
4505 if test -z "$EGREP"; then
4506 ac_path_EGREP_found=false
4507 # Loop through the user's path and test for each of PROGNAME-LIST
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4510do
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
4513 for ac_prog in egrep; do
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4516 as_fn_executable_p "$ac_path_EGREP" || continue
4517# Check for GNU ac_path_EGREP and select it if it is found.
4518 # Check for GNU $ac_path_EGREP
4519case `"$ac_path_EGREP" --version 2>&1` in
4520*GNU*)
4521 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4522*)
4523 ac_count=0
4524 $as_echo_n 0123456789 >"conftest.in"
4525 while :
4526 do
4527 cat "conftest.in" "conftest.in" >"conftest.tmp"
4528 mv "conftest.tmp" "conftest.in"
4529 cp "conftest.in" "conftest.nl"
4530 $as_echo 'EGREP' >> "conftest.nl"
4531 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4533 as_fn_arith $ac_count + 1 && ac_count=$as_val
4534 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4535 # Best one so far, save it but keep looking for a better one
4536 ac_cv_path_EGREP="$ac_path_EGREP"
4537 ac_path_EGREP_max=$ac_count
4538 fi
4539 # 10*(2^10) chars as input seems more than enough
4540 test $ac_count -gt 10 && break
4541 done
4542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4543esac
5aa6c3f6 4544
93613951
TT
4545 $ac_path_EGREP_found && break 3
4546 done
4547 done
4548 done
4549IFS=$as_save_IFS
4550 if test -z "$ac_cv_path_EGREP"; then
4551 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4552 fi
5aa6c3f6 4553else
93613951
TT
4554 ac_cv_path_EGREP=$EGREP
4555fi
183c73b0 4556
93613951 4557 fi
183c73b0 4558fi
93613951
TT
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4560$as_echo "$ac_cv_path_EGREP" >&6; }
4561 EGREP="$ac_cv_path_EGREP"
183c73b0
TT
4562
4563
93613951
TT
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4565$as_echo_n "checking for ANSI C header files... " >&6; }
4566if ${ac_cv_header_stdc+:} false; then :
4567 $as_echo_n "(cached) " >&6
91d11da1 4568else
93613951
TT
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h. */
4571#include <stdlib.h>
4572#include <stdarg.h>
4573#include <string.h>
4574#include <float.h>
91d11da1 4575
93613951
TT
4576int
4577main ()
4578{
183c73b0 4579
93613951
TT
4580 ;
4581 return 0;
4582}
4583_ACEOF
4584if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_cv_header_stdc=yes
183c73b0 4586else
93613951 4587 ac_cv_header_stdc=no
5aa6c3f6 4588fi
93613951 4589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5aa6c3f6 4590
93613951
TT
4591if test $ac_cv_header_stdc = yes; then
4592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594/* end confdefs.h. */
4595#include <string.h>
4596
4597_ACEOF
4598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 $EGREP "memchr" >/dev/null 2>&1; then :
4600
4601else
4602 ac_cv_header_stdc=no
4603fi
4604rm -f conftest*
4605
4606fi
4607
4608if test $ac_cv_header_stdc = yes; then
4609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611/* end confdefs.h. */
4612#include <stdlib.h>
4613
4614_ACEOF
4615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616 $EGREP "free" >/dev/null 2>&1; then :
4617
4618else
4619 ac_cv_header_stdc=no
4620fi
4621rm -f conftest*
4622
4623fi
4624
4625if test $ac_cv_header_stdc = yes; then
4626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4627 if test "$cross_compiling" = yes; then :
4628 :
4629else
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h. */
4632#include <ctype.h>
4633#include <stdlib.h>
4634#if ((' ' & 0x0FF) == 0x020)
4635# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4636# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4637#else
4638# define ISLOWER(c) \
4639 (('a' <= (c) && (c) <= 'i') \
4640 || ('j' <= (c) && (c) <= 'r') \
4641 || ('s' <= (c) && (c) <= 'z'))
4642# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4643#endif
4644
4645#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4646int
4647main ()
4648{
4649 int i;
4650 for (i = 0; i < 256; i++)
4651 if (XOR (islower (i), ISLOWER (i))
4652 || toupper (i) != TOUPPER (i))
4653 return 2;
4654 return 0;
4655}
4656_ACEOF
4657if ac_fn_c_try_run "$LINENO"; then :
4658
4659else
4660 ac_cv_header_stdc=no
4661fi
4662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4663 conftest.$ac_objext conftest.beam conftest.$ac_ext
4664fi
4665
4666fi
4667fi
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4669$as_echo "$ac_cv_header_stdc" >&6; }
4670if test $ac_cv_header_stdc = yes; then
4671
4672$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4673
4674fi
4675
4676# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4677for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4678 inttypes.h stdint.h unistd.h
4679do :
4680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4681ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4682"
4683if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4684 cat >>confdefs.h <<_ACEOF
4685#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4686_ACEOF
4687
4688fi
4689
4690done
4691
4692
4693
4694 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4695if test "x$ac_cv_header_minix_config_h" = xyes; then :
4696 MINIX=yes
4697else
4698 MINIX=
4699fi
4700
4701
4702 if test "$MINIX" = yes; then
4703
4704$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4705
4706
4707$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4708
4709
4710$as_echo "#define _MINIX 1" >>confdefs.h
4711
4712 fi
4713
4714
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4716$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4717if ${ac_cv_safe_to_define___extensions__+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719else
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721/* end confdefs.h. */
4722
4723# define __EXTENSIONS__ 1
4724 $ac_includes_default
4725int
4726main ()
4727{
4728
4729 ;
4730 return 0;
4731}
4732_ACEOF
4733if ac_fn_c_try_compile "$LINENO"; then :
4734 ac_cv_safe_to_define___extensions__=yes
4735else
4736 ac_cv_safe_to_define___extensions__=no
4737fi
4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739fi
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4741$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4742 test $ac_cv_safe_to_define___extensions__ = yes &&
4743 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4744
4745 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4746
4747 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4748
4749 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4750
4751 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4752
4753
4754LIB_EXT=.a
4755STATIC_LIB_EXT=.a
4756PROFILED_LIB_EXT=.a
4757
4758# Check whether --with-root-prefix was given.
4759if test "${with_root_prefix+set}" = set; then :
4760 withval=$with_root_prefix; root_prefix=$withval
4761else
4762 root_prefix=NONE
4763fi
4764# Check whether --enable-maintainer-mode was given.
4765if test "${enable_maintainer_mode+set}" = set; then :
4766 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4767then
4768 MAINTAINER_CMT=#
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4770$as_echo "Disabling maintainer mode" >&6; }
4771else
4772 MAINTAINER_CMT=
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4774$as_echo "Enabling maintainer mode" >&6; }
4775fi
4776
4777else
4778 MAINTAINER_CMT=#
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4780$as_echo "Disabling maintainer mode by default" >&6; }
4781
4782fi
4783
4784
4785# Check whether --enable-symlink-install was given.
4786if test "${enable_symlink_install+set}" = set; then :
4787 enableval=$enable_symlink_install; if test "$enableval" = "no"
4788then
4789 LINK_INSTALL_FLAGS=-f
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4791$as_echo "Disabling symlinks for install" >&6; }
4792else
4793 LINK_INSTALL_FLAGS=-sf
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4795$as_echo "Enabling symlinks for install" >&6; }
4796fi
4797
4798else
4799 LINK_INSTALL_FLAGS=-f
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4801$as_echo "Disabling symlinks for install by default" >&6; }
4802
4803fi
4804
4805
4806relative_symlink_defined=
4807# Check whether --enable-relative-symlinks was given.
4808if test "${enable_relative_symlinks+set}" = set; then :
4809 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4810then
4811 SYMLINK_RELATIVE=
4812 relative_symlink_defined=yes
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4814$as_echo "Disabling relative symlinks for install" >&6; }
4815else
4816 SYMLINK_RELATIVE=--relative
4817 relative_symlink_defined=yes
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4819$as_echo "Enabling relative symlinks for install" >&6; }
4820fi
4821fi
4822
4823# Check whether --enable-symlink-relative-symlinks was given.
4824if test "${enable_symlink_relative_symlinks+set}" = set; then :
4825 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4826then
4827 SYMLINK_RELATIVE=yes
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4829$as_echo "Disabling relative symlinks for install" >&6; }
4830else
4831 SYMLINK_RELATIVE=--relative
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4833$as_echo "Enabling relative symlinks for install" >&6; }
4834fi
4835
4836else
4837 if test -z "$relative_symlink_defined"
4838then
4839 SYMLINK_RELATIVE=
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4841$as_echo "Disabling relative symlinks for install by default" >&6; }
4842fi
4843
4844fi
4845
4846
4847# Check whether --enable-symlink-build was given.
4848if test "${enable_symlink_build+set}" = set; then :
5aa6c3f6
TT
4849 enableval=$enable_symlink_build; if test "$enableval" = "no"
4850then
4851 LINK_BUILD_FLAGS=
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4853$as_echo "Disabling symlinks for build" >&6; }
4854else
4855 LINK_BUILD_FLAGS=-s
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4857$as_echo "Enabling symlinks for build" >&6; }
4858fi
4859
4860else
4861 LINK_BUILD_FLAGS=
183c73b0
TT
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4863$as_echo "Disabling symlinks for build by default" >&6; }
5aa6c3f6
TT
4864
4865fi
4866
4867
57aa50d4
TT
4868# Check whether --enable-verbose-makecmds was given.
4869if test "${enable_verbose_makecmds+set}" = set; then :
4870 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4871then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4873$as_echo "Disabling verbose make commands" >&6; }
4874 E=@echo
c1986ecb 4875 ES=echo
57aa50d4 4876 Q=@
14b596d4 4877else
57aa50d4
TT
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4879$as_echo "Enabling verbose make commands" >&6; }
4880 E=@\\#
c1986ecb 4881 ES=\\#
57aa50d4
TT
4882 Q=
4883fi
14b596d4 4884
14b596d4 4885else
57aa50d4
TT
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4887$as_echo "Disabling verbose make commands" >&6; }
4888E=@echo
c1986ecb 4889ES=echo
57aa50d4 4890Q=@
14b596d4 4891
14b596d4
TT
4892fi
4893
14b596d4 4894
57aa50d4 4895
c1986ecb 4896
57aa50d4
TT
4897# Check whether --enable-compression was given.
4898if test "${enable_compression+set}" = set; then :
4899 enableval=$enable_compression; if test "$enableval" = "no"
4900then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4902$as_echo "Disabling compression support" >&6; }
14b596d4 4903else
d1154eb4
TT
4904
4905$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
14b596d4 4906
57aa50d4
TT
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4908$as_echo "Enabling compression support" >&6; }
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4910$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
14b596d4
TT
4911fi
4912
4913else
57aa50d4
TT
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4915$as_echo "Disabling compression support by default" >&6; }
14b596d4
TT
4916
4917fi
4918
d1154eb4 4919
57aa50d4
TT
4920# Check whether --enable-htree was given.
4921if test "${enable_htree+set}" = set; then :
4922 enableval=$enable_htree; if test "$enableval" = "no"
4923then
4924 HTREE_CMT=#
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4926$as_echo "Disabling htree directory support" >&6; }
4927else
4928 HTREE_CMT=
4929 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
14b596d4 4930
57aa50d4
TT
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4932$as_echo "Enabling htree directory support" >&6; }
4933fi
14b596d4 4934
57aa50d4
TT
4935else
4936 HTREE_CMT=
4937$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
14b596d4 4938
57aa50d4
TT
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4940$as_echo "Enabling htree directory support by default" >&6; }
14b596d4 4941
57aa50d4 4942fi
14b596d4
TT
4943
4944
57aa50d4
TT
4945E2_PKG_CONFIG_STATIC=--static
4946LDFLAG_DYNAMIC=
4947PRIVATE_LIBS_CMT=
4948# Check whether --enable-elf-shlibs was given.
4949if test "${enable_elf_shlibs+set}" = set; then :
4950 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
cdf186e4 4951then
57aa50d4
TT
4952 ELF_CMT=#
4953 MAKEFILE_ELF=/dev/null
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4955$as_echo "Disabling ELF shared libraries" >&6; }
cdf186e4 4956else
57aa50d4
TT
4957 E2_PKG_CONFIG_STATIC=
4958 ELF_CMT=
4959 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4960 case "$host_os" in
4961 solaris2.*)
4962 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4963 ;;
4964 esac
4965 BINARY_TYPE=elfbin
4966 LIB_EXT=.so
4967 PRIVATE_LIBS_CMT=#
4968 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4970$as_echo "Enabling ELF shared libraries" >&6; }
cdf186e4
TT
4971fi
4972
4973else
57aa50d4
TT
4974 MAKEFILE_ELF=/dev/null
4975ELF_CMT=#
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4977$as_echo "Disabling ELF shared libraries by default" >&6; }
cdf186e4 4978
e1052144
TT
4979fi
4980
cdf186e4 4981
57aa50d4
TT
4982
4983# Check whether --enable-bsd-shlibs was given.
4984if test "${enable_bsd_shlibs+set}" = set; then :
4985 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
cdf186e4 4986then
57aa50d4
TT
4987 BSDLIB_CMT=#
4988 MAKEFILE_BSDLIB=/dev/null
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4990$as_echo "Disabling BSD shared libraries" >&6; }
cdf186e4 4991else
57aa50d4
TT
4992 E2_PKG_CONFIG_STATIC=
4993 BSDLIB_CMT=
4994 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4995 LIB_EXT=.so
4996 case "$host_os" in
4997 darwin*)
4998 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4999 LIB_EXT=.dylib
5000 ;;
5001 esac
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5003$as_echo "Enabling BSD shared libraries" >&6; }
cdf186e4
TT
5004fi
5005
5006else
57aa50d4
TT
5007 MAKEFILE_BSDLIB=/dev/null
5008BSDLIB_CMT=#
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5010$as_echo "Disabling BSD shared libraries by default" >&6; }
cdf186e4 5011
e1052144
TT
5012fi
5013
cdf186e4 5014
57aa50d4
TT
5015
5016# Check whether --enable-profile was given.
5017if test "${enable_profile+set}" = set; then :
5018 enableval=$enable_profile; if test "$enableval" = "no"
cdf186e4 5019then
57aa50d4
TT
5020 PROFILE_CMT=#
5021 MAKEFILE_PROFILE=/dev/null
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5023$as_echo "Disabling profiling libraries" >&6; }
cdf186e4 5024else
57aa50d4
TT
5025 PROFILE_CMT=
5026 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5027 PROFILED_LIB_EXT=_p.a
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5029$as_echo "Building profiling libraries" >&6; }
cdf186e4
TT
5030fi
5031
5032else
57aa50d4
TT
5033 PROFILE_CMT=#
5034MAKEFILE_PROFILE=/dev/null
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5036$as_echo "Disabling profiling libraries by default" >&6; }
cdf186e4 5037
e1052144
TT
5038fi
5039
cdf186e4 5040
57aa50d4 5041
fedfb27f
TT
5042# Check whether --enable-gcov was given.
5043if test "${enable_gcov+set}" = set; then :
5044 enableval=$enable_gcov; if test "$enableval" = "yes"
5045then
5046 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5047 LDFLAGS="-fprofile-arcs -ftest-coverage"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5049$as_echo "Enabling gcov support" >&6; }
5050fi
5051
5052fi
5053
cdf186e4 5054
57aa50d4
TT
5055
5056
5057
5058
5059
5060# Check whether --enable-jbd-debug was given.
5061if test "${enable_jbd_debug+set}" = set; then :
5062 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5d40773b 5063then
57aa50d4
TT
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5065$as_echo "Disabling journal debugging" >&6; }
5d40773b 5066else
d1154eb4
TT
5067
5068$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
57aa50d4
TT
5069
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5071$as_echo "Enabling journal debugging" >&6; }
5d40773b
TT
5072fi
5073
5074else
57aa50d4
TT
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5076$as_echo "Disabling journal debugging by default" >&6; }
5d40773b 5077
e1052144
TT
5078fi
5079
57aa50d4
TT
5080# Check whether --enable-blkid-debug was given.
5081if test "${enable_blkid_debug+set}" = set; then :
5082 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3249394d 5083then
57aa50d4
TT
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5085$as_echo "Disabling blkid debugging" >&6; }
3249394d 5086else
d1154eb4
TT
5087
5088$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
57aa50d4
TT
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5091$as_echo "Enabling blkid debugging" >&6; }
3249394d
TT
5092fi
5093
5094else
57aa50d4
TT
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5096$as_echo "Disabling blkid debugging by default" >&6; }
3249394d
TT
5097
5098fi
5099
57aa50d4
TT
5100# Check whether --enable-testio-debug was given.
5101if test "${enable_testio_debug+set}" = set; then :
d1154eb4
TT
5102 enableval=$enable_testio_debug;
5103if test "$enableval" = "no"
3249394d 5104then
57aa50d4
TT
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5106$as_echo "Disabling testio debugging" >&6; }
5107 TEST_IO_CMT="#"
3249394d 5108else
57aa50d4
TT
5109 TEST_IO_CMT=
5110 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5111
57aa50d4
TT
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5113$as_echo "Enabling testio debugging" >&6; }
5114fi
3249394d 5115
3249394d 5116else
57aa50d4
TT
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5118$as_echo "Enabling testio debugging by default" >&6; }
5119$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5120
57aa50d4 5121TEST_IO_CMT=
3249394d
TT
5122
5123fi
5124
3249394d 5125
57aa50d4
TT
5126
5127
93613951
TT
5128
5129
5130
5131
5132
57aa50d4 5133if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5134 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5135 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5136set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 5139if ${ac_cv_path_PKG_CONFIG+:} false; then :
57aa50d4
TT
5140 $as_echo_n "(cached) " >&6
5141else
5142 case $PKG_CONFIG in
5143 [\\/]* | ?:[\\/]*)
5144 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5145 ;;
5146 *)
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 5153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5154 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5157 fi
5158done
5159 done
5160IFS=$as_save_IFS
5161
5162 ;;
5163esac
5164fi
5165PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5166if test -n "$PKG_CONFIG"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5168$as_echo "$PKG_CONFIG" >&6; }
5169else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
3249394d
TT
5172fi
5173
5174
57aa50d4
TT
5175fi
5176if test -z "$ac_cv_path_PKG_CONFIG"; then
5177 ac_pt_PKG_CONFIG=$PKG_CONFIG
5178 # Extract the first word of "pkg-config", so it can be a program name with args.
5179set dummy pkg-config; ac_word=$2
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 5182if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
57aa50d4
TT
5183 $as_echo_n "(cached) " >&6
5184else
5185 case $ac_pt_PKG_CONFIG in
5186 [\\/]* | ?:[\\/]*)
5187 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5188 ;;
5189 *)
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5197 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201done
5202 done
5203IFS=$as_save_IFS
3249394d 5204
57aa50d4
TT
5205 ;;
5206esac
5207fi
5208ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5209if test -n "$ac_pt_PKG_CONFIG"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5211$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5212else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214$as_echo "no" >&6; }
5215fi
3249394d 5216
57aa50d4
TT
5217 if test "x$ac_pt_PKG_CONFIG" = x; then
5218 PKG_CONFIG=""
5219 else
5220 case $cross_compiling:$ac_tool_warned in
5221yes:)
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224ac_tool_warned=yes ;;
5225esac
5226 PKG_CONFIG=$ac_pt_PKG_CONFIG
3249394d 5227 fi
57aa50d4
TT
5228else
5229 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5230fi
3249394d
TT
5231
5232fi
57aa50d4 5233if test -n "$PKG_CONFIG"; then
93613951
TT
5234 _pkg_min_version=0.9.0
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5236$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5237 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5239$as_echo "yes" >&6; }
93613951
TT
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5242$as_echo "no" >&6; }
93613951
TT
5243 PKG_CONFIG=""
5244 fi
57aa50d4
TT
5245fi
5246LIBUUID=
5247DEPLIBUUID=
5248STATIC_LIBUUID=
5249DEPSTATIC_LIBUUID=
5250PROFILED_LIBUUID=
5251DEPPROFILED_LIBUUID=
5252UUID_CMT=
5253# Check whether --enable-libuuid was given.
5254if test "${enable_libuuid+set}" = set; then :
5255 enableval=$enable_libuuid; if test "$enableval" = "no"
5610f992 5256then
57aa50d4 5257 if test -z "$PKG_CONFIG"; then
91d11da1 5258 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5259 fi
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5262$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
91d11da1 5263if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
57aa50d4 5264 $as_echo_n "(cached) " >&6
5610f992 5265else
57aa50d4 5266 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5267LIBS="-luuid $LIBS"
57aa50d4
TT
5268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h. */
5610f992 5270
57aa50d4
TT
5271/* Override any GCC internal prototype to avoid an error.
5272 Use char because int might match the return type of a GCC
5273 builtin and then its argument prototype would still apply. */
5274#ifdef __cplusplus
5275extern "C"
5276#endif
5277char uuid_generate ();
5278int
5279main ()
5280{
5281return uuid_generate ();
5282 ;
5283 return 0;
5284}
5285_ACEOF
5286if ac_fn_c_try_link "$LINENO"; then :
5287 ac_cv_lib_uuid_uuid_generate=yes
5288else
5289 ac_cv_lib_uuid_uuid_generate=no
5290fi
5291rm -f core conftest.err conftest.$ac_objext \
5292 conftest$ac_exeext conftest.$ac_ext
5293LIBS=$ac_check_lib_save_LIBS
5294fi
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5296$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
91d11da1 5297if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
57aa50d4
TT
5298 LIBUUID=`$PKG_CONFIG --libs uuid`;
5299 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5300else
91d11da1 5301 as_fn_error $? "external uuid library not found" "$LINENO" 5
5610f992
TT
5302fi
5303
57aa50d4
TT
5304 UUID_CMT=#
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5306$as_echo "Disabling private uuid library" >&6; }
5610f992 5307else
57aa50d4
TT
5308 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5309 DEPLIBUUID=$LIBUUID
5310 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5311 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5312 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5313 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5315$as_echo "Enabling private uuid library" >&6; }
5316fi
5610f992 5317
57aa50d4
TT
5318else
5319 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5320DEPLIBUUID=$LIBUUID
5321STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5322DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5323PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5324DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5326$as_echo "Enabling private uuid library by default" >&6; }
5610f992
TT
5327
5328fi
5329
5330
cdf186e4 5331
a64c9c13 5332
93636bde
TT
5333
5334
93636bde 5335
93636bde
TT
5336
5337
57aa50d4 5338
93613951
TT
5339
5340
5341
5342
5343
57aa50d4 5344if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5345 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5346 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5347set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 5350if ${ac_cv_path_PKG_CONFIG+:} false; then :
39fd3d4f 5351 $as_echo_n "(cached) " >&6
a64c9c13 5352else
57aa50d4
TT
5353 case $PKG_CONFIG in
5354 [\\/]* | ?:[\\/]*)
5355 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5356 ;;
e1052144 5357 *)
b0cacab0
TT
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
57aa50d4 5363 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5365 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
b0cacab0 5369done
57aa50d4 5370 done
e1052144 5371IFS=$as_save_IFS
b0cacab0 5372
57aa50d4 5373 ;;
b0cacab0
TT
5374esac
5375fi
57aa50d4
TT
5376PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5377if test -n "$PKG_CONFIG"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5379$as_echo "$PKG_CONFIG" >&6; }
07a0db15 5380else
57aa50d4 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5382$as_echo "no" >&6; }
07a0db15 5383fi
07a0db15 5384
57aa50d4
TT
5385
5386fi
5387if test -z "$ac_cv_path_PKG_CONFIG"; then
5388 ac_pt_PKG_CONFIG=$PKG_CONFIG
5389 # Extract the first word of "pkg-config", so it can be a program name with args.
5390set dummy pkg-config; ac_word=$2
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 5392$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 5393if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
39fd3d4f 5394 $as_echo_n "(cached) " >&6
a64c9c13 5395else
57aa50d4 5396 case $ac_pt_PKG_CONFIG in
b0cacab0 5397 [\\/]* | ?:[\\/]*)
57aa50d4 5398 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
b0cacab0
TT
5399 ;;
5400 *)
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH
5403do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
57aa50d4 5406 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 5407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5408 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
5410 break 2
5411 fi
5412done
57aa50d4 5413 done
e1052144 5414IFS=$as_save_IFS
a64c9c13 5415
b0cacab0
TT
5416 ;;
5417esac
a64c9c13 5418fi
57aa50d4
TT
5419ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5420if test -n "$ac_pt_PKG_CONFIG"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5422$as_echo "$ac_pt_PKG_CONFIG" >&6; }
a64c9c13 5423else
57aa50d4 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5425$as_echo "no" >&6; }
a64c9c13 5426fi
a64c9c13 5427
57aa50d4
TT
5428 if test "x$ac_pt_PKG_CONFIG" = x; then
5429 PKG_CONFIG=""
b0cacab0 5430 else
57aa50d4
TT
5431 case $cross_compiling:$ac_tool_warned in
5432yes:)
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435ac_tool_warned=yes ;;
5436esac
5437 PKG_CONFIG=$ac_pt_PKG_CONFIG
b0cacab0 5438 fi
57aa50d4
TT
5439else
5440 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
a64c9c13 5441fi
93636bde 5442
a64c9c13 5443fi
57aa50d4 5444if test -n "$PKG_CONFIG"; then
93613951
TT
5445 _pkg_min_version=0.9.0
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5447$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5448 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5450$as_echo "yes" >&6; }
93613951
TT
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5453$as_echo "no" >&6; }
93613951
TT
5454 PKG_CONFIG=""
5455 fi
57aa50d4
TT
5456fi
5457LIBBLKID=
5458DEPLIBBLKID=
5459STATIC_LIBBLKID=
5460DEPSTATIC_LIBBLKID=
5461PROFILED_LIBBLKID=
5462DEPPROFILED_LIBBLKID=
5463BLKID_CMT=
d1154eb4 5464
57aa50d4
TT
5465# Check whether --enable-libblkid was given.
5466if test "${enable_libblkid+set}" = set; then :
5467 enableval=$enable_libblkid; if test "$enableval" = "no"
5468then
5469 if test -z "$PKG_CONFIG"; then
91d11da1 5470 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5471 fi
5472
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5474$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
91d11da1 5475if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
39fd3d4f 5476 $as_echo_n "(cached) " >&6
a64c9c13 5477else
57aa50d4 5478 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5479LIBS="-lblkid -luuid $LIBS"
57aa50d4
TT
5480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481/* end confdefs.h. */
5482
5483/* Override any GCC internal prototype to avoid an error.
5484 Use char because int might match the return type of a GCC
5485 builtin and then its argument prototype would still apply. */
5486#ifdef __cplusplus
5487extern "C"
5488#endif
5489char blkid_get_cache ();
5490int
5491main ()
5492{
5493return blkid_get_cache ();
5494 ;
5495 return 0;
5496}
5497_ACEOF
5498if ac_fn_c_try_link "$LINENO"; then :
5499 ac_cv_lib_blkid_blkid_get_cache=yes
b0cacab0 5500else
57aa50d4 5501 ac_cv_lib_blkid_blkid_get_cache=no
a64c9c13 5502fi
57aa50d4
TT
5503rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
5505LIBS=$ac_check_lib_save_LIBS
a64c9c13 5506fi
57aa50d4
TT
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5508$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
91d11da1 5509if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
57aa50d4
TT
5510 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5511 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
b0cacab0 5512else
91d11da1 5513 as_fn_error $? "external blkid library not found" "$LINENO" 5
a64c9c13 5514fi
93636bde 5515
57aa50d4
TT
5516 BLKID_CMT=#
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5518$as_echo "Disabling private blkid library" >&6; }
07a0db15 5519else
57aa50d4
TT
5520 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5521 DEPLIBBLKID=$LIBBLKID
5522 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5523 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5524 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5525 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5526 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5529$as_echo "Enabling private blkid library" >&6; }
b0cacab0 5530fi
57aa50d4 5531
a64c9c13 5532else
57aa50d4
TT
5533 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5534DEPLIBBLKID=$LIBBLKID
5535STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5536DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5537PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5538DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5539$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5540
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5542$as_echo "Enabling private blkid library by default" >&6; }
5543
a64c9c13 5544fi
07a0db15 5545
a64c9c13 5546
b0cacab0 5547
b0cacab0 5548
a64c9c13 5549
b0cacab0 5550
07a0db15 5551
57aa50d4 5552
f5589f4c 5553QUOTA_MAN_COMMENT='.\"'
43075b42 5554QUOTA_CMT=
f5589f4c 5555
f239fefc
AK
5556
5557
93613951
TT
5558
5559
5560
5561
5562
f239fefc 5563if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5564 if test -n "$ac_tool_prefix"; then
f239fefc
AK
5565 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5566set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 5569if ${ac_cv_path_PKG_CONFIG+:} false; then :
f239fefc
AK
5570 $as_echo_n "(cached) " >&6
5571else
5572 case $PKG_CONFIG in
5573 [\\/]* | ?:[\\/]*)
5574 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5575 ;;
5576 *)
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578for as_dir in $PATH
5579do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f239fefc
AK
5584 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588done
5589 done
5590IFS=$as_save_IFS
5591
5592 ;;
5593esac
5594fi
5595PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5596if test -n "$PKG_CONFIG"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5598$as_echo "$PKG_CONFIG" >&6; }
5599else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604
5605fi
5606if test -z "$ac_cv_path_PKG_CONFIG"; then
5607 ac_pt_PKG_CONFIG=$PKG_CONFIG
5608 # Extract the first word of "pkg-config", so it can be a program name with args.
5609set dummy pkg-config; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 5612if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
f239fefc
AK
5613 $as_echo_n "(cached) " >&6
5614else
5615 case $ac_pt_PKG_CONFIG in
5616 [\\/]* | ?:[\\/]*)
5617 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5618 ;;
5619 *)
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f239fefc
AK
5627 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631done
5632 done
5633IFS=$as_save_IFS
5634
5635 ;;
5636esac
5637fi
5638ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5639if test -n "$ac_pt_PKG_CONFIG"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5641$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5642else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644$as_echo "no" >&6; }
5645fi
5646
5647 if test "x$ac_pt_PKG_CONFIG" = x; then
5648 PKG_CONFIG=""
5649 else
5650 case $cross_compiling:$ac_tool_warned in
5651yes:)
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654ac_tool_warned=yes ;;
5655esac
5656 PKG_CONFIG=$ac_pt_PKG_CONFIG
5657 fi
5658else
5659 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5660fi
5661
5662fi
5663if test -n "$PKG_CONFIG"; then
93613951
TT
5664 _pkg_min_version=0.9.0
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
f239fefc 5666$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5667 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
f239fefc 5669$as_echo "yes" >&6; }
93613951
TT
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
f239fefc 5672$as_echo "no" >&6; }
93613951
TT
5673 PKG_CONFIG=""
5674 fi
f239fefc 5675fi
f239fefc 5676
7becb206
TT
5677# Check whether --enable-quota was given.
5678if test "${enable_quota+set}" = set; then :
5679 enableval=$enable_quota; if test "$enableval" = "no"
5680then
43075b42 5681 QUOTA_CMT=#
7becb206
TT
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5683$as_echo "Disabling quota support" >&6; }
f239fefc 5684else
43075b42 5685 QUOTA_CMT=
7becb206 5686 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
f239fefc 5687
7becb206
TT
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5689$as_echo "Enabling quota support" >&6; }
f5589f4c
ES
5690 QUOTA_MAN_COMMENT=""
5691
f239fefc
AK
5692fi
5693
f239fefc 5694else
43075b42
NY
5695 QUOTA_CMT=#
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
7becb206
TT
5697$as_echo "Disabling quota support by default" >&6; }
5698
f239fefc
AK
5699fi
5700
7becb206 5701LIBQUOTA='$(LIB)/libquota'$LIB_EXT
f239fefc
AK
5702DEPLIBQUOTA=$LIBQUOTA
5703STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5704DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5705PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5706DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
f239fefc
AK
5707
5708
5709
5710
5711
5712
5713
3df6014a
TT
5714
5715# Check whether --enable-backtrace was given.
5716if test "${enable_backtrace+set}" = set; then :
5717 enableval=$enable_backtrace; if test "$enableval" = "no"
5718then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5720$as_echo "Disabling use of backtrace" >&6; }
5721 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5722
5723else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5725$as_echo "Enabling use of backtrace" >&6; }
5726fi
5727
5728else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5730$as_echo "Enabling use of backtrace by default" >&6; }
5731
5732fi
5733
57aa50d4
TT
5734# Check whether --enable-debugfs was given.
5735if test "${enable_debugfs+set}" = set; then :
5736 enableval=$enable_debugfs; if test "$enableval" = "no"
5737then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5739$as_echo "Disabling debugfs support" >&6; }
5740 DEBUGFS_CMT="#"
b0cacab0 5741else
57aa50d4
TT
5742 DEBUGFS_CMT=
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5744$as_echo "Enabling debugfs support" >&6; }
b0cacab0 5745fi
a64c9c13 5746
b0cacab0 5747else
57aa50d4
TT
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5749$as_echo "Enabling debugfs support by default" >&6; }
5750DEBUGFS_CMT=
a64c9c13 5751
93636bde 5752fi
57aa50d4
TT
5753
5754
5755# Check whether --enable-imager was given.
5756if test "${enable_imager+set}" = set; then :
5757 enableval=$enable_imager; if test "$enableval" = "no"
5758then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5760$as_echo "Disabling e2image support" >&6; }
5761 IMAGER_CMT="#"
b0cacab0 5762else
57aa50d4
TT
5763 IMAGER_CMT=
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5765$as_echo "Enabling e2image support" >&6; }
b0cacab0
TT
5766fi
5767
b0cacab0 5768else
57aa50d4
TT
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5770$as_echo "Enabling e2image support by default" >&6; }
5771IMAGER_CMT=
5772
93636bde
TT
5773fi
5774
a64c9c13 5775
57aa50d4
TT
5776# Check whether --enable-resizer was given.
5777if test "${enable_resizer+set}" = set; then :
5778 enableval=$enable_resizer; if test "$enableval" = "no"
5779then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5781$as_echo "Disabling e2resize support" >&6; }
5782 RESIZER_CMT="#"
b0cacab0 5783else
57aa50d4
TT
5784 RESIZER_CMT=
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5786$as_echo "Enabling e2resize support" >&6; }
5787fi
b0cacab0 5788
b0cacab0 5789else
57aa50d4
TT
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5791$as_echo "Enabling e2resize support by default" >&6; }
5792RESIZER_CMT=
b0cacab0 5793
b0cacab0 5794fi
e1052144 5795
57aa50d4 5796
8d9c50c5
TT
5797# Check whether --enable-defrag was given.
5798if test "${enable_defrag+set}" = set; then :
5799 enableval=$enable_defrag; if test "$enableval" = "no"
5800then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5802$as_echo "Disabling e4defrag support" >&6; }
5803 DEFRAG_CMT="#"
5804else
5805 DEFRAG_CMT=
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5807$as_echo "Enabling e4defrag support" >&6; }
5808fi
5809
5810else
6c59a665
TT
5811 if test -z "$WITH_DIET_LIBC"
5812then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
8d9c50c5 5814$as_echo "Enabling e4defrag support by default" >&6; }
6c59a665
TT
5815 DEFRAG_CMT=
5816else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5818$as_echo "Disabling e4defrag support by default" >&6; }
5819 DEFRAG_CMT="#"
5820fi
8d9c50c5
TT
5821
5822fi
5823
5824
57aa50d4
TT
5825# Check whether --enable-fsck was given.
5826if test "${enable_fsck+set}" = set; then :
5827 enableval=$enable_fsck; if test "$enableval" = "no"
5828then
5829 FSCK_PROG='' FSCK_MAN=''
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5831$as_echo "Not building fsck wrapper" >&6; }
5832else
5833 FSCK_PROG=fsck FSCK_MAN=fsck.8
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5835$as_echo "Building fsck wrapper" >&6; }
a64c9c13
TT
5836fi
5837
57aa50d4
TT
5838else
5839 case "$host_os" in
5840 gnu*)
5841 FSCK_PROG='' FSCK_MAN=''
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5843$as_echo "Not building fsck wrapper by default" >&6; }
5844 ;;
5845 *)
5846 FSCK_PROG=fsck FSCK_MAN=fsck.8
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5848$as_echo "Building fsck wrapper by default" >&6; }
5849esac
b0cacab0 5850
57aa50d4 5851fi
b0cacab0 5852
93636bde 5853
b0cacab0 5854
57aa50d4
TT
5855# Check whether --enable-e2initrd-helper was given.
5856if test "${enable_e2initrd_helper+set}" = set; then :
5857 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5858then
5859 E2INITRD_PROG='' E2INITRD_MAN=''
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5861$as_echo "Not building e2initrd helper" >&6; }
5862else
5863 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5865$as_echo "Building e2initrd helper" >&6; }
5866fi
a64c9c13 5867
a64c9c13 5868else
57aa50d4
TT
5869 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5871$as_echo "Building e2initrd helper by default" >&6; }
b0cacab0 5872
a64c9c13 5873fi
e1052144 5874
57aa50d4
TT
5875
5876
5877# Check whether --enable-tls was given.
5878if test "${enable_tls+set}" = set; then :
5879 enableval=$enable_tls; if test "$enableval" = "no"
5880then
5881 try_tls=""
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5883$as_echo "Disabling thread local support" >&6; }
5884else
5885 try_tls="yes"
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5887$as_echo "Enabling thread local support" >&6; }
a64c9c13
TT
5888fi
5889
57aa50d4
TT
5890else
5891 if test -n "$WITH_DIET_LIBC"
5892then
5893 try_tls=""
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5895$as_echo "Diet libc does not support thread local support" >&6; }
5896else
5897 try_tls="yes"
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5899$as_echo "Try using thread local support by default" >&6; }
5900fi
a64c9c13 5901
93636bde 5902fi
07a0db15 5903
57aa50d4
TT
5904if test "$try_tls" = "yes"
5905then
a64c9c13 5906
57aa50d4
TT
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5908$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
91d11da1 5909 if ${ac_cv_tls+:} false; then :
39fd3d4f 5910 $as_echo_n "(cached) " >&6
b0cacab0 5911else
b0cacab0 5912
57aa50d4
TT
5913 ax_tls_keywords="__thread __declspec(thread) none"
5914 for ax_tls_keyword in $ax_tls_keywords; do
5915 case $ax_tls_keyword in
5916 none) ac_cv_tls=none ; break ;;
5917 *)
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919/* end confdefs.h. */
5920#include <stdlib.h>
5921 static void
5922 foo(void) {
5923 static $ax_tls_keyword int bar;
5924 exit(1);
5925 }
b0cacab0
TT
5926int
5927main ()
5928{
57aa50d4 5929
b0cacab0
TT
5930 ;
5931 return 0;
5932}
5933_ACEOF
57aa50d4
TT
5934if ac_fn_c_try_compile "$LINENO"; then :
5935 ac_cv_tls=$ax_tls_keyword ; break
b0cacab0 5936else
57aa50d4 5937 ac_cv_tls=none
b0cacab0 5938
b0cacab0 5939fi
e1052144 5940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
5941 esac
5942 done
5943
b0cacab0 5944fi
b0cacab0 5945
57aa50d4
TT
5946
5947 if test "$ac_cv_tls" != "none"; then
5948
5949cat >>confdefs.h <<_ACEOF
5950#define TLS $ac_cv_tls
b0cacab0 5951_ACEOF
93636bde 5952
b0cacab0 5953 fi
57aa50d4
TT
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5955$as_echo "$ac_cv_tls" >&6; }
b0cacab0 5956
57aa50d4 5957fi
d1154eb4 5958
57aa50d4
TT
5959# Check whether --enable-uuidd was given.
5960if test "${enable_uuidd+set}" = set; then :
5961 enableval=$enable_uuidd; if test "$enableval" = "no"
5962then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5964$as_echo "Not building uuidd" >&6; }
5965 UUIDD_CMT="#"
a64c9c13 5966else
57aa50d4
TT
5967 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5968
5969 UUIDD_CMT=""
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5971$as_echo "Building uuidd" >&6; }
5972fi
a64c9c13 5973
a64c9c13 5974else
57aa50d4 5975 $as_echo "#define USE_UUIDD 1" >>confdefs.h
a64c9c13 5976
57aa50d4
TT
5977UUIDD_CMT=""
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5979$as_echo "Building uuidd by default" >&6; }
e1052144 5980
a64c9c13 5981fi
e1052144 5982
93636bde 5983
57aa50d4 5984MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
a64c9c13 5985
57aa50d4
TT
5986GETTEXT_PACKAGE=e2fsprogs
5987PACKAGE=e2fsprogs
5988VERSION="$E2FSPROGS_VERSION"
5989VERSION=0.14.1
d1154eb4 5990
57aa50d4
TT
5991cat >>confdefs.h <<_ACEOF
5992#define PACKAGE "$PACKAGE"
b0cacab0 5993_ACEOF
a64c9c13 5994
d1154eb4 5995
57aa50d4
TT
5996cat >>confdefs.h <<_ACEOF
5997#define VERSION "$VERSION"
5998_ACEOF
5999
6000
6001
6002
6003
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6005$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6006set x ${MAKE-make}
6007ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
91d11da1 6008if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
39fd3d4f 6009 $as_echo_n "(cached) " >&6
b0cacab0 6010else
57aa50d4
TT
6011 cat >conftest.make <<\_ACEOF
6012SHELL = /bin/sh
6013all:
6014 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 6015_ACEOF
91d11da1 6016# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
6017case `${MAKE-make} -f conftest.make 2>/dev/null` in
6018 *@@@%%%=?*=@@@%%%*)
6019 eval ac_cv_prog_make_${ac_make}_set=yes;;
6020 *)
6021 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 6022esac
57aa50d4
TT
6023rm -f conftest.make
6024fi
6025if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6027$as_echo "yes" >&6; }
6028 SET_MAKE=
39fd3d4f 6029else
57aa50d4
TT
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031$as_echo "no" >&6; }
6032 SET_MAKE="MAKE=${MAKE-make}"
39fd3d4f
SJR
6033fi
6034
57aa50d4
TT
6035# Find a good install program. We prefer a C program (faster),
6036# so one script is as good as another. But avoid the broken or
6037# incompatible versions:
6038# SysV /etc/install, /usr/sbin/install
6039# SunOS /usr/etc/install
6040# IRIX /sbin/install
6041# AIX /bin/install
6042# AmigaOS /C/install, which installs bootblocks on floppy discs
6043# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6044# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6045# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6046# OS/2's system install, which has a completely different semantic
6047# ./install, which can be erroneously created by make from ./install.sh.
6048# Reject install programs that cannot install multiple files.
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6050$as_echo_n "checking for a BSD-compatible install... " >&6; }
6051if test -z "$INSTALL"; then
91d11da1 6052if ${ac_cv_path_install+:} false; then :
57aa50d4 6053 $as_echo_n "(cached) " >&6
93636bde 6054else
57aa50d4
TT
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056for as_dir in $PATH
6057do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 # Account for people who put trailing slashes in PATH elements.
6061case $as_dir/ in #((
6062 ./ | .// | /[cC]/* | \
6063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6064 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6065 /usr/ucb/* ) ;;
6066 *)
6067 # OSF1 and SCO ODT 3.0 have their own names for install.
6068 # Don't use installbsd from OSF since it installs stuff as root
6069 # by default.
6070 for ac_prog in ginstall scoinst install; do
6071 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 6072 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
57aa50d4
TT
6073 if test $ac_prog = install &&
6074 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6075 # AIX install. It has an incompatible calling convention.
6076 :
6077 elif test $ac_prog = install &&
6078 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6079 # program-specific install script used by HP pwplus--don't use.
6080 :
6081 else
6082 rm -rf conftest.one conftest.two conftest.dir
6083 echo one > conftest.one
6084 echo two > conftest.two
6085 mkdir conftest.dir
6086 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6087 test -s conftest.one && test -s conftest.two &&
6088 test -s conftest.dir/conftest.one &&
6089 test -s conftest.dir/conftest.two
6090 then
6091 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6092 break 3
6093 fi
6094 fi
6095 fi
6096 done
6097 done
6098 ;;
6099esac
6100
6101 done
6102IFS=$as_save_IFS
b0cacab0 6103
57aa50d4 6104rm -rf conftest.one conftest.two conftest.dir
39fd3d4f 6105
93636bde 6106fi
57aa50d4
TT
6107 if test "${ac_cv_path_install+set}" = set; then
6108 INSTALL=$ac_cv_path_install
6109 else
6110 # As a last resort, use the slow shell script. Don't cache a
6111 # value for INSTALL within a source directory, because that will
6112 # break other packages using the cache if that directory is
6113 # removed, or if the value is a relative name.
6114 INSTALL=$ac_install_sh
6115 fi
93636bde 6116fi
57aa50d4
TT
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6118$as_echo "$INSTALL" >&6; }
a64c9c13 6119
57aa50d4
TT
6120# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6121# It thinks the first close brace ends the variable substitution.
6122test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b0cacab0 6123
57aa50d4 6124test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a64c9c13 6125
57aa50d4 6126test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39fd3d4f 6127
93613951
TT
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6129$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6130if test -z "$MKDIR_P"; then
6131 if ${ac_cv_path_mkdir+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_prog in mkdir gmkdir; do
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6142 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6143 'mkdir (GNU coreutils) '* | \
6144 'mkdir (coreutils) '* | \
6145 'mkdir (fileutils) '4.1*)
6146 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6147 break 3;;
6148 esac
6149 done
6150 done
6151 done
6152IFS=$as_save_IFS
6153
6154fi
39fd3d4f 6155
93613951
TT
6156 test -d ./--version && rmdir ./--version
6157 if test "${ac_cv_path_mkdir+set}" = set; then
6158 MKDIR_P="$ac_cv_path_mkdir -p"
6159 else
6160 # As a last resort, use the slow shell script. Don't cache a
6161 # value for MKDIR_P within a source directory, because that will
6162 # break other packages using the cache if that directory is
6163 # removed, or if the value is a relative name.
6164 MKDIR_P="$ac_install_sh -d"
57aa50d4 6165 fi
93613951
TT
6166fi
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6168$as_echo "$MKDIR_P" >&6; }
6169
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6171$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6172if ${ac_cv_path_SED+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174else
6175 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6176 for ac_i in 1 2 3 4 5 6 7; do
6177 ac_script="$ac_script$as_nl$ac_script"
6178 done
6179 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6180 { ac_script=; unset ac_script;}
6181 if test -z "$SED"; then
6182 ac_path_SED_found=false
6183 # Loop through the user's path and test for each of PROGNAME-LIST
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_prog in sed gsed; do
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6192 as_fn_executable_p "$ac_path_SED" || continue
6193# Check for GNU ac_path_SED and select it if it is found.
6194 # Check for GNU $ac_path_SED
6195case `"$ac_path_SED" --version 2>&1` in
6196*GNU*)
6197 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6198*)
6199 ac_count=0
6200 $as_echo_n 0123456789 >"conftest.in"
6201 while :
6202 do
6203 cat "conftest.in" "conftest.in" >"conftest.tmp"
6204 mv "conftest.tmp" "conftest.in"
6205 cp "conftest.in" "conftest.nl"
6206 $as_echo '' >> "conftest.nl"
6207 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6209 as_fn_arith $ac_count + 1 && ac_count=$as_val
6210 if test $ac_count -gt ${ac_path_SED_max-0}; then
6211 # Best one so far, save it but keep looking for a better one
6212 ac_cv_path_SED="$ac_path_SED"
6213 ac_path_SED_max=$ac_count
6214 fi
6215 # 10*(2^10) chars as input seems more than enough
6216 test $ac_count -gt 10 && break
6217 done
6218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6219esac
6220
6221 $ac_path_SED_found && break 3
6222 done
6223 done
6224 done
6225IFS=$as_save_IFS
6226 if test -z "$ac_cv_path_SED"; then
6227 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
57aa50d4 6228 fi
93613951
TT
6229else
6230 ac_cv_path_SED=$SED
6231fi
b0cacab0 6232
93613951
TT
6233fi
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6235$as_echo "$ac_cv_path_SED" >&6; }
6236 SED="$ac_cv_path_SED"
6237 rm -f conftest.sed
39fd3d4f 6238
e1052144 6239
57aa50d4
TT
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6241$as_echo_n "checking whether NLS is requested... " >&6; }
6242 # Check whether --enable-nls was given.
6243if test "${enable_nls+set}" = set; then :
6244 enableval=$enable_nls; USE_NLS=$enableval
b0cacab0 6245else
57aa50d4
TT
6246 USE_NLS=yes
6247fi
b0cacab0 6248
57aa50d4
TT
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6250$as_echo "$USE_NLS" >&6; }
93636bde 6251
a64c9c13 6252
a64c9c13 6253
b0cacab0 6254
93613951
TT
6255 GETTEXT_MACRO_VERSION=0.18
6256
6257
b0cacab0 6258
a64c9c13 6259
57aa50d4
TT
6260# Prepare PATH_SEPARATOR.
6261# The user is always right.
6262if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6263 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6264 # contains only /bin. Note that ksh looks also at the FPATH variable,
6265 # so we have to set that as well for the test.
6266 PATH_SEPARATOR=:
6267 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6268 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6269 || PATH_SEPARATOR=';'
6270 }
57aa50d4 6271fi
b0cacab0 6272
57aa50d4
TT
6273# Find out how to test for executable files. Don't use a zero-byte file,
6274# as systems may use methods other than mode bits to determine executability.
6275cat >conf$$.file <<_ASEOF
6276#! /bin/sh
6277exit 0
6278_ASEOF
6279chmod +x conf$$.file
6280if test -x conf$$.file >/dev/null 2>&1; then
6281 ac_executable_p="test -x"
6282else
6283 ac_executable_p="test -f"
6284fi
6285rm -f conf$$.file
b0cacab0 6286
57aa50d4
TT
6287# Extract the first word of "msgfmt", so it can be a program name with args.
6288set dummy msgfmt; ac_word=$2
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 6291if ${ac_cv_path_MSGFMT+:} false; then :
39fd3d4f 6292 $as_echo_n "(cached) " >&6
93636bde 6293else
57aa50d4
TT
6294 case "$MSGFMT" in
6295 [\\/]* | ?:[\\/]*)
6296 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6297 ;;
6298 *)
6299 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6300 for ac_dir in $PATH; do
6301 IFS="$ac_save_IFS"
6302 test -z "$ac_dir" && ac_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6305 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6306 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
57aa50d4
TT
6307 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6308 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6309 break 2
6310 fi
6311 fi
6312 done
6313 done
6314 IFS="$ac_save_IFS"
6315 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6316 ;;
e1052144 6317esac
b0cacab0 6318fi
57aa50d4
TT
6319MSGFMT="$ac_cv_path_MSGFMT"
6320if test "$MSGFMT" != ":"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6322$as_echo "$MSGFMT" >&6; }
6323else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325$as_echo "no" >&6; }
b0cacab0 6326fi
a64c9c13 6327
57aa50d4
TT
6328 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6329set dummy gmsgfmt; ac_word=$2
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 6332if ${ac_cv_path_GMSGFMT+:} false; then :
39fd3d4f 6333 $as_echo_n "(cached) " >&6
93636bde 6334else
57aa50d4
TT
6335 case $GMSGFMT in
6336 [\\/]* | ?:[\\/]*)
6337 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6338 ;;
6339 *)
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341for as_dir in $PATH
6342do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
6347 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6350 fi
6351done
6352 done
6353IFS=$as_save_IFS
a64c9c13 6354
57aa50d4
TT
6355 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6356 ;;
e1052144 6357esac
57aa50d4
TT
6358fi
6359GMSGFMT=$ac_cv_path_GMSGFMT
6360if test -n "$GMSGFMT"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6362$as_echo "$GMSGFMT" >&6; }
b0cacab0 6363else
57aa50d4
TT
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365$as_echo "no" >&6; }
b0cacab0 6366fi
e1052144 6367
b0cacab0 6368
b0cacab0 6369
93613951
TT
6370 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6371 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6372 *) MSGFMT_015=$MSGFMT ;;
6373 esac
6374
6375 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6376 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6377 *) GMSGFMT_015=$GMSGFMT ;;
6378 esac
6379
6380
57aa50d4
TT
6381
6382# Prepare PATH_SEPARATOR.
6383# The user is always right.
6384if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6385 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6386 # contains only /bin. Note that ksh looks also at the FPATH variable,
6387 # so we have to set that as well for the test.
6388 PATH_SEPARATOR=:
6389 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6390 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6391 || PATH_SEPARATOR=';'
6392 }
57aa50d4 6393fi
b0cacab0 6394
57aa50d4
TT
6395# Find out how to test for executable files. Don't use a zero-byte file,
6396# as systems may use methods other than mode bits to determine executability.
6397cat >conf$$.file <<_ASEOF
6398#! /bin/sh
6399exit 0
6400_ASEOF
6401chmod +x conf$$.file
6402if test -x conf$$.file >/dev/null 2>&1; then
6403 ac_executable_p="test -x"
6404else
6405 ac_executable_p="test -f"
6406fi
6407rm -f conf$$.file
b0cacab0 6408
57aa50d4
TT
6409# Extract the first word of "xgettext", so it can be a program name with args.
6410set dummy xgettext; ac_word=$2
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 6413if ${ac_cv_path_XGETTEXT+:} false; then :
39fd3d4f 6414 $as_echo_n "(cached) " >&6
a64c9c13 6415else
57aa50d4
TT
6416 case "$XGETTEXT" in
6417 [\\/]* | ?:[\\/]*)
6418 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6419 ;;
6420 *)
6421 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6422 for ac_dir in $PATH; do
6423 IFS="$ac_save_IFS"
6424 test -z "$ac_dir" && ac_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6427 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6428 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
57aa50d4
TT
6429 (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
6430 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6431 break 2
6432 fi
6433 fi
6434 done
6435 done
6436 IFS="$ac_save_IFS"
6437 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6438 ;;
e1052144 6439esac
b0cacab0 6440fi
57aa50d4
TT
6441XGETTEXT="$ac_cv_path_XGETTEXT"
6442if test "$XGETTEXT" != ":"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6444$as_echo "$XGETTEXT" >&6; }
6445else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447$as_echo "no" >&6; }
b0cacab0 6448fi
b0cacab0 6449
57aa50d4 6450 rm -f messages.po
a64c9c13 6451
93613951
TT
6452 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6453 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6454 *) XGETTEXT_015=$XGETTEXT ;;
6455 esac
6456
6457
b0cacab0 6458
57aa50d4
TT
6459# Prepare PATH_SEPARATOR.
6460# The user is always right.
6461if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6462 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6463 # contains only /bin. Note that ksh looks also at the FPATH variable,
6464 # so we have to set that as well for the test.
6465 PATH_SEPARATOR=:
6466 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6467 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6468 || PATH_SEPARATOR=';'
6469 }
57aa50d4 6470fi
b0cacab0 6471
57aa50d4
TT
6472# Find out how to test for executable files. Don't use a zero-byte file,
6473# as systems may use methods other than mode bits to determine executability.
6474cat >conf$$.file <<_ASEOF
6475#! /bin/sh
6476exit 0
6477_ASEOF
6478chmod +x conf$$.file
6479if test -x conf$$.file >/dev/null 2>&1; then
6480 ac_executable_p="test -x"
6481else
6482 ac_executable_p="test -f"
6483fi
6484rm -f conf$$.file
6485
6486# Extract the first word of "msgmerge", so it can be a program name with args.
6487set dummy msgmerge; ac_word=$2
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 6490if ${ac_cv_path_MSGMERGE+:} false; then :
39fd3d4f 6491 $as_echo_n "(cached) " >&6
b0cacab0 6492else
57aa50d4
TT
6493 case "$MSGMERGE" in
6494 [\\/]* | ?:[\\/]*)
6495 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6496 ;;
6497 *)
6498 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6499 for ac_dir in $PATH; do
6500 IFS="$ac_save_IFS"
6501 test -z "$ac_dir" && ac_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6504 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6505 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
57aa50d4
TT
6506 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6507 break 2
6508 fi
6509 fi
6510 done
6511 done
6512 IFS="$ac_save_IFS"
6513 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6514 ;;
e1052144 6515esac
57aa50d4
TT
6516fi
6517MSGMERGE="$ac_cv_path_MSGMERGE"
6518if test "$MSGMERGE" != ":"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6520$as_echo "$MSGMERGE" >&6; }
b0cacab0 6521else
57aa50d4
TT
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523$as_echo "no" >&6; }
b0cacab0 6524fi
e1052144 6525
93636bde 6526
93613951
TT
6527 test -n "$localedir" || localedir='${datadir}/locale'
6528
6529
6530 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6531
6532
6533 ac_config_commands="$ac_config_commands po-directories"
a64c9c13 6534
a64c9c13 6535
93613951
TT
6536
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6538$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6539if ${ac_cv_gnu_library_2+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541else
6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543/* end confdefs.h. */
6544
6545#include <features.h>
6546#ifdef __GNU_LIBRARY__
6547 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6548 Lucky GNU user
6549 #endif
6550#endif
6551
6552_ACEOF
6553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6554 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6555 ac_cv_gnu_library_2=yes
6556else
6557 ac_cv_gnu_library_2=no
6558fi
6559rm -f conftest*
6560
6561
6562
6563fi
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6565$as_echo "$ac_cv_gnu_library_2" >&6; }
6566
6567 GLIBC2="$ac_cv_gnu_library_2"
57aa50d4 6568
a64c9c13 6569
57aa50d4
TT
6570if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6572set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 6575if ${ac_cv_prog_RANLIB+:} false; then :
39fd3d4f 6576 $as_echo_n "(cached) " >&6
b0cacab0 6577else
57aa50d4
TT
6578 if test -n "$RANLIB"; then
6579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
b0cacab0 6580else
57aa50d4
TT
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
6588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6591 fi
6592done
6593 done
6594IFS=$as_save_IFS
d1154eb4
TT
6595
6596fi
6597fi
6598RANLIB=$ac_cv_prog_RANLIB
6599if test -n "$RANLIB"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6601$as_echo "$RANLIB" >&6; }
6602else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604$as_echo "no" >&6; }
6605fi
6606
6607
6608fi
6609if test -z "$ac_cv_prog_RANLIB"; then
6610 ac_ct_RANLIB=$RANLIB
6611 # Extract the first word of "ranlib", so it can be a program name with args.
6612set dummy ranlib; ac_word=$2
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 6615if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d1154eb4
TT
6616 $as_echo_n "(cached) " >&6
6617else
6618 if test -n "$ac_ct_RANLIB"; then
6619 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 6627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d1154eb4
TT
6628 ac_cv_prog_ac_ct_RANLIB="ranlib"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6631 fi
6632done
6633 done
6634IFS=$as_save_IFS
6635
6636fi
6637fi
6638ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6639if test -n "$ac_ct_RANLIB"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6641$as_echo "$ac_ct_RANLIB" >&6; }
6642else
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644$as_echo "no" >&6; }
6645fi
6646
6647 if test "x$ac_ct_RANLIB" = x; then
6648 RANLIB=":"
6649 else
6650 case $cross_compiling:$ac_tool_warned in
6651yes:)
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654ac_tool_warned=yes ;;
6655esac
6656 RANLIB=$ac_ct_RANLIB
6657 fi
6658else
6659 RANLIB="$ac_cv_prog_RANLIB"
6660fi
6661
6662
93613951
TT
6663
6664 CFLAG_VISIBILITY=
6665 HAVE_VISIBILITY=0
6666 if test -n "$GCC"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6668$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6669 if ${gl_cv_cc_vis_werror+:} false; then :
d1154eb4
TT
6670 $as_echo_n "(cached) " >&6
6671else
93613951
TT
6672
6673 gl_save_CFLAGS="$CFLAGS"
6674 CFLAGS="$CFLAGS -Werror"
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
6676/* end confdefs.h. */
6677
d1154eb4
TT
6678int
6679main ()
6680{
93613951 6681
d1154eb4
TT
6682 ;
6683 return 0;
6684}
6685_ACEOF
93613951
TT
6686if ac_fn_c_try_compile "$LINENO"; then :
6687 gl_cv_cc_vis_werror=yes
d1154eb4 6688else
93613951 6689 gl_cv_cc_vis_werror=no
d1154eb4 6690fi
93613951
TT
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 CFLAGS="$gl_save_CFLAGS"
d1154eb4
TT
6693fi
6694
93613951
TT
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6696$as_echo "$gl_cv_cc_vis_werror" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6698$as_echo_n "checking for simple visibility declarations... " >&6; }
6699 if ${gl_cv_cc_visibility+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701else
d1154eb4 6702
93613951
TT
6703 gl_save_CFLAGS="$CFLAGS"
6704 CFLAGS="$CFLAGS -fvisibility=hidden"
6705 if test $gl_cv_cc_vis_werror = yes; then
6706 CFLAGS="$CFLAGS -Werror"
6707 fi
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709/* end confdefs.h. */
6710extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6711 extern __attribute__((__visibility__("default"))) int exportedvar;
6712 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6713 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6714 void dummyfunc (void) {}
d1154eb4 6715
93613951
TT
6716int
6717main ()
6718{
d1154eb4 6719
93613951
TT
6720 ;
6721 return 0;
6722}
6723_ACEOF
6724if ac_fn_c_try_compile "$LINENO"; then :
6725 gl_cv_cc_visibility=yes
d1154eb4 6726else
93613951
TT
6727 gl_cv_cc_visibility=no
6728fi
6729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 CFLAGS="$gl_save_CFLAGS"
6731fi
d1154eb4 6732
93613951
TT
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6734$as_echo "$gl_cv_cc_visibility" >&6; }
6735 if test $gl_cv_cc_visibility = yes; then
6736 CFLAG_VISIBILITY="-fvisibility=hidden"
6737 HAVE_VISIBILITY=1
6738 fi
d1154eb4 6739 fi
93613951
TT
6740
6741
6742
6743cat >>confdefs.h <<_ACEOF
6744#define HAVE_VISIBILITY $HAVE_VISIBILITY
6745_ACEOF
6746
6747
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6749$as_echo_n "checking for inline... " >&6; }
6750if ${ac_cv_c_inline+:} false; then :
6751 $as_echo_n "(cached) " >&6
d1154eb4 6752else
93613951
TT
6753 ac_cv_c_inline=no
6754for ac_kw in inline __inline__ __inline; do
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h. */
6757#ifndef __cplusplus
6758typedef int foo_t;
6759static $ac_kw foo_t static_foo () {return 0; }
6760$ac_kw foo_t foo () {return 0; }
6761#endif
6762
6763_ACEOF
6764if ac_fn_c_try_compile "$LINENO"; then :
6765 ac_cv_c_inline=$ac_kw
d1154eb4 6766fi
93613951
TT
6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 test "$ac_cv_c_inline" != no && break
6769done
d1154eb4
TT
6770
6771fi
93613951
TT
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6773$as_echo "$ac_cv_c_inline" >&6; }
d1154eb4 6774
93613951
TT
6775case $ac_cv_c_inline in
6776 inline | yes) ;;
6777 *)
6778 case $ac_cv_c_inline in
6779 no) ac_val=;;
6780 *) ac_val=$ac_cv_c_inline;;
6781 esac
6782 cat >>confdefs.h <<_ACEOF
6783#ifndef __cplusplus
6784#define inline $ac_val
6785#endif
6786_ACEOF
6787 ;;
6788esac
d1154eb4 6789
93613951
TT
6790ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6791if test "x$ac_cv_type_size_t" = xyes; then :
d1154eb4 6792
57aa50d4 6793else
b0cacab0 6794
93613951
TT
6795cat >>confdefs.h <<_ACEOF
6796#define size_t unsigned int
6797_ACEOF
6798
57aa50d4 6799fi
d1154eb4
TT
6800
6801
93613951
TT
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6803$as_echo_n "checking for stdint.h... " >&6; }
6804if ${gl_cv_header_stdint_h+:} false; then :
57aa50d4
TT
6805 $as_echo_n "(cached) " >&6
6806else
d1154eb4
TT
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h. */
93613951
TT
6809#include <sys/types.h>
6810 #include <stdint.h>
d1154eb4
TT
6811int
6812main ()
6813{
93613951 6814uintmax_t i = (uintmax_t) -1; return !i;
d1154eb4
TT
6815 ;
6816 return 0;
6817}
6818_ACEOF
6819if ac_fn_c_try_compile "$LINENO"; then :
93613951 6820 gl_cv_header_stdint_h=yes
d1154eb4 6821else
93613951 6822 gl_cv_header_stdint_h=no
57aa50d4 6823fi
d1154eb4 6824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4 6825fi
93613951
TT
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6827$as_echo "$gl_cv_header_stdint_h" >&6; }
6828 if test $gl_cv_header_stdint_h = yes; then
d1154eb4 6829
93613951
TT
6830cat >>confdefs.h <<_ACEOF
6831#define HAVE_STDINT_H_WITH_UINTMAX 1
d1154eb4 6832_ACEOF
b0cacab0 6833
93613951 6834 fi
b0cacab0 6835
93613951
TT
6836# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6837# for constant arguments. Useless!
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6839$as_echo_n "checking for working alloca.h... " >&6; }
6840if ${ac_cv_working_alloca_h+:} false; then :
6841 $as_echo_n "(cached) " >&6
b0cacab0 6842else
d1154eb4 6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6844/* end confdefs.h. */
93613951 6845#include <alloca.h>
a64c9c13 6846int
b0cacab0
TT
6847main ()
6848{
93613951
TT
6849char *p = (char *) alloca (2 * sizeof (int));
6850 if (p) return 0;
6851 ;
b0cacab0 6852 return 0;
a64c9c13 6853}
b0cacab0 6854_ACEOF
93613951
TT
6855if ac_fn_c_try_link "$LINENO"; then :
6856 ac_cv_working_alloca_h=yes
b0cacab0 6857else
93613951 6858 ac_cv_working_alloca_h=no
b0cacab0 6859fi
93613951
TT
6860rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
d1154eb4 6862fi
93613951
TT
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6864$as_echo "$ac_cv_working_alloca_h" >&6; }
6865if test $ac_cv_working_alloca_h = yes; then
b0cacab0 6866
93613951 6867$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
b0cacab0 6868
d1154eb4 6869fi
b0cacab0 6870
93613951
TT
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6872$as_echo_n "checking for alloca... " >&6; }
6873if ${ac_cv_func_alloca_works+:} false; then :
39fd3d4f 6874 $as_echo_n "(cached) " >&6
a64c9c13 6875else
57aa50d4 6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6877/* end confdefs.h. */
93613951
TT
6878#ifdef __GNUC__
6879# define alloca __builtin_alloca
6880#else
6881# ifdef _MSC_VER
6882# include <malloc.h>
6883# define alloca _alloca
6884# else
6885# ifdef HAVE_ALLOCA_H
6886# include <alloca.h>
6887# else
6888# ifdef _AIX
6889 #pragma alloca
6890# else
6891# ifndef alloca /* predefined by HP cc +Olibcalls */
6892void *alloca (size_t);
6893# endif
6894# endif
6895# endif
6896# endif
6897#endif
b0cacab0 6898
57aa50d4
TT
6899int
6900main ()
6901{
93613951
TT
6902char *p = (char *) alloca (1);
6903 if (p) return 0;
57aa50d4
TT
6904 ;
6905 return 0;
6906}
b0cacab0 6907_ACEOF
93613951
TT
6908if ac_fn_c_try_link "$LINENO"; then :
6909 ac_cv_func_alloca_works=yes
b0cacab0 6910else
93613951 6911 ac_cv_func_alloca_works=no
57aa50d4 6912fi
93613951
TT
6913rm -f core conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
57aa50d4 6915fi
93613951
TT
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6917$as_echo "$ac_cv_func_alloca_works" >&6; }
57aa50d4 6918
93613951 6919if test $ac_cv_func_alloca_works = yes; then
b0cacab0 6920
93613951 6921$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
b0cacab0
TT
6922
6923else
93613951
TT
6924 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6925# that cause trouble. Some versions do not even contain alloca or
6926# contain a buggy version. If you still want to use their alloca,
6927# use ar to extract alloca.o from them instead of compiling alloca.c.
b0cacab0 6928
93613951 6929ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
57aa50d4 6930
93613951 6931$as_echo "#define C_ALLOCA 1" >>confdefs.h
57aa50d4 6932
57aa50d4 6933
93613951
TT
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6935$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6936if ${ac_cv_os_cray+:} false; then :
57aa50d4
TT
6937 $as_echo_n "(cached) " >&6
6938else
57aa50d4
TT
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940/* end confdefs.h. */
93613951
TT
6941#if defined CRAY && ! defined CRAY2
6942webecray
6943#else
6944wenotbecray
57aa50d4 6945#endif
b0cacab0 6946
57aa50d4 6947_ACEOF
93613951
TT
6948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6949 $EGREP "webecray" >/dev/null 2>&1; then :
6950 ac_cv_os_cray=yes
6951else
6952 ac_cv_os_cray=no
b0cacab0 6953fi
93613951 6954rm -f conftest*
d1154eb4
TT
6955
6956fi
93613951
TT
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6958$as_echo "$ac_cv_os_cray" >&6; }
6959if test $ac_cv_os_cray = yes; then
6960 for ac_func in _getb67 GETB67 getb67; do
6961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6962ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6963if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
e1052144 6964
57aa50d4 6965cat >>confdefs.h <<_ACEOF
93613951 6966#define CRAY_STACKSEG_END $ac_func
57aa50d4 6967_ACEOF
e1052144 6968
93613951 6969 break
a64c9c13 6970fi
07a0db15 6971
93613951 6972 done
57aa50d4 6973fi
b0cacab0 6974
93613951
TT
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6976$as_echo_n "checking stack direction for C alloca... " >&6; }
6977if ${ac_cv_c_stack_direction+:} false; then :
39fd3d4f 6978 $as_echo_n "(cached) " >&6
93613951
TT
6979else
6980 if test "$cross_compiling" = yes; then :
6981 ac_cv_c_stack_direction=0
b0cacab0 6982else
57aa50d4 6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6984/* end confdefs.h. */
93613951 6985$ac_includes_default
b0cacab0 6986int
93613951 6987find_stack_direction (int *addr, int depth)
b0cacab0 6988{
93613951
TT
6989 int dir, dummy = 0;
6990 if (! addr)
6991 addr = &dummy;
6992 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6993 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6994 return dir + dummy;
b0cacab0 6995}
93636bde 6996
b0cacab0 6997int
93613951 6998main (int argc, char **argv)
b0cacab0 6999{
93613951 7000 return find_stack_direction (0, argc + !argv + 20) < 0;
b0cacab0
TT
7001}
7002_ACEOF
93613951
TT
7003if ac_fn_c_try_run "$LINENO"; then :
7004 ac_cv_c_stack_direction=1
a64c9c13 7005else
93613951 7006 ac_cv_c_stack_direction=-1
b0cacab0 7007fi
93613951
TT
7008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7009 conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0 7010fi
b0cacab0 7011
93613951
TT
7012fi
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7014$as_echo "$ac_cv_c_stack_direction" >&6; }
7015cat >>confdefs.h <<_ACEOF
7016#define STACK_DIRECTION $ac_cv_c_stack_direction
7017_ACEOF
57aa50d4 7018
b0cacab0 7019
57aa50d4 7020fi
b0cacab0 7021
57aa50d4
TT
7022
7023
b0cacab0 7024
93613951
TT
7025 for ac_header in $ac_header_list
7026do :
7027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7028ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7029"
7030if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7031 cat >>confdefs.h <<_ACEOF
7032#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 7033_ACEOF
93613951 7034
a64c9c13 7035fi
07a0db15 7036
93613951 7037done
a64c9c13 7038
a64c9c13 7039
b0cacab0 7040
b0cacab0 7041
a04eba3f 7042
a04eba3f 7043
b0cacab0 7044
b0cacab0 7045
93613951
TT
7046for ac_func in getpagesize
7047do :
7048 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7049if test "x$ac_cv_func_getpagesize" = xyes; then :
7050 cat >>confdefs.h <<_ACEOF
7051#define HAVE_GETPAGESIZE 1
b0cacab0
TT
7052_ACEOF
7053
93613951
TT
7054fi
7055done
b0cacab0 7056
93613951
TT
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7058$as_echo_n "checking for working mmap... " >&6; }
7059if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
39fd3d4f 7060 $as_echo_n "(cached) " >&6
93613951
TT
7061else
7062 if test "$cross_compiling" = yes; then :
7063 ac_cv_func_mmap_fixed_mapped=no
b0cacab0 7064else
57aa50d4 7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7066/* end confdefs.h. */
93613951
TT
7067$ac_includes_default
7068/* malloc might have been renamed as rpl_malloc. */
7069#undef malloc
57aa50d4 7070
93613951
TT
7071/* Thanks to Mike Haertel and Jim Avera for this test.
7072 Here is a matrix of mmap possibilities:
7073 mmap private not fixed
7074 mmap private fixed at somewhere currently unmapped
7075 mmap private fixed at somewhere already mapped
7076 mmap shared not fixed
7077 mmap shared fixed at somewhere currently unmapped
7078 mmap shared fixed at somewhere already mapped
7079 For private mappings, we should verify that changes cannot be read()
7080 back from the file, nor mmap's back from the file at a different
7081 address. (There have been systems where private was not correctly
7082 implemented like the infamous i386 svr4.0, and systems where the
7083 VM page cache was not coherent with the file system buffer cache
7084 like early versions of FreeBSD and possibly contemporary NetBSD.)
7085 For shared mappings, we should conversely verify that changes get
7086 propagated back to all the places they're supposed to be.
7087
7088 Grep wants private fixed already mapped.
7089 The main things grep needs to know about mmap are:
7090 * does it exist and is it safe to write into the mmap'd area
7091 * how to use it (BSD variants) */
7092
7093#include <fcntl.h>
7094#include <sys/mman.h>
7095
7096#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7097char *malloc ();
57aa50d4
TT
7098#endif
7099
93613951
TT
7100/* This mess was copied from the GNU getpagesize.h. */
7101#ifndef HAVE_GETPAGESIZE
7102# ifdef _SC_PAGESIZE
7103# define getpagesize() sysconf(_SC_PAGESIZE)
7104# else /* no _SC_PAGESIZE */
7105# ifdef HAVE_SYS_PARAM_H
7106# include <sys/param.h>
7107# ifdef EXEC_PAGESIZE
7108# define getpagesize() EXEC_PAGESIZE
7109# else /* no EXEC_PAGESIZE */
7110# ifdef NBPG
7111# define getpagesize() NBPG * CLSIZE
7112# ifndef CLSIZE
7113# define CLSIZE 1
7114# endif /* no CLSIZE */
7115# else /* no NBPG */
7116# ifdef NBPC
7117# define getpagesize() NBPC
7118# else /* no NBPC */
7119# ifdef PAGESIZE
7120# define getpagesize() PAGESIZE
7121# endif /* PAGESIZE */
7122# endif /* no NBPC */
7123# endif /* no NBPG */
7124# endif /* no EXEC_PAGESIZE */
7125# else /* no HAVE_SYS_PARAM_H */
7126# define getpagesize() 8192 /* punt totally */
7127# endif /* no HAVE_SYS_PARAM_H */
7128# endif /* no _SC_PAGESIZE */
7129
7130#endif /* no HAVE_GETPAGESIZE */
7131
57aa50d4
TT
7132int
7133main ()
7134{
93613951
TT
7135 char *data, *data2, *data3;
7136 const char *cdata2;
7137 int i, pagesize;
7138 int fd, fd2;
7139
7140 pagesize = getpagesize ();
7141
7142 /* First, make a file with some known garbage in it. */
7143 data = (char *) malloc (pagesize);
7144 if (!data)
7145 return 1;
7146 for (i = 0; i < pagesize; ++i)
7147 *(data + i) = rand ();
7148 umask (0);
7149 fd = creat ("conftest.mmap", 0600);
7150 if (fd < 0)
7151 return 2;
7152 if (write (fd, data, pagesize) != pagesize)
7153 return 3;
7154 close (fd);
7155
7156 /* Next, check that the tail of a page is zero-filled. File must have
7157 non-zero length, otherwise we risk SIGBUS for entire page. */
7158 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7159 if (fd2 < 0)
7160 return 4;
7161 cdata2 = "";
7162 if (write (fd2, cdata2, 1) != 1)
7163 return 5;
7164 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7165 if (data2 == MAP_FAILED)
7166 return 6;
7167 for (i = 0; i < pagesize; ++i)
7168 if (*(data2 + i))
7169 return 7;
7170 close (fd2);
7171 if (munmap (data2, pagesize))
7172 return 8;
7173
7174 /* Next, try to mmap the file at a fixed address which already has
7175 something else allocated at it. If we can, also make sure that
7176 we see the same garbage. */
7177 fd = open ("conftest.mmap", O_RDWR);
7178 if (fd < 0)
7179 return 9;
7180 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7181 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7182 return 10;
7183 for (i = 0; i < pagesize; ++i)
7184 if (*(data + i) != *(data2 + i))
7185 return 11;
7186
7187 /* Finally, make sure that changes to the mapped area do not
7188 percolate back to the file as seen by read(). (This is a bug on
7189 some variants of i386 svr4.0.) */
7190 for (i = 0; i < pagesize; ++i)
7191 *(data2 + i) = *(data2 + i) + 1;
7192 data3 = (char *) malloc (pagesize);
7193 if (!data3)
7194 return 12;
7195 if (read (fd, data3, pagesize) != pagesize)
7196 return 13;
7197 for (i = 0; i < pagesize; ++i)
7198 if (*(data + i) != *(data3 + i))
7199 return 14;
7200 close (fd);
57aa50d4
TT
7201 return 0;
7202}
b0cacab0 7203_ACEOF
93613951
TT
7204if ac_fn_c_try_run "$LINENO"; then :
7205 ac_cv_func_mmap_fixed_mapped=yes
b0cacab0 7206else
93613951 7207 ac_cv_func_mmap_fixed_mapped=no
b0cacab0 7208fi
93613951
TT
7209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7210 conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 7211fi
b0cacab0 7212
93613951
TT
7213fi
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7215$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7216if test $ac_cv_func_mmap_fixed_mapped = yes; then
b0cacab0 7217
93613951 7218$as_echo "#define HAVE_MMAP 1" >>confdefs.h
e1052144 7219
93613951
TT
7220fi
7221rm -f conftest.mmap conftest.txt
b0cacab0 7222
e1052144 7223
93613951
TT
7224
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7226$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7227if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
39fd3d4f 7228 $as_echo_n "(cached) " >&6
b0cacab0 7229else
b0cacab0 7230
93613951
TT
7231 gt_cv_int_divbyzero_sigfpe=
7232 case "$host_os" in
7233 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7234 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7235 # compiling. If we were to perform the real test, 1 Crash Report
7236 # dialog window would pop up.
7237 case "$host_cpu" in
7238 i[34567]86 | x86_64)
7239 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7240 esac
7241 ;;
7242 esac
7243 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7244 if test "$cross_compiling" = yes; then :
7245
7246 # Guess based on the CPU.
7247 case "$host_cpu" in
7248 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7249 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7250 *)
7251 gt_cv_int_divbyzero_sigfpe="guessing no";;
7252 esac
57aa50d4 7253
93613951
TT
7254else
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4
TT
7256/* end confdefs.h. */
7257
93613951
TT
7258#include <stdlib.h>
7259#include <signal.h>
b0cacab0 7260
93613951
TT
7261static void
7262sigfpe_handler (int sig)
7263{
7264 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7265 exit (sig != SIGFPE);
7266}
b0cacab0 7267
93613951
TT
7268int x = 1;
7269int y = 0;
7270int z;
7271int nan;
b0cacab0 7272
57aa50d4
TT
7273int main ()
7274{
93613951
TT
7275 signal (SIGFPE, sigfpe_handler);
7276/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7277#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7278 signal (SIGTRAP, sigfpe_handler);
7279#endif
7280/* Linux/SPARC yields signal SIGILL. */
7281#if defined (__sparc__) && defined (__linux__)
7282 signal (SIGILL, sigfpe_handler);
7283#endif
7284
7285 z = x / y;
7286 nan = y / y;
7287 exit (2);
57aa50d4 7288}
93613951 7289
57aa50d4
TT
7290_ACEOF
7291if ac_fn_c_try_run "$LINENO"; then :
93613951 7292 gt_cv_int_divbyzero_sigfpe=yes
57aa50d4 7293else
93613951 7294 gt_cv_int_divbyzero_sigfpe=no
57aa50d4
TT
7295fi
7296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7297 conftest.$ac_objext conftest.beam conftest.$ac_ext
7298fi
7299
93613951 7300 fi
57aa50d4
TT
7301
7302fi
93613951
TT
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7304$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7305 case "$gt_cv_int_divbyzero_sigfpe" in
7306 *yes) value=1;;
7307 *) value=0;;
7308 esac
57aa50d4 7309
93613951
TT
7310cat >>confdefs.h <<_ACEOF
7311#define INTDIV0_RAISES_SIGFPE $value
7312_ACEOF
57aa50d4 7313
57aa50d4 7314
93613951
TT
7315
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7317$as_echo_n "checking for inttypes.h... " >&6; }
7318if ${gl_cv_header_inttypes_h+:} false; then :
39fd3d4f 7319 $as_echo_n "(cached) " >&6
b0cacab0 7320else
57aa50d4 7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7322/* end confdefs.h. */
93613951
TT
7323
7324#include <sys/types.h>
7325#include <inttypes.h>
7326
57aa50d4
TT
7327int
7328main ()
7329{
93613951 7330uintmax_t i = (uintmax_t) -1; return !i;
57aa50d4
TT
7331 ;
7332 return 0;
7333}
7334_ACEOF
93613951
TT
7335if ac_fn_c_try_compile "$LINENO"; then :
7336 gl_cv_header_inttypes_h=yes
57aa50d4 7337else
93613951 7338 gl_cv_header_inttypes_h=no
57aa50d4 7339fi
93613951 7340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4 7341fi
93613951
TT
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7343$as_echo "$gl_cv_header_inttypes_h" >&6; }
7344 if test $gl_cv_header_inttypes_h = yes; then
b0cacab0 7345
93613951
TT
7346cat >>confdefs.h <<_ACEOF
7347#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7348_ACEOF
b0cacab0 7349
93613951 7350 fi
57aa50d4 7351
93613951
TT
7352
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7354$as_echo_n "checking for unsigned long long int... " >&6; }
7355if ${ac_cv_type_unsigned_long_long_int+:} false; then :
57aa50d4
TT
7356 $as_echo_n "(cached) " >&6
7357else
93613951
TT
7358 ac_cv_type_unsigned_long_long_int=yes
7359 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 7361/* end confdefs.h. */
b0cacab0 7362
93613951
TT
7363 /* For now, do not test the preprocessor; as of 2007 there are too many
7364 implementations with broken preprocessors. Perhaps this can
7365 be revisited in 2012. In the meantime, code should not expect
7366 #if to work with literals wider than 32 bits. */
7367 /* Test literals. */
7368 long long int ll = 9223372036854775807ll;
7369 long long int nll = -9223372036854775807LL;
7370 unsigned long long int ull = 18446744073709551615ULL;
7371 /* Test constant expressions. */
7372 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7373 ? 1 : -1)];
7374 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7375 ? 1 : -1)];
7376 int i = 63;
57aa50d4
TT
7377int
7378main ()
7379{
93613951
TT
7380/* Test availability of runtime routines for shift and division. */
7381 long long int llmax = 9223372036854775807ll;
7382 unsigned long long int ullmax = 18446744073709551615ull;
7383 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7384 | (llmax / ll) | (llmax % ll)
7385 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7386 | (ullmax / ull) | (ullmax % ull));
57aa50d4
TT
7387 ;
7388 return 0;
7389}
93613951 7390
57aa50d4
TT
7391_ACEOF
7392if ac_fn_c_try_link "$LINENO"; then :
93613951 7393
57aa50d4 7394else
93613951 7395 ac_cv_type_unsigned_long_long_int=no
57aa50d4
TT
7396fi
7397rm -f core conftest.err conftest.$ac_objext \
7398 conftest$ac_exeext conftest.$ac_ext
93613951 7399 fi
57aa50d4 7400fi
93613951
TT
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7402$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7403 if test $ac_cv_type_unsigned_long_long_int = yes; then
b0cacab0 7404
93613951 7405$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
57aa50d4 7406
93613951 7407 fi
57aa50d4 7408
57aa50d4 7409
57aa50d4 7410
57aa50d4 7411
93613951 7412 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
57aa50d4 7413
93613951
TT
7414 test $ac_cv_type_unsigned_long_long_int = yes \
7415 && ac_type='unsigned long long' \
7416 || ac_type='unsigned long'
b0cacab0 7417
93613951
TT
7418cat >>confdefs.h <<_ACEOF
7419#define uintmax_t $ac_type
57aa50d4 7420_ACEOF
57aa50d4 7421
93613951 7422 else
57aa50d4 7423
93613951
TT
7424$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7425
7426 fi
7427
7428
7429 for ac_header in inttypes.h
7430do :
7431 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7432if test "x$ac_cv_header_inttypes_h" = xyes; then :
7433 cat >>confdefs.h <<_ACEOF
7434#define HAVE_INTTYPES_H 1
57aa50d4
TT
7435_ACEOF
7436
57aa50d4
TT
7437fi
7438
93613951 7439done
57aa50d4 7440
93613951
TT
7441 if test $ac_cv_header_inttypes_h = yes; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7443$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7444if ${gt_cv_inttypes_pri_broken+:} false; then :
57aa50d4
TT
7445 $as_echo_n "(cached) " >&6
7446else
93613951
TT
7447
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 7449/* end confdefs.h. */
93613951
TT
7450
7451#include <inttypes.h>
7452#ifdef PRId32
7453char *p = PRId32;
7454#endif
57aa50d4 7455
b0cacab0 7456int
93613951 7457main ()
b0cacab0 7458{
93613951
TT
7459
7460 ;
7461 return 0;
b0cacab0
TT
7462}
7463_ACEOF
93613951
TT
7464if ac_fn_c_try_compile "$LINENO"; then :
7465 gt_cv_inttypes_pri_broken=no
b0cacab0 7466else
93613951 7467 gt_cv_inttypes_pri_broken=yes
57aa50d4 7468fi
93613951 7469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
7470
7471fi
93613951
TT
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7473$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7474 fi
7475 if test "$gt_cv_inttypes_pri_broken" = yes; then
7476
57aa50d4 7477cat >>confdefs.h <<_ACEOF
93613951 7478#define PRI_MACROS_BROKEN 1
57aa50d4
TT
7479_ACEOF
7480
93613951
TT
7481 PRI_MACROS_BROKEN=1
7482 else
7483 PRI_MACROS_BROKEN=0
7484 fi
7485
b0cacab0 7486
e1052144 7487
61ef2474
TT
7488
7489
7490
93613951
TT
7491
7492 # Check whether --enable-threads was given.
7493if test "${enable_threads+set}" = set; then :
7494 enableval=$enable_threads; gl_use_threads=$enableval
7495else
7496 if test -n "$gl_use_threads_default"; then
7497 gl_use_threads="$gl_use_threads_default"
7498 else
7499 case "$host_os" in
7500 osf*) gl_use_threads=no ;;
7501 cygwin*)
7502 case `uname -r` in
7503 1.[0-5].*) gl_use_threads=no ;;
7504 *) gl_use_threads=yes ;;
7505 esac
7506 ;;
7507 *) gl_use_threads=yes ;;
7508 esac
7509 fi
57aa50d4 7510
b0cacab0 7511fi
57aa50d4 7512
93613951
TT
7513 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7514 # For using <pthread.h>:
7515 case "$host_os" in
7516 osf*)
7517 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7518 # groks <pthread.h>. cc also understands the flag -pthread, but
7519 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7520 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7521 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7522 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7523 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7524 ;;
7525 esac
7526 # Some systems optimize for single-threaded programs by default, and
7527 # need special flags to disable these optimizations. For example, the
7528 # definition of 'errno' in <errno.h>.
7529 case "$host_os" in
7530 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7531 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7532 esac
7533 fi
57aa50d4 7534
61ef2474
TT
7535
7536
7537
7538
93613951
TT
7539 if test "X$prefix" = "XNONE"; then
7540 acl_final_prefix="$ac_default_prefix"
7541 else
7542 acl_final_prefix="$prefix"
7543 fi
7544 if test "X$exec_prefix" = "XNONE"; then
7545 acl_final_exec_prefix='${prefix}'
7546 else
7547 acl_final_exec_prefix="$exec_prefix"
7548 fi
7549 acl_save_prefix="$prefix"
7550 prefix="$acl_final_prefix"
7551 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7552 prefix="$acl_save_prefix"
61ef2474
TT
7553
7554
7555
93613951
TT
7556# Check whether --with-gnu-ld was given.
7557if test "${with_gnu_ld+set}" = set; then :
7558 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7559else
7560 with_gnu_ld=no
7561fi
b0cacab0 7562
93613951
TT
7563# Prepare PATH_SEPARATOR.
7564# The user is always right.
7565if test "${PATH_SEPARATOR+set}" != set; then
7566 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7567 # contains only /bin. Note that ksh looks also at the FPATH variable,
7568 # so we have to set that as well for the test.
7569 PATH_SEPARATOR=:
7570 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7571 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7572 || PATH_SEPARATOR=';'
7573 }
b0cacab0 7574fi
b0cacab0 7575
93613951
TT
7576ac_prog=ld
7577if test "$GCC" = yes; then
7578 # Check if gcc -print-prog-name=ld gives a path.
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7580$as_echo_n "checking for ld used by $CC... " >&6; }
7581 case $host in
7582 *-*-mingw*)
7583 # gcc leaves a trailing carriage return which upsets mingw
7584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7585 *)
7586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7587 esac
7588 case $ac_prog in
7589 # Accept absolute paths.
7590 [\\/]* | ?:[\\/]*)
7591 re_direlt='/[^/][^/]*/\.\./'
7592 # Canonicalize the pathname of ld
7593 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7594 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7595 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7596 done
7597 test -z "$LD" && LD="$ac_prog"
7598 ;;
7599 "")
7600 # If it fails, then pretend we aren't using GCC.
7601 ac_prog=ld
7602 ;;
7603 *)
7604 # If it is relative, then search for the first ld in PATH.
7605 with_gnu_ld=unknown
7606 ;;
7607 esac
7608elif test "$with_gnu_ld" = yes; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7610$as_echo_n "checking for GNU ld... " >&6; }
b0cacab0 7611else
93613951
TT
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7613$as_echo_n "checking for non-GNU ld... " >&6; }
7614fi
7615if ${acl_cv_path_LD+:} false; then :
7616 $as_echo_n "(cached) " >&6
b0cacab0 7617else
93613951
TT
7618 if test -z "$LD"; then
7619 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7620 for ac_dir in $PATH; do
7621 IFS="$acl_save_ifs"
7622 test -z "$ac_dir" && ac_dir=.
7623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7624 acl_cv_path_LD="$ac_dir/$ac_prog"
7625 # Check to see if the program is GNU ld. I'd rather use --version,
7626 # but apparently some variants of GNU ld only accept -v.
7627 # Break only if it was the GNU/non-GNU ld that we prefer.
7628 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7629 *GNU* | *'with BFD'*)
7630 test "$with_gnu_ld" != no && break
7631 ;;
7632 *)
7633 test "$with_gnu_ld" != yes && break
7634 ;;
7635 esac
7636 fi
7637 done
7638 IFS="$acl_save_ifs"
7639else
7640 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7641fi
7642fi
b0cacab0 7643
93613951
TT
7644LD="$acl_cv_path_LD"
7645if test -n "$LD"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7647$as_echo "$LD" >&6; }
7648else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651fi
7652test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7654$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7655if ${acl_cv_prog_gnu_ld+:} false; then :
7656 $as_echo_n "(cached) " >&6
7657else
7658 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7659case `$LD -v 2>&1 </dev/null` in
7660*GNU* | *'with BFD'*)
7661 acl_cv_prog_gnu_ld=yes
7662 ;;
7663*)
7664 acl_cv_prog_gnu_ld=no
7665 ;;
7666esac
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7669$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7670with_gnu_ld=$acl_cv_prog_gnu_ld
b0cacab0 7671
b0cacab0 7672
b0cacab0 7673
b0cacab0 7674
93613951
TT
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7676$as_echo_n "checking for shared library run path origin... " >&6; }
7677if ${acl_cv_rpath+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679else
61ef2474 7680
93613951
TT
7681 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7682 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7683 . ./conftest.sh
7684 rm -f ./conftest.sh
7685 acl_cv_rpath=done
b0cacab0 7686
b0cacab0 7687fi
93613951
TT
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7689$as_echo "$acl_cv_rpath" >&6; }
7690 wl="$acl_cv_wl"
7691 acl_libext="$acl_cv_libext"
7692 acl_shlibext="$acl_cv_shlibext"
7693 acl_libname_spec="$acl_cv_libname_spec"
7694 acl_library_names_spec="$acl_cv_library_names_spec"
7695 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7696 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7697 acl_hardcode_direct="$acl_cv_hardcode_direct"
7698 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7699 # Check whether --enable-rpath was given.
7700if test "${enable_rpath+set}" = set; then :
7701 enableval=$enable_rpath; :
7702else
7703 enable_rpath=yes
b0cacab0 7704fi
b0cacab0 7705
b0cacab0 7706
b0cacab0
TT
7707
7708
93613951
TT
7709 acl_libdirstem=lib
7710 acl_libdirstem2=
7711 case "$host_os" in
7712 solaris*)
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7714$as_echo_n "checking for 64-bit host... " >&6; }
7715if ${gl_cv_solaris_64bit+:} false; then :
39fd3d4f 7716 $as_echo_n "(cached) " >&6
b0cacab0 7717else
57aa50d4 7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
7719/* end confdefs.h. */
7720
93613951
TT
7721#ifdef _LP64
7722sixtyfour bits
b0cacab0
TT
7723#endif
7724
7725_ACEOF
7726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
93613951
TT
7727 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7728 gl_cv_solaris_64bit=yes
b0cacab0 7729else
93613951 7730 gl_cv_solaris_64bit=no
b0cacab0
TT
7731fi
7732rm -f conftest*
7733
7734
b0cacab0 7735fi
93613951
TT
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7737$as_echo "$gl_cv_solaris_64bit" >&6; }
7738 if test $gl_cv_solaris_64bit = yes; then
7739 acl_libdirstem=lib/64
7740 case "$host_cpu" in
7741 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7742 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7743 esac
7744 fi
7745 ;;
7746 *)
7747 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7748 if test -n "$searchpath"; then
7749 acl_save_IFS="${IFS= }"; IFS=":"
7750 for searchdir in $searchpath; do
7751 if test -d "$searchdir"; then
7752 case "$searchdir" in
7753 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7754 */../ | */.. )
7755 # Better ignore directories of this form. They are misleading.
7756 ;;
7757 *) searchdir=`cd "$searchdir" && pwd`
7758 case "$searchdir" in
7759 */lib64 ) acl_libdirstem=lib64 ;;
7760 esac ;;
7761 esac
7762 fi
7763 done
7764 IFS="$acl_save_IFS"
7765 fi
7766 ;;
7767 esac
7768 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
b0cacab0
TT
7769
7770
7771
93613951
TT
7772 gl_threads_api=none
7773 LIBTHREAD=
7774 LTLIBTHREAD=
7775 LIBMULTITHREAD=
7776 LTLIBMULTITHREAD=
7777 if test "$gl_use_threads" != no; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7779$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7780if ${gl_cv_have_weak+:} false; then :
39fd3d4f 7781 $as_echo_n "(cached) " >&6
b0cacab0 7782else
93613951
TT
7783 gl_cv_have_weak=no
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785/* end confdefs.h. */
7786extern void xyzzy ();
7787#pragma weak xyzzy
7788int
7789main ()
7790{
7791xyzzy();
7792 ;
7793 return 0;
7794}
7795_ACEOF
7796if ac_fn_c_try_link "$LINENO"; then :
7797 gl_cv_have_weak=maybe
7798fi
7799rm -f core conftest.err conftest.$ac_objext \
7800 conftest$ac_exeext conftest.$ac_ext
7801 if test $gl_cv_have_weak = maybe; then
7802 if test "$cross_compiling" = yes; then :
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804/* end confdefs.h. */
7805#ifdef __ELF__
7806 Extensible Linking Format
7807 #endif
b0cacab0 7808
93613951
TT
7809_ACEOF
7810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7811 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7812 gl_cv_have_weak="guessing yes"
7813else
7814 gl_cv_have_weak="guessing no"
7815fi
7816rm -f conftest*
b0cacab0 7817
b0cacab0
TT
7818
7819else
57aa50d4 7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
7821/* end confdefs.h. */
7822
93613951
TT
7823#include <stdio.h>
7824#pragma weak fputs
b0cacab0 7825int main ()
a04eba3f 7826{
93613951 7827 return (fputs == NULL);
a04eba3f 7828}
b0cacab0 7829_ACEOF
57aa50d4 7830if ac_fn_c_try_run "$LINENO"; then :
93613951 7831 gl_cv_have_weak=yes
a64c9c13 7832else
93613951 7833 gl_cv_have_weak=no
b0cacab0 7834fi
57aa50d4
TT
7835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7836 conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0
TT
7837fi
7838
93613951 7839 fi
e1052144 7840
b0cacab0 7841fi
93613951
TT
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7843$as_echo "$gl_cv_have_weak" >&6; }
7844 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7845 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7846 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7847 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7848if test "x$ac_cv_header_pthread_h" = xyes; then :
7849 gl_have_pthread_h=yes
7850else
7851 gl_have_pthread_h=no
7852fi
b0cacab0
TT
7853
7854
93613951
TT
7855 if test "$gl_have_pthread_h" = yes; then
7856 # Other possible tests:
7857 # -lpthreads (FSU threads, PCthreads)
7858 # -lgthreads
7859 gl_have_pthread=
7860 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7861 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7862 # the second one only in libpthread, and lock.c needs it.
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7864/* end confdefs.h. */
93613951 7865#include <pthread.h>
b0cacab0
TT
7866int
7867main ()
7868{
93613951
TT
7869pthread_mutex_lock((pthread_mutex_t*)0);
7870 pthread_mutexattr_init((pthread_mutexattr_t*)0);
b0cacab0
TT
7871 ;
7872 return 0;
7873}
7874_ACEOF
57aa50d4 7875if ac_fn_c_try_link "$LINENO"; then :
93613951 7876 gl_have_pthread=yes
b0cacab0 7877fi
57aa50d4
TT
7878rm -f core conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
93613951
TT
7880 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7881 # since it is defined as a macro on OSF/1.)
7882 if test -n "$gl_have_pthread"; then
7883 # The program links fine without libpthread. But it may actually
7884 # need to link with libpthread in order to create multiple threads.
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7886$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7887if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
39fd3d4f 7888 $as_echo_n "(cached) " >&6
b0cacab0 7889else
93613951
TT
7890 ac_check_lib_save_LIBS=$LIBS
7891LIBS="-lpthread $LIBS"
7892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7893/* end confdefs.h. */
93613951
TT
7894
7895/* Override any GCC internal prototype to avoid an error.
7896 Use char because int might match the return type of a GCC
7897 builtin and then its argument prototype would still apply. */
7898#ifdef __cplusplus
7899extern "C"
7900#endif
7901char pthread_kill ();
b0cacab0
TT
7902int
7903main ()
7904{
93613951 7905return pthread_kill ();
b0cacab0
TT
7906 ;
7907 return 0;
7908}
7909_ACEOF
93613951
TT
7910if ac_fn_c_try_link "$LINENO"; then :
7911 ac_cv_lib_pthread_pthread_kill=yes
b0cacab0 7912else
93613951 7913 ac_cv_lib_pthread_pthread_kill=no
b0cacab0 7914fi
93613951
TT
7915rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917LIBS=$ac_check_lib_save_LIBS
b0cacab0 7918fi
93613951
TT
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7920$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7921if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7922 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7923 # On Solaris and HP-UX, most pthread functions exist also in libc.
7924 # Therefore pthread_in_use() needs to actually try to create a
7925 # thread: pthread_create from libc will fail, whereas
7926 # pthread_create will actually create a thread.
7927 case "$host_os" in
7928 solaris* | hpux*)
b0cacab0 7929
93613951 7930$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
b0cacab0 7931
93613951 7932 esac
b0cacab0 7933
93613951 7934fi
b0cacab0 7935
93613951
TT
7936 else
7937 # Some library is needed. Try libpthread and libc_r.
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7939$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7940if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
39fd3d4f 7941 $as_echo_n "(cached) " >&6
b0cacab0 7942else
93613951
TT
7943 ac_check_lib_save_LIBS=$LIBS
7944LIBS="-lpthread $LIBS"
7945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7946/* end confdefs.h. */
b0cacab0 7947
93613951
TT
7948/* Override any GCC internal prototype to avoid an error.
7949 Use char because int might match the return type of a GCC
7950 builtin and then its argument prototype would still apply. */
7951#ifdef __cplusplus
7952extern "C"
7953#endif
7954char pthread_kill ();
b0cacab0
TT
7955int
7956main ()
7957{
93613951 7958return pthread_kill ();
b0cacab0
TT
7959 ;
7960 return 0;
7961}
7962_ACEOF
93613951
TT
7963if ac_fn_c_try_link "$LINENO"; then :
7964 ac_cv_lib_pthread_pthread_kill=yes
b0cacab0 7965else
93613951 7966 ac_cv_lib_pthread_pthread_kill=no
b0cacab0 7967fi
93613951
TT
7968rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970LIBS=$ac_check_lib_save_LIBS
b0cacab0 7971fi
93613951
TT
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7973$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7974if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7975 gl_have_pthread=yes
7976 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7977 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
b0cacab0
TT
7978fi
7979
93613951
TT
7980 if test -z "$gl_have_pthread"; then
7981 # For FreeBSD 4.
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7983$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7984if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986else
7987 ac_check_lib_save_LIBS=$LIBS
7988LIBS="-lc_r $LIBS"
7989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
7990/* end confdefs.h. */
7991
93613951
TT
7992/* Override any GCC internal prototype to avoid an error.
7993 Use char because int might match the return type of a GCC
7994 builtin and then its argument prototype would still apply. */
7995#ifdef __cplusplus
7996extern "C"
b0cacab0 7997#endif
93613951
TT
7998char pthread_kill ();
7999int
8000main ()
8001{
8002return pthread_kill ();
8003 ;
8004 return 0;
8005}
b0cacab0 8006_ACEOF
93613951
TT
8007if ac_fn_c_try_link "$LINENO"; then :
8008 ac_cv_lib_c_r_pthread_kill=yes
b0cacab0 8009else
93613951 8010 ac_cv_lib_c_r_pthread_kill=no
57aa50d4 8011fi
93613951
TT
8012rm -f core conftest.err conftest.$ac_objext \
8013 conftest$ac_exeext conftest.$ac_ext
8014LIBS=$ac_check_lib_save_LIBS
8015fi
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8017$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8018if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8019 gl_have_pthread=yes
8020 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8021 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
b0cacab0 8022fi
e1052144 8023
93613951
TT
8024 fi
8025 fi
8026 if test -n "$gl_have_pthread"; then
8027 gl_threads_api=posix
57aa50d4 8028
93613951 8029$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
57aa50d4 8030
93613951
TT
8031 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8032 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
b0cacab0 8033
93613951 8034$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
b0cacab0 8035
93613951
TT
8036 LIBTHREAD=
8037 LTLIBTHREAD=
8038 fi
8039 fi
8040 fi
8041 fi
8042 fi
8043 if test -z "$gl_have_pthread"; then
8044 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8045 gl_have_solaristhread=
8046 gl_save_LIBS="$LIBS"
8047 LIBS="$LIBS -lthread"
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 8049/* end confdefs.h. */
93613951
TT
8050
8051#include <thread.h>
8052#include <synch.h>
57aa50d4 8053
b0cacab0
TT
8054int
8055main ()
8056{
93613951 8057thr_self();
b0cacab0
TT
8058 ;
8059 return 0;
8060}
8061_ACEOF
93613951
TT
8062if ac_fn_c_try_link "$LINENO"; then :
8063 gl_have_solaristhread=yes
b0cacab0 8064fi
93613951
TT
8065rm -f core conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
8067 LIBS="$gl_save_LIBS"
8068 if test -n "$gl_have_solaristhread"; then
8069 gl_threads_api=solaris
8070 LIBTHREAD=-lthread
8071 LTLIBTHREAD=-lthread
8072 LIBMULTITHREAD="$LIBTHREAD"
8073 LTLIBMULTITHREAD="$LTLIBTHREAD"
8074
8075$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8076
8077 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8078
8079$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8080
8081 LIBTHREAD=
8082 LTLIBTHREAD=
8083 fi
8084 fi
57aa50d4 8085 fi
57aa50d4 8086 fi
93613951
TT
8087 if test "$gl_use_threads" = pth; then
8088 gl_save_CPPFLAGS="$CPPFLAGS"
b0cacab0 8089
e1052144 8090
e1052144 8091
b0cacab0 8092
57aa50d4 8093
93613951
TT
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8095$as_echo_n "checking how to link with libpth... " >&6; }
8096if ${ac_cv_libpth_libs+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098else
b0cacab0 8099
e1052144 8100
b0cacab0 8101
b0cacab0 8102
29a5deed 8103
93613951
TT
8104
8105
8106
8107 use_additional=yes
8108
57aa50d4
TT
8109 acl_save_prefix="$prefix"
8110 prefix="$acl_final_prefix"
93613951
TT
8111 acl_save_exec_prefix="$exec_prefix"
8112 exec_prefix="$acl_final_exec_prefix"
8113
8114 eval additional_includedir=\"$includedir\"
8115 eval additional_libdir=\"$libdir\"
8116
8117 exec_prefix="$acl_save_exec_prefix"
57aa50d4 8118 prefix="$acl_save_prefix"
b0cacab0 8119
b0cacab0 8120
93613951
TT
8121# Check whether --with-libpth-prefix was given.
8122if test "${with_libpth_prefix+set}" = set; then :
8123 withval=$with_libpth_prefix;
57aa50d4
TT
8124 if test "X$withval" = "Xno"; then
8125 use_additional=no
8126 else
8127 if test "X$withval" = "X"; then
b0cacab0 8128
57aa50d4
TT
8129 acl_save_prefix="$prefix"
8130 prefix="$acl_final_prefix"
8131 acl_save_exec_prefix="$exec_prefix"
8132 exec_prefix="$acl_final_exec_prefix"
e1052144 8133
57aa50d4
TT
8134 eval additional_includedir=\"$includedir\"
8135 eval additional_libdir=\"$libdir\"
e1052144 8136
57aa50d4
TT
8137 exec_prefix="$acl_save_exec_prefix"
8138 prefix="$acl_save_prefix"
b0cacab0 8139
57aa50d4
TT
8140 else
8141 additional_includedir="$withval/include"
93613951
TT
8142 additional_libdir="$withval/$acl_libdirstem"
8143 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8144 && ! test -d "$withval/$acl_libdirstem"; then
8145 additional_libdir="$withval/$acl_libdirstem2"
8146 fi
57aa50d4
TT
8147 fi
8148 fi
b0cacab0 8149
b0cacab0 8150fi
e1052144 8151
93613951
TT
8152 LIBPTH=
8153 LTLIBPTH=
8154 INCPTH=
8155 LIBPTH_PREFIX=
8156 HAVE_LIBPTH=
a04eba3f
TT
8157 rpathdirs=
8158 ltrpathdirs=
8159 names_already_handled=
93613951 8160 names_next_round='pth '
a04eba3f
TT
8161 while test -n "$names_next_round"; do
8162 names_this_round="$names_next_round"
8163 names_next_round=
8164 for name in $names_this_round; do
8165 already_handled=
8166 for n in $names_already_handled; do
8167 if test "$n" = "$name"; then
8168 already_handled=yes
8169 break
8170 fi
8171 done
8172 if test -z "$already_handled"; then
8173 names_already_handled="$names_already_handled $name"
93613951 8174 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
a04eba3f
TT
8175 eval value=\"\$HAVE_LIB$uppername\"
8176 if test -n "$value"; then
8177 if test "$value" = yes; then
8178 eval value=\"\$LIB$uppername\"
93613951 8179 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
a04eba3f 8180 eval value=\"\$LTLIB$uppername\"
93613951 8181 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
a04eba3f
TT
8182 else
8183 :
8184 fi
8185 else
8186 found_dir=
8187 found_la=
8188 found_so=
8189 found_a=
93613951
TT
8190 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8191 if test -n "$acl_shlibext"; then
8192 shrext=".$acl_shlibext" # typically: shrext=.so
8193 else
8194 shrext=
8195 fi
a04eba3f 8196 if test $use_additional = yes; then
93613951
TT
8197 dir="$additional_libdir"
8198 if test -n "$acl_shlibext"; then
8199 if test -f "$dir/$libname$shrext"; then
8200 found_dir="$dir"
8201 found_so="$dir/$libname$shrext"
8202 else
8203 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8204 ver=`(cd "$dir" && \
8205 for f in "$libname$shrext".*; do echo "$f"; done \
8206 | sed -e "s,^$libname$shrext\\\\.,," \
8207 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8208 | sed 1q ) 2>/dev/null`
8209 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8210 found_dir="$dir"
8211 found_so="$dir/$libname$shrext.$ver"
8212 fi
8213 else
8214 eval library_names=\"$acl_library_names_spec\"
8215 for f in $library_names; do
8216 if test -f "$dir/$f"; then
8217 found_dir="$dir"
8218 found_so="$dir/$f"
8219 break
8220 fi
8221 done
a04eba3f
TT
8222 fi
8223 fi
93613951
TT
8224 fi
8225 if test "X$found_dir" = "X"; then
8226 if test -f "$dir/$libname.$acl_libext"; then
8227 found_dir="$dir"
8228 found_a="$dir/$libname.$acl_libext"
8229 fi
8230 fi
8231 if test "X$found_dir" != "X"; then
8232 if test -f "$dir/$libname.la"; then
8233 found_la="$dir/$libname.la"
8234 fi
a04eba3f
TT
8235 fi
8236 fi
8237 if test "X$found_dir" = "X"; then
93613951 8238 for x in $LDFLAGS $LTLIBPTH; do
b0cacab0 8239
a04eba3f
TT
8240 acl_save_prefix="$prefix"
8241 prefix="$acl_final_prefix"
8242 acl_save_exec_prefix="$exec_prefix"
8243 exec_prefix="$acl_final_exec_prefix"
8244 eval x=\"$x\"
8245 exec_prefix="$acl_save_exec_prefix"
8246 prefix="$acl_save_prefix"
8247
8248 case "$x" in
8249 -L*)
8250 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951
TT
8251 if test -n "$acl_shlibext"; then
8252 if test -f "$dir/$libname$shrext"; then
a04eba3f 8253 found_dir="$dir"
93613951
TT
8254 found_so="$dir/$libname$shrext"
8255 else
8256 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8257 ver=`(cd "$dir" && \
8258 for f in "$libname$shrext".*; do echo "$f"; done \
8259 | sed -e "s,^$libname$shrext\\\\.,," \
8260 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8261 | sed 1q ) 2>/dev/null`
8262 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8263 found_dir="$dir"
8264 found_so="$dir/$libname$shrext.$ver"
8265 fi
8266 else
8267 eval library_names=\"$acl_library_names_spec\"
8268 for f in $library_names; do
8269 if test -f "$dir/$f"; then
8270 found_dir="$dir"
8271 found_so="$dir/$f"
8272 break
8273 fi
8274 done
a04eba3f
TT
8275 fi
8276 fi
93613951
TT
8277 fi
8278 if test "X$found_dir" = "X"; then
8279 if test -f "$dir/$libname.$acl_libext"; then
8280 found_dir="$dir"
8281 found_a="$dir/$libname.$acl_libext"
8282 fi
8283 fi
8284 if test "X$found_dir" != "X"; then
8285 if test -f "$dir/$libname.la"; then
8286 found_la="$dir/$libname.la"
8287 fi
a04eba3f
TT
8288 fi
8289 ;;
8290 esac
8291 if test "X$found_dir" != "X"; then
8292 break
8293 fi
8294 done
8295 fi
8296 if test "X$found_dir" != "X"; then
93613951 8297 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
a04eba3f 8298 if test "X$found_so" != "X"; then
93613951
TT
8299 if test "$enable_rpath" = no \
8300 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8301 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8302 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f
TT
8303 else
8304 haveit=
8305 for x in $ltrpathdirs; do
8306 if test "X$x" = "X$found_dir"; then
8307 haveit=yes
8308 break
8309 fi
8310 done
8311 if test -z "$haveit"; then
8312 ltrpathdirs="$ltrpathdirs $found_dir"
8313 fi
93613951
TT
8314 if test "$acl_hardcode_direct" = yes; then
8315 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f 8316 else
93613951
TT
8317 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8318 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f
TT
8319 haveit=
8320 for x in $rpathdirs; do
8321 if test "X$x" = "X$found_dir"; then
8322 haveit=yes
8323 break
8324 fi
8325 done
8326 if test -z "$haveit"; then
8327 rpathdirs="$rpathdirs $found_dir"
8328 fi
8329 else
8330 haveit=
93613951 8331 for x in $LDFLAGS $LIBPTH; do
b0cacab0 8332
a04eba3f
TT
8333 acl_save_prefix="$prefix"
8334 prefix="$acl_final_prefix"
8335 acl_save_exec_prefix="$exec_prefix"
8336 exec_prefix="$acl_final_exec_prefix"
8337 eval x=\"$x\"
8338 exec_prefix="$acl_save_exec_prefix"
8339 prefix="$acl_save_prefix"
8340
8341 if test "X$x" = "X-L$found_dir"; then
8342 haveit=yes
8343 break
8344 fi
8345 done
8346 if test -z "$haveit"; then
93613951 8347 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
a04eba3f 8348 fi
93613951
TT
8349 if test "$acl_hardcode_minus_L" != no; then
8350 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f 8351 else
93613951 8352 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
a04eba3f
TT
8353 fi
8354 fi
8355 fi
8356 fi
8357 else
8358 if test "X$found_a" != "X"; then
93613951 8359 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
a04eba3f 8360 else
93613951 8361 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
a04eba3f
TT
8362 fi
8363 fi
8364 additional_includedir=
8365 case "$found_dir" in
93613951
TT
8366 */$acl_libdirstem | */$acl_libdirstem/)
8367 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8368 if test "$name" = 'pth'; then
8369 LIBPTH_PREFIX="$basedir"
8370 fi
8371 additional_includedir="$basedir/include"
8372 ;;
8373 */$acl_libdirstem2 | */$acl_libdirstem2/)
8374 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8375 if test "$name" = 'pth'; then
8376 LIBPTH_PREFIX="$basedir"
8377 fi
a04eba3f
TT
8378 additional_includedir="$basedir/include"
8379 ;;
8380 esac
8381 if test "X$additional_includedir" != "X"; then
8382 if test "X$additional_includedir" != "X/usr/include"; then
8383 haveit=
8384 if test "X$additional_includedir" = "X/usr/local/include"; then
8385 if test -n "$GCC"; then
8386 case $host_os in
93613951 8387 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
a04eba3f
TT
8388 esac
8389 fi
8390 fi
8391 if test -z "$haveit"; then
93613951 8392 for x in $CPPFLAGS $INCPTH; do
b0cacab0 8393
a04eba3f
TT
8394 acl_save_prefix="$prefix"
8395 prefix="$acl_final_prefix"
8396 acl_save_exec_prefix="$exec_prefix"
8397 exec_prefix="$acl_final_exec_prefix"
8398 eval x=\"$x\"
8399 exec_prefix="$acl_save_exec_prefix"
8400 prefix="$acl_save_prefix"
8401
8402 if test "X$x" = "X-I$additional_includedir"; then
8403 haveit=yes
8404 break
8405 fi
8406 done
8407 if test -z "$haveit"; then
8408 if test -d "$additional_includedir"; then
93613951 8409 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
a04eba3f
TT
8410 fi
8411 fi
8412 fi
8413 fi
8414 fi
8415 if test -n "$found_la"; then
8416 save_libdir="$libdir"
8417 case "$found_la" in
8418 */* | *\\*) . "$found_la" ;;
8419 *) . "./$found_la" ;;
8420 esac
8421 libdir="$save_libdir"
8422 for dep in $dependency_libs; do
8423 case "$dep" in
8424 -L*)
8425 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
93613951
TT
8426 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8427 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
a04eba3f 8428 haveit=
93613951
TT
8429 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8430 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
a04eba3f
TT
8431 if test -n "$GCC"; then
8432 case $host_os in
93613951 8433 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
a04eba3f
TT
8434 esac
8435 fi
8436 fi
8437 if test -z "$haveit"; then
8438 haveit=
93613951 8439 for x in $LDFLAGS $LIBPTH; do
b0cacab0 8440
a04eba3f
TT
8441 acl_save_prefix="$prefix"
8442 prefix="$acl_final_prefix"
8443 acl_save_exec_prefix="$exec_prefix"
8444 exec_prefix="$acl_final_exec_prefix"
8445 eval x=\"$x\"
8446 exec_prefix="$acl_save_exec_prefix"
8447 prefix="$acl_save_prefix"
8448
8449 if test "X$x" = "X-L$additional_libdir"; then
8450 haveit=yes
8451 break
8452 fi
8453 done
8454 if test -z "$haveit"; then
8455 if test -d "$additional_libdir"; then
93613951 8456 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
a04eba3f
TT
8457 fi
8458 fi
8459 haveit=
93613951 8460 for x in $LDFLAGS $LTLIBPTH; do
b0cacab0 8461
a04eba3f
TT
8462 acl_save_prefix="$prefix"
8463 prefix="$acl_final_prefix"
8464 acl_save_exec_prefix="$exec_prefix"
8465 exec_prefix="$acl_final_exec_prefix"
8466 eval x=\"$x\"
8467 exec_prefix="$acl_save_exec_prefix"
8468 prefix="$acl_save_prefix"
8469
8470 if test "X$x" = "X-L$additional_libdir"; then
8471 haveit=yes
8472 break
8473 fi
8474 done
8475 if test -z "$haveit"; then
8476 if test -d "$additional_libdir"; then
93613951 8477 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
a04eba3f
TT
8478 fi
8479 fi
8480 fi
8481 fi
8482 ;;
8483 -R*)
8484 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8485 if test "$enable_rpath" != no; then
8486 haveit=
8487 for x in $rpathdirs; do
8488 if test "X$x" = "X$dir"; then
8489 haveit=yes
8490 break
8491 fi
8492 done
8493 if test -z "$haveit"; then
8494 rpathdirs="$rpathdirs $dir"
8495 fi
8496 haveit=
8497 for x in $ltrpathdirs; do
8498 if test "X$x" = "X$dir"; then
8499 haveit=yes
8500 break
8501 fi
8502 done
8503 if test -z "$haveit"; then
8504 ltrpathdirs="$ltrpathdirs $dir"
8505 fi
8506 fi
8507 ;;
8508 -l*)
8509 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8510 ;;
8511 *.la)
8512 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8513 ;;
8514 *)
93613951
TT
8515 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8516 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
a04eba3f
TT
8517 ;;
8518 esac
8519 done
8520 fi
8521 else
93613951
TT
8522 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8523 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
a04eba3f
TT
8524 fi
8525 fi
8526 fi
8527 done
8528 done
8529 if test "X$rpathdirs" != "X"; then
93613951 8530 if test -n "$acl_hardcode_libdir_separator"; then
a04eba3f
TT
8531 alldirs=
8532 for found_dir in $rpathdirs; do
93613951 8533 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
a04eba3f
TT
8534 done
8535 acl_save_libdir="$libdir"
8536 libdir="$alldirs"
93613951 8537 eval flag=\"$acl_hardcode_libdir_flag_spec\"
a04eba3f 8538 libdir="$acl_save_libdir"
93613951 8539 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
a04eba3f
TT
8540 else
8541 for found_dir in $rpathdirs; do
8542 acl_save_libdir="$libdir"
8543 libdir="$found_dir"
93613951 8544 eval flag=\"$acl_hardcode_libdir_flag_spec\"
a04eba3f 8545 libdir="$acl_save_libdir"
93613951 8546 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
a04eba3f
TT
8547 done
8548 fi
8549 fi
8550 if test "X$ltrpathdirs" != "X"; then
8551 for found_dir in $ltrpathdirs; do
93613951 8552 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
a04eba3f 8553 done
b0cacab0 8554 fi
b0cacab0 8555
a04eba3f 8556
93636bde 8557
a64c9c13 8558
93636bde 8559
b0cacab0 8560
93613951
TT
8561 ac_cv_libpth_libs="$LIBPTH"
8562 ac_cv_libpth_ltlibs="$LTLIBPTH"
8563 ac_cv_libpth_cppflags="$INCPTH"
8564 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8565
8566fi
8567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8568$as_echo "$ac_cv_libpth_libs" >&6; }
8569 LIBPTH="$ac_cv_libpth_libs"
8570 LTLIBPTH="$ac_cv_libpth_ltlibs"
8571 INCPTH="$ac_cv_libpth_cppflags"
8572 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8573
8574 for element in $INCPTH; do
8575 haveit=
8576 for x in $CPPFLAGS; do
8577
8578 acl_save_prefix="$prefix"
8579 prefix="$acl_final_prefix"
8580 acl_save_exec_prefix="$exec_prefix"
8581 exec_prefix="$acl_final_exec_prefix"
8582 eval x=\"$x\"
8583 exec_prefix="$acl_save_exec_prefix"
8584 prefix="$acl_save_prefix"
8585
8586 if test "X$x" = "X$element"; then
8587 haveit=yes
8588 break
8589 fi
8590 done
8591 if test -z "$haveit"; then
8592 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8593 fi
8594 done
8595
8596
8597
8598
8599 HAVE_LIBPTH=yes
8600
8601
8602
8603 gl_have_pth=
8604 gl_save_LIBS="$LIBS"
8605 LIBS="$LIBS $LIBPTH"
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607/* end confdefs.h. */
8608#include <pth.h>
8609int
8610main ()
8611{
8612pth_self();
8613 ;
8614 return 0;
8615}
8616_ACEOF
8617if ac_fn_c_try_link "$LINENO"; then :
8618 gl_have_pth=yes
8619fi
8620rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LIBS="$gl_save_LIBS"
8623 if test -n "$gl_have_pth"; then
8624 gl_threads_api=pth
8625 LIBTHREAD="$LIBPTH"
8626 LTLIBTHREAD="$LTLIBPTH"
8627 LIBMULTITHREAD="$LIBTHREAD"
8628 LTLIBMULTITHREAD="$LTLIBTHREAD"
8629
8630$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8631
8632 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8633 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8634
8635$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8636
8637 LIBTHREAD=
8638 LTLIBTHREAD=
8639 fi
8640 fi
8641 else
8642 CPPFLAGS="$gl_save_CPPFLAGS"
8643 fi
8644 fi
8645 if test -z "$gl_have_pthread"; then
8646 case "$gl_use_threads" in
8647 yes | windows | win32) # The 'win32' is for backward compatibility.
8648 if { case "$host_os" in
8649 mingw*) true;;
8650 *) false;;
8651 esac
8652 }; then
8653 gl_threads_api=windows
8654
8655$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8656
8657 fi
8658 ;;
8659 esac
8660 fi
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8663$as_echo_n "checking for multithread API to use... " >&6; }
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8665$as_echo "$gl_threads_api" >&6; }
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677 if test "$gl_threads_api" = posix; then
8678 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8679 # pthread_rwlock_* functions.
8680 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8681"
8682if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8683
8684$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8685
8686fi
8687
8688 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h. */
8691
8692 #include <pthread.h>
8693int
8694main ()
8695{
8696
8697#if __FreeBSD__ == 4
8698error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8699#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8700 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8701error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8702#else
8703int x = (int)PTHREAD_MUTEX_RECURSIVE;
8704return !x;
8705#endif
8706
8707 ;
8708 return 0;
8709}
8710_ACEOF
8711if ac_fn_c_try_compile "$LINENO"; then :
8712
8713$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8714
8715fi
8716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 fi
8718 :
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731 use_additional=yes
8732
8733 acl_save_prefix="$prefix"
8734 prefix="$acl_final_prefix"
8735 acl_save_exec_prefix="$exec_prefix"
8736 exec_prefix="$acl_final_exec_prefix"
8737
8738 eval additional_includedir=\"$includedir\"
8739 eval additional_libdir=\"$libdir\"
8740
8741 exec_prefix="$acl_save_exec_prefix"
8742 prefix="$acl_save_prefix"
8743
8744
8745# Check whether --with-libiconv-prefix was given.
8746if test "${with_libiconv_prefix+set}" = set; then :
8747 withval=$with_libiconv_prefix;
8748 if test "X$withval" = "Xno"; then
8749 use_additional=no
8750 else
8751 if test "X$withval" = "X"; then
8752
8753 acl_save_prefix="$prefix"
8754 prefix="$acl_final_prefix"
8755 acl_save_exec_prefix="$exec_prefix"
8756 exec_prefix="$acl_final_exec_prefix"
8757
8758 eval additional_includedir=\"$includedir\"
8759 eval additional_libdir=\"$libdir\"
8760
8761 exec_prefix="$acl_save_exec_prefix"
8762 prefix="$acl_save_prefix"
8763
8764 else
8765 additional_includedir="$withval/include"
8766 additional_libdir="$withval/$acl_libdirstem"
8767 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8768 && ! test -d "$withval/$acl_libdirstem"; then
8769 additional_libdir="$withval/$acl_libdirstem2"
8770 fi
8771 fi
8772 fi
8773
8774fi
8775
8776 LIBICONV=
8777 LTLIBICONV=
8778 INCICONV=
8779 LIBICONV_PREFIX=
8780 HAVE_LIBICONV=
8781 rpathdirs=
8782 ltrpathdirs=
8783 names_already_handled=
8784 names_next_round='iconv '
8785 while test -n "$names_next_round"; do
8786 names_this_round="$names_next_round"
8787 names_next_round=
8788 for name in $names_this_round; do
8789 already_handled=
8790 for n in $names_already_handled; do
8791 if test "$n" = "$name"; then
8792 already_handled=yes
8793 break
8794 fi
8795 done
8796 if test -z "$already_handled"; then
8797 names_already_handled="$names_already_handled $name"
8798 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8799 eval value=\"\$HAVE_LIB$uppername\"
8800 if test -n "$value"; then
8801 if test "$value" = yes; then
8802 eval value=\"\$LIB$uppername\"
8803 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8804 eval value=\"\$LTLIB$uppername\"
8805 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8806 else
8807 :
8808 fi
8809 else
8810 found_dir=
8811 found_la=
8812 found_so=
8813 found_a=
8814 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8815 if test -n "$acl_shlibext"; then
8816 shrext=".$acl_shlibext" # typically: shrext=.so
8817 else
8818 shrext=
8819 fi
8820 if test $use_additional = yes; then
8821 dir="$additional_libdir"
8822 if test -n "$acl_shlibext"; then
8823 if test -f "$dir/$libname$shrext"; then
8824 found_dir="$dir"
8825 found_so="$dir/$libname$shrext"
8826 else
8827 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8828 ver=`(cd "$dir" && \
8829 for f in "$libname$shrext".*; do echo "$f"; done \
8830 | sed -e "s,^$libname$shrext\\\\.,," \
8831 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8832 | sed 1q ) 2>/dev/null`
8833 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8834 found_dir="$dir"
8835 found_so="$dir/$libname$shrext.$ver"
8836 fi
8837 else
8838 eval library_names=\"$acl_library_names_spec\"
8839 for f in $library_names; do
8840 if test -f "$dir/$f"; then
8841 found_dir="$dir"
8842 found_so="$dir/$f"
8843 break
8844 fi
8845 done
8846 fi
8847 fi
8848 fi
8849 if test "X$found_dir" = "X"; then
8850 if test -f "$dir/$libname.$acl_libext"; then
8851 found_dir="$dir"
8852 found_a="$dir/$libname.$acl_libext"
8853 fi
8854 fi
8855 if test "X$found_dir" != "X"; then
8856 if test -f "$dir/$libname.la"; then
8857 found_la="$dir/$libname.la"
8858 fi
8859 fi
8860 fi
8861 if test "X$found_dir" = "X"; then
8862 for x in $LDFLAGS $LTLIBICONV; do
8863
8864 acl_save_prefix="$prefix"
8865 prefix="$acl_final_prefix"
8866 acl_save_exec_prefix="$exec_prefix"
8867 exec_prefix="$acl_final_exec_prefix"
8868 eval x=\"$x\"
8869 exec_prefix="$acl_save_exec_prefix"
8870 prefix="$acl_save_prefix"
8871
8872 case "$x" in
8873 -L*)
8874 dir=`echo "X$x" | sed -e 's/^X-L//'`
8875 if test -n "$acl_shlibext"; then
8876 if test -f "$dir/$libname$shrext"; then
8877 found_dir="$dir"
8878 found_so="$dir/$libname$shrext"
8879 else
8880 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8881 ver=`(cd "$dir" && \
8882 for f in "$libname$shrext".*; do echo "$f"; done \
8883 | sed -e "s,^$libname$shrext\\\\.,," \
8884 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8885 | sed 1q ) 2>/dev/null`
8886 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8887 found_dir="$dir"
8888 found_so="$dir/$libname$shrext.$ver"
8889 fi
8890 else
8891 eval library_names=\"$acl_library_names_spec\"
8892 for f in $library_names; do
8893 if test -f "$dir/$f"; then
8894 found_dir="$dir"
8895 found_so="$dir/$f"
8896 break
8897 fi
8898 done
8899 fi
8900 fi
8901 fi
8902 if test "X$found_dir" = "X"; then
8903 if test -f "$dir/$libname.$acl_libext"; then
8904 found_dir="$dir"
8905 found_a="$dir/$libname.$acl_libext"
8906 fi
8907 fi
8908 if test "X$found_dir" != "X"; then
8909 if test -f "$dir/$libname.la"; then
8910 found_la="$dir/$libname.la"
8911 fi
8912 fi
8913 ;;
8914 esac
8915 if test "X$found_dir" != "X"; then
8916 break
8917 fi
8918 done
8919 fi
8920 if test "X$found_dir" != "X"; then
8921 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8922 if test "X$found_so" != "X"; then
8923 if test "$enable_rpath" = no \
8924 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8925 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8926 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8927 else
8928 haveit=
8929 for x in $ltrpathdirs; do
8930 if test "X$x" = "X$found_dir"; then
8931 haveit=yes
8932 break
8933 fi
8934 done
8935 if test -z "$haveit"; then
8936 ltrpathdirs="$ltrpathdirs $found_dir"
8937 fi
8938 if test "$acl_hardcode_direct" = yes; then
8939 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8940 else
8941 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8943 haveit=
8944 for x in $rpathdirs; do
8945 if test "X$x" = "X$found_dir"; then
8946 haveit=yes
8947 break
8948 fi
8949 done
8950 if test -z "$haveit"; then
8951 rpathdirs="$rpathdirs $found_dir"
8952 fi
8953 else
8954 haveit=
8955 for x in $LDFLAGS $LIBICONV; do
8956
8957 acl_save_prefix="$prefix"
8958 prefix="$acl_final_prefix"
8959 acl_save_exec_prefix="$exec_prefix"
8960 exec_prefix="$acl_final_exec_prefix"
8961 eval x=\"$x\"
8962 exec_prefix="$acl_save_exec_prefix"
8963 prefix="$acl_save_prefix"
8964
8965 if test "X$x" = "X-L$found_dir"; then
8966 haveit=yes
8967 break
8968 fi
8969 done
8970 if test -z "$haveit"; then
8971 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8972 fi
8973 if test "$acl_hardcode_minus_L" != no; then
8974 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8975 else
8976 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8977 fi
8978 fi
8979 fi
8980 fi
8981 else
8982 if test "X$found_a" != "X"; then
8983 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8984 else
8985 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8986 fi
8987 fi
8988 additional_includedir=
8989 case "$found_dir" in
8990 */$acl_libdirstem | */$acl_libdirstem/)
8991 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8992 if test "$name" = 'iconv'; then
8993 LIBICONV_PREFIX="$basedir"
8994 fi
8995 additional_includedir="$basedir/include"
8996 ;;
8997 */$acl_libdirstem2 | */$acl_libdirstem2/)
8998 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8999 if test "$name" = 'iconv'; then
9000 LIBICONV_PREFIX="$basedir"
9001 fi
9002 additional_includedir="$basedir/include"
9003 ;;
9004 esac
9005 if test "X$additional_includedir" != "X"; then
9006 if test "X$additional_includedir" != "X/usr/include"; then
9007 haveit=
9008 if test "X$additional_includedir" = "X/usr/local/include"; then
9009 if test -n "$GCC"; then
9010 case $host_os in
9011 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9012 esac
9013 fi
9014 fi
9015 if test -z "$haveit"; then
9016 for x in $CPPFLAGS $INCICONV; do
9017
9018 acl_save_prefix="$prefix"
9019 prefix="$acl_final_prefix"
9020 acl_save_exec_prefix="$exec_prefix"
9021 exec_prefix="$acl_final_exec_prefix"
9022 eval x=\"$x\"
9023 exec_prefix="$acl_save_exec_prefix"
9024 prefix="$acl_save_prefix"
9025
9026 if test "X$x" = "X-I$additional_includedir"; then
9027 haveit=yes
9028 break
9029 fi
9030 done
9031 if test -z "$haveit"; then
9032 if test -d "$additional_includedir"; then
9033 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9034 fi
9035 fi
9036 fi
9037 fi
9038 fi
9039 if test -n "$found_la"; then
9040 save_libdir="$libdir"
9041 case "$found_la" in
9042 */* | *\\*) . "$found_la" ;;
9043 *) . "./$found_la" ;;
9044 esac
9045 libdir="$save_libdir"
9046 for dep in $dependency_libs; do
9047 case "$dep" in
9048 -L*)
9049 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9050 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9051 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9052 haveit=
9053 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9054 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9055 if test -n "$GCC"; then
9056 case $host_os in
9057 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9058 esac
9059 fi
9060 fi
9061 if test -z "$haveit"; then
9062 haveit=
9063 for x in $LDFLAGS $LIBICONV; do
9064
9065 acl_save_prefix="$prefix"
9066 prefix="$acl_final_prefix"
9067 acl_save_exec_prefix="$exec_prefix"
9068 exec_prefix="$acl_final_exec_prefix"
9069 eval x=\"$x\"
9070 exec_prefix="$acl_save_exec_prefix"
9071 prefix="$acl_save_prefix"
9072
9073 if test "X$x" = "X-L$additional_libdir"; then
9074 haveit=yes
9075 break
9076 fi
9077 done
9078 if test -z "$haveit"; then
9079 if test -d "$additional_libdir"; then
9080 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9081 fi
9082 fi
9083 haveit=
9084 for x in $LDFLAGS $LTLIBICONV; do
9085
9086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9090 eval x=\"$x\"
9091 exec_prefix="$acl_save_exec_prefix"
9092 prefix="$acl_save_prefix"
9093
9094 if test "X$x" = "X-L$additional_libdir"; then
9095 haveit=yes
9096 break
9097 fi
9098 done
9099 if test -z "$haveit"; then
9100 if test -d "$additional_libdir"; then
9101 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9102 fi
9103 fi
9104 fi
9105 fi
9106 ;;
9107 -R*)
9108 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9109 if test "$enable_rpath" != no; then
9110 haveit=
9111 for x in $rpathdirs; do
9112 if test "X$x" = "X$dir"; then
9113 haveit=yes
9114 break
9115 fi
9116 done
9117 if test -z "$haveit"; then
9118 rpathdirs="$rpathdirs $dir"
9119 fi
9120 haveit=
9121 for x in $ltrpathdirs; do
9122 if test "X$x" = "X$dir"; then
9123 haveit=yes
9124 break
9125 fi
9126 done
9127 if test -z "$haveit"; then
9128 ltrpathdirs="$ltrpathdirs $dir"
9129 fi
9130 fi
9131 ;;
9132 -l*)
9133 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9134 ;;
9135 *.la)
9136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9137 ;;
9138 *)
9139 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9140 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9141 ;;
9142 esac
9143 done
9144 fi
9145 else
9146 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9147 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9148 fi
9149 fi
9150 fi
9151 done
9152 done
9153 if test "X$rpathdirs" != "X"; then
9154 if test -n "$acl_hardcode_libdir_separator"; then
9155 alldirs=
9156 for found_dir in $rpathdirs; do
9157 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9158 done
9159 acl_save_libdir="$libdir"
9160 libdir="$alldirs"
9161 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9162 libdir="$acl_save_libdir"
9163 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9164 else
9165 for found_dir in $rpathdirs; do
9166 acl_save_libdir="$libdir"
9167 libdir="$found_dir"
9168 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9169 libdir="$acl_save_libdir"
9170 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9171 done
9172 fi
9173 fi
9174 if test "X$ltrpathdirs" != "X"; then
9175 for found_dir in $ltrpathdirs; do
9176 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9177 done
9178 fi
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191 am_save_CPPFLAGS="$CPPFLAGS"
9192
9193 for element in $INCICONV; do
9194 haveit=
9195 for x in $CPPFLAGS; do
9196
9197 acl_save_prefix="$prefix"
9198 prefix="$acl_final_prefix"
9199 acl_save_exec_prefix="$exec_prefix"
9200 exec_prefix="$acl_final_exec_prefix"
9201 eval x=\"$x\"
9202 exec_prefix="$acl_save_exec_prefix"
9203 prefix="$acl_save_prefix"
9204
9205 if test "X$x" = "X$element"; then
9206 haveit=yes
9207 break
9208 fi
9209 done
9210 if test -z "$haveit"; then
9211 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9212 fi
9213 done
9214
9215
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9217$as_echo_n "checking for iconv... " >&6; }
9218if ${am_cv_func_iconv+:} false; then :
9219 $as_echo_n "(cached) " >&6
9220else
9221
9222 am_cv_func_iconv="no, consider installing GNU libiconv"
9223 am_cv_lib_iconv=no
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225/* end confdefs.h. */
9226
9227#include <stdlib.h>
9228#include <iconv.h>
9229
9230int
9231main ()
9232{
9233iconv_t cd = iconv_open("","");
9234 iconv(cd,NULL,NULL,NULL,NULL);
9235 iconv_close(cd);
9236 ;
9237 return 0;
9238}
9239_ACEOF
9240if ac_fn_c_try_link "$LINENO"; then :
9241 am_cv_func_iconv=yes
9242fi
9243rm -f core conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 if test "$am_cv_func_iconv" != yes; then
9246 am_save_LIBS="$LIBS"
9247 LIBS="$LIBS $LIBICONV"
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h. */
9250
9251#include <stdlib.h>
9252#include <iconv.h>
9253
9254int
9255main ()
9256{
9257iconv_t cd = iconv_open("","");
9258 iconv(cd,NULL,NULL,NULL,NULL);
9259 iconv_close(cd);
9260 ;
9261 return 0;
9262}
9263_ACEOF
9264if ac_fn_c_try_link "$LINENO"; then :
9265 am_cv_lib_iconv=yes
9266 am_cv_func_iconv=yes
9267fi
9268rm -f core conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 LIBS="$am_save_LIBS"
9271 fi
9272
9273fi
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9275$as_echo "$am_cv_func_iconv" >&6; }
9276 if test "$am_cv_func_iconv" = yes; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9278$as_echo_n "checking for working iconv... " >&6; }
9279if ${am_cv_func_iconv_works+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281else
9282
9283 am_save_LIBS="$LIBS"
9284 if test $am_cv_lib_iconv = yes; then
9285 LIBS="$LIBS $LIBICONV"
9286 fi
9287 if test "$cross_compiling" = yes; then :
9288
9289 case "$host_os" in
9290 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9291 *) am_cv_func_iconv_works="guessing yes" ;;
9292 esac
9293
9294else
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296/* end confdefs.h. */
9297
9298#include <iconv.h>
9299#include <string.h>
9300int main ()
9301{
9302 int result = 0;
9303 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9304 returns. */
9305 {
9306 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9307 if (cd_utf8_to_88591 != (iconv_t)(-1))
9308 {
9309 static const char input[] = "\342\202\254"; /* EURO SIGN */
9310 char buf[10];
9311 const char *inptr = input;
9312 size_t inbytesleft = strlen (input);
9313 char *outptr = buf;
9314 size_t outbytesleft = sizeof (buf);
9315 size_t res = iconv (cd_utf8_to_88591,
9316 (char **) &inptr, &inbytesleft,
9317 &outptr, &outbytesleft);
9318 if (res == 0)
9319 result |= 1;
9320 iconv_close (cd_utf8_to_88591);
9321 }
9322 }
9323 /* Test against Solaris 10 bug: Failures are not distinguishable from
9324 successful returns. */
9325 {
9326 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9327 if (cd_ascii_to_88591 != (iconv_t)(-1))
9328 {
9329 static const char input[] = "\263";
9330 char buf[10];
9331 const char *inptr = input;
9332 size_t inbytesleft = strlen (input);
9333 char *outptr = buf;
9334 size_t outbytesleft = sizeof (buf);
9335 size_t res = iconv (cd_ascii_to_88591,
9336 (char **) &inptr, &inbytesleft,
9337 &outptr, &outbytesleft);
9338 if (res == 0)
9339 result |= 2;
9340 iconv_close (cd_ascii_to_88591);
9341 }
9342 }
9343 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9344 {
9345 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9346 if (cd_88591_to_utf8 != (iconv_t)(-1))
9347 {
9348 static const char input[] = "\304";
9349 static char buf[2] = { (char)0xDE, (char)0xAD };
9350 const char *inptr = input;
9351 size_t inbytesleft = 1;
9352 char *outptr = buf;
9353 size_t outbytesleft = 1;
9354 size_t res = iconv (cd_88591_to_utf8,
9355 (char **) &inptr, &inbytesleft,
9356 &outptr, &outbytesleft);
9357 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9358 result |= 4;
9359 iconv_close (cd_88591_to_utf8);
9360 }
9361 }
9362#if 0 /* This bug could be worked around by the caller. */
9363 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9364 {
9365 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9366 if (cd_88591_to_utf8 != (iconv_t)(-1))
9367 {
9368 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9369 char buf[50];
9370 const char *inptr = input;
9371 size_t inbytesleft = strlen (input);
9372 char *outptr = buf;
9373 size_t outbytesleft = sizeof (buf);
9374 size_t res = iconv (cd_88591_to_utf8,
9375 (char **) &inptr, &inbytesleft,
9376 &outptr, &outbytesleft);
9377 if ((int)res > 0)
9378 result |= 8;
9379 iconv_close (cd_88591_to_utf8);
9380 }
9381 }
9382#endif
9383 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9384 provided. */
9385 if (/* Try standardized names. */
9386 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9387 /* Try IRIX, OSF/1 names. */
9388 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9389 /* Try AIX names. */
9390 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9391 /* Try HP-UX names. */
9392 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9393 result |= 16;
9394 return result;
9395}
9396_ACEOF
9397if ac_fn_c_try_run "$LINENO"; then :
9398 am_cv_func_iconv_works=yes
9399else
9400 am_cv_func_iconv_works=no
9401fi
9402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9403 conftest.$ac_objext conftest.beam conftest.$ac_ext
9404fi
9405
9406 LIBS="$am_save_LIBS"
9407
9408fi
9409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9410$as_echo "$am_cv_func_iconv_works" >&6; }
9411 case "$am_cv_func_iconv_works" in
9412 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9413 *) am_func_iconv=yes ;;
9414 esac
9415 else
9416 am_func_iconv=no am_cv_lib_iconv=no
9417 fi
9418 if test "$am_func_iconv" = yes; then
9419
9420$as_echo "#define HAVE_ICONV 1" >>confdefs.h
9421
9422 fi
9423 if test "$am_cv_lib_iconv" = yes; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9425$as_echo_n "checking how to link with libiconv... " >&6; }
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9427$as_echo "$LIBICONV" >&6; }
9428 else
9429 CPPFLAGS="$am_save_CPPFLAGS"
9430 LIBICONV=
9431 LTLIBICONV=
9432 fi
9433
9434
9435
9436 if test "$am_cv_func_iconv" = yes; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9438$as_echo_n "checking for iconv declaration... " >&6; }
9439 if ${am_cv_proto_iconv+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441else
9442
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444/* end confdefs.h. */
9445
9446#include <stdlib.h>
9447#include <iconv.h>
9448extern
9449#ifdef __cplusplus
9450"C"
9451#endif
9452#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9453size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9454#else
9455size_t iconv();
9456#endif
9457
9458int
9459main ()
9460{
9461
9462 ;
9463 return 0;
9464}
9465_ACEOF
9466if ac_fn_c_try_compile "$LINENO"; then :
9467 am_cv_proto_iconv_arg1=""
9468else
9469 am_cv_proto_iconv_arg1="const"
9470fi
9471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9473fi
9474
9475 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9477 $am_cv_proto_iconv" >&5
9478$as_echo "
9479 $am_cv_proto_iconv" >&6; }
9480
9481cat >>confdefs.h <<_ACEOF
9482#define ICONV_CONST $am_cv_proto_iconv_arg1
9483_ACEOF
9484
9485
9486 fi
9487
9488
9489
9490
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492/* end confdefs.h. */
9493int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9494int
9495main ()
9496{
9497
9498 ;
9499 return 0;
9500}
9501_ACEOF
9502if ac_fn_c_try_link "$LINENO"; then :
9503
9504$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9505
9506fi
9507rm -f core conftest.err conftest.$ac_objext \
9508 conftest$ac_exeext conftest.$ac_ext
9509
9510 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9511do :
9512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9513ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9514if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9515 cat >>confdefs.h <<_ACEOF
9516#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9517_ACEOF
9518
9519fi
9520
9521done
9522
9523 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9524 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9525 argz_stringify argz_next __fsetlocking
9526do :
9527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9528ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9529if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9530 cat >>confdefs.h <<_ACEOF
9531#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9532_ACEOF
9533
9534fi
9535done
9536
9537
9538 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9539"
9540if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9541 ac_have_decl=1
9542else
9543 ac_have_decl=0
9544fi
9545
9546cat >>confdefs.h <<_ACEOF
9547#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9548_ACEOF
9549ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9550"
9551if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9552 ac_have_decl=1
9553else
9554 ac_have_decl=0
9555fi
9556
9557cat >>confdefs.h <<_ACEOF
9558#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9559_ACEOF
9560
9561
9562
9563
9564 for ac_prog in bison
9565do
9566 # Extract the first word of "$ac_prog", so it can be a program name with args.
9567set dummy $ac_prog; ac_word=$2
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569$as_echo_n "checking for $ac_word... " >&6; }
9570if ${ac_cv_prog_INTLBISON+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572else
9573 if test -n "$INTLBISON"; then
9574 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9575else
9576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577for as_dir in $PATH
9578do
9579 IFS=$as_save_IFS
9580 test -z "$as_dir" && as_dir=.
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9583 ac_cv_prog_INTLBISON="$ac_prog"
9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9585 break 2
9586 fi
9587done
9588 done
9589IFS=$as_save_IFS
9590
9591fi
9592fi
9593INTLBISON=$ac_cv_prog_INTLBISON
9594if test -n "$INTLBISON"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9596$as_echo "$INTLBISON" >&6; }
9597else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599$as_echo "no" >&6; }
9600fi
9601
9602
9603 test -n "$INTLBISON" && break
9604done
9605
9606 if test -z "$INTLBISON"; then
9607 ac_verc_fail=yes
9608 else
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9610$as_echo_n "checking version of bison... " >&6; }
9611 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9612 case $ac_prog_version in
9613 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9614 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9615 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9616 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9617 esac
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9619$as_echo "$ac_prog_version" >&6; }
9620 fi
9621 if test $ac_verc_fail = yes; then
9622 INTLBISON=:
9623 fi
9624
9625
9626
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9628$as_echo_n "checking for long long int... " >&6; }
9629if ${ac_cv_type_long_long_int+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631else
9632 ac_cv_type_long_long_int=yes
9633 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9634 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9635 if test $ac_cv_type_long_long_int = yes; then
9636 if test "$cross_compiling" = yes; then :
9637 :
9638else
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h. */
9641#include <limits.h>
9642 #ifndef LLONG_MAX
9643 # define HALF \
9644 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9645 # define LLONG_MAX (HALF - 1 + HALF)
9646 #endif
9647int
9648main ()
9649{
9650long long int n = 1;
9651 int i;
9652 for (i = 0; ; i++)
9653 {
9654 long long int m = n << i;
9655 if (m >> i != n)
9656 return 1;
9657 if (LLONG_MAX / 2 < m)
9658 break;
9659 }
9660 return 0;
9661 ;
9662 return 0;
9663}
9664_ACEOF
9665if ac_fn_c_try_run "$LINENO"; then :
9666
9667else
9668 ac_cv_type_long_long_int=no
9669fi
9670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9671 conftest.$ac_objext conftest.beam conftest.$ac_ext
9672fi
9673
9674 fi
9675 fi
9676fi
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9678$as_echo "$ac_cv_type_long_long_int" >&6; }
9679 if test $ac_cv_type_long_long_int = yes; then
9680
9681$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9682
9683 fi
9684
9685
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9687$as_echo_n "checking for wchar_t... " >&6; }
9688if ${gt_cv_c_wchar_t+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690else
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692/* end confdefs.h. */
9693#include <stddef.h>
9694 wchar_t foo = (wchar_t)'\0';
9695int
9696main ()
9697{
b0cacab0 9698
93613951
TT
9699 ;
9700 return 0;
9701}
9702_ACEOF
9703if ac_fn_c_try_compile "$LINENO"; then :
9704 gt_cv_c_wchar_t=yes
9705else
9706 gt_cv_c_wchar_t=no
9707fi
9708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709fi
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9711$as_echo "$gt_cv_c_wchar_t" >&6; }
9712 if test $gt_cv_c_wchar_t = yes; then
b0cacab0 9713
93613951 9714$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
b0cacab0 9715
93613951 9716 fi
50e1e10f 9717
57aa50d4 9718
93613951
TT
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9720$as_echo_n "checking for wint_t... " >&6; }
9721if ${gt_cv_c_wint_t+:} false; then :
9722 $as_echo_n "(cached) " >&6
9723else
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725/* end confdefs.h. */
bcb915b0 9726
93613951
TT
9727/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9728 <wchar.h>.
9729 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9730 before <wchar.h>. */
9731#include <stddef.h>
9732#include <stdio.h>
9733#include <time.h>
9734#include <wchar.h>
9735 wint_t foo = (wchar_t)'\0';
9736int
9737main ()
9738{
bcb915b0 9739
93613951
TT
9740 ;
9741 return 0;
9742}
57aa50d4 9743_ACEOF
93613951
TT
9744if ac_fn_c_try_compile "$LINENO"; then :
9745 gt_cv_c_wint_t=yes
9746else
9747 gt_cv_c_wint_t=no
9748fi
9749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4 9750fi
93613951
TT
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9752$as_echo "$gt_cv_c_wint_t" >&6; }
9753 if test $gt_cv_c_wint_t = yes; then
bcb915b0 9754
93613951 9755$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
50e1e10f 9756
93613951 9757 fi
e1052144 9758
b0cacab0 9759
50e1e10f 9760
e1052144 9761
93613951
TT
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9763$as_echo_n "checking for intmax_t... " >&6; }
9764if ${gt_cv_c_intmax_t+:} false; then :
39fd3d4f 9765 $as_echo_n "(cached) " >&6
50e1e10f 9766else
57aa50d4
TT
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768/* end confdefs.h. */
50e1e10f 9769
93613951
TT
9770#include <stddef.h>
9771#include <stdlib.h>
9772#if HAVE_STDINT_H_WITH_UINTMAX
9773#include <stdint.h>
9774#endif
9775#if HAVE_INTTYPES_H_WITH_UINTMAX
9776#include <inttypes.h>
57aa50d4 9777#endif
e1052144 9778
93613951
TT
9779int
9780main ()
9781{
9782intmax_t x = -1;
9783 return !x;
57aa50d4
TT
9784 ;
9785 return 0;
9786}
9787_ACEOF
9788if ac_fn_c_try_compile "$LINENO"; then :
93613951 9789 gt_cv_c_intmax_t=yes
50e1e10f 9790else
93613951 9791 gt_cv_c_intmax_t=no
50e1e10f 9792fi
57aa50d4 9793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 9794fi
93613951
TT
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9796$as_echo "$gt_cv_c_intmax_t" >&6; }
9797 if test $gt_cv_c_intmax_t = yes; then
9798
9799$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9800
57aa50d4 9801 fi
50e1e10f 9802
93613951
TT
9803
9804
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9806$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9807if ${gt_cv_func_printf_posix+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809else
9810
9811 if test "$cross_compiling" = yes; then :
9812
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h. */
9815
9816#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9817 notposix
9818#endif
9819
9820_ACEOF
9821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9822 $EGREP "notposix" >/dev/null 2>&1; then :
9823 gt_cv_func_printf_posix="guessing no"
9824else
9825 gt_cv_func_printf_posix="guessing yes"
9826fi
9827rm -f conftest*
9828
9829
9830else
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h. */
9833
9834#include <stdio.h>
9835#include <string.h>
9836/* The string "%2$d %1$d", with dollar characters protected from the shell's
9837 dollar expansion (possibly an autoconf bug). */
9838static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9839static char buf[100];
9840int main ()
9841{
9842 sprintf (buf, format, 33, 55);
9843 return (strcmp (buf, "55 33") != 0);
9844}
9845_ACEOF
9846if ac_fn_c_try_run "$LINENO"; then :
9847 gt_cv_func_printf_posix=yes
9848else
9849 gt_cv_func_printf_posix=no
9850fi
9851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9852 conftest.$ac_objext conftest.beam conftest.$ac_ext
9853fi
9854
9855
9856fi
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9858$as_echo "$gt_cv_func_printf_posix" >&6; }
9859 case $gt_cv_func_printf_posix in
9860 *yes)
9861
9862$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9863
9864 ;;
9865 esac
9866
9867
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9869$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9870if ${ac_cv_gnu_library_2_1+:} false; then :
9871 $as_echo_n "(cached) " >&6
9872else
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h. */
9875
9876#include <features.h>
9877#ifdef __GNU_LIBRARY__
9878 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9879 Lucky GNU user
9880 #endif
9881#endif
9882#ifdef __UCLIBC__
9883 Lucky user
9884#endif
9885
9886_ACEOF
9887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9888 $EGREP "Lucky" >/dev/null 2>&1; then :
9889 ac_cv_gnu_library_2_1=yes
9890else
9891 ac_cv_gnu_library_2_1=no
9892fi
9893rm -f conftest*
9894
9895
9896
9897fi
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9899$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9900
9901 GLIBC21="$ac_cv_gnu_library_2_1"
9902
9903
9904
9905 for ac_header in stdint.h
9906do :
9907 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9908if test "x$ac_cv_header_stdint_h" = xyes; then :
9909 cat >>confdefs.h <<_ACEOF
9910#define HAVE_STDINT_H 1
57aa50d4 9911_ACEOF
e1052144 9912
93613951 9913fi
e1052144 9914
93613951 9915done
57aa50d4 9916
93613951
TT
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9918$as_echo_n "checking for SIZE_MAX... " >&6; }
9919if ${gl_cv_size_max+:} false; then :
39fd3d4f 9920 $as_echo_n "(cached) " >&6
50e1e10f 9921else
93613951
TT
9922
9923 gl_cv_size_max=
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925/* end confdefs.h. */
9926
9927#include <limits.h>
9928#if HAVE_STDINT_H
9929#include <stdint.h>
9930#endif
9931#ifdef SIZE_MAX
9932Found it
9933#endif
9934
9935_ACEOF
9936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9937 $EGREP "Found it" >/dev/null 2>&1; then :
9938 gl_cv_size_max=yes
9939fi
9940rm -f conftest*
9941
9942 if test -z "$gl_cv_size_max"; then
9943 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9944#include <limits.h>"; then :
9945
9946else
9947 size_t_bits_minus_1=
9948fi
9949
9950 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9951
9952else
9953 fits_in_uint=
9954fi
9955
9956 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9957 if test $fits_in_uint = 1; then
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 9959/* end confdefs.h. */
93613951
TT
9960#include <stddef.h>
9961 extern size_t foo;
9962 extern unsigned long foo;
9963
57aa50d4
TT
9964int
9965main ()
9966{
b0cacab0 9967
57aa50d4
TT
9968 ;
9969 return 0;
9970}
9971_ACEOF
9972if ac_fn_c_try_compile "$LINENO"; then :
93613951 9973 fits_in_uint=0
57aa50d4
TT
9974fi
9975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93613951
TT
9976 fi
9977 if test $fits_in_uint = 1; then
9978 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9979 else
9980 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9981 fi
9982 else
9983 gl_cv_size_max='((size_t)~(size_t)0)'
9984 fi
9985 fi
9986
50e1e10f 9987fi
93613951
TT
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9989$as_echo "$gl_cv_size_max" >&6; }
9990 if test "$gl_cv_size_max" != yes; then
50e1e10f 9991
57aa50d4 9992cat >>confdefs.h <<_ACEOF
93613951 9993#define SIZE_MAX $gl_cv_size_max
57aa50d4 9994_ACEOF
e1052144 9995
93613951 9996 fi
e1052144 9997
57aa50d4
TT
9998
9999
57aa50d4 10000
93613951
TT
10001 for ac_header in stdint.h
10002do :
10003 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10004if test "x$ac_cv_header_stdint_h" = xyes; then :
10005 cat >>confdefs.h <<_ACEOF
10006#define HAVE_STDINT_H 1
57aa50d4 10007_ACEOF
93613951 10008
50e1e10f
TT
10009fi
10010
93613951 10011done
e1052144 10012
32237014 10013
57aa50d4 10014
e1052144 10015
57aa50d4 10016
93613951
TT
10017 for ac_func in $ac_func_list
10018do :
10019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10020ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10021if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10022 cat >>confdefs.h <<_ACEOF
10023#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57aa50d4 10024_ACEOF
93613951 10025
32237014 10026fi
93613951
TT
10027done
10028
10029
10030
32237014
TT
10031
10032
e1052144 10033
57aa50d4 10034
93613951
TT
10035
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10037$as_echo_n "checking for working fcntl.h... " >&6; }
10038if ${gl_cv_header_working_fcntl_h+:} false; then :
39fd3d4f 10039 $as_echo_n "(cached) " >&6
93613951
TT
10040else
10041 if test "$cross_compiling" = yes; then :
10042 gl_cv_header_working_fcntl_h=cross-compiling
50e1e10f 10043else
57aa50d4
TT
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045/* end confdefs.h. */
93613951
TT
10046#include <sys/types.h>
10047 #include <sys/stat.h>
10048 #if HAVE_UNISTD_H
10049 # include <unistd.h>
10050 #else /* on Windows with MSVC */
10051 # include <io.h>
10052 # include <stdlib.h>
10053 # defined sleep(n) _sleep ((n) * 1000)
10054 #endif
10055 #include <fcntl.h>
10056 #ifndef O_NOATIME
10057 #define O_NOATIME 0
10058 #endif
10059 #ifndef O_NOFOLLOW
10060 #define O_NOFOLLOW 0
10061 #endif
10062 static int const constants[] =
10063 {
10064 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10065 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10066 };
10067
57aa50d4
TT
10068int
10069main ()
10070{
b0cacab0 10071
93613951
TT
10072 int result = !constants;
10073 #if HAVE_SYMLINK
10074 {
10075 static char const sym[] = "conftest.sym";
10076 if (symlink ("/dev/null", sym) != 0)
10077 result |= 2;
10078 else
10079 {
10080 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10081 if (fd >= 0)
10082 {
10083 close (fd);
10084 result |= 4;
10085 }
10086 }
10087 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10088 result |= 2;
10089 else
10090 {
10091 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10092 if (fd >= 0)
10093 {
10094 close (fd);
10095 result |= 4;
10096 }
10097 }
10098 unlink (sym);
10099 }
10100 #endif
10101 {
10102 static char const file[] = "confdefs.h";
10103 int fd = open (file, O_RDONLY | O_NOATIME);
10104 if (fd < 0)
10105 result |= 8;
10106 else
10107 {
10108 struct stat st0;
10109 if (fstat (fd, &st0) != 0)
10110 result |= 16;
10111 else
10112 {
10113 char c;
10114 sleep (1);
10115 if (read (fd, &c, 1) != 1)
10116 result |= 24;
10117 else
10118 {
10119 if (close (fd) != 0)
10120 result |= 32;
10121 else
10122 {
10123 struct stat st1;
10124 if (stat (file, &st1) != 0)
10125 result |= 40;
10126 else
10127 if (st0.st_atime != st1.st_atime)
10128 result |= 64;
10129 }
10130 }
10131 }
10132 }
10133 }
10134 return result;
57aa50d4
TT
10135 ;
10136 return 0;
10137}
10138_ACEOF
93613951
TT
10139if ac_fn_c_try_run "$LINENO"; then :
10140 gl_cv_header_working_fcntl_h=yes
50e1e10f 10141else
93613951
TT
10142 case $? in #(
10143 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10144 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10145 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10146 *) gl_cv_header_working_fcntl_h='no';;
10147 esac
50e1e10f 10148fi
93613951
TT
10149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10150 conftest.$ac_objext conftest.beam conftest.$ac_ext
50e1e10f 10151fi
57aa50d4 10152
93613951
TT
10153fi
10154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10155$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
57aa50d4 10156
93613951
TT
10157 case $gl_cv_header_working_fcntl_h in #(
10158 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10159 *) ac_val=1;;
57aa50d4
TT
10160 esac
10161
93613951
TT
10162cat >>confdefs.h <<_ACEOF
10163#define HAVE_WORKING_O_NOATIME $ac_val
10164_ACEOF
57aa50d4 10165
57aa50d4 10166
93613951
TT
10167 case $gl_cv_header_working_fcntl_h in #(
10168 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10169 *) ac_val=1;;
10170 esac
57aa50d4 10171
93613951
TT
10172cat >>confdefs.h <<_ACEOF
10173#define HAVE_WORKING_O_NOFOLLOW $ac_val
10174_ACEOF
57aa50d4 10175
50e1e10f 10176
e1052144 10177
93613951
TT
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10179$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10180if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
39fd3d4f 10181 $as_echo_n "(cached) " >&6
9d564f73 10182else
93613951
TT
10183 gt_save_LIBS="$LIBS"
10184 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10186/* end confdefs.h. */
93613951 10187#include <CoreFoundation/CFPreferences.h>
57aa50d4
TT
10188int
10189main ()
10190{
93613951 10191CFPreferencesCopyAppValue(NULL, NULL)
57aa50d4
TT
10192 ;
10193 return 0;
10194}
10195_ACEOF
10196if ac_fn_c_try_link "$LINENO"; then :
93613951
TT
10197 gt_cv_func_CFPreferencesCopyAppValue=yes
10198else
10199 gt_cv_func_CFPreferencesCopyAppValue=no
9d564f73 10200fi
57aa50d4
TT
10201rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
93613951
TT
10203 LIBS="$gt_save_LIBS"
10204fi
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10206$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10207 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10208
10209$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10210
10211 fi
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10213$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10214if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216else
10217 gt_save_LIBS="$LIBS"
10218 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10220/* end confdefs.h. */
93613951 10221#include <CoreFoundation/CFLocale.h>
57aa50d4
TT
10222int
10223main ()
10224{
93613951 10225CFLocaleCopyCurrent();
57aa50d4
TT
10226 ;
10227 return 0;
10228}
10229_ACEOF
10230if ac_fn_c_try_link "$LINENO"; then :
93613951
TT
10231 gt_cv_func_CFLocaleCopyCurrent=yes
10232else
10233 gt_cv_func_CFLocaleCopyCurrent=no
9d564f73 10234fi
57aa50d4
TT
10235rm -f core conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
93613951 10237 LIBS="$gt_save_LIBS"
50e1e10f 10238fi
93613951
TT
10239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10240$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10241 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
50e1e10f 10242
93613951 10243$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
e1052144 10244
b0cacab0 10245 fi
93613951
TT
10246 INTL_MACOSX_LIBS=
10247 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10248 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
e1052144 10249 fi
b0cacab0 10250
93636bde 10251
e1052144 10252
93613951
TT
10253
10254
10255
10256
10257
10258
10259
10260 case "$enable_silent_rules" in
10261 yes) INTL_DEFAULT_VERBOSITY=0;;
10262 no) INTL_DEFAULT_VERBOSITY=1;;
10263 *) INTL_DEFAULT_VERBOSITY=1;;
10264 esac
10265
10266
10267 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10268if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10269
50e1e10f 10270else
b0cacab0 10271
93613951 10272$as_echo "#define ptrdiff_t long" >>confdefs.h
50e1e10f 10273
e1052144 10274
93613951 10275fi
b0cacab0 10276
93613951
TT
10277 for ac_header in features.h stddef.h stdlib.h string.h
10278do :
10279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10280ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10281if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10282 cat >>confdefs.h <<_ACEOF
10283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10284_ACEOF
10285
10286fi
10287
10288done
10289
10290 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10291 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10292do :
10293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10294ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10295if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10296 cat >>confdefs.h <<_ACEOF
10297#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57aa50d4 10298_ACEOF
93613951
TT
10299
10300fi
10301done
10302
10303
10304 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10305"
10306if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10307 ac_have_decl=1
50e1e10f 10308else
93613951 10309 ac_have_decl=0
50e1e10f 10310fi
93613951
TT
10311
10312cat >>confdefs.h <<_ACEOF
10313#define HAVE_DECL__SNPRINTF $ac_have_decl
10314_ACEOF
10315ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10316"
10317if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10318 ac_have_decl=1
10319else
10320 ac_have_decl=0
50e1e10f
TT
10321fi
10322
93613951
TT
10323cat >>confdefs.h <<_ACEOF
10324#define HAVE_DECL__SNWPRINTF $ac_have_decl
10325_ACEOF
10326
10327
10328 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10329"
10330if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10331 ac_have_decl=1
10332else
10333 ac_have_decl=0
10334fi
57aa50d4
TT
10335
10336cat >>confdefs.h <<_ACEOF
93613951 10337#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
57aa50d4
TT
10338_ACEOF
10339
93613951
TT
10340
10341 case $gt_cv_func_printf_posix in
10342 *yes) HAVE_POSIX_PRINTF=1 ;;
10343 *) HAVE_POSIX_PRINTF=0 ;;
10344 esac
10345
10346 if test "$ac_cv_func_asprintf" = yes; then
10347 HAVE_ASPRINTF=1
10348 else
10349 HAVE_ASPRINTF=0
10350 fi
10351
10352 if test "$ac_cv_func_snprintf" = yes; then
10353 HAVE_SNPRINTF=1
10354 else
10355 HAVE_SNPRINTF=0
10356 fi
10357
10358 if test "$ac_cv_func_newlocale" = yes; then
10359 HAVE_NEWLOCALE=1
10360 else
10361 HAVE_NEWLOCALE=0
10362 fi
10363
10364 if test "$ac_cv_func_wprintf" = yes; then
10365 HAVE_WPRINTF=1
10366 else
10367 HAVE_WPRINTF=0
e1052144 10368 fi
50e1e10f 10369
57aa50d4 10370
93613951 10371
57aa50d4
TT
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10373$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
91d11da1 10374if ${am_cv_langinfo_codeset+:} false; then :
39fd3d4f 10375 $as_echo_n "(cached) " >&6
50e1e10f 10376else
57aa50d4
TT
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h. */
10379#include <langinfo.h>
10380int
10381main ()
10382{
93613951 10383char* cs = nl_langinfo(CODESET); return !cs;
57aa50d4
TT
10384 ;
10385 return 0;
10386}
10387_ACEOF
10388if ac_fn_c_try_link "$LINENO"; then :
10389 am_cv_langinfo_codeset=yes
50e1e10f 10390else
57aa50d4 10391 am_cv_langinfo_codeset=no
50e1e10f 10392fi
57aa50d4
TT
10393rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
7321d94e 10395
50e1e10f 10396fi
57aa50d4
TT
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10398$as_echo "$am_cv_langinfo_codeset" >&6; }
10399 if test $am_cv_langinfo_codeset = yes; then
50e1e10f 10400
57aa50d4 10401$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
e1052144 10402
57aa50d4 10403 fi
b0cacab0 10404
21c84b71 10405
57aa50d4
TT
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10407$as_echo_n "checking for LC_MESSAGES... " >&6; }
93613951 10408if ${gt_cv_val_LC_MESSAGES+:} false; then :
39fd3d4f 10409 $as_echo_n "(cached) " >&6
93636bde 10410else
57aa50d4
TT
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412/* end confdefs.h. */
10413#include <locale.h>
10414int
10415main ()
10416{
10417return LC_MESSAGES
10418 ;
10419 return 0;
10420}
10421_ACEOF
10422if ac_fn_c_try_link "$LINENO"; then :
93613951 10423 gt_cv_val_LC_MESSAGES=yes
93636bde 10424else
93613951 10425 gt_cv_val_LC_MESSAGES=no
50e1e10f 10426fi
57aa50d4
TT
10427rm -f core conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext conftest.$ac_ext
50e1e10f 10429fi
93613951
TT
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10431$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10432 if test $gt_cv_val_LC_MESSAGES = yes; then
50e1e10f 10433
57aa50d4 10434$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
50e1e10f 10435
e1052144 10436 fi
50e1e10f 10437
93613951
TT
10438
10439 if test "$enable_shared" = yes; then
10440 case "$host_os" in
10441 mingw* | cygwin*) is_woe32dll=yes ;;
10442 *) is_woe32dll=no ;;
10443 esac
10444 else
10445 is_woe32dll=no
57aa50d4 10446 fi
93613951 10447 WOE32DLL=$is_woe32dll
b0cacab0 10448
93613951
TT
10449
10450 case "$host_os" in
10451 mingw* | cygwin*) is_woe32=yes ;;
10452 *) is_woe32=no ;;
10453 esac
10454 WOE32=$is_woe32
10455
10456 if test $WOE32 = yes; then
10457 if test -n "$ac_tool_prefix"; then
10458 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10459set dummy ${ac_tool_prefix}windres; ac_word=$2
57aa50d4 10460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 10461$as_echo_n "checking for $ac_word... " >&6; }
93613951 10462if ${ac_cv_prog_WINDRES+:} false; then :
39fd3d4f 10463 $as_echo_n "(cached) " >&6
50e1e10f 10464else
93613951
TT
10465 if test -n "$WINDRES"; then
10466 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
50e1e10f 10467else
b0cacab0
TT
10468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469for as_dir in $PATH
10470do
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
57aa50d4 10473 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 10474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
93613951 10475 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
57aa50d4 10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
10477 break 2
10478 fi
10479done
57aa50d4 10480 done
e1052144 10481IFS=$as_save_IFS
b0cacab0 10482
50e1e10f
TT
10483fi
10484fi
93613951
TT
10485WINDRES=$ac_cv_prog_WINDRES
10486if test -n "$WINDRES"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10488$as_echo "$WINDRES" >&6; }
50e1e10f 10489else
57aa50d4 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 10491$as_echo "no" >&6; }
50e1e10f
TT
10492fi
10493
e1052144 10494
93613951
TT
10495fi
10496if test -z "$ac_cv_prog_WINDRES"; then
10497 ac_ct_WINDRES=$WINDRES
10498 # Extract the first word of "windres", so it can be a program name with args.
10499set dummy windres; ac_word=$2
10500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501$as_echo_n "checking for $ac_word... " >&6; }
10502if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10503 $as_echo_n "(cached) " >&6
10504else
10505 if test -n "$ac_ct_WINDRES"; then
10506 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10507else
10508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509for as_dir in $PATH
10510do
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
10514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10515 ac_cv_prog_ac_ct_WINDRES="windres"
10516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 break 2
10518 fi
b0cacab0 10519done
93613951
TT
10520 done
10521IFS=$as_save_IFS
b0cacab0 10522
93613951
TT
10523fi
10524fi
10525ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10526if test -n "$ac_ct_WINDRES"; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10528$as_echo "$ac_ct_WINDRES" >&6; }
10529else
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531$as_echo "no" >&6; }
10532fi
10533
10534 if test "x$ac_ct_WINDRES" = x; then
10535 WINDRES=""
57aa50d4 10536 else
93613951
TT
10537 case $cross_compiling:$ac_tool_warned in
10538yes:)
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10541ac_tool_warned=yes ;;
10542esac
10543 WINDRES=$ac_ct_WINDRES
57aa50d4 10544 fi
93613951
TT
10545else
10546 WINDRES="$ac_cv_prog_WINDRES"
10547fi
10548
57aa50d4
TT
10549 fi
10550
93613951
TT
10551 case "$host_os" in
10552 hpux*) LTLIBC="" ;;
10553 *) LTLIBC="-lc" ;;
10554 esac
57aa50d4
TT
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
b0cacab0 10565
740837de 10566
b0cacab0
TT
10567
10568
10569
93613951
TT
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10583$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10584if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10585 $as_echo_n "(cached) " >&6
50e1e10f 10586else
93613951
TT
10587 gt_save_LIBS="$LIBS"
10588 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590/* end confdefs.h. */
10591#include <CoreFoundation/CFPreferences.h>
10592int
10593main ()
10594{
10595CFPreferencesCopyAppValue(NULL, NULL)
10596 ;
10597 return 0;
10598}
10599_ACEOF
10600if ac_fn_c_try_link "$LINENO"; then :
10601 gt_cv_func_CFPreferencesCopyAppValue=yes
10602else
10603 gt_cv_func_CFPreferencesCopyAppValue=no
10604fi
10605rm -f core conftest.err conftest.$ac_objext \
10606 conftest$ac_exeext conftest.$ac_ext
10607 LIBS="$gt_save_LIBS"
50e1e10f 10608fi
93613951
TT
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10610$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10611 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10612
10613$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10614
10615 fi
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10617$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10618if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10619 $as_echo_n "(cached) " >&6
10620else
10621 gt_save_LIBS="$LIBS"
10622 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624/* end confdefs.h. */
10625#include <CoreFoundation/CFLocale.h>
10626int
10627main ()
10628{
10629CFLocaleCopyCurrent();
10630 ;
10631 return 0;
10632}
10633_ACEOF
10634if ac_fn_c_try_link "$LINENO"; then :
10635 gt_cv_func_CFLocaleCopyCurrent=yes
10636else
10637 gt_cv_func_CFLocaleCopyCurrent=no
10638fi
10639rm -f core conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10641 LIBS="$gt_save_LIBS"
10642fi
10643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10644$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10645 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10646
10647$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10648
10649 fi
10650 INTL_MACOSX_LIBS=
10651 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10652 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10653 fi
10654
50e1e10f 10655
b0cacab0
TT
10656
10657
10658
10659
57aa50d4
TT
10660 BUILD_INCLUDED_LIBINTL=no
10661 USE_INCLUDED_LIBINTL=no
10662
10663 LIBINTL=
10664 LTLIBINTL=
10665 POSUB=
10666
93613951
TT
10667 case " $gt_needs " in
10668 *" need-formatstring-macros "*) gt_api_version=3 ;;
10669 *" need-ngettext "*) gt_api_version=2 ;;
10670 *) gt_api_version=1 ;;
10671 esac
10672 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10673 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10674
57aa50d4
TT
10675 if test "$USE_NLS" = "yes"; then
10676 gt_use_preinstalled_gnugettext=no
b0cacab0 10677
57aa50d4
TT
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10679$as_echo_n "checking whether included gettext is requested... " >&6; }
b0cacab0 10680
57aa50d4
TT
10681# Check whether --with-included-gettext was given.
10682if test "${with_included_gettext+set}" = set; then :
10683 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
50e1e10f 10684else
57aa50d4 10685 nls_cv_force_use_gnu_gettext=no
50e1e10f
TT
10686fi
10687
57aa50d4
TT
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10689$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
b0cacab0 10690
57aa50d4
TT
10691 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10692 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
b0cacab0
TT
10693
10694
93613951
TT
10695 if test $gt_api_version -ge 3; then
10696 gt_revision_test_code='
10697#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10698#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10699#endif
10700typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10701'
10702 else
10703 gt_revision_test_code=
10704 fi
10705 if test $gt_api_version -ge 2; then
10706 gt_expression_test_code=' + * ngettext ("", "", 0)'
10707 else
10708 gt_expression_test_code=
10709 fi
b0cacab0 10710
57aa50d4
TT
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10712$as_echo_n "checking for GNU gettext in libc... " >&6; }
93613951 10713if eval \${$gt_func_gnugettext_libc+:} false; then :
39fd3d4f 10714 $as_echo_n "(cached) " >&6
7321d94e 10715else
57aa50d4
TT
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717/* end confdefs.h. */
93613951 10718
57aa50d4 10719#include <libintl.h>
93613951 10720$gt_revision_test_code
57aa50d4
TT
10721extern int _nl_msg_cat_cntr;
10722extern int *_nl_domain_bindings;
93613951 10723
57aa50d4
TT
10724int
10725main ()
10726{
93613951 10727
57aa50d4 10728bindtextdomain ("", "");
93613951
TT
10729return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10730
57aa50d4
TT
10731 ;
10732 return 0;
10733}
10734_ACEOF
10735if ac_fn_c_try_link "$LINENO"; then :
93613951 10736 eval "$gt_func_gnugettext_libc=yes"
7321d94e 10737else
93613951 10738 eval "$gt_func_gnugettext_libc=no"
57aa50d4
TT
10739fi
10740rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742fi
93613951
TT
10743eval ac_res=\$$gt_func_gnugettext_libc
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10745$as_echo "$ac_res" >&6; }
10746
10747 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10748
10749
10750
10751
b0cacab0
TT
10752
10753
10754
10755
57aa50d4 10756 use_additional=yes
b0cacab0 10757
57aa50d4
TT
10758 acl_save_prefix="$prefix"
10759 prefix="$acl_final_prefix"
10760 acl_save_exec_prefix="$exec_prefix"
10761 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10762
57aa50d4
TT
10763 eval additional_includedir=\"$includedir\"
10764 eval additional_libdir=\"$libdir\"
b0cacab0 10765
57aa50d4
TT
10766 exec_prefix="$acl_save_exec_prefix"
10767 prefix="$acl_save_prefix"
b0cacab0
TT
10768
10769
57aa50d4
TT
10770# Check whether --with-libintl-prefix was given.
10771if test "${with_libintl_prefix+set}" = set; then :
10772 withval=$with_libintl_prefix;
10773 if test "X$withval" = "Xno"; then
10774 use_additional=no
10775 else
10776 if test "X$withval" = "X"; then
b0cacab0 10777
57aa50d4
TT
10778 acl_save_prefix="$prefix"
10779 prefix="$acl_final_prefix"
10780 acl_save_exec_prefix="$exec_prefix"
10781 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10782
57aa50d4
TT
10783 eval additional_includedir=\"$includedir\"
10784 eval additional_libdir=\"$libdir\"
7321d94e 10785
57aa50d4
TT
10786 exec_prefix="$acl_save_exec_prefix"
10787 prefix="$acl_save_prefix"
7321d94e 10788
57aa50d4
TT
10789 else
10790 additional_includedir="$withval/include"
93613951
TT
10791 additional_libdir="$withval/$acl_libdirstem"
10792 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10793 && ! test -d "$withval/$acl_libdirstem"; then
10794 additional_libdir="$withval/$acl_libdirstem2"
10795 fi
57aa50d4
TT
10796 fi
10797 fi
7321d94e 10798
7321d94e
MK
10799fi
10800
57aa50d4
TT
10801 LIBINTL=
10802 LTLIBINTL=
10803 INCINTL=
93613951
TT
10804 LIBINTL_PREFIX=
10805 HAVE_LIBINTL=
57aa50d4
TT
10806 rpathdirs=
10807 ltrpathdirs=
10808 names_already_handled=
10809 names_next_round='intl '
10810 while test -n "$names_next_round"; do
10811 names_this_round="$names_next_round"
10812 names_next_round=
10813 for name in $names_this_round; do
10814 already_handled=
10815 for n in $names_already_handled; do
10816 if test "$n" = "$name"; then
10817 already_handled=yes
10818 break
10819 fi
50e1e10f 10820 done
57aa50d4
TT
10821 if test -z "$already_handled"; then
10822 names_already_handled="$names_already_handled $name"
93613951 10823 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
57aa50d4
TT
10824 eval value=\"\$HAVE_LIB$uppername\"
10825 if test -n "$value"; then
10826 if test "$value" = yes; then
10827 eval value=\"\$LIB$uppername\"
10828 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10829 eval value=\"\$LTLIB$uppername\"
10830 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10831 else
10832 :
10833 fi
10834 else
10835 found_dir=
10836 found_la=
10837 found_so=
10838 found_a=
93613951
TT
10839 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10840 if test -n "$acl_shlibext"; then
10841 shrext=".$acl_shlibext" # typically: shrext=.so
10842 else
10843 shrext=
10844 fi
57aa50d4 10845 if test $use_additional = yes; then
93613951
TT
10846 dir="$additional_libdir"
10847 if test -n "$acl_shlibext"; then
10848 if test -f "$dir/$libname$shrext"; then
10849 found_dir="$dir"
10850 found_so="$dir/$libname$shrext"
10851 else
10852 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10853 ver=`(cd "$dir" && \
10854 for f in "$libname$shrext".*; do echo "$f"; done \
10855 | sed -e "s,^$libname$shrext\\\\.,," \
10856 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10857 | sed 1q ) 2>/dev/null`
10858 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10859 found_dir="$dir"
10860 found_so="$dir/$libname$shrext.$ver"
10861 fi
10862 else
10863 eval library_names=\"$acl_library_names_spec\"
10864 for f in $library_names; do
10865 if test -f "$dir/$f"; then
10866 found_dir="$dir"
10867 found_so="$dir/$f"
10868 break
10869 fi
10870 done
57aa50d4
TT
10871 fi
10872 fi
93613951
TT
10873 fi
10874 if test "X$found_dir" = "X"; then
10875 if test -f "$dir/$libname.$acl_libext"; then
10876 found_dir="$dir"
10877 found_a="$dir/$libname.$acl_libext"
10878 fi
10879 fi
10880 if test "X$found_dir" != "X"; then
10881 if test -f "$dir/$libname.la"; then
10882 found_la="$dir/$libname.la"
10883 fi
57aa50d4
TT
10884 fi
10885 fi
10886 if test "X$found_dir" = "X"; then
10887 for x in $LDFLAGS $LTLIBINTL; do
39fd3d4f 10888
57aa50d4
TT
10889 acl_save_prefix="$prefix"
10890 prefix="$acl_final_prefix"
10891 acl_save_exec_prefix="$exec_prefix"
10892 exec_prefix="$acl_final_exec_prefix"
10893 eval x=\"$x\"
10894 exec_prefix="$acl_save_exec_prefix"
10895 prefix="$acl_save_prefix"
3d05802f 10896
57aa50d4
TT
10897 case "$x" in
10898 -L*)
10899 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951
TT
10900 if test -n "$acl_shlibext"; then
10901 if test -f "$dir/$libname$shrext"; then
57aa50d4 10902 found_dir="$dir"
93613951
TT
10903 found_so="$dir/$libname$shrext"
10904 else
10905 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10906 ver=`(cd "$dir" && \
10907 for f in "$libname$shrext".*; do echo "$f"; done \
10908 | sed -e "s,^$libname$shrext\\\\.,," \
10909 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10910 | sed 1q ) 2>/dev/null`
10911 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10912 found_dir="$dir"
10913 found_so="$dir/$libname$shrext.$ver"
10914 fi
10915 else
10916 eval library_names=\"$acl_library_names_spec\"
10917 for f in $library_names; do
10918 if test -f "$dir/$f"; then
10919 found_dir="$dir"
10920 found_so="$dir/$f"
10921 break
10922 fi
10923 done
57aa50d4
TT
10924 fi
10925 fi
93613951
TT
10926 fi
10927 if test "X$found_dir" = "X"; then
10928 if test -f "$dir/$libname.$acl_libext"; then
10929 found_dir="$dir"
10930 found_a="$dir/$libname.$acl_libext"
10931 fi
10932 fi
10933 if test "X$found_dir" != "X"; then
10934 if test -f "$dir/$libname.la"; then
10935 found_la="$dir/$libname.la"
10936 fi
57aa50d4
TT
10937 fi
10938 ;;
10939 esac
10940 if test "X$found_dir" != "X"; then
10941 break
10942 fi
10943 done
10944 fi
10945 if test "X$found_dir" != "X"; then
10946 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10947 if test "X$found_so" != "X"; then
93613951
TT
10948 if test "$enable_rpath" = no \
10949 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10950 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
57aa50d4
TT
10951 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10952 else
10953 haveit=
10954 for x in $ltrpathdirs; do
10955 if test "X$x" = "X$found_dir"; then
10956 haveit=yes
10957 break
10958 fi
10959 done
10960 if test -z "$haveit"; then
10961 ltrpathdirs="$ltrpathdirs $found_dir"
10962 fi
93613951 10963 if test "$acl_hardcode_direct" = yes; then
57aa50d4
TT
10964 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10965 else
93613951 10966 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
57aa50d4
TT
10967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10968 haveit=
10969 for x in $rpathdirs; do
10970 if test "X$x" = "X$found_dir"; then
10971 haveit=yes
10972 break
10973 fi
10974 done
10975 if test -z "$haveit"; then
10976 rpathdirs="$rpathdirs $found_dir"
10977 fi
10978 else
10979 haveit=
10980 for x in $LDFLAGS $LIBINTL; do
6ec9ef18 10981
57aa50d4
TT
10982 acl_save_prefix="$prefix"
10983 prefix="$acl_final_prefix"
10984 acl_save_exec_prefix="$exec_prefix"
10985 exec_prefix="$acl_final_exec_prefix"
10986 eval x=\"$x\"
10987 exec_prefix="$acl_save_exec_prefix"
10988 prefix="$acl_save_prefix"
d7f45af8 10989
57aa50d4
TT
10990 if test "X$x" = "X-L$found_dir"; then
10991 haveit=yes
10992 break
10993 fi
10994 done
10995 if test -z "$haveit"; then
10996 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10997 fi
93613951 10998 if test "$acl_hardcode_minus_L" != no; then
57aa50d4
TT
10999 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11000 else
11001 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11002 fi
11003 fi
11004 fi
11005 fi
11006 else
11007 if test "X$found_a" != "X"; then
11008 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11009 else
11010 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11011 fi
11012 fi
11013 additional_includedir=
11014 case "$found_dir" in
93613951
TT
11015 */$acl_libdirstem | */$acl_libdirstem/)
11016 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11017 if test "$name" = 'intl'; then
11018 LIBINTL_PREFIX="$basedir"
11019 fi
11020 additional_includedir="$basedir/include"
11021 ;;
11022 */$acl_libdirstem2 | */$acl_libdirstem2/)
11023 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11024 if test "$name" = 'intl'; then
11025 LIBINTL_PREFIX="$basedir"
11026 fi
57aa50d4
TT
11027 additional_includedir="$basedir/include"
11028 ;;
11029 esac
11030 if test "X$additional_includedir" != "X"; then
11031 if test "X$additional_includedir" != "X/usr/include"; then
11032 haveit=
11033 if test "X$additional_includedir" = "X/usr/local/include"; then
11034 if test -n "$GCC"; then
11035 case $host_os in
93613951 11036 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
11037 esac
11038 fi
11039 fi
11040 if test -z "$haveit"; then
11041 for x in $CPPFLAGS $INCINTL; do
b0cacab0 11042
57aa50d4
TT
11043 acl_save_prefix="$prefix"
11044 prefix="$acl_final_prefix"
11045 acl_save_exec_prefix="$exec_prefix"
11046 exec_prefix="$acl_final_exec_prefix"
11047 eval x=\"$x\"
11048 exec_prefix="$acl_save_exec_prefix"
11049 prefix="$acl_save_prefix"
21c84b71 11050
57aa50d4
TT
11051 if test "X$x" = "X-I$additional_includedir"; then
11052 haveit=yes
11053 break
11054 fi
11055 done
11056 if test -z "$haveit"; then
11057 if test -d "$additional_includedir"; then
11058 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11059 fi
11060 fi
11061 fi
11062 fi
11063 fi
11064 if test -n "$found_la"; then
11065 save_libdir="$libdir"
11066 case "$found_la" in
11067 */* | *\\*) . "$found_la" ;;
11068 *) . "./$found_la" ;;
11069 esac
11070 libdir="$save_libdir"
11071 for dep in $dependency_libs; do
11072 case "$dep" in
11073 -L*)
11074 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
93613951
TT
11075 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11076 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
57aa50d4 11077 haveit=
93613951
TT
11078 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11079 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
57aa50d4
TT
11080 if test -n "$GCC"; then
11081 case $host_os in
93613951 11082 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
11083 esac
11084 fi
11085 fi
11086 if test -z "$haveit"; then
11087 haveit=
11088 for x in $LDFLAGS $LIBINTL; do
50e1e10f 11089
57aa50d4
TT
11090 acl_save_prefix="$prefix"
11091 prefix="$acl_final_prefix"
11092 acl_save_exec_prefix="$exec_prefix"
11093 exec_prefix="$acl_final_exec_prefix"
11094 eval x=\"$x\"
11095 exec_prefix="$acl_save_exec_prefix"
11096 prefix="$acl_save_prefix"
50e1e10f 11097
57aa50d4
TT
11098 if test "X$x" = "X-L$additional_libdir"; then
11099 haveit=yes
11100 break
11101 fi
11102 done
11103 if test -z "$haveit"; then
11104 if test -d "$additional_libdir"; then
11105 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11106 fi
11107 fi
11108 haveit=
11109 for x in $LDFLAGS $LTLIBINTL; do
a4bf69d9 11110
57aa50d4
TT
11111 acl_save_prefix="$prefix"
11112 prefix="$acl_final_prefix"
11113 acl_save_exec_prefix="$exec_prefix"
11114 exec_prefix="$acl_final_exec_prefix"
11115 eval x=\"$x\"
11116 exec_prefix="$acl_save_exec_prefix"
11117 prefix="$acl_save_prefix"
50e1e10f 11118
57aa50d4
TT
11119 if test "X$x" = "X-L$additional_libdir"; then
11120 haveit=yes
11121 break
11122 fi
11123 done
11124 if test -z "$haveit"; then
11125 if test -d "$additional_libdir"; then
11126 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11127 fi
11128 fi
11129 fi
11130 fi
11131 ;;
11132 -R*)
11133 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11134 if test "$enable_rpath" != no; then
11135 haveit=
11136 for x in $rpathdirs; do
11137 if test "X$x" = "X$dir"; then
11138 haveit=yes
11139 break
11140 fi
11141 done
11142 if test -z "$haveit"; then
11143 rpathdirs="$rpathdirs $dir"
11144 fi
11145 haveit=
11146 for x in $ltrpathdirs; do
11147 if test "X$x" = "X$dir"; then
11148 haveit=yes
11149 break
11150 fi
11151 done
11152 if test -z "$haveit"; then
11153 ltrpathdirs="$ltrpathdirs $dir"
11154 fi
11155 fi
11156 ;;
11157 -l*)
11158 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11159 ;;
11160 *.la)
11161 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11162 ;;
11163 *)
11164 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11166 ;;
11167 esac
11168 done
11169 fi
11170 else
11171 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11172 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11173 fi
11174 fi
11175 fi
11176 done
11177 done
11178 if test "X$rpathdirs" != "X"; then
93613951 11179 if test -n "$acl_hardcode_libdir_separator"; then
57aa50d4
TT
11180 alldirs=
11181 for found_dir in $rpathdirs; do
93613951 11182 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
57aa50d4
TT
11183 done
11184 acl_save_libdir="$libdir"
11185 libdir="$alldirs"
93613951 11186 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
11187 libdir="$acl_save_libdir"
11188 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11189 else
11190 for found_dir in $rpathdirs; do
11191 acl_save_libdir="$libdir"
11192 libdir="$found_dir"
93613951 11193 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
11194 libdir="$acl_save_libdir"
11195 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11196 done
11197 fi
11198 fi
11199 if test "X$ltrpathdirs" != "X"; then
11200 for found_dir in $ltrpathdirs; do
11201 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11202 done
11203 fi
b0cacab0 11204
93613951
TT
11205
11206
11207
11208
11209
57aa50d4
TT
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11211$as_echo_n "checking for GNU gettext in libintl... " >&6; }
93613951 11212if eval \${$gt_func_gnugettext_libintl+:} false; then :
39fd3d4f 11213 $as_echo_n "(cached) " >&6
6c133523 11214else
57aa50d4
TT
11215 gt_save_CPPFLAGS="$CPPFLAGS"
11216 CPPFLAGS="$CPPFLAGS $INCINTL"
11217 gt_save_LIBS="$LIBS"
11218 LIBS="$LIBS $LIBINTL"
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220/* end confdefs.h. */
93613951 11221
57aa50d4 11222#include <libintl.h>
93613951 11223$gt_revision_test_code
57aa50d4
TT
11224extern int _nl_msg_cat_cntr;
11225extern
11226#ifdef __cplusplus
11227"C"
11228#endif
93613951
TT
11229const char *_nl_expand_alias (const char *);
11230
57aa50d4
TT
11231int
11232main ()
11233{
93613951 11234
57aa50d4 11235bindtextdomain ("", "");
93613951
TT
11236return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11237
57aa50d4
TT
11238 ;
11239 return 0;
11240}
b0cacab0 11241_ACEOF
57aa50d4 11242if ac_fn_c_try_link "$LINENO"; then :
93613951 11243 eval "$gt_func_gnugettext_libintl=yes"
6c133523 11244else
93613951 11245 eval "$gt_func_gnugettext_libintl=no"
6c133523 11246fi
57aa50d4
TT
11247rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
93613951 11249 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
57aa50d4
TT
11250 LIBS="$LIBS $LIBICONV"
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da76d6b7 11252/* end confdefs.h. */
93613951 11253
57aa50d4 11254#include <libintl.h>
93613951 11255$gt_revision_test_code
57aa50d4
TT
11256extern int _nl_msg_cat_cntr;
11257extern
11258#ifdef __cplusplus
11259"C"
da76d6b7 11260#endif
93613951
TT
11261const char *_nl_expand_alias (const char *);
11262
57aa50d4
TT
11263int
11264main ()
11265{
93613951 11266
57aa50d4 11267bindtextdomain ("", "");
93613951
TT
11268return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11269
57aa50d4
TT
11270 ;
11271 return 0;
11272}
da76d6b7 11273_ACEOF
57aa50d4
TT
11274if ac_fn_c_try_link "$LINENO"; then :
11275 LIBINTL="$LIBINTL $LIBICONV"
93613951
TT
11276 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11277 eval "$gt_func_gnugettext_libintl=yes"
6c133523
TT
11278
11279fi
57aa50d4
TT
11280rm -f core conftest.err conftest.$ac_objext \
11281 conftest$ac_exeext conftest.$ac_ext
11282 fi
11283 CPPFLAGS="$gt_save_CPPFLAGS"
11284 LIBS="$gt_save_LIBS"
da76d6b7 11285fi
93613951
TT
11286eval ac_res=\$$gt_func_gnugettext_libintl
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11288$as_echo "$ac_res" >&6; }
57aa50d4 11289 fi
b0cacab0 11290
93613951
TT
11291 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11292 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
57aa50d4
TT
11293 && test "$PACKAGE" != gettext-runtime \
11294 && test "$PACKAGE" != gettext-tools; }; then
11295 gt_use_preinstalled_gnugettext=yes
11296 else
11297 LIBINTL=
11298 LTLIBINTL=
11299 INCINTL=
11300 fi
740837de 11301
b0cacab0 11302
57aa50d4
TT
11303 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11304 nls_cv_use_gnu_gettext=yes
11305 fi
11306 fi
b0cacab0 11307
57aa50d4
TT
11308 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11309 BUILD_INCLUDED_LIBINTL=yes
11310 USE_INCLUDED_LIBINTL=yes
93613951
TT
11311 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11312 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
57aa50d4
TT
11313 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11314 fi
b0cacab0 11315
93613951 11316 CATOBJEXT=
57aa50d4
TT
11317 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11318 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11319 CATOBJEXT=.gmo
11320 fi
b0cacab0
TT
11321
11322
93613951
TT
11323 if test -n "$INTL_MACOSX_LIBS"; then
11324 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11325 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11326 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11327 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11328 fi
11329 fi
11330
57aa50d4
TT
11331 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11332 || test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0 11333
57aa50d4 11334$as_echo "#define ENABLE_NLS 1" >>confdefs.h
b0cacab0 11335
57aa50d4
TT
11336 else
11337 USE_NLS=no
11338 fi
11339 fi
b0cacab0 11340
57aa50d4
TT
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11342$as_echo_n "checking whether to use NLS... " >&6; }
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11344$as_echo "$USE_NLS" >&6; }
11345 if test "$USE_NLS" = "yes"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11347$as_echo_n "checking where the gettext function comes from... " >&6; }
11348 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 11349 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
11350 gt_source="external libintl"
11351 else
11352 gt_source="libc"
11353 fi
11354 else
11355 gt_source="included intl directory"
11356 fi
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11358$as_echo "$gt_source" >&6; }
11359 fi
b0cacab0 11360
57aa50d4 11361 if test "$USE_NLS" = "yes"; then
b0cacab0 11362
57aa50d4 11363 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 11364 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11366$as_echo_n "checking how to link with libintl... " >&6; }
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11368$as_echo "$LIBINTL" >&6; }
b0cacab0 11369
57aa50d4
TT
11370 for element in $INCINTL; do
11371 haveit=
11372 for x in $CPPFLAGS; do
b0cacab0 11373
57aa50d4
TT
11374 acl_save_prefix="$prefix"
11375 prefix="$acl_final_prefix"
11376 acl_save_exec_prefix="$exec_prefix"
11377 exec_prefix="$acl_final_exec_prefix"
11378 eval x=\"$x\"
11379 exec_prefix="$acl_save_exec_prefix"
11380 prefix="$acl_save_prefix"
b0cacab0 11381
57aa50d4
TT
11382 if test "X$x" = "X$element"; then
11383 haveit=yes
11384 break
11385 fi
11386 done
11387 if test -z "$haveit"; then
11388 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11389 fi
11390 done
b0cacab0 11391
57aa50d4 11392 fi
b0cacab0
TT
11393
11394
57aa50d4 11395$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
b0cacab0
TT
11396
11397
57aa50d4 11398$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
b0cacab0 11399
57aa50d4 11400 fi
b0cacab0 11401
57aa50d4
TT
11402 POSUB=po
11403 fi
b0cacab0
TT
11404
11405
57aa50d4
TT
11406 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11407 BUILD_INCLUDED_LIBINTL=yes
11408 fi
b0cacab0
TT
11409
11410
11411
11412
11413
57aa50d4
TT
11414 nls_cv_header_intl=
11415 nls_cv_header_libgt=
b0cacab0 11416
57aa50d4 11417 DATADIRNAME=share
762c7c65 11418
106ad96d 11419
57aa50d4 11420 INSTOBJEXT=.mo
106ad96d 11421
e7cc6f7d 11422
57aa50d4 11423 GENCAT=gencat
e7cc6f7d 11424
3d05802f 11425
93613951
TT
11426 INTLOBJS=
11427 if test "$USE_INCLUDED_LIBINTL" = yes; then
57aa50d4
TT
11428 INTLOBJS="\$(GETTOBJS)"
11429 fi
6ec9ef18 11430
d7f45af8 11431
57aa50d4 11432 INTL_LIBTOOL_SUFFIX_PREFIX=
50e1e10f 11433
50e1e10f 11434
b0cacab0 11435
57aa50d4 11436 INTLLIBS="$LIBINTL"
e1052144 11437
b0cacab0 11438
93636bde 11439
93636bde 11440
b0cacab0 11441
93636bde 11442
50e1e10f 11443
57aa50d4
TT
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11445$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11446set x ${MAKE-make}
11447ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
91d11da1 11448if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
57aa50d4
TT
11449 $as_echo_n "(cached) " >&6
11450else
11451 cat >conftest.make <<\_ACEOF
11452SHELL = /bin/sh
11453all:
11454 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 11455_ACEOF
91d11da1 11456# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
11457case `${MAKE-make} -f conftest.make 2>/dev/null` in
11458 *@@@%%%=?*=@@@%%%*)
11459 eval ac_cv_prog_make_${ac_make}_set=yes;;
11460 *)
11461 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 11462esac
57aa50d4 11463rm -f conftest.make
b0cacab0 11464fi
57aa50d4
TT
11465if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11467$as_echo "yes" >&6; }
11468 SET_MAKE=
b0b9c4de 11469else
57aa50d4
TT
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471$as_echo "no" >&6; }
11472 SET_MAKE="MAKE=${MAKE-make}"
b0cacab0 11473fi
b0cacab0 11474
57aa50d4
TT
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11476$as_echo_n "checking for GNU make... " >&6; }
91d11da1 11477if ${_cv_gnu_make_command+:} false; then :
57aa50d4 11478 $as_echo_n "(cached) " >&6
39fd3d4f 11479else
57aa50d4
TT
11480 _cv_gnu_make_command='' ;
11481 for a in "$MAKE" make gmake gnumake ; do
11482 if test -z "$a" ; then continue ; fi ;
11483 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11484 _cv_gnu_make_command=$a ;
11485 break;
11486 fi
11487 done ;
50e1e10f 11488
50e1e10f 11489fi
57aa50d4
TT
11490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11491$as_echo "$_cv_gnu_make_command" >&6; } ;
11492 if test "x$_cv_gnu_make_command" != "x" ; then
11493 ifGNUmake='' ;
11494 ifNotGNUmake='#' ;
11495 else
11496 ifGNUmake='#' ;
11497 ifNotGNUmake='' ;
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11499$as_echo "\"Not found\"" >&6; };
11500 fi
50e1e10f 11501
50e1e10f 11502
b0cacab0 11503
57aa50d4
TT
11504# Extract the first word of "ln", so it can be a program name with args.
11505set dummy ln; ac_word=$2
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 11508if ${ac_cv_path_LN+:} false; then :
39fd3d4f 11509 $as_echo_n "(cached) " >&6
fff45483 11510else
57aa50d4
TT
11511 case $LN in
11512 [\\/]* | ?:[\\/]*)
11513 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11514 ;;
11515 *)
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 11522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11523 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11525 break 2
11526 fi
11527done
11528 done
11529IFS=$as_save_IFS
6c65d251 11530
57aa50d4
TT
11531 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11532 ;;
e1052144 11533esac
fff45483 11534fi
57aa50d4
TT
11535LN=$ac_cv_path_LN
11536if test -n "$LN"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11538$as_echo "$LN" >&6; }
11539else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541$as_echo "no" >&6; }
fff45483 11542fi
e1052144 11543
fff45483 11544
57aa50d4
TT
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11546$as_echo_n "checking whether ln -s works... " >&6; }
11547LN_S=$as_ln_s
11548if test "$LN_S" = "ln -s"; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550$as_echo "yes" >&6; }
11551else
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11553$as_echo "no, using $LN_S" >&6; }
fff45483 11554fi
6c65d251 11555
57aa50d4
TT
11556# Extract the first word of "mv", so it can be a program name with args.
11557set dummy mv; ac_word=$2
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 11560if ${ac_cv_path_MV+:} false; then :
39fd3d4f 11561 $as_echo_n "(cached) " >&6
fff45483 11562else
57aa50d4
TT
11563 case $MV in
11564 [\\/]* | ?:[\\/]*)
11565 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11566 ;;
11567 *)
11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569for as_dir in $PATH
11570do
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 11574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11575 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577 break 2
11578 fi
11579done
11580 done
11581IFS=$as_save_IFS
6c65d251 11582
57aa50d4
TT
11583 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11584 ;;
e1052144 11585esac
b0cacab0 11586fi
57aa50d4
TT
11587MV=$ac_cv_path_MV
11588if test -n "$MV"; then
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11590$as_echo "$MV" >&6; }
b0b9c4de 11591else
57aa50d4
TT
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593$as_echo "no" >&6; }
39fd3d4f
SJR
11594fi
11595
39fd3d4f 11596
57aa50d4
TT
11597# Extract the first word of "cp", so it can be a program name with args.
11598set dummy cp; ac_word=$2
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11600$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 11601if ${ac_cv_path_CP+:} false; then :
39fd3d4f 11602 $as_echo_n "(cached) " >&6
b0cacab0 11603else
57aa50d4
TT
11604 case $CP in
11605 [\\/]* | ?:[\\/]*)
11606 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11607 ;;
11608 *)
11609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610for as_dir in $PATH
11611do
11612 IFS=$as_save_IFS
11613 test -z "$as_dir" && as_dir=.
11614 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 11615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11616 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11618 break 2
11619 fi
11620done
11621 done
11622IFS=$as_save_IFS
39fd3d4f 11623
57aa50d4
TT
11624 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11625 ;;
e1052144 11626esac
b0b9c4de 11627fi
57aa50d4
TT
11628CP=$ac_cv_path_CP
11629if test -n "$CP"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11631$as_echo "$CP" >&6; }
b0cacab0 11632else
57aa50d4
TT
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634$as_echo "no" >&6; }
b0b9c4de 11635fi
b0b9c4de 11636
6c65d251 11637
57aa50d4
TT
11638# Extract the first word of "rm", so it can be a program name with args.
11639set dummy rm; ac_word=$2
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 11642if ${ac_cv_path_RM+:} false; then :
39fd3d4f 11643 $as_echo_n "(cached) " >&6
6928adc9 11644else
57aa50d4
TT
11645 case $RM in
11646 [\\/]* | ?:[\\/]*)
11647 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11648 ;;
11649 *)
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651for as_dir in $PATH
11652do
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 11656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11657 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 break 2
11660 fi
11661done
b0cacab0 11662 done
57aa50d4 11663IFS=$as_save_IFS
6c65d251 11664
57aa50d4
TT
11665 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11666 ;;
e1052144 11667esac
6928adc9 11668fi
57aa50d4
TT
11669RM=$ac_cv_path_RM
11670if test -n "$RM"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11672$as_echo "$RM" >&6; }
b0cacab0 11673else
57aa50d4
TT
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675$as_echo "no" >&6; }
6928adc9 11676fi
6928adc9 11677
6c65d251 11678
57aa50d4
TT
11679# Extract the first word of "chmod", so it can be a program name with args.
11680set dummy chmod; ac_word=$2
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 11683if ${ac_cv_path_CHMOD+:} false; then :
39fd3d4f 11684 $as_echo_n "(cached) " >&6
b0cacab0 11685else
57aa50d4
TT
11686 case $CHMOD in
11687 [\\/]* | ?:[\\/]*)
11688 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11689 ;;
11690 *)
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692for as_dir in $PATH
11693do
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 11697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11698 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 break 2
11701 fi
11702done
11703 done
11704IFS=$as_save_IFS
39fd3d4f 11705
57aa50d4
TT
11706 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11707 ;;
e1052144 11708esac
b0cacab0 11709fi
57aa50d4
TT
11710CHMOD=$ac_cv_path_CHMOD
11711if test -n "$CHMOD"; then
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11713$as_echo "$CHMOD" >&6; }
b0cacab0 11714else
57aa50d4
TT
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716$as_echo "no" >&6; }
b0cacab0 11717fi
39fd3d4f 11718
b0cacab0 11719
57aa50d4
TT
11720for ac_prog in gawk mawk nawk awk
11721do
11722 # Extract the first word of "$ac_prog", so it can be a program name with args.
11723set dummy $ac_prog; ac_word=$2
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 11726if ${ac_cv_prog_AWK+:} false; then :
39fd3d4f 11727 $as_echo_n "(cached) " >&6
b0cacab0 11728else
57aa50d4
TT
11729 if test -n "$AWK"; then
11730 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b0cacab0 11731else
57aa50d4
TT
11732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733for as_dir in $PATH
11734do
11735 IFS=$as_save_IFS
11736 test -z "$as_dir" && as_dir=.
11737 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 11738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11739 ac_cv_prog_AWK="$ac_prog"
11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11741 break 2
11742 fi
11743done
11744 done
11745IFS=$as_save_IFS
b0cacab0 11746
b0cacab0 11747fi
57aa50d4
TT
11748fi
11749AWK=$ac_cv_prog_AWK
11750if test -n "$AWK"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11752$as_echo "$AWK" >&6; }
b0cacab0 11753else
57aa50d4
TT
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755$as_echo "no" >&6; }
b0cacab0 11756fi
b0cacab0 11757
b0cacab0 11758
57aa50d4
TT
11759 test -n "$AWK" && break
11760done
b0cacab0 11761
57aa50d4
TT
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11763$as_echo_n "checking for egrep... " >&6; }
91d11da1 11764if ${ac_cv_path_EGREP+:} false; then :
57aa50d4 11765 $as_echo_n "(cached) " >&6
b0cacab0 11766else
57aa50d4
TT
11767 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11768 then ac_cv_path_EGREP="$GREP -E"
11769 else
11770 if test -z "$EGREP"; then
11771 ac_path_EGREP_found=false
11772 # Loop through the user's path and test for each of PROGNAME-LIST
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11775do
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
11778 for ac_prog in egrep; do
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
91d11da1 11781 as_fn_executable_p "$ac_path_EGREP" || continue
57aa50d4
TT
11782# Check for GNU ac_path_EGREP and select it if it is found.
11783 # Check for GNU $ac_path_EGREP
11784case `"$ac_path_EGREP" --version 2>&1` in
11785*GNU*)
11786 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11787*)
11788 ac_count=0
11789 $as_echo_n 0123456789 >"conftest.in"
11790 while :
11791 do
11792 cat "conftest.in" "conftest.in" >"conftest.tmp"
11793 mv "conftest.tmp" "conftest.in"
11794 cp "conftest.in" "conftest.nl"
11795 $as_echo 'EGREP' >> "conftest.nl"
11796 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11798 as_fn_arith $ac_count + 1 && ac_count=$as_val
11799 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11800 # Best one so far, save it but keep looking for a better one
11801 ac_cv_path_EGREP="$ac_path_EGREP"
11802 ac_path_EGREP_max=$ac_count
11803 fi
11804 # 10*(2^10) chars as input seems more than enough
11805 test $ac_count -gt 10 && break
11806 done
11807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
e1052144 11808esac
e1052144 11809
57aa50d4
TT
11810 $ac_path_EGREP_found && break 3
11811 done
b0cacab0 11812 done
57aa50d4
TT
11813 done
11814IFS=$as_save_IFS
11815 if test -z "$ac_cv_path_EGREP"; then
91d11da1 11816 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
57aa50d4 11817 fi
b0cacab0 11818else
57aa50d4 11819 ac_cv_path_EGREP=$EGREP
b0cacab0 11820fi
e1052144 11821
57aa50d4 11822 fi
b0cacab0 11823fi
57aa50d4
TT
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11825$as_echo "$ac_cv_path_EGREP" >&6; }
11826 EGREP="$ac_cv_path_EGREP"
e1052144 11827
b0cacab0 11828
57aa50d4
TT
11829# Extract the first word of "sed", so it can be a program name with args.
11830set dummy sed; ac_word=$2
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11832$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 11833if ${ac_cv_path_SED+:} false; then :
57aa50d4 11834 $as_echo_n "(cached) " >&6
b0cacab0 11835else
57aa50d4
TT
11836 case $SED in
11837 [\\/]* | ?:[\\/]*)
11838 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11839 ;;
11840 *)
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842for as_dir in $PATH
11843do
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 11847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11848 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11850 break 2
11851 fi
b0cacab0 11852done
57aa50d4
TT
11853 done
11854IFS=$as_save_IFS
b0cacab0 11855
57aa50d4
TT
11856 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11857 ;;
b0cacab0 11858esac
57aa50d4
TT
11859fi
11860SED=$ac_cv_path_SED
11861if test -n "$SED"; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11863$as_echo "$SED" >&6; }
b0cacab0 11864else
57aa50d4
TT
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866$as_echo "no" >&6; }
b0cacab0 11867fi
e1052144 11868
b0cacab0 11869
57aa50d4
TT
11870# Extract the first word of "perl", so it can be a program name with args.
11871set dummy perl; ac_word=$2
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 11874if ${ac_cv_path_PERL+:} false; then :
57aa50d4
TT
11875 $as_echo_n "(cached) " >&6
11876else
11877 case $PERL in
11878 [\\/]* | ?:[\\/]*)
11879 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11880 ;;
11881 *)
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883for as_dir in $PATH
11884do
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 11888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11889 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891 break 2
11892 fi
b0cacab0 11893done
57aa50d4
TT
11894 done
11895IFS=$as_save_IFS
11896
11897 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11898 ;;
b0cacab0 11899esac
57aa50d4
TT
11900fi
11901PERL=$ac_cv_path_PERL
11902if test -n "$PERL"; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11904$as_echo "$PERL" >&6; }
b0cacab0 11905else
57aa50d4
TT
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907$as_echo "no" >&6; }
11908fi
b0cacab0 11909
b0cacab0 11910
57aa50d4
TT
11911# Extract the first word of "ldconfig", so it can be a program name with args.
11912set dummy ldconfig; ac_word=$2
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 11915if ${ac_cv_path_LDCONFIG+:} false; then :
57aa50d4 11916 $as_echo_n "(cached) " >&6
b0cacab0 11917else
57aa50d4
TT
11918 case $LDCONFIG in
11919 [\\/]* | ?:[\\/]*)
11920 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11921 ;;
11922 *)
11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924for as_dir in $PATH
11925do
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 11929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11930 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 break 2
11933 fi
11934done
11935 done
11936IFS=$as_save_IFS
b0cacab0 11937
57aa50d4
TT
11938 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11939 ;;
11940esac
39fd3d4f 11941fi
57aa50d4
TT
11942LDCONFIG=$ac_cv_path_LDCONFIG
11943if test -n "$LDCONFIG"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11945$as_echo "$LDCONFIG" >&6; }
11946else
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948$as_echo "no" >&6; }
b0cacab0 11949fi
39fd3d4f
SJR
11950
11951
57aa50d4
TT
11952if test -n "$ac_tool_prefix"; then
11953 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11954set dummy ${ac_tool_prefix}ar; ac_word=$2
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 11957if ${ac_cv_prog_AR+:} false; then :
57aa50d4
TT
11958 $as_echo_n "(cached) " >&6
11959else
11960 if test -n "$AR"; then
11961 ac_cv_prog_AR="$AR" # Let the user override the test.
11962else
11963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964for as_dir in $PATH
11965do
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 11969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11970 ac_cv_prog_AR="${ac_tool_prefix}ar"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11973 fi
11974done
11975 done
11976IFS=$as_save_IFS
39fd3d4f 11977
57aa50d4
TT
11978fi
11979fi
11980AR=$ac_cv_prog_AR
11981if test -n "$AR"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11983$as_echo "$AR" >&6; }
11984else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986$as_echo "no" >&6; }
11987fi
39fd3d4f 11988
b0cacab0 11989
57aa50d4
TT
11990fi
11991if test -z "$ac_cv_prog_AR"; then
11992 ac_ct_AR=$AR
11993 # Extract the first word of "ar", so it can be a program name with args.
11994set dummy ar; ac_word=$2
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 11997if ${ac_cv_prog_ac_ct_AR+:} false; then :
39fd3d4f 11998 $as_echo_n "(cached) " >&6
b0cacab0 11999else
57aa50d4
TT
12000 if test -n "$ac_ct_AR"; then
12001 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b0cacab0 12002else
57aa50d4
TT
12003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004for as_dir in $PATH
12005do
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 12009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12010 ac_cv_prog_ac_ct_AR="ar"
12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012 break 2
12013 fi
12014done
12015 done
12016IFS=$as_save_IFS
b0cacab0 12017
b0cacab0 12018fi
57aa50d4
TT
12019fi
12020ac_ct_AR=$ac_cv_prog_ac_ct_AR
12021if test -n "$ac_ct_AR"; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12023$as_echo "$ac_ct_AR" >&6; }
b0cacab0 12024else
57aa50d4
TT
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026$as_echo "no" >&6; }
12027fi
b0cacab0 12028
57aa50d4
TT
12029 if test "x$ac_ct_AR" = x; then
12030 AR="ar"
12031 else
12032 case $cross_compiling:$ac_tool_warned in
12033yes:)
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12036ac_tool_warned=yes ;;
e1052144 12037esac
57aa50d4
TT
12038 AR=$ac_ct_AR
12039 fi
b0cacab0 12040else
57aa50d4 12041 AR="$ac_cv_prog_AR"
b0cacab0 12042fi
e1052144 12043
57aa50d4
TT
12044if test -n "$ac_tool_prefix"; then
12045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12046set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 12049if ${ac_cv_prog_RANLIB+:} false; then :
57aa50d4 12050 $as_echo_n "(cached) " >&6
b0cacab0 12051else
57aa50d4
TT
12052 if test -n "$RANLIB"; then
12053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12054else
12055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056for as_dir in $PATH
12057do
12058 IFS=$as_save_IFS
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 12061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064 break 2
12065 fi
12066done
b0cacab0 12067 done
57aa50d4 12068IFS=$as_save_IFS
b0cacab0 12069
b0cacab0 12070fi
57aa50d4
TT
12071fi
12072RANLIB=$ac_cv_prog_RANLIB
12073if test -n "$RANLIB"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12075$as_echo "$RANLIB" >&6; }
b0cacab0 12076else
57aa50d4
TT
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078$as_echo "no" >&6; }
b0cacab0 12079fi
b0cacab0 12080
b0cacab0 12081
57aa50d4
TT
12082fi
12083if test -z "$ac_cv_prog_RANLIB"; then
12084 ac_ct_RANLIB=$RANLIB
12085 # Extract the first word of "ranlib", so it can be a program name with args.
12086set dummy ranlib; ac_word=$2
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 12089if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
57aa50d4
TT
12090 $as_echo_n "(cached) " >&6
12091else
12092 if test -n "$ac_ct_RANLIB"; then
12093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b0cacab0 12094else
57aa50d4
TT
12095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $PATH
12097do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12102 ac_cv_prog_ac_ct_RANLIB="ranlib"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106done
12107 done
12108IFS=$as_save_IFS
29a5deed 12109
b0cacab0 12110fi
57aa50d4
TT
12111fi
12112ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12113if test -n "$ac_ct_RANLIB"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12115$as_echo "$ac_ct_RANLIB" >&6; }
b0cacab0 12116else
57aa50d4
TT
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118$as_echo "no" >&6; }
12119fi
b0cacab0 12120
57aa50d4
TT
12121 if test "x$ac_ct_RANLIB" = x; then
12122 RANLIB=":"
b0cacab0 12123 else
57aa50d4
TT
12124 case $cross_compiling:$ac_tool_warned in
12125yes:)
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12128ac_tool_warned=yes ;;
e1052144 12129esac
57aa50d4
TT
12130 RANLIB=$ac_ct_RANLIB
12131 fi
b0cacab0 12132else
57aa50d4 12133 RANLIB="$ac_cv_prog_RANLIB"
b0cacab0 12134fi
e1052144 12135
57aa50d4
TT
12136if test -n "$ac_tool_prefix"; then
12137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12138set dummy ${ac_tool_prefix}strip; ac_word=$2
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 12141if ${ac_cv_prog_STRIP+:} false; then :
57aa50d4 12142 $as_echo_n "(cached) " >&6
b0cacab0 12143else
57aa50d4
TT
12144 if test -n "$STRIP"; then
12145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12146else
12147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148for as_dir in $PATH
12149do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 12153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12154 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156 break 2
12157 fi
12158done
12159 done
12160IFS=$as_save_IFS
b0cacab0 12161
b0cacab0 12162fi
b0cacab0 12163fi
57aa50d4
TT
12164STRIP=$ac_cv_prog_STRIP
12165if test -n "$STRIP"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12167$as_echo "$STRIP" >&6; }
12168else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170$as_echo "no" >&6; }
b0cacab0 12171fi
e1052144 12172
b0cacab0 12173
57aa50d4
TT
12174fi
12175if test -z "$ac_cv_prog_STRIP"; then
12176 ac_ct_STRIP=$STRIP
12177 # Extract the first word of "strip", so it can be a program name with args.
12178set dummy strip; ac_word=$2
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 12181if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
39fd3d4f 12182 $as_echo_n "(cached) " >&6
b0cacab0 12183else
57aa50d4
TT
12184 if test -n "$ac_ct_STRIP"; then
12185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12186else
12187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188for as_dir in $PATH
12189do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 12193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12194 ac_cv_prog_ac_ct_STRIP="strip"
12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198done
12199 done
12200IFS=$as_save_IFS
b0cacab0 12201
b0cacab0 12202fi
57aa50d4
TT
12203fi
12204ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12205if test -n "$ac_ct_STRIP"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12207$as_echo "$ac_ct_STRIP" >&6; }
b0cacab0 12208else
57aa50d4
TT
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
12211fi
b0cacab0 12212
57aa50d4
TT
12213 if test "x$ac_ct_STRIP" = x; then
12214 STRIP=":"
b0cacab0 12215 else
57aa50d4
TT
12216 case $cross_compiling:$ac_tool_warned in
12217yes:)
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12220ac_tool_warned=yes ;;
e1052144 12221esac
57aa50d4
TT
12222 STRIP=$ac_ct_STRIP
12223 fi
b0cacab0 12224else
57aa50d4 12225 STRIP="$ac_cv_prog_STRIP"
b0cacab0 12226fi
e1052144 12227
57aa50d4
TT
12228# Extract the first word of "makeinfo", so it can be a program name with args.
12229set dummy makeinfo; ac_word=$2
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 12232if ${ac_cv_prog_MAKEINFO+:} false; then :
57aa50d4 12233 $as_echo_n "(cached) " >&6
07a0db15 12234else
57aa50d4
TT
12235 if test -n "$MAKEINFO"; then
12236 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12237else
12238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239for as_dir in $PATH
12240do
12241 IFS=$as_save_IFS
12242 test -z "$as_dir" && as_dir=.
12243 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 12244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12245 ac_cv_prog_MAKEINFO="makeinfo"
12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247 break 2
12248 fi
12249done
12250 done
12251IFS=$as_save_IFS
b0cacab0 12252
b0cacab0
TT
12253fi
12254fi
57aa50d4
TT
12255MAKEINFO=$ac_cv_prog_MAKEINFO
12256if test -n "$MAKEINFO"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12258$as_echo "$MAKEINFO" >&6; }
b0cacab0 12259else
57aa50d4
TT
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261$as_echo "no" >&6; }
07a0db15 12262fi
29a5deed
TT
12263
12264
57aa50d4
TT
12265if test "_$MAKEINFO" = "_"; then
12266 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12267else
12268 case "$MAKEINFO" in
12269 */missing.*)
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12271*** Makeinfo is missing. Info documentation will not be built." >&5
12272$as_echo "$as_me: WARNING:
12273*** Makeinfo is missing. Info documentation will not be built." >&2;}
12274 ;;
12275 *)
12276 ;;
12277 esac
b0cacab0 12278fi
29a5deed 12279
b0cacab0 12280
57aa50d4
TT
12281# See if we need a separate native compiler.
12282if test $cross_compiling = no; then
12283 BUILD_CC="$CC"
b0cacab0 12284
b0cacab0 12285else
57aa50d4
TT
12286 for ac_prog in gcc cc
12287do
12288 # Extract the first word of "$ac_prog", so it can be a program name with args.
12289set dummy $ac_prog; ac_word=$2
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291$as_echo_n "checking for $ac_word... " >&6; }
91d11da1 12292if ${ac_cv_prog_BUILD_CC+:} false; then :
57aa50d4 12293 $as_echo_n "(cached) " >&6
b0cacab0 12294else
57aa50d4
TT
12295 if test -n "$BUILD_CC"; then
12296 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12297else
12298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299for as_dir in $PATH
12300do
12301 IFS=$as_save_IFS
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
91d11da1 12304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12305 ac_cv_prog_BUILD_CC="$ac_prog"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 break 2
12308 fi
12309done
12310 done
12311IFS=$as_save_IFS
b0cacab0 12312
b0cacab0 12313fi
57aa50d4
TT
12314fi
12315BUILD_CC=$ac_cv_prog_BUILD_CC
12316if test -n "$BUILD_CC"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12318$as_echo "$BUILD_CC" >&6; }
07a0db15 12319else
57aa50d4
TT
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321$as_echo "no" >&6; }
b0cacab0 12322fi
b0cacab0 12323
b0cacab0 12324
57aa50d4
TT
12325 test -n "$BUILD_CC" && break
12326done
b0cacab0 12327
57aa50d4 12328fi
51050544 12329for 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 linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
57aa50d4
TT
12330do :
12331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12332ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
91d11da1 12333if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
57aa50d4
TT
12334 cat >>confdefs.h <<_ACEOF
12335#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 12336_ACEOF
b0cacab0 12337
b0cacab0 12338fi
e1052144 12339
b0cacab0 12340done
93636bde 12341
57aa50d4
TT
12342for ac_header in net/if.h
12343do :
12344 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12345#if HAVE_SYS_TYPES_H
12346#include <sys/types.h>
12347#endif
12348#if HAVE_SYS_SOCKET
12349#include <sys/socket.h>
12350#endif
29a5deed 12351
57aa50d4 12352"
91d11da1 12353if test "x$ac_cv_header_net_if_h" = xyes; then :
57aa50d4
TT
12354 cat >>confdefs.h <<_ACEOF
12355#define HAVE_NET_IF_H 1
b0cacab0 12356_ACEOF
b0cacab0 12357
b0cacab0 12358fi
e1052144 12359
b0cacab0 12360done
b0cacab0 12361
57aa50d4
TT
12362for ac_func in vprintf
12363do :
12364 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
91d11da1 12365if test "x$ac_cv_func_vprintf" = xyes; then :
57aa50d4
TT
12366 cat >>confdefs.h <<_ACEOF
12367#define HAVE_VPRINTF 1
b0cacab0 12368_ACEOF
b0cacab0 12369
57aa50d4 12370ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
91d11da1 12371if test "x$ac_cv_func__doprnt" = xyes; then :
b0cacab0 12372
57aa50d4 12373$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
b0cacab0 12374
50e1e10f 12375fi
29a5deed 12376
57aa50d4
TT
12377fi
12378done
29a5deed
TT
12379
12380
57aa50d4
TT
12381ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12382"
91d11da1 12383if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
d1154eb4
TT
12384
12385$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
50e1e10f 12386
2873927d
TT
12387fi
12388
12389ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12390if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12391
12392cat >>confdefs.h <<_ACEOF
12393#define HAVE_STRUCT_STAT_ST_ATIM 1
12394_ACEOF
12395
12396
b0cacab0 12397fi
93636bde 12398
57aa50d4
TT
12399ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12400"
91d11da1 12401if test "x$ac_cv_type_ssize_t" = xyes; then :
d1154eb4
TT
12402
12403$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
b0cacab0 12404
57aa50d4 12405fi
b0cacab0 12406
57aa50d4
TT
12407ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12408"
91d11da1 12409if test "x$ac_cv_have_decl_llseek" = xyes; then :
d1154eb4
TT
12410
12411$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
b0cacab0 12412
b0cacab0 12413fi
e1052144 12414
57aa50d4
TT
12415ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12416 #define _LARGEFILE64_SOURCE
12417 #include <unistd.h>
12418"
91d11da1 12419if test "x$ac_cv_have_decl_lseek64" = xyes; then :
d1154eb4
TT
12420
12421$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
b0cacab0 12422
b0cacab0 12423fi
b0cacab0 12424
57aa50d4
TT
12425# The cast to long int works around a bug in the HP C Compiler
12426# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12427# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12428# This bug is HP SR number 8606223364.
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12430$as_echo_n "checking size of short... " >&6; }
91d11da1 12431if ${ac_cv_sizeof_short+:} false; then :
57aa50d4 12432 $as_echo_n "(cached) " >&6
07a0db15 12433else
57aa50d4 12434 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
b0cacab0 12435
b0cacab0 12436else
57aa50d4
TT
12437 if test "$ac_cv_type_short" = yes; then
12438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91d11da1
TT
12440as_fn_error 77 "cannot compute sizeof (short)
12441See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12442 else
12443 ac_cv_sizeof_short=0
12444 fi
07a0db15 12445fi
b0cacab0 12446
b0cacab0 12447fi
57aa50d4
TT
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12449$as_echo "$ac_cv_sizeof_short" >&6; }
e1052144 12450
93636bde 12451
57aa50d4
TT
12452
12453cat >>confdefs.h <<_ACEOF
12454#define SIZEOF_SHORT $ac_cv_sizeof_short
b0cacab0 12455_ACEOF
57aa50d4
TT
12456
12457
12458# The cast to long int works around a bug in the HP C Compiler
12459# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12460# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12461# This bug is HP SR number 8606223364.
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12463$as_echo_n "checking size of int... " >&6; }
91d11da1 12464if ${ac_cv_sizeof_int+:} false; then :
57aa50d4 12465 $as_echo_n "(cached) " >&6
07a0db15 12466else
57aa50d4 12467 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
93636bde 12468
57aa50d4
TT
12469else
12470 if test "$ac_cv_type_int" = yes; then
12471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91d11da1
TT
12473as_fn_error 77 "cannot compute sizeof (int)
12474See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12475 else
12476 ac_cv_sizeof_int=0
12477 fi
07a0db15 12478fi
e1052144 12479
b0cacab0 12480fi
57aa50d4
TT
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12482$as_echo "$ac_cv_sizeof_int" >&6; }
e1052144 12483
93636bde 12484
57aa50d4
TT
12485
12486cat >>confdefs.h <<_ACEOF
12487#define SIZEOF_INT $ac_cv_sizeof_int
b0cacab0 12488_ACEOF
b0cacab0 12489
e1052144 12490
57aa50d4
TT
12491# The cast to long int works around a bug in the HP C Compiler
12492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12494# This bug is HP SR number 8606223364.
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12496$as_echo_n "checking size of long... " >&6; }
91d11da1 12497if ${ac_cv_sizeof_long+:} false; then :
57aa50d4
TT
12498 $as_echo_n "(cached) " >&6
12499else
12500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12501
12502else
12503 if test "$ac_cv_type_long" = yes; then
12504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 12505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91d11da1
TT
12506as_fn_error 77 "cannot compute sizeof (long)
12507See \`config.log' for more details" "$LINENO" 5; }
29a5deed 12508 else
57aa50d4
TT
12509 ac_cv_sizeof_long=0
12510 fi
12511fi
39fd3d4f 12512
57aa50d4
TT
12513fi
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12515$as_echo "$ac_cv_sizeof_long" >&6; }
39fd3d4f 12516
57aa50d4
TT
12517
12518
12519cat >>confdefs.h <<_ACEOF
12520#define SIZEOF_LONG $ac_cv_sizeof_long
39fd3d4f 12521_ACEOF
57aa50d4
TT
12522
12523
12524# The cast to long int works around a bug in the HP C Compiler
12525# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12526# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12527# This bug is HP SR number 8606223364.
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12529$as_echo_n "checking size of long long... " >&6; }
91d11da1 12530if ${ac_cv_sizeof_long_long+:} false; then :
57aa50d4 12531 $as_echo_n "(cached) " >&6
39fd3d4f 12532else
57aa50d4 12533 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
39fd3d4f 12534
57aa50d4
TT
12535else
12536 if test "$ac_cv_type_long_long" = yes; then
12537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 12538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91d11da1
TT
12539as_fn_error 77 "cannot compute sizeof (long long)
12540See \`config.log' for more details" "$LINENO" 5; }
39fd3d4f
SJR
12541 else
12542 ac_cv_sizeof_long_long=0
12543 fi
12544fi
57aa50d4 12545
39fd3d4f 12546fi
57aa50d4 12547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
39fd3d4f
SJR
12548$as_echo "$ac_cv_sizeof_long_long" >&6; }
12549
12550
12551
12552cat >>confdefs.h <<_ACEOF
12553#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12554_ACEOF
12555
12556
cc68e8a6
TT
12557# The cast to long int works around a bug in the HP C Compiler
12558# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12559# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12560# This bug is HP SR number 8606223364.
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12562$as_echo_n "checking size of off_t... " >&6; }
12563if ${ac_cv_sizeof_off_t+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565else
12566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12567
12568else
12569 if test "$ac_cv_type_off_t" = yes; then
12570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12572as_fn_error 77 "cannot compute sizeof (off_t)
12573See \`config.log' for more details" "$LINENO" 5; }
12574 else
12575 ac_cv_sizeof_off_t=0
12576 fi
12577fi
12578
12579fi
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12581$as_echo "$ac_cv_sizeof_off_t" >&6; }
12582
12583
12584
12585cat >>confdefs.h <<_ACEOF
12586#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12587_ACEOF
12588
12589
39fd3d4f
SJR
12590SIZEOF_SHORT=$ac_cv_sizeof_short
12591SIZEOF_INT=$ac_cv_sizeof_int
12592SIZEOF_LONG=$ac_cv_sizeof_long
12593SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
cc68e8a6
TT
12594SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12595
39fd3d4f
SJR
12596
12597
12598
12599
57aa50d4 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
39fd3d4f 12601$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
91d11da1 12602if ${ac_cv_c_bigendian+:} false; then :
39fd3d4f
SJR
12603 $as_echo_n "(cached) " >&6
12604else
12605 ac_cv_c_bigendian=unknown
12606 # See if we're dealing with a universal compiler.
57aa50d4 12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12608/* end confdefs.h. */
12609#ifndef __APPLE_CC__
12610 not a universal capable compiler
12611 #endif
12612 typedef int dummy;
12613
12614_ACEOF
57aa50d4 12615if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
12616
12617 # Check for potential -arch flags. It is not universal unless
57aa50d4
TT
12618 # there are at least two -arch flags with different values.
12619 ac_arch=
12620 ac_prev=
12621 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12622 if test -n "$ac_prev"; then
12623 case $ac_word in
12624 i?86 | x86_64 | ppc | ppc64)
12625 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12626 ac_arch=$ac_word
12627 else
12628 ac_cv_c_bigendian=universal
12629 break
12630 fi
12631 ;;
12632 esac
12633 ac_prev=
12634 elif test "x$ac_word" = "x-arch"; then
12635 ac_prev=arch
12636 fi
12637 done
39fd3d4f 12638fi
39fd3d4f
SJR
12639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 if test $ac_cv_c_bigendian = unknown; then
12641 # See if sys/param.h defines the BYTE_ORDER macro.
57aa50d4 12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12643/* end confdefs.h. */
12644#include <sys/types.h>
12645 #include <sys/param.h>
12646
12647int
12648main ()
12649{
12650#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12651 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12652 && LITTLE_ENDIAN)
12653 bogus endian macros
12654 #endif
12655
12656 ;
12657 return 0;
12658}
12659_ACEOF
57aa50d4 12660if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 12661 # It does; now see whether it defined to BIG_ENDIAN or not.
57aa50d4 12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12663/* end confdefs.h. */
12664#include <sys/types.h>
12665 #include <sys/param.h>
12666
b0cacab0
TT
12667int
12668main ()
07a0db15 12669{
39fd3d4f
SJR
12670#if BYTE_ORDER != BIG_ENDIAN
12671 not big endian
12672 #endif
b0cacab0
TT
12673
12674 ;
12675 return 0;
07a0db15 12676}
b0cacab0 12677_ACEOF
57aa50d4 12678if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 12679 ac_cv_c_bigendian=yes
b0cacab0 12680else
57aa50d4 12681 ac_cv_c_bigendian=no
fc6d9d51 12682fi
39fd3d4f 12683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 12684fi
39fd3d4f
SJR
12685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 fi
12687 if test $ac_cv_c_bigendian = unknown; then
12688 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57aa50d4 12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12690/* end confdefs.h. */
39fd3d4f 12691#include <limits.h>
877eb6d9 12692
b0cacab0
TT
12693int
12694main ()
12695{
39fd3d4f
SJR
12696#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12697 bogus endian macros
12698 #endif
b0cacab0
TT
12699
12700 ;
12701 return 0;
12702}
b0cacab0 12703_ACEOF
57aa50d4
TT
12704if ac_fn_c_try_compile "$LINENO"; then :
12705 # It does; now see whether it defined to _BIG_ENDIAN or not.
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12707/* end confdefs.h. */
39fd3d4f 12708#include <limits.h>
877eb6d9 12709
b0cacab0
TT
12710int
12711main ()
12712{
39fd3d4f
SJR
12713#ifndef _BIG_ENDIAN
12714 not big endian
12715 #endif
b0cacab0
TT
12716
12717 ;
12718 return 0;
12719}
12720_ACEOF
57aa50d4 12721if ac_fn_c_try_compile "$LINENO"; then :
877eb6d9
TT
12722 ac_cv_c_bigendian=yes
12723else
57aa50d4 12724 ac_cv_c_bigendian=no
877eb6d9 12725fi
e1052144 12726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 12727fi
39fd3d4f
SJR
12728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12729 fi
12730 if test $ac_cv_c_bigendian = unknown; then
12731 # Compile a test program.
57aa50d4 12732 if test "$cross_compiling" = yes; then :
39fd3d4f 12733 # Try to guess by grepping values from an object file.
57aa50d4 12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12735/* end confdefs.h. */
39fd3d4f
SJR
12736short int ascii_mm[] =
12737 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12738 short int ascii_ii[] =
12739 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12740 int use_ascii (int i) {
12741 return ascii_mm[i] + ascii_ii[i];
12742 }
12743 short int ebcdic_ii[] =
12744 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12745 short int ebcdic_mm[] =
12746 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12747 int use_ebcdic (int i) {
12748 return ebcdic_mm[i] + ebcdic_ii[i];
12749 }
12750 extern int foo;
12751
b0cacab0
TT
12752int
12753main ()
12754{
39fd3d4f 12755return use_ascii (foo) == use_ebcdic (foo);
b0cacab0
TT
12756 ;
12757 return 0;
12758}
12759_ACEOF
57aa50d4 12760if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
12761 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12762 ac_cv_c_bigendian=yes
12763 fi
12764 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12765 if test "$ac_cv_c_bigendian" = unknown; then
12766 ac_cv_c_bigendian=no
12767 else
12768 # finding both strings is unlikely to happen, but who knows?
12769 ac_cv_c_bigendian=unknown
12770 fi
12771 fi
b0cacab0 12772fi
e1052144 12773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 12774else
57aa50d4 12775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12776/* end confdefs.h. */
e1052144 12777$ac_includes_default
b0cacab0
TT
12778int
12779main ()
12780{
e1052144 12781
39fd3d4f
SJR
12782 /* Are we little or big endian? From Harbison&Steele. */
12783 union
12784 {
12785 long int l;
12786 char c[sizeof (long int)];
12787 } u;
12788 u.l = 1;
12789 return u.c[sizeof (long int) - 1] == 1;
e1052144
TT
12790
12791 ;
12792 return 0;
877eb6d9 12793}
b0cacab0 12794_ACEOF
57aa50d4 12795if ac_fn_c_try_run "$LINENO"; then :
877eb6d9
TT
12796 ac_cv_c_bigendian=no
12797else
57aa50d4 12798 ac_cv_c_bigendian=yes
877eb6d9 12799fi
57aa50d4
TT
12800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12801 conftest.$ac_objext conftest.beam conftest.$ac_ext
877eb6d9 12802fi
e1052144 12803
39fd3d4f 12804 fi
877eb6d9 12805fi
57aa50d4 12806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
39fd3d4f
SJR
12807$as_echo "$ac_cv_c_bigendian" >&6; }
12808 case $ac_cv_c_bigendian in #(
12809 yes)
57aa50d4 12810 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
39fd3d4f
SJR
12811;; #(
12812 no)
12813 ;; #(
12814 universal)
07a0db15 12815
57aa50d4 12816$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
39fd3d4f
SJR
12817
12818 ;; #(
12819 *)
91d11da1 12820 as_fn_error $? "unknown endianness
57aa50d4 12821 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
39fd3d4f 12822 esac
877eb6d9 12823
91f04685
CQ
12824if test $cross_compiling = no; then
12825 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12826else
12827 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12828fi
4ea7ea00
TT
12829ASM_TYPES_HEADER=./asm_types.h
12830
488c75a6
TT
12831echo "/* These defines are needed for the public ext2fs.h header file */" \
12832 > public_config.h
12833if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12834 uniq tmp_config.$$ >> public_config.h
12835else
12836 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12837fi
12838if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12839 uniq tmp_config.$$ >> public_config.h
12840else
12841 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12842fi
12843rm -f tmp_config.$$
12844PUBLIC_CONFIG_HEADER=./public_config.h
12845
b0cacab0 12846for ac_header in inttypes.h
57aa50d4
TT
12847do :
12848 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
91d11da1 12849if test "x$ac_cv_header_inttypes_h" = xyes; then :
b0cacab0 12850 cat >>confdefs.h <<_ACEOF
57aa50d4 12851#define HAVE_INTTYPES_H 1
b0cacab0
TT
12852_ACEOF
12853
12854fi
12855
0c193f82
TT
12856done
12857
57aa50d4 12858ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
91d11da1 12859if test "x$ac_cv_type_intptr_t" = xyes; then :
b0cacab0
TT
12860
12861cat >>confdefs.h <<_ACEOF
d2ee56d8 12862#define HAVE_INTPTR_T 1
b0cacab0 12863_ACEOF
0c193f82 12864
d2ee56d8 12865
0c193f82
TT
12866fi
12867
57aa50d4 12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
39fd3d4f 12869$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
91d11da1 12870if ${e2fsprogs_cv_struct_st_flags+:} false; then :
39fd3d4f 12871 $as_echo_n "(cached) " >&6
50e1e10f 12872else
57aa50d4 12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12874/* end confdefs.h. */
50e1e10f 12875#include <sys/stat.h>
b0cacab0
TT
12876int
12877main ()
12878{
50e1e10f 12879struct stat stat; stat.st_flags = 0;
b0cacab0
TT
12880 ;
12881 return 0;
12882}
12883_ACEOF
57aa50d4 12884if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f
TT
12885 e2fsprogs_cv_struct_st_flags=yes
12886else
57aa50d4 12887 e2fsprogs_cv_struct_st_flags=no
50e1e10f 12888fi
e1052144 12889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f
TT
12890fi
12891
57aa50d4 12892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
39fd3d4f 12893$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
50e1e10f 12894if test "$e2fsprogs_cv_struct_st_flags" = yes; then
57aa50d4 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
39fd3d4f 12896$as_echo_n "checking whether st_flags field is useful... " >&6; }
91d11da1 12897 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
39fd3d4f 12898 $as_echo_n "(cached) " >&6
b0cacab0 12899else
57aa50d4 12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12901/* end confdefs.h. */
c03bc4e8 12902#include <sys/stat.h>
b0cacab0
TT
12903int
12904main ()
12905{
c03bc4e8 12906struct stat stat; stat.st_flags |= UF_IMMUTABLE;
b0cacab0
TT
12907 ;
12908 return 0;
12909}
57aa50d4
TT
12910_ACEOF
12911if ac_fn_c_try_compile "$LINENO"; then :
12912 e2fsprogs_cv_struct_st_flags_immut=yes
6c65d251 12913else
57aa50d4 12914 e2fsprogs_cv_struct_st_flags_immut=no
84ea6e70 12915fi
e1052144 12916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84ea6e70 12917fi
e1052144 12918
57aa50d4
TT
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12920$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12921 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
d1154eb4
TT
12922
12923$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
57aa50d4
TT
12924
12925 fi
6c65d251 12926fi
57aa50d4
TT
12927ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12928 #include <sys/socket.h>
12929"
91d11da1 12930if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
b0cacab0
TT
12931
12932cat >>confdefs.h <<_ACEOF
84ea6e70 12933#define HAVE_SA_LEN 1
b0cacab0 12934_ACEOF
84ea6e70 12935
50e1e10f 12936fi
b0cacab0 12937
9ed8e5fe 12938if test -n "$BLKID_CMT"; then
57aa50d4 12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
9ed8e5fe 12940$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
91d11da1 12941if ${ac_cv_search_blkid_probe_all+:} false; then :
9ed8e5fe
ES
12942 $as_echo_n "(cached) " >&6
12943else
12944 ac_func_search_save_LIBS=$LIBS
57aa50d4 12945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9ed8e5fe
ES
12946/* end confdefs.h. */
12947
12948/* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12951#ifdef __cplusplus
12952extern "C"
12953#endif
12954char blkid_probe_all ();
12955int
12956main ()
12957{
12958return blkid_probe_all ();
12959 ;
12960 return 0;
12961}
12962_ACEOF
12963for ac_lib in '' blkid; do
12964 if test -z "$ac_lib"; then
12965 ac_res="none required"
12966 else
12967 ac_res=-l$ac_lib
12968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12969 fi
57aa50d4 12970 if ac_fn_c_try_link "$LINENO"; then :
9ed8e5fe 12971 ac_cv_search_blkid_probe_all=$ac_res
9ed8e5fe 12972fi
57aa50d4
TT
12973rm -f core conftest.err conftest.$ac_objext \
12974 conftest$ac_exeext
91d11da1 12975 if ${ac_cv_search_blkid_probe_all+:} false; then :
9ed8e5fe
ES
12976 break
12977fi
12978done
91d11da1 12979if ${ac_cv_search_blkid_probe_all+:} false; then :
57aa50d4 12980
9ed8e5fe
ES
12981else
12982 ac_cv_search_blkid_probe_all=no
12983fi
12984rm conftest.$ac_ext
12985LIBS=$ac_func_search_save_LIBS
12986fi
57aa50d4 12987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
9ed8e5fe
ES
12988$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12989ac_res=$ac_cv_search_blkid_probe_all
57aa50d4 12990if test "$ac_res" != no; then :
9ed8e5fe
ES
12991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12992
12993fi
12994
12995fi
2de2628b 12996for ac_func in __secure_getenv backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
57aa50d4
TT
12997do :
12998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12999ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
91d11da1 13000if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b0cacab0 13001 cat >>confdefs.h <<_ACEOF
39fd3d4f 13002#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b0cacab0 13003_ACEOF
21c84b71 13004
50e1e10f
TT
13005fi
13006done
13007
fc6d9d51 13008SOCKET_LIB=''
57aa50d4 13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
39fd3d4f 13010$as_echo_n "checking for socket in -lsocket... " >&6; }
91d11da1 13011if ${ac_cv_lib_socket_socket+:} false; then :
39fd3d4f 13012 $as_echo_n "(cached) " >&6
50e1e10f 13013else
b0cacab0 13014 ac_check_lib_save_LIBS=$LIBS
fc6d9d51 13015LIBS="-lsocket $LIBS"
57aa50d4 13016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13017/* end confdefs.h. */
93636bde 13018
e1052144
TT
13019/* Override any GCC internal prototype to avoid an error.
13020 Use char because int might match the return type of a GCC
13021 builtin and then its argument prototype would still apply. */
b0cacab0
TT
13022#ifdef __cplusplus
13023extern "C"
13024#endif
b0cacab0
TT
13025char socket ();
13026int
13027main ()
13028{
e1052144 13029return socket ();
b0cacab0
TT
13030 ;
13031 return 0;
13032}
13033_ACEOF
57aa50d4 13034if ac_fn_c_try_link "$LINENO"; then :
b0cacab0
TT
13035 ac_cv_lib_socket_socket=yes
13036else
57aa50d4 13037 ac_cv_lib_socket_socket=no
b0cacab0 13038fi
57aa50d4
TT
13039rm -f core conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext conftest.$ac_ext
b0cacab0
TT
13041LIBS=$ac_check_lib_save_LIBS
13042fi
57aa50d4 13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
39fd3d4f 13044$as_echo "$ac_cv_lib_socket_socket" >&6; }
91d11da1 13045if test "x$ac_cv_lib_socket_socket" = xyes; then :
fc6d9d51 13046 SOCKET_LIB=-lsocket
50e1e10f 13047fi
fc6d9d51 13048
93636bde 13049
57aa50d4 13050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
39fd3d4f 13051$as_echo_n "checking for optreset... " >&6; }
91d11da1 13052if ${ac_cv_have_optreset+:} false; then :
39fd3d4f 13053 $as_echo_n "(cached) " >&6
d7f45af8 13054else
57aa50d4 13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8 13056/* end confdefs.h. */
57aa50d4
TT
13057#include <unistd.h>
13058
13059_ACEOF
13060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13061 $EGREP "optreset" >/dev/null 2>&1; then :
13062 ac_cv_have_optreset=yes
d7f45af8 13063else
57aa50d4
TT
13064 ac_cv_have_optreset=no
13065fi
13066rm -f conftest*
d7f45af8 13067
d7f45af8 13068fi
57aa50d4
TT
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13070$as_echo "$ac_cv_have_optreset" >&6; }
13071if test $ac_cv_have_optreset = yes; then
d1154eb4
TT
13072
13073$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
d7f45af8 13074
d7f45af8 13075fi
d1154eb4 13076
57aa50d4
TT
13077SEM_INIT_LIB=''
13078ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
91d11da1 13079if test "x$ac_cv_func_sem_init" = xyes; then :
57aa50d4 13080
d7f45af8 13081else
57aa50d4 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
39fd3d4f 13083$as_echo_n "checking for sem_init in -lpthread... " >&6; }
91d11da1 13084if ${ac_cv_lib_pthread_sem_init+:} false; then :
39fd3d4f 13085 $as_echo_n "(cached) " >&6
d7f45af8
TT
13086else
13087 ac_check_lib_save_LIBS=$LIBS
13088LIBS="-lpthread $LIBS"
57aa50d4 13089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13090/* end confdefs.h. */
13091
13092/* Override any GCC internal prototype to avoid an error.
13093 Use char because int might match the return type of a GCC
13094 builtin and then its argument prototype would still apply. */
13095#ifdef __cplusplus
13096extern "C"
13097#endif
13098char sem_init ();
13099int
13100main ()
13101{
13102return sem_init ();
13103 ;
13104 return 0;
13105}
13106_ACEOF
57aa50d4 13107if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13108 ac_cv_lib_pthread_sem_init=yes
13109else
57aa50d4 13110 ac_cv_lib_pthread_sem_init=no
d7f45af8 13111fi
57aa50d4
TT
13112rm -f core conftest.err conftest.$ac_objext \
13113 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13114LIBS=$ac_check_lib_save_LIBS
13115fi
57aa50d4 13116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
39fd3d4f 13117$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
91d11da1 13118if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
57aa50d4 13119 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13120
13121 SEM_INIT_LIB=-lpthread
13122else
57aa50d4 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
39fd3d4f 13124$as_echo_n "checking for sem_init in -lrt... " >&6; }
91d11da1 13125if ${ac_cv_lib_rt_sem_init+:} false; then :
39fd3d4f 13126 $as_echo_n "(cached) " >&6
d7f45af8
TT
13127else
13128 ac_check_lib_save_LIBS=$LIBS
13129LIBS="-lrt $LIBS"
57aa50d4 13130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13131/* end confdefs.h. */
13132
13133/* Override any GCC internal prototype to avoid an error.
13134 Use char because int might match the return type of a GCC
13135 builtin and then its argument prototype would still apply. */
13136#ifdef __cplusplus
13137extern "C"
13138#endif
13139char sem_init ();
13140int
13141main ()
13142{
13143return sem_init ();
13144 ;
13145 return 0;
13146}
13147_ACEOF
57aa50d4 13148if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13149 ac_cv_lib_rt_sem_init=yes
13150else
57aa50d4 13151 ac_cv_lib_rt_sem_init=no
d7f45af8 13152fi
57aa50d4
TT
13153rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13155LIBS=$ac_check_lib_save_LIBS
13156fi
57aa50d4 13157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
39fd3d4f 13158$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
91d11da1 13159if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
57aa50d4 13160 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13161
13162 SEM_INIT_LIB=-lrt
13163else
57aa50d4 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
39fd3d4f 13165$as_echo_n "checking for sem_init in -lposix4... " >&6; }
91d11da1 13166if ${ac_cv_lib_posix4_sem_init+:} false; then :
39fd3d4f 13167 $as_echo_n "(cached) " >&6
d7f45af8
TT
13168else
13169 ac_check_lib_save_LIBS=$LIBS
13170LIBS="-lposix4 $LIBS"
57aa50d4 13171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13172/* end confdefs.h. */
13173
13174/* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply. */
13177#ifdef __cplusplus
13178extern "C"
13179#endif
13180char sem_init ();
13181int
13182main ()
13183{
13184return sem_init ();
13185 ;
13186 return 0;
13187}
13188_ACEOF
57aa50d4 13189if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13190 ac_cv_lib_posix4_sem_init=yes
13191else
57aa50d4 13192 ac_cv_lib_posix4_sem_init=no
d7f45af8 13193fi
57aa50d4
TT
13194rm -f core conftest.err conftest.$ac_objext \
13195 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13196LIBS=$ac_check_lib_save_LIBS
13197fi
57aa50d4 13198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
39fd3d4f 13199$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
91d11da1 13200if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
57aa50d4 13201 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13202
13203 SEM_INIT_LIB=-lposix4
13204fi
13205
13206fi
13207
13208fi
13209
13210fi
13211
57aa50d4 13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
39fd3d4f 13213$as_echo_n "checking for unified diff option... " >&6; }
27f991b0 13214if diff -u $0 $0 > /dev/null 2>&1 ; then
e54635de
TT
13215 UNI_DIFF_OPTS=-u
13216else
13217 UNI_DIFF_OPTS=-c
13218fi
57aa50d4 13219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
39fd3d4f 13220$as_echo "$UNI_DIFF_OPTS" >&6; }
e54635de 13221
8f3f29d3
TT
13222case "$host_os" in
13223linux*)
d1154eb4
TT
13224
13225$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
50e1e10f 13226
8f3f29d3
TT
13227 ;;
13228esac
e6f2bda3 13229LINUX_CMT="#"
fff45483
TT
13230CYGWIN_CMT="#"
13231UNIX_CMT=
e6f2bda3
TT
13232case "$host_os" in
13233linux*)
13234 LINUX_CMT=
fff45483
TT
13235 ;;
13236cygwin)
13237 CYGWIN_CMT=
13238 UNIX_CMT="#"
e6f2bda3
TT
13239 ;;
13240esac
13241
93636bde
TT
13242
13243
50e1e10f 13244case "$host_os" in
93636bde 13245linux* | gnu* | k*bsd*-gnu)
a4b2d3ce
TT
13246 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13247 root_prefix="";
57aa50d4 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
39fd3d4f 13249$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
fc6d9d51
TT
13250 fi
13251 ;;
13252esac
fc6d9d51 13253case "$host_os" in
93636bde 13254linux* | gnu* | k*bsd*-gnu)
fc6d9d51 13255 if test "$prefix" = NONE ; then
a4b2d3ce 13256 prefix="/usr";
57aa50d4 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
39fd3d4f 13258$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
bff61a7a 13259 if test "$mandir" = '${prefix}/man' ; then
57aa50d4 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
39fd3d4f 13261$as_echo "...and mandir defaults to /usr/share/man" >&6; }
bff61a7a
TT
13262 mandir=/usr/share/man
13263 fi
50e1e10f
TT
13264 fi
13265;;
13266esac
a4b2d3ce 13267if test "$root_prefix" = NONE ; then
ffe1991f 13268 if test "$prefix" = NONE ; then
a4b2d3ce
TT
13269 root_prefix="$ac_default_prefix"
13270 else
13271 root_prefix="$prefix"
13272 fi
b5ffeade
TT
13273 root_bindir=$bindir
13274 root_sbindir=$sbindir
13275 root_libdir=$libdir
13276 root_sysconfdir=$sysconfdir
13277else
13278 root_bindir='${root_prefix}/bin'
13279 root_sbindir='${root_prefix}/sbin'
13280 root_libdir='${root_prefix}/lib'
13281 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce 13282fi
c4ef11c5
TT
13283if test "$bindir" != '${exec_prefix}/bin'; then
13284 root_bindir=$bindir
57aa50d4 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
39fd3d4f 13286$as_echo "Setting root_bindir to $root_bindir" >&6; }
c4ef11c5
TT
13287fi
13288if test "$sbindir" != '${exec_prefix}/sbin'; then
13289 root_sbindir=$sbindir
57aa50d4 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
39fd3d4f 13291$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
c4ef11c5
TT
13292fi
13293if test "$libdir" != '${exec_prefix}/lib'; then
13294 root_libdir=$libdir
57aa50d4 13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
39fd3d4f 13296$as_echo "Setting root_libdir to $root_libdir" >&6; }
c4ef11c5
TT
13297fi
13298if test "$sysconfdir" != '${prefix}/etc'; then
13299 root_sysconfdir=$sysconfdir
57aa50d4 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
39fd3d4f 13301$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
c4ef11c5 13302fi
a4b2d3ce 13303
93636bde
TT
13304
13305
13306
13307
55e00a25
TT
13308
13309# Check whether --with-multiarch was given.
13310if test "${with_multiarch+set}" = set; then :
d7fa4103
TT
13311 withval=$with_multiarch; if test "$withval" = "lib64"; then
13312 libdir=/usr/lib64
13313 root_libdir=/lib64
13314else
13315 libdir=$libdir/$withval
13316 root_libdir=$root_libdir/$withval
13317fi
55e00a25
TT
13318
13319fi
d3de1a71
TT
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13321$as_echo_n "checking whether we can link with -static... " >&6; }
91d11da1 13322if ${ac_cv_e2fsprogs_use_static+:} false; then :
39fd3d4f 13323 $as_echo_n "(cached) " >&6
ae851482
TT
13324else
13325 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
57aa50d4 13326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13327/* end confdefs.h. */
ae851482 13328#include <stdio.h>
b0cacab0
TT
13329int
13330main ()
13331{
ae851482 13332fflush(stdout);
b0cacab0
TT
13333 ;
13334 return 0;
13335}
13336_ACEOF
57aa50d4 13337if ac_fn_c_try_link "$LINENO"; then :
ae851482
TT
13338 ac_cv_e2fsprogs_use_static=yes
13339else
57aa50d4 13340 ac_cv_e2fsprogs_use_static=no
ae851482 13341fi
57aa50d4
TT
13342rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
ae851482
TT
13344LDFLAGS=$SAVE_LDFLAGS
13345fi
50e1e10f 13346
defde784
TT
13347case "$host_os" in
13348solaris2.*)
b0cacab0 13349 ac_cv_e2fsprogs_use_static=no
defde784
TT
13350;;
13351esac
57aa50d4 13352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
39fd3d4f 13353$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
74becf3c 13354LDFLAG_STATIC=
ae851482 13355if test $ac_cv_e2fsprogs_use_static = yes; then
50e1e10f 13356 LDFLAG_STATIC=-static
ae851482 13357fi
50e1e10f 13358
07a0db15
TT
13359case "$host_os" in
13360darwin*)
57aa50d4 13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
39fd3d4f 13362$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
d1154eb4
TT
13363
13364$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
07a0db15
TT
13365
13366 ;;
13367esac
50e1e10f
TT
13368SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13369ET_DIR=`cd ${srcdir}/lib/et; pwd`
13370
93636bde 13371
50e1e10f
TT
13372if test "$cross_compiling" = yes ; then
13373 DO_TEST_SUITE=
13374else
13375 DO_TEST_SUITE=check
13376fi
13377
d1154eb4
TT
13378INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13379if test -n "$CPPFLAGS" ; then
13380 INCLUDES="$INCLUDES $CPPFLAGS"
13381fi
c6f35b8a 13382if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
d1154eb4 13383 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
c6f35b8a 13384fi
6c59a665
TT
13385if test -n "$WITH_DIET_LIBC" ; then
13386 INCLUDES="$INCLUDES -D_REENTRANT"
13387fi
c6f35b8a 13388
dd947da2 13389if test $cross_compiling = no; then
2873927d 13390 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
dd947da2
TT
13391 BUILD_LDFLAGS="$LDFLAGS"
13392else
13393 BUILD_CFLAGS=
13394 BUILD_LDFLAGS=
13395fi
13396
13397
50e1e10f
TT
13398test -d lib || mkdir lib
13399test -d include || mkdir include
13400test -d include/linux || mkdir include/linux
defde784 13401test -d include/asm || mkdir include/asm
bff0cc95 13402for i in MCONFIG Makefile e2fsprogs.spec \
183c73b0 13403 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
4ea7ea00
TT
13404 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13405 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
94ba8c75 13406 lib/uuid/Makefile lib/uuid/uuid_types.h \
f239fefc 13407 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
e6441865
TT
13408 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13409 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
921f4ad5 13410 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
94ba8c75 13411 debugfs/Makefile tests/Makefile tests/progs/Makefile \
98a5ad61
MA
13412 resize/Makefile doc/Makefile intl/Makefile \
13413 intl/libgnuintl.h po/Makefile.in ; do
94ba8c75
TT
13414 if test -d `dirname ${srcdir}/$i` ; then
13415 outlist="$outlist $i"
13416 fi
13417done
e1052144
TT
13418ac_config_files="$ac_config_files $outlist"
13419
b0cacab0 13420cat >confcache <<\_ACEOF
50e1e10f
TT
13421# This file is a shell script that caches the results of configure
13422# tests run on this system so they can be shared between configure
b0cacab0
TT
13423# scripts and configure runs, see configure's option --config-cache.
13424# It is not useful on other systems. If it contains results you don't
13425# want to keep, you may remove or edit it.
50e1e10f 13426#
b0cacab0
TT
13427# config.status only pays attention to the cache file if you give it
13428# the --recheck option to rerun configure.
50e1e10f 13429#
b0cacab0
TT
13430# `ac_cv_env_foo' variables (set or unset) will be overridden when
13431# loading this file, other *unset* `ac_cv_foo' will be assigned the
13432# following values.
13433
13434_ACEOF
13435
21c84b71
TT
13436# The following way of writing the cache mishandles newlines in values,
13437# but we know of no workaround that is simple, portable, and efficient.
e1052144 13438# So, we kill variables containing newlines.
50e1e10f
TT
13439# Ultrix sh set writes to stderr and can't be redirected directly,
13440# and sets the high bit in the cache file unless we assign to the vars.
e1052144
TT
13441(
13442 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13443 eval ac_val=\$$ac_var
13444 case $ac_val in #(
13445 *${as_nl}*)
13446 case $ac_var in #(
57aa50d4 13447 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39fd3d4f 13448$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
e1052144
TT
13449 esac
13450 case $ac_var in #(
13451 _ | IFS | as_nl) ;; #(
39fd3d4f 13452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
57aa50d4 13453 *) { eval $ac_var=; unset $ac_var;} ;;
e1052144
TT
13454 esac ;;
13455 esac
13456 done
13457
b0cacab0 13458 (set) 2>&1 |
e1052144
TT
13459 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13460 *${as_nl}ac_space=\ *)
57aa50d4
TT
13461 # `set' does not quote correctly, so add quotes: double-quote
13462 # substitution turns \\\\ into \\, and sed turns \\ into \.
b0cacab0
TT
13463 sed -n \
13464 "s/'/'\\\\''/g;
13465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e1052144 13466 ;; #(
b0cacab0
TT
13467 *)
13468 # `set' quotes correctly as required by POSIX, so do not add quotes.
e1052144 13469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b0cacab0 13470 ;;
e1052144
TT
13471 esac |
13472 sort
13473) |
b0cacab0 13474 sed '
e1052144 13475 /^ac_cv_env_/b end
b0cacab0 13476 t clear
e1052144 13477 :clear
b0cacab0
TT
13478 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13479 t end
e1052144
TT
13480 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13481 :end' >>confcache
13482if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13483 if test -w "$cache_file"; then
91d11da1 13484 if test "x$cache_file" != "x/dev/null"; then
57aa50d4 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39fd3d4f 13486$as_echo "$as_me: updating cache $cache_file" >&6;}
91d11da1
TT
13487 if test ! -f "$cache_file" || test -h "$cache_file"; then
13488 cat confcache >"$cache_file"
13489 else
13490 case $cache_file in #(
13491 */* | ?:*)
13492 mv -f confcache "$cache_file"$$ &&
13493 mv -f "$cache_file"$$ "$cache_file" ;; #(
13494 *)
13495 mv -f confcache "$cache_file" ;;
13496 esac
13497 fi
13498 fi
50e1e10f 13499 else
57aa50d4 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39fd3d4f 13501$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50e1e10f
TT
13502 fi
13503fi
13504rm -f confcache
13505
50e1e10f
TT
13506test "x$prefix" = xNONE && prefix=$ac_default_prefix
13507# Let make expand exec_prefix.
13508test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13509
d1154eb4 13510DEFS=-DHAVE_CONFIG_H
b0cacab0
TT
13511
13512ac_libobjs=
13513ac_ltlibobjs=
91d11da1 13514U=
b0cacab0
TT
13515for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13516 # 1. Remove the extension, and $U if already installed.
e1052144 13517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39fd3d4f 13518 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
e1052144
TT
13519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13520 # will be set to the directory where LIBOBJS objects are built.
57aa50d4
TT
13521 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13522 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b0cacab0
TT
13523done
13524LIBOBJS=$ac_libobjs
50e1e10f 13525
b0cacab0
TT
13526LTLIBOBJS=$ac_ltlibobjs
13527
13528
13529
39fd3d4f 13530
91d11da1 13531: "${CONFIG_STATUS=./config.status}"
39fd3d4f 13532ac_write_fail=0
b0cacab0
TT
13533ac_clean_files_save=$ac_clean_files
13534ac_clean_files="$ac_clean_files $CONFIG_STATUS"
57aa50d4 13535{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39fd3d4f 13536$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
57aa50d4
TT
13537as_write_fail=0
13538cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b0cacab0
TT
13539#! $SHELL
13540# Generated by $as_me.
93636bde 13541# Run this file to recreate the current configuration.
93636bde 13542# Compiler output produced by configure, useful for debugging
b0cacab0 13543# configure, is in config.log if it exists.
07a0db15 13544
b0cacab0
TT
13545debug=false
13546ac_cs_recheck=false
13547ac_cs_silent=false
b0cacab0 13548
57aa50d4
TT
13549SHELL=\${CONFIG_SHELL-$SHELL}
13550export SHELL
13551_ASEOF
13552cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13553## -------------------- ##
13554## M4sh Initialization. ##
13555## -------------------- ##
b0cacab0 13556
29a5deed
TT
13557# Be more Bourne compatible
13558DUALCASE=1; export DUALCASE # for MKS sh
57aa50d4 13559if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b0cacab0
TT
13560 emulate sh
13561 NULLCMD=:
39fd3d4f 13562 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
13563 # is contrary to our usage. Disable this feature.
13564 alias -g '${1+"$@"}'='"$@"'
e1052144
TT
13565 setopt NO_GLOB_SUBST
13566else
57aa50d4
TT
13567 case `(set -o) 2>/dev/null` in #(
13568 *posix*) :
13569 set -o posix ;; #(
13570 *) :
13571 ;;
29a5deed 13572esac
b0cacab0 13573fi
29a5deed
TT
13574
13575
39fd3d4f
SJR
13576as_nl='
13577'
13578export as_nl
13579# Printing a long string crashes Solaris 7 /usr/bin/printf.
13580as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13581as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13582as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
57aa50d4
TT
13583# Prefer a ksh shell builtin over an external printf program on Solaris,
13584# but without wasting forks for bash or zsh.
13585if test -z "$BASH_VERSION$ZSH_VERSION" \
13586 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13587 as_echo='print -r --'
13588 as_echo_n='print -rn --'
13589elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39fd3d4f
SJR
13590 as_echo='printf %s\n'
13591 as_echo_n='printf %s'
13592else
13593 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13594 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13595 as_echo_n='/usr/ucb/echo -n'
e1052144 13596 else
39fd3d4f
SJR
13597 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13598 as_echo_n_body='eval
13599 arg=$1;
57aa50d4 13600 case $arg in #(
39fd3d4f
SJR
13601 *"$as_nl"*)
13602 expr "X$arg" : "X\\(.*\\)$as_nl";
13603 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13604 esac;
13605 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13606 '
13607 export as_echo_n_body
13608 as_echo_n='sh -c $as_echo_n_body as_echo'
e1052144 13609 fi
39fd3d4f
SJR
13610 export as_echo_body
13611 as_echo='sh -c $as_echo_body as_echo'
13612fi
13613
13614# The user is always right.
13615if test "${PATH_SEPARATOR+set}" != set; then
13616 PATH_SEPARATOR=:
13617 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13618 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13619 PATH_SEPARATOR=';'
13620 }
e1052144
TT
13621fi
13622
b0cacab0 13623
e1052144
TT
13624# IFS
13625# We need space, tab and new line, in precisely that order. Quoting is
13626# there to prevent editors from complaining about space-tab.
13627# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13628# splitting by setting IFS to empty value.)
e1052144
TT
13629IFS=" "" $as_nl"
13630
13631# Find who we are. Look in the path if we contain no directory separator.
91d11da1 13632as_myself=
57aa50d4 13633case $0 in #((
e1052144
TT
13634 *[\\/]* ) as_myself=$0 ;;
13635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13636for as_dir in $PATH
13637do
13638 IFS=$as_save_IFS
13639 test -z "$as_dir" && as_dir=.
57aa50d4
TT
13640 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13641 done
e1052144
TT
13642IFS=$as_save_IFS
13643
13644 ;;
13645esac
13646# We did not find ourselves, most probably we were run as `sh COMMAND'
13647# in which case we are not to be found in the path.
13648if test "x$as_myself" = x; then
13649 as_myself=$0
13650fi
13651if test ! -f "$as_myself"; then
39fd3d4f 13652 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 13653 exit 1
e1052144
TT
13654fi
13655
57aa50d4
TT
13656# Unset variables that we do not need and which cause bugs (e.g. in
13657# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13658# suppresses any "Segmentation fault" message there. '((' could
13659# trigger a bug in pdksh 5.2.14.
13660for as_var in BASH_ENV ENV MAIL MAILPATH
13661do eval test x\${$as_var+set} = xset \
13662 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
e1052144 13663done
b0cacab0
TT
13664PS1='$ '
13665PS2='> '
13666PS4='+ '
13667
13668# NLS nuisances.
39fd3d4f
SJR
13669LC_ALL=C
13670export LC_ALL
13671LANGUAGE=C
13672export LANGUAGE
b0cacab0 13673
57aa50d4
TT
13674# CDPATH.
13675(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13676
13677
91d11da1
TT
13678# as_fn_error STATUS ERROR [LINENO LOG_FD]
13679# ----------------------------------------
57aa50d4
TT
13680# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13681# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
91d11da1 13682# script with STATUS, using 1 if that was 0.
57aa50d4
TT
13683as_fn_error ()
13684{
91d11da1
TT
13685 as_status=$1; test $as_status -eq 0 && as_status=1
13686 if test "$4"; then
13687 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13688 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 13689 fi
91d11da1 13690 $as_echo "$as_me: error: $2" >&2
57aa50d4
TT
13691 as_fn_exit $as_status
13692} # as_fn_error
13693
13694
13695# as_fn_set_status STATUS
13696# -----------------------
13697# Set $? to STATUS, without forking.
13698as_fn_set_status ()
13699{
13700 return $1
13701} # as_fn_set_status
13702
13703# as_fn_exit STATUS
13704# -----------------
13705# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13706as_fn_exit ()
13707{
13708 set +e
13709 as_fn_set_status $1
13710 exit $1
13711} # as_fn_exit
13712
13713# as_fn_unset VAR
13714# ---------------
13715# Portably unset VAR.
13716as_fn_unset ()
13717{
13718 { eval $1=; unset $1;}
13719}
13720as_unset=as_fn_unset
13721# as_fn_append VAR VALUE
13722# ----------------------
13723# Append the text in VALUE to the end of the definition contained in VAR. Take
13724# advantage of any shell optimizations that allow amortized linear growth over
13725# repeated appends, instead of the typical quadratic growth present in naive
13726# implementations.
13727if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13728 eval 'as_fn_append ()
13729 {
13730 eval $1+=\$2
13731 }'
13732else
13733 as_fn_append ()
13734 {
13735 eval $1=\$$1\$2
13736 }
13737fi # as_fn_append
13738
13739# as_fn_arith ARG...
13740# ------------------
13741# Perform arithmetic evaluation on the ARGs, and store the result in the
13742# global $as_val. Take advantage of shells that can avoid forks. The arguments
13743# must be portable across $(()) and expr.
13744if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13745 eval 'as_fn_arith ()
13746 {
13747 as_val=$(( $* ))
13748 }'
13749else
13750 as_fn_arith ()
13751 {
13752 as_val=`expr "$@" || test $? -eq 1`
13753 }
13754fi # as_fn_arith
13755
13756
e1052144
TT
13757if expr a : '\(a\)' >/dev/null 2>&1 &&
13758 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
13759 as_expr=expr
13760else
13761 as_expr=false
13762fi
13763
e1052144 13764if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
13765 as_basename=basename
13766else
13767 as_basename=false
13768fi
13769
57aa50d4
TT
13770if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13771 as_dirname=dirname
13772else
13773 as_dirname=false
13774fi
b0cacab0 13775
e1052144 13776as_me=`$as_basename -- "$0" ||
b0cacab0
TT
13777$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13778 X"$0" : 'X\(//\)$' \| \
e1052144 13779 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 13780$as_echo X/"$0" |
e1052144
TT
13781 sed '/^.*\/\([^/][^/]*\)\/*$/{
13782 s//\1/
13783 q
13784 }
13785 /^X\/\(\/\/\)$/{
13786 s//\1/
13787 q
13788 }
13789 /^X\/\(\/\).*/{
13790 s//\1/
13791 q
13792 }
13793 s/.*/./; q'`
b0cacab0 13794
57aa50d4
TT
13795# Avoid depending upon Character Ranges.
13796as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13797as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13798as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13799as_cr_digits='0123456789'
13800as_cr_alnum=$as_cr_Letters$as_cr_digits
e1052144
TT
13801
13802ECHO_C= ECHO_N= ECHO_T=
57aa50d4 13803case `echo -n x` in #(((((
e1052144 13804-n*)
57aa50d4 13805 case `echo 'xy\c'` in
e1052144 13806 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
57aa50d4
TT
13807 xy) ECHO_C='\c';;
13808 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13809 ECHO_T=' ';;
e1052144
TT
13810 esac;;
13811*)
13812 ECHO_N='-n';;
b0cacab0 13813esac
b0cacab0
TT
13814
13815rm -f conf$$ conf$$.exe conf$$.file
e1052144
TT
13816if test -d conf$$.dir; then
13817 rm -f conf$$.dir/conf$$.file
13818else
13819 rm -f conf$$.dir
39fd3d4f
SJR
13820 mkdir conf$$.dir 2>/dev/null
13821fi
13822if (echo >conf$$.file) 2>/dev/null; then
13823 if ln -s conf$$.file conf$$ 2>/dev/null; then
13824 as_ln_s='ln -s'
13825 # ... but there are two gotchas:
13826 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13827 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
91d11da1 13828 # In both cases, we have to default to `cp -pR'.
39fd3d4f 13829 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
91d11da1 13830 as_ln_s='cp -pR'
39fd3d4f
SJR
13831 elif ln conf$$.file conf$$ 2>/dev/null; then
13832 as_ln_s=ln
13833 else
91d11da1 13834 as_ln_s='cp -pR'
39fd3d4f 13835 fi
b0cacab0 13836else
91d11da1 13837 as_ln_s='cp -pR'
b0cacab0 13838fi
e1052144
TT
13839rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13840rmdir conf$$.dir 2>/dev/null
b0cacab0 13841
57aa50d4
TT
13842
13843# as_fn_mkdir_p
13844# -------------
13845# Create "$as_dir" as a directory, including parents if necessary.
13846as_fn_mkdir_p ()
13847{
13848
13849 case $as_dir in #(
13850 -*) as_dir=./$as_dir;;
13851 esac
13852 test -d "$as_dir" || eval $as_mkdir_p || {
13853 as_dirs=
13854 while :; do
13855 case $as_dir in #(
13856 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13857 *) as_qdir=$as_dir;;
13858 esac
13859 as_dirs="'$as_qdir' $as_dirs"
13860 as_dir=`$as_dirname -- "$as_dir" ||
13861$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13862 X"$as_dir" : 'X\(//\)[^/]' \| \
13863 X"$as_dir" : 'X\(//\)$' \| \
13864 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13865$as_echo X"$as_dir" |
13866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13867 s//\1/
13868 q
13869 }
13870 /^X\(\/\/\)[^/].*/{
13871 s//\1/
13872 q
13873 }
13874 /^X\(\/\/\)$/{
13875 s//\1/
13876 q
13877 }
13878 /^X\(\/\).*/{
13879 s//\1/
13880 q
13881 }
13882 s/.*/./; q'`
13883 test -d "$as_dir" && break
13884 done
13885 test -z "$as_dirs" || eval "mkdir $as_dirs"
91d11da1 13886 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
13887
13888
13889} # as_fn_mkdir_p
b0cacab0 13890if mkdir -p . 2>/dev/null; then
57aa50d4 13891 as_mkdir_p='mkdir -p "$as_dir"'
b0cacab0
TT
13892else
13893 test -d ./-p && rmdir ./-p
13894 as_mkdir_p=false
13895fi
13896
91d11da1
TT
13897
13898# as_fn_executable_p FILE
13899# -----------------------
13900# Test if FILE is an executable regular file.
13901as_fn_executable_p ()
13902{
13903 test -f "$1" && test -x "$1"
13904} # as_fn_executable_p
13905as_test_x='test -x'
13906as_executable_p=as_fn_executable_p
b0cacab0
TT
13907
13908# Sed expression to map a string onto a valid CPP name.
13909as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13910
13911# Sed expression to map a string onto a valid variable name.
13912as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13913
13914
b0cacab0 13915exec 6>&1
57aa50d4
TT
13916## ----------------------------------- ##
13917## Main body of $CONFIG_STATUS script. ##
13918## ----------------------------------- ##
13919_ASEOF
13920test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b0cacab0 13921
57aa50d4
TT
13922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13923# Save the log message, to keep $0 and so on meaningful, and to
b0cacab0 13924# report actual input values of CONFIG_FILES etc. instead of their
e1052144
TT
13925# values after options handling.
13926ac_log="
b0cacab0 13927This file was extended by $as_me, which was
91d11da1 13928generated by GNU Autoconf 2.69. Invocation command line was
b0cacab0
TT
13929
13930 CONFIG_FILES = $CONFIG_FILES
13931 CONFIG_HEADERS = $CONFIG_HEADERS
13932 CONFIG_LINKS = $CONFIG_LINKS
13933 CONFIG_COMMANDS = $CONFIG_COMMANDS
13934 $ $0 $@
13935
e1052144
TT
13936on `(hostname || uname -n) 2>/dev/null | sed 1q`
13937"
13938
b0cacab0
TT
13939_ACEOF
13940
39fd3d4f
SJR
13941case $ac_config_files in *"
13942"*) set x $ac_config_files; shift; ac_config_files=$*;;
13943esac
13944
d1154eb4
TT
13945case $ac_config_headers in *"
13946"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13947esac
39fd3d4f
SJR
13948
13949
13950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 13951# Files that config.status was made for.
e1052144 13952config_files="$ac_config_files"
d1154eb4 13953config_headers="$ac_config_headers"
e1052144 13954config_commands="$ac_config_commands"
b0cacab0 13955
e1052144 13956_ACEOF
b0cacab0 13957
39fd3d4f 13958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0 13959ac_cs_usage="\
57aa50d4
TT
13960\`$as_me' instantiates files and other configuration actions
13961from templates according to the current configuration. Unless the files
13962and actions are specified as TAGs, all are instantiated by default.
b0cacab0 13963
57aa50d4 13964Usage: $0 [OPTION]... [TAG]...
b0cacab0
TT
13965
13966 -h, --help print this help, then exit
29a5deed 13967 -V, --version print version number and configuration settings, then exit
61ef2474 13968 --config print configuration, then exit
39fd3d4f
SJR
13969 -q, --quiet, --silent
13970 do not print progress messages
b0cacab0
TT
13971 -d, --debug don't remove temporary files
13972 --recheck update $as_me by reconfiguring in the same conditions
39fd3d4f
SJR
13973 --file=FILE[:TEMPLATE]
13974 instantiate the configuration file FILE
d1154eb4
TT
13975 --header=FILE[:TEMPLATE]
13976 instantiate the configuration header FILE
b0cacab0
TT
13977
13978Configuration files:
13979$config_files
13980
d1154eb4
TT
13981Configuration headers:
13982$config_headers
13983
b0cacab0
TT
13984Configuration commands:
13985$config_commands
13986
57aa50d4 13987Report bugs to the package provider."
b0cacab0 13988
e1052144 13989_ACEOF
39fd3d4f 13990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61ef2474 13991ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b0cacab0
TT
13992ac_cs_version="\\
13993config.status
91d11da1 13994configured by $0, generated by GNU Autoconf 2.69,
61ef2474 13995 with options \\"\$ac_cs_config\\"
b0cacab0 13996
91d11da1 13997Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
13998This config.status script is free software; the Free Software Foundation
13999gives unlimited permission to copy, distribute and modify it."
e1052144
TT
14000
14001ac_pwd='$ac_pwd'
14002srcdir='$srcdir'
14003INSTALL='$INSTALL'
93613951 14004MKDIR_P='$MKDIR_P'
39fd3d4f
SJR
14005AWK='$AWK'
14006test -n "\$AWK" || AWK=awk
b0cacab0
TT
14007_ACEOF
14008
39fd3d4f
SJR
14009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010# The default lists apply if the user does not specify any file.
b0cacab0
TT
14011ac_need_defaults=:
14012while test $# != 0
07a0db15 14013do
b0cacab0 14014 case $1 in
91d11da1 14015 --*=?*)
e1052144
TT
14016 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14017 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b0cacab0
TT
14018 ac_shift=:
14019 ;;
91d11da1
TT
14020 --*=)
14021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14022 ac_optarg=
14023 ac_shift=:
14024 ;;
e1052144 14025 *)
b0cacab0
TT
14026 ac_option=$1
14027 ac_optarg=$2
14028 ac_shift=shift
14029 ;;
b0cacab0
TT
14030 esac
14031
14032 case $ac_option in
14033 # Handling of the options.
93636bde 14034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b0cacab0 14035 ac_cs_recheck=: ;;
e1052144 14036 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39fd3d4f 14037 $as_echo "$ac_cs_version"; exit ;;
61ef2474
TT
14038 --config | --confi | --conf | --con | --co | --c )
14039 $as_echo "$ac_cs_config"; exit ;;
e1052144 14040 --debug | --debu | --deb | --de | --d | -d )
b0cacab0
TT
14041 debug=: ;;
14042 --file | --fil | --fi | --f )
14043 $ac_shift
39fd3d4f
SJR
14044 case $ac_optarg in
14045 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
91d11da1 14046 '') as_fn_error $? "missing file argument" ;;
39fd3d4f 14047 esac
57aa50d4 14048 as_fn_append CONFIG_FILES " '$ac_optarg'"
b0cacab0 14049 ac_need_defaults=false;;
d1154eb4
TT
14050 --header | --heade | --head | --hea )
14051 $ac_shift
14052 case $ac_optarg in
14053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14054 esac
14055 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14056 ac_need_defaults=false;;
14057 --he | --h)
14058 # Conflict between --help and --header
91d11da1 14059 as_fn_error $? "ambiguous option: \`$1'
d1154eb4
TT
14060Try \`$0 --help' for more information.";;
14061 --help | --hel | -h )
39fd3d4f 14062 $as_echo "$ac_cs_usage"; exit ;;
b0cacab0
TT
14063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14064 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14065 ac_cs_silent=: ;;
14066
14067 # This is an error.
91d11da1 14068 -*) as_fn_error $? "unrecognized option: \`$1'
57aa50d4 14069Try \`$0 --help' for more information." ;;
b0cacab0 14070
57aa50d4 14071 *) as_fn_append ac_config_targets " $1"
e1052144 14072 ac_need_defaults=false ;;
b0cacab0 14073
07a0db15 14074 esac
b0cacab0 14075 shift
07a0db15
TT
14076done
14077
b0cacab0
TT
14078ac_configure_extra_args=
14079
14080if $ac_cs_silent; then
14081 exec 6>/dev/null
14082 ac_configure_extra_args="$ac_configure_extra_args --silent"
14083fi
14084
14085_ACEOF
39fd3d4f 14086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 14087if \$ac_cs_recheck; then
91d11da1 14088 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39fd3d4f
SJR
14089 shift
14090 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14091 CONFIG_SHELL='$SHELL'
e1052144 14092 export CONFIG_SHELL
39fd3d4f 14093 exec "\$@"
b0cacab0 14094fi
07a0db15 14095
b0cacab0 14096_ACEOF
39fd3d4f 14097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
14098exec 5>>config.log
14099{
14100 echo
14101 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14102## Running $as_me. ##
14103_ASBOX
39fd3d4f 14104 $as_echo "$ac_log"
e1052144 14105} >&5
07a0db15 14106
e1052144 14107_ACEOF
39fd3d4f 14108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 14109#
e1052144 14110# INIT-COMMANDS
b0cacab0 14111#
b0cacab0
TT
14112# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14113 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
93613951 14114 # from automake < 1.5.
b0cacab0
TT
14115 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14116 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14117 LINGUAS="${LINGUAS-%UNSET%}"
14118
14119
14120_ACEOF
14121
39fd3d4f 14122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
14123
14124# Handling of arguments.
b0cacab0
TT
14125for ac_config_target in $ac_config_targets
14126do
e1052144 14127 case $ac_config_target in
d1154eb4 14128 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
93613951 14129 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
e1052144
TT
14130 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14131
91d11da1 14132 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b0cacab0
TT
14133 esac
14134done
14135
e1052144 14136
b0cacab0
TT
14137# If the user did not use the arguments to specify the items to instantiate,
14138# then the envvar interface is used. Set only those that are not.
14139# We use the long form for the default assignment because of an extremely
14140# bizarre bug on SunOS 4.1.3.
14141if $ac_need_defaults; then
14142 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
d1154eb4 14143 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b0cacab0
TT
14144 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14145fi
14146
14147# Have a temporary directory for convenience. Make it in the build tree
e1052144 14148# simply because there is no reason against having it here, and in addition,
b0cacab0 14149# creating and moving files from /tmp can sometimes cause problems.
e1052144
TT
14150# Hook for its removal unless debugging.
14151# Note that there is a small window in which the directory will not be cleaned:
14152# after its creation but before its name has been assigned to `$tmp'.
b0cacab0
TT
14153$debug ||
14154{
91d11da1 14155 tmp= ac_tmp=
e1052144 14156 trap 'exit_status=$?
91d11da1
TT
14157 : "${ac_tmp:=$tmp}"
14158 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
e1052144 14159' 0
57aa50d4 14160 trap 'as_fn_exit 1' 1 2 13 15
b0cacab0 14161}
b0cacab0
TT
14162# Create a (secure) tmp directory for tmp files.
14163
14164{
e1052144 14165 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
91d11da1 14166 test -d "$tmp"
b0cacab0
TT
14167} ||
14168{
e1052144
TT
14169 tmp=./conf$$-$RANDOM
14170 (umask 077 && mkdir "$tmp")
91d11da1
TT
14171} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14172ac_tmp=$tmp
b0cacab0 14173
39fd3d4f
SJR
14174# Set up the scripts for CONFIG_FILES section.
14175# No need to generate them if there are no CONFIG_FILES.
14176# This happens for instance with `./config.status config.h'.
e1052144
TT
14177if test -n "$CONFIG_FILES"; then
14178
39fd3d4f
SJR
14179if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14180 ac_cs_awk_getline=:
14181 ac_cs_awk_pipe_init=
14182 ac_cs_awk_read_file='
14183 while ((getline aline < (F[key])) > 0)
14184 print(aline)
14185 close(F[key])'
14186 ac_cs_awk_pipe_fini=
14187else
14188 ac_cs_awk_getline=false
14189 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14190 ac_cs_awk_read_file='
14191 print "|#_!!_#|"
14192 print "cat " F[key] " &&"
14193 '$ac_cs_awk_pipe_init
14194 # The final `:' finishes the AND list.
14195 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14196fi
57aa50d4
TT
14197ac_cr=`echo X | tr X '\015'`
14198# On cygwin, bash can eat \r inside `` if the user requested igncr.
14199# But we know of no other shell where ac_cr would be empty at this
14200# point, so we can use a bashism as a fallback.
14201if test "x$ac_cr" = x; then
14202 eval ac_cr=\$\'\\r\'
14203fi
39fd3d4f
SJR
14204ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14205if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
91d11da1 14206 ac_cs_awk_cr='\\r'
39fd3d4f
SJR
14207else
14208 ac_cs_awk_cr=$ac_cr
14209fi
e1052144 14210
91d11da1 14211echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39fd3d4f 14212_ACEOF
e1052144 14213
39fd3d4f
SJR
14214# Create commands to substitute file output variables.
14215{
14216 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
91d11da1 14217 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
39fd3d4f
SJR
14218 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14219 echo "_ACAWK" &&
14220 echo "_ACEOF"
14221} >conf$$files.sh &&
14222. ./conf$$files.sh ||
91d11da1 14223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 14224rm -f conf$$files.sh
e1052144 14225
39fd3d4f
SJR
14226{
14227 echo "cat >conf$$subs.awk <<_ACEOF" &&
14228 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14229 echo "_ACEOF"
14230} >conf$$subs.sh ||
91d11da1
TT
14231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14232ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
e1052144
TT
14233ac_delim='%!_!# '
14234for ac_last_try in false false false false false :; do
39fd3d4f 14235 . ./conf$$subs.sh ||
91d11da1 14236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f
SJR
14237
14238 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14239 if test $ac_delim_n = $ac_delim_num; then
e1052144
TT
14240 break
14241 elif $ac_last_try; then
91d11da1 14242 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e1052144
TT
14243 else
14244 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21c84b71 14245 fi
e1052144 14246done
39fd3d4f
SJR
14247rm -f conf$$subs.sh
14248
14249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
91d11da1 14250cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
39fd3d4f
SJR
14251_ACEOF
14252sed -n '
14253h
14254s/^/S["/; s/!.*/"]=/
14255p
14256g
14257s/^[^!]*!//
14258:repl
14259t repl
14260s/'"$ac_delim"'$//
14261t delim
14262:nl
14263h
61ef2474 14264s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
14265t more1
14266s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14267p
14268n
14269b repl
14270:more1
14271s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14272p
14273g
14274s/.\{148\}//
14275t nl
14276:delim
14277h
61ef2474 14278s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
14279t more2
14280s/["\\]/\\&/g; s/^/"/; s/$/"/
14281p
14282b
14283:more2
14284s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14285p
14286g
14287s/.\{148\}//
14288t delim
14289' <conf$$subs.awk | sed '
14290/^[^""]/{
14291 N
14292 s/\n//
e1052144 14293}
39fd3d4f
SJR
14294' >>$CONFIG_STATUS || ac_write_fail=1
14295rm -f conf$$subs.awk
14296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14297_ACAWK
91d11da1 14298cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
39fd3d4f
SJR
14299 for (key in S) S_is_set[key] = 1
14300 FS = "\a"
14301 \$ac_cs_awk_pipe_init
e1052144 14302}
39fd3d4f
SJR
14303{
14304 line = $ 0
14305 nfields = split(line, field, "@")
14306 substed = 0
14307 len = length(field[1])
14308 for (i = 2; i < nfields; i++) {
14309 key = field[i]
14310 keylen = length(key)
14311 if (S_is_set[key]) {
14312 value = S[key]
14313 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14314 len += length(value) + length(field[++i])
14315 substed = 1
14316 } else
14317 len += 1 + keylen
14318 }
14319 if (nfields == 3 && !substed) {
14320 key = field[2]
14321 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14322 \$ac_cs_awk_read_file
14323 next
14324 }
14325 }
14326 print line
488c75a6 14327}
39fd3d4f
SJR
14328\$ac_cs_awk_pipe_fini
14329_ACAWK
e1052144 14330_ACEOF
39fd3d4f
SJR
14331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14332if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14333 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14334else
14335 cat
91d11da1
TT
14336fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14337 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b0cacab0 14338_ACEOF
e1052144 14339
91d11da1
TT
14340# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14341# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
e1052144
TT
14342# trailing colons and then remove the whole line if VPATH becomes empty
14343# (actually we leave an empty line to preserve line numbers).
14344if test "x$srcdir" = x.; then
91d11da1
TT
14345 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14346h
14347s///
14348s/^/:/
14349s/[ ]*$/:/
14350s/:\$(srcdir):/:/g
14351s/:\${srcdir}:/:/g
14352s/:@srcdir@:/:/g
14353s/^:*//
e1052144 14354s/:*$//
91d11da1
TT
14355x
14356s/\(=[ ]*\).*/\1/
14357G
14358s/\n//
e1052144
TT
14359s/^[^=]*=[ ]*$//
14360}'
14361fi
14362
39fd3d4f 14363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
14364fi # test -n "$CONFIG_FILES"
14365
d1154eb4
TT
14366# Set up the scripts for CONFIG_HEADERS section.
14367# No need to generate them if there are no CONFIG_HEADERS.
14368# This happens for instance with `./config.status Makefile'.
14369if test -n "$CONFIG_HEADERS"; then
91d11da1 14370cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
d1154eb4
TT
14371BEGIN {
14372_ACEOF
14373
14374# Transform confdefs.h into an awk script `defines.awk', embedded as
14375# here-document in config.status, that substitutes the proper values into
14376# config.h.in to produce config.h.
14377
14378# Create a delimiter string that does not exist in confdefs.h, to ease
14379# handling of long lines.
14380ac_delim='%!_!# '
14381for ac_last_try in false false :; do
91d11da1
TT
14382 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14383 if test -z "$ac_tt"; then
d1154eb4
TT
14384 break
14385 elif $ac_last_try; then
91d11da1 14386 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
d1154eb4
TT
14387 else
14388 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14389 fi
14390done
14391
14392# For the awk script, D is an array of macro values keyed by name,
14393# likewise P contains macro parameters if any. Preserve backslash
14394# newline sequences.
14395
14396ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14397sed -n '
14398s/.\{148\}/&'"$ac_delim"'/g
14399t rset
14400:rset
14401s/^[ ]*#[ ]*define[ ][ ]*/ /
14402t def
14403d
14404:def
14405s/\\$//
14406t bsnl
14407s/["\\]/\\&/g
14408s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14409D["\1"]=" \3"/p
14410s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14411d
14412:bsnl
14413s/["\\]/\\&/g
14414s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14415D["\1"]=" \3\\\\\\n"\\/p
14416t cont
14417s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14418t cont
14419d
14420:cont
14421n
14422s/.\{148\}/&'"$ac_delim"'/g
14423t clear
14424:clear
14425s/\\$//
14426t bsnlc
14427s/["\\]/\\&/g; s/^/"/; s/$/"/p
14428d
14429:bsnlc
14430s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14431b cont
14432' <confdefs.h | sed '
14433s/'"$ac_delim"'/"\\\
14434"/g' >>$CONFIG_STATUS || ac_write_fail=1
14435
14436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14437 for (key in D) D_is_set[key] = 1
14438 FS = "\a"
14439}
14440/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14441 line = \$ 0
14442 split(line, arg, " ")
14443 if (arg[1] == "#") {
14444 defundef = arg[2]
14445 mac1 = arg[3]
14446 } else {
14447 defundef = substr(arg[1], 2)
14448 mac1 = arg[2]
14449 }
14450 split(mac1, mac2, "(") #)
14451 macro = mac2[1]
14452 prefix = substr(line, 1, index(line, defundef) - 1)
14453 if (D_is_set[macro]) {
14454 # Preserve the white space surrounding the "#".
14455 print prefix "define", macro P[macro] D[macro]
14456 next
14457 } else {
14458 # Replace #undef with comments. This is necessary, for example,
14459 # in the case of _POSIX_SOURCE, which is predefined and required
14460 # on some systems where configure will not decide to define it.
14461 if (defundef == "undef") {
14462 print "/*", prefix defundef, macro, "*/"
14463 next
14464 }
14465 }
14466}
14467{ print }
14468_ACAWK
14469_ACEOF
14470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
91d11da1 14471 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
d1154eb4
TT
14472fi # test -n "$CONFIG_HEADERS"
14473
e1052144 14474
d1154eb4 14475eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39fd3d4f
SJR
14476shift
14477for ac_tag
e1052144
TT
14478do
14479 case $ac_tag in
14480 :[FHLC]) ac_mode=$ac_tag; continue;;
14481 esac
14482 case $ac_mode$ac_tag in
14483 :[FHL]*:*);;
91d11da1 14484 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
e1052144
TT
14485 :[FH]-) ac_tag=-:-;;
14486 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14487 esac
14488 ac_save_IFS=$IFS
14489 IFS=:
14490 set x $ac_tag
14491 IFS=$ac_save_IFS
14492 shift
14493 ac_file=$1
14494 shift
14495
14496 case $ac_mode in
14497 :L) ac_source=$1;;
14498 :[FH])
14499 ac_file_inputs=
14500 for ac_f
14501 do
14502 case $ac_f in
91d11da1 14503 -) ac_f="$ac_tmp/stdin";;
e1052144
TT
14504 *) # Look for the file first in the build tree, then in the source tree
14505 # (if the path is not absolute). The absolute path cannot be DOS-style,
14506 # because $ac_f cannot contain `:'.
14507 test -f "$ac_f" ||
14508 case $ac_f in
14509 [\\/$]*) false;;
14510 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14511 esac ||
91d11da1 14512 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
e1052144 14513 esac
39fd3d4f 14514 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57aa50d4 14515 as_fn_append ac_file_inputs " '$ac_f'"
e1052144
TT
14516 done
14517
14518 # Let's still pretend it is `configure' which instantiates (i.e., don't
14519 # use $as_me), people would be surprised to read:
14520 # /* config.h. Generated by config.status. */
39fd3d4f
SJR
14521 configure_input='Generated from '`
14522 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14523 `' by configure.'
e1052144
TT
14524 if test x"$ac_file" != x-; then
14525 configure_input="$ac_file. $configure_input"
57aa50d4 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39fd3d4f 14527$as_echo "$as_me: creating $ac_file" >&6;}
e1052144 14528 fi
39fd3d4f
SJR
14529 # Neutralize special characters interpreted by sed in replacement strings.
14530 case $configure_input in #(
14531 *\&* | *\|* | *\\* )
14532 ac_sed_conf_input=`$as_echo "$configure_input" |
14533 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14534 *) ac_sed_conf_input=$configure_input;;
14535 esac
e1052144
TT
14536
14537 case $ac_tag in
91d11da1
TT
14538 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
e1052144
TT
14540 esac
14541 ;;
b0cacab0
TT
14542 esac
14543
e1052144 14544 ac_dir=`$as_dirname -- "$ac_file" ||
b0cacab0
TT
14545$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14546 X"$ac_file" : 'X\(//\)[^/]' \| \
14547 X"$ac_file" : 'X\(//\)$' \| \
e1052144 14548 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 14549$as_echo X"$ac_file" |
e1052144
TT
14550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14551 s//\1/
14552 q
14553 }
14554 /^X\(\/\/\)[^/].*/{
14555 s//\1/
14556 q
14557 }
14558 /^X\(\/\/\)$/{
14559 s//\1/
14560 q
14561 }
14562 /^X\(\/\).*/{
14563 s//\1/
14564 q
14565 }
14566 s/.*/./; q'`
57aa50d4 14567 as_dir="$ac_dir"; as_fn_mkdir_p
b0cacab0
TT
14568 ac_builddir=.
14569
e1052144
TT
14570case "$ac_dir" in
14571.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14572*)
39fd3d4f 14573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 14574 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 14575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
14576 case $ac_top_builddir_sub in
14577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14579 esac ;;
14580esac
14581ac_abs_top_builddir=$ac_pwd
14582ac_abs_builddir=$ac_pwd$ac_dir_suffix
14583# for backward compatibility:
14584ac_top_builddir=$ac_top_build_prefix
93636bde 14585
b0cacab0 14586case $srcdir in
e1052144 14587 .) # We are building in place.
b0cacab0 14588 ac_srcdir=.
e1052144
TT
14589 ac_top_srcdir=$ac_top_builddir_sub
14590 ac_abs_top_srcdir=$ac_pwd ;;
14591 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 14592 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
14593 ac_top_srcdir=$srcdir
14594 ac_abs_top_srcdir=$srcdir ;;
14595 *) # Relative name.
14596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14597 ac_top_srcdir=$ac_top_build_prefix$srcdir
14598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 14599esac
e1052144 14600ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b0cacab0 14601
b0cacab0 14602
e1052144
TT
14603 case $ac_mode in
14604 :F)
14605 #
14606 # CONFIG_FILE
14607 #
50e1e10f 14608
b0cacab0
TT
14609 case $INSTALL in
14610 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
e1052144 14611 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50e1e10f 14612 esac
93613951
TT
14613 ac_MKDIR_P=$MKDIR_P
14614 case $MKDIR_P in
14615 [\\/$]* | ?:[\\/]* ) ;;
14616 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14617 esac
e1052144 14618_ACEOF
50e1e10f 14619
39fd3d4f 14620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
14621# If the template does not know about datarootdir, expand it.
14622# FIXME: This hack should be removed a few years after 2.60.
14623ac_datarootdir_hack=; ac_datarootdir_seen=
39fd3d4f
SJR
14624ac_sed_dataroot='
14625/datarootdir/ {
e1052144
TT
14626 p
14627 q
14628}
14629/@datadir@/p
14630/@docdir@/p
14631/@infodir@/p
14632/@localedir@/p
57aa50d4 14633/@mandir@/p'
39fd3d4f 14634case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
e1052144
TT
14635*datarootdir*) ac_datarootdir_seen=yes;;
14636*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57aa50d4 14637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39fd3d4f 14638$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b0cacab0 14639_ACEOF
39fd3d4f 14640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
e1052144
TT
14641 ac_datarootdir_hack='
14642 s&@datadir@&$datadir&g
14643 s&@docdir@&$docdir&g
14644 s&@infodir@&$infodir&g
14645 s&@localedir@&$localedir&g
14646 s&@mandir@&$mandir&g
57aa50d4 14647 s&\\\${datarootdir}&$datarootdir&g' ;;
e1052144
TT
14648esac
14649_ACEOF
14650
14651# Neutralize VPATH when `$srcdir' = `.'.
14652# Shell code in configure.ac might set extrasub.
14653# FIXME: do we really want to maintain this feature?
39fd3d4f
SJR
14654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14655ac_sed_extra="$ac_vpsub
b0cacab0
TT
14656$extrasub
14657_ACEOF
39fd3d4f 14658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0
TT
14659:t
14660/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39fd3d4f 14661s|@configure_input@|$ac_sed_conf_input|;t t
e1052144 14662s&@top_builddir@&$ac_top_builddir_sub&;t t
39fd3d4f 14663s&@top_build_prefix@&$ac_top_build_prefix&;t t
e1052144
TT
14664s&@srcdir@&$ac_srcdir&;t t
14665s&@abs_srcdir@&$ac_abs_srcdir&;t t
14666s&@top_srcdir@&$ac_top_srcdir&;t t
14667s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14668s&@builddir@&$ac_builddir&;t t
14669s&@abs_builddir@&$ac_abs_builddir&;t t
14670s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14671s&@INSTALL@&$ac_INSTALL&;t t
93613951 14672s&@MKDIR_P@&$ac_MKDIR_P&;t t
e1052144 14673$ac_datarootdir_hack
39fd3d4f
SJR
14674"
14675eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14676if $ac_cs_awk_getline; then
91d11da1 14677 $AWK -f "$ac_tmp/subs.awk"
39fd3d4f 14678else
91d11da1
TT
14679 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14680fi \
14681 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144
TT
14682
14683test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
91d11da1
TT
14684 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14685 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14686 "$ac_tmp/out"`; test -z "$ac_out"; } &&
57aa50d4 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
91d11da1 14688which seems to be undefined. Please make sure it is defined" >&5
39fd3d4f 14689$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
91d11da1 14690which seems to be undefined. Please make sure it is defined" >&2;}
e1052144 14691
91d11da1 14692 rm -f "$ac_tmp/stdin"
e1052144 14693 case $ac_file in
91d11da1
TT
14694 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14695 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39fd3d4f 14696 esac \
91d11da1 14697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144 14698 ;;
d1154eb4
TT
14699 :H)
14700 #
14701 # CONFIG_HEADER
14702 #
14703 if test x"$ac_file" != x-; then
14704 {
14705 $as_echo "/* $configure_input */" \
91d11da1
TT
14706 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14707 } >"$ac_tmp/config.h" \
14708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14709 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
d1154eb4
TT
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14711$as_echo "$as_me: $ac_file is unchanged" >&6;}
14712 else
14713 rm -f "$ac_file"
91d11da1
TT
14714 mv "$ac_tmp/config.h" "$ac_file" \
14715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d1154eb4
TT
14716 fi
14717 else
14718 $as_echo "/* $configure_input */" \
91d11da1
TT
14719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14720 || as_fn_error $? "could not create -" "$LINENO" 5
d1154eb4
TT
14721 fi
14722 ;;
07a0db15 14723
57aa50d4 14724 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39fd3d4f 14725$as_echo "$as_me: executing $ac_file commands" >&6;}
e1052144
TT
14726 ;;
14727 esac
a04eba3f 14728
b0cacab0 14729
e1052144 14730 case $ac_file$ac_mode in
93613951 14731 "po-directories":C)
a04eba3f
TT
14732 for ac_file in $CONFIG_FILES; do
14733 # Support "outfile[:infile[:infile...]]"
14734 case "$ac_file" in
14735 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14736 esac
14737 # PO directories have a Makefile.in generated from Makefile.in.in.
14738 case "$ac_file" in */Makefile.in)
14739 # Adjust a relative srcdir.
14740 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
93613951 14741 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
a04eba3f
TT
14742 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14743 # In autoconf-2.13 it is called $ac_given_srcdir.
14744 # In autoconf-2.50 it is called $srcdir.
14745 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14746 case "$ac_given_srcdir" in
14747 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14748 /*) top_srcdir="$ac_given_srcdir" ;;
14749 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14750 esac
93613951
TT
14751 # Treat a directory as a PO directory if and only if it has a
14752 # POTFILES.in file. This allows packages to have multiple PO
14753 # directories under different names or in different locations.
a04eba3f
TT
14754 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14755 rm -f "$ac_dir/POTFILES"
14756 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
93613951
TT
14757 gt_tab=`printf '\t'`
14758 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
14759 POMAKEFILEDEPS="POTFILES.in"
14760 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
a04eba3f
TT
14761 # on $ac_dir but don't depend on user-specified configuration
14762 # parameters.
14763 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14764 # The LINGUAS file contains the set of available languages.
b0cacab0 14765 if test -n "$OBSOLETE_ALL_LINGUAS"; then
a04eba3f
TT
14766 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14767 fi
93613951
TT
14768 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14769 # Hide the ALL_LINGUAS assignment from automake < 1.5.
a04eba3f 14770 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
b0cacab0
TT
14771 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14772 else
14773 # The set of available languages was given in configure.in.
93613951 14774 # Hide the ALL_LINGUAS assignment from automake < 1.5.
b0cacab0 14775 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
a04eba3f 14776 fi
b0cacab0
TT
14777 # Compute POFILES
14778 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14779 # Compute UPDATEPOFILES
14780 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14781 # Compute DUMMYPOFILES
14782 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14783 # Compute GMOFILES
14784 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
a04eba3f
TT
14785 case "$ac_given_srcdir" in
14786 .) srcdirpre= ;;
14787 *) srcdirpre='$(srcdir)/' ;;
14788 esac
14789 POFILES=
a04eba3f
TT
14790 UPDATEPOFILES=
14791 DUMMYPOFILES=
b0cacab0 14792 GMOFILES=
a04eba3f
TT
14793 for lang in $ALL_LINGUAS; do
14794 POFILES="$POFILES $srcdirpre$lang.po"
a04eba3f
TT
14795 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14796 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
b0cacab0 14797 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
a04eba3f
TT
14798 done
14799 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14800 # environment variable.
14801 INST_LINGUAS=
14802 if test -n "$ALL_LINGUAS"; then
14803 for presentlang in $ALL_LINGUAS; do
14804 useit=no
14805 if test "%UNSET%" != "$LINGUAS"; then
14806 desiredlanguages="$LINGUAS"
14807 else
14808 desiredlanguages="$ALL_LINGUAS"
14809 fi
14810 for desiredlang in $desiredlanguages; do
14811 # Use the presentlang catalog if desiredlang is
14812 # a. equal to presentlang, or
14813 # b. a variant of presentlang (because in this case,
14814 # presentlang can be used as a fallback for messages
14815 # which are not translated in the desiredlang catalog).
14816 case "$desiredlang" in
14817 "$presentlang"*) useit=yes;;
14818 esac
14819 done
14820 if test $useit = yes; then
14821 INST_LINGUAS="$INST_LINGUAS $presentlang"
14822 fi
14823 done
14824 fi
14825 CATALOGS=
14826 if test -n "$INST_LINGUAS"; then
14827 for lang in $INST_LINGUAS; do
14828 CATALOGS="$CATALOGS $lang.gmo"
14829 done
14830 fi
14831 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
b0cacab0 14832 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
14833 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14834 if test -f "$f"; then
14835 case "$f" in
14836 *.orig | *.bak | *~) ;;
14837 *) cat "$f" >> "$ac_dir/Makefile" ;;
14838 esac
14839 fi
14840 done
14841 fi
14842 ;;
a64c9c13 14843 esac
b0cacab0 14844 done ;;
e1052144 14845
b0cacab0 14846 esac
e1052144 14847done # for ac_tag
07a0db15 14848
b0cacab0 14849
57aa50d4 14850as_fn_exit 0
b0cacab0 14851_ACEOF
b0cacab0
TT
14852ac_clean_files=$ac_clean_files_save
14853
39fd3d4f 14854test $ac_write_fail = 0 ||
91d11da1 14855 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 14856
b0cacab0
TT
14857
14858# configure is writing to config.log, and then calls config.status.
14859# config.status does its own redirection, appending to config.log.
14860# Unfortunately, on DOS this fails, as config.log is still kept open
14861# by configure, so config.status won't be able to write to it; its
14862# output is simply discarded. So we exec the FD to /dev/null,
14863# effectively closing config.log, so it can be properly (re)opened and
14864# appended to by config.status. When coming back to configure, we
14865# need to make the FD available again.
14866if test "$no_create" != yes; then
14867 ac_cs_success=:
14868 ac_config_status_args=
14869 test "$silent" = yes &&
14870 ac_config_status_args="$ac_config_status_args --quiet"
14871 exec 5>/dev/null
14872 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14873 exec 5>>config.log
14874 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14875 # would make configure fail if this is the last instruction.
91d11da1 14876 $ac_cs_success || as_fn_exit 1
b0cacab0 14877fi
39fd3d4f 14878if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
57aa50d4 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39fd3d4f
SJR
14880$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14881fi
50e1e10f 14882
ee683a13 14883if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi