]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - configure
configure.in: fix external libblkid test for static link
[thirdparty/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if 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 --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
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'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if 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 }
79 fi
80
81
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.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
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.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
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.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $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
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if 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
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
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
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
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
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
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
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
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.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $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
257 exit 255
258 fi
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
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_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.
305 as_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.
315 as_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"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
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.
373 if (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 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # 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.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
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
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
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
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
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'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
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; }
487
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
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
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `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';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (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.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 gt_needs=
623 ac_header_list=
624 gl_use_threads_default=
625 ac_func_list=
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 BUILD_LDFLAGS
629 BUILD_CFLAGS
630 INCLUDES
631 DO_TEST_SUITE
632 ET_DIR
633 SS_DIR
634 LDFLAG_STATIC
635 root_sysconfdir
636 root_libdir
637 root_sbindir
638 root_bindir
639 root_prefix
640 UNIX_CMT
641 CYGWIN_CMT
642 LINUX_CMT
643 UNI_DIFF_OPTS
644 SEM_INIT_LIB
645 SOCKET_LIB
646 SIZEOF_OFF_T
647 SIZEOF_LONG_LONG
648 SIZEOF_LONG
649 SIZEOF_INT
650 SIZEOF_SHORT
651 BUILD_CC
652 MAKEINFO
653 STRIP
654 AR
655 LDCONFIG
656 PERL
657 AWK
658 CHMOD
659 RM
660 CP
661 MV
662 LN_S
663 LN
664 ifNotGNUmake
665 ifGNUmake
666 BINARY_TYPE
667 POSUB
668 LTLIBINTL
669 LIBINTL
670 INTLLIBS
671 INTL_LIBTOOL_SUFFIX_PREFIX
672 INTLOBJS
673 GENCAT
674 INSTOBJEXT
675 DATADIRNAME
676 CATOBJEXT
677 USE_INCLUDED_LIBINTL
678 BUILD_INCLUDED_LIBINTL
679 LTLIBC
680 WINDRES
681 WOE32
682 WOE32DLL
683 HAVE_WPRINTF
684 HAVE_NEWLOCALE
685 HAVE_SNPRINTF
686 HAVE_ASPRINTF
687 HAVE_POSIX_PRINTF
688 INTL_DEFAULT_VERBOSITY
689 INTL_MACOSX_LIBS
690 GLIBC21
691 INTLBISON
692 LTLIBICONV
693 LIBICONV
694 LTLIBMULTITHREAD
695 LIBMULTITHREAD
696 LTLIBTHREAD
697 LIBTHREAD
698 LIBPTH_PREFIX
699 LTLIBPTH
700 LIBPTH
701 PRI_MACROS_BROKEN
702 ALLOCA
703 HAVE_VISIBILITY
704 CFLAG_VISIBILITY
705 RANLIB
706 GLIBC2
707 XGETTEXT_EXTRA_OPTIONS
708 MSGMERGE
709 XGETTEXT_015
710 XGETTEXT
711 GMSGFMT_015
712 MSGFMT_015
713 GMSGFMT
714 MSGFMT
715 GETTEXT_MACRO_VERSION
716 USE_NLS
717 SED
718 MKDIR_P
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 SET_MAKE
723 VERSION
724 PACKAGE
725 GETTEXT_PACKAGE
726 UUIDD_CMT
727 E2INITRD_MAN
728 E2INITRD_PROG
729 FSCK_MAN
730 FSCK_PROG
731 DEFRAG_CMT
732 RESIZER_CMT
733 IMAGER_CMT
734 DEBUGFS_CMT
735 QUOTA_CMT
736 DEPPROFILED_LIBQUOTA
737 PROFILED_LIBQUOTA
738 DEPSTATIC_LIBQUOTA
739 STATIC_LIBQUOTA
740 DEPLIBQUOTA
741 LIBQUOTA
742 QUOTA_MAN_COMMENT
743 BLKID_CMT
744 DEPPROFILED_LIBBLKID
745 PROFILED_LIBBLKID
746 DEPSTATIC_LIBBLKID
747 STATIC_LIBBLKID
748 DEPLIBBLKID
749 LIBBLKID
750 UUID_CMT
751 DEPPROFILED_LIBUUID
752 PROFILED_LIBUUID
753 DEPSTATIC_LIBUUID
754 STATIC_LIBUUID
755 DEPLIBUUID
756 LIBUUID
757 PKG_CONFIG_LIBDIR
758 PKG_CONFIG_PATH
759 PKG_CONFIG
760 TEST_IO_CMT
761 PRIVATE_LIBS_CMT
762 LDFLAG_DYNAMIC
763 PROFILED_LIB_EXT
764 STATIC_LIB_EXT
765 LIB_EXT
766 PROFILE_CMT
767 BSDLIB_CMT
768 ELF_CMT
769 HTREE_CMT
770 Q
771 ES
772 E
773 LINK_BUILD_FLAGS
774 SYMLINK_RELATIVE
775 LINK_INSTALL_FLAGS
776 MAINTAINER_CMT
777 EGREP
778 GREP
779 CPP
780 RDYNAMIC
781 DLOPEN_LIB
782 OBJEXT
783 EXEEXT
784 ac_ct_CC
785 CPPFLAGS
786 LDFLAGS
787 CFLAGS
788 CC
789 host_os
790 host_vendor
791 host_cpu
792 host
793 build_os
794 build_vendor
795 build_cpu
796 build
797 E2FSPROGS_PKGVER
798 E2FSPROGS_VERSION
799 E2FSPROGS_DAY
800 E2FSPROGS_MONTH
801 E2FSPROGS_YEAR
802 target_alias
803 host_alias
804 build_alias
805 LIBS
806 ECHO_T
807 ECHO_N
808 ECHO_C
809 DEFS
810 mandir
811 localedir
812 libdir
813 psdir
814 pdfdir
815 dvidir
816 htmldir
817 infodir
818 docdir
819 oldincludedir
820 includedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL'
840 ac_subst_files='MCONFIG
841 MAKEFILE_ELF
842 MAKEFILE_BSDLIB
843 MAKEFILE_PROFILE
844 MAKEFILE_LIBRARY
845 ASM_TYPES_HEADER
846 PUBLIC_CONFIG_HEADER'
847 ac_user_opts='
848 enable_option_checking
849 with_diet_libc
850 with_cc
851 with_ccopts
852 with_ldopts
853 with_root_prefix
854 enable_maintainer_mode
855 enable_symlink_install
856 enable_relative_symlinks
857 enable_symlink_relative_symlinks
858 enable_symlink_build
859 enable_verbose_makecmds
860 enable_compression
861 enable_htree
862 enable_elf_shlibs
863 enable_bsd_shlibs
864 enable_profile
865 enable_gcov
866 enable_jbd_debug
867 enable_blkid_debug
868 enable_testio_debug
869 enable_libuuid
870 enable_libblkid
871 enable_quota
872 enable_backtrace
873 enable_debugfs
874 enable_imager
875 enable_resizer
876 enable_defrag
877 enable_fsck
878 enable_e2initrd_helper
879 enable_tls
880 enable_uuidd
881 enable_nls
882 enable_threads
883 with_gnu_ld
884 enable_rpath
885 with_libpth_prefix
886 with_libiconv_prefix
887 with_included_gettext
888 with_libintl_prefix
889 with_multiarch
890 '
891 ac_precious_vars='build_alias
892 host_alias
893 target_alias
894 CC
895 CFLAGS
896 LDFLAGS
897 LIBS
898 CPPFLAGS
899 CPP
900 PKG_CONFIG
901 PKG_CONFIG_PATH
902 PKG_CONFIG_LIBDIR'
903
904
905 # Initialize some variables set by options.
906 ac_init_help=
907 ac_init_version=false
908 ac_unrecognized_opts=
909 ac_unrecognized_sep=
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
912 cache_file=/dev/null
913 exec_prefix=NONE
914 no_create=
915 no_recursion=
916 prefix=NONE
917 program_prefix=NONE
918 program_suffix=NONE
919 program_transform_name=s,x,x,
920 silent=
921 site=
922 srcdir=
923 verbose=
924 x_includes=NONE
925 x_libraries=NONE
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.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE}'
944 infodir='${datarootdir}/info'
945 htmldir='${docdir}'
946 dvidir='${docdir}'
947 pdfdir='${docdir}'
948 psdir='${docdir}'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
952
953 ac_prev=
954 ac_dashdash=
955 for ac_option
956 do
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\$ac_option
960 ac_prev=
961 continue
962 fi
963
964 case $ac_option in
965 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 *=) ac_optarg= ;;
967 *) ac_optarg=yes ;;
968 esac
969
970 # Accept the important Cygnus configure options, so we can diagnose typos.
971
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
980
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
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=*)
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
995
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1000
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
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
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 ;;
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 ;;
1033
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: $ac_useropt"
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 ;;
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=*)
1057 exec_prefix=$ac_optarg ;;
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
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 ;;
1069
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1074
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
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=*)
1086 includedir=$ac_optarg ;;
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
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=*)
1103 libexecdir=$ac_optarg ;;
1104
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1121
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 \
1127 | --no-cr | --no-c | -n)
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
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=*)
1141 oldincludedir=$ac_optarg ;;
1142
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
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=*)
1153 program_prefix=$ac_optarg ;;
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=*)
1160 program_suffix=$ac_optarg ;;
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=*)
1177 program_transform_name=$ac_optarg ;;
1178
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
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 ac_prev=sbindir ;;
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 | --sbi=* | --sb=*)
1197 sbindir=$ac_optarg ;;
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=*)
1208 sharedstatedir=$ac_optarg ;;
1209
1210 -site | --site | --sit)
1211 ac_prev=site ;;
1212 -site=* | --site=* | --sit=*)
1213 site=$ac_optarg ;;
1214
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 ac_prev=srcdir ;;
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1219
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=*)
1225 sysconfdir=$ac_optarg ;;
1226
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1231
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 verbose=yes ;;
1234
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1237
1238 -with-* | --with-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
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 ;;
1253
1254 -without-* | --without-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: $ac_useropt"
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 ;;
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=*)
1279 x_includes=$ac_optarg ;;
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=*)
1286 x_libraries=$ac_optarg ;;
1287
1288 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289 Try \`$0 --help' for more information"
1290 ;;
1291
1292 *=*)
1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
1295 case $ac_envvar in #(
1296 '' | [0-9]* | *[!_$as_cr_alnum]* )
1297 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298 esac
1299 eval $ac_envvar=\$ac_optarg
1300 export $ac_envvar ;;
1301
1302 *)
1303 # FIXME: should be removed in autoconf 3.0.
1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 ;;
1309
1310 esac
1311 done
1312
1313 if test -n "$ac_prev"; then
1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315 as_fn_error $? "missing argument to $ac_option"
1316 fi
1317
1318 if test -n "$ac_unrecognized_opts"; then
1319 case $enable_option_checking in
1320 no) ;;
1321 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 esac
1324 fi
1325
1326 # Check all directory arguments for consistency.
1327 for 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
1331 do
1332 eval ac_val=\$$ac_var
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.
1340 case $ac_val in
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 esac
1344 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345 done
1346
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.
1350 build=$build_alias
1351 host=$host_alias
1352 target=$target_alias
1353
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1360 fi
1361 fi
1362
1363 ac_tool_prefix=
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366 test "$silent" = yes && exec 6>/dev/null
1367
1368
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 as_fn_error $? "working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 as_fn_error $? "pwd does not report name of working directory"
1375
1376
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
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" |
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'`
1404 srcdir=$ac_confdir
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 srcdir=..
1407 fi
1408 else
1409 ac_srcdir_defaulted=no
1410 fi
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 fi
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 ac_abs_confdir=`(
1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 srcdir=.
1422 fi
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.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 for 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}
1434 done
1435
1436 #
1437 # Report the --help message.
1438 #
1439 if 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
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE. See below for descriptions of some of the useful variables.
1449
1450 Defaults for the options are specified in brackets.
1451
1452 Configuration:
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
1457 -q, --quiet, --silent do not print \`checking ...' messages
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
1463 Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
1465 [$ac_default_prefix]
1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1467 [PREFIX]
1468
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1473
1474 For better control, use the options below.
1475
1476 Fine tuning of the installation directories:
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]
1496 _ACEOF
1497
1498 cat <<\_ACEOF
1499
1500 System 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
1504 fi
1505
1506 if test -n "$ac_init_help"; then
1507
1508 cat <<\_ACEOF
1509
1510 Optional Features:
1511 --disable-option-checking ignore unrecognized --enable/--with options
1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 --enable-maintainer-mode enable makefile rules useful for maintainers
1515 --enable-symlink-install use symlinks when installing instead of hard links
1516 --enable-relative-symlinks use relative symlinks when installing
1517
1518 --enable-symlink-build use symlinks while building instead of hard links
1519 --enable-verbose-makecmds enable verbose make command output
1520 --enable-compression enable EXPERIMENTAL compression support
1521 --enable-htree enable EXPERIMENTAL htree directory support
1522 --enable-elf-shlibs select ELF shared libraries
1523 --enable-bsd-shlibs select BSD shared libraries
1524 --enable-profile build profiling libraries
1525 --enable-gcov build for coverage testing using gcov
1526 --enable-jbd-debug enable journal debugging
1527 --enable-blkid-debug enable blkid debugging
1528 --disable-testio-debug disable the use of the test I/O manager for debugging
1529 --disable-libuuid do not build private uuid library
1530 --disable-libblkid do not build private blkid library
1531 --enable-quota enable quota support
1532 --disable-backtrace disable use backtrace
1533 --disable-debugfs disable support of debugfs program
1534 --disable-imager disable support of e2image program
1535 --disable-resizer disable support of e2resize program
1536 --disable-defrag disable support of e4defrag program
1537 --enable-fsck build fsck wrapper program
1538 --enable-e2initrd-helper build e2initrd-helper program
1539 --disable-tls disable use of thread local support
1540 --disable-uuidd disable building the uuid daemon
1541 --disable-nls do not use Native Language Support
1542 --enable-threads={posix|solaris|pth|windows}
1543 specify multithreading API
1544 --disable-threads build without multithread safety
1545 --disable-rpath do not hardcode runtime library paths
1546
1547 Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-diet-libc use diet libc
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
1554 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
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
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
1563 --with-multiarch=ARCH specify the multiarch triplet
1564
1565 Some 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>
1570 LIBS libraries to pass to the linker, e.g. -l<library>
1571 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
1573 CPP C preprocessor
1574 PKG_CONFIG path to pkg-config utility
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
1579
1580 Use these variables to override the choices made by `configure' or to help
1581 it to find libraries and programs with nonstandard names/locations.
1582
1583 Report bugs to the package provider.
1584 _ACEOF
1585 ac_status=$?
1586 fi
1587
1588 if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593 continue
1594 ac_builddir=.
1595
1596 case "$ac_dir" in
1597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *)
1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600 # A ".." for each directory in $ac_dir_suffix.
1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
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 ;;
1606 esac
1607 ac_abs_top_builddir=$ac_pwd
1608 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609 # for backward compatibility:
1610 ac_top_builddir=$ac_top_build_prefix
1611
1612 case $srcdir in
1613 .) # We are building in place.
1614 ac_srcdir=.
1615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
1618 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
1625 esac
1626 ac_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
1636 else
1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638 fi || ac_status=$?
1639 cd "$ac_pwd" || { ac_status=$?; break; }
1640 done
1641 fi
1642
1643 test -n "$ac_init_help" && exit $ac_status
1644 if $ac_init_version; then
1645 cat <<\_ACEOF
1646 configure
1647 generated by GNU Autoconf 2.69
1648
1649 Copyright (C) 2012 Free Software Foundation, Inc.
1650 This configure script is free software; the Free Software Foundation
1651 gives unlimited permission to copy, distribute and modify it.
1652 _ACEOF
1653 exit
1654 fi
1655
1656 ## ------------------------ ##
1657 ## Autoconf initialization. ##
1658 ## ------------------------ ##
1659
1660 # ac_fn_c_try_compile LINENO
1661 # --------------------------
1662 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1663 ac_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"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval 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
1687 else
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692 fi
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
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.
1701 ac_fn_c_try_link ()
1702 {
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"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval 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 ||
1725 test -x conftest$ac_exeext
1726 }; then :
1727 ac_retval=0
1728 else
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1
1733 fi
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
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1741
1742 } # ac_fn_c_try_link
1743
1744 # ac_fn_c_try_cpp LINENO
1745 # ----------------------
1746 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1747 ac_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"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval 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
1765 test $ac_status = 0; } > conftest.i && {
1766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 }; then :
1769 ac_retval=0
1770 else
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1
1775 fi
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1778
1779 } # ac_fn_c_try_cpp
1780
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.
1786 ac_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; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1794 fi
1795 eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 else
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; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 $4
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_header_compiler=yes
1809 else
1810 ac_header_compiler=no
1811 fi
1812 rm -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; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 #include <$2>
1822 _ACEOF
1823 if ac_fn_c_try_cpp "$LINENO"; then :
1824 ac_header_preproc=yes
1825 else
1826 ac_header_preproc=no
1827 fi
1828 rm -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?
1833 case $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 ;;
1852 esac
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857 else
1858 eval "$3=\$ac_header_compiler"
1859 fi
1860 eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 fi
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866 } # ac_fn_c_check_header_mongrel
1867
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.
1872 ac_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"
1876 case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval 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;;
1889 esac
1890 eval 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
1897 else
1898 $as_echo "$as_me: program exited with status $ac_status" >&5
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1901
1902 ac_retval=$ac_status
1903 fi
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1907
1908 } # ac_fn_c_try_run
1909
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.
1914 ac_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; }
1919 if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1921 else
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 $4
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 eval "$3=yes"
1929 else
1930 eval "$3=no"
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 fi
1934 eval 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
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.
1945 ac_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; }
1950 if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1952 else
1953 eval "$3=no"
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 $4
1957 int
1958 main ()
1959 {
1960 if (sizeof ($2))
1961 return 0;
1962 ;
1963 return 0;
1964 }
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 $4
1970 int
1971 main ()
1972 {
1973 if (sizeof (($2)))
1974 return 0;
1975 ;
1976 return 0;
1977 }
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980
1981 else
1982 eval "$3=yes"
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 fi
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993 } # ac_fn_c_check_type
1994
1995 # ac_fn_c_check_func LINENO FUNC VAR
1996 # ----------------------------------
1997 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1998 ac_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; }
2003 if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005 else
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
2011
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. */
2016
2017 #ifdef __STDC__
2018 # include <limits.h>
2019 #else
2020 # include <assert.h>
2021 #endif
2022
2023 #undef $2
2024
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
2029 extern "C"
2030 #endif
2031 char $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
2036 choke me
2037 #endif
2038
2039 int
2040 main ()
2041 {
2042 return $2 ();
2043 ;
2044 return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_link "$LINENO"; then :
2048 eval "$3=yes"
2049 else
2050 eval "$3=no"
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext \
2053 conftest$ac_exeext conftest.$ac_ext
2054 fi
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060 } # ac_fn_c_check_func
2061
2062 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2063 # ---------------------------------------------
2064 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2065 # accordingly.
2066 ac_fn_c_check_decl ()
2067 {
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $4
2079 int
2080 main ()
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 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$3=yes"
2096 else
2097 eval "$3=no"
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106 } # ac_fn_c_check_decl
2107
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
2113 ac_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.
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 int
2122 main ()
2123 {
2124 static int test_array [1 - 2 * !(($2) >= 0)];
2125 test_array [0] = 0;
2126 return test_array [0];
2127
2128 ;
2129 return 0;
2130 }
2131 _ACEOF
2132 if 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
2138 int
2139 main ()
2140 {
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2142 test_array [0] = 0;
2143 return test_array [0];
2144
2145 ;
2146 return 0;
2147 }
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=$ac_mid; break
2151 else
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
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161 else
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2164 $4
2165 int
2166 main ()
2167 {
2168 static int test_array [1 - 2 * !(($2) < 0)];
2169 test_array [0] = 0;
2170 return test_array [0];
2171
2172 ;
2173 return 0;
2174 }
2175 _ACEOF
2176 if 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
2182 int
2183 main ()
2184 {
2185 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2186 test_array [0] = 0;
2187 return test_array [0];
2188
2189 ;
2190 return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_lo=$ac_mid; break
2195 else
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
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 done
2205 else
2206 ac_lo= ac_hi=
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 # Binary search between lo and hi bounds.
2212 while 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
2217 int
2218 main ()
2219 {
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2221 test_array [0] = 0;
2222 return test_array [0];
2223
2224 ;
2225 return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_hi=$ac_mid
2230 else
2231 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2232 fi
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 done
2235 case $ac_lo in #((
2236 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2237 '') ac_retval=1 ;;
2238 esac
2239 else
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2242 $4
2243 static long int longval () { return $2; }
2244 static unsigned long int ulongval () { return $2; }
2245 #include <stdio.h>
2246 #include <stdlib.h>
2247 int
2248 main ()
2249 {
2250
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;
2271
2272 ;
2273 return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_run "$LINENO"; then :
2277 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2278 else
2279 ac_retval=1
2280 fi
2281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282 conftest.$ac_objext conftest.beam conftest.$ac_ext
2283 rm -f conftest.val
2284
2285 fi
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 as_fn_set_status $ac_retval
2288
2289 } # ac_fn_c_compute_int
2290
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.
2295 ac_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; }
2300 if eval \${$4+:} false; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2305 $5
2306 int
2307 main ()
2308 {
2309 static $2 ac_aggr;
2310 if (ac_aggr.$3)
2311 return 0;
2312 ;
2313 return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$4=yes"
2318 else
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2321 $5
2322 int
2323 main ()
2324 {
2325 static $2 ac_aggr;
2326 if (sizeof ac_aggr.$3)
2327 return 0;
2328 ;
2329 return 0;
2330 }
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 eval "$4=yes"
2334 else
2335 eval "$4=no"
2336 fi
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 fi
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 fi
2341 eval ac_res=\$$4
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2345
2346 } # ac_fn_c_check_member
2347 cat >config.log <<_ACEOF
2348 This file contains any messages produced by compilers while
2349 running configure, to aid debugging if configure makes a mistake.
2350
2351 It was created by $as_me, which was
2352 generated by GNU Autoconf 2.69. Invocation command line was
2353
2354 $ $0 $@
2355
2356 _ACEOF
2357 exec 5>>config.log
2358 {
2359 cat <<_ASUNAME
2360 ## --------- ##
2361 ## Platform. ##
2362 ## --------- ##
2363
2364 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2365 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2366 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2367 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2368 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2369
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`
2372
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`
2380
2381 _ASUNAME
2382
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 $as_echo "PATH: $as_dir"
2389 done
2390 IFS=$as_save_IFS
2391
2392 } >&5
2393
2394 cat >&5 <<_ACEOF
2395
2396
2397 ## ----------- ##
2398 ## Core tests. ##
2399 ## ----------- ##
2400
2401 _ACEOF
2402
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.
2409 ac_configure_args=
2410 ac_configure_args0=
2411 ac_configure_args1=
2412 ac_must_keep_next=false
2413 for ac_pass in 1 2
2414 do
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
2448 done
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.
2457 trap 'exit_status=$?
2458 # Save into config.log some information that might help in debugging.
2459 {
2460 echo
2461
2462 $as_echo "## ---------------- ##
2463 ## Cache variables. ##
2464 ## ---------------- ##"
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
2498 $as_echo "## ----------------- ##
2499 ## Output variables. ##
2500 ## ----------------- ##"
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
2513 $as_echo "## ------------------- ##
2514 ## File substitutions. ##
2515 ## ------------------- ##"
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
2529 $as_echo "## ----------- ##
2530 ## confdefs.h. ##
2531 ## ----------- ##"
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
2544 for ac_signal in 1 2 13 15; do
2545 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2546 done
2547 ac_signal=0
2548
2549 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2550 rm -f -r conftest* confdefs.h
2551
2552 $as_echo "/* confdefs.h */" > confdefs.h
2553
2554 # Predefined preprocessor variables.
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_NAME "$PACKAGE_NAME"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2566 _ACEOF
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_STRING "$PACKAGE_STRING"
2570 _ACEOF
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2574 _ACEOF
2575
2576 cat >>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.
2583 ac_site_file1=NONE
2584 ac_site_file2=NONE
2585 if test -n "$CONFIG_SITE"; then
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
2592 elif test "x$prefix" != xNONE; then
2593 ac_site_file1=$prefix/share/config.site
2594 ac_site_file2=$prefix/etc/config.site
2595 else
2596 ac_site_file1=$ac_default_prefix/share/config.site
2597 ac_site_file2=$ac_default_prefix/etc/config.site
2598 fi
2599 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2600 do
2601 test "x$ac_site_file" = xNONE && continue
2602 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
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
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;}
2609 as_fn_error $? "failed to load site script $ac_site_file
2610 See \`config.log' for more details" "$LINENO" 5; }
2611 fi
2612 done
2613
2614 if test -r "$cache_file"; then
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
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
2624 fi
2625 else
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
2629 fi
2630
2631 gt_needs="$gt_needs "
2632 as_fn_append ac_header_list " stdlib.h"
2633 as_fn_append ac_header_list " unistd.h"
2634 as_fn_append ac_header_list " sys/param.h"
2635 as_fn_append ac_func_list " symlink"
2636 # Check that the precious variables saved in the cache have kept the same
2637 # value.
2638 ac_cache_corrupted=false
2639 for 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
2685 done
2686 if $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;}
2691 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2692 fi
2693 ## -------------------- ##
2694 ## Main body of script. ##
2695 ## -------------------- ##
2696
2697 ac_ext=c
2698 ac_cpp='$CPP $CPPFLAGS'
2699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2702
2703
2704
2705 ac_aux_dir=
2706 for ac_dir in config "$srcdir"/config; do
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
2720 done
2721 if test -z "$ac_aux_dir"; then
2722 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2723 fi
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.
2729 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2730 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2731 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2732
2733
2734 ac_config_headers="$ac_config_headers lib/config.h"
2735
2736
2737 MCONFIG=./MCONFIG
2738
2739 BINARY_TYPE=bin
2740 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2741 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2742 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2743 | tr \" " "`
2744 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2745 MONTH=`echo $DATE | awk -F- '{print $2}'`
2746 YEAR=`echo $DATE | awk -F- '{print $3}'`
2747
2748 if expr $YEAR ">" 1900 > /dev/null ; then
2749 E2FSPROGS_YEAR=$YEAR
2750 elif expr $YEAR ">" 90 >/dev/null ; then
2751 E2FSPROGS_YEAR=19$YEAR
2752 else
2753 E2FSPROGS_YEAR=20$YEAR
2754 fi
2755
2756 case $MONTH in
2757 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2758 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2759 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2760 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2761 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2762 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2763 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2764 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2765 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2766 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2767 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2768 Dec) 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;} ;;
2771 esac
2772
2773 base_ver=`echo $E2FSPROGS_VERSION | \
2774 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2775
2776 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2777
2778 case $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 ;;
2785 esac
2786
2787 unset 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
2797 WITH_DIET_LIBC=
2798
2799 # Check whether --with-diet-libc was given.
2800 if test "${with_diet_libc+set}" = set; then :
2801 withval=$with_diet_libc; CC="diet cc -nostdinc"
2802 WITH_DIET_LIBC=yes
2803 if test -z "$LIBS"
2804 then
2805 LIBS="-lcompat"
2806 else
2807 LIBS="$LIBS -lcompat"
2808 fi
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2810 $as_echo "CC=$CC" >&6; }
2811 fi
2812 # Make sure we can run config.sub.
2813 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2814 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2817 $as_echo_n "checking build system type... " >&6; }
2818 if ${ac_cv_build+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 ac_build_alias=$build_alias
2822 test "x$ac_build_alias" = x &&
2823 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2824 test "x$ac_build_alias" = x &&
2825 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2826 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2827 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2828
2829 fi
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2831 $as_echo "$ac_cv_build" >&6; }
2832 case $ac_cv_build in
2833 *-*-*) ;;
2834 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2835 esac
2836 build=$ac_cv_build
2837 ac_save_IFS=$IFS; IFS='-'
2838 set x $ac_cv_build
2839 shift
2840 build_cpu=$1
2841 build_vendor=$2
2842 shift; shift
2843 # Remember, the first character of IFS is used to create $*,
2844 # except with old shells:
2845 build_os=$*
2846 IFS=$ac_save_IFS
2847 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2848
2849
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2851 $as_echo_n "checking host system type... " >&6; }
2852 if ${ac_cv_host+:} false; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test "x$host_alias" = x; then
2856 ac_cv_host=$ac_cv_build
2857 else
2858 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2859 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2860 fi
2861
2862 fi
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2864 $as_echo "$ac_cv_host" >&6; }
2865 case $ac_cv_host in
2866 *-*-*) ;;
2867 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2868 esac
2869 host=$ac_cv_host
2870 ac_save_IFS=$IFS; IFS='-'
2871 set x $ac_cv_host
2872 shift
2873 host_cpu=$1
2874 host_vendor=$2
2875 shift; shift
2876 # Remember, the first character of IFS is used to create $*,
2877 # except with old shells:
2878 host_os=$*
2879 IFS=$ac_save_IFS
2880 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2881
2882
2883 DLOPEN_LIB=''
2884 ac_ext=c
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 if 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.
2891 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_CC+:} false; then :
2895 $as_echo_n "(cached) " >&6
2896 else
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2909 break 2
2910 fi
2911 done
2912 done
2913 IFS=$as_save_IFS
2914
2915 fi
2916 fi
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920 $as_echo "$CC" >&6; }
2921 else
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 fi
2925
2926
2927 fi
2928 if test -z "$ac_cv_prog_CC"; then
2929 ac_ct_CC=$CC
2930 # Extract the first word of "gcc", so it can be a program name with args.
2931 set dummy gcc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958 if test -n "$ac_ct_CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2960 $as_echo "$ac_ct_CC" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966 if test "x$ac_ct_CC" = x; then
2967 CC=""
2968 else
2969 case $cross_compiling:$ac_tool_warned in
2970 yes:)
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2974 esac
2975 CC=$ac_ct_CC
2976 fi
2977 else
2978 CC="$ac_cv_prog_CC"
2979 fi
2980
2981 if 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.
2984 set 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; }
2987 if ${ac_cv_prog_CC+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3014 else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019
3020 fi
3021 fi
3022 if test -z "$CC"; then
3023 # Extract the first word of "cc", so it can be a program name with args.
3024 set 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; }
3027 if ${ac_cv_prog_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033 ac_prog_rejected=no
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 if 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
3064 fi
3065 fi
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077 fi
3078 if 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.
3083 set 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; }
3086 if ${ac_cv_prog_CC+:} false; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 CC=$ac_cv_prog_CC
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118
3119 test -n "$CC" && break
3120 done
3121 fi
3122 if test -z "$CC"; then
3123 ac_ct_CC=$CC
3124 for ac_prog in cl.exe
3125 do
3126 # Extract the first word of "$ac_prog", so it can be a program name with args.
3127 set 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; }
3130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$ac_ct_CC"; then
3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3147 done
3148 done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154 if 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; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163 test -n "$ac_ct_CC" && break
3164 done
3165
3166 if test "x$ac_ct_CC" = x; then
3167 CC=""
3168 else
3169 case $cross_compiling:$ac_tool_warned in
3170 yes:)
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;}
3173 ac_tool_warned=yes ;;
3174 esac
3175 CC=$ac_ct_CC
3176 fi
3177 fi
3178
3179 fi
3180
3181
3182 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "no acceptable C compiler found in \$PATH
3185 See \`config.log' for more details" "$LINENO" 5; }
3186
3187 # Provide some information about the compiler.
3188 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3189 set X $ac_compile
3190 ac_compiler=$2
3191 for ac_option in --version -v -V -qversion; do
3192 { { ac_try="$ac_compiler $ac_option >&5"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval 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
3200 ac_status=$?
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
3206 fi
3207 rm -f conftest.er1 conftest.err
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3210 done
3211
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3214
3215 int
3216 main ()
3217 {
3218
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 ac_clean_files_save=$ac_clean_files
3224 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
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.
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; }
3230 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3231
3232 # The possible output files:
3233 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3234
3235 ac_rmfiles=
3236 for ac_file in $ac_files
3237 do
3238 case $ac_file in
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3240 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3241 esac
3242 done
3243 rm -f $ac_rmfiles
3244
3245 if { { ac_try="$ac_link_default"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_link_default") 2>&5
3253 ac_status=$?
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; then :
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.
3261 for ac_file in $ac_files ''
3262 do
3263 test -f "$ac_file" || continue
3264 case $ac_file in
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3266 ;;
3267 [ab].out )
3268 # We found the default executable, but exeext='' is most
3269 # certainly right.
3270 break;;
3271 *.* )
3272 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
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.
3281 break;;
3282 * )
3283 break;;
3284 esac
3285 done
3286 test "$ac_cv_exeext" = no && ac_cv_exeext=
3287
3288 else
3289 ac_file=''
3290 fi
3291 if test -z "$ac_file"; then :
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
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error 77 "C compiler cannot create executables
3300 See \`config.log' for more details" "$LINENO" 5; }
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3304 fi
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; }
3309 ac_exeext=$ac_cv_exeext
3310
3311 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3312 ac_clean_files=$ac_clean_files_save
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3314 $as_echo_n "checking for suffix of executables... " >&6; }
3315 if { { ac_try="$ac_link"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
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'.
3330 for ac_file in conftest.exe conftest conftest.*; do
3331 test -f "$ac_file" || continue
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335 break;;
3336 * ) break;;
3337 esac
3338 done
3339 else
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3343 See \`config.log' for more details" "$LINENO" 5; }
3344 fi
3345 rm -f conftest conftest$ac_cv_exeext
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3347 $as_echo "$ac_cv_exeext" >&6; }
3348
3349 rm -f conftest.$ac_ext
3350 EXEEXT=$ac_cv_exeext
3351 ac_exeext=$EXEEXT
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3354 #include <stdio.h>
3355 int
3356 main ()
3357 {
3358 FILE *f = fopen ("conftest.out", "w");
3359 return ferror (f) || fclose (f) != 0;
3360
3361 ;
3362 return 0;
3363 }
3364 _ACEOF
3365 ac_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; }
3370 if test "$cross_compiling" != yes; then
3371 { { ac_try="$ac_link"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval 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;;
3386 esac
3387 eval 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;}
3400 as_fn_error $? "cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details" "$LINENO" 5; }
3403 fi
3404 fi
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3407 $as_echo "$cross_compiling" >&6; }
3408
3409 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3410 ac_clean_files=$ac_clean_files_save
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3412 $as_echo_n "checking for suffix of object files... " >&6; }
3413 if ${ac_cv_objext+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418
3419 int
3420 main ()
3421 {
3422
3423 ;
3424 return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.o conftest.obj
3428 if { { ac_try="$ac_compile"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_compile") 2>&5
3436 ac_status=$?
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; then :
3439 for ac_file in conftest.o conftest.obj conftest.*; do
3440 test -f "$ac_file" || continue;
3441 case $ac_file in
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3443 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3444 break;;
3445 esac
3446 done
3447 else
3448 $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of object files: cannot compile
3454 See \`config.log' for more details" "$LINENO" 5; }
3455 fi
3456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3457 fi
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3459 $as_echo "$ac_cv_objext" >&6; }
3460 OBJEXT=$ac_cv_objext
3461 ac_objext=$OBJEXT
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3464 if ${ac_cv_c_compiler_gnu+:} false; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469
3470 int
3471 main ()
3472 {
3473 #ifndef __GNUC__
3474 choke me
3475 #endif
3476
3477 ;
3478 return 0;
3479 }
3480 _ACEOF
3481 if ac_fn_c_try_compile "$LINENO"; then :
3482 ac_compiler_gnu=yes
3483 else
3484 ac_compiler_gnu=no
3485 fi
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3488
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3491 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3492 if test $ac_compiler_gnu = yes; then
3493 GCC=yes
3494 else
3495 GCC=
3496 fi
3497 ac_test_CFLAGS=${CFLAGS+set}
3498 ac_save_CFLAGS=$CFLAGS
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3500 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3501 if ${ac_cv_prog_cc_g+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
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"
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510
3511 int
3512 main ()
3513 {
3514
3515 ;
3516 return 0;
3517 }
3518 _ACEOF
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_cv_prog_cc_g=yes
3521 else
3522 CFLAGS=""
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525
3526 int
3527 main ()
3528 {
3529
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535
3536 else
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3538 CFLAGS="-g"
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541
3542 int
3543 main ()
3544 {
3545
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551 ac_cv_prog_cc_g=yes
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3561 $as_echo "$ac_cv_prog_cc_g" >&6; }
3562 if test "$ac_test_CFLAGS" = set; then
3563 CFLAGS=$ac_save_CFLAGS
3564 elif 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
3570 else
3571 if test "$GCC" = yes; then
3572 CFLAGS="-O2"
3573 else
3574 CFLAGS=
3575 fi
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3578 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3579 if ${ac_cv_prog_cc_c89+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 ac_cv_prog_cc_c89=no
3583 ac_save_CC=$CC
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586 #include <stdarg.h>
3587 #include <stdio.h>
3588 struct stat;
3589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3590 struct buf { int x; };
3591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592 static char *e (p, i)
3593 char **p;
3594 int i;
3595 {
3596 return p[i];
3597 }
3598 static 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
3611 as 'x'. The following induces an error, until -std is added to get
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
3614 that's true only with -std. */
3615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616
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'
3620 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3621
3622 int test (int i, double x);
3623 struct s1 {int (*f) (int a);};
3624 struct s2 {int (*f) (double a);};
3625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626 int argc;
3627 char **argv;
3628 int
3629 main ()
3630 {
3631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3632 ;
3633 return 0;
3634 }
3635 _ACEOF
3636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638 do
3639 CC="$ac_save_CC $ac_arg"
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641 ac_cv_prog_cc_c89=$ac_arg
3642 fi
3643 rm -f core conftest.err conftest.$ac_objext
3644 test "x$ac_cv_prog_cc_c89" != "xno" && break
3645 done
3646 rm -f conftest.$ac_ext
3647 CC=$ac_save_CC
3648
3649 fi
3650 # AC_CACHE_VAL
3651 case "x$ac_cv_prog_cc_c89" in
3652 x)
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654 $as_echo "none needed" >&6; } ;;
3655 xno)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657 $as_echo "unsupported" >&6; } ;;
3658 *)
3659 CC="$CC $ac_cv_prog_cc_c89"
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3661 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3662 esac
3663 if test "x$ac_cv_prog_cc_c89" != xno; then :
3664
3665 fi
3666
3667 ac_ext=c
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672
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; }
3676 if ${ac_cv_lib_dl_dlopen+:} false; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 ac_check_lib_save_LIBS=$LIBS
3680 LIBS="-ldl $LIBS"
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
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
3688 extern "C"
3689 #endif
3690 char dlopen ();
3691 int
3692 main ()
3693 {
3694 return dlopen ();
3695 ;
3696 return 0;
3697 }
3698 _ACEOF
3699 if ac_fn_c_try_link "$LINENO"; then :
3700 ac_cv_lib_dl_dlopen=yes
3701 else
3702 ac_cv_lib_dl_dlopen=no
3703 fi
3704 rm -f core conftest.err conftest.$ac_objext \
3705 conftest$ac_exeext conftest.$ac_ext
3706 LIBS=$ac_check_lib_save_LIBS
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3709 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3710 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3711 DLOPEN_LIB=-ldl
3712
3713 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3714
3715 fi
3716
3717
3718
3719 # Check whether --with-cc was given.
3720 if test "${with_cc+set}" = set; then :
3721 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3722 fi
3723
3724
3725 # Check whether --with-ccopts was given.
3726 if test "${with_ccopts+set}" = set; then :
3727 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3728 fi
3729
3730
3731 # Check whether --with-ldopts was given.
3732 if test "${with_ldopts+set}" = set; then :
3733 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3734 fi
3735
3736 ac_ext=c
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741 if 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.
3743 set 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; }
3746 if ${ac_cv_prog_CC+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 if test -n "$CC"; then
3750 ac_cv_prog_CC="$CC" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3763 done
3764 done
3765 IFS=$as_save_IFS
3766
3767 fi
3768 fi
3769 CC=$ac_cv_prog_CC
3770 if test -n "$CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3772 $as_echo "$CC" >&6; }
3773 else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3776 fi
3777
3778
3779 fi
3780 if 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.
3783 set 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; }
3786 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 if test -n "$ac_ct_CC"; then
3790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3794 do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3803 done
3804 done
3805 IFS=$as_save_IFS
3806
3807 fi
3808 fi
3809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3810 if 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; }
3813 else
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3816 fi
3817
3818 if test "x$ac_ct_CC" = x; then
3819 CC=""
3820 else
3821 case $cross_compiling:$ac_tool_warned in
3822 yes:)
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;}
3825 ac_tool_warned=yes ;;
3826 esac
3827 CC=$ac_ct_CC
3828 fi
3829 else
3830 CC="$ac_cv_prog_CC"
3831 fi
3832
3833 if 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.
3836 set 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; }
3839 if ${ac_cv_prog_CC+:} false; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 if test -n "$CC"; then
3843 ac_cv_prog_CC="$CC" # Let the user override the test.
3844 else
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3847 do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3856 done
3857 done
3858 IFS=$as_save_IFS
3859
3860 fi
3861 fi
3862 CC=$ac_cv_prog_CC
3863 if test -n "$CC"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3865 $as_echo "$CC" >&6; }
3866 else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3869 fi
3870
3871
3872 fi
3873 fi
3874 if test -z "$CC"; then
3875 # Extract the first word of "cc", so it can be a program name with args.
3876 set 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; }
3879 if ${ac_cv_prog_CC+:} false; then :
3880 $as_echo_n "(cached) " >&6
3881 else
3882 if test -n "$CC"; then
3883 ac_cv_prog_CC="$CC" # Let the user override the test.
3884 else
3885 ac_prog_rejected=no
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3901 done
3902 done
3903 IFS=$as_save_IFS
3904
3905 if 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
3916 fi
3917 fi
3918 fi
3919 CC=$ac_cv_prog_CC
3920 if test -n "$CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926 fi
3927
3928
3929 fi
3930 if 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.
3935 set 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; }
3938 if ${ac_cv_prog_CC+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 if test -n "$CC"; then
3942 ac_cv_prog_CC="$CC" # Let the user override the test.
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3946 do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3955 done
3956 done
3957 IFS=$as_save_IFS
3958
3959 fi
3960 fi
3961 CC=$ac_cv_prog_CC
3962 if test -n "$CC"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3964 $as_echo "$CC" >&6; }
3965 else
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3968 fi
3969
3970
3971 test -n "$CC" && break
3972 done
3973 fi
3974 if test -z "$CC"; then
3975 ac_ct_CC=$CC
3976 for ac_prog in cl.exe
3977 do
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set 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; }
3982 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -n "$ac_ct_CC"; then
3986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4006 if 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; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 fi
4013
4014
4015 test -n "$ac_ct_CC" && break
4016 done
4017
4018 if test "x$ac_ct_CC" = x; then
4019 CC=""
4020 else
4021 case $cross_compiling:$ac_tool_warned in
4022 yes:)
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;}
4025 ac_tool_warned=yes ;;
4026 esac
4027 CC=$ac_ct_CC
4028 fi
4029 fi
4030
4031 fi
4032
4033
4034 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error $? "no acceptable C compiler found in \$PATH
4037 See \`config.log' for more details" "$LINENO" 5; }
4038
4039 # Provide some information about the compiler.
4040 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4041 set X $ac_compile
4042 ac_compiler=$2
4043 for ac_option in --version -v -V -qversion; do
4044 { { ac_try="$ac_compiler $ac_option >&5"
4045 case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048 esac
4049 eval 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
4052 ac_status=$?
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
4058 fi
4059 rm -f conftest.er1 conftest.err
4060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }
4062 done
4063
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; }
4066 if ${ac_cv_c_compiler_gnu+:} false; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071
4072 int
4073 main ()
4074 {
4075 #ifndef __GNUC__
4076 choke me
4077 #endif
4078
4079 ;
4080 return 0;
4081 }
4082 _ACEOF
4083 if ac_fn_c_try_compile "$LINENO"; then :
4084 ac_compiler_gnu=yes
4085 else
4086 ac_compiler_gnu=no
4087 fi
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4090
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4093 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4094 if test $ac_compiler_gnu = yes; then
4095 GCC=yes
4096 else
4097 GCC=
4098 fi
4099 ac_test_CFLAGS=${CFLAGS+set}
4100 ac_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; }
4103 if ${ac_cv_prog_cc_g+:} false; then :
4104 $as_echo_n "(cached) " >&6
4105 else
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. */
4112
4113 int
4114 main ()
4115 {
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 if ac_fn_c_try_compile "$LINENO"; then :
4122 ac_cv_prog_cc_g=yes
4123 else
4124 CFLAGS=""
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127
4128 int
4129 main ()
4130 {
4131
4132 ;
4133 return 0;
4134 }
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137
4138 else
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. */
4143
4144 int
4145 main ()
4146 {
4147
4148 ;
4149 return 0;
4150 }
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4153 ac_cv_prog_cc_g=yes
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 fi
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4163 $as_echo "$ac_cv_prog_cc_g" >&6; }
4164 if test "$ac_test_CFLAGS" = set; then
4165 CFLAGS=$ac_save_CFLAGS
4166 elif 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
4172 else
4173 if test "$GCC" = yes; then
4174 CFLAGS="-O2"
4175 else
4176 CFLAGS=
4177 fi
4178 fi
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; }
4181 if ${ac_cv_prog_cc_c89+:} false; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 ac_cv_prog_cc_c89=no
4185 ac_save_CC=$CC
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <stdarg.h>
4189 #include <stdio.h>
4190 struct stat;
4191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4192 struct buf { int x; };
4193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4194 static char *e (p, i)
4195 char **p;
4196 int i;
4197 {
4198 return p[i];
4199 }
4200 static 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 }
4209
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. */
4217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4218
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'
4222 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4223
4224 int test (int i, double x);
4225 struct s1 {int (*f) (int a);};
4226 struct s2 {int (*f) (double a);};
4227 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4228 int argc;
4229 char **argv;
4230 int
4231 main ()
4232 {
4233 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4234 ;
4235 return 0;
4236 }
4237 _ACEOF
4238 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4239 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4240 do
4241 CC="$ac_save_CC $ac_arg"
4242 if ac_fn_c_try_compile "$LINENO"; then :
4243 ac_cv_prog_cc_c89=$ac_arg
4244 fi
4245 rm -f core conftest.err conftest.$ac_objext
4246 test "x$ac_cv_prog_cc_c89" != "xno" && break
4247 done
4248 rm -f conftest.$ac_ext
4249 CC=$ac_save_CC
4250
4251 fi
4252 # AC_CACHE_VAL
4253 case "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; } ;;
4264 esac
4265 if test "x$ac_cv_prog_cc_c89" != xno; then :
4266
4267 fi
4268
4269 ac_ext=c
4270 ac_cpp='$CPP $CPPFLAGS'
4271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274
4275 if test "$GCC" = yes; then
4276 RDYNAMIC="-rdynamic"
4277
4278 fi
4279 ac_ext=c
4280 ac_cpp='$CPP $CPPFLAGS'
4281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283 ac_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.
4287 if test -n "$CPP" && test -d "$CPP"; then
4288 CPP=
4289 fi
4290 if test -z "$CPP"; then
4291 if ${ac_cv_prog_CPP+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293 else
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
4298 for ac_c_preproc_warn_flag in '' yes
4299 do
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
4315 if ac_fn_c_try_cpp "$LINENO"; then :
4316
4317 else
4318 # Broken: fails on valid input.
4319 continue
4320 fi
4321 rm -f conftest.err conftest.i conftest.$ac_ext
4322
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
4329 if ac_fn_c_try_cpp "$LINENO"; then :
4330 # Broken: success on invalid input.
4331 continue
4332 else
4333 # Passes both tests.
4334 ac_preproc_ok=:
4335 break
4336 fi
4337 rm -f conftest.err conftest.i conftest.$ac_ext
4338
4339 done
4340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4341 rm -f conftest.i conftest.err conftest.$ac_ext
4342 if $ac_preproc_ok; then :
4343 break
4344 fi
4345
4346 done
4347 ac_cv_prog_CPP=$CPP
4348
4349 fi
4350 CPP=$ac_cv_prog_CPP
4351 else
4352 ac_cv_prog_CPP=$CPP
4353 fi
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4355 $as_echo "$CPP" >&6; }
4356 ac_preproc_ok=false
4357 for ac_c_preproc_warn_flag in '' yes
4358 do
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 # <limits.h> exists even on freestanding compilers.
4363 # On the NeXT, cc -E runs the code through the compiler's parser,
4364 # not just through cpp. "Syntax error" is here to catch this case.
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 #ifdef __STDC__
4368 # include <limits.h>
4369 #else
4370 # include <assert.h>
4371 #endif
4372 Syntax error
4373 _ACEOF
4374 if ac_fn_c_try_cpp "$LINENO"; then :
4375
4376 else
4377 # Broken: fails on valid input.
4378 continue
4379 fi
4380 rm -f conftest.err conftest.i conftest.$ac_ext
4381
4382 # OK, works on sane cases. Now check whether nonexistent headers
4383 # can be detected and how.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #include <ac_nonexistent.h>
4387 _ACEOF
4388 if ac_fn_c_try_cpp "$LINENO"; then :
4389 # Broken: success on invalid input.
4390 continue
4391 else
4392 # Passes both tests.
4393 ac_preproc_ok=:
4394 break
4395 fi
4396 rm -f conftest.err conftest.i conftest.$ac_ext
4397
4398 done
4399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4400 rm -f conftest.i conftest.err conftest.$ac_ext
4401 if $ac_preproc_ok; then :
4402
4403 else
4404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4406 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4407 See \`config.log' for more details" "$LINENO" 5; }
4408 fi
4409
4410 ac_ext=c
4411 ac_cpp='$CPP $CPPFLAGS'
4412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415
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; }
4418 if test "$GCC" = yes
4419 then
4420 case "$host_cpu" in
4421 alpha) addcflags="-mieee" ;;
4422 esac
4423 fi
4424 if test "x$addcflags" != x
4425 then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4427 $as_echo "$addcflags" >&6; }
4428 CFLAGS="$addcflags $CFLAGS"
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4431 $as_echo "(none)" >&6; }
4432 fi
4433
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; }
4436 if ${ac_cv_path_GREP+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
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
4443 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4444 do
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
4453 case `"$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;;
4477 esac
4478
4479 $ac_path_GREP_found && break 3
4480 done
4481 done
4482 done
4483 IFS=$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
4487 else
4488 ac_cv_path_GREP=$GREP
4489 fi
4490
4491 fi
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"
4495
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4498 $as_echo_n "checking for egrep... " >&6; }
4499 if ${ac_cv_path_EGREP+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
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
4509 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4510 do
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
4519 case `"$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;;
4543 esac
4544
4545 $ac_path_EGREP_found && break 3
4546 done
4547 done
4548 done
4549 IFS=$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
4553 else
4554 ac_cv_path_EGREP=$EGREP
4555 fi
4556
4557 fi
4558 fi
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"
4562
4563
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; }
4566 if ${ac_cv_header_stdc+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
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>
4575
4576 int
4577 main ()
4578 {
4579
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_cv_header_stdc=yes
4586 else
4587 ac_cv_header_stdc=no
4588 fi
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590
4591 if 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
4598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 $EGREP "memchr" >/dev/null 2>&1; then :
4600
4601 else
4602 ac_cv_header_stdc=no
4603 fi
4604 rm -f conftest*
4605
4606 fi
4607
4608 if 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
4615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616 $EGREP "free" >/dev/null 2>&1; then :
4617
4618 else
4619 ac_cv_header_stdc=no
4620 fi
4621 rm -f conftest*
4622
4623 fi
4624
4625 if 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 :
4629 else
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)))
4646 int
4647 main ()
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
4657 if ac_fn_c_try_run "$LINENO"; then :
4658
4659 else
4660 ac_cv_header_stdc=no
4661 fi
4662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4663 conftest.$ac_objext conftest.beam conftest.$ac_ext
4664 fi
4665
4666 fi
4667 fi
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4669 $as_echo "$ac_cv_header_stdc" >&6; }
4670 if test $ac_cv_header_stdc = yes; then
4671
4672 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4673
4674 fi
4675
4676 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4677 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4678 inttypes.h stdint.h unistd.h
4679 do :
4680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4681 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4682 "
4683 if 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
4688 fi
4689
4690 done
4691
4692
4693
4694 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4695 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4696 MINIX=yes
4697 else
4698 MINIX=
4699 fi
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; }
4717 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722
4723 # define __EXTENSIONS__ 1
4724 $ac_includes_default
4725 int
4726 main ()
4727 {
4728
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 ac_cv_safe_to_define___extensions__=yes
4735 else
4736 ac_cv_safe_to_define___extensions__=no
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 fi
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
4754 LIB_EXT=.a
4755 STATIC_LIB_EXT=.a
4756 PROFILED_LIB_EXT=.a
4757
4758 # Check whether --with-root-prefix was given.
4759 if test "${with_root_prefix+set}" = set; then :
4760 withval=$with_root_prefix; root_prefix=$withval
4761 else
4762 root_prefix=NONE
4763 fi
4764 # Check whether --enable-maintainer-mode was given.
4765 if test "${enable_maintainer_mode+set}" = set; then :
4766 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4767 then
4768 MAINTAINER_CMT=#
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4770 $as_echo "Disabling maintainer mode" >&6; }
4771 else
4772 MAINTAINER_CMT=
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4774 $as_echo "Enabling maintainer mode" >&6; }
4775 fi
4776
4777 else
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
4782 fi
4783
4784
4785 # Check whether --enable-symlink-install was given.
4786 if test "${enable_symlink_install+set}" = set; then :
4787 enableval=$enable_symlink_install; if test "$enableval" = "no"
4788 then
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; }
4792 else
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; }
4796 fi
4797
4798 else
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
4803 fi
4804
4805
4806 relative_symlink_defined=
4807 # Check whether --enable-relative-symlinks was given.
4808 if test "${enable_relative_symlinks+set}" = set; then :
4809 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4810 then
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; }
4815 else
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; }
4820 fi
4821 fi
4822
4823 # Check whether --enable-symlink-relative-symlinks was given.
4824 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4825 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4826 then
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; }
4830 else
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; }
4834 fi
4835
4836 else
4837 if test -z "$relative_symlink_defined"
4838 then
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; }
4842 fi
4843
4844 fi
4845
4846
4847 # Check whether --enable-symlink-build was given.
4848 if test "${enable_symlink_build+set}" = set; then :
4849 enableval=$enable_symlink_build; if test "$enableval" = "no"
4850 then
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; }
4854 else
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; }
4858 fi
4859
4860 else
4861 LINK_BUILD_FLAGS=
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; }
4864
4865 fi
4866
4867
4868 # Check whether --enable-verbose-makecmds was given.
4869 if test "${enable_verbose_makecmds+set}" = set; then :
4870 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4871 then
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
4875 ES=echo
4876 Q=@
4877 else
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4879 $as_echo "Enabling verbose make commands" >&6; }
4880 E=@\\#
4881 ES=\\#
4882 Q=
4883 fi
4884
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4887 $as_echo "Disabling verbose make commands" >&6; }
4888 E=@echo
4889 ES=echo
4890 Q=@
4891
4892 fi
4893
4894
4895
4896
4897 # Check whether --enable-compression was given.
4898 if test "${enable_compression+set}" = set; then :
4899 enableval=$enable_compression; if test "$enableval" = "no"
4900 then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4902 $as_echo "Disabling compression support" >&6; }
4903 else
4904
4905 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4906
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;}
4911 fi
4912
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4915 $as_echo "Disabling compression support by default" >&6; }
4916
4917 fi
4918
4919
4920 # Check whether --enable-htree was given.
4921 if test "${enable_htree+set}" = set; then :
4922 enableval=$enable_htree; if test "$enableval" = "no"
4923 then
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; }
4927 else
4928 HTREE_CMT=
4929 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4930
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4932 $as_echo "Enabling htree directory support" >&6; }
4933 fi
4934
4935 else
4936 HTREE_CMT=
4937 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4938
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; }
4941
4942 fi
4943
4944
4945 E2_PKG_CONFIG_STATIC=--static
4946 LDFLAG_DYNAMIC=
4947 PRIVATE_LIBS_CMT=
4948 # Check whether --enable-elf-shlibs was given.
4949 if test "${enable_elf_shlibs+set}" = set; then :
4950 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4951 then
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; }
4956 else
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; }
4971 fi
4972
4973 else
4974 MAKEFILE_ELF=/dev/null
4975 ELF_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; }
4978
4979 fi
4980
4981
4982
4983 # Check whether --enable-bsd-shlibs was given.
4984 if test "${enable_bsd_shlibs+set}" = set; then :
4985 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4986 then
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; }
4991 else
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; }
5004 fi
5005
5006 else
5007 MAKEFILE_BSDLIB=/dev/null
5008 BSDLIB_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; }
5011
5012 fi
5013
5014
5015
5016 # Check whether --enable-profile was given.
5017 if test "${enable_profile+set}" = set; then :
5018 enableval=$enable_profile; if test "$enableval" = "no"
5019 then
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; }
5024 else
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; }
5030 fi
5031
5032 else
5033 PROFILE_CMT=#
5034 MAKEFILE_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; }
5037
5038 fi
5039
5040
5041
5042 # Check whether --enable-gcov was given.
5043 if test "${enable_gcov+set}" = set; then :
5044 enableval=$enable_gcov; if test "$enableval" = "yes"
5045 then
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; }
5050 fi
5051
5052 fi
5053
5054
5055
5056
5057
5058
5059
5060 # Check whether --enable-jbd-debug was given.
5061 if test "${enable_jbd_debug+set}" = set; then :
5062 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5063 then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5065 $as_echo "Disabling journal debugging" >&6; }
5066 else
5067
5068 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5069
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5071 $as_echo "Enabling journal debugging" >&6; }
5072 fi
5073
5074 else
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5076 $as_echo "Disabling journal debugging by default" >&6; }
5077
5078 fi
5079
5080 # Check whether --enable-blkid-debug was given.
5081 if test "${enable_blkid_debug+set}" = set; then :
5082 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5083 then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5085 $as_echo "Disabling blkid debugging" >&6; }
5086 else
5087
5088 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5091 $as_echo "Enabling blkid debugging" >&6; }
5092 fi
5093
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5096 $as_echo "Disabling blkid debugging by default" >&6; }
5097
5098 fi
5099
5100 # Check whether --enable-testio-debug was given.
5101 if test "${enable_testio_debug+set}" = set; then :
5102 enableval=$enable_testio_debug;
5103 if test "$enableval" = "no"
5104 then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5106 $as_echo "Disabling testio debugging" >&6; }
5107 TEST_IO_CMT="#"
5108 else
5109 TEST_IO_CMT=
5110 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5113 $as_echo "Enabling testio debugging" >&6; }
5114 fi
5115
5116 else
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
5120
5121 TEST_IO_CMT=
5122
5123 fi
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5134 if test -n "$ac_tool_prefix"; then
5135 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5136 set 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; }
5139 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
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
5148 for as_dir in $PATH
5149 do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
5158 done
5159 done
5160 IFS=$as_save_IFS
5161
5162 ;;
5163 esac
5164 fi
5165 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5166 if test -n "$PKG_CONFIG"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5168 $as_echo "$PKG_CONFIG" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172 fi
5173
5174
5175 fi
5176 if 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.
5179 set 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; }
5182 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
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
5191 for as_dir in $PATH
5192 do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
5201 done
5202 done
5203 IFS=$as_save_IFS
5204
5205 ;;
5206 esac
5207 fi
5208 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5209 if 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; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5215 fi
5216
5217 if test "x$ac_pt_PKG_CONFIG" = x; then
5218 PKG_CONFIG=""
5219 else
5220 case $cross_compiling:$ac_tool_warned in
5221 yes:)
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;}
5224 ac_tool_warned=yes ;;
5225 esac
5226 PKG_CONFIG=$ac_pt_PKG_CONFIG
5227 fi
5228 else
5229 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5230 fi
5231
5232 fi
5233 if test -n "$PKG_CONFIG"; then
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
5236 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5237 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5239 $as_echo "yes" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 PKG_CONFIG=""
5244 fi
5245 fi
5246 LIBUUID=
5247 DEPLIBUUID=
5248 STATIC_LIBUUID=
5249 DEPSTATIC_LIBUUID=
5250 PROFILED_LIBUUID=
5251 DEPPROFILED_LIBUUID=
5252 UUID_CMT=
5253 # Check whether --enable-libuuid was given.
5254 if test "${enable_libuuid+set}" = set; then :
5255 enableval=$enable_libuuid; if test "$enableval" = "no"
5256 then
5257 if test -z "$PKG_CONFIG"; then
5258 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
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; }
5263 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 ac_check_lib_save_LIBS=$LIBS
5267 LIBS="-luuid $LIBS"
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270
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
5275 extern "C"
5276 #endif
5277 char uuid_generate ();
5278 int
5279 main ()
5280 {
5281 return uuid_generate ();
5282 ;
5283 return 0;
5284 }
5285 _ACEOF
5286 if ac_fn_c_try_link "$LINENO"; then :
5287 ac_cv_lib_uuid_uuid_generate=yes
5288 else
5289 ac_cv_lib_uuid_uuid_generate=no
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext \
5292 conftest$ac_exeext conftest.$ac_ext
5293 LIBS=$ac_check_lib_save_LIBS
5294 fi
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; }
5297 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5298 LIBUUID=`$PKG_CONFIG --libs uuid`;
5299 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5300 else
5301 as_fn_error $? "external uuid library not found" "$LINENO" 5
5302 fi
5303
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; }
5307 else
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; }
5316 fi
5317
5318 else
5319 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5320 DEPLIBUUID=$LIBUUID
5321 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5322 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5323 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5324 DEPPROFILED_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; }
5327
5328 fi
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5347 set 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; }
5350 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 case $PKG_CONFIG in
5354 [\\/]* | ?:[\\/]*)
5355 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5356 ;;
5357 *)
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
5369 done
5370 done
5371 IFS=$as_save_IFS
5372
5373 ;;
5374 esac
5375 fi
5376 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5377 if test -n "$PKG_CONFIG"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5379 $as_echo "$PKG_CONFIG" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384
5385
5386 fi
5387 if 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.
5390 set dummy pkg-config; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 case $ac_pt_PKG_CONFIG in
5397 [\\/]* | ?:[\\/]*)
5398 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5399 ;;
5400 *)
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5403 do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
5410 break 2
5411 fi
5412 done
5413 done
5414 IFS=$as_save_IFS
5415
5416 ;;
5417 esac
5418 fi
5419 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5420 if 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; }
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5426 fi
5427
5428 if test "x$ac_pt_PKG_CONFIG" = x; then
5429 PKG_CONFIG=""
5430 else
5431 case $cross_compiling:$ac_tool_warned in
5432 yes:)
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;}
5435 ac_tool_warned=yes ;;
5436 esac
5437 PKG_CONFIG=$ac_pt_PKG_CONFIG
5438 fi
5439 else
5440 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5441 fi
5442
5443 fi
5444 if test -n "$PKG_CONFIG"; then
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
5447 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5448 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5450 $as_echo "yes" >&6; }
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 PKG_CONFIG=""
5455 fi
5456 fi
5457 LIBBLKID=
5458 DEPLIBBLKID=
5459 STATIC_LIBBLKID=
5460 DEPSTATIC_LIBBLKID=
5461 PROFILED_LIBBLKID=
5462 DEPPROFILED_LIBBLKID=
5463 BLKID_CMT=
5464
5465 # Check whether --enable-libblkid was given.
5466 if test "${enable_libblkid+set}" = set; then :
5467 enableval=$enable_libblkid; if test "$enableval" = "no"
5468 then
5469 if test -z "$PKG_CONFIG"; then
5470 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
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; }
5475 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 ac_check_lib_save_LIBS=$LIBS
5479 LIBS="-lblkid -luuid $LIBS"
5480 cat 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
5487 extern "C"
5488 #endif
5489 char blkid_get_cache ();
5490 int
5491 main ()
5492 {
5493 return blkid_get_cache ();
5494 ;
5495 return 0;
5496 }
5497 _ACEOF
5498 if ac_fn_c_try_link "$LINENO"; then :
5499 ac_cv_lib_blkid_blkid_get_cache=yes
5500 else
5501 ac_cv_lib_blkid_blkid_get_cache=no
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
5505 LIBS=$ac_check_lib_save_LIBS
5506 fi
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; }
5509 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5510 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5511 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5512 else
5513 as_fn_error $? "external blkid library not found" "$LINENO" 5
5514 fi
5515
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; }
5519 else
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; }
5530 fi
5531
5532 else
5533 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5534 DEPLIBBLKID=$LIBBLKID
5535 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5536 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5537 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5538 DEPPROFILED_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
5544 fi
5545
5546
5547
5548
5549
5550
5551
5552
5553 QUOTA_MAN_COMMENT='.\"'
5554 QUOTA_CMT=
5555
5556
5557
5558
5559
5560
5561
5562
5563 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5564 if test -n "$ac_tool_prefix"; then
5565 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5566 set 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; }
5569 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
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
5578 for as_dir in $PATH
5579 do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
5588 done
5589 done
5590 IFS=$as_save_IFS
5591
5592 ;;
5593 esac
5594 fi
5595 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5596 if test -n "$PKG_CONFIG"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5598 $as_echo "$PKG_CONFIG" >&6; }
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5602 fi
5603
5604
5605 fi
5606 if 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.
5609 set 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; }
5612 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
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
5621 for as_dir in $PATH
5622 do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
5631 done
5632 done
5633 IFS=$as_save_IFS
5634
5635 ;;
5636 esac
5637 fi
5638 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5639 if 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; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5645 fi
5646
5647 if test "x$ac_pt_PKG_CONFIG" = x; then
5648 PKG_CONFIG=""
5649 else
5650 case $cross_compiling:$ac_tool_warned in
5651 yes:)
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;}
5654 ac_tool_warned=yes ;;
5655 esac
5656 PKG_CONFIG=$ac_pt_PKG_CONFIG
5657 fi
5658 else
5659 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5660 fi
5661
5662 fi
5663 if test -n "$PKG_CONFIG"; then
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
5666 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5667 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5669 $as_echo "yes" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 PKG_CONFIG=""
5674 fi
5675 fi
5676
5677 # Check whether --enable-quota was given.
5678 if test "${enable_quota+set}" = set; then :
5679 enableval=$enable_quota; if test "$enableval" = "no"
5680 then
5681 QUOTA_CMT=#
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5683 $as_echo "Disabling quota support" >&6; }
5684 else
5685 QUOTA_CMT=
5686 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5689 $as_echo "Enabling quota support" >&6; }
5690 QUOTA_MAN_COMMENT=""
5691
5692 fi
5693
5694 else
5695 QUOTA_CMT=#
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5697 $as_echo "Disabling quota support by default" >&6; }
5698
5699 fi
5700
5701 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5702 DEPLIBQUOTA=$LIBQUOTA
5703 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5704 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5705 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5706 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5707
5708
5709
5710
5711
5712
5713
5714
5715 # Check whether --enable-backtrace was given.
5716 if test "${enable_backtrace+set}" = set; then :
5717 enableval=$enable_backtrace; if test "$enableval" = "no"
5718 then
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
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5725 $as_echo "Enabling use of backtrace" >&6; }
5726 fi
5727
5728 else
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
5732 fi
5733
5734 # Check whether --enable-debugfs was given.
5735 if test "${enable_debugfs+set}" = set; then :
5736 enableval=$enable_debugfs; if test "$enableval" = "no"
5737 then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5739 $as_echo "Disabling debugfs support" >&6; }
5740 DEBUGFS_CMT="#"
5741 else
5742 DEBUGFS_CMT=
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5744 $as_echo "Enabling debugfs support" >&6; }
5745 fi
5746
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5749 $as_echo "Enabling debugfs support by default" >&6; }
5750 DEBUGFS_CMT=
5751
5752 fi
5753
5754
5755 # Check whether --enable-imager was given.
5756 if test "${enable_imager+set}" = set; then :
5757 enableval=$enable_imager; if test "$enableval" = "no"
5758 then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5760 $as_echo "Disabling e2image support" >&6; }
5761 IMAGER_CMT="#"
5762 else
5763 IMAGER_CMT=
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5765 $as_echo "Enabling e2image support" >&6; }
5766 fi
5767
5768 else
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5770 $as_echo "Enabling e2image support by default" >&6; }
5771 IMAGER_CMT=
5772
5773 fi
5774
5775
5776 # Check whether --enable-resizer was given.
5777 if test "${enable_resizer+set}" = set; then :
5778 enableval=$enable_resizer; if test "$enableval" = "no"
5779 then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5781 $as_echo "Disabling e2resize support" >&6; }
5782 RESIZER_CMT="#"
5783 else
5784 RESIZER_CMT=
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5786 $as_echo "Enabling e2resize support" >&6; }
5787 fi
5788
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5791 $as_echo "Enabling e2resize support by default" >&6; }
5792 RESIZER_CMT=
5793
5794 fi
5795
5796
5797 # Check whether --enable-defrag was given.
5798 if test "${enable_defrag+set}" = set; then :
5799 enableval=$enable_defrag; if test "$enableval" = "no"
5800 then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5802 $as_echo "Disabling e4defrag support" >&6; }
5803 DEFRAG_CMT="#"
5804 else
5805 DEFRAG_CMT=
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5807 $as_echo "Enabling e4defrag support" >&6; }
5808 fi
5809
5810 else
5811 if test -z "$WITH_DIET_LIBC"
5812 then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5814 $as_echo "Enabling e4defrag support by default" >&6; }
5815 DEFRAG_CMT=
5816 else
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="#"
5820 fi
5821
5822 fi
5823
5824
5825 # Check whether --enable-fsck was given.
5826 if test "${enable_fsck+set}" = set; then :
5827 enableval=$enable_fsck; if test "$enableval" = "no"
5828 then
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; }
5832 else
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; }
5836 fi
5837
5838 else
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; }
5849 esac
5850
5851 fi
5852
5853
5854
5855 # Check whether --enable-e2initrd-helper was given.
5856 if test "${enable_e2initrd_helper+set}" = set; then :
5857 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5858 then
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; }
5862 else
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; }
5866 fi
5867
5868 else
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; }
5872
5873 fi
5874
5875
5876
5877 # Check whether --enable-tls was given.
5878 if test "${enable_tls+set}" = set; then :
5879 enableval=$enable_tls; if test "$enableval" = "no"
5880 then
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; }
5884 else
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; }
5888 fi
5889
5890 else
5891 if test -n "$WITH_DIET_LIBC"
5892 then
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; }
5896 else
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; }
5900 fi
5901
5902 fi
5903
5904 if test "$try_tls" = "yes"
5905 then
5906
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; }
5909 if ${ac_cv_tls+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912
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 }
5926 int
5927 main ()
5928 {
5929
5930 ;
5931 return 0;
5932 }
5933 _ACEOF
5934 if ac_fn_c_try_compile "$LINENO"; then :
5935 ac_cv_tls=$ax_tls_keyword ; break
5936 else
5937 ac_cv_tls=none
5938
5939 fi
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 esac
5942 done
5943
5944 fi
5945
5946
5947 if test "$ac_cv_tls" != "none"; then
5948
5949 cat >>confdefs.h <<_ACEOF
5950 #define TLS $ac_cv_tls
5951 _ACEOF
5952
5953 fi
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5955 $as_echo "$ac_cv_tls" >&6; }
5956
5957 fi
5958
5959 # Check whether --enable-uuidd was given.
5960 if test "${enable_uuidd+set}" = set; then :
5961 enableval=$enable_uuidd; if test "$enableval" = "no"
5962 then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5964 $as_echo "Not building uuidd" >&6; }
5965 UUIDD_CMT="#"
5966 else
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; }
5972 fi
5973
5974 else
5975 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5976
5977 UUIDD_CMT=""
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5979 $as_echo "Building uuidd by default" >&6; }
5980
5981 fi
5982
5983
5984 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5985
5986 GETTEXT_PACKAGE=e2fsprogs
5987 PACKAGE=e2fsprogs
5988 VERSION="$E2FSPROGS_VERSION"
5989 VERSION=0.14.1
5990
5991 cat >>confdefs.h <<_ACEOF
5992 #define PACKAGE "$PACKAGE"
5993 _ACEOF
5994
5995
5996 cat >>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; }
6006 set x ${MAKE-make}
6007 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6008 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 cat >conftest.make <<\_ACEOF
6012 SHELL = /bin/sh
6013 all:
6014 @echo '@@@%%%=$(MAKE)=@@@%%%'
6015 _ACEOF
6016 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6017 case `${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;;
6022 esac
6023 rm -f conftest.make
6024 fi
6025 if 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=
6029 else
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6032 SET_MAKE="MAKE=${MAKE-make}"
6033 fi
6034
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; }
6051 if test -z "$INSTALL"; then
6052 if ${ac_cv_path_install+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 # Account for people who put trailing slashes in PATH elements.
6061 case $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
6072 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
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 ;;
6099 esac
6100
6101 done
6102 IFS=$as_save_IFS
6103
6104 rm -rf conftest.one conftest.two conftest.dir
6105
6106 fi
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
6116 fi
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6118 $as_echo "$INSTALL" >&6; }
6119
6120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6121 # It thinks the first close brace ends the variable substitution.
6122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6123
6124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6125
6126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6127
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; }
6130 if test -z "$MKDIR_P"; then
6131 if ${ac_cv_path_mkdir+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6136 do
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
6152 IFS=$as_save_IFS
6153
6154 fi
6155
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"
6165 fi
6166 fi
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; }
6172 if ${ac_cv_path_SED+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
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
6185 for as_dir in $PATH
6186 do
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
6195 case `"$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;;
6219 esac
6220
6221 $ac_path_SED_found && break 3
6222 done
6223 done
6224 done
6225 IFS=$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
6228 fi
6229 else
6230 ac_cv_path_SED=$SED
6231 fi
6232
6233 fi
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
6238
6239
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.
6243 if test "${enable_nls+set}" = set; then :
6244 enableval=$enable_nls; USE_NLS=$enableval
6245 else
6246 USE_NLS=yes
6247 fi
6248
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6250 $as_echo "$USE_NLS" >&6; }
6251
6252
6253
6254
6255 GETTEXT_MACRO_VERSION=0.18
6256
6257
6258
6259
6260 # Prepare PATH_SEPARATOR.
6261 # The user is always right.
6262 if test "${PATH_SEPARATOR+set}" != set; then
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 }
6271 fi
6272
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.
6275 cat >conf$$.file <<_ASEOF
6276 #! /bin/sh
6277 exit 0
6278 _ASEOF
6279 chmod +x conf$$.file
6280 if test -x conf$$.file >/dev/null 2>&1; then
6281 ac_executable_p="test -x"
6282 else
6283 ac_executable_p="test -f"
6284 fi
6285 rm -f conf$$.file
6286
6287 # Extract the first word of "msgfmt", so it can be a program name with args.
6288 set 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; }
6291 if ${ac_cv_path_MSGFMT+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
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
6305 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6306 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
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 ;;
6317 esac
6318 fi
6319 MSGFMT="$ac_cv_path_MSGFMT"
6320 if test "$MSGFMT" != ":"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6322 $as_echo "$MSGFMT" >&6; }
6323 else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6326 fi
6327
6328 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6329 set 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; }
6332 if ${ac_cv_path_GMSGFMT+:} false; then :
6333 $as_echo_n "(cached) " >&6
6334 else
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
6341 for as_dir in $PATH
6342 do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
6351 done
6352 done
6353 IFS=$as_save_IFS
6354
6355 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6356 ;;
6357 esac
6358 fi
6359 GMSGFMT=$ac_cv_path_GMSGFMT
6360 if test -n "$GMSGFMT"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6362 $as_echo "$GMSGFMT" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368
6369
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
6381
6382 # Prepare PATH_SEPARATOR.
6383 # The user is always right.
6384 if test "${PATH_SEPARATOR+set}" != set; then
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 }
6393 fi
6394
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.
6397 cat >conf$$.file <<_ASEOF
6398 #! /bin/sh
6399 exit 0
6400 _ASEOF
6401 chmod +x conf$$.file
6402 if test -x conf$$.file >/dev/null 2>&1; then
6403 ac_executable_p="test -x"
6404 else
6405 ac_executable_p="test -f"
6406 fi
6407 rm -f conf$$.file
6408
6409 # Extract the first word of "xgettext", so it can be a program name with args.
6410 set 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; }
6413 if ${ac_cv_path_XGETTEXT+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
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
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 &&
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 ;;
6439 esac
6440 fi
6441 XGETTEXT="$ac_cv_path_XGETTEXT"
6442 if test "$XGETTEXT" != ":"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6444 $as_echo "$XGETTEXT" >&6; }
6445 else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6448 fi
6449
6450 rm -f messages.po
6451
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
6458
6459 # Prepare PATH_SEPARATOR.
6460 # The user is always right.
6461 if test "${PATH_SEPARATOR+set}" != set; then
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 }
6470 fi
6471
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.
6474 cat >conf$$.file <<_ASEOF
6475 #! /bin/sh
6476 exit 0
6477 _ASEOF
6478 chmod +x conf$$.file
6479 if test -x conf$$.file >/dev/null 2>&1; then
6480 ac_executable_p="test -x"
6481 else
6482 ac_executable_p="test -f"
6483 fi
6484 rm -f conf$$.file
6485
6486 # Extract the first word of "msgmerge", so it can be a program name with args.
6487 set 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; }
6490 if ${ac_cv_path_MSGMERGE+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492 else
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
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
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 ;;
6515 esac
6516 fi
6517 MSGMERGE="$ac_cv_path_MSGMERGE"
6518 if test "$MSGMERGE" != ":"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6520 $as_echo "$MSGMERGE" >&6; }
6521 else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6524 fi
6525
6526
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"
6534
6535
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; }
6539 if ${ac_cv_gnu_library_2+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
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
6553 if (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
6556 else
6557 ac_cv_gnu_library_2=no
6558 fi
6559 rm -f conftest*
6560
6561
6562
6563 fi
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"
6568
6569
6570 if 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.
6572 set 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; }
6575 if ${ac_cv_prog_RANLIB+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 if test -n "$RANLIB"; then
6579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
6592 done
6593 done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 RANLIB=$ac_cv_prog_RANLIB
6599 if test -n "$RANLIB"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6601 $as_echo "$RANLIB" >&6; }
6602 else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607
6608 fi
6609 if 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.
6612 set 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; }
6615 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 if test -n "$ac_ct_RANLIB"; then
6619 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
6632 done
6633 done
6634 IFS=$as_save_IFS
6635
6636 fi
6637 fi
6638 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6639 if 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; }
6642 else
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6645 fi
6646
6647 if test "x$ac_ct_RANLIB" = x; then
6648 RANLIB=":"
6649 else
6650 case $cross_compiling:$ac_tool_warned in
6651 yes:)
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;}
6654 ac_tool_warned=yes ;;
6655 esac
6656 RANLIB=$ac_ct_RANLIB
6657 fi
6658 else
6659 RANLIB="$ac_cv_prog_RANLIB"
6660 fi
6661
6662
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 :
6670 $as_echo_n "(cached) " >&6
6671 else
6672
6673 gl_save_CFLAGS="$CFLAGS"
6674 CFLAGS="$CFLAGS -Werror"
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677
6678 int
6679 main ()
6680 {
6681
6682 ;
6683 return 0;
6684 }
6685 _ACEOF
6686 if ac_fn_c_try_compile "$LINENO"; then :
6687 gl_cv_cc_vis_werror=yes
6688 else
6689 gl_cv_cc_vis_werror=no
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 CFLAGS="$gl_save_CFLAGS"
6693 fi
6694
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
6701 else
6702
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. */
6710 extern __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) {}
6715
6716 int
6717 main ()
6718 {
6719
6720 ;
6721 return 0;
6722 }
6723 _ACEOF
6724 if ac_fn_c_try_compile "$LINENO"; then :
6725 gl_cv_cc_visibility=yes
6726 else
6727 gl_cv_cc_visibility=no
6728 fi
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 CFLAGS="$gl_save_CFLAGS"
6731 fi
6732
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
6739 fi
6740
6741
6742
6743 cat >>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; }
6750 if ${ac_cv_c_inline+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 ac_cv_c_inline=no
6754 for ac_kw in inline __inline__ __inline; do
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757 #ifndef __cplusplus
6758 typedef int foo_t;
6759 static $ac_kw foo_t static_foo () {return 0; }
6760 $ac_kw foo_t foo () {return 0; }
6761 #endif
6762
6763 _ACEOF
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 ac_cv_c_inline=$ac_kw
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 test "$ac_cv_c_inline" != no && break
6769 done
6770
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6773 $as_echo "$ac_cv_c_inline" >&6; }
6774
6775 case $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 ;;
6788 esac
6789
6790 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6791 if test "x$ac_cv_type_size_t" = xyes; then :
6792
6793 else
6794
6795 cat >>confdefs.h <<_ACEOF
6796 #define size_t unsigned int
6797 _ACEOF
6798
6799 fi
6800
6801
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6803 $as_echo_n "checking for stdint.h... " >&6; }
6804 if ${gl_cv_header_stdint_h+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6809 #include <sys/types.h>
6810 #include <stdint.h>
6811 int
6812 main ()
6813 {
6814 uintmax_t i = (uintmax_t) -1; return !i;
6815 ;
6816 return 0;
6817 }
6818 _ACEOF
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820 gl_cv_header_stdint_h=yes
6821 else
6822 gl_cv_header_stdint_h=no
6823 fi
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825 fi
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
6829
6830 cat >>confdefs.h <<_ACEOF
6831 #define HAVE_STDINT_H_WITH_UINTMAX 1
6832 _ACEOF
6833
6834 fi
6835
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; }
6840 if ${ac_cv_working_alloca_h+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 #include <alloca.h>
6846 int
6847 main ()
6848 {
6849 char *p = (char *) alloca (2 * sizeof (int));
6850 if (p) return 0;
6851 ;
6852 return 0;
6853 }
6854 _ACEOF
6855 if ac_fn_c_try_link "$LINENO"; then :
6856 ac_cv_working_alloca_h=yes
6857 else
6858 ac_cv_working_alloca_h=no
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
6862 fi
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6864 $as_echo "$ac_cv_working_alloca_h" >&6; }
6865 if test $ac_cv_working_alloca_h = yes; then
6866
6867 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6868
6869 fi
6870
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6872 $as_echo_n "checking for alloca... " >&6; }
6873 if ${ac_cv_func_alloca_works+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
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 */
6892 void *alloca (size_t);
6893 # endif
6894 # endif
6895 # endif
6896 # endif
6897 #endif
6898
6899 int
6900 main ()
6901 {
6902 char *p = (char *) alloca (1);
6903 if (p) return 0;
6904 ;
6905 return 0;
6906 }
6907 _ACEOF
6908 if ac_fn_c_try_link "$LINENO"; then :
6909 ac_cv_func_alloca_works=yes
6910 else
6911 ac_cv_func_alloca_works=no
6912 fi
6913 rm -f core conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
6915 fi
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6917 $as_echo "$ac_cv_func_alloca_works" >&6; }
6918
6919 if test $ac_cv_func_alloca_works = yes; then
6920
6921 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6922
6923 else
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.
6928
6929 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6930
6931 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6932
6933
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; }
6936 if ${ac_cv_os_cray+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6941 #if defined CRAY && ! defined CRAY2
6942 webecray
6943 #else
6944 wenotbecray
6945 #endif
6946
6947 _ACEOF
6948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6949 $EGREP "webecray" >/dev/null 2>&1; then :
6950 ac_cv_os_cray=yes
6951 else
6952 ac_cv_os_cray=no
6953 fi
6954 rm -f conftest*
6955
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6958 $as_echo "$ac_cv_os_cray" >&6; }
6959 if 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`
6962 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6963 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6964
6965 cat >>confdefs.h <<_ACEOF
6966 #define CRAY_STACKSEG_END $ac_func
6967 _ACEOF
6968
6969 break
6970 fi
6971
6972 done
6973 fi
6974
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; }
6977 if ${ac_cv_c_stack_direction+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 if test "$cross_compiling" = yes; then :
6981 ac_cv_c_stack_direction=0
6982 else
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 $ac_includes_default
6986 int
6987 find_stack_direction (int *addr, int depth)
6988 {
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;
6995 }
6996
6997 int
6998 main (int argc, char **argv)
6999 {
7000 return find_stack_direction (0, argc + !argv + 20) < 0;
7001 }
7002 _ACEOF
7003 if ac_fn_c_try_run "$LINENO"; then :
7004 ac_cv_c_stack_direction=1
7005 else
7006 ac_cv_c_stack_direction=-1
7007 fi
7008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7009 conftest.$ac_objext conftest.beam conftest.$ac_ext
7010 fi
7011
7012 fi
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7014 $as_echo "$ac_cv_c_stack_direction" >&6; }
7015 cat >>confdefs.h <<_ACEOF
7016 #define STACK_DIRECTION $ac_cv_c_stack_direction
7017 _ACEOF
7018
7019
7020 fi
7021
7022
7023
7024
7025 for ac_header in $ac_header_list
7026 do :
7027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7028 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7029 "
7030 if 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
7033 _ACEOF
7034
7035 fi
7036
7037 done
7038
7039
7040
7041
7042
7043
7044
7045
7046 for ac_func in getpagesize
7047 do :
7048 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7049 if test "x$ac_cv_func_getpagesize" = xyes; then :
7050 cat >>confdefs.h <<_ACEOF
7051 #define HAVE_GETPAGESIZE 1
7052 _ACEOF
7053
7054 fi
7055 done
7056
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7058 $as_echo_n "checking for working mmap... " >&6; }
7059 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 if test "$cross_compiling" = yes; then :
7063 ac_cv_func_mmap_fixed_mapped=no
7064 else
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7067 $ac_includes_default
7068 /* malloc might have been renamed as rpl_malloc. */
7069 #undef malloc
7070
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
7097 char *malloc ();
7098 #endif
7099
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
7132 int
7133 main ()
7134 {
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);
7201 return 0;
7202 }
7203 _ACEOF
7204 if ac_fn_c_try_run "$LINENO"; then :
7205 ac_cv_func_mmap_fixed_mapped=yes
7206 else
7207 ac_cv_func_mmap_fixed_mapped=no
7208 fi
7209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7210 conftest.$ac_objext conftest.beam conftest.$ac_ext
7211 fi
7212
7213 fi
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; }
7216 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7217
7218 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7219
7220 fi
7221 rm -f conftest.mmap conftest.txt
7222
7223
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; }
7227 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230
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
7253
7254 else
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257
7258 #include <stdlib.h>
7259 #include <signal.h>
7260
7261 static void
7262 sigfpe_handler (int sig)
7263 {
7264 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7265 exit (sig != SIGFPE);
7266 }
7267
7268 int x = 1;
7269 int y = 0;
7270 int z;
7271 int nan;
7272
7273 int main ()
7274 {
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);
7288 }
7289
7290 _ACEOF
7291 if ac_fn_c_try_run "$LINENO"; then :
7292 gt_cv_int_divbyzero_sigfpe=yes
7293 else
7294 gt_cv_int_divbyzero_sigfpe=no
7295 fi
7296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7297 conftest.$ac_objext conftest.beam conftest.$ac_ext
7298 fi
7299
7300 fi
7301
7302 fi
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
7309
7310 cat >>confdefs.h <<_ACEOF
7311 #define INTDIV0_RAISES_SIGFPE $value
7312 _ACEOF
7313
7314
7315
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7317 $as_echo_n "checking for inttypes.h... " >&6; }
7318 if ${gl_cv_header_inttypes_h+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7323
7324 #include <sys/types.h>
7325 #include <inttypes.h>
7326
7327 int
7328 main ()
7329 {
7330 uintmax_t i = (uintmax_t) -1; return !i;
7331 ;
7332 return 0;
7333 }
7334 _ACEOF
7335 if ac_fn_c_try_compile "$LINENO"; then :
7336 gl_cv_header_inttypes_h=yes
7337 else
7338 gl_cv_header_inttypes_h=no
7339 fi
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 fi
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
7345
7346 cat >>confdefs.h <<_ACEOF
7347 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7348 _ACEOF
7349
7350 fi
7351
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; }
7355 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357 else
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
7361 /* end confdefs.h. */
7362
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;
7377 int
7378 main ()
7379 {
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));
7387 ;
7388 return 0;
7389 }
7390
7391 _ACEOF
7392 if ac_fn_c_try_link "$LINENO"; then :
7393
7394 else
7395 ac_cv_type_unsigned_long_long_int=no
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext \
7398 conftest$ac_exeext conftest.$ac_ext
7399 fi
7400 fi
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
7404
7405 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7406
7407 fi
7408
7409
7410
7411
7412 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7413
7414 test $ac_cv_type_unsigned_long_long_int = yes \
7415 && ac_type='unsigned long long' \
7416 || ac_type='unsigned long'
7417
7418 cat >>confdefs.h <<_ACEOF
7419 #define uintmax_t $ac_type
7420 _ACEOF
7421
7422 else
7423
7424 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7425
7426 fi
7427
7428
7429 for ac_header in inttypes.h
7430 do :
7431 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7432 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7433 cat >>confdefs.h <<_ACEOF
7434 #define HAVE_INTTYPES_H 1
7435 _ACEOF
7436
7437 fi
7438
7439 done
7440
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; }
7444 if ${gt_cv_inttypes_pri_broken+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450
7451 #include <inttypes.h>
7452 #ifdef PRId32
7453 char *p = PRId32;
7454 #endif
7455
7456 int
7457 main ()
7458 {
7459
7460 ;
7461 return 0;
7462 }
7463 _ACEOF
7464 if ac_fn_c_try_compile "$LINENO"; then :
7465 gt_cv_inttypes_pri_broken=no
7466 else
7467 gt_cv_inttypes_pri_broken=yes
7468 fi
7469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7470
7471 fi
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
7477 cat >>confdefs.h <<_ACEOF
7478 #define PRI_MACROS_BROKEN 1
7479 _ACEOF
7480
7481 PRI_MACROS_BROKEN=1
7482 else
7483 PRI_MACROS_BROKEN=0
7484 fi
7485
7486
7487
7488
7489
7490
7491
7492 # Check whether --enable-threads was given.
7493 if test "${enable_threads+set}" = set; then :
7494 enableval=$enable_threads; gl_use_threads=$enableval
7495 else
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
7510
7511 fi
7512
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
7534
7535
7536
7537
7538
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"
7553
7554
7555
7556 # Check whether --with-gnu-ld was given.
7557 if test "${with_gnu_ld+set}" = set; then :
7558 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7559 else
7560 with_gnu_ld=no
7561 fi
7562
7563 # Prepare PATH_SEPARATOR.
7564 # The user is always right.
7565 if 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 }
7574 fi
7575
7576 ac_prog=ld
7577 if 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
7608 elif 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; }
7611 else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7613 $as_echo_n "checking for non-GNU ld... " >&6; }
7614 fi
7615 if ${acl_cv_path_LD+:} false; then :
7616 $as_echo_n "(cached) " >&6
7617 else
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"
7639 else
7640 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7641 fi
7642 fi
7643
7644 LD="$acl_cv_path_LD"
7645 if test -n "$LD"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7647 $as_echo "$LD" >&6; }
7648 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652 test -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; }
7655 if ${acl_cv_prog_gnu_ld+:} false; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7659 case `$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 ;;
7666 esac
7667 fi
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7669 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7670 with_gnu_ld=$acl_cv_prog_gnu_ld
7671
7672
7673
7674
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; }
7677 if ${acl_cv_rpath+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680
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
7686
7687 fi
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.
7700 if test "${enable_rpath+set}" = set; then :
7701 enableval=$enable_rpath; :
7702 else
7703 enable_rpath=yes
7704 fi
7705
7706
7707
7708
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; }
7715 if ${gl_cv_solaris_64bit+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720
7721 #ifdef _LP64
7722 sixtyfour bits
7723 #endif
7724
7725 _ACEOF
7726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7728 gl_cv_solaris_64bit=yes
7729 else
7730 gl_cv_solaris_64bit=no
7731 fi
7732 rm -f conftest*
7733
7734
7735 fi
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"
7769
7770
7771
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; }
7780 if ${gl_cv_have_weak+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 gl_cv_have_weak=no
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786 extern void xyzzy ();
7787 #pragma weak xyzzy
7788 int
7789 main ()
7790 {
7791 xyzzy();
7792 ;
7793 return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_link "$LINENO"; then :
7797 gl_cv_have_weak=maybe
7798 fi
7799 rm -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
7808
7809 _ACEOF
7810 if (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"
7813 else
7814 gl_cv_have_weak="guessing no"
7815 fi
7816 rm -f conftest*
7817
7818
7819 else
7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 /* end confdefs.h. */
7822
7823 #include <stdio.h>
7824 #pragma weak fputs
7825 int main ()
7826 {
7827 return (fputs == NULL);
7828 }
7829 _ACEOF
7830 if ac_fn_c_try_run "$LINENO"; then :
7831 gl_cv_have_weak=yes
7832 else
7833 gl_cv_have_weak=no
7834 fi
7835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7836 conftest.$ac_objext conftest.beam conftest.$ac_ext
7837 fi
7838
7839 fi
7840
7841 fi
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"
7848 if test "x$ac_cv_header_pthread_h" = xyes; then :
7849 gl_have_pthread_h=yes
7850 else
7851 gl_have_pthread_h=no
7852 fi
7853
7854
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
7864 /* end confdefs.h. */
7865 #include <pthread.h>
7866 int
7867 main ()
7868 {
7869 pthread_mutex_lock((pthread_mutex_t*)0);
7870 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7871 ;
7872 return 0;
7873 }
7874 _ACEOF
7875 if ac_fn_c_try_link "$LINENO"; then :
7876 gl_have_pthread=yes
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
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; }
7887 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 ac_check_lib_save_LIBS=$LIBS
7891 LIBS="-lpthread $LIBS"
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
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
7899 extern "C"
7900 #endif
7901 char pthread_kill ();
7902 int
7903 main ()
7904 {
7905 return pthread_kill ();
7906 ;
7907 return 0;
7908 }
7909 _ACEOF
7910 if ac_fn_c_try_link "$LINENO"; then :
7911 ac_cv_lib_pthread_pthread_kill=yes
7912 else
7913 ac_cv_lib_pthread_pthread_kill=no
7914 fi
7915 rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917 LIBS=$ac_check_lib_save_LIBS
7918 fi
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; }
7921 if 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*)
7929
7930 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7931
7932 esac
7933
7934 fi
7935
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; }
7940 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 ac_check_lib_save_LIBS=$LIBS
7944 LIBS="-lpthread $LIBS"
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947
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
7952 extern "C"
7953 #endif
7954 char pthread_kill ();
7955 int
7956 main ()
7957 {
7958 return pthread_kill ();
7959 ;
7960 return 0;
7961 }
7962 _ACEOF
7963 if ac_fn_c_try_link "$LINENO"; then :
7964 ac_cv_lib_pthread_pthread_kill=yes
7965 else
7966 ac_cv_lib_pthread_pthread_kill=no
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 LIBS=$ac_check_lib_save_LIBS
7971 fi
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; }
7974 if 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
7978 fi
7979
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; }
7984 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 ac_check_lib_save_LIBS=$LIBS
7988 LIBS="-lc_r $LIBS"
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991
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
7996 extern "C"
7997 #endif
7998 char pthread_kill ();
7999 int
8000 main ()
8001 {
8002 return pthread_kill ();
8003 ;
8004 return 0;
8005 }
8006 _ACEOF
8007 if ac_fn_c_try_link "$LINENO"; then :
8008 ac_cv_lib_c_r_pthread_kill=yes
8009 else
8010 ac_cv_lib_c_r_pthread_kill=no
8011 fi
8012 rm -f core conftest.err conftest.$ac_objext \
8013 conftest$ac_exeext conftest.$ac_ext
8014 LIBS=$ac_check_lib_save_LIBS
8015 fi
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; }
8018 if 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
8022 fi
8023
8024 fi
8025 fi
8026 if test -n "$gl_have_pthread"; then
8027 gl_threads_api=posix
8028
8029 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8030
8031 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8032 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8033
8034 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8035
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
8049 /* end confdefs.h. */
8050
8051 #include <thread.h>
8052 #include <synch.h>
8053
8054 int
8055 main ()
8056 {
8057 thr_self();
8058 ;
8059 return 0;
8060 }
8061 _ACEOF
8062 if ac_fn_c_try_link "$LINENO"; then :
8063 gl_have_solaristhread=yes
8064 fi
8065 rm -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
8085 fi
8086 fi
8087 if test "$gl_use_threads" = pth; then
8088 gl_save_CPPFLAGS="$CPPFLAGS"
8089
8090
8091
8092
8093
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; }
8096 if ${ac_cv_libpth_libs+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098 else
8099
8100
8101
8102
8103
8104
8105
8106
8107 use_additional=yes
8108
8109 acl_save_prefix="$prefix"
8110 prefix="$acl_final_prefix"
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"
8118 prefix="$acl_save_prefix"
8119
8120
8121 # Check whether --with-libpth-prefix was given.
8122 if test "${with_libpth_prefix+set}" = set; then :
8123 withval=$with_libpth_prefix;
8124 if test "X$withval" = "Xno"; then
8125 use_additional=no
8126 else
8127 if test "X$withval" = "X"; then
8128
8129 acl_save_prefix="$prefix"
8130 prefix="$acl_final_prefix"
8131 acl_save_exec_prefix="$exec_prefix"
8132 exec_prefix="$acl_final_exec_prefix"
8133
8134 eval additional_includedir=\"$includedir\"
8135 eval additional_libdir=\"$libdir\"
8136
8137 exec_prefix="$acl_save_exec_prefix"
8138 prefix="$acl_save_prefix"
8139
8140 else
8141 additional_includedir="$withval/include"
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
8147 fi
8148 fi
8149
8150 fi
8151
8152 LIBPTH=
8153 LTLIBPTH=
8154 INCPTH=
8155 LIBPTH_PREFIX=
8156 HAVE_LIBPTH=
8157 rpathdirs=
8158 ltrpathdirs=
8159 names_already_handled=
8160 names_next_round='pth '
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"
8174 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8175 eval value=\"\$HAVE_LIB$uppername\"
8176 if test -n "$value"; then
8177 if test "$value" = yes; then
8178 eval value=\"\$LIB$uppername\"
8179 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8180 eval value=\"\$LTLIB$uppername\"
8181 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8182 else
8183 :
8184 fi
8185 else
8186 found_dir=
8187 found_la=
8188 found_so=
8189 found_a=
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
8196 if test $use_additional = yes; then
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
8222 fi
8223 fi
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
8235 fi
8236 fi
8237 if test "X$found_dir" = "X"; then
8238 for x in $LDFLAGS $LTLIBPTH; do
8239
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//'`
8251 if test -n "$acl_shlibext"; then
8252 if test -f "$dir/$libname$shrext"; then
8253 found_dir="$dir"
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
8275 fi
8276 fi
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
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
8297 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8298 if test "X$found_so" != "X"; then
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"
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
8314 if test "$acl_hardcode_direct" = yes; then
8315 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8316 else
8317 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8318 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
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=
8331 for x in $LDFLAGS $LIBPTH; do
8332
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
8347 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8348 fi
8349 if test "$acl_hardcode_minus_L" != no; then
8350 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8351 else
8352 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8353 fi
8354 fi
8355 fi
8356 fi
8357 else
8358 if test "X$found_a" != "X"; then
8359 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8360 else
8361 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8362 fi
8363 fi
8364 additional_includedir=
8365 case "$found_dir" in
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
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
8387 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8388 esac
8389 fi
8390 fi
8391 if test -z "$haveit"; then
8392 for x in $CPPFLAGS $INCPTH; do
8393
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
8409 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
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//'`
8426 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8427 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8428 haveit=
8429 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8430 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8431 if test -n "$GCC"; then
8432 case $host_os in
8433 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8434 esac
8435 fi
8436 fi
8437 if test -z "$haveit"; then
8438 haveit=
8439 for x in $LDFLAGS $LIBPTH; do
8440
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
8456 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8457 fi
8458 fi
8459 haveit=
8460 for x in $LDFLAGS $LTLIBPTH; do
8461
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
8477 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
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 *)
8515 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8516 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8517 ;;
8518 esac
8519 done
8520 fi
8521 else
8522 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8523 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8524 fi
8525 fi
8526 fi
8527 done
8528 done
8529 if test "X$rpathdirs" != "X"; then
8530 if test -n "$acl_hardcode_libdir_separator"; then
8531 alldirs=
8532 for found_dir in $rpathdirs; do
8533 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8534 done
8535 acl_save_libdir="$libdir"
8536 libdir="$alldirs"
8537 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8538 libdir="$acl_save_libdir"
8539 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8540 else
8541 for found_dir in $rpathdirs; do
8542 acl_save_libdir="$libdir"
8543 libdir="$found_dir"
8544 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8545 libdir="$acl_save_libdir"
8546 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8547 done
8548 fi
8549 fi
8550 if test "X$ltrpathdirs" != "X"; then
8551 for found_dir in $ltrpathdirs; do
8552 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8553 done
8554 fi
8555
8556
8557
8558
8559
8560
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
8566 fi
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>
8609 int
8610 main ()
8611 {
8612 pth_self();
8613 ;
8614 return 0;
8615 }
8616 _ACEOF
8617 if ac_fn_c_try_link "$LINENO"; then :
8618 gl_have_pth=yes
8619 fi
8620 rm -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 "
8682 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8683
8684 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8685
8686 fi
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>
8693 int
8694 main ()
8695 {
8696
8697 #if __FreeBSD__ == 4
8698 error "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)
8701 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8702 #else
8703 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8704 return !x;
8705 #endif
8706
8707 ;
8708 return 0;
8709 }
8710 _ACEOF
8711 if ac_fn_c_try_compile "$LINENO"; then :
8712
8713 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8714
8715 fi
8716 rm -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.
8746 if 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
8774 fi
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; }
9218 if ${am_cv_func_iconv+:} false; then :
9219 $as_echo_n "(cached) " >&6
9220 else
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
9230 int
9231 main ()
9232 {
9233 iconv_t cd = iconv_open("","");
9234 iconv(cd,NULL,NULL,NULL,NULL);
9235 iconv_close(cd);
9236 ;
9237 return 0;
9238 }
9239 _ACEOF
9240 if ac_fn_c_try_link "$LINENO"; then :
9241 am_cv_func_iconv=yes
9242 fi
9243 rm -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
9254 int
9255 main ()
9256 {
9257 iconv_t cd = iconv_open("","");
9258 iconv(cd,NULL,NULL,NULL,NULL);
9259 iconv_close(cd);
9260 ;
9261 return 0;
9262 }
9263 _ACEOF
9264 if ac_fn_c_try_link "$LINENO"; then :
9265 am_cv_lib_iconv=yes
9266 am_cv_func_iconv=yes
9267 fi
9268 rm -f core conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 LIBS="$am_save_LIBS"
9271 fi
9272
9273 fi
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; }
9279 if ${am_cv_func_iconv_works+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281 else
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
9294 else
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9297
9298 #include <iconv.h>
9299 #include <string.h>
9300 int 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
9397 if ac_fn_c_try_run "$LINENO"; then :
9398 am_cv_func_iconv_works=yes
9399 else
9400 am_cv_func_iconv_works=no
9401 fi
9402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9403 conftest.$ac_objext conftest.beam conftest.$ac_ext
9404 fi
9405
9406 LIBS="$am_save_LIBS"
9407
9408 fi
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
9441 else
9442
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9445
9446 #include <stdlib.h>
9447 #include <iconv.h>
9448 extern
9449 #ifdef __cplusplus
9450 "C"
9451 #endif
9452 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9453 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9454 #else
9455 size_t iconv();
9456 #endif
9457
9458 int
9459 main ()
9460 {
9461
9462 ;
9463 return 0;
9464 }
9465 _ACEOF
9466 if ac_fn_c_try_compile "$LINENO"; then :
9467 am_cv_proto_iconv_arg1=""
9468 else
9469 am_cv_proto_iconv_arg1="const"
9470 fi
9471 rm -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);"
9473 fi
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
9481 cat >>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. */
9493 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9494 int
9495 main ()
9496 {
9497
9498 ;
9499 return 0;
9500 }
9501 _ACEOF
9502 if ac_fn_c_try_link "$LINENO"; then :
9503
9504 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9505
9506 fi
9507 rm -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
9511 do :
9512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9514 if 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
9519 fi
9520
9521 done
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
9526 do :
9527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9529 if 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
9534 fi
9535 done
9536
9537
9538 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9539 "
9540 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9541 ac_have_decl=1
9542 else
9543 ac_have_decl=0
9544 fi
9545
9546 cat >>confdefs.h <<_ACEOF
9547 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9548 _ACEOF
9549 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9550 "
9551 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9552 ac_have_decl=1
9553 else
9554 ac_have_decl=0
9555 fi
9556
9557 cat >>confdefs.h <<_ACEOF
9558 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9559 _ACEOF
9560
9561
9562
9563
9564 for ac_prog in bison
9565 do
9566 # Extract the first word of "$ac_prog", so it can be a program name with args.
9567 set 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; }
9570 if ${ac_cv_prog_INTLBISON+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 if test -n "$INTLBISON"; then
9574 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9575 else
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 for as_dir in $PATH
9578 do
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
9587 done
9588 done
9589 IFS=$as_save_IFS
9590
9591 fi
9592 fi
9593 INTLBISON=$ac_cv_prog_INTLBISON
9594 if test -n "$INTLBISON"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9596 $as_echo "$INTLBISON" >&6; }
9597 else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9600 fi
9601
9602
9603 test -n "$INTLBISON" && break
9604 done
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; }
9629 if ${ac_cv_type_long_long_int+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
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 :
9638 else
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
9647 int
9648 main ()
9649 {
9650 long 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
9665 if ac_fn_c_try_run "$LINENO"; then :
9666
9667 else
9668 ac_cv_type_long_long_int=no
9669 fi
9670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9671 conftest.$ac_objext conftest.beam conftest.$ac_ext
9672 fi
9673
9674 fi
9675 fi
9676 fi
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; }
9688 if ${gt_cv_c_wchar_t+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 #include <stddef.h>
9694 wchar_t foo = (wchar_t)'\0';
9695 int
9696 main ()
9697 {
9698
9699 ;
9700 return 0;
9701 }
9702 _ACEOF
9703 if ac_fn_c_try_compile "$LINENO"; then :
9704 gt_cv_c_wchar_t=yes
9705 else
9706 gt_cv_c_wchar_t=no
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 fi
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
9713
9714 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9715
9716 fi
9717
9718
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9720 $as_echo_n "checking for wint_t... " >&6; }
9721 if ${gt_cv_c_wint_t+:} false; then :
9722 $as_echo_n "(cached) " >&6
9723 else
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9726
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';
9736 int
9737 main ()
9738 {
9739
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 if ac_fn_c_try_compile "$LINENO"; then :
9745 gt_cv_c_wint_t=yes
9746 else
9747 gt_cv_c_wint_t=no
9748 fi
9749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9750 fi
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
9754
9755 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9756
9757 fi
9758
9759
9760
9761
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9763 $as_echo_n "checking for intmax_t... " >&6; }
9764 if ${gt_cv_c_intmax_t+:} false; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769
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>
9777 #endif
9778
9779 int
9780 main ()
9781 {
9782 intmax_t x = -1;
9783 return !x;
9784 ;
9785 return 0;
9786 }
9787 _ACEOF
9788 if ac_fn_c_try_compile "$LINENO"; then :
9789 gt_cv_c_intmax_t=yes
9790 else
9791 gt_cv_c_intmax_t=no
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 fi
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
9801 fi
9802
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; }
9807 if ${gt_cv_func_printf_posix+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
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
9821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9822 $EGREP "notposix" >/dev/null 2>&1; then :
9823 gt_cv_func_printf_posix="guessing no"
9824 else
9825 gt_cv_func_printf_posix="guessing yes"
9826 fi
9827 rm -f conftest*
9828
9829
9830 else
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). */
9838 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9839 static char buf[100];
9840 int main ()
9841 {
9842 sprintf (buf, format, 33, 55);
9843 return (strcmp (buf, "55 33") != 0);
9844 }
9845 _ACEOF
9846 if ac_fn_c_try_run "$LINENO"; then :
9847 gt_cv_func_printf_posix=yes
9848 else
9849 gt_cv_func_printf_posix=no
9850 fi
9851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9852 conftest.$ac_objext conftest.beam conftest.$ac_ext
9853 fi
9854
9855
9856 fi
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; }
9870 if ${ac_cv_gnu_library_2_1+:} false; then :
9871 $as_echo_n "(cached) " >&6
9872 else
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
9887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9888 $EGREP "Lucky" >/dev/null 2>&1; then :
9889 ac_cv_gnu_library_2_1=yes
9890 else
9891 ac_cv_gnu_library_2_1=no
9892 fi
9893 rm -f conftest*
9894
9895
9896
9897 fi
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
9906 do :
9907 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9908 if test "x$ac_cv_header_stdint_h" = xyes; then :
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_STDINT_H 1
9911 _ACEOF
9912
9913 fi
9914
9915 done
9916
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9918 $as_echo_n "checking for SIZE_MAX... " >&6; }
9919 if ${gl_cv_size_max+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
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
9932 Found it
9933 #endif
9934
9935 _ACEOF
9936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9937 $EGREP "Found it" >/dev/null 2>&1; then :
9938 gl_cv_size_max=yes
9939 fi
9940 rm -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
9946 else
9947 size_t_bits_minus_1=
9948 fi
9949
9950 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9951
9952 else
9953 fits_in_uint=
9954 fi
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
9959 /* end confdefs.h. */
9960 #include <stddef.h>
9961 extern size_t foo;
9962 extern unsigned long foo;
9963
9964 int
9965 main ()
9966 {
9967
9968 ;
9969 return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_compile "$LINENO"; then :
9973 fits_in_uint=0
9974 fi
9975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
9987 fi
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
9991
9992 cat >>confdefs.h <<_ACEOF
9993 #define SIZE_MAX $gl_cv_size_max
9994 _ACEOF
9995
9996 fi
9997
9998
9999
10000
10001 for ac_header in stdint.h
10002 do :
10003 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10004 if test "x$ac_cv_header_stdint_h" = xyes; then :
10005 cat >>confdefs.h <<_ACEOF
10006 #define HAVE_STDINT_H 1
10007 _ACEOF
10008
10009 fi
10010
10011 done
10012
10013
10014
10015
10016
10017 for ac_func in $ac_func_list
10018 do :
10019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10021 if 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
10024 _ACEOF
10025
10026 fi
10027 done
10028
10029
10030
10031
10032
10033
10034
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; }
10038 if ${gl_cv_header_working_fcntl_h+:} false; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041 if test "$cross_compiling" = yes; then :
10042 gl_cv_header_working_fcntl_h=cross-compiling
10043 else
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
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
10068 int
10069 main ()
10070 {
10071
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;
10135 ;
10136 return 0;
10137 }
10138 _ACEOF
10139 if ac_fn_c_try_run "$LINENO"; then :
10140 gl_cv_header_working_fcntl_h=yes
10141 else
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
10148 fi
10149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10150 conftest.$ac_objext conftest.beam conftest.$ac_ext
10151 fi
10152
10153 fi
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; }
10156
10157 case $gl_cv_header_working_fcntl_h in #(
10158 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10159 *) ac_val=1;;
10160 esac
10161
10162 cat >>confdefs.h <<_ACEOF
10163 #define HAVE_WORKING_O_NOATIME $ac_val
10164 _ACEOF
10165
10166
10167 case $gl_cv_header_working_fcntl_h in #(
10168 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10169 *) ac_val=1;;
10170 esac
10171
10172 cat >>confdefs.h <<_ACEOF
10173 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10174 _ACEOF
10175
10176
10177
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10179 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10180 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 gt_save_LIBS="$LIBS"
10184 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187 #include <CoreFoundation/CFPreferences.h>
10188 int
10189 main ()
10190 {
10191 CFPreferencesCopyAppValue(NULL, NULL)
10192 ;
10193 return 0;
10194 }
10195 _ACEOF
10196 if ac_fn_c_try_link "$LINENO"; then :
10197 gt_cv_func_CFPreferencesCopyAppValue=yes
10198 else
10199 gt_cv_func_CFPreferencesCopyAppValue=no
10200 fi
10201 rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203 LIBS="$gt_save_LIBS"
10204 fi
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; }
10214 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 gt_save_LIBS="$LIBS"
10218 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221 #include <CoreFoundation/CFLocale.h>
10222 int
10223 main ()
10224 {
10225 CFLocaleCopyCurrent();
10226 ;
10227 return 0;
10228 }
10229 _ACEOF
10230 if ac_fn_c_try_link "$LINENO"; then :
10231 gt_cv_func_CFLocaleCopyCurrent=yes
10232 else
10233 gt_cv_func_CFLocaleCopyCurrent=no
10234 fi
10235 rm -f core conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
10237 LIBS="$gt_save_LIBS"
10238 fi
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
10242
10243 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10244
10245 fi
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"
10249 fi
10250
10251
10252
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"
10268 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10269
10270 else
10271
10272 $as_echo "#define ptrdiff_t long" >>confdefs.h
10273
10274
10275 fi
10276
10277 for ac_header in features.h stddef.h stdlib.h string.h
10278 do :
10279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10280 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10281 if 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
10286 fi
10287
10288 done
10289
10290 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10291 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10292 do :
10293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10294 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10295 if 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
10298 _ACEOF
10299
10300 fi
10301 done
10302
10303
10304 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10305 "
10306 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10307 ac_have_decl=1
10308 else
10309 ac_have_decl=0
10310 fi
10311
10312 cat >>confdefs.h <<_ACEOF
10313 #define HAVE_DECL__SNPRINTF $ac_have_decl
10314 _ACEOF
10315 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10316 "
10317 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10318 ac_have_decl=1
10319 else
10320 ac_have_decl=0
10321 fi
10322
10323 cat >>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 "
10330 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10331 ac_have_decl=1
10332 else
10333 ac_have_decl=0
10334 fi
10335
10336 cat >>confdefs.h <<_ACEOF
10337 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10338 _ACEOF
10339
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
10368 fi
10369
10370
10371
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; }
10374 if ${am_cv_langinfo_codeset+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 #include <langinfo.h>
10380 int
10381 main ()
10382 {
10383 char* cs = nl_langinfo(CODESET); return !cs;
10384 ;
10385 return 0;
10386 }
10387 _ACEOF
10388 if ac_fn_c_try_link "$LINENO"; then :
10389 am_cv_langinfo_codeset=yes
10390 else
10391 am_cv_langinfo_codeset=no
10392 fi
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395
10396 fi
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
10400
10401 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10402
10403 fi
10404
10405
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10407 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10408 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 #include <locale.h>
10414 int
10415 main ()
10416 {
10417 return LC_MESSAGES
10418 ;
10419 return 0;
10420 }
10421 _ACEOF
10422 if ac_fn_c_try_link "$LINENO"; then :
10423 gt_cv_val_LC_MESSAGES=yes
10424 else
10425 gt_cv_val_LC_MESSAGES=no
10426 fi
10427 rm -f core conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext conftest.$ac_ext
10429 fi
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
10433
10434 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10435
10436 fi
10437
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
10446 fi
10447 WOE32DLL=$is_woe32dll
10448
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.
10459 set dummy ${ac_tool_prefix}windres; ac_word=$2
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461 $as_echo_n "checking for $ac_word... " >&6; }
10462 if ${ac_cv_prog_WINDRES+:} false; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 if test -n "$WINDRES"; then
10466 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10467 else
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $PATH
10470 do
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10475 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10477 break 2
10478 fi
10479 done
10480 done
10481 IFS=$as_save_IFS
10482
10483 fi
10484 fi
10485 WINDRES=$ac_cv_prog_WINDRES
10486 if test -n "$WINDRES"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10488 $as_echo "$WINDRES" >&6; }
10489 else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10492 fi
10493
10494
10495 fi
10496 if 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.
10499 set 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; }
10502 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 if test -n "$ac_ct_WINDRES"; then
10506 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10507 else
10508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509 for as_dir in $PATH
10510 do
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
10519 done
10520 done
10521 IFS=$as_save_IFS
10522
10523 fi
10524 fi
10525 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10526 if 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; }
10529 else
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531 $as_echo "no" >&6; }
10532 fi
10533
10534 if test "x$ac_ct_WINDRES" = x; then
10535 WINDRES=""
10536 else
10537 case $cross_compiling:$ac_tool_warned in
10538 yes:)
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;}
10541 ac_tool_warned=yes ;;
10542 esac
10543 WINDRES=$ac_ct_WINDRES
10544 fi
10545 else
10546 WINDRES="$ac_cv_prog_WINDRES"
10547 fi
10548
10549 fi
10550
10551 case "$host_os" in
10552 hpux*) LTLIBC="" ;;
10553 *) LTLIBC="-lc" ;;
10554 esac
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
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; }
10584 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586 else
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>
10592 int
10593 main ()
10594 {
10595 CFPreferencesCopyAppValue(NULL, NULL)
10596 ;
10597 return 0;
10598 }
10599 _ACEOF
10600 if ac_fn_c_try_link "$LINENO"; then :
10601 gt_cv_func_CFPreferencesCopyAppValue=yes
10602 else
10603 gt_cv_func_CFPreferencesCopyAppValue=no
10604 fi
10605 rm -f core conftest.err conftest.$ac_objext \
10606 conftest$ac_exeext conftest.$ac_ext
10607 LIBS="$gt_save_LIBS"
10608 fi
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; }
10618 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10619 $as_echo_n "(cached) " >&6
10620 else
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>
10626 int
10627 main ()
10628 {
10629 CFLocaleCopyCurrent();
10630 ;
10631 return 0;
10632 }
10633 _ACEOF
10634 if ac_fn_c_try_link "$LINENO"; then :
10635 gt_cv_func_CFLocaleCopyCurrent=yes
10636 else
10637 gt_cv_func_CFLocaleCopyCurrent=no
10638 fi
10639 rm -f core conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10641 LIBS="$gt_save_LIBS"
10642 fi
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
10655
10656
10657
10658
10659
10660 BUILD_INCLUDED_LIBINTL=no
10661 USE_INCLUDED_LIBINTL=no
10662
10663 LIBINTL=
10664 LTLIBINTL=
10665 POSUB=
10666
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
10675 if test "$USE_NLS" = "yes"; then
10676 gt_use_preinstalled_gnugettext=no
10677
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; }
10680
10681 # Check whether --with-included-gettext was given.
10682 if test "${with_included_gettext+set}" = set; then :
10683 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10684 else
10685 nls_cv_force_use_gnu_gettext=no
10686 fi
10687
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; }
10690
10691 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10692 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10693
10694
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
10700 typedef 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
10710
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; }
10713 if eval \${$gt_func_gnugettext_libc+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718
10719 #include <libintl.h>
10720 $gt_revision_test_code
10721 extern int _nl_msg_cat_cntr;
10722 extern int *_nl_domain_bindings;
10723
10724 int
10725 main ()
10726 {
10727
10728 bindtextdomain ("", "");
10729 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10730
10731 ;
10732 return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"; then :
10736 eval "$gt_func_gnugettext_libc=yes"
10737 else
10738 eval "$gt_func_gnugettext_libc=no"
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 fi
10743 eval 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
10752
10753
10754
10755
10756 use_additional=yes
10757
10758 acl_save_prefix="$prefix"
10759 prefix="$acl_final_prefix"
10760 acl_save_exec_prefix="$exec_prefix"
10761 exec_prefix="$acl_final_exec_prefix"
10762
10763 eval additional_includedir=\"$includedir\"
10764 eval additional_libdir=\"$libdir\"
10765
10766 exec_prefix="$acl_save_exec_prefix"
10767 prefix="$acl_save_prefix"
10768
10769
10770 # Check whether --with-libintl-prefix was given.
10771 if 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
10777
10778 acl_save_prefix="$prefix"
10779 prefix="$acl_final_prefix"
10780 acl_save_exec_prefix="$exec_prefix"
10781 exec_prefix="$acl_final_exec_prefix"
10782
10783 eval additional_includedir=\"$includedir\"
10784 eval additional_libdir=\"$libdir\"
10785
10786 exec_prefix="$acl_save_exec_prefix"
10787 prefix="$acl_save_prefix"
10788
10789 else
10790 additional_includedir="$withval/include"
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
10796 fi
10797 fi
10798
10799 fi
10800
10801 LIBINTL=
10802 LTLIBINTL=
10803 INCINTL=
10804 LIBINTL_PREFIX=
10805 HAVE_LIBINTL=
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
10820 done
10821 if test -z "$already_handled"; then
10822 names_already_handled="$names_already_handled $name"
10823 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
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=
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
10845 if test $use_additional = yes; then
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
10871 fi
10872 fi
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
10884 fi
10885 fi
10886 if test "X$found_dir" = "X"; then
10887 for x in $LDFLAGS $LTLIBINTL; do
10888
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"
10896
10897 case "$x" in
10898 -L*)
10899 dir=`echo "X$x" | sed -e 's/^X-L//'`
10900 if test -n "$acl_shlibext"; then
10901 if test -f "$dir/$libname$shrext"; then
10902 found_dir="$dir"
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
10924 fi
10925 fi
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
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
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
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
10963 if test "$acl_hardcode_direct" = yes; then
10964 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10965 else
10966 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
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
10981
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"
10989
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
10998 if test "$acl_hardcode_minus_L" != no; then
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
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
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
11036 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11037 esac
11038 fi
11039 fi
11040 if test -z "$haveit"; then
11041 for x in $CPPFLAGS $INCINTL; do
11042
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"
11050
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//'`
11075 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11076 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11077 haveit=
11078 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11079 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11080 if test -n "$GCC"; then
11081 case $host_os in
11082 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11083 esac
11084 fi
11085 fi
11086 if test -z "$haveit"; then
11087 haveit=
11088 for x in $LDFLAGS $LIBINTL; do
11089
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"
11097
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
11110
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"
11118
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
11179 if test -n "$acl_hardcode_libdir_separator"; then
11180 alldirs=
11181 for found_dir in $rpathdirs; do
11182 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11183 done
11184 acl_save_libdir="$libdir"
11185 libdir="$alldirs"
11186 eval flag=\"$acl_hardcode_libdir_flag_spec\"
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"
11193 eval flag=\"$acl_hardcode_libdir_flag_spec\"
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
11204
11205
11206
11207
11208
11209
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; }
11212 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11213 $as_echo_n "(cached) " >&6
11214 else
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. */
11221
11222 #include <libintl.h>
11223 $gt_revision_test_code
11224 extern int _nl_msg_cat_cntr;
11225 extern
11226 #ifdef __cplusplus
11227 "C"
11228 #endif
11229 const char *_nl_expand_alias (const char *);
11230
11231 int
11232 main ()
11233 {
11234
11235 bindtextdomain ("", "");
11236 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11237
11238 ;
11239 return 0;
11240 }
11241 _ACEOF
11242 if ac_fn_c_try_link "$LINENO"; then :
11243 eval "$gt_func_gnugettext_libintl=yes"
11244 else
11245 eval "$gt_func_gnugettext_libintl=no"
11246 fi
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11249 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11250 LIBS="$LIBS $LIBICONV"
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11253
11254 #include <libintl.h>
11255 $gt_revision_test_code
11256 extern int _nl_msg_cat_cntr;
11257 extern
11258 #ifdef __cplusplus
11259 "C"
11260 #endif
11261 const char *_nl_expand_alias (const char *);
11262
11263 int
11264 main ()
11265 {
11266
11267 bindtextdomain ("", "");
11268 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11269
11270 ;
11271 return 0;
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 LIBINTL="$LIBINTL $LIBICONV"
11276 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11277 eval "$gt_func_gnugettext_libintl=yes"
11278
11279 fi
11280 rm -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"
11285 fi
11286 eval ac_res=\$$gt_func_gnugettext_libintl
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11288 $as_echo "$ac_res" >&6; }
11289 fi
11290
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"; } \
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
11301
11302
11303 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11304 nls_cv_use_gnu_gettext=yes
11305 fi
11306 fi
11307
11308 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11309 BUILD_INCLUDED_LIBINTL=yes
11310 USE_INCLUDED_LIBINTL=yes
11311 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11312 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11313 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11314 fi
11315
11316 CATOBJEXT=
11317 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11318 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11319 CATOBJEXT=.gmo
11320 fi
11321
11322
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
11331 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11332 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11333
11334 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11335
11336 else
11337 USE_NLS=no
11338 fi
11339 fi
11340
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
11349 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
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
11360
11361 if test "$USE_NLS" = "yes"; then
11362
11363 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11364 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
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; }
11369
11370 for element in $INCINTL; do
11371 haveit=
11372 for x in $CPPFLAGS; do
11373
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"
11381
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
11391
11392 fi
11393
11394
11395 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11396
11397
11398 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11399
11400 fi
11401
11402 POSUB=po
11403 fi
11404
11405
11406 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11407 BUILD_INCLUDED_LIBINTL=yes
11408 fi
11409
11410
11411
11412
11413
11414 nls_cv_header_intl=
11415 nls_cv_header_libgt=
11416
11417 DATADIRNAME=share
11418
11419
11420 INSTOBJEXT=.mo
11421
11422
11423 GENCAT=gencat
11424
11425
11426 INTLOBJS=
11427 if test "$USE_INCLUDED_LIBINTL" = yes; then
11428 INTLOBJS="\$(GETTOBJS)"
11429 fi
11430
11431
11432 INTL_LIBTOOL_SUFFIX_PREFIX=
11433
11434
11435
11436 INTLLIBS="$LIBINTL"
11437
11438
11439
11440
11441
11442
11443
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; }
11446 set x ${MAKE-make}
11447 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11448 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11449 $as_echo_n "(cached) " >&6
11450 else
11451 cat >conftest.make <<\_ACEOF
11452 SHELL = /bin/sh
11453 all:
11454 @echo '@@@%%%=$(MAKE)=@@@%%%'
11455 _ACEOF
11456 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11457 case `${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;;
11462 esac
11463 rm -f conftest.make
11464 fi
11465 if 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=
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11472 SET_MAKE="MAKE=${MAKE-make}"
11473 fi
11474
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11476 $as_echo_n "checking for GNU make... " >&6; }
11477 if ${_cv_gnu_make_command+:} false; then :
11478 $as_echo_n "(cached) " >&6
11479 else
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 ;
11488
11489 fi
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
11501
11502
11503
11504 # Extract the first word of "ln", so it can be a program name with args.
11505 set 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; }
11508 if ${ac_cv_path_LN+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510 else
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
11517 for as_dir in $PATH
11518 do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
11527 done
11528 done
11529 IFS=$as_save_IFS
11530
11531 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11532 ;;
11533 esac
11534 fi
11535 LN=$ac_cv_path_LN
11536 if test -n "$LN"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11538 $as_echo "$LN" >&6; }
11539 else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11542 fi
11543
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11546 $as_echo_n "checking whether ln -s works... " >&6; }
11547 LN_S=$as_ln_s
11548 if test "$LN_S" = "ln -s"; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550 $as_echo "yes" >&6; }
11551 else
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11553 $as_echo "no, using $LN_S" >&6; }
11554 fi
11555
11556 # Extract the first word of "mv", so it can be a program name with args.
11557 set 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; }
11560 if ${ac_cv_path_MV+:} false; then :
11561 $as_echo_n "(cached) " >&6
11562 else
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
11569 for as_dir in $PATH
11570 do
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
11579 done
11580 done
11581 IFS=$as_save_IFS
11582
11583 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11584 ;;
11585 esac
11586 fi
11587 MV=$ac_cv_path_MV
11588 if test -n "$MV"; then
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11590 $as_echo "$MV" >&6; }
11591 else
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593 $as_echo "no" >&6; }
11594 fi
11595
11596
11597 # Extract the first word of "cp", so it can be a program name with args.
11598 set 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; }
11601 if ${ac_cv_path_CP+:} false; then :
11602 $as_echo_n "(cached) " >&6
11603 else
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
11610 for as_dir in $PATH
11611 do
11612 IFS=$as_save_IFS
11613 test -z "$as_dir" && as_dir=.
11614 for ac_exec_ext in '' $ac_executable_extensions; do
11615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
11620 done
11621 done
11622 IFS=$as_save_IFS
11623
11624 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11625 ;;
11626 esac
11627 fi
11628 CP=$ac_cv_path_CP
11629 if test -n "$CP"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11631 $as_echo "$CP" >&6; }
11632 else
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11635 fi
11636
11637
11638 # Extract the first word of "rm", so it can be a program name with args.
11639 set 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; }
11642 if ${ac_cv_path_RM+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644 else
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
11651 for as_dir in $PATH
11652 do
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
11661 done
11662 done
11663 IFS=$as_save_IFS
11664
11665 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11666 ;;
11667 esac
11668 fi
11669 RM=$ac_cv_path_RM
11670 if test -n "$RM"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11672 $as_echo "$RM" >&6; }
11673 else
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11676 fi
11677
11678
11679 # Extract the first word of "chmod", so it can be a program name with args.
11680 set 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; }
11683 if ${ac_cv_path_CHMOD+:} false; then :
11684 $as_echo_n "(cached) " >&6
11685 else
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
11692 for as_dir in $PATH
11693 do
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
11702 done
11703 done
11704 IFS=$as_save_IFS
11705
11706 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11707 ;;
11708 esac
11709 fi
11710 CHMOD=$ac_cv_path_CHMOD
11711 if test -n "$CHMOD"; then
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11713 $as_echo "$CHMOD" >&6; }
11714 else
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 $as_echo "no" >&6; }
11717 fi
11718
11719
11720 for ac_prog in gawk mawk nawk awk
11721 do
11722 # Extract the first word of "$ac_prog", so it can be a program name with args.
11723 set 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; }
11726 if ${ac_cv_prog_AWK+:} false; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 if test -n "$AWK"; then
11730 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11731 else
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11734 do
11735 IFS=$as_save_IFS
11736 test -z "$as_dir" && as_dir=.
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
11743 done
11744 done
11745 IFS=$as_save_IFS
11746
11747 fi
11748 fi
11749 AWK=$ac_cv_prog_AWK
11750 if test -n "$AWK"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11752 $as_echo "$AWK" >&6; }
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11756 fi
11757
11758
11759 test -n "$AWK" && break
11760 done
11761
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11763 $as_echo_n "checking for egrep... " >&6; }
11764 if ${ac_cv_path_EGREP+:} false; then :
11765 $as_echo_n "(cached) " >&6
11766 else
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
11774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11775 do
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"
11781 as_fn_executable_p "$ac_path_EGREP" || continue
11782 # Check for GNU ac_path_EGREP and select it if it is found.
11783 # Check for GNU $ac_path_EGREP
11784 case `"$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;;
11808 esac
11809
11810 $ac_path_EGREP_found && break 3
11811 done
11812 done
11813 done
11814 IFS=$as_save_IFS
11815 if test -z "$ac_cv_path_EGREP"; then
11816 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11817 fi
11818 else
11819 ac_cv_path_EGREP=$EGREP
11820 fi
11821
11822 fi
11823 fi
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"
11827
11828
11829 # Extract the first word of "sed", so it can be a program name with args.
11830 set 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; }
11833 if ${ac_cv_path_SED+:} false; then :
11834 $as_echo_n "(cached) " >&6
11835 else
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
11842 for as_dir in $PATH
11843 do
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
11852 done
11853 done
11854 IFS=$as_save_IFS
11855
11856 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11857 ;;
11858 esac
11859 fi
11860 SED=$ac_cv_path_SED
11861 if test -n "$SED"; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11863 $as_echo "$SED" >&6; }
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11867 fi
11868
11869
11870 # Extract the first word of "perl", so it can be a program name with args.
11871 set 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; }
11874 if ${ac_cv_path_PERL+:} false; then :
11875 $as_echo_n "(cached) " >&6
11876 else
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
11883 for as_dir in $PATH
11884 do
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
11893 done
11894 done
11895 IFS=$as_save_IFS
11896
11897 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11898 ;;
11899 esac
11900 fi
11901 PERL=$ac_cv_path_PERL
11902 if test -n "$PERL"; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11904 $as_echo "$PERL" >&6; }
11905 else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11908 fi
11909
11910
11911 # Extract the first word of "ldconfig", so it can be a program name with args.
11912 set 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; }
11915 if ${ac_cv_path_LDCONFIG+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
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
11924 for as_dir in $PATH
11925 do
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
11929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
11934 done
11935 done
11936 IFS=$as_save_IFS
11937
11938 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11939 ;;
11940 esac
11941 fi
11942 LDCONFIG=$ac_cv_path_LDCONFIG
11943 if test -n "$LDCONFIG"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11945 $as_echo "$LDCONFIG" >&6; }
11946 else
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11949 fi
11950
11951
11952 if 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.
11954 set 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; }
11957 if ${ac_cv_prog_AR+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 if test -n "$AR"; then
11961 ac_cv_prog_AR="$AR" # Let the user override the test.
11962 else
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11965 do
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
11974 done
11975 done
11976 IFS=$as_save_IFS
11977
11978 fi
11979 fi
11980 AR=$ac_cv_prog_AR
11981 if test -n "$AR"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11983 $as_echo "$AR" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987 fi
11988
11989
11990 fi
11991 if 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.
11994 set 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; }
11997 if ${ac_cv_prog_ac_ct_AR+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 if test -n "$ac_ct_AR"; then
12001 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12002 else
12003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12005 do
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
12014 done
12015 done
12016 IFS=$as_save_IFS
12017
12018 fi
12019 fi
12020 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12021 if 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; }
12024 else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12027 fi
12028
12029 if test "x$ac_ct_AR" = x; then
12030 AR="ar"
12031 else
12032 case $cross_compiling:$ac_tool_warned in
12033 yes:)
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;}
12036 ac_tool_warned=yes ;;
12037 esac
12038 AR=$ac_ct_AR
12039 fi
12040 else
12041 AR="$ac_cv_prog_AR"
12042 fi
12043
12044 if 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.
12046 set 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; }
12049 if ${ac_cv_prog_RANLIB+:} false; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 if test -n "$RANLIB"; then
12053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12054 else
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $PATH
12057 do
12058 IFS=$as_save_IFS
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
12061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
12066 done
12067 done
12068 IFS=$as_save_IFS
12069
12070 fi
12071 fi
12072 RANLIB=$ac_cv_prog_RANLIB
12073 if test -n "$RANLIB"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12075 $as_echo "$RANLIB" >&6; }
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12079 fi
12080
12081
12082 fi
12083 if 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.
12086 set 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; }
12089 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 if test -n "$ac_ct_RANLIB"; then
12093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12094 else
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12097 do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
12106 done
12107 done
12108 IFS=$as_save_IFS
12109
12110 fi
12111 fi
12112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12113 if 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; }
12116 else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12119 fi
12120
12121 if test "x$ac_ct_RANLIB" = x; then
12122 RANLIB=":"
12123 else
12124 case $cross_compiling:$ac_tool_warned in
12125 yes:)
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;}
12128 ac_tool_warned=yes ;;
12129 esac
12130 RANLIB=$ac_ct_RANLIB
12131 fi
12132 else
12133 RANLIB="$ac_cv_prog_RANLIB"
12134 fi
12135
12136 if 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.
12138 set 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; }
12141 if ${ac_cv_prog_STRIP+:} false; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 if test -n "$STRIP"; then
12145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12146 else
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12149 do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
12158 done
12159 done
12160 IFS=$as_save_IFS
12161
12162 fi
12163 fi
12164 STRIP=$ac_cv_prog_STRIP
12165 if test -n "$STRIP"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12167 $as_echo "$STRIP" >&6; }
12168 else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12171 fi
12172
12173
12174 fi
12175 if 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.
12178 set 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; }
12181 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 if test -n "$ac_ct_STRIP"; then
12185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12186 else
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
12198 done
12199 done
12200 IFS=$as_save_IFS
12201
12202 fi
12203 fi
12204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12205 if 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; }
12208 else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12211 fi
12212
12213 if test "x$ac_ct_STRIP" = x; then
12214 STRIP=":"
12215 else
12216 case $cross_compiling:$ac_tool_warned in
12217 yes:)
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;}
12220 ac_tool_warned=yes ;;
12221 esac
12222 STRIP=$ac_ct_STRIP
12223 fi
12224 else
12225 STRIP="$ac_cv_prog_STRIP"
12226 fi
12227
12228 # Extract the first word of "makeinfo", so it can be a program name with args.
12229 set 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; }
12232 if ${ac_cv_prog_MAKEINFO+:} false; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 if test -n "$MAKEINFO"; then
12236 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12237 else
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12240 do
12241 IFS=$as_save_IFS
12242 test -z "$as_dir" && as_dir=.
12243 for ac_exec_ext in '' $ac_executable_extensions; do
12244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
12249 done
12250 done
12251 IFS=$as_save_IFS
12252
12253 fi
12254 fi
12255 MAKEINFO=$ac_cv_prog_MAKEINFO
12256 if test -n "$MAKEINFO"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12258 $as_echo "$MAKEINFO" >&6; }
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12262 fi
12263
12264
12265 if test "_$MAKEINFO" = "_"; then
12266 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12267 else
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
12278 fi
12279
12280
12281 # See if we need a separate native compiler.
12282 if test $cross_compiling = no; then
12283 BUILD_CC="$CC"
12284
12285 else
12286 for ac_prog in gcc cc
12287 do
12288 # Extract the first word of "$ac_prog", so it can be a program name with args.
12289 set 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; }
12292 if ${ac_cv_prog_BUILD_CC+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 if test -n "$BUILD_CC"; then
12296 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12297 else
12298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299 for as_dir in $PATH
12300 do
12301 IFS=$as_save_IFS
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
12309 done
12310 done
12311 IFS=$as_save_IFS
12312
12313 fi
12314 fi
12315 BUILD_CC=$ac_cv_prog_BUILD_CC
12316 if test -n "$BUILD_CC"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12318 $as_echo "$BUILD_CC" >&6; }
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12322 fi
12323
12324
12325 test -n "$BUILD_CC" && break
12326 done
12327
12328 fi
12329 for 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
12330 do :
12331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12332 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12333 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12334 cat >>confdefs.h <<_ACEOF
12335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12336 _ACEOF
12337
12338 fi
12339
12340 done
12341
12342 for ac_header in net/if.h
12343 do :
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
12351
12352 "
12353 if test "x$ac_cv_header_net_if_h" = xyes; then :
12354 cat >>confdefs.h <<_ACEOF
12355 #define HAVE_NET_IF_H 1
12356 _ACEOF
12357
12358 fi
12359
12360 done
12361
12362 for ac_func in vprintf
12363 do :
12364 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12365 if test "x$ac_cv_func_vprintf" = xyes; then :
12366 cat >>confdefs.h <<_ACEOF
12367 #define HAVE_VPRINTF 1
12368 _ACEOF
12369
12370 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12371 if test "x$ac_cv_func__doprnt" = xyes; then :
12372
12373 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12374
12375 fi
12376
12377 fi
12378 done
12379
12380
12381 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12382 "
12383 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12384
12385 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12386
12387 fi
12388
12389 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12390 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12391
12392 cat >>confdefs.h <<_ACEOF
12393 #define HAVE_STRUCT_STAT_ST_ATIM 1
12394 _ACEOF
12395
12396
12397 fi
12398
12399 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12400 "
12401 if test "x$ac_cv_type_ssize_t" = xyes; then :
12402
12403 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12404
12405 fi
12406
12407 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12408 "
12409 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12410
12411 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12412
12413 fi
12414
12415 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12416 #define _LARGEFILE64_SOURCE
12417 #include <unistd.h>
12418 "
12419 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12420
12421 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12422
12423 fi
12424
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; }
12431 if ${ac_cv_sizeof_short+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12435
12436 else
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;}
12440 as_fn_error 77 "cannot compute sizeof (short)
12441 See \`config.log' for more details" "$LINENO" 5; }
12442 else
12443 ac_cv_sizeof_short=0
12444 fi
12445 fi
12446
12447 fi
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12449 $as_echo "$ac_cv_sizeof_short" >&6; }
12450
12451
12452
12453 cat >>confdefs.h <<_ACEOF
12454 #define SIZEOF_SHORT $ac_cv_sizeof_short
12455 _ACEOF
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; }
12464 if ${ac_cv_sizeof_int+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12468
12469 else
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;}
12473 as_fn_error 77 "cannot compute sizeof (int)
12474 See \`config.log' for more details" "$LINENO" 5; }
12475 else
12476 ac_cv_sizeof_int=0
12477 fi
12478 fi
12479
12480 fi
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12482 $as_echo "$ac_cv_sizeof_int" >&6; }
12483
12484
12485
12486 cat >>confdefs.h <<_ACEOF
12487 #define SIZEOF_INT $ac_cv_sizeof_int
12488 _ACEOF
12489
12490
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; }
12497 if ${ac_cv_sizeof_long+:} false; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12501
12502 else
12503 if test "$ac_cv_type_long" = yes; then
12504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12506 as_fn_error 77 "cannot compute sizeof (long)
12507 See \`config.log' for more details" "$LINENO" 5; }
12508 else
12509 ac_cv_sizeof_long=0
12510 fi
12511 fi
12512
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12515 $as_echo "$ac_cv_sizeof_long" >&6; }
12516
12517
12518
12519 cat >>confdefs.h <<_ACEOF
12520 #define SIZEOF_LONG $ac_cv_sizeof_long
12521 _ACEOF
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; }
12530 if ${ac_cv_sizeof_long_long+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12534
12535 else
12536 if test "$ac_cv_type_long_long" = yes; then
12537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12539 as_fn_error 77 "cannot compute sizeof (long long)
12540 See \`config.log' for more details" "$LINENO" 5; }
12541 else
12542 ac_cv_sizeof_long_long=0
12543 fi
12544 fi
12545
12546 fi
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12548 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12549
12550
12551
12552 cat >>confdefs.h <<_ACEOF
12553 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12554 _ACEOF
12555
12556
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; }
12563 if ${ac_cv_sizeof_off_t+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12567
12568 else
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;}
12572 as_fn_error 77 "cannot compute sizeof (off_t)
12573 See \`config.log' for more details" "$LINENO" 5; }
12574 else
12575 ac_cv_sizeof_off_t=0
12576 fi
12577 fi
12578
12579 fi
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
12585 cat >>confdefs.h <<_ACEOF
12586 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12587 _ACEOF
12588
12589
12590 SIZEOF_SHORT=$ac_cv_sizeof_short
12591 SIZEOF_INT=$ac_cv_sizeof_int
12592 SIZEOF_LONG=$ac_cv_sizeof_long
12593 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12594 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12595
12596
12597
12598
12599
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12601 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12602 if ${ac_cv_c_bigendian+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 ac_cv_c_bigendian=unknown
12606 # See if we're dealing with a universal compiler.
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12609 #ifndef __APPLE_CC__
12610 not a universal capable compiler
12611 #endif
12612 typedef int dummy;
12613
12614 _ACEOF
12615 if ac_fn_c_try_compile "$LINENO"; then :
12616
12617 # Check for potential -arch flags. It is not universal unless
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
12638 fi
12639 rm -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.
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12644 #include <sys/types.h>
12645 #include <sys/param.h>
12646
12647 int
12648 main ()
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
12660 if ac_fn_c_try_compile "$LINENO"; then :
12661 # It does; now see whether it defined to BIG_ENDIAN or not.
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12664 #include <sys/types.h>
12665 #include <sys/param.h>
12666
12667 int
12668 main ()
12669 {
12670 #if BYTE_ORDER != BIG_ENDIAN
12671 not big endian
12672 #endif
12673
12674 ;
12675 return 0;
12676 }
12677 _ACEOF
12678 if ac_fn_c_try_compile "$LINENO"; then :
12679 ac_cv_c_bigendian=yes
12680 else
12681 ac_cv_c_bigendian=no
12682 fi
12683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12684 fi
12685 rm -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).
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12691 #include <limits.h>
12692
12693 int
12694 main ()
12695 {
12696 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12697 bogus endian macros
12698 #endif
12699
12700 ;
12701 return 0;
12702 }
12703 _ACEOF
12704 if 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
12707 /* end confdefs.h. */
12708 #include <limits.h>
12709
12710 int
12711 main ()
12712 {
12713 #ifndef _BIG_ENDIAN
12714 not big endian
12715 #endif
12716
12717 ;
12718 return 0;
12719 }
12720 _ACEOF
12721 if ac_fn_c_try_compile "$LINENO"; then :
12722 ac_cv_c_bigendian=yes
12723 else
12724 ac_cv_c_bigendian=no
12725 fi
12726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12727 fi
12728 rm -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.
12732 if test "$cross_compiling" = yes; then :
12733 # Try to guess by grepping values from an object file.
12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735 /* end confdefs.h. */
12736 short 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
12752 int
12753 main ()
12754 {
12755 return use_ascii (foo) == use_ebcdic (foo);
12756 ;
12757 return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_c_try_compile "$LINENO"; then :
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
12772 fi
12773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774 else
12775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12777 $ac_includes_default
12778 int
12779 main ()
12780 {
12781
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;
12790
12791 ;
12792 return 0;
12793 }
12794 _ACEOF
12795 if ac_fn_c_try_run "$LINENO"; then :
12796 ac_cv_c_bigendian=no
12797 else
12798 ac_cv_c_bigendian=yes
12799 fi
12800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12801 conftest.$ac_objext conftest.beam conftest.$ac_ext
12802 fi
12803
12804 fi
12805 fi
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12807 $as_echo "$ac_cv_c_bigendian" >&6; }
12808 case $ac_cv_c_bigendian in #(
12809 yes)
12810 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12811 ;; #(
12812 no)
12813 ;; #(
12814 universal)
12815
12816 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12817
12818 ;; #(
12819 *)
12820 as_fn_error $? "unknown endianness
12821 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12822 esac
12823
12824 if test $cross_compiling = no; then
12825 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12826 else
12827 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12828 fi
12829 ASM_TYPES_HEADER=./asm_types.h
12830
12831 echo "/* These defines are needed for the public ext2fs.h header file */" \
12832 > public_config.h
12833 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12834 uniq tmp_config.$$ >> public_config.h
12835 else
12836 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12837 fi
12838 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12839 uniq tmp_config.$$ >> public_config.h
12840 else
12841 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12842 fi
12843 rm -f tmp_config.$$
12844 PUBLIC_CONFIG_HEADER=./public_config.h
12845
12846 for ac_header in inttypes.h
12847 do :
12848 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12849 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12850 cat >>confdefs.h <<_ACEOF
12851 #define HAVE_INTTYPES_H 1
12852 _ACEOF
12853
12854 fi
12855
12856 done
12857
12858 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12859 if test "x$ac_cv_type_intptr_t" = xyes; then :
12860
12861 cat >>confdefs.h <<_ACEOF
12862 #define HAVE_INTPTR_T 1
12863 _ACEOF
12864
12865
12866 fi
12867
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12869 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12870 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 #include <sys/stat.h>
12876 int
12877 main ()
12878 {
12879 struct stat stat; stat.st_flags = 0;
12880 ;
12881 return 0;
12882 }
12883 _ACEOF
12884 if ac_fn_c_try_compile "$LINENO"; then :
12885 e2fsprogs_cv_struct_st_flags=yes
12886 else
12887 e2fsprogs_cv_struct_st_flags=no
12888 fi
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 fi
12891
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12893 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12894 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12896 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12897 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12902 #include <sys/stat.h>
12903 int
12904 main ()
12905 {
12906 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12907 ;
12908 return 0;
12909 }
12910 _ACEOF
12911 if ac_fn_c_try_compile "$LINENO"; then :
12912 e2fsprogs_cv_struct_st_flags_immut=yes
12913 else
12914 e2fsprogs_cv_struct_st_flags_immut=no
12915 fi
12916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12917 fi
12918
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
12922
12923 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12924
12925 fi
12926 fi
12927 ac_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 "
12930 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
12931
12932 cat >>confdefs.h <<_ACEOF
12933 #define HAVE_SA_LEN 1
12934 _ACEOF
12935
12936 fi
12937
12938 if test -n "$BLKID_CMT"; then
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
12940 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
12941 if ${ac_cv_search_blkid_probe_all+:} false; then :
12942 $as_echo_n "(cached) " >&6
12943 else
12944 ac_func_search_save_LIBS=$LIBS
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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
12952 extern "C"
12953 #endif
12954 char blkid_probe_all ();
12955 int
12956 main ()
12957 {
12958 return blkid_probe_all ();
12959 ;
12960 return 0;
12961 }
12962 _ACEOF
12963 for 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
12970 if ac_fn_c_try_link "$LINENO"; then :
12971 ac_cv_search_blkid_probe_all=$ac_res
12972 fi
12973 rm -f core conftest.err conftest.$ac_objext \
12974 conftest$ac_exeext
12975 if ${ac_cv_search_blkid_probe_all+:} false; then :
12976 break
12977 fi
12978 done
12979 if ${ac_cv_search_blkid_probe_all+:} false; then :
12980
12981 else
12982 ac_cv_search_blkid_probe_all=no
12983 fi
12984 rm conftest.$ac_ext
12985 LIBS=$ac_func_search_save_LIBS
12986 fi
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
12988 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12989 ac_res=$ac_cv_search_blkid_probe_all
12990 if test "$ac_res" != no; then :
12991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12992
12993 fi
12994
12995 fi
12996 for 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
12997 do :
12998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12999 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13000 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13001 cat >>confdefs.h <<_ACEOF
13002 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13003 _ACEOF
13004
13005 fi
13006 done
13007
13008 SOCKET_LIB=''
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13010 $as_echo_n "checking for socket in -lsocket... " >&6; }
13011 if ${ac_cv_lib_socket_socket+:} false; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 ac_check_lib_save_LIBS=$LIBS
13015 LIBS="-lsocket $LIBS"
13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13018
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. */
13022 #ifdef __cplusplus
13023 extern "C"
13024 #endif
13025 char socket ();
13026 int
13027 main ()
13028 {
13029 return socket ();
13030 ;
13031 return 0;
13032 }
13033 _ACEOF
13034 if ac_fn_c_try_link "$LINENO"; then :
13035 ac_cv_lib_socket_socket=yes
13036 else
13037 ac_cv_lib_socket_socket=no
13038 fi
13039 rm -f core conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext conftest.$ac_ext
13041 LIBS=$ac_check_lib_save_LIBS
13042 fi
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13044 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13045 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13046 SOCKET_LIB=-lsocket
13047 fi
13048
13049
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13051 $as_echo_n "checking for optreset... " >&6; }
13052 if ${ac_cv_have_optreset+:} false; then :
13053 $as_echo_n "(cached) " >&6
13054 else
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13057 #include <unistd.h>
13058
13059 _ACEOF
13060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13061 $EGREP "optreset" >/dev/null 2>&1; then :
13062 ac_cv_have_optreset=yes
13063 else
13064 ac_cv_have_optreset=no
13065 fi
13066 rm -f conftest*
13067
13068 fi
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13070 $as_echo "$ac_cv_have_optreset" >&6; }
13071 if test $ac_cv_have_optreset = yes; then
13072
13073 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13074
13075 fi
13076
13077 SEM_INIT_LIB=''
13078 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13079 if test "x$ac_cv_func_sem_init" = xyes; then :
13080
13081 else
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13083 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13084 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13085 $as_echo_n "(cached) " >&6
13086 else
13087 ac_check_lib_save_LIBS=$LIBS
13088 LIBS="-lpthread $LIBS"
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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
13096 extern "C"
13097 #endif
13098 char sem_init ();
13099 int
13100 main ()
13101 {
13102 return sem_init ();
13103 ;
13104 return 0;
13105 }
13106 _ACEOF
13107 if ac_fn_c_try_link "$LINENO"; then :
13108 ac_cv_lib_pthread_sem_init=yes
13109 else
13110 ac_cv_lib_pthread_sem_init=no
13111 fi
13112 rm -f core conftest.err conftest.$ac_objext \
13113 conftest$ac_exeext conftest.$ac_ext
13114 LIBS=$ac_check_lib_save_LIBS
13115 fi
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13117 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13118 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13119 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13120
13121 SEM_INIT_LIB=-lpthread
13122 else
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13124 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13125 if ${ac_cv_lib_rt_sem_init+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-lrt $LIBS"
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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
13137 extern "C"
13138 #endif
13139 char sem_init ();
13140 int
13141 main ()
13142 {
13143 return sem_init ();
13144 ;
13145 return 0;
13146 }
13147 _ACEOF
13148 if ac_fn_c_try_link "$LINENO"; then :
13149 ac_cv_lib_rt_sem_init=yes
13150 else
13151 ac_cv_lib_rt_sem_init=no
13152 fi
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155 LIBS=$ac_check_lib_save_LIBS
13156 fi
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13158 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13159 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13160 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13161
13162 SEM_INIT_LIB=-lrt
13163 else
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13165 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13166 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13167 $as_echo_n "(cached) " >&6
13168 else
13169 ac_check_lib_save_LIBS=$LIBS
13170 LIBS="-lposix4 $LIBS"
13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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
13178 extern "C"
13179 #endif
13180 char sem_init ();
13181 int
13182 main ()
13183 {
13184 return sem_init ();
13185 ;
13186 return 0;
13187 }
13188 _ACEOF
13189 if ac_fn_c_try_link "$LINENO"; then :
13190 ac_cv_lib_posix4_sem_init=yes
13191 else
13192 ac_cv_lib_posix4_sem_init=no
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext \
13195 conftest$ac_exeext conftest.$ac_ext
13196 LIBS=$ac_check_lib_save_LIBS
13197 fi
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13199 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13200 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13201 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13202
13203 SEM_INIT_LIB=-lposix4
13204 fi
13205
13206 fi
13207
13208 fi
13209
13210 fi
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13213 $as_echo_n "checking for unified diff option... " >&6; }
13214 if diff -u $0 $0 > /dev/null 2>&1 ; then
13215 UNI_DIFF_OPTS=-u
13216 else
13217 UNI_DIFF_OPTS=-c
13218 fi
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13220 $as_echo "$UNI_DIFF_OPTS" >&6; }
13221
13222 case "$host_os" in
13223 linux*)
13224
13225 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13226
13227 ;;
13228 esac
13229 LINUX_CMT="#"
13230 CYGWIN_CMT="#"
13231 UNIX_CMT=
13232 case "$host_os" in
13233 linux*)
13234 LINUX_CMT=
13235 ;;
13236 cygwin)
13237 CYGWIN_CMT=
13238 UNIX_CMT="#"
13239 ;;
13240 esac
13241
13242
13243
13244 case "$host_os" in
13245 linux* | gnu* | k*bsd*-gnu)
13246 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13247 root_prefix="";
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13249 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13250 fi
13251 ;;
13252 esac
13253 case "$host_os" in
13254 linux* | gnu* | k*bsd*-gnu)
13255 if test "$prefix" = NONE ; then
13256 prefix="/usr";
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13258 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13259 if test "$mandir" = '${prefix}/man' ; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13261 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13262 mandir=/usr/share/man
13263 fi
13264 fi
13265 ;;
13266 esac
13267 if test "$root_prefix" = NONE ; then
13268 if test "$prefix" = NONE ; then
13269 root_prefix="$ac_default_prefix"
13270 else
13271 root_prefix="$prefix"
13272 fi
13273 root_bindir=$bindir
13274 root_sbindir=$sbindir
13275 root_libdir=$libdir
13276 root_sysconfdir=$sysconfdir
13277 else
13278 root_bindir='${root_prefix}/bin'
13279 root_sbindir='${root_prefix}/sbin'
13280 root_libdir='${root_prefix}/lib'
13281 root_sysconfdir='${root_prefix}/etc'
13282 fi
13283 if test "$bindir" != '${exec_prefix}/bin'; then
13284 root_bindir=$bindir
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13286 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13287 fi
13288 if test "$sbindir" != '${exec_prefix}/sbin'; then
13289 root_sbindir=$sbindir
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13291 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13292 fi
13293 if test "$libdir" != '${exec_prefix}/lib'; then
13294 root_libdir=$libdir
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13296 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13297 fi
13298 if test "$sysconfdir" != '${prefix}/etc'; then
13299 root_sysconfdir=$sysconfdir
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13301 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13302 fi
13303
13304
13305
13306
13307
13308
13309 # Check whether --with-multiarch was given.
13310 if test "${with_multiarch+set}" = set; then :
13311 withval=$with_multiarch; if test "$withval" = "lib64"; then
13312 libdir=/usr/lib64
13313 root_libdir=/lib64
13314 else
13315 libdir=$libdir/$withval
13316 root_libdir=$root_libdir/$withval
13317 fi
13318
13319 fi
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; }
13322 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13323 $as_echo_n "(cached) " >&6
13324 else
13325 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13328 #include <stdio.h>
13329 int
13330 main ()
13331 {
13332 fflush(stdout);
13333 ;
13334 return 0;
13335 }
13336 _ACEOF
13337 if ac_fn_c_try_link "$LINENO"; then :
13338 ac_cv_e2fsprogs_use_static=yes
13339 else
13340 ac_cv_e2fsprogs_use_static=no
13341 fi
13342 rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13344 LDFLAGS=$SAVE_LDFLAGS
13345 fi
13346
13347 case "$host_os" in
13348 solaris2.*)
13349 ac_cv_e2fsprogs_use_static=no
13350 ;;
13351 esac
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13353 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13354 LDFLAG_STATIC=
13355 if test $ac_cv_e2fsprogs_use_static = yes; then
13356 LDFLAG_STATIC=-static
13357 fi
13358
13359 case "$host_os" in
13360 darwin*)
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13362 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13363
13364 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13365
13366 ;;
13367 esac
13368 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13369 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13370
13371
13372 if test "$cross_compiling" = yes ; then
13373 DO_TEST_SUITE=
13374 else
13375 DO_TEST_SUITE=check
13376 fi
13377
13378 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13379 if test -n "$CPPFLAGS" ; then
13380 INCLUDES="$INCLUDES $CPPFLAGS"
13381 fi
13382 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13383 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13384 fi
13385 if test -n "$WITH_DIET_LIBC" ; then
13386 INCLUDES="$INCLUDES -D_REENTRANT"
13387 fi
13388
13389 if test $cross_compiling = no; then
13390 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13391 BUILD_LDFLAGS="$LDFLAGS"
13392 else
13393 BUILD_CFLAGS=
13394 BUILD_LDFLAGS=
13395 fi
13396
13397
13398 test -d lib || mkdir lib
13399 test -d include || mkdir include
13400 test -d include/linux || mkdir include/linux
13401 test -d include/asm || mkdir include/asm
13402 for i in MCONFIG Makefile e2fsprogs.spec \
13403 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13404 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13405 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13406 lib/uuid/Makefile lib/uuid/uuid_types.h \
13407 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
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 \
13410 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13411 debugfs/Makefile tests/Makefile tests/progs/Makefile \
13412 resize/Makefile doc/Makefile intl/Makefile \
13413 intl/libgnuintl.h po/Makefile.in ; do
13414 if test -d `dirname ${srcdir}/$i` ; then
13415 outlist="$outlist $i"
13416 fi
13417 done
13418 ac_config_files="$ac_config_files $outlist"
13419
13420 cat >confcache <<\_ACEOF
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
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.
13426 #
13427 # config.status only pays attention to the cache file if you give it
13428 # the --recheck option to rerun configure.
13429 #
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
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.
13438 # So, we kill variables containing newlines.
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.
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 #(
13447 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13448 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13449 esac
13450 case $ac_var in #(
13451 _ | IFS | as_nl) ;; #(
13452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13453 *) { eval $ac_var=; unset $ac_var;} ;;
13454 esac ;;
13455 esac
13456 done
13457
13458 (set) 2>&1 |
13459 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13460 *${as_nl}ac_space=\ *)
13461 # `set' does not quote correctly, so add quotes: double-quote
13462 # substitution turns \\\\ into \\, and sed turns \\ into \.
13463 sed -n \
13464 "s/'/'\\\\''/g;
13465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13466 ;; #(
13467 *)
13468 # `set' quotes correctly as required by POSIX, so do not add quotes.
13469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13470 ;;
13471 esac |
13472 sort
13473 ) |
13474 sed '
13475 /^ac_cv_env_/b end
13476 t clear
13477 :clear
13478 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13479 t end
13480 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13481 :end' >>confcache
13482 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13483 if test -w "$cache_file"; then
13484 if test "x$cache_file" != "x/dev/null"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13486 $as_echo "$as_me: updating cache $cache_file" >&6;}
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
13499 else
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13501 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13502 fi
13503 fi
13504 rm -f confcache
13505
13506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13507 # Let make expand exec_prefix.
13508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13509
13510 DEFS=-DHAVE_CONFIG_H
13511
13512 ac_libobjs=
13513 ac_ltlibobjs=
13514 U=
13515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13516 # 1. Remove the extension, and $U if already installed.
13517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13518 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13520 # will be set to the directory where LIBOBJS objects are built.
13521 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13522 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13523 done
13524 LIBOBJS=$ac_libobjs
13525
13526 LTLIBOBJS=$ac_ltlibobjs
13527
13528
13529
13530
13531 : "${CONFIG_STATUS=./config.status}"
13532 ac_write_fail=0
13533 ac_clean_files_save=$ac_clean_files
13534 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13536 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13537 as_write_fail=0
13538 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13539 #! $SHELL
13540 # Generated by $as_me.
13541 # Run this file to recreate the current configuration.
13542 # Compiler output produced by configure, useful for debugging
13543 # configure, is in config.log if it exists.
13544
13545 debug=false
13546 ac_cs_recheck=false
13547 ac_cs_silent=false
13548
13549 SHELL=\${CONFIG_SHELL-$SHELL}
13550 export SHELL
13551 _ASEOF
13552 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13553 ## -------------------- ##
13554 ## M4sh Initialization. ##
13555 ## -------------------- ##
13556
13557 # Be more Bourne compatible
13558 DUALCASE=1; export DUALCASE # for MKS sh
13559 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13560 emulate sh
13561 NULLCMD=:
13562 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13563 # is contrary to our usage. Disable this feature.
13564 alias -g '${1+"$@"}'='"$@"'
13565 setopt NO_GLOB_SUBST
13566 else
13567 case `(set -o) 2>/dev/null` in #(
13568 *posix*) :
13569 set -o posix ;; #(
13570 *) :
13571 ;;
13572 esac
13573 fi
13574
13575
13576 as_nl='
13577 '
13578 export as_nl
13579 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13580 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13581 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13582 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13583 # Prefer a ksh shell builtin over an external printf program on Solaris,
13584 # but without wasting forks for bash or zsh.
13585 if 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 --'
13589 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13590 as_echo='printf %s\n'
13591 as_echo_n='printf %s'
13592 else
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'
13596 else
13597 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13598 as_echo_n_body='eval
13599 arg=$1;
13600 case $arg in #(
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'
13609 fi
13610 export as_echo_body
13611 as_echo='sh -c $as_echo_body as_echo'
13612 fi
13613
13614 # The user is always right.
13615 if 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 }
13621 fi
13622
13623
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.)
13629 IFS=" "" $as_nl"
13630
13631 # Find who we are. Look in the path if we contain no directory separator.
13632 as_myself=
13633 case $0 in #((
13634 *[\\/]* ) as_myself=$0 ;;
13635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13636 for as_dir in $PATH
13637 do
13638 IFS=$as_save_IFS
13639 test -z "$as_dir" && as_dir=.
13640 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13641 done
13642 IFS=$as_save_IFS
13643
13644 ;;
13645 esac
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.
13648 if test "x$as_myself" = x; then
13649 as_myself=$0
13650 fi
13651 if test ! -f "$as_myself"; then
13652 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13653 exit 1
13654 fi
13655
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.
13660 for as_var in BASH_ENV ENV MAIL MAILPATH
13661 do eval test x\${$as_var+set} = xset \
13662 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13663 done
13664 PS1='$ '
13665 PS2='> '
13666 PS4='+ '
13667
13668 # NLS nuisances.
13669 LC_ALL=C
13670 export LC_ALL
13671 LANGUAGE=C
13672 export LANGUAGE
13673
13674 # CDPATH.
13675 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13676
13677
13678 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13679 # ----------------------------------------
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
13682 # script with STATUS, using 1 if that was 0.
13683 as_fn_error ()
13684 {
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
13689 fi
13690 $as_echo "$as_me: error: $2" >&2
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.
13698 as_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.
13706 as_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.
13716 as_fn_unset ()
13717 {
13718 { eval $1=; unset $1;}
13719 }
13720 as_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.
13727 if (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 }'
13732 else
13733 as_fn_append ()
13734 {
13735 eval $1=\$$1\$2
13736 }
13737 fi # 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.
13744 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13745 eval 'as_fn_arith ()
13746 {
13747 as_val=$(( $* ))
13748 }'
13749 else
13750 as_fn_arith ()
13751 {
13752 as_val=`expr "$@" || test $? -eq 1`
13753 }
13754 fi # as_fn_arith
13755
13756
13757 if expr a : '\(a\)' >/dev/null 2>&1 &&
13758 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13759 as_expr=expr
13760 else
13761 as_expr=false
13762 fi
13763
13764 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13765 as_basename=basename
13766 else
13767 as_basename=false
13768 fi
13769
13770 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13771 as_dirname=dirname
13772 else
13773 as_dirname=false
13774 fi
13775
13776 as_me=`$as_basename -- "$0" ||
13777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13778 X"$0" : 'X\(//\)$' \| \
13779 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13780 $as_echo X/"$0" |
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'`
13794
13795 # Avoid depending upon Character Ranges.
13796 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13797 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13798 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13799 as_cr_digits='0123456789'
13800 as_cr_alnum=$as_cr_Letters$as_cr_digits
13801
13802 ECHO_C= ECHO_N= ECHO_T=
13803 case `echo -n x` in #(((((
13804 -n*)
13805 case `echo 'xy\c'` in
13806 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13807 xy) ECHO_C='\c';;
13808 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13809 ECHO_T=' ';;
13810 esac;;
13811 *)
13812 ECHO_N='-n';;
13813 esac
13814
13815 rm -f conf$$ conf$$.exe conf$$.file
13816 if test -d conf$$.dir; then
13817 rm -f conf$$.dir/conf$$.file
13818 else
13819 rm -f conf$$.dir
13820 mkdir conf$$.dir 2>/dev/null
13821 fi
13822 if (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.
13828 # In both cases, we have to default to `cp -pR'.
13829 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13830 as_ln_s='cp -pR'
13831 elif ln conf$$.file conf$$ 2>/dev/null; then
13832 as_ln_s=ln
13833 else
13834 as_ln_s='cp -pR'
13835 fi
13836 else
13837 as_ln_s='cp -pR'
13838 fi
13839 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13840 rmdir conf$$.dir 2>/dev/null
13841
13842
13843 # as_fn_mkdir_p
13844 # -------------
13845 # Create "$as_dir" as a directory, including parents if necessary.
13846 as_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"
13886 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13887
13888
13889 } # as_fn_mkdir_p
13890 if mkdir -p . 2>/dev/null; then
13891 as_mkdir_p='mkdir -p "$as_dir"'
13892 else
13893 test -d ./-p && rmdir ./-p
13894 as_mkdir_p=false
13895 fi
13896
13897
13898 # as_fn_executable_p FILE
13899 # -----------------------
13900 # Test if FILE is an executable regular file.
13901 as_fn_executable_p ()
13902 {
13903 test -f "$1" && test -x "$1"
13904 } # as_fn_executable_p
13905 as_test_x='test -x'
13906 as_executable_p=as_fn_executable_p
13907
13908 # Sed expression to map a string onto a valid CPP name.
13909 as_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.
13912 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13913
13914
13915 exec 6>&1
13916 ## ----------------------------------- ##
13917 ## Main body of $CONFIG_STATUS script. ##
13918 ## ----------------------------------- ##
13919 _ASEOF
13920 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13921
13922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13923 # Save the log message, to keep $0 and so on meaningful, and to
13924 # report actual input values of CONFIG_FILES etc. instead of their
13925 # values after options handling.
13926 ac_log="
13927 This file was extended by $as_me, which was
13928 generated by GNU Autoconf 2.69. Invocation command line was
13929
13930 CONFIG_FILES = $CONFIG_FILES
13931 CONFIG_HEADERS = $CONFIG_HEADERS
13932 CONFIG_LINKS = $CONFIG_LINKS
13933 CONFIG_COMMANDS = $CONFIG_COMMANDS
13934 $ $0 $@
13935
13936 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13937 "
13938
13939 _ACEOF
13940
13941 case $ac_config_files in *"
13942 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13943 esac
13944
13945 case $ac_config_headers in *"
13946 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13947 esac
13948
13949
13950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13951 # Files that config.status was made for.
13952 config_files="$ac_config_files"
13953 config_headers="$ac_config_headers"
13954 config_commands="$ac_config_commands"
13955
13956 _ACEOF
13957
13958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13959 ac_cs_usage="\
13960 \`$as_me' instantiates files and other configuration actions
13961 from templates according to the current configuration. Unless the files
13962 and actions are specified as TAGs, all are instantiated by default.
13963
13964 Usage: $0 [OPTION]... [TAG]...
13965
13966 -h, --help print this help, then exit
13967 -V, --version print version number and configuration settings, then exit
13968 --config print configuration, then exit
13969 -q, --quiet, --silent
13970 do not print progress messages
13971 -d, --debug don't remove temporary files
13972 --recheck update $as_me by reconfiguring in the same conditions
13973 --file=FILE[:TEMPLATE]
13974 instantiate the configuration file FILE
13975 --header=FILE[:TEMPLATE]
13976 instantiate the configuration header FILE
13977
13978 Configuration files:
13979 $config_files
13980
13981 Configuration headers:
13982 $config_headers
13983
13984 Configuration commands:
13985 $config_commands
13986
13987 Report bugs to the package provider."
13988
13989 _ACEOF
13990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13991 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13992 ac_cs_version="\\
13993 config.status
13994 configured by $0, generated by GNU Autoconf 2.69,
13995 with options \\"\$ac_cs_config\\"
13996
13997 Copyright (C) 2012 Free Software Foundation, Inc.
13998 This config.status script is free software; the Free Software Foundation
13999 gives unlimited permission to copy, distribute and modify it."
14000
14001 ac_pwd='$ac_pwd'
14002 srcdir='$srcdir'
14003 INSTALL='$INSTALL'
14004 MKDIR_P='$MKDIR_P'
14005 AWK='$AWK'
14006 test -n "\$AWK" || AWK=awk
14007 _ACEOF
14008
14009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010 # The default lists apply if the user does not specify any file.
14011 ac_need_defaults=:
14012 while test $# != 0
14013 do
14014 case $1 in
14015 --*=?*)
14016 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14017 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14018 ac_shift=:
14019 ;;
14020 --*=)
14021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14022 ac_optarg=
14023 ac_shift=:
14024 ;;
14025 *)
14026 ac_option=$1
14027 ac_optarg=$2
14028 ac_shift=shift
14029 ;;
14030 esac
14031
14032 case $ac_option in
14033 # Handling of the options.
14034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14035 ac_cs_recheck=: ;;
14036 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14037 $as_echo "$ac_cs_version"; exit ;;
14038 --config | --confi | --conf | --con | --co | --c )
14039 $as_echo "$ac_cs_config"; exit ;;
14040 --debug | --debu | --deb | --de | --d | -d )
14041 debug=: ;;
14042 --file | --fil | --fi | --f )
14043 $ac_shift
14044 case $ac_optarg in
14045 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14046 '') as_fn_error $? "missing file argument" ;;
14047 esac
14048 as_fn_append CONFIG_FILES " '$ac_optarg'"
14049 ac_need_defaults=false;;
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
14059 as_fn_error $? "ambiguous option: \`$1'
14060 Try \`$0 --help' for more information.";;
14061 --help | --hel | -h )
14062 $as_echo "$ac_cs_usage"; exit ;;
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.
14068 -*) as_fn_error $? "unrecognized option: \`$1'
14069 Try \`$0 --help' for more information." ;;
14070
14071 *) as_fn_append ac_config_targets " $1"
14072 ac_need_defaults=false ;;
14073
14074 esac
14075 shift
14076 done
14077
14078 ac_configure_extra_args=
14079
14080 if $ac_cs_silent; then
14081 exec 6>/dev/null
14082 ac_configure_extra_args="$ac_configure_extra_args --silent"
14083 fi
14084
14085 _ACEOF
14086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14087 if \$ac_cs_recheck; then
14088 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14089 shift
14090 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14091 CONFIG_SHELL='$SHELL'
14092 export CONFIG_SHELL
14093 exec "\$@"
14094 fi
14095
14096 _ACEOF
14097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14098 exec 5>>config.log
14099 {
14100 echo
14101 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14102 ## Running $as_me. ##
14103 _ASBOX
14104 $as_echo "$ac_log"
14105 } >&5
14106
14107 _ACEOF
14108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14109 #
14110 # INIT-COMMANDS
14111 #
14112 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14113 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14114 # from automake < 1.5.
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
14122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14123
14124 # Handling of arguments.
14125 for ac_config_target in $ac_config_targets
14126 do
14127 case $ac_config_target in
14128 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14129 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14130 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14131
14132 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14133 esac
14134 done
14135
14136
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.
14141 if $ac_need_defaults; then
14142 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14143 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14144 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14145 fi
14146
14147 # Have a temporary directory for convenience. Make it in the build tree
14148 # simply because there is no reason against having it here, and in addition,
14149 # creating and moving files from /tmp can sometimes cause problems.
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'.
14153 $debug ||
14154 {
14155 tmp= ac_tmp=
14156 trap 'exit_status=$?
14157 : "${ac_tmp:=$tmp}"
14158 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14159 ' 0
14160 trap 'as_fn_exit 1' 1 2 13 15
14161 }
14162 # Create a (secure) tmp directory for tmp files.
14163
14164 {
14165 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14166 test -d "$tmp"
14167 } ||
14168 {
14169 tmp=./conf$$-$RANDOM
14170 (umask 077 && mkdir "$tmp")
14171 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14172 ac_tmp=$tmp
14173
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'.
14177 if test -n "$CONFIG_FILES"; then
14178
14179 if $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=
14187 else
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 ":" }'
14196 fi
14197 ac_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.
14201 if test "x$ac_cr" = x; then
14202 eval ac_cr=\$\'\\r\'
14203 fi
14204 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14205 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14206 ac_cs_awk_cr='\\r'
14207 else
14208 ac_cs_awk_cr=$ac_cr
14209 fi
14210
14211 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14212 _ACEOF
14213
14214 # Create commands to substitute file output variables.
14215 {
14216 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14217 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14218 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14219 echo "_ACAWK" &&
14220 echo "_ACEOF"
14221 } >conf$$files.sh &&
14222 . ./conf$$files.sh ||
14223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14224 rm -f conf$$files.sh
14225
14226 {
14227 echo "cat >conf$$subs.awk <<_ACEOF" &&
14228 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14229 echo "_ACEOF"
14230 } >conf$$subs.sh ||
14231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14232 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14233 ac_delim='%!_!# '
14234 for ac_last_try in false false false false false :; do
14235 . ./conf$$subs.sh ||
14236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
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
14240 break
14241 elif $ac_last_try; then
14242 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14243 else
14244 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14245 fi
14246 done
14247 rm -f conf$$subs.sh
14248
14249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14250 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14251 _ACEOF
14252 sed -n '
14253 h
14254 s/^/S["/; s/!.*/"]=/
14255 p
14256 g
14257 s/^[^!]*!//
14258 :repl
14259 t repl
14260 s/'"$ac_delim"'$//
14261 t delim
14262 :nl
14263 h
14264 s/\(.\{148\}\)..*/\1/
14265 t more1
14266 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14267 p
14268 n
14269 b repl
14270 :more1
14271 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14272 p
14273 g
14274 s/.\{148\}//
14275 t nl
14276 :delim
14277 h
14278 s/\(.\{148\}\)..*/\1/
14279 t more2
14280 s/["\\]/\\&/g; s/^/"/; s/$/"/
14281 p
14282 b
14283 :more2
14284 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14285 p
14286 g
14287 s/.\{148\}//
14288 t delim
14289 ' <conf$$subs.awk | sed '
14290 /^[^""]/{
14291 N
14292 s/\n//
14293 }
14294 ' >>$CONFIG_STATUS || ac_write_fail=1
14295 rm -f conf$$subs.awk
14296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14297 _ACAWK
14298 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14299 for (key in S) S_is_set[key] = 1
14300 FS = "\a"
14301 \$ac_cs_awk_pipe_init
14302 }
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
14327 }
14328 \$ac_cs_awk_pipe_fini
14329 _ACAWK
14330 _ACEOF
14331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14332 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14333 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14334 else
14335 cat
14336 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14337 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14338 _ACEOF
14339
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
14342 # trailing colons and then remove the whole line if VPATH becomes empty
14343 # (actually we leave an empty line to preserve line numbers).
14344 if test "x$srcdir" = x.; then
14345 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14346 h
14347 s///
14348 s/^/:/
14349 s/[ ]*$/:/
14350 s/:\$(srcdir):/:/g
14351 s/:\${srcdir}:/:/g
14352 s/:@srcdir@:/:/g
14353 s/^:*//
14354 s/:*$//
14355 x
14356 s/\(=[ ]*\).*/\1/
14357 G
14358 s/\n//
14359 s/^[^=]*=[ ]*$//
14360 }'
14361 fi
14362
14363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14364 fi # test -n "$CONFIG_FILES"
14365
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'.
14369 if test -n "$CONFIG_HEADERS"; then
14370 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14371 BEGIN {
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.
14380 ac_delim='%!_!# '
14381 for ac_last_try in false false :; do
14382 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14383 if test -z "$ac_tt"; then
14384 break
14385 elif $ac_last_try; then
14386 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14387 else
14388 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14389 fi
14390 done
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
14396 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14397 sed -n '
14398 s/.\{148\}/&'"$ac_delim"'/g
14399 t rset
14400 :rset
14401 s/^[ ]*#[ ]*define[ ][ ]*/ /
14402 t def
14403 d
14404 :def
14405 s/\\$//
14406 t bsnl
14407 s/["\\]/\\&/g
14408 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14409 D["\1"]=" \3"/p
14410 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14411 d
14412 :bsnl
14413 s/["\\]/\\&/g
14414 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14415 D["\1"]=" \3\\\\\\n"\\/p
14416 t cont
14417 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14418 t cont
14419 d
14420 :cont
14421 n
14422 s/.\{148\}/&'"$ac_delim"'/g
14423 t clear
14424 :clear
14425 s/\\$//
14426 t bsnlc
14427 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14428 d
14429 :bsnlc
14430 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14431 b cont
14432 ' <confdefs.h | sed '
14433 s/'"$ac_delim"'/"\\\
14434 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14435
14436 cat >>$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
14470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14471 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14472 fi # test -n "$CONFIG_HEADERS"
14473
14474
14475 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14476 shift
14477 for ac_tag
14478 do
14479 case $ac_tag in
14480 :[FHLC]) ac_mode=$ac_tag; continue;;
14481 esac
14482 case $ac_mode$ac_tag in
14483 :[FHL]*:*);;
14484 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
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
14503 -) ac_f="$ac_tmp/stdin";;
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 ||
14512 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14513 esac
14514 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14515 as_fn_append ac_file_inputs " '$ac_f'"
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. */
14521 configure_input='Generated from '`
14522 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14523 `' by configure.'
14524 if test x"$ac_file" != x-; then
14525 configure_input="$ac_file. $configure_input"
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14527 $as_echo "$as_me: creating $ac_file" >&6;}
14528 fi
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
14536
14537 case $ac_tag in
14538 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14540 esac
14541 ;;
14542 esac
14543
14544 ac_dir=`$as_dirname -- "$ac_file" ||
14545 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14546 X"$ac_file" : 'X\(//\)[^/]' \| \
14547 X"$ac_file" : 'X\(//\)$' \| \
14548 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14549 $as_echo X"$ac_file" |
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'`
14567 as_dir="$ac_dir"; as_fn_mkdir_p
14568 ac_builddir=.
14569
14570 case "$ac_dir" in
14571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14572 *)
14573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14574 # A ".." for each directory in $ac_dir_suffix.
14575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
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 ;;
14580 esac
14581 ac_abs_top_builddir=$ac_pwd
14582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14583 # for backward compatibility:
14584 ac_top_builddir=$ac_top_build_prefix
14585
14586 case $srcdir in
14587 .) # We are building in place.
14588 ac_srcdir=.
14589 ac_top_srcdir=$ac_top_builddir_sub
14590 ac_abs_top_srcdir=$ac_pwd ;;
14591 [\\/]* | ?:[\\/]* ) # Absolute name.
14592 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
14599 esac
14600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14601
14602
14603 case $ac_mode in
14604 :F)
14605 #
14606 # CONFIG_FILE
14607 #
14608
14609 case $INSTALL in
14610 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14611 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14612 esac
14613 ac_MKDIR_P=$MKDIR_P
14614 case $MKDIR_P in
14615 [\\/$]* | ?:[\\/]* ) ;;
14616 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14617 esac
14618 _ACEOF
14619
14620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14621 # If the template does not know about datarootdir, expand it.
14622 # FIXME: This hack should be removed a few years after 2.60.
14623 ac_datarootdir_hack=; ac_datarootdir_seen=
14624 ac_sed_dataroot='
14625 /datarootdir/ {
14626 p
14627 q
14628 }
14629 /@datadir@/p
14630 /@docdir@/p
14631 /@infodir@/p
14632 /@localedir@/p
14633 /@mandir@/p'
14634 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14635 *datarootdir*) ac_datarootdir_seen=yes;;
14636 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14638 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14639 _ACEOF
14640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
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
14647 s&\\\${datarootdir}&$datarootdir&g' ;;
14648 esac
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?
14654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14655 ac_sed_extra="$ac_vpsub
14656 $extrasub
14657 _ACEOF
14658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14659 :t
14660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14661 s|@configure_input@|$ac_sed_conf_input|;t t
14662 s&@top_builddir@&$ac_top_builddir_sub&;t t
14663 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14664 s&@srcdir@&$ac_srcdir&;t t
14665 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14666 s&@top_srcdir@&$ac_top_srcdir&;t t
14667 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14668 s&@builddir@&$ac_builddir&;t t
14669 s&@abs_builddir@&$ac_abs_builddir&;t t
14670 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14671 s&@INSTALL@&$ac_INSTALL&;t t
14672 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14673 $ac_datarootdir_hack
14674 "
14675 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14676 if $ac_cs_awk_getline; then
14677 $AWK -f "$ac_tmp/subs.awk"
14678 else
14679 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14680 fi \
14681 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14682
14683 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
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"; } &&
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14688 which seems to be undefined. Please make sure it is defined" >&5
14689 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14690 which seems to be undefined. Please make sure it is defined" >&2;}
14691
14692 rm -f "$ac_tmp/stdin"
14693 case $ac_file in
14694 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14695 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14696 esac \
14697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14698 ;;
14699 :H)
14700 #
14701 # CONFIG_HEADER
14702 #
14703 if test x"$ac_file" != x-; then
14704 {
14705 $as_echo "/* $configure_input */" \
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
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"
14714 mv "$ac_tmp/config.h" "$ac_file" \
14715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14716 fi
14717 else
14718 $as_echo "/* $configure_input */" \
14719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14720 || as_fn_error $? "could not create -" "$LINENO" 5
14721 fi
14722 ;;
14723
14724 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14725 $as_echo "$as_me: executing $ac_file commands" >&6;}
14726 ;;
14727 esac
14728
14729
14730 case $ac_file$ac_mode in
14731 "po-directories":C)
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%/[^/][^/]*$%%'`
14741 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
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
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.
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"
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"
14759 POMAKEFILEDEPS="POTFILES.in"
14760 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
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.
14765 if test -n "$OBSOLETE_ALL_LINGUAS"; then
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
14768 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14769 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14770 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14771 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14772 else
14773 # The set of available languages was given in configure.in.
14774 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14775 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14776 fi
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)
14785 case "$ac_given_srcdir" in
14786 .) srcdirpre= ;;
14787 *) srcdirpre='$(srcdir)/' ;;
14788 esac
14789 POFILES=
14790 UPDATEPOFILES=
14791 DUMMYPOFILES=
14792 GMOFILES=
14793 for lang in $ALL_LINGUAS; do
14794 POFILES="$POFILES $srcdirpre$lang.po"
14795 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14796 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14797 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
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"
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"
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 ;;
14843 esac
14844 done ;;
14845
14846 esac
14847 done # for ac_tag
14848
14849
14850 as_fn_exit 0
14851 _ACEOF
14852 ac_clean_files=$ac_clean_files_save
14853
14854 test $ac_write_fail = 0 ||
14855 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14856
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.
14866 if 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.
14876 $ac_cs_success || as_fn_exit 1
14877 fi
14878 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14880 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14881 fi
14882
14883 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi