]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - configure
rename libquota.a to libsupport.a
[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 MKINSTALLDIRS
631 INCLUDES
632 DO_TEST_SUITE
633 ET_DIR
634 SS_DIR
635 LDFLAG_STATIC
636 root_sysconfdir
637 root_libdir
638 root_sbindir
639 root_bindir
640 root_prefix
641 UNIX_CMT
642 CYGWIN_CMT
643 LINUX_CMT
644 UNI_DIFF_OPTS
645 SEM_INIT_LIB
646 FUSE_CMT
647 FUSE_LIB
648 MAGIC_LIB
649 SOCKET_LIB
650 SIZEOF_OFF_T
651 SIZEOF_LONG_LONG
652 SIZEOF_LONG
653 SIZEOF_INT
654 SIZEOF_SHORT
655 BUILD_CC
656 MAKEINFO
657 STRIP
658 AR
659 LDCONFIG
660 PERL
661 AWK
662 CHMOD
663 RM
664 CP
665 MV
666 LN_S
667 LN
668 ifNotGNUmake
669 ifGNUmake
670 BINARY_TYPE
671 POSUB
672 LTLIBINTL
673 LIBINTL
674 INTLLIBS
675 INTL_LIBTOOL_SUFFIX_PREFIX
676 INTLOBJS
677 GENCAT
678 INSTOBJEXT
679 DATADIRNAME
680 CATOBJEXT
681 USE_INCLUDED_LIBINTL
682 BUILD_INCLUDED_LIBINTL
683 LTLIBC
684 WINDRES
685 WOE32
686 WOE32DLL
687 HAVE_WPRINTF
688 HAVE_NEWLOCALE
689 HAVE_SNPRINTF
690 HAVE_ASPRINTF
691 HAVE_POSIX_PRINTF
692 INTL_DEFAULT_VERBOSITY
693 INTL_MACOSX_LIBS
694 GLIBC21
695 INTLBISON
696 LTLIBICONV
697 LIBICONV
698 LTLIBMULTITHREAD
699 LIBMULTITHREAD
700 LTLIBTHREAD
701 LIBTHREAD
702 LIBPTH_PREFIX
703 LTLIBPTH
704 LIBPTH
705 PRI_MACROS_BROKEN
706 ALLOCA
707 HAVE_VISIBILITY
708 CFLAG_VISIBILITY
709 RANLIB
710 GLIBC2
711 XGETTEXT_EXTRA_OPTIONS
712 MSGMERGE
713 XGETTEXT_015
714 XGETTEXT
715 GMSGFMT_015
716 MSGFMT_015
717 GMSGFMT
718 MSGFMT
719 GETTEXT_MACRO_VERSION
720 USE_NLS
721 SED
722 MKDIR_P
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 SET_MAKE
727 VERSION
728 PACKAGE
729 GETTEXT_PACKAGE
730 UUIDD_CMT
731 E2INITRD_MAN
732 E2INITRD_PROG
733 FSCK_MAN
734 FSCK_PROG
735 DEFRAG_CMT
736 RESIZER_CMT
737 IMAGER_CMT
738 DEBUGFS_CMT
739 BLKID_CMT
740 DEPPROFILED_LIBBLKID
741 PROFILED_LIBBLKID
742 DEPSTATIC_LIBBLKID
743 STATIC_LIBBLKID
744 DEPLIBBLKID
745 LIBBLKID
746 UUID_CMT
747 DEPPROFILED_LIBUUID
748 PROFILED_LIBUUID
749 DEPSTATIC_LIBUUID
750 STATIC_LIBUUID
751 DEPLIBUUID
752 LIBUUID
753 PKG_CONFIG_LIBDIR
754 PKG_CONFIG_PATH
755 PKG_CONFIG
756 TEST_IO_CMT
757 PRIVATE_LIBS_CMT
758 LDFLAG_DYNAMIC
759 PROFILED_LIB_EXT
760 STATIC_LIB_EXT
761 LIB_EXT
762 PROFILE_CMT
763 BSDLIB_CMT
764 ELF_CMT
765 Q
766 ES
767 E
768 LINK_BUILD_FLAGS
769 SYMLINK_RELATIVE
770 LINK_INSTALL_FLAGS
771 MAINTAINER_CMT
772 EGREP
773 GREP
774 CPP
775 RDYNAMIC
776 DLOPEN_LIB
777 OBJEXT
778 EXEEXT
779 ac_ct_CC
780 CPPFLAGS
781 LDFLAGS
782 CFLAGS
783 CC
784 host_os
785 host_vendor
786 host_cpu
787 host
788 build_os
789 build_vendor
790 build_cpu
791 build
792 E2FSPROGS_PKGVER
793 E2FSPROGS_VERSION
794 E2FSPROGS_DAY
795 E2FSPROGS_MONTH
796 E2FSPROGS_YEAR
797 target_alias
798 host_alias
799 build_alias
800 LIBS
801 ECHO_T
802 ECHO_N
803 ECHO_C
804 DEFS
805 mandir
806 localedir
807 libdir
808 psdir
809 pdfdir
810 dvidir
811 htmldir
812 infodir
813 docdir
814 oldincludedir
815 includedir
816 localstatedir
817 sharedstatedir
818 sysconfdir
819 datadir
820 datarootdir
821 libexecdir
822 sbindir
823 bindir
824 program_transform_name
825 prefix
826 exec_prefix
827 PACKAGE_URL
828 PACKAGE_BUGREPORT
829 PACKAGE_STRING
830 PACKAGE_VERSION
831 PACKAGE_TARNAME
832 PACKAGE_NAME
833 PATH_SEPARATOR
834 SHELL'
835 ac_subst_files='MCONFIG
836 MAKEFILE_ELF
837 MAKEFILE_BSDLIB
838 MAKEFILE_PROFILE
839 MAKEFILE_LIBRARY
840 ASM_TYPES_HEADER
841 PUBLIC_CONFIG_HEADER'
842 ac_user_opts='
843 enable_option_checking
844 with_diet_libc
845 with_cc
846 with_ccopts
847 with_ldopts
848 with_root_prefix
849 enable_maintainer_mode
850 enable_symlink_install
851 enable_relative_symlinks
852 enable_symlink_relative_symlinks
853 enable_symlink_build
854 enable_verbose_makecmds
855 enable_elf_shlibs
856 enable_bsd_shlibs
857 enable_profile
858 enable_gcov
859 enable_jbd_debug
860 enable_blkid_debug
861 enable_testio_debug
862 enable_libuuid
863 enable_libblkid
864 enable_backtrace
865 enable_debugfs
866 enable_imager
867 enable_resizer
868 enable_defrag
869 enable_fsck
870 enable_e2initrd_helper
871 enable_tls
872 enable_uuidd
873 enable_mmp
874 enable_bmap_stats
875 enable_bmap_stats_ops
876 enable_nls
877 enable_threads
878 with_gnu_ld
879 enable_rpath
880 with_libpth_prefix
881 with_libiconv_prefix
882 with_included_gettext
883 with_libintl_prefix
884 enable_fuse2fs
885 with_multiarch
886 '
887 ac_precious_vars='build_alias
888 host_alias
889 target_alias
890 CC
891 CFLAGS
892 LDFLAGS
893 LIBS
894 CPPFLAGS
895 CPP
896 PKG_CONFIG
897 PKG_CONFIG_PATH
898 PKG_CONFIG_LIBDIR'
899
900
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 ac_unrecognized_opts=
905 ac_unrecognized_sep=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
922
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
948
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
956 ac_prev=
957 continue
958 fi
959
960 case $ac_option in
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *=) ac_optarg= ;;
963 *) ac_optarg=yes ;;
964 esac
965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
971
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 bindir=$ac_optarg ;;
976
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
991
992 -datadir | --datadir | --datadi | --datad)
993 ac_prev=datadir ;;
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
996
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
1004 -disable-* | --disable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=no ;;
1019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1029
1030 -enable-* | --enable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039 "enable_$ac_useropt"
1040 "*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=\$ac_optarg ;;
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1065
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1070
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1100
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1174
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
1249
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
1265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1283
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1286 ;;
1287
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294 esac
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1297
1298 *)
1299 # FIXME: should be removed in autoconf 3.0.
1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304 ;;
1305
1306 esac
1307 done
1308
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1312 fi
1313
1314 if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1320 fi
1321
1322 # Check all directory arguments for consistency.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1327 do
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
1336 case $ac_val in
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1342
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1356 fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1371
1372
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1403 fi
1404 else
1405 ac_srcdir_defaulted=no
1406 fi
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 fi
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1418 fi
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1431
1432 #
1433 # Report the --help message.
1434 #
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439 \`configure' configures this package to adapt to many kinds of systems.
1440
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1445
1446 Defaults for the options are specified in brackets.
1447
1448 Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking ...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 [PREFIX]
1464
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1469
1470 For better control, use the options below.
1471
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1492 _ACEOF
1493
1494 cat <<\_ACEOF
1495
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 _ACEOF
1500 fi
1501
1502 if test -n "$ac_init_help"; then
1503
1504 cat <<\_ACEOF
1505
1506 Optional Features:
1507 --disable-option-checking ignore unrecognized --enable/--with options
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-maintainer-mode enable makefile rules useful for maintainers
1511 --enable-symlink-install use symlinks when installing instead of hard links
1512 --enable-relative-symlinks use relative symlinks when installing
1513
1514 --enable-symlink-build use symlinks while building instead of hard links
1515 --enable-verbose-makecmds enable verbose make command output
1516 --enable-elf-shlibs select ELF shared libraries
1517 --enable-bsd-shlibs select BSD shared libraries
1518 --enable-profile build profiling libraries
1519 --enable-gcov build for coverage testing using gcov
1520 --enable-jbd-debug enable journal debugging
1521 --enable-blkid-debug enable blkid debugging
1522 --disable-testio-debug disable the use of the test I/O manager for debugging
1523 --enable-libuuid build and use private uuid library
1524 --enable-libblkid build and use private blkid library
1525 --disable-backtrace disable use backtrace
1526 --disable-debugfs disable support of debugfs program
1527 --disable-imager disable support of e2image program
1528 --disable-resizer disable support of e2resize program
1529 --disable-defrag disable support of e4defrag program
1530 --enable-fsck build fsck wrapper program
1531 --enable-e2initrd-helper build e2initrd-helper program
1532 --disable-tls disable use of thread local support
1533 --disable-uuidd disable building the uuid daemon
1534 --disable-mmp disable support mmp, Multi Mount Protection
1535 --disable-bmap-stats disable collection of bitmap stats.
1536 --enable-bmap-stats-ops enable collection of additional bitmap stats
1537 --disable-nls do not use Native Language Support
1538 --enable-threads={posix|solaris|pth|windows}
1539 specify multithreading API
1540 --disable-threads build without multithread safety
1541 --disable-rpath do not hardcode runtime library paths
1542 --disable-fuse2fs do not build fuse2fs
1543
1544 Optional Packages:
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1547 --with-diet-libc use diet libc
1548 --with-cc no longer supported, use CC= instead
1549 --with-ccopts no longer supported, use CFLAGS= instead
1550 --with-ldopts no longer supported, use LDFLAGS= instead
1551 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1554 --without-libpth-prefix don't search for libpth in includedir and libdir
1555 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1556 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1557 --with-included-gettext use the GNU gettext library included here
1558 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1559 --without-libintl-prefix don't search for libintl in includedir and libdir
1560 --with-multiarch=ARCH specify the multiarch triplet
1561
1562 Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
1567 LIBS libraries to pass to the linker, e.g. -l<library>
1568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1569 you have headers in a nonstandard directory <include dir>
1570 CPP C preprocessor
1571 PKG_CONFIG path to pkg-config utility
1572 PKG_CONFIG_PATH
1573 directories to add to pkg-config's search path
1574 PKG_CONFIG_LIBDIR
1575 path overriding pkg-config's built-in search path
1576
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1579
1580 Report bugs to the package provider.
1581 _ACEOF
1582 ac_status=$?
1583 fi
1584
1585 if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590 continue
1591 ac_builddir=.
1592
1593 case "$ac_dir" in
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *)
1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603 esac
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1608
1609 case $srcdir in
1610 .) # We are building in place.
1611 ac_srcdir=.
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
1615 ac_srcdir=$srcdir$ac_dir_suffix;
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1622 esac
1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
1633 else
1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
1637 done
1638 fi
1639
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1642 cat <<\_ACEOF
1643 configure
1644 generated by GNU Autoconf 2.69
1645
1646 Copyright (C) 2012 Free Software Foundation, Inc.
1647 This configure script is free software; the Free Software Foundation
1648 gives unlimited permission to copy, distribute and modify it.
1649 _ACEOF
1650 exit
1651 fi
1652
1653 ## ------------------------ ##
1654 ## Autoconf initialization. ##
1655 ## ------------------------ ##
1656
1657 # ac_fn_c_try_compile LINENO
1658 # --------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_compile ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_compile
1694
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_link ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 test -x conftest$ac_exeext
1723 }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730 fi
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_link
1740
1741 # ac_fn_c_try_cpp LINENO
1742 # ----------------------
1743 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_c_try_cpp ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_cpp conftest.$ac_ext"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } > conftest.i && {
1763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 }; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772 fi
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1775
1776 } # ac_fn_c_try_cpp
1777
1778 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1779 # -------------------------------------------------------
1780 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1781 # the include files in INCLUDES and setting the cache variable VAR
1782 # accordingly.
1783 ac_fn_c_check_header_mongrel ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if eval \${$3+:} false; then :
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791 fi
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 else
1796 # Is the header compilable?
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1798 $as_echo_n "checking $2 usability... " >&6; }
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 $4
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_compile "$LINENO"; then :
1805 ac_header_compiler=yes
1806 else
1807 ac_header_compiler=no
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1811 $as_echo "$ac_header_compiler" >&6; }
1812
1813 # Is the header present?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1815 $as_echo_n "checking $2 presence... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_cpp "$LINENO"; then :
1821 ac_header_preproc=yes
1822 else
1823 ac_header_preproc=no
1824 fi
1825 rm -f conftest.err conftest.i conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1827 $as_echo "$ac_header_preproc" >&6; }
1828
1829 # So? What about this header?
1830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1831 yes:no: )
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1833 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836 ;;
1837 no:yes:* )
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1839 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1841 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1843 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1845 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 ;;
1849 esac
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854 else
1855 eval "$3=\$ac_header_compiler"
1856 fi
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 fi
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863 } # ac_fn_c_check_header_mongrel
1864
1865 # ac_fn_c_try_run LINENO
1866 # ----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868 # that executables *can* be run.
1869 ac_fn_c_try_run ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=$ac_status
1900 fi
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1904
1905 } # ac_fn_c_try_run
1906
1907 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists and can be compiled using the include files in
1910 # INCLUDES, setting the cache variable VAR accordingly.
1911 ac_fn_c_check_header_compile ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918 else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 $4
1922 #include <$2>
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 eval "$3=yes"
1926 else
1927 eval "$3=no"
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_header_compile
1937
1938 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939 # -------------------------------------------
1940 # Tests whether TYPE exists after having included INCLUDES, setting cache
1941 # variable VAR accordingly.
1942 ac_fn_c_check_type ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949 else
1950 eval "$3=no"
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $4
1954 int
1955 main ()
1956 {
1957 if (sizeof ($2))
1958 return 0;
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 $4
1967 int
1968 main ()
1969 {
1970 if (sizeof (($2)))
1971 return 0;
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977
1978 else
1979 eval "$3=yes"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_type
1991
1992 # ac_fn_c_check_func LINENO FUNC VAR
1993 # ----------------------------------
1994 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1995 ac_fn_c_check_func ()
1996 {
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2002 else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2007 #define $2 innocuous_$2
2008
2009 /* System header to define __stub macros and hopefully few prototypes,
2010 which can conflict with char $2 (); below.
2011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2012 <limits.h> exists even on freestanding compilers. */
2013
2014 #ifdef __STDC__
2015 # include <limits.h>
2016 #else
2017 # include <assert.h>
2018 #endif
2019
2020 #undef $2
2021
2022 /* Override any GCC internal prototype to avoid an error.
2023 Use char because int might match the return type of a GCC
2024 builtin and then its argument prototype would still apply. */
2025 #ifdef __cplusplus
2026 extern "C"
2027 #endif
2028 char $2 ();
2029 /* The GNU C library defines this for functions which it implements
2030 to always fail with ENOSYS. Some functions are actually named
2031 something starting with __ and the normal name is an alias. */
2032 #if defined __stub_$2 || defined __stub___$2
2033 choke me
2034 #endif
2035
2036 int
2037 main ()
2038 {
2039 return $2 ();
2040 ;
2041 return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_link "$LINENO"; then :
2045 eval "$3=yes"
2046 else
2047 eval "$3=no"
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext \
2050 conftest$ac_exeext conftest.$ac_ext
2051 fi
2052 eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057 } # ac_fn_c_check_func
2058
2059 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2060 # ---------------------------------------------
2061 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2062 # accordingly.
2063 ac_fn_c_check_decl ()
2064 {
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 as_decl_name=`echo $2|sed 's/ *(.*//'`
2067 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2069 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2070 if eval \${$3+:} false; then :
2071 $as_echo_n "(cached) " >&6
2072 else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 $4
2076 int
2077 main ()
2078 {
2079 #ifndef $as_decl_name
2080 #ifdef __cplusplus
2081 (void) $as_decl_use;
2082 #else
2083 (void) $as_decl_name;
2084 #endif
2085 #endif
2086
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 eval "$3=yes"
2093 else
2094 eval "$3=no"
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 fi
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102
2103 } # ac_fn_c_check_decl
2104
2105 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2106 # --------------------------------------------
2107 # Tries to find the compile-time value of EXPR in a program that includes
2108 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2109 # computed
2110 ac_fn_c_compute_int ()
2111 {
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 if test "$cross_compiling" = yes; then
2114 # Depending upon the size, compute the lo and hi bounds.
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 $4
2118 int
2119 main ()
2120 {
2121 static int test_array [1 - 2 * !(($2) >= 0)];
2122 test_array [0] = 0;
2123 return test_array [0];
2124
2125 ;
2126 return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_lo=0 ac_mid=0
2131 while :; do
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2134 $4
2135 int
2136 main ()
2137 {
2138 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2139 test_array [0] = 0;
2140 return test_array [0];
2141
2142 ;
2143 return 0;
2144 }
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_hi=$ac_mid; break
2148 else
2149 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2150 if test $ac_lo -le $ac_mid; then
2151 ac_lo= ac_hi=
2152 break
2153 fi
2154 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 done
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 $4
2162 int
2163 main ()
2164 {
2165 static int test_array [1 - 2 * !(($2) < 0)];
2166 test_array [0] = 0;
2167 return test_array [0];
2168
2169 ;
2170 return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174 ac_hi=-1 ac_mid=-1
2175 while :; do
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 $4
2179 int
2180 main ()
2181 {
2182 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2183 test_array [0] = 0;
2184 return test_array [0];
2185
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_lo=$ac_mid; break
2192 else
2193 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2194 if test $ac_mid -le $ac_hi; then
2195 ac_lo= ac_hi=
2196 break
2197 fi
2198 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 done
2202 else
2203 ac_lo= ac_hi=
2204 fi
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 # Binary search between lo and hi bounds.
2209 while test "x$ac_lo" != "x$ac_hi"; do
2210 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2213 $4
2214 int
2215 main ()
2216 {
2217 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2218 test_array [0] = 0;
2219 return test_array [0];
2220
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_hi=$ac_mid
2227 else
2228 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2229 fi
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 done
2232 case $ac_lo in #((
2233 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2234 '') ac_retval=1 ;;
2235 esac
2236 else
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 $4
2240 static long int longval () { return $2; }
2241 static unsigned long int ulongval () { return $2; }
2242 #include <stdio.h>
2243 #include <stdlib.h>
2244 int
2245 main ()
2246 {
2247
2248 FILE *f = fopen ("conftest.val", "w");
2249 if (! f)
2250 return 1;
2251 if (($2) < 0)
2252 {
2253 long int i = longval ();
2254 if (i != ($2))
2255 return 1;
2256 fprintf (f, "%ld", i);
2257 }
2258 else
2259 {
2260 unsigned long int i = ulongval ();
2261 if (i != ($2))
2262 return 1;
2263 fprintf (f, "%lu", i);
2264 }
2265 /* Do not output a trailing newline, as this causes \r\n confusion
2266 on some platforms. */
2267 return ferror (f) || fclose (f) != 0;
2268
2269 ;
2270 return 0;
2271 }
2272 _ACEOF
2273 if ac_fn_c_try_run "$LINENO"; then :
2274 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2275 else
2276 ac_retval=1
2277 fi
2278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2279 conftest.$ac_objext conftest.beam conftest.$ac_ext
2280 rm -f conftest.val
2281
2282 fi
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284 as_fn_set_status $ac_retval
2285
2286 } # ac_fn_c_compute_int
2287
2288 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2289 # ----------------------------------------------------
2290 # Tries to find if the field MEMBER exists in type AGGR, after including
2291 # INCLUDES, setting cache variable VAR accordingly.
2292 ac_fn_c_check_member ()
2293 {
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2296 $as_echo_n "checking for $2.$3... " >&6; }
2297 if eval \${$4+:} false; then :
2298 $as_echo_n "(cached) " >&6
2299 else
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 $5
2303 int
2304 main ()
2305 {
2306 static $2 ac_aggr;
2307 if (ac_aggr.$3)
2308 return 0;
2309 ;
2310 return 0;
2311 }
2312 _ACEOF
2313 if ac_fn_c_try_compile "$LINENO"; then :
2314 eval "$4=yes"
2315 else
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 $5
2319 int
2320 main ()
2321 {
2322 static $2 ac_aggr;
2323 if (sizeof ac_aggr.$3)
2324 return 0;
2325 ;
2326 return 0;
2327 }
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330 eval "$4=yes"
2331 else
2332 eval "$4=no"
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 fi
2338 eval ac_res=\$$4
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342
2343 } # ac_fn_c_check_member
2344 cat >config.log <<_ACEOF
2345 This file contains any messages produced by compilers while
2346 running configure, to aid debugging if configure makes a mistake.
2347
2348 It was created by $as_me, which was
2349 generated by GNU Autoconf 2.69. Invocation command line was
2350
2351 $ $0 $@
2352
2353 _ACEOF
2354 exec 5>>config.log
2355 {
2356 cat <<_ASUNAME
2357 ## --------- ##
2358 ## Platform. ##
2359 ## --------- ##
2360
2361 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2362 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2363 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2364 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2365 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2366
2367 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2368 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2369
2370 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2371 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2372 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2373 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2374 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2375 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2376 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2377
2378 _ASUNAME
2379
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
2385 $as_echo "PATH: $as_dir"
2386 done
2387 IFS=$as_save_IFS
2388
2389 } >&5
2390
2391 cat >&5 <<_ACEOF
2392
2393
2394 ## ----------- ##
2395 ## Core tests. ##
2396 ## ----------- ##
2397
2398 _ACEOF
2399
2400
2401 # Keep a trace of the command line.
2402 # Strip out --no-create and --no-recursion so they do not pile up.
2403 # Strip out --silent because we don't want to record it for future runs.
2404 # Also quote any args containing shell meta-characters.
2405 # Make two passes to allow for proper duplicate-argument suppression.
2406 ac_configure_args=
2407 ac_configure_args0=
2408 ac_configure_args1=
2409 ac_must_keep_next=false
2410 for ac_pass in 1 2
2411 do
2412 for ac_arg
2413 do
2414 case $ac_arg in
2415 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2417 | -silent | --silent | --silen | --sile | --sil)
2418 continue ;;
2419 *\'*)
2420 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2421 esac
2422 case $ac_pass in
2423 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424 2)
2425 as_fn_append ac_configure_args1 " '$ac_arg'"
2426 if test $ac_must_keep_next = true; then
2427 ac_must_keep_next=false # Got value, back to normal.
2428 else
2429 case $ac_arg in
2430 *=* | --config-cache | -C | -disable-* | --disable-* \
2431 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2432 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2433 | -with-* | --with-* | -without-* | --without-* | --x)
2434 case "$ac_configure_args0 " in
2435 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2436 esac
2437 ;;
2438 -* ) ac_must_keep_next=true ;;
2439 esac
2440 fi
2441 as_fn_append ac_configure_args " '$ac_arg'"
2442 ;;
2443 esac
2444 done
2445 done
2446 { ac_configure_args0=; unset ac_configure_args0;}
2447 { ac_configure_args1=; unset ac_configure_args1;}
2448
2449 # When interrupted or exit'd, cleanup temporary files, and complete
2450 # config.log. We remove comments because anyway the quotes in there
2451 # would cause problems or look ugly.
2452 # WARNING: Use '\'' to represent an apostrophe within the trap.
2453 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2454 trap 'exit_status=$?
2455 # Save into config.log some information that might help in debugging.
2456 {
2457 echo
2458
2459 $as_echo "## ---------------- ##
2460 ## Cache variables. ##
2461 ## ---------------- ##"
2462 echo
2463 # The following way of writing the cache mishandles newlines in values,
2464 (
2465 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2466 eval ac_val=\$$ac_var
2467 case $ac_val in #(
2468 *${as_nl}*)
2469 case $ac_var in #(
2470 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2471 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2472 esac
2473 case $ac_var in #(
2474 _ | IFS | as_nl) ;; #(
2475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2476 *) { eval $ac_var=; unset $ac_var;} ;;
2477 esac ;;
2478 esac
2479 done
2480 (set) 2>&1 |
2481 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2482 *${as_nl}ac_space=\ *)
2483 sed -n \
2484 "s/'\''/'\''\\\\'\'''\''/g;
2485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2486 ;; #(
2487 *)
2488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2489 ;;
2490 esac |
2491 sort
2492 )
2493 echo
2494
2495 $as_echo "## ----------------- ##
2496 ## Output variables. ##
2497 ## ----------------- ##"
2498 echo
2499 for ac_var in $ac_subst_vars
2500 do
2501 eval ac_val=\$$ac_var
2502 case $ac_val in
2503 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 esac
2505 $as_echo "$ac_var='\''$ac_val'\''"
2506 done | sort
2507 echo
2508
2509 if test -n "$ac_subst_files"; then
2510 $as_echo "## ------------------- ##
2511 ## File substitutions. ##
2512 ## ------------------- ##"
2513 echo
2514 for ac_var in $ac_subst_files
2515 do
2516 eval ac_val=\$$ac_var
2517 case $ac_val in
2518 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 esac
2520 $as_echo "$ac_var='\''$ac_val'\''"
2521 done | sort
2522 echo
2523 fi
2524
2525 if test -s confdefs.h; then
2526 $as_echo "## ----------- ##
2527 ## confdefs.h. ##
2528 ## ----------- ##"
2529 echo
2530 cat confdefs.h
2531 echo
2532 fi
2533 test "$ac_signal" != 0 &&
2534 $as_echo "$as_me: caught signal $ac_signal"
2535 $as_echo "$as_me: exit $exit_status"
2536 } >&5
2537 rm -f core *.core core.conftest.* &&
2538 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2539 exit $exit_status
2540 ' 0
2541 for ac_signal in 1 2 13 15; do
2542 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2543 done
2544 ac_signal=0
2545
2546 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2547 rm -f -r conftest* confdefs.h
2548
2549 $as_echo "/* confdefs.h */" > confdefs.h
2550
2551 # Predefined preprocessor variables.
2552
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_NAME "$PACKAGE_NAME"
2555 _ACEOF
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2559 _ACEOF
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2563 _ACEOF
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_STRING "$PACKAGE_STRING"
2567 _ACEOF
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2571 _ACEOF
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_URL "$PACKAGE_URL"
2575 _ACEOF
2576
2577
2578 # Let the site file select an alternate cache file if it wants to.
2579 # Prefer an explicitly selected file to automatically selected ones.
2580 ac_site_file1=NONE
2581 ac_site_file2=NONE
2582 if test -n "$CONFIG_SITE"; then
2583 # We do not want a PATH search for config.site.
2584 case $CONFIG_SITE in #((
2585 -*) ac_site_file1=./$CONFIG_SITE;;
2586 */*) ac_site_file1=$CONFIG_SITE;;
2587 *) ac_site_file1=./$CONFIG_SITE;;
2588 esac
2589 elif test "x$prefix" != xNONE; then
2590 ac_site_file1=$prefix/share/config.site
2591 ac_site_file2=$prefix/etc/config.site
2592 else
2593 ac_site_file1=$ac_default_prefix/share/config.site
2594 ac_site_file2=$ac_default_prefix/etc/config.site
2595 fi
2596 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2597 do
2598 test "x$ac_site_file" = xNONE && continue
2599 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2601 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2602 sed 's/^/| /' "$ac_site_file" >&5
2603 . "$ac_site_file" \
2604 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 as_fn_error $? "failed to load site script $ac_site_file
2607 See \`config.log' for more details" "$LINENO" 5; }
2608 fi
2609 done
2610
2611 if test -r "$cache_file"; then
2612 # Some versions of bash will fail to source /dev/null (special files
2613 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2614 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2616 $as_echo "$as_me: loading cache $cache_file" >&6;}
2617 case $cache_file in
2618 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2619 *) . "./$cache_file";;
2620 esac
2621 fi
2622 else
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2624 $as_echo "$as_me: creating cache $cache_file" >&6;}
2625 >$cache_file
2626 fi
2627
2628 gt_needs="$gt_needs "
2629 as_fn_append ac_header_list " stdlib.h"
2630 as_fn_append ac_header_list " unistd.h"
2631 as_fn_append ac_header_list " sys/param.h"
2632 as_fn_append ac_func_list " symlink"
2633 # Check that the precious variables saved in the cache have kept the same
2634 # value.
2635 ac_cache_corrupted=false
2636 for ac_var in $ac_precious_vars; do
2637 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2638 eval ac_new_set=\$ac_env_${ac_var}_set
2639 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2640 eval ac_new_val=\$ac_env_${ac_var}_value
2641 case $ac_old_set,$ac_new_set in
2642 set,)
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2644 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2645 ac_cache_corrupted=: ;;
2646 ,set)
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2648 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2649 ac_cache_corrupted=: ;;
2650 ,);;
2651 *)
2652 if test "x$ac_old_val" != "x$ac_new_val"; then
2653 # differences in whitespace do not lead to failure.
2654 ac_old_val_w=`echo x $ac_old_val`
2655 ac_new_val_w=`echo x $ac_new_val`
2656 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2658 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2659 ac_cache_corrupted=:
2660 else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2662 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2663 eval $ac_var=\$ac_old_val
2664 fi
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2666 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2668 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2669 fi;;
2670 esac
2671 # Pass precious variables to config.status.
2672 if test "$ac_new_set" = set; then
2673 case $ac_new_val in
2674 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2675 *) ac_arg=$ac_var=$ac_new_val ;;
2676 esac
2677 case " $ac_configure_args " in
2678 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2679 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2680 esac
2681 fi
2682 done
2683 if $ac_cache_corrupted; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2687 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2688 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2689 fi
2690 ## -------------------- ##
2691 ## Main body of script. ##
2692 ## -------------------- ##
2693
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699
2700
2701
2702 ac_aux_dir=
2703 for ac_dir in config "$srcdir"/config; do
2704 if test -f "$ac_dir/install-sh"; then
2705 ac_aux_dir=$ac_dir
2706 ac_install_sh="$ac_aux_dir/install-sh -c"
2707 break
2708 elif test -f "$ac_dir/install.sh"; then
2709 ac_aux_dir=$ac_dir
2710 ac_install_sh="$ac_aux_dir/install.sh -c"
2711 break
2712 elif test -f "$ac_dir/shtool"; then
2713 ac_aux_dir=$ac_dir
2714 ac_install_sh="$ac_aux_dir/shtool install -c"
2715 break
2716 fi
2717 done
2718 if test -z "$ac_aux_dir"; then
2719 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2720 fi
2721
2722 # These three variables are undocumented and unsupported,
2723 # and are intended to be withdrawn in a future Autoconf release.
2724 # They can cause serious problems if a builder's source tree is in a directory
2725 # whose full name contains unusual characters.
2726 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2727 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2728 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2729
2730
2731 ac_config_headers="$ac_config_headers lib/config.h"
2732
2733
2734 MCONFIG=./MCONFIG
2735
2736 BINARY_TYPE=bin
2737 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2738 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2739 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2740 | tr \" " "`
2741 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2742 MONTH=`echo $DATE | awk -F- '{print $2}'`
2743 YEAR=`echo $DATE | awk -F- '{print $3}'`
2744
2745 if expr $YEAR ">" 1900 > /dev/null ; then
2746 E2FSPROGS_YEAR=$YEAR
2747 elif expr $YEAR ">" 90 >/dev/null ; then
2748 E2FSPROGS_YEAR=19$YEAR
2749 else
2750 E2FSPROGS_YEAR=20$YEAR
2751 fi
2752
2753 case $MONTH in
2754 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2755 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2756 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2757 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2758 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2759 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2760 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2761 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2762 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2763 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2764 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2765 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2766 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2767 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2768 esac
2769
2770 base_ver=`echo $E2FSPROGS_VERSION | \
2771 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2772
2773 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2774
2775 case $E2FSPROGS_VERSION in
2776 *-WIP|pre-*)
2777 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2778 ;;
2779 *)
2780 E2FSPROGS_PKGVER="$base_ver"
2781 ;;
2782 esac
2783
2784 unset DATE MONTH YEAR base_ver pre_vers date_spec
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2786 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2788 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2789
2790
2791
2792
2793
2794 WITH_DIET_LIBC=
2795
2796 # Check whether --with-diet-libc was given.
2797 if test "${with_diet_libc+set}" = set; then :
2798 withval=$with_diet_libc; CC="diet cc -nostdinc"
2799 WITH_DIET_LIBC=yes
2800 if test -z "$LIBS"
2801 then
2802 LIBS="-lcompat"
2803 else
2804 LIBS="$LIBS -lcompat"
2805 fi
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2807 $as_echo "CC=$CC" >&6; }
2808 fi
2809 # Make sure we can run config.sub.
2810 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2811 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2812
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2814 $as_echo_n "checking build system type... " >&6; }
2815 if ${ac_cv_build+:} false; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 ac_build_alias=$build_alias
2819 test "x$ac_build_alias" = x &&
2820 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2821 test "x$ac_build_alias" = x &&
2822 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2823 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2825
2826 fi
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2828 $as_echo "$ac_cv_build" >&6; }
2829 case $ac_cv_build in
2830 *-*-*) ;;
2831 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2832 esac
2833 build=$ac_cv_build
2834 ac_save_IFS=$IFS; IFS='-'
2835 set x $ac_cv_build
2836 shift
2837 build_cpu=$1
2838 build_vendor=$2
2839 shift; shift
2840 # Remember, the first character of IFS is used to create $*,
2841 # except with old shells:
2842 build_os=$*
2843 IFS=$ac_save_IFS
2844 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2845
2846
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2848 $as_echo_n "checking host system type... " >&6; }
2849 if ${ac_cv_host+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test "x$host_alias" = x; then
2853 ac_cv_host=$ac_cv_build
2854 else
2855 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2856 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2857 fi
2858
2859 fi
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2861 $as_echo "$ac_cv_host" >&6; }
2862 case $ac_cv_host in
2863 *-*-*) ;;
2864 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2865 esac
2866 host=$ac_cv_host
2867 ac_save_IFS=$IFS; IFS='-'
2868 set x $ac_cv_host
2869 shift
2870 host_cpu=$1
2871 host_vendor=$2
2872 shift; shift
2873 # Remember, the first character of IFS is used to create $*,
2874 # except with old shells:
2875 host_os=$*
2876 IFS=$ac_save_IFS
2877 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2878
2879
2880 DLOPEN_LIB=''
2881 ac_ext=c
2882 ac_cpp='$CPP $CPPFLAGS'
2883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886 if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2888 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_CC+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 fi
2922
2923
2924 fi
2925 if test -z "$ac_cv_prog_CC"; then
2926 ac_ct_CC=$CC
2927 # Extract the first word of "gcc", so it can be a program name with args.
2928 set dummy gcc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$ac_ct_CC"; then
2935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_ac_ct_CC="gcc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2955 if test -n "$ac_ct_CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2957 $as_echo "$ac_ct_CC" >&6; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963 if test "x$ac_ct_CC" = x; then
2964 CC=""
2965 else
2966 case $cross_compiling:$ac_tool_warned in
2967 yes:)
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972 CC=$ac_ct_CC
2973 fi
2974 else
2975 CC="$ac_cv_prog_CC"
2976 fi
2977
2978 if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2981 set dummy ${ac_tool_prefix}cc; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_CC+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_CC="${ac_tool_prefix}cc"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016
3017 fi
3018 fi
3019 if test -z "$CC"; then
3020 # Extract the first word of "cc", so it can be a program name with args.
3021 set dummy cc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 ac_prog_rejected=no
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3039 ac_prog_rejected=yes
3040 continue
3041 fi
3042 ac_cv_prog_CC="cc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 if test $ac_prog_rejected = yes; then
3051 # We found a bogon in the path, so make sure we never use it.
3052 set dummy $ac_cv_prog_CC
3053 shift
3054 if test $# != 0; then
3055 # We chose a different compiler from the bogus one.
3056 # However, it has the same basename, so the bogon will be chosen
3057 # first if we set CC to just the basename; use the full file name.
3058 shift
3059 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3060 fi
3061 fi
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3068 else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074 fi
3075 if test -z "$CC"; then
3076 if test -n "$ac_tool_prefix"; then
3077 for ac_prog in cl.exe
3078 do
3079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_CC+:} false; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100 done
3101 done
3102 IFS=$as_save_IFS
3103
3104 fi
3105 fi
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115
3116 test -n "$CC" && break
3117 done
3118 fi
3119 if test -z "$CC"; then
3120 ac_ct_CC=$CC
3121 for ac_prog in cl.exe
3122 do
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy $ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -n "$ac_ct_CC"; then
3131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_ac_ct_CC="$ac_prog"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144 done
3145 done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3151 if test -n "$ac_ct_CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3153 $as_echo "$ac_ct_CC" >&6; }
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160 test -n "$ac_ct_CC" && break
3161 done
3162
3163 if test "x$ac_ct_CC" = x; then
3164 CC=""
3165 else
3166 case $cross_compiling:$ac_tool_warned in
3167 yes:)
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170 ac_tool_warned=yes ;;
3171 esac
3172 CC=$ac_ct_CC
3173 fi
3174 fi
3175
3176 fi
3177
3178
3179 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error $? "no acceptable C compiler found in \$PATH
3182 See \`config.log' for more details" "$LINENO" 5; }
3183
3184 # Provide some information about the compiler.
3185 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3186 set X $ac_compile
3187 ac_compiler=$2
3188 for ac_option in --version -v -V -qversion; do
3189 { { ac_try="$ac_compiler $ac_option >&5"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3197 ac_status=$?
3198 if test -s conftest.err; then
3199 sed '10a\
3200 ... rest of stderr output deleted ...
3201 10q' conftest.err >conftest.er1
3202 cat conftest.er1 >&5
3203 fi
3204 rm -f conftest.er1 conftest.err
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }
3207 done
3208
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3211
3212 int
3213 main ()
3214 {
3215
3216 ;
3217 return 0;
3218 }
3219 _ACEOF
3220 ac_clean_files_save=$ac_clean_files
3221 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3222 # Try to create an executable without -o first, disregard a.out.
3223 # It will help us diagnose broken compilers, and finding out an intuition
3224 # of exeext.
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3226 $as_echo_n "checking whether the C compiler works... " >&6; }
3227 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3228
3229 # The possible output files:
3230 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3231
3232 ac_rmfiles=
3233 for ac_file in $ac_files
3234 do
3235 case $ac_file in
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3237 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3238 esac
3239 done
3240 rm -f $ac_rmfiles
3241
3242 if { { ac_try="$ac_link_default"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_link_default") 2>&5
3250 ac_status=$?
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; then :
3253 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3254 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3255 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3256 # so that the user can short-circuit this test for compilers unknown to
3257 # Autoconf.
3258 for ac_file in $ac_files ''
3259 do
3260 test -f "$ac_file" || continue
3261 case $ac_file in
3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3263 ;;
3264 [ab].out )
3265 # We found the default executable, but exeext='' is most
3266 # certainly right.
3267 break;;
3268 *.* )
3269 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3270 then :; else
3271 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272 fi
3273 # We set ac_cv_exeext here because the later test for it is not
3274 # safe: cross compilers may not add the suffix if given an `-o'
3275 # argument, so we may need to know it at that point already.
3276 # Even if this section looks crufty: it has the advantage of
3277 # actually working.
3278 break;;
3279 * )
3280 break;;
3281 esac
3282 done
3283 test "$ac_cv_exeext" = no && ac_cv_exeext=
3284
3285 else
3286 ac_file=''
3287 fi
3288 if test -z "$ac_file"; then :
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 $as_echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error 77 "C compiler cannot create executables
3297 See \`config.log' for more details" "$LINENO" 5; }
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3300 $as_echo "yes" >&6; }
3301 fi
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3303 $as_echo_n "checking for C compiler default output file name... " >&6; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3305 $as_echo "$ac_file" >&6; }
3306 ac_exeext=$ac_cv_exeext
3307
3308 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3309 ac_clean_files=$ac_clean_files_save
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3311 $as_echo_n "checking for suffix of executables... " >&6; }
3312 if { { ac_try="$ac_link"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 $as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_link") 2>&5
3320 ac_status=$?
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }; then :
3323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3324 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3325 # work properly (i.e., refer to `conftest.exe'), while it won't with
3326 # `rm'.
3327 for ac_file in conftest.exe conftest conftest.*; do
3328 test -f "$ac_file" || continue
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 break;;
3333 * ) break;;
3334 esac
3335 done
3336 else
3337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3340 See \`config.log' for more details" "$LINENO" 5; }
3341 fi
3342 rm -f conftest conftest$ac_cv_exeext
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3344 $as_echo "$ac_cv_exeext" >&6; }
3345
3346 rm -f conftest.$ac_ext
3347 EXEEXT=$ac_cv_exeext
3348 ac_exeext=$EXEEXT
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351 #include <stdio.h>
3352 int
3353 main ()
3354 {
3355 FILE *f = fopen ("conftest.out", "w");
3356 return ferror (f) || fclose (f) != 0;
3357
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 ac_clean_files="$ac_clean_files conftest.out"
3363 # Check that the compiler produces executables we can run. If not, either
3364 # the compiler is broken, or we cross compile.
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3366 $as_echo_n "checking whether we are cross compiling... " >&6; }
3367 if test "$cross_compiling" != yes; then
3368 { { ac_try="$ac_link"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_link") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }
3379 if { ac_try='./conftest$ac_cv_exeext'
3380 { { case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; }; then
3390 cross_compiling=no
3391 else
3392 if test "$cross_compiling" = maybe; then
3393 cross_compiling=yes
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot run C compiled programs.
3398 If you meant to cross compile, use \`--host'.
3399 See \`config.log' for more details" "$LINENO" 5; }
3400 fi
3401 fi
3402 fi
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3404 $as_echo "$cross_compiling" >&6; }
3405
3406 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3407 ac_clean_files=$ac_clean_files_save
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3409 $as_echo_n "checking for suffix of object files... " >&6; }
3410 if ${ac_cv_objext+:} false; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415
3416 int
3417 main ()
3418 {
3419
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.o conftest.obj
3425 if { { ac_try="$ac_compile"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_compile") 2>&5
3433 ac_status=$?
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 for ac_file in conftest.o conftest.obj conftest.*; do
3437 test -f "$ac_file" || continue;
3438 case $ac_file in
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3440 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3441 break;;
3442 esac
3443 done
3444 else
3445 $as_echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "cannot compute suffix of object files: cannot compile
3451 See \`config.log' for more details" "$LINENO" 5; }
3452 fi
3453 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3456 $as_echo "$ac_cv_objext" >&6; }
3457 OBJEXT=$ac_cv_objext
3458 ac_objext=$OBJEXT
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3460 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3461 if ${ac_cv_c_compiler_gnu+:} false; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470 #ifndef __GNUC__
3471 choke me
3472 #endif
3473
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479 ac_compiler_gnu=yes
3480 else
3481 ac_compiler_gnu=no
3482 fi
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3485
3486 fi
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3488 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3489 if test $ac_compiler_gnu = yes; then
3490 GCC=yes
3491 else
3492 GCC=
3493 fi
3494 ac_test_CFLAGS=${CFLAGS+set}
3495 ac_save_CFLAGS=$CFLAGS
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3497 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3498 if ${ac_cv_prog_cc_g+:} false; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 ac_save_c_werror_flag=$ac_c_werror_flag
3502 ac_c_werror_flag=yes
3503 ac_cv_prog_cc_g=no
3504 CFLAGS="-g"
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507
3508 int
3509 main ()
3510 {
3511
3512 ;
3513 return 0;
3514 }
3515 _ACEOF
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_cv_prog_cc_g=yes
3518 else
3519 CFLAGS=""
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3522
3523 int
3524 main ()
3525 {
3526
3527 ;
3528 return 0;
3529 }
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532
3533 else
3534 ac_c_werror_flag=$ac_save_c_werror_flag
3535 CFLAGS="-g"
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538
3539 int
3540 main ()
3541 {
3542
3543 ;
3544 return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_cv_prog_cc_g=yes
3549 fi
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 ac_c_werror_flag=$ac_save_c_werror_flag
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3558 $as_echo "$ac_cv_prog_cc_g" >&6; }
3559 if test "$ac_test_CFLAGS" = set; then
3560 CFLAGS=$ac_save_CFLAGS
3561 elif test $ac_cv_prog_cc_g = yes; then
3562 if test "$GCC" = yes; then
3563 CFLAGS="-g -O2"
3564 else
3565 CFLAGS="-g"
3566 fi
3567 else
3568 if test "$GCC" = yes; then
3569 CFLAGS="-O2"
3570 else
3571 CFLAGS=
3572 fi
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3575 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3576 if ${ac_cv_prog_cc_c89+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 ac_cv_prog_cc_c89=no
3580 ac_save_CC=$CC
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583 #include <stdarg.h>
3584 #include <stdio.h>
3585 struct stat;
3586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3587 struct buf { int x; };
3588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589 static char *e (p, i)
3590 char **p;
3591 int i;
3592 {
3593 return p[i];
3594 }
3595 static char *f (char * (*g) (char **, int), char **p, ...)
3596 {
3597 char *s;
3598 va_list v;
3599 va_start (v,p);
3600 s = g (p, va_arg (v,int));
3601 va_end (v);
3602 return s;
3603 }
3604
3605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3606 function prototypes and stuff, but not '\xHH' hex character constants.
3607 These don't provoke an error unfortunately, instead are silently treated
3608 as 'x'. The following induces an error, until -std is added to get
3609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3610 array size at least. It's necessary to write '\x00'==0 to get something
3611 that's true only with -std. */
3612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3613
3614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615 inside strings and character constants. */
3616 #define FOO(x) 'x'
3617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3618
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623 int argc;
3624 char **argv;
3625 int
3626 main ()
3627 {
3628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3629 ;
3630 return 0;
3631 }
3632 _ACEOF
3633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3635 do
3636 CC="$ac_save_CC $ac_arg"
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_cv_prog_cc_c89=$ac_arg
3639 fi
3640 rm -f core conftest.err conftest.$ac_objext
3641 test "x$ac_cv_prog_cc_c89" != "xno" && break
3642 done
3643 rm -f conftest.$ac_ext
3644 CC=$ac_save_CC
3645
3646 fi
3647 # AC_CACHE_VAL
3648 case "x$ac_cv_prog_cc_c89" in
3649 x)
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3651 $as_echo "none needed" >&6; } ;;
3652 xno)
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3654 $as_echo "unsupported" >&6; } ;;
3655 *)
3656 CC="$CC $ac_cv_prog_cc_c89"
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3658 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3659 esac
3660 if test "x$ac_cv_prog_cc_c89" != xno; then :
3661
3662 fi
3663
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
3670
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3672 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3673 if ${ac_cv_lib_dl_dlopen+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 ac_check_lib_save_LIBS=$LIBS
3677 LIBS="-ldl $LIBS"
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3680
3681 /* Override any GCC internal prototype to avoid an error.
3682 Use char because int might match the return type of a GCC
3683 builtin and then its argument prototype would still apply. */
3684 #ifdef __cplusplus
3685 extern "C"
3686 #endif
3687 char dlopen ();
3688 int
3689 main ()
3690 {
3691 return dlopen ();
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 if ac_fn_c_try_link "$LINENO"; then :
3697 ac_cv_lib_dl_dlopen=yes
3698 else
3699 ac_cv_lib_dl_dlopen=no
3700 fi
3701 rm -f core conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext
3703 LIBS=$ac_check_lib_save_LIBS
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3706 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3707 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3708 DLOPEN_LIB=-ldl
3709
3710 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3711
3712 fi
3713
3714
3715
3716 # Check whether --with-cc was given.
3717 if test "${with_cc+set}" = set; then :
3718 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3719 fi
3720
3721
3722 # Check whether --with-ccopts was given.
3723 if test "${with_ccopts+set}" = set; then :
3724 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3725 fi
3726
3727
3728 # Check whether --with-ldopts was given.
3729 if test "${with_ldopts+set}" = set; then :
3730 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3731 fi
3732
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738 if test -n "$ac_tool_prefix"; then
3739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if ${ac_cv_prog_CC+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 if test -n "$CC"; then
3747 ac_cv_prog_CC="$CC" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760 done
3761 done
3762 IFS=$as_save_IFS
3763
3764 fi
3765 fi
3766 CC=$ac_cv_prog_CC
3767 if test -n "$CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3769 $as_echo "$CC" >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3773 fi
3774
3775
3776 fi
3777 if test -z "$ac_cv_prog_CC"; then
3778 ac_ct_CC=$CC
3779 # Extract the first word of "gcc", so it can be a program name with args.
3780 set dummy gcc; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 if test -n "$ac_ct_CC"; then
3787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796 ac_cv_prog_ac_ct_CC="gcc"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3799 fi
3800 done
3801 done
3802 IFS=$as_save_IFS
3803
3804 fi
3805 fi
3806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3807 if test -n "$ac_ct_CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3809 $as_echo "$ac_ct_CC" >&6; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 fi
3814
3815 if test "x$ac_ct_CC" = x; then
3816 CC=""
3817 else
3818 case $cross_compiling:$ac_tool_warned in
3819 yes:)
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3822 ac_tool_warned=yes ;;
3823 esac
3824 CC=$ac_ct_CC
3825 fi
3826 else
3827 CC="$ac_cv_prog_CC"
3828 fi
3829
3830 if test -z "$CC"; then
3831 if test -n "$ac_tool_prefix"; then
3832 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3833 set dummy ${ac_tool_prefix}cc; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if ${ac_cv_prog_CC+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 if test -n "$CC"; then
3840 ac_cv_prog_CC="$CC" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_CC="${ac_tool_prefix}cc"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 break 2
3852 fi
3853 done
3854 done
3855 IFS=$as_save_IFS
3856
3857 fi
3858 fi
3859 CC=$ac_cv_prog_CC
3860 if test -n "$CC"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3862 $as_echo "$CC" >&6; }
3863 else
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3866 fi
3867
3868
3869 fi
3870 fi
3871 if test -z "$CC"; then
3872 # Extract the first word of "cc", so it can be a program name with args.
3873 set dummy cc; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_prog_CC+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 if test -n "$CC"; then
3880 ac_cv_prog_CC="$CC" # Let the user override the test.
3881 else
3882 ac_prog_rejected=no
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3891 ac_prog_rejected=yes
3892 continue
3893 fi
3894 ac_cv_prog_CC="cc"
3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898 done
3899 done
3900 IFS=$as_save_IFS
3901
3902 if test $ac_prog_rejected = yes; then
3903 # We found a bogon in the path, so make sure we never use it.
3904 set dummy $ac_cv_prog_CC
3905 shift
3906 if test $# != 0; then
3907 # We chose a different compiler from the bogus one.
3908 # However, it has the same basename, so the bogon will be chosen
3909 # first if we set CC to just the basename; use the full file name.
3910 shift
3911 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3912 fi
3913 fi
3914 fi
3915 fi
3916 CC=$ac_cv_prog_CC
3917 if test -n "$CC"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3920 else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3923 fi
3924
3925
3926 fi
3927 if test -z "$CC"; then
3928 if test -n "$ac_tool_prefix"; then
3929 for ac_prog in cl.exe
3930 do
3931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if ${ac_cv_prog_CC+:} false; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 if test -n "$CC"; then
3939 ac_cv_prog_CC="$CC" # Let the user override the test.
3940 else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952 done
3953 done
3954 IFS=$as_save_IFS
3955
3956 fi
3957 fi
3958 CC=$ac_cv_prog_CC
3959 if test -n "$CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3961 $as_echo "$CC" >&6; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3965 fi
3966
3967
3968 test -n "$CC" && break
3969 done
3970 fi
3971 if test -z "$CC"; then
3972 ac_ct_CC=$CC
3973 for ac_prog in cl.exe
3974 do
3975 # Extract the first word of "$ac_prog", so it can be a program name with args.
3976 set dummy $ac_prog; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -n "$ac_ct_CC"; then
3983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992 ac_cv_prog_ac_ct_CC="$ac_prog"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3995 fi
3996 done
3997 done
3998 IFS=$as_save_IFS
3999
4000 fi
4001 fi
4002 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4003 if test -n "$ac_ct_CC"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4005 $as_echo "$ac_ct_CC" >&6; }
4006 else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4009 fi
4010
4011
4012 test -n "$ac_ct_CC" && break
4013 done
4014
4015 if test "x$ac_ct_CC" = x; then
4016 CC=""
4017 else
4018 case $cross_compiling:$ac_tool_warned in
4019 yes:)
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022 ac_tool_warned=yes ;;
4023 esac
4024 CC=$ac_ct_CC
4025 fi
4026 fi
4027
4028 fi
4029
4030
4031 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error $? "no acceptable C compiler found in \$PATH
4034 See \`config.log' for more details" "$LINENO" 5; }
4035
4036 # Provide some information about the compiler.
4037 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4038 set X $ac_compile
4039 ac_compiler=$2
4040 for ac_option in --version -v -V -qversion; do
4041 { { ac_try="$ac_compiler $ac_option >&5"
4042 case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045 esac
4046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047 $as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4049 ac_status=$?
4050 if test -s conftest.err; then
4051 sed '10a\
4052 ... rest of stderr output deleted ...
4053 10q' conftest.err >conftest.er1
4054 cat conftest.er1 >&5
4055 fi
4056 rm -f conftest.er1 conftest.err
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }
4059 done
4060
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4062 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4063 if ${ac_cv_c_compiler_gnu+:} false; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4068
4069 int
4070 main ()
4071 {
4072 #ifndef __GNUC__
4073 choke me
4074 #endif
4075
4076 ;
4077 return 0;
4078 }
4079 _ACEOF
4080 if ac_fn_c_try_compile "$LINENO"; then :
4081 ac_compiler_gnu=yes
4082 else
4083 ac_compiler_gnu=no
4084 fi
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4087
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4090 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4091 if test $ac_compiler_gnu = yes; then
4092 GCC=yes
4093 else
4094 GCC=
4095 fi
4096 ac_test_CFLAGS=${CFLAGS+set}
4097 ac_save_CFLAGS=$CFLAGS
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4099 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4100 if ${ac_cv_prog_cc_g+:} false; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 ac_save_c_werror_flag=$ac_c_werror_flag
4104 ac_c_werror_flag=yes
4105 ac_cv_prog_cc_g=no
4106 CFLAGS="-g"
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109
4110 int
4111 main ()
4112 {
4113
4114 ;
4115 return 0;
4116 }
4117 _ACEOF
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119 ac_cv_prog_cc_g=yes
4120 else
4121 CFLAGS=""
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124
4125 int
4126 main ()
4127 {
4128
4129 ;
4130 return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134
4135 else
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4137 CFLAGS="-g"
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140
4141 int
4142 main ()
4143 {
4144
4145 ;
4146 return 0;
4147 }
4148 _ACEOF
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_cv_prog_cc_g=yes
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 fi
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 fi
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4158 fi
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4160 $as_echo "$ac_cv_prog_cc_g" >&6; }
4161 if test "$ac_test_CFLAGS" = set; then
4162 CFLAGS=$ac_save_CFLAGS
4163 elif test $ac_cv_prog_cc_g = yes; then
4164 if test "$GCC" = yes; then
4165 CFLAGS="-g -O2"
4166 else
4167 CFLAGS="-g"
4168 fi
4169 else
4170 if test "$GCC" = yes; then
4171 CFLAGS="-O2"
4172 else
4173 CFLAGS=
4174 fi
4175 fi
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4177 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4178 if ${ac_cv_prog_cc_c89+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 ac_cv_prog_cc_c89=no
4182 ac_save_CC=$CC
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <stdarg.h>
4186 #include <stdio.h>
4187 struct stat;
4188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4189 struct buf { int x; };
4190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4191 static char *e (p, i)
4192 char **p;
4193 int i;
4194 {
4195 return p[i];
4196 }
4197 static char *f (char * (*g) (char **, int), char **p, ...)
4198 {
4199 char *s;
4200 va_list v;
4201 va_start (v,p);
4202 s = g (p, va_arg (v,int));
4203 va_end (v);
4204 return s;
4205 }
4206
4207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4208 function prototypes and stuff, but not '\xHH' hex character constants.
4209 These don't provoke an error unfortunately, instead are silently treated
4210 as 'x'. The following induces an error, until -std is added to get
4211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4212 array size at least. It's necessary to write '\x00'==0 to get something
4213 that's true only with -std. */
4214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4215
4216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4217 inside strings and character constants. */
4218 #define FOO(x) 'x'
4219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4220
4221 int test (int i, double x);
4222 struct s1 {int (*f) (int a);};
4223 struct s2 {int (*f) (double a);};
4224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4225 int argc;
4226 char **argv;
4227 int
4228 main ()
4229 {
4230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4231 ;
4232 return 0;
4233 }
4234 _ACEOF
4235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4237 do
4238 CC="$ac_save_CC $ac_arg"
4239 if ac_fn_c_try_compile "$LINENO"; then :
4240 ac_cv_prog_cc_c89=$ac_arg
4241 fi
4242 rm -f core conftest.err conftest.$ac_objext
4243 test "x$ac_cv_prog_cc_c89" != "xno" && break
4244 done
4245 rm -f conftest.$ac_ext
4246 CC=$ac_save_CC
4247
4248 fi
4249 # AC_CACHE_VAL
4250 case "x$ac_cv_prog_cc_c89" in
4251 x)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4253 $as_echo "none needed" >&6; } ;;
4254 xno)
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4256 $as_echo "unsupported" >&6; } ;;
4257 *)
4258 CC="$CC $ac_cv_prog_cc_c89"
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4260 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4261 esac
4262 if test "x$ac_cv_prog_cc_c89" != xno; then :
4263
4264 fi
4265
4266 ac_ext=c
4267 ac_cpp='$CPP $CPPFLAGS'
4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272 if test "$GCC" = yes; then
4273 RDYNAMIC="-rdynamic"
4274
4275 fi
4276 ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4282 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4283 # On Suns, sometimes $CPP names a directory.
4284 if test -n "$CPP" && test -d "$CPP"; then
4285 CPP=
4286 fi
4287 if test -z "$CPP"; then
4288 if ${ac_cv_prog_CPP+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 # Double quotes because CPP needs to be expanded
4292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4293 do
4294 ac_preproc_ok=false
4295 for ac_c_preproc_warn_flag in '' yes
4296 do
4297 # Use a header file that comes with gcc, so configuring glibc
4298 # with a fresh cross-compiler works.
4299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4300 # <limits.h> exists even on freestanding compilers.
4301 # On the NeXT, cc -E runs the code through the compiler's parser,
4302 # not just through cpp. "Syntax error" is here to catch this case.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 #ifdef __STDC__
4306 # include <limits.h>
4307 #else
4308 # include <assert.h>
4309 #endif
4310 Syntax error
4311 _ACEOF
4312 if ac_fn_c_try_cpp "$LINENO"; then :
4313
4314 else
4315 # Broken: fails on valid input.
4316 continue
4317 fi
4318 rm -f conftest.err conftest.i conftest.$ac_ext
4319
4320 # OK, works on sane cases. Now check whether nonexistent headers
4321 # can be detected and how.
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324 #include <ac_nonexistent.h>
4325 _ACEOF
4326 if ac_fn_c_try_cpp "$LINENO"; then :
4327 # Broken: success on invalid input.
4328 continue
4329 else
4330 # Passes both tests.
4331 ac_preproc_ok=:
4332 break
4333 fi
4334 rm -f conftest.err conftest.i conftest.$ac_ext
4335
4336 done
4337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4338 rm -f conftest.i conftest.err conftest.$ac_ext
4339 if $ac_preproc_ok; then :
4340 break
4341 fi
4342
4343 done
4344 ac_cv_prog_CPP=$CPP
4345
4346 fi
4347 CPP=$ac_cv_prog_CPP
4348 else
4349 ac_cv_prog_CPP=$CPP
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4352 $as_echo "$CPP" >&6; }
4353 ac_preproc_ok=false
4354 for ac_c_preproc_warn_flag in '' yes
4355 do
4356 # Use a header file that comes with gcc, so configuring glibc
4357 # with a fresh cross-compiler works.
4358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4359 # <limits.h> exists even on freestanding compilers.
4360 # On the NeXT, cc -E runs the code through the compiler's parser,
4361 # not just through cpp. "Syntax error" is here to catch this case.
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #ifdef __STDC__
4365 # include <limits.h>
4366 #else
4367 # include <assert.h>
4368 #endif
4369 Syntax error
4370 _ACEOF
4371 if ac_fn_c_try_cpp "$LINENO"; then :
4372
4373 else
4374 # Broken: fails on valid input.
4375 continue
4376 fi
4377 rm -f conftest.err conftest.i conftest.$ac_ext
4378
4379 # OK, works on sane cases. Now check whether nonexistent headers
4380 # can be detected and how.
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #include <ac_nonexistent.h>
4384 _ACEOF
4385 if ac_fn_c_try_cpp "$LINENO"; then :
4386 # Broken: success on invalid input.
4387 continue
4388 else
4389 # Passes both tests.
4390 ac_preproc_ok=:
4391 break
4392 fi
4393 rm -f conftest.err conftest.i conftest.$ac_ext
4394
4395 done
4396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4397 rm -f conftest.i conftest.err conftest.$ac_ext
4398 if $ac_preproc_ok; then :
4399
4400 else
4401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4403 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4404 See \`config.log' for more details" "$LINENO" 5; }
4405 fi
4406
4407 ac_ext=c
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4414 $as_echo_n "checking for additional special compiler flags... " >&6; }
4415 if test "$GCC" = yes
4416 then
4417 case "$host_cpu" in
4418 alpha) addcflags="-mieee" ;;
4419 esac
4420 fi
4421 if test "x$addcflags" != x
4422 then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4424 $as_echo "$addcflags" >&6; }
4425 CFLAGS="$addcflags $CFLAGS"
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4428 $as_echo "(none)" >&6; }
4429 fi
4430
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4432 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4433 if ${ac_cv_path_GREP+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if test -z "$GREP"; then
4437 ac_path_GREP_found=false
4438 # Loop through the user's path and test for each of PROGNAME-LIST
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4441 do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_prog in grep ggrep; do
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4447 as_fn_executable_p "$ac_path_GREP" || continue
4448 # Check for GNU ac_path_GREP and select it if it is found.
4449 # Check for GNU $ac_path_GREP
4450 case `"$ac_path_GREP" --version 2>&1` in
4451 *GNU*)
4452 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4453 *)
4454 ac_count=0
4455 $as_echo_n 0123456789 >"conftest.in"
4456 while :
4457 do
4458 cat "conftest.in" "conftest.in" >"conftest.tmp"
4459 mv "conftest.tmp" "conftest.in"
4460 cp "conftest.in" "conftest.nl"
4461 $as_echo 'GREP' >> "conftest.nl"
4462 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4464 as_fn_arith $ac_count + 1 && ac_count=$as_val
4465 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4466 # Best one so far, save it but keep looking for a better one
4467 ac_cv_path_GREP="$ac_path_GREP"
4468 ac_path_GREP_max=$ac_count
4469 fi
4470 # 10*(2^10) chars as input seems more than enough
4471 test $ac_count -gt 10 && break
4472 done
4473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4474 esac
4475
4476 $ac_path_GREP_found && break 3
4477 done
4478 done
4479 done
4480 IFS=$as_save_IFS
4481 if test -z "$ac_cv_path_GREP"; then
4482 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4483 fi
4484 else
4485 ac_cv_path_GREP=$GREP
4486 fi
4487
4488 fi
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4490 $as_echo "$ac_cv_path_GREP" >&6; }
4491 GREP="$ac_cv_path_GREP"
4492
4493
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4495 $as_echo_n "checking for egrep... " >&6; }
4496 if ${ac_cv_path_EGREP+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4500 then ac_cv_path_EGREP="$GREP -E"
4501 else
4502 if test -z "$EGREP"; then
4503 ac_path_EGREP_found=false
4504 # Loop through the user's path and test for each of PROGNAME-LIST
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507 do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_prog in egrep; do
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4513 as_fn_executable_p "$ac_path_EGREP" || continue
4514 # Check for GNU ac_path_EGREP and select it if it is found.
4515 # Check for GNU $ac_path_EGREP
4516 case `"$ac_path_EGREP" --version 2>&1` in
4517 *GNU*)
4518 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4519 *)
4520 ac_count=0
4521 $as_echo_n 0123456789 >"conftest.in"
4522 while :
4523 do
4524 cat "conftest.in" "conftest.in" >"conftest.tmp"
4525 mv "conftest.tmp" "conftest.in"
4526 cp "conftest.in" "conftest.nl"
4527 $as_echo 'EGREP' >> "conftest.nl"
4528 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530 as_fn_arith $ac_count + 1 && ac_count=$as_val
4531 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4532 # Best one so far, save it but keep looking for a better one
4533 ac_cv_path_EGREP="$ac_path_EGREP"
4534 ac_path_EGREP_max=$ac_count
4535 fi
4536 # 10*(2^10) chars as input seems more than enough
4537 test $ac_count -gt 10 && break
4538 done
4539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540 esac
4541
4542 $ac_path_EGREP_found && break 3
4543 done
4544 done
4545 done
4546 IFS=$as_save_IFS
4547 if test -z "$ac_cv_path_EGREP"; then
4548 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549 fi
4550 else
4551 ac_cv_path_EGREP=$EGREP
4552 fi
4553
4554 fi
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4557 $as_echo "$ac_cv_path_EGREP" >&6; }
4558 EGREP="$ac_cv_path_EGREP"
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4562 $as_echo_n "checking for ANSI C header files... " >&6; }
4563 if ${ac_cv_header_stdc+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4568 #include <stdlib.h>
4569 #include <stdarg.h>
4570 #include <string.h>
4571 #include <float.h>
4572
4573 int
4574 main ()
4575 {
4576
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 if ac_fn_c_try_compile "$LINENO"; then :
4582 ac_cv_header_stdc=yes
4583 else
4584 ac_cv_header_stdc=no
4585 fi
4586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587
4588 if test $ac_cv_header_stdc = yes; then
4589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592 #include <string.h>
4593
4594 _ACEOF
4595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596 $EGREP "memchr" >/dev/null 2>&1; then :
4597
4598 else
4599 ac_cv_header_stdc=no
4600 fi
4601 rm -f conftest*
4602
4603 fi
4604
4605 if test $ac_cv_header_stdc = yes; then
4606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 #include <stdlib.h>
4610
4611 _ACEOF
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "free" >/dev/null 2>&1; then :
4614
4615 else
4616 ac_cv_header_stdc=no
4617 fi
4618 rm -f conftest*
4619
4620 fi
4621
4622 if test $ac_cv_header_stdc = yes; then
4623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4624 if test "$cross_compiling" = yes; then :
4625 :
4626 else
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #include <ctype.h>
4630 #include <stdlib.h>
4631 #if ((' ' & 0x0FF) == 0x020)
4632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4634 #else
4635 # define ISLOWER(c) \
4636 (('a' <= (c) && (c) <= 'i') \
4637 || ('j' <= (c) && (c) <= 'r') \
4638 || ('s' <= (c) && (c) <= 'z'))
4639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4640 #endif
4641
4642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4643 int
4644 main ()
4645 {
4646 int i;
4647 for (i = 0; i < 256; i++)
4648 if (XOR (islower (i), ISLOWER (i))
4649 || toupper (i) != TOUPPER (i))
4650 return 2;
4651 return 0;
4652 }
4653 _ACEOF
4654 if ac_fn_c_try_run "$LINENO"; then :
4655
4656 else
4657 ac_cv_header_stdc=no
4658 fi
4659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4660 conftest.$ac_objext conftest.beam conftest.$ac_ext
4661 fi
4662
4663 fi
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4666 $as_echo "$ac_cv_header_stdc" >&6; }
4667 if test $ac_cv_header_stdc = yes; then
4668
4669 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4670
4671 fi
4672
4673 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4674 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4675 inttypes.h stdint.h unistd.h
4676 do :
4677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4678 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4679 "
4680 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4681 cat >>confdefs.h <<_ACEOF
4682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4683 _ACEOF
4684
4685 fi
4686
4687 done
4688
4689
4690
4691 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4692 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4693 MINIX=yes
4694 else
4695 MINIX=
4696 fi
4697
4698
4699 if test "$MINIX" = yes; then
4700
4701 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4702
4703
4704 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4705
4706
4707 $as_echo "#define _MINIX 1" >>confdefs.h
4708
4709 fi
4710
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4713 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4714 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4719
4720 # define __EXTENSIONS__ 1
4721 $ac_includes_default
4722 int
4723 main ()
4724 {
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_cv_safe_to_define___extensions__=yes
4732 else
4733 ac_cv_safe_to_define___extensions__=no
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4738 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4739 test $ac_cv_safe_to_define___extensions__ = yes &&
4740 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4741
4742 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4743
4744 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4745
4746 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4747
4748 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4749
4750
4751 LIB_EXT=.a
4752 STATIC_LIB_EXT=.a
4753 PROFILED_LIB_EXT=.a
4754
4755 # Check whether --with-root-prefix was given.
4756 if test "${with_root_prefix+set}" = set; then :
4757 withval=$with_root_prefix; root_prefix=$withval
4758 else
4759 root_prefix=NONE
4760 fi
4761 # Check whether --enable-maintainer-mode was given.
4762 if test "${enable_maintainer_mode+set}" = set; then :
4763 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4764 then
4765 MAINTAINER_CMT=#
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4767 $as_echo "Disabling maintainer mode" >&6; }
4768 else
4769 MAINTAINER_CMT=
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4771 $as_echo "Enabling maintainer mode" >&6; }
4772 fi
4773
4774 else
4775 MAINTAINER_CMT=#
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4777 $as_echo "Disabling maintainer mode by default" >&6; }
4778
4779 fi
4780
4781
4782 # Check whether --enable-symlink-install was given.
4783 if test "${enable_symlink_install+set}" = set; then :
4784 enableval=$enable_symlink_install; if test "$enableval" = "no"
4785 then
4786 LINK_INSTALL_FLAGS=-f
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4788 $as_echo "Disabling symlinks for install" >&6; }
4789 else
4790 LINK_INSTALL_FLAGS=-sf
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4792 $as_echo "Enabling symlinks for install" >&6; }
4793 fi
4794
4795 else
4796 LINK_INSTALL_FLAGS=-f
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4798 $as_echo "Disabling symlinks for install by default" >&6; }
4799
4800 fi
4801
4802
4803 relative_symlink_defined=
4804 # Check whether --enable-relative-symlinks was given.
4805 if test "${enable_relative_symlinks+set}" = set; then :
4806 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4807 then
4808 SYMLINK_RELATIVE=
4809 relative_symlink_defined=yes
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4811 $as_echo "Disabling relative symlinks for install" >&6; }
4812 else
4813 SYMLINK_RELATIVE=--relative
4814 relative_symlink_defined=yes
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4816 $as_echo "Enabling relative symlinks for install" >&6; }
4817 fi
4818 fi
4819
4820 # Check whether --enable-symlink-relative-symlinks was given.
4821 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4822 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4823 then
4824 SYMLINK_RELATIVE=yes
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4826 $as_echo "Disabling relative symlinks for install" >&6; }
4827 else
4828 SYMLINK_RELATIVE=--relative
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4830 $as_echo "Enabling relative symlinks for install" >&6; }
4831 fi
4832
4833 else
4834 if test -z "$relative_symlink_defined"
4835 then
4836 SYMLINK_RELATIVE=
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4838 $as_echo "Disabling relative symlinks for install by default" >&6; }
4839 fi
4840
4841 fi
4842
4843
4844 # Check whether --enable-symlink-build was given.
4845 if test "${enable_symlink_build+set}" = set; then :
4846 enableval=$enable_symlink_build; if test "$enableval" = "no"
4847 then
4848 LINK_BUILD_FLAGS=
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4850 $as_echo "Disabling symlinks for build" >&6; }
4851 else
4852 LINK_BUILD_FLAGS=-s
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4854 $as_echo "Enabling symlinks for build" >&6; }
4855 fi
4856
4857 else
4858 LINK_BUILD_FLAGS=
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4860 $as_echo "Disabling symlinks for build by default" >&6; }
4861
4862 fi
4863
4864
4865 # Check whether --enable-verbose-makecmds was given.
4866 if test "${enable_verbose_makecmds+set}" = set; then :
4867 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4868 then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4870 $as_echo "Disabling verbose make commands" >&6; }
4871 E=@echo
4872 ES=echo
4873 Q=@
4874 else
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4876 $as_echo "Enabling verbose make commands" >&6; }
4877 E=@\\#
4878 ES=\\#
4879 Q=
4880 fi
4881
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4884 $as_echo "Disabling verbose make commands" >&6; }
4885 E=@echo
4886 ES=echo
4887 Q=@
4888
4889 fi
4890
4891
4892
4893
4894 E2_PKG_CONFIG_STATIC=--static
4895 LDFLAG_DYNAMIC=
4896 PRIVATE_LIBS_CMT=
4897 # Check whether --enable-elf-shlibs was given.
4898 if test "${enable_elf_shlibs+set}" = set; then :
4899 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4900 then
4901 ELF_CMT=#
4902 MAKEFILE_ELF=/dev/null
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4904 $as_echo "Disabling ELF shared libraries" >&6; }
4905 else
4906 E2_PKG_CONFIG_STATIC=
4907 ELF_CMT=
4908 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4909 case "$host_os" in
4910 solaris2.*)
4911 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4912 ;;
4913 esac
4914 BINARY_TYPE=elfbin
4915 LIB_EXT=.so
4916 PRIVATE_LIBS_CMT=#
4917 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4919 $as_echo "Enabling ELF shared libraries" >&6; }
4920 fi
4921
4922 else
4923 MAKEFILE_ELF=/dev/null
4924 ELF_CMT=#
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4926 $as_echo "Disabling ELF shared libraries by default" >&6; }
4927
4928 fi
4929
4930
4931
4932 # Check whether --enable-bsd-shlibs was given.
4933 if test "${enable_bsd_shlibs+set}" = set; then :
4934 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4935 then
4936 BSDLIB_CMT=#
4937 MAKEFILE_BSDLIB=/dev/null
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4939 $as_echo "Disabling BSD shared libraries" >&6; }
4940 else
4941 E2_PKG_CONFIG_STATIC=
4942 BSDLIB_CMT=
4943 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4944 LIB_EXT=.so
4945 case "$host_os" in
4946 darwin*)
4947 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4948 LIB_EXT=.dylib
4949 ;;
4950 esac
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4952 $as_echo "Enabling BSD shared libraries" >&6; }
4953 fi
4954
4955 else
4956 MAKEFILE_BSDLIB=/dev/null
4957 BSDLIB_CMT=#
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4959 $as_echo "Disabling BSD shared libraries by default" >&6; }
4960
4961 fi
4962
4963
4964
4965 # Check whether --enable-profile was given.
4966 if test "${enable_profile+set}" = set; then :
4967 enableval=$enable_profile; if test "$enableval" = "no"
4968 then
4969 PROFILE_CMT=#
4970 MAKEFILE_PROFILE=/dev/null
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4972 $as_echo "Disabling profiling libraries" >&6; }
4973 else
4974 PROFILE_CMT=
4975 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4976 PROFILED_LIB_EXT=_p.a
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4978 $as_echo "Building profiling libraries" >&6; }
4979 fi
4980
4981 else
4982 PROFILE_CMT=#
4983 MAKEFILE_PROFILE=/dev/null
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4985 $as_echo "Disabling profiling libraries by default" >&6; }
4986
4987 fi
4988
4989
4990
4991 # Check whether --enable-gcov was given.
4992 if test "${enable_gcov+set}" = set; then :
4993 enableval=$enable_gcov; if test "$enableval" = "yes"
4994 then
4995 CFLAGS="-g -fprofile-arcs -ftest-coverage"
4996 LDFLAGS="-fprofile-arcs -ftest-coverage"
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4998 $as_echo "Enabling gcov support" >&6; }
4999 fi
5000
5001 fi
5002
5003
5004
5005
5006
5007
5008
5009 # Check whether --enable-jbd-debug was given.
5010 if test "${enable_jbd_debug+set}" = set; then :
5011 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5012 then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5014 $as_echo "Disabling journal debugging" >&6; }
5015 else
5016
5017 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5020 $as_echo "Enabling journal debugging" >&6; }
5021 fi
5022
5023 else
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5025 $as_echo "Disabling journal debugging by default" >&6; }
5026
5027 fi
5028
5029 # Check whether --enable-blkid-debug was given.
5030 if test "${enable_blkid_debug+set}" = set; then :
5031 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5032 then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5034 $as_echo "Disabling blkid debugging" >&6; }
5035 else
5036
5037 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5038
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5040 $as_echo "Enabling blkid debugging" >&6; }
5041 fi
5042
5043 else
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5045 $as_echo "Disabling blkid debugging by default" >&6; }
5046
5047 fi
5048
5049 # Check whether --enable-testio-debug was given.
5050 if test "${enable_testio_debug+set}" = set; then :
5051 enableval=$enable_testio_debug;
5052 if test "$enableval" = "no"
5053 then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5055 $as_echo "Disabling testio debugging" >&6; }
5056 TEST_IO_CMT="#"
5057 else
5058 TEST_IO_CMT=
5059 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5060
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5062 $as_echo "Enabling testio debugging" >&6; }
5063 fi
5064
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5067 $as_echo "Enabling testio debugging by default" >&6; }
5068 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5069
5070 TEST_IO_CMT=
5071
5072 fi
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5083 if test -n "$ac_tool_prefix"; then
5084 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5085 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 case $PKG_CONFIG in
5092 [\\/]* | ?:[\\/]*)
5093 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5094 ;;
5095 *)
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107 done
5108 done
5109 IFS=$as_save_IFS
5110
5111 ;;
5112 esac
5113 fi
5114 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5115 if test -n "$PKG_CONFIG"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5117 $as_echo "$PKG_CONFIG" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122
5123
5124 fi
5125 if test -z "$ac_cv_path_PKG_CONFIG"; then
5126 ac_pt_PKG_CONFIG=$PKG_CONFIG
5127 # Extract the first word of "pkg-config", so it can be a program name with args.
5128 set dummy pkg-config; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 case $ac_pt_PKG_CONFIG in
5135 [\\/]* | ?:[\\/]*)
5136 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5137 ;;
5138 *)
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150 done
5151 done
5152 IFS=$as_save_IFS
5153
5154 ;;
5155 esac
5156 fi
5157 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5158 if test -n "$ac_pt_PKG_CONFIG"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5160 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5161 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5164 fi
5165
5166 if test "x$ac_pt_PKG_CONFIG" = x; then
5167 PKG_CONFIG=""
5168 else
5169 case $cross_compiling:$ac_tool_warned in
5170 yes:)
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173 ac_tool_warned=yes ;;
5174 esac
5175 PKG_CONFIG=$ac_pt_PKG_CONFIG
5176 fi
5177 else
5178 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5179 fi
5180
5181 fi
5182 if test -n "$PKG_CONFIG"; then
5183 _pkg_min_version=0.9.0
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5185 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5186 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5188 $as_echo "yes" >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192 PKG_CONFIG=""
5193 fi
5194 fi
5195 LIBUUID=
5196 DEPLIBUUID=
5197 STATIC_LIBUUID=
5198 DEPSTATIC_LIBUUID=
5199 PROFILED_LIBUUID=
5200 DEPPROFILED_LIBUUID=
5201 UUID_CMT=
5202 # Check whether --enable-libuuid was given.
5203 if test "${enable_libuuid+set}" = set; then :
5204 enableval=$enable_libuuid; if test "$enableval" = "no"
5205 then
5206 if test -z "$PKG_CONFIG"; then
5207 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5208 fi
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5211 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5212 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 ac_check_lib_save_LIBS=$LIBS
5216 LIBS="-luuid $LIBS"
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219
5220 /* Override any GCC internal prototype to avoid an error.
5221 Use char because int might match the return type of a GCC
5222 builtin and then its argument prototype would still apply. */
5223 #ifdef __cplusplus
5224 extern "C"
5225 #endif
5226 char uuid_generate ();
5227 int
5228 main ()
5229 {
5230 return uuid_generate ();
5231 ;
5232 return 0;
5233 }
5234 _ACEOF
5235 if ac_fn_c_try_link "$LINENO"; then :
5236 ac_cv_lib_uuid_uuid_generate=yes
5237 else
5238 ac_cv_lib_uuid_uuid_generate=no
5239 fi
5240 rm -f core conftest.err conftest.$ac_objext \
5241 conftest$ac_exeext conftest.$ac_ext
5242 LIBS=$ac_check_lib_save_LIBS
5243 fi
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5245 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5246 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5247 LIBUUID=`$PKG_CONFIG --libs uuid`;
5248 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5249 else
5250 as_fn_error $? "external uuid library not found" "$LINENO" 5
5251 fi
5252
5253 PROFILED_LIBUUID=$LIBUUID
5254 UUID_CMT=#
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5256 $as_echo "Disabling private uuid library" >&6; }
5257 else
5258 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5259 DEPLIBUUID=$LIBUUID
5260 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5261 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5262 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5263 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5265 $as_echo "Enabling private uuid library" >&6; }
5266 fi
5267
5268 else
5269 if test -n "$PKG_CONFIG"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5271 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5272 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 ac_check_lib_save_LIBS=$LIBS
5276 LIBS="-luuid $LIBS"
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279
5280 /* Override any GCC internal prototype to avoid an error.
5281 Use char because int might match the return type of a GCC
5282 builtin and then its argument prototype would still apply. */
5283 #ifdef __cplusplus
5284 extern "C"
5285 #endif
5286 char uuid_generate ();
5287 int
5288 main ()
5289 {
5290 return uuid_generate ();
5291 ;
5292 return 0;
5293 }
5294 _ACEOF
5295 if ac_fn_c_try_link "$LINENO"; then :
5296 ac_cv_lib_uuid_uuid_generate=yes
5297 else
5298 ac_cv_lib_uuid_uuid_generate=no
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext \
5301 conftest$ac_exeext conftest.$ac_ext
5302 LIBS=$ac_check_lib_save_LIBS
5303 fi
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5305 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5306 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5307 LIBUUID=`$PKG_CONFIG --libs uuid`;
5308 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5309 fi
5310
5311 fi
5312 if test -n "$LIBUUID"; then
5313 PROFILED_LIBUUID=$LIBUUID
5314 UUID_CMT=#
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5316 $as_echo "Using system uuid by default" >&6; }
5317 else
5318 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5319 DEPLIBUUID=$LIBUUID
5320 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5321 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5322 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5323 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5325 $as_echo "Enabling private uuid library by default" >&6; }
5326 fi
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 PROFILED_LIBBLKID=$LIBBLKID
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5519 $as_echo "Disabling private blkid library" >&6; }
5520 else
5521 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5522 DEPLIBBLKID=$LIBBLKID
5523 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5524 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5525 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5526 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5527 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5530 $as_echo "Enabling private blkid library" >&6; }
5531 fi
5532
5533 else
5534 if test -n "$PKG_CONFIG"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5536 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5537 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 ac_check_lib_save_LIBS=$LIBS
5541 LIBS="-lblkid $LIBS"
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544
5545 /* Override any GCC internal prototype to avoid an error.
5546 Use char because int might match the return type of a GCC
5547 builtin and then its argument prototype would still apply. */
5548 #ifdef __cplusplus
5549 extern "C"
5550 #endif
5551 char blkid_get_cache ();
5552 int
5553 main ()
5554 {
5555 return blkid_get_cache ();
5556 ;
5557 return 0;
5558 }
5559 _ACEOF
5560 if ac_fn_c_try_link "$LINENO"; then :
5561 ac_cv_lib_blkid_blkid_get_cache=yes
5562 else
5563 ac_cv_lib_blkid_blkid_get_cache=no
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext \
5566 conftest$ac_exeext conftest.$ac_ext
5567 LIBS=$ac_check_lib_save_LIBS
5568 fi
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5570 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5571 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5572 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5573 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5574 fi
5575
5576 fi
5577 if test -n "$LIBBLKID"; then
5578 BLKID_CMT=#
5579 PROFILED_LIBBLKID=$LIBBLKID
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5581 $as_echo "Using system blkid library by default" >&6; }
5582 else
5583 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5584 DEPLIBBLKID=$LIBBLKID
5585 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5586 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5587 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5588 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5589 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5592 $as_echo "Enabling private blkid library by default" >&6; }
5593 fi
5594
5595 fi
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605 # Check whether --enable-backtrace was given.
5606 if test "${enable_backtrace+set}" = set; then :
5607 enableval=$enable_backtrace; if test "$enableval" = "no"
5608 then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5610 $as_echo "Disabling use of backtrace" >&6; }
5611 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5612
5613 else
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5615 $as_echo "Enabling use of backtrace" >&6; }
5616 fi
5617
5618 else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5620 $as_echo "Enabling use of backtrace by default" >&6; }
5621
5622 fi
5623
5624 # Check whether --enable-debugfs was given.
5625 if test "${enable_debugfs+set}" = set; then :
5626 enableval=$enable_debugfs; if test "$enableval" = "no"
5627 then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5629 $as_echo "Disabling debugfs support" >&6; }
5630 DEBUGFS_CMT="#"
5631 else
5632 DEBUGFS_CMT=
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5634 $as_echo "Enabling debugfs support" >&6; }
5635 fi
5636
5637 else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5639 $as_echo "Enabling debugfs support by default" >&6; }
5640 DEBUGFS_CMT=
5641
5642 fi
5643
5644
5645 # Check whether --enable-imager was given.
5646 if test "${enable_imager+set}" = set; then :
5647 enableval=$enable_imager; if test "$enableval" = "no"
5648 then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5650 $as_echo "Disabling e2image support" >&6; }
5651 IMAGER_CMT="#"
5652 else
5653 IMAGER_CMT=
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5655 $as_echo "Enabling e2image support" >&6; }
5656 fi
5657
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5660 $as_echo "Enabling e2image support by default" >&6; }
5661 IMAGER_CMT=
5662
5663 fi
5664
5665
5666 # Check whether --enable-resizer was given.
5667 if test "${enable_resizer+set}" = set; then :
5668 enableval=$enable_resizer; if test "$enableval" = "no"
5669 then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5671 $as_echo "Disabling e2resize support" >&6; }
5672 RESIZER_CMT="#"
5673 else
5674 RESIZER_CMT=
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5676 $as_echo "Enabling e2resize support" >&6; }
5677 fi
5678
5679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5681 $as_echo "Enabling e2resize support by default" >&6; }
5682 RESIZER_CMT=
5683
5684 fi
5685
5686
5687 # Check whether --enable-defrag was given.
5688 if test "${enable_defrag+set}" = set; then :
5689 enableval=$enable_defrag; if test "$enableval" = "no"
5690 then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5692 $as_echo "Disabling e4defrag support" >&6; }
5693 DEFRAG_CMT="#"
5694 else
5695 DEFRAG_CMT=
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5697 $as_echo "Enabling e4defrag support" >&6; }
5698 fi
5699
5700 else
5701 if test -z "$WITH_DIET_LIBC"
5702 then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5704 $as_echo "Enabling e4defrag support by default" >&6; }
5705 DEFRAG_CMT=
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5708 $as_echo "Disabling e4defrag support by default" >&6; }
5709 DEFRAG_CMT="#"
5710 fi
5711
5712 fi
5713
5714
5715 # Check whether --enable-fsck was given.
5716 if test "${enable_fsck+set}" = set; then :
5717 enableval=$enable_fsck; if test "$enableval" = "no"
5718 then
5719 FSCK_PROG='' FSCK_MAN=''
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5721 $as_echo "Not building fsck wrapper" >&6; }
5722 else
5723 FSCK_PROG=fsck FSCK_MAN=fsck.8
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5725 $as_echo "Building fsck wrapper" >&6; }
5726 fi
5727
5728 else
5729 case "$host_os" in
5730 gnu*)
5731 FSCK_PROG='' FSCK_MAN=''
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5733 $as_echo "Not building fsck wrapper by default" >&6; }
5734 ;;
5735 *)
5736 FSCK_PROG=fsck FSCK_MAN=fsck.8
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5738 $as_echo "Building fsck wrapper by default" >&6; }
5739 esac
5740
5741 fi
5742
5743
5744
5745 # Check whether --enable-e2initrd-helper was given.
5746 if test "${enable_e2initrd_helper+set}" = set; then :
5747 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5748 then
5749 E2INITRD_PROG='' E2INITRD_MAN=''
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5751 $as_echo "Not building e2initrd helper" >&6; }
5752 else
5753 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5755 $as_echo "Building e2initrd helper" >&6; }
5756 fi
5757
5758 else
5759 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5761 $as_echo "Building e2initrd helper by default" >&6; }
5762
5763 fi
5764
5765
5766
5767 # Check whether --enable-tls was given.
5768 if test "${enable_tls+set}" = set; then :
5769 enableval=$enable_tls; if test "$enableval" = "no"
5770 then
5771 try_tls=""
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5773 $as_echo "Disabling thread local support" >&6; }
5774 else
5775 try_tls="yes"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5777 $as_echo "Enabling thread local support" >&6; }
5778 fi
5779
5780 else
5781 if test -n "$WITH_DIET_LIBC"
5782 then
5783 try_tls=""
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5785 $as_echo "Diet libc does not support thread local support" >&6; }
5786 else
5787 try_tls="yes"
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5789 $as_echo "Try using thread local support by default" >&6; }
5790 fi
5791
5792 fi
5793
5794 if test "$try_tls" = "yes"
5795 then
5796
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5798 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5799 if ${ac_cv_tls+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802
5803 ax_tls_keywords="__thread __declspec(thread) none"
5804 for ax_tls_keyword in $ax_tls_keywords; do
5805 case $ax_tls_keyword in
5806 none) ac_cv_tls=none ; break ;;
5807 *)
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #include <stdlib.h>
5811 static void
5812 foo(void) {
5813 static $ax_tls_keyword int bar;
5814 exit(1);
5815 }
5816 int
5817 main ()
5818 {
5819
5820 ;
5821 return 0;
5822 }
5823 _ACEOF
5824 if ac_fn_c_try_compile "$LINENO"; then :
5825 ac_cv_tls=$ax_tls_keyword ; break
5826 else
5827 ac_cv_tls=none
5828
5829 fi
5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831 esac
5832 done
5833
5834 fi
5835
5836
5837 if test "$ac_cv_tls" != "none"; then
5838
5839 cat >>confdefs.h <<_ACEOF
5840 #define TLS $ac_cv_tls
5841 _ACEOF
5842
5843 fi
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5845 $as_echo "$ac_cv_tls" >&6; }
5846
5847 fi
5848
5849 # Check whether --enable-uuidd was given.
5850 if test "${enable_uuidd+set}" = set; then :
5851 enableval=$enable_uuidd; if test "$enableval" = "no"
5852 then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5854 $as_echo "Not building uuidd" >&6; }
5855 UUIDD_CMT="#"
5856 else
5857 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5858
5859 UUIDD_CMT=""
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5861 $as_echo "Building uuidd" >&6; }
5862 fi
5863
5864 else
5865 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5866
5867 if test -z "$UUID_CMT"
5868 then
5869 UUIDD_CMT=""
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5871 $as_echo "Building uuidd by default" >&6; }
5872 else
5873 UUIDD_CMT="#"
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5875 $as_echo "Disabling uuidd by default" >&6; }
5876 fi
5877
5878 fi
5879
5880
5881
5882 # Check whether --enable-mmp was given.
5883 if test "${enable_mmp+set}" = set; then :
5884 enableval=$enable_mmp; if test "$enableval" = "no"
5885 then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5887 $as_echo "Disabling mmp support" >&6; }
5888 else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5890 $as_echo "Enabling mmp support" >&6; }
5891 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5892
5893 fi
5894
5895 else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5897 $as_echo "Enabling mmp support by default" >&6; }
5898 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5899
5900
5901 fi
5902
5903
5904 # Check whether --enable-bmap-stats was given.
5905 if test "${enable_bmap_stats+set}" = set; then :
5906 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5907 then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5909 $as_echo "Disabling bitmap statistics support" >&6; }
5910 else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5912 $as_echo "Enabling bitmap statistics support" >&6; }
5913 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5914
5915 fi
5916
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5919 $as_echo "Enabling bitmap statistics support by default" >&6; }
5920 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5921
5922
5923 fi
5924
5925
5926 # Check whether --enable-bmap-stats-ops was given.
5927 if test "${enable_bmap_stats_ops+set}" = set; then :
5928 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5929 then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5931 $as_echo "Disabling additional bitmap statistics" >&6; }
5932 else
5933 if test "x${enable_bmap_stats}" = "xno"; then :
5934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5936 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5937 See \`config.log' for more details" "$LINENO" 5; }
5938 fi
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5941 $as_echo "Enabling additional bitmap statistics" >&6; }
5942 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5943
5944 fi
5945
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5948 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5949
5950 fi
5951
5952 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5953
5954 GETTEXT_PACKAGE=e2fsprogs
5955 PACKAGE=e2fsprogs
5956 VERSION="$E2FSPROGS_VERSION"
5957 VERSION=0.14.1
5958
5959 cat >>confdefs.h <<_ACEOF
5960 #define PACKAGE "$PACKAGE"
5961 _ACEOF
5962
5963
5964 cat >>confdefs.h <<_ACEOF
5965 #define VERSION "$VERSION"
5966 _ACEOF
5967
5968
5969
5970
5971
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5973 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5974 set x ${MAKE-make}
5975 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5976 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 cat >conftest.make <<\_ACEOF
5980 SHELL = /bin/sh
5981 all:
5982 @echo '@@@%%%=$(MAKE)=@@@%%%'
5983 _ACEOF
5984 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5985 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5986 *@@@%%%=?*=@@@%%%*)
5987 eval ac_cv_prog_make_${ac_make}_set=yes;;
5988 *)
5989 eval ac_cv_prog_make_${ac_make}_set=no;;
5990 esac
5991 rm -f conftest.make
5992 fi
5993 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5995 $as_echo "yes" >&6; }
5996 SET_MAKE=
5997 else
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6000 SET_MAKE="MAKE=${MAKE-make}"
6001 fi
6002
6003 # Find a good install program. We prefer a C program (faster),
6004 # so one script is as good as another. But avoid the broken or
6005 # incompatible versions:
6006 # SysV /etc/install, /usr/sbin/install
6007 # SunOS /usr/etc/install
6008 # IRIX /sbin/install
6009 # AIX /bin/install
6010 # AmigaOS /C/install, which installs bootblocks on floppy discs
6011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6014 # OS/2's system install, which has a completely different semantic
6015 # ./install, which can be erroneously created by make from ./install.sh.
6016 # Reject install programs that cannot install multiple files.
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6018 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6019 if test -z "$INSTALL"; then
6020 if ${ac_cv_path_install+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 # Account for people who put trailing slashes in PATH elements.
6029 case $as_dir/ in #((
6030 ./ | .// | /[cC]/* | \
6031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6032 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6033 /usr/ucb/* ) ;;
6034 *)
6035 # OSF1 and SCO ODT 3.0 have their own names for install.
6036 # Don't use installbsd from OSF since it installs stuff as root
6037 # by default.
6038 for ac_prog in ginstall scoinst install; do
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6041 if test $ac_prog = install &&
6042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6043 # AIX install. It has an incompatible calling convention.
6044 :
6045 elif test $ac_prog = install &&
6046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6047 # program-specific install script used by HP pwplus--don't use.
6048 :
6049 else
6050 rm -rf conftest.one conftest.two conftest.dir
6051 echo one > conftest.one
6052 echo two > conftest.two
6053 mkdir conftest.dir
6054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6055 test -s conftest.one && test -s conftest.two &&
6056 test -s conftest.dir/conftest.one &&
6057 test -s conftest.dir/conftest.two
6058 then
6059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6060 break 3
6061 fi
6062 fi
6063 fi
6064 done
6065 done
6066 ;;
6067 esac
6068
6069 done
6070 IFS=$as_save_IFS
6071
6072 rm -rf conftest.one conftest.two conftest.dir
6073
6074 fi
6075 if test "${ac_cv_path_install+set}" = set; then
6076 INSTALL=$ac_cv_path_install
6077 else
6078 # As a last resort, use the slow shell script. Don't cache a
6079 # value for INSTALL within a source directory, because that will
6080 # break other packages using the cache if that directory is
6081 # removed, or if the value is a relative name.
6082 INSTALL=$ac_install_sh
6083 fi
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6086 $as_echo "$INSTALL" >&6; }
6087
6088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6089 # It thinks the first close brace ends the variable substitution.
6090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6091
6092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6093
6094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6095
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6097 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6098 if test -z "$MKDIR_P"; then
6099 if ${ac_cv_path_mkdir+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6104 do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_prog in mkdir gmkdir; do
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6110 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6111 'mkdir (GNU coreutils) '* | \
6112 'mkdir (coreutils) '* | \
6113 'mkdir (fileutils) '4.1*)
6114 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6115 break 3;;
6116 esac
6117 done
6118 done
6119 done
6120 IFS=$as_save_IFS
6121
6122 fi
6123
6124 test -d ./--version && rmdir ./--version
6125 if test "${ac_cv_path_mkdir+set}" = set; then
6126 MKDIR_P="$ac_cv_path_mkdir -p"
6127 else
6128 # As a last resort, use the slow shell script. Don't cache a
6129 # value for MKDIR_P within a source directory, because that will
6130 # break other packages using the cache if that directory is
6131 # removed, or if the value is a relative name.
6132 MKDIR_P="$ac_install_sh -d"
6133 fi
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6136 $as_echo "$MKDIR_P" >&6; }
6137
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6139 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6140 if ${ac_cv_path_SED+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6144 for ac_i in 1 2 3 4 5 6 7; do
6145 ac_script="$ac_script$as_nl$ac_script"
6146 done
6147 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6148 { ac_script=; unset ac_script;}
6149 if test -z "$SED"; then
6150 ac_path_SED_found=false
6151 # Loop through the user's path and test for each of PROGNAME-LIST
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_prog in sed gsed; do
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6160 as_fn_executable_p "$ac_path_SED" || continue
6161 # Check for GNU ac_path_SED and select it if it is found.
6162 # Check for GNU $ac_path_SED
6163 case `"$ac_path_SED" --version 2>&1` in
6164 *GNU*)
6165 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6166 *)
6167 ac_count=0
6168 $as_echo_n 0123456789 >"conftest.in"
6169 while :
6170 do
6171 cat "conftest.in" "conftest.in" >"conftest.tmp"
6172 mv "conftest.tmp" "conftest.in"
6173 cp "conftest.in" "conftest.nl"
6174 $as_echo '' >> "conftest.nl"
6175 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6177 as_fn_arith $ac_count + 1 && ac_count=$as_val
6178 if test $ac_count -gt ${ac_path_SED_max-0}; then
6179 # Best one so far, save it but keep looking for a better one
6180 ac_cv_path_SED="$ac_path_SED"
6181 ac_path_SED_max=$ac_count
6182 fi
6183 # 10*(2^10) chars as input seems more than enough
6184 test $ac_count -gt 10 && break
6185 done
6186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6187 esac
6188
6189 $ac_path_SED_found && break 3
6190 done
6191 done
6192 done
6193 IFS=$as_save_IFS
6194 if test -z "$ac_cv_path_SED"; then
6195 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6196 fi
6197 else
6198 ac_cv_path_SED=$SED
6199 fi
6200
6201 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6203 $as_echo "$ac_cv_path_SED" >&6; }
6204 SED="$ac_cv_path_SED"
6205 rm -f conftest.sed
6206
6207
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6209 $as_echo_n "checking whether NLS is requested... " >&6; }
6210 # Check whether --enable-nls was given.
6211 if test "${enable_nls+set}" = set; then :
6212 enableval=$enable_nls; USE_NLS=$enableval
6213 else
6214 USE_NLS=yes
6215 fi
6216
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6218 $as_echo "$USE_NLS" >&6; }
6219
6220
6221
6222
6223 GETTEXT_MACRO_VERSION=0.18
6224
6225
6226
6227
6228 # Prepare PATH_SEPARATOR.
6229 # The user is always right.
6230 if test "${PATH_SEPARATOR+set}" != set; then
6231 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6232 # contains only /bin. Note that ksh looks also at the FPATH variable,
6233 # so we have to set that as well for the test.
6234 PATH_SEPARATOR=:
6235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6236 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6237 || PATH_SEPARATOR=';'
6238 }
6239 fi
6240
6241 # Find out how to test for executable files. Don't use a zero-byte file,
6242 # as systems may use methods other than mode bits to determine executability.
6243 cat >conf$$.file <<_ASEOF
6244 #! /bin/sh
6245 exit 0
6246 _ASEOF
6247 chmod +x conf$$.file
6248 if test -x conf$$.file >/dev/null 2>&1; then
6249 ac_executable_p="test -x"
6250 else
6251 ac_executable_p="test -f"
6252 fi
6253 rm -f conf$$.file
6254
6255 # Extract the first word of "msgfmt", so it can be a program name with args.
6256 set dummy msgfmt; ac_word=$2
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if ${ac_cv_path_MSGFMT+:} false; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262 case "$MSGFMT" in
6263 [\\/]* | ?:[\\/]*)
6264 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6265 ;;
6266 *)
6267 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6268 for ac_dir in $PATH; do
6269 IFS="$ac_save_IFS"
6270 test -z "$ac_dir" && ac_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6273 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6274 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6275 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6276 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6277 break 2
6278 fi
6279 fi
6280 done
6281 done
6282 IFS="$ac_save_IFS"
6283 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6284 ;;
6285 esac
6286 fi
6287 MSGFMT="$ac_cv_path_MSGFMT"
6288 if test "$MSGFMT" != ":"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6290 $as_echo "$MSGFMT" >&6; }
6291 else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6297 set dummy gmsgfmt; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_path_GMSGFMT+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 case $GMSGFMT in
6304 [\\/]* | ?:[\\/]*)
6305 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6306 ;;
6307 *)
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319 done
6320 done
6321 IFS=$as_save_IFS
6322
6323 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6324 ;;
6325 esac
6326 fi
6327 GMSGFMT=$ac_cv_path_GMSGFMT
6328 if test -n "$GMSGFMT"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6330 $as_echo "$GMSGFMT" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336
6337
6338 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6339 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6340 *) MSGFMT_015=$MSGFMT ;;
6341 esac
6342
6343 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6344 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6345 *) GMSGFMT_015=$GMSGFMT ;;
6346 esac
6347
6348
6349
6350 # Prepare PATH_SEPARATOR.
6351 # The user is always right.
6352 if test "${PATH_SEPARATOR+set}" != set; then
6353 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6354 # contains only /bin. Note that ksh looks also at the FPATH variable,
6355 # so we have to set that as well for the test.
6356 PATH_SEPARATOR=:
6357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6358 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6359 || PATH_SEPARATOR=';'
6360 }
6361 fi
6362
6363 # Find out how to test for executable files. Don't use a zero-byte file,
6364 # as systems may use methods other than mode bits to determine executability.
6365 cat >conf$$.file <<_ASEOF
6366 #! /bin/sh
6367 exit 0
6368 _ASEOF
6369 chmod +x conf$$.file
6370 if test -x conf$$.file >/dev/null 2>&1; then
6371 ac_executable_p="test -x"
6372 else
6373 ac_executable_p="test -f"
6374 fi
6375 rm -f conf$$.file
6376
6377 # Extract the first word of "xgettext", so it can be a program name with args.
6378 set dummy xgettext; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_path_XGETTEXT+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 case "$XGETTEXT" in
6385 [\\/]* | ?:[\\/]*)
6386 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6387 ;;
6388 *)
6389 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6390 for ac_dir in $PATH; do
6391 IFS="$ac_save_IFS"
6392 test -z "$ac_dir" && ac_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6395 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6396 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6397 (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
6398 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6399 break 2
6400 fi
6401 fi
6402 done
6403 done
6404 IFS="$ac_save_IFS"
6405 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6406 ;;
6407 esac
6408 fi
6409 XGETTEXT="$ac_cv_path_XGETTEXT"
6410 if test "$XGETTEXT" != ":"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6412 $as_echo "$XGETTEXT" >&6; }
6413 else
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6416 fi
6417
6418 rm -f messages.po
6419
6420 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6421 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6422 *) XGETTEXT_015=$XGETTEXT ;;
6423 esac
6424
6425
6426
6427 # Prepare PATH_SEPARATOR.
6428 # The user is always right.
6429 if test "${PATH_SEPARATOR+set}" != set; then
6430 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6431 # contains only /bin. Note that ksh looks also at the FPATH variable,
6432 # so we have to set that as well for the test.
6433 PATH_SEPARATOR=:
6434 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6435 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6436 || PATH_SEPARATOR=';'
6437 }
6438 fi
6439
6440 # Find out how to test for executable files. Don't use a zero-byte file,
6441 # as systems may use methods other than mode bits to determine executability.
6442 cat >conf$$.file <<_ASEOF
6443 #! /bin/sh
6444 exit 0
6445 _ASEOF
6446 chmod +x conf$$.file
6447 if test -x conf$$.file >/dev/null 2>&1; then
6448 ac_executable_p="test -x"
6449 else
6450 ac_executable_p="test -f"
6451 fi
6452 rm -f conf$$.file
6453
6454 # Extract the first word of "msgmerge", so it can be a program name with args.
6455 set dummy msgmerge; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_path_MSGMERGE+:} false; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 case "$MSGMERGE" in
6462 [\\/]* | ?:[\\/]*)
6463 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6464 ;;
6465 *)
6466 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6467 for ac_dir in $PATH; do
6468 IFS="$ac_save_IFS"
6469 test -z "$ac_dir" && ac_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6472 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6473 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6474 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6475 break 2
6476 fi
6477 fi
6478 done
6479 done
6480 IFS="$ac_save_IFS"
6481 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6482 ;;
6483 esac
6484 fi
6485 MSGMERGE="$ac_cv_path_MSGMERGE"
6486 if test "$MSGMERGE" != ":"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6488 $as_echo "$MSGMERGE" >&6; }
6489 else
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6492 fi
6493
6494
6495 test -n "$localedir" || localedir='${datadir}/locale'
6496
6497
6498 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6499
6500
6501 ac_config_commands="$ac_config_commands po-directories"
6502
6503
6504
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6506 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6507 if ${ac_cv_gnu_library_2+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512
6513 #include <features.h>
6514 #ifdef __GNU_LIBRARY__
6515 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6516 Lucky GNU user
6517 #endif
6518 #endif
6519
6520 _ACEOF
6521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6522 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6523 ac_cv_gnu_library_2=yes
6524 else
6525 ac_cv_gnu_library_2=no
6526 fi
6527 rm -f conftest*
6528
6529
6530
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6533 $as_echo "$ac_cv_gnu_library_2" >&6; }
6534
6535 GLIBC2="$ac_cv_gnu_library_2"
6536
6537
6538 if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6540 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if ${ac_cv_prog_RANLIB+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 if test -n "$RANLIB"; then
6547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560 done
6561 done
6562 IFS=$as_save_IFS
6563
6564 fi
6565 fi
6566 RANLIB=$ac_cv_prog_RANLIB
6567 if test -n "$RANLIB"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6569 $as_echo "$RANLIB" >&6; }
6570 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575
6576 fi
6577 if test -z "$ac_cv_prog_RANLIB"; then
6578 ac_ct_RANLIB=$RANLIB
6579 # Extract the first word of "ranlib", so it can be a program name with args.
6580 set dummy ranlib; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 if test -n "$ac_ct_RANLIB"; then
6587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6596 ac_cv_prog_ac_ct_RANLIB="ranlib"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600 done
6601 done
6602 IFS=$as_save_IFS
6603
6604 fi
6605 fi
6606 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6607 if test -n "$ac_ct_RANLIB"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6609 $as_echo "$ac_ct_RANLIB" >&6; }
6610 else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6613 fi
6614
6615 if test "x$ac_ct_RANLIB" = x; then
6616 RANLIB=":"
6617 else
6618 case $cross_compiling:$ac_tool_warned in
6619 yes:)
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622 ac_tool_warned=yes ;;
6623 esac
6624 RANLIB=$ac_ct_RANLIB
6625 fi
6626 else
6627 RANLIB="$ac_cv_prog_RANLIB"
6628 fi
6629
6630
6631
6632 CFLAG_VISIBILITY=
6633 HAVE_VISIBILITY=0
6634 if test -n "$GCC"; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6636 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6637 if ${gl_cv_cc_vis_werror+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640
6641 gl_save_CFLAGS="$CFLAGS"
6642 CFLAGS="$CFLAGS -Werror"
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645
6646 int
6647 main ()
6648 {
6649
6650 ;
6651 return 0;
6652 }
6653 _ACEOF
6654 if ac_fn_c_try_compile "$LINENO"; then :
6655 gl_cv_cc_vis_werror=yes
6656 else
6657 gl_cv_cc_vis_werror=no
6658 fi
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660 CFLAGS="$gl_save_CFLAGS"
6661 fi
6662
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6664 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6666 $as_echo_n "checking for simple visibility declarations... " >&6; }
6667 if ${gl_cv_cc_visibility+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670
6671 gl_save_CFLAGS="$CFLAGS"
6672 CFLAGS="$CFLAGS -fvisibility=hidden"
6673 if test $gl_cv_cc_vis_werror = yes; then
6674 CFLAGS="$CFLAGS -Werror"
6675 fi
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6678 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6679 extern __attribute__((__visibility__("default"))) int exportedvar;
6680 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6681 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6682 void dummyfunc (void) {}
6683
6684 int
6685 main ()
6686 {
6687
6688 ;
6689 return 0;
6690 }
6691 _ACEOF
6692 if ac_fn_c_try_compile "$LINENO"; then :
6693 gl_cv_cc_visibility=yes
6694 else
6695 gl_cv_cc_visibility=no
6696 fi
6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 CFLAGS="$gl_save_CFLAGS"
6699 fi
6700
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6702 $as_echo "$gl_cv_cc_visibility" >&6; }
6703 if test $gl_cv_cc_visibility = yes; then
6704 CFLAG_VISIBILITY="-fvisibility=hidden"
6705 HAVE_VISIBILITY=1
6706 fi
6707 fi
6708
6709
6710
6711 cat >>confdefs.h <<_ACEOF
6712 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6713 _ACEOF
6714
6715
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6717 $as_echo_n "checking for inline... " >&6; }
6718 if ${ac_cv_c_inline+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 ac_cv_c_inline=no
6722 for ac_kw in inline __inline__ __inline; do
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6725 #ifndef __cplusplus
6726 typedef int foo_t;
6727 static $ac_kw foo_t static_foo () {return 0; }
6728 $ac_kw foo_t foo () {return 0; }
6729 #endif
6730
6731 _ACEOF
6732 if ac_fn_c_try_compile "$LINENO"; then :
6733 ac_cv_c_inline=$ac_kw
6734 fi
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 test "$ac_cv_c_inline" != no && break
6737 done
6738
6739 fi
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6741 $as_echo "$ac_cv_c_inline" >&6; }
6742
6743 case $ac_cv_c_inline in
6744 inline | yes) ;;
6745 *)
6746 case $ac_cv_c_inline in
6747 no) ac_val=;;
6748 *) ac_val=$ac_cv_c_inline;;
6749 esac
6750 cat >>confdefs.h <<_ACEOF
6751 #ifndef __cplusplus
6752 #define inline $ac_val
6753 #endif
6754 _ACEOF
6755 ;;
6756 esac
6757
6758 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6759 if test "x$ac_cv_type_size_t" = xyes; then :
6760
6761 else
6762
6763 cat >>confdefs.h <<_ACEOF
6764 #define size_t unsigned int
6765 _ACEOF
6766
6767 fi
6768
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6771 $as_echo_n "checking for stdint.h... " >&6; }
6772 if ${gl_cv_header_stdint_h+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 #include <sys/types.h>
6778 #include <stdint.h>
6779 int
6780 main ()
6781 {
6782 uintmax_t i = (uintmax_t) -1; return !i;
6783 ;
6784 return 0;
6785 }
6786 _ACEOF
6787 if ac_fn_c_try_compile "$LINENO"; then :
6788 gl_cv_header_stdint_h=yes
6789 else
6790 gl_cv_header_stdint_h=no
6791 fi
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 fi
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6795 $as_echo "$gl_cv_header_stdint_h" >&6; }
6796 if test $gl_cv_header_stdint_h = yes; then
6797
6798 cat >>confdefs.h <<_ACEOF
6799 #define HAVE_STDINT_H_WITH_UINTMAX 1
6800 _ACEOF
6801
6802 fi
6803
6804 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6805 # for constant arguments. Useless!
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6807 $as_echo_n "checking for working alloca.h... " >&6; }
6808 if ${ac_cv_working_alloca_h+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 #include <alloca.h>
6814 int
6815 main ()
6816 {
6817 char *p = (char *) alloca (2 * sizeof (int));
6818 if (p) return 0;
6819 ;
6820 return 0;
6821 }
6822 _ACEOF
6823 if ac_fn_c_try_link "$LINENO"; then :
6824 ac_cv_working_alloca_h=yes
6825 else
6826 ac_cv_working_alloca_h=no
6827 fi
6828 rm -f core conftest.err conftest.$ac_objext \
6829 conftest$ac_exeext conftest.$ac_ext
6830 fi
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6832 $as_echo "$ac_cv_working_alloca_h" >&6; }
6833 if test $ac_cv_working_alloca_h = yes; then
6834
6835 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6836
6837 fi
6838
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6840 $as_echo_n "checking for alloca... " >&6; }
6841 if ${ac_cv_func_alloca_works+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6846 #ifdef __GNUC__
6847 # define alloca __builtin_alloca
6848 #else
6849 # ifdef _MSC_VER
6850 # include <malloc.h>
6851 # define alloca _alloca
6852 # else
6853 # ifdef HAVE_ALLOCA_H
6854 # include <alloca.h>
6855 # else
6856 # ifdef _AIX
6857 #pragma alloca
6858 # else
6859 # ifndef alloca /* predefined by HP cc +Olibcalls */
6860 void *alloca (size_t);
6861 # endif
6862 # endif
6863 # endif
6864 # endif
6865 #endif
6866
6867 int
6868 main ()
6869 {
6870 char *p = (char *) alloca (1);
6871 if (p) return 0;
6872 ;
6873 return 0;
6874 }
6875 _ACEOF
6876 if ac_fn_c_try_link "$LINENO"; then :
6877 ac_cv_func_alloca_works=yes
6878 else
6879 ac_cv_func_alloca_works=no
6880 fi
6881 rm -f core conftest.err conftest.$ac_objext \
6882 conftest$ac_exeext conftest.$ac_ext
6883 fi
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6885 $as_echo "$ac_cv_func_alloca_works" >&6; }
6886
6887 if test $ac_cv_func_alloca_works = yes; then
6888
6889 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6890
6891 else
6892 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6893 # that cause trouble. Some versions do not even contain alloca or
6894 # contain a buggy version. If you still want to use their alloca,
6895 # use ar to extract alloca.o from them instead of compiling alloca.c.
6896
6897 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6898
6899 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6900
6901
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6903 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6904 if ${ac_cv_os_cray+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909 #if defined CRAY && ! defined CRAY2
6910 webecray
6911 #else
6912 wenotbecray
6913 #endif
6914
6915 _ACEOF
6916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6917 $EGREP "webecray" >/dev/null 2>&1; then :
6918 ac_cv_os_cray=yes
6919 else
6920 ac_cv_os_cray=no
6921 fi
6922 rm -f conftest*
6923
6924 fi
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6926 $as_echo "$ac_cv_os_cray" >&6; }
6927 if test $ac_cv_os_cray = yes; then
6928 for ac_func in _getb67 GETB67 getb67; do
6929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6931 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6932
6933 cat >>confdefs.h <<_ACEOF
6934 #define CRAY_STACKSEG_END $ac_func
6935 _ACEOF
6936
6937 break
6938 fi
6939
6940 done
6941 fi
6942
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6944 $as_echo_n "checking stack direction for C alloca... " >&6; }
6945 if ${ac_cv_c_stack_direction+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test "$cross_compiling" = yes; then :
6949 ac_cv_c_stack_direction=0
6950 else
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6953 $ac_includes_default
6954 int
6955 find_stack_direction (int *addr, int depth)
6956 {
6957 int dir, dummy = 0;
6958 if (! addr)
6959 addr = &dummy;
6960 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6961 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6962 return dir + dummy;
6963 }
6964
6965 int
6966 main (int argc, char **argv)
6967 {
6968 return find_stack_direction (0, argc + !argv + 20) < 0;
6969 }
6970 _ACEOF
6971 if ac_fn_c_try_run "$LINENO"; then :
6972 ac_cv_c_stack_direction=1
6973 else
6974 ac_cv_c_stack_direction=-1
6975 fi
6976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6977 conftest.$ac_objext conftest.beam conftest.$ac_ext
6978 fi
6979
6980 fi
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6982 $as_echo "$ac_cv_c_stack_direction" >&6; }
6983 cat >>confdefs.h <<_ACEOF
6984 #define STACK_DIRECTION $ac_cv_c_stack_direction
6985 _ACEOF
6986
6987
6988 fi
6989
6990
6991
6992
6993 for ac_header in $ac_header_list
6994 do :
6995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6996 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6997 "
6998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6999 cat >>confdefs.h <<_ACEOF
7000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7001 _ACEOF
7002
7003 fi
7004
7005 done
7006
7007
7008
7009
7010
7011
7012
7013
7014 for ac_func in getpagesize
7015 do :
7016 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7017 if test "x$ac_cv_func_getpagesize" = xyes; then :
7018 cat >>confdefs.h <<_ACEOF
7019 #define HAVE_GETPAGESIZE 1
7020 _ACEOF
7021
7022 fi
7023 done
7024
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7026 $as_echo_n "checking for working mmap... " >&6; }
7027 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 if test "$cross_compiling" = yes; then :
7031 ac_cv_func_mmap_fixed_mapped=no
7032 else
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7035 $ac_includes_default
7036 /* malloc might have been renamed as rpl_malloc. */
7037 #undef malloc
7038
7039 /* Thanks to Mike Haertel and Jim Avera for this test.
7040 Here is a matrix of mmap possibilities:
7041 mmap private not fixed
7042 mmap private fixed at somewhere currently unmapped
7043 mmap private fixed at somewhere already mapped
7044 mmap shared not fixed
7045 mmap shared fixed at somewhere currently unmapped
7046 mmap shared fixed at somewhere already mapped
7047 For private mappings, we should verify that changes cannot be read()
7048 back from the file, nor mmap's back from the file at a different
7049 address. (There have been systems where private was not correctly
7050 implemented like the infamous i386 svr4.0, and systems where the
7051 VM page cache was not coherent with the file system buffer cache
7052 like early versions of FreeBSD and possibly contemporary NetBSD.)
7053 For shared mappings, we should conversely verify that changes get
7054 propagated back to all the places they're supposed to be.
7055
7056 Grep wants private fixed already mapped.
7057 The main things grep needs to know about mmap are:
7058 * does it exist and is it safe to write into the mmap'd area
7059 * how to use it (BSD variants) */
7060
7061 #include <fcntl.h>
7062 #include <sys/mman.h>
7063
7064 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7065 char *malloc ();
7066 #endif
7067
7068 /* This mess was copied from the GNU getpagesize.h. */
7069 #ifndef HAVE_GETPAGESIZE
7070 # ifdef _SC_PAGESIZE
7071 # define getpagesize() sysconf(_SC_PAGESIZE)
7072 # else /* no _SC_PAGESIZE */
7073 # ifdef HAVE_SYS_PARAM_H
7074 # include <sys/param.h>
7075 # ifdef EXEC_PAGESIZE
7076 # define getpagesize() EXEC_PAGESIZE
7077 # else /* no EXEC_PAGESIZE */
7078 # ifdef NBPG
7079 # define getpagesize() NBPG * CLSIZE
7080 # ifndef CLSIZE
7081 # define CLSIZE 1
7082 # endif /* no CLSIZE */
7083 # else /* no NBPG */
7084 # ifdef NBPC
7085 # define getpagesize() NBPC
7086 # else /* no NBPC */
7087 # ifdef PAGESIZE
7088 # define getpagesize() PAGESIZE
7089 # endif /* PAGESIZE */
7090 # endif /* no NBPC */
7091 # endif /* no NBPG */
7092 # endif /* no EXEC_PAGESIZE */
7093 # else /* no HAVE_SYS_PARAM_H */
7094 # define getpagesize() 8192 /* punt totally */
7095 # endif /* no HAVE_SYS_PARAM_H */
7096 # endif /* no _SC_PAGESIZE */
7097
7098 #endif /* no HAVE_GETPAGESIZE */
7099
7100 int
7101 main ()
7102 {
7103 char *data, *data2, *data3;
7104 const char *cdata2;
7105 int i, pagesize;
7106 int fd, fd2;
7107
7108 pagesize = getpagesize ();
7109
7110 /* First, make a file with some known garbage in it. */
7111 data = (char *) malloc (pagesize);
7112 if (!data)
7113 return 1;
7114 for (i = 0; i < pagesize; ++i)
7115 *(data + i) = rand ();
7116 umask (0);
7117 fd = creat ("conftest.mmap", 0600);
7118 if (fd < 0)
7119 return 2;
7120 if (write (fd, data, pagesize) != pagesize)
7121 return 3;
7122 close (fd);
7123
7124 /* Next, check that the tail of a page is zero-filled. File must have
7125 non-zero length, otherwise we risk SIGBUS for entire page. */
7126 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7127 if (fd2 < 0)
7128 return 4;
7129 cdata2 = "";
7130 if (write (fd2, cdata2, 1) != 1)
7131 return 5;
7132 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7133 if (data2 == MAP_FAILED)
7134 return 6;
7135 for (i = 0; i < pagesize; ++i)
7136 if (*(data2 + i))
7137 return 7;
7138 close (fd2);
7139 if (munmap (data2, pagesize))
7140 return 8;
7141
7142 /* Next, try to mmap the file at a fixed address which already has
7143 something else allocated at it. If we can, also make sure that
7144 we see the same garbage. */
7145 fd = open ("conftest.mmap", O_RDWR);
7146 if (fd < 0)
7147 return 9;
7148 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7149 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7150 return 10;
7151 for (i = 0; i < pagesize; ++i)
7152 if (*(data + i) != *(data2 + i))
7153 return 11;
7154
7155 /* Finally, make sure that changes to the mapped area do not
7156 percolate back to the file as seen by read(). (This is a bug on
7157 some variants of i386 svr4.0.) */
7158 for (i = 0; i < pagesize; ++i)
7159 *(data2 + i) = *(data2 + i) + 1;
7160 data3 = (char *) malloc (pagesize);
7161 if (!data3)
7162 return 12;
7163 if (read (fd, data3, pagesize) != pagesize)
7164 return 13;
7165 for (i = 0; i < pagesize; ++i)
7166 if (*(data + i) != *(data3 + i))
7167 return 14;
7168 close (fd);
7169 return 0;
7170 }
7171 _ACEOF
7172 if ac_fn_c_try_run "$LINENO"; then :
7173 ac_cv_func_mmap_fixed_mapped=yes
7174 else
7175 ac_cv_func_mmap_fixed_mapped=no
7176 fi
7177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7178 conftest.$ac_objext conftest.beam conftest.$ac_ext
7179 fi
7180
7181 fi
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7183 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7184 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7185
7186 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7187
7188 fi
7189 rm -f conftest.mmap conftest.txt
7190
7191
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7194 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7195 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198
7199 gt_cv_int_divbyzero_sigfpe=
7200 case "$host_os" in
7201 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7202 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7203 # compiling. If we were to perform the real test, 1 Crash Report
7204 # dialog window would pop up.
7205 case "$host_cpu" in
7206 i[34567]86 | x86_64)
7207 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7208 esac
7209 ;;
7210 esac
7211 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7212 if test "$cross_compiling" = yes; then :
7213
7214 # Guess based on the CPU.
7215 case "$host_cpu" in
7216 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7217 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7218 *)
7219 gt_cv_int_divbyzero_sigfpe="guessing no";;
7220 esac
7221
7222 else
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7225
7226 #include <stdlib.h>
7227 #include <signal.h>
7228
7229 static void
7230 sigfpe_handler (int sig)
7231 {
7232 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7233 exit (sig != SIGFPE);
7234 }
7235
7236 int x = 1;
7237 int y = 0;
7238 int z;
7239 int nan;
7240
7241 int main ()
7242 {
7243 signal (SIGFPE, sigfpe_handler);
7244 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7245 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7246 signal (SIGTRAP, sigfpe_handler);
7247 #endif
7248 /* Linux/SPARC yields signal SIGILL. */
7249 #if defined (__sparc__) && defined (__linux__)
7250 signal (SIGILL, sigfpe_handler);
7251 #endif
7252
7253 z = x / y;
7254 nan = y / y;
7255 exit (2);
7256 }
7257
7258 _ACEOF
7259 if ac_fn_c_try_run "$LINENO"; then :
7260 gt_cv_int_divbyzero_sigfpe=yes
7261 else
7262 gt_cv_int_divbyzero_sigfpe=no
7263 fi
7264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7265 conftest.$ac_objext conftest.beam conftest.$ac_ext
7266 fi
7267
7268 fi
7269
7270 fi
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7272 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7273 case "$gt_cv_int_divbyzero_sigfpe" in
7274 *yes) value=1;;
7275 *) value=0;;
7276 esac
7277
7278 cat >>confdefs.h <<_ACEOF
7279 #define INTDIV0_RAISES_SIGFPE $value
7280 _ACEOF
7281
7282
7283
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7285 $as_echo_n "checking for inttypes.h... " >&6; }
7286 if ${gl_cv_header_inttypes_h+:} false; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7291
7292 #include <sys/types.h>
7293 #include <inttypes.h>
7294
7295 int
7296 main ()
7297 {
7298 uintmax_t i = (uintmax_t) -1; return !i;
7299 ;
7300 return 0;
7301 }
7302 _ACEOF
7303 if ac_fn_c_try_compile "$LINENO"; then :
7304 gl_cv_header_inttypes_h=yes
7305 else
7306 gl_cv_header_inttypes_h=no
7307 fi
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 fi
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7311 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7312 if test $gl_cv_header_inttypes_h = yes; then
7313
7314 cat >>confdefs.h <<_ACEOF
7315 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7316 _ACEOF
7317
7318 fi
7319
7320
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7322 $as_echo_n "checking for unsigned long long int... " >&6; }
7323 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 ac_cv_type_unsigned_long_long_int=yes
7327 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330
7331 /* For now, do not test the preprocessor; as of 2007 there are too many
7332 implementations with broken preprocessors. Perhaps this can
7333 be revisited in 2012. In the meantime, code should not expect
7334 #if to work with literals wider than 32 bits. */
7335 /* Test literals. */
7336 long long int ll = 9223372036854775807ll;
7337 long long int nll = -9223372036854775807LL;
7338 unsigned long long int ull = 18446744073709551615ULL;
7339 /* Test constant expressions. */
7340 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7341 ? 1 : -1)];
7342 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7343 ? 1 : -1)];
7344 int i = 63;
7345 int
7346 main ()
7347 {
7348 /* Test availability of runtime routines for shift and division. */
7349 long long int llmax = 9223372036854775807ll;
7350 unsigned long long int ullmax = 18446744073709551615ull;
7351 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7352 | (llmax / ll) | (llmax % ll)
7353 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7354 | (ullmax / ull) | (ullmax % ull));
7355 ;
7356 return 0;
7357 }
7358
7359 _ACEOF
7360 if ac_fn_c_try_link "$LINENO"; then :
7361
7362 else
7363 ac_cv_type_unsigned_long_long_int=no
7364 fi
7365 rm -f core conftest.err conftest.$ac_objext \
7366 conftest$ac_exeext conftest.$ac_ext
7367 fi
7368 fi
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7370 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7371 if test $ac_cv_type_unsigned_long_long_int = yes; then
7372
7373 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7374
7375 fi
7376
7377
7378
7379
7380 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7381
7382 test $ac_cv_type_unsigned_long_long_int = yes \
7383 && ac_type='unsigned long long' \
7384 || ac_type='unsigned long'
7385
7386 cat >>confdefs.h <<_ACEOF
7387 #define uintmax_t $ac_type
7388 _ACEOF
7389
7390 else
7391
7392 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7393
7394 fi
7395
7396
7397 for ac_header in inttypes.h
7398 do :
7399 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7400 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7401 cat >>confdefs.h <<_ACEOF
7402 #define HAVE_INTTYPES_H 1
7403 _ACEOF
7404
7405 fi
7406
7407 done
7408
7409 if test $ac_cv_header_inttypes_h = yes; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7411 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7412 if ${gt_cv_inttypes_pri_broken+:} false; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418
7419 #include <inttypes.h>
7420 #ifdef PRId32
7421 char *p = PRId32;
7422 #endif
7423
7424 int
7425 main ()
7426 {
7427
7428 ;
7429 return 0;
7430 }
7431 _ACEOF
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433 gt_cv_inttypes_pri_broken=no
7434 else
7435 gt_cv_inttypes_pri_broken=yes
7436 fi
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438
7439 fi
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7441 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7442 fi
7443 if test "$gt_cv_inttypes_pri_broken" = yes; then
7444
7445 cat >>confdefs.h <<_ACEOF
7446 #define PRI_MACROS_BROKEN 1
7447 _ACEOF
7448
7449 PRI_MACROS_BROKEN=1
7450 else
7451 PRI_MACROS_BROKEN=0
7452 fi
7453
7454
7455
7456
7457
7458
7459
7460 # Check whether --enable-threads was given.
7461 if test "${enable_threads+set}" = set; then :
7462 enableval=$enable_threads; gl_use_threads=$enableval
7463 else
7464 if test -n "$gl_use_threads_default"; then
7465 gl_use_threads="$gl_use_threads_default"
7466 else
7467 case "$host_os" in
7468 osf*) gl_use_threads=no ;;
7469 cygwin*)
7470 case `uname -r` in
7471 1.[0-5].*) gl_use_threads=no ;;
7472 *) gl_use_threads=yes ;;
7473 esac
7474 ;;
7475 *) gl_use_threads=yes ;;
7476 esac
7477 fi
7478
7479 fi
7480
7481 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7482 # For using <pthread.h>:
7483 case "$host_os" in
7484 osf*)
7485 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7486 # groks <pthread.h>. cc also understands the flag -pthread, but
7487 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7488 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7489 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7490 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7491 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7492 ;;
7493 esac
7494 # Some systems optimize for single-threaded programs by default, and
7495 # need special flags to disable these optimizations. For example, the
7496 # definition of 'errno' in <errno.h>.
7497 case "$host_os" in
7498 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7499 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7500 esac
7501 fi
7502
7503
7504
7505
7506
7507 if test "X$prefix" = "XNONE"; then
7508 acl_final_prefix="$ac_default_prefix"
7509 else
7510 acl_final_prefix="$prefix"
7511 fi
7512 if test "X$exec_prefix" = "XNONE"; then
7513 acl_final_exec_prefix='${prefix}'
7514 else
7515 acl_final_exec_prefix="$exec_prefix"
7516 fi
7517 acl_save_prefix="$prefix"
7518 prefix="$acl_final_prefix"
7519 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7520 prefix="$acl_save_prefix"
7521
7522
7523
7524 # Check whether --with-gnu-ld was given.
7525 if test "${with_gnu_ld+set}" = set; then :
7526 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7527 else
7528 with_gnu_ld=no
7529 fi
7530
7531 # Prepare PATH_SEPARATOR.
7532 # The user is always right.
7533 if test "${PATH_SEPARATOR+set}" != set; then
7534 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7535 # contains only /bin. Note that ksh looks also at the FPATH variable,
7536 # so we have to set that as well for the test.
7537 PATH_SEPARATOR=:
7538 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7539 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7540 || PATH_SEPARATOR=';'
7541 }
7542 fi
7543
7544 ac_prog=ld
7545 if test "$GCC" = yes; then
7546 # Check if gcc -print-prog-name=ld gives a path.
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7548 $as_echo_n "checking for ld used by $CC... " >&6; }
7549 case $host in
7550 *-*-mingw*)
7551 # gcc leaves a trailing carriage return which upsets mingw
7552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7553 *)
7554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7555 esac
7556 case $ac_prog in
7557 # Accept absolute paths.
7558 [\\/]* | ?:[\\/]*)
7559 re_direlt='/[^/][^/]*/\.\./'
7560 # Canonicalize the pathname of ld
7561 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7562 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7563 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7564 done
7565 test -z "$LD" && LD="$ac_prog"
7566 ;;
7567 "")
7568 # If it fails, then pretend we aren't using GCC.
7569 ac_prog=ld
7570 ;;
7571 *)
7572 # If it is relative, then search for the first ld in PATH.
7573 with_gnu_ld=unknown
7574 ;;
7575 esac
7576 elif test "$with_gnu_ld" = yes; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7578 $as_echo_n "checking for GNU ld... " >&6; }
7579 else
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7581 $as_echo_n "checking for non-GNU ld... " >&6; }
7582 fi
7583 if ${acl_cv_path_LD+:} false; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 if test -z "$LD"; then
7587 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7588 for ac_dir in $PATH; do
7589 IFS="$acl_save_ifs"
7590 test -z "$ac_dir" && ac_dir=.
7591 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7592 acl_cv_path_LD="$ac_dir/$ac_prog"
7593 # Check to see if the program is GNU ld. I'd rather use --version,
7594 # but apparently some variants of GNU ld only accept -v.
7595 # Break only if it was the GNU/non-GNU ld that we prefer.
7596 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7597 *GNU* | *'with BFD'*)
7598 test "$with_gnu_ld" != no && break
7599 ;;
7600 *)
7601 test "$with_gnu_ld" != yes && break
7602 ;;
7603 esac
7604 fi
7605 done
7606 IFS="$acl_save_ifs"
7607 else
7608 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7609 fi
7610 fi
7611
7612 LD="$acl_cv_path_LD"
7613 if test -n "$LD"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7615 $as_echo "$LD" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7622 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7623 if ${acl_cv_prog_gnu_ld+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7627 case `$LD -v 2>&1 </dev/null` in
7628 *GNU* | *'with BFD'*)
7629 acl_cv_prog_gnu_ld=yes
7630 ;;
7631 *)
7632 acl_cv_prog_gnu_ld=no
7633 ;;
7634 esac
7635 fi
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7637 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7638 with_gnu_ld=$acl_cv_prog_gnu_ld
7639
7640
7641
7642
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7644 $as_echo_n "checking for shared library run path origin... " >&6; }
7645 if ${acl_cv_rpath+:} false; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648
7649 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7650 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7651 . ./conftest.sh
7652 rm -f ./conftest.sh
7653 acl_cv_rpath=done
7654
7655 fi
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7657 $as_echo "$acl_cv_rpath" >&6; }
7658 wl="$acl_cv_wl"
7659 acl_libext="$acl_cv_libext"
7660 acl_shlibext="$acl_cv_shlibext"
7661 acl_libname_spec="$acl_cv_libname_spec"
7662 acl_library_names_spec="$acl_cv_library_names_spec"
7663 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7664 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7665 acl_hardcode_direct="$acl_cv_hardcode_direct"
7666 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7667 # Check whether --enable-rpath was given.
7668 if test "${enable_rpath+set}" = set; then :
7669 enableval=$enable_rpath; :
7670 else
7671 enable_rpath=yes
7672 fi
7673
7674
7675
7676
7677 acl_libdirstem=lib
7678 acl_libdirstem2=
7679 case "$host_os" in
7680 solaris*)
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7682 $as_echo_n "checking for 64-bit host... " >&6; }
7683 if ${gl_cv_solaris_64bit+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688
7689 #ifdef _LP64
7690 sixtyfour bits
7691 #endif
7692
7693 _ACEOF
7694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7695 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7696 gl_cv_solaris_64bit=yes
7697 else
7698 gl_cv_solaris_64bit=no
7699 fi
7700 rm -f conftest*
7701
7702
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7705 $as_echo "$gl_cv_solaris_64bit" >&6; }
7706 if test $gl_cv_solaris_64bit = yes; then
7707 acl_libdirstem=lib/64
7708 case "$host_cpu" in
7709 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7710 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7711 esac
7712 fi
7713 ;;
7714 *)
7715 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7716 if test -n "$searchpath"; then
7717 acl_save_IFS="${IFS= }"; IFS=":"
7718 for searchdir in $searchpath; do
7719 if test -d "$searchdir"; then
7720 case "$searchdir" in
7721 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7722 */../ | */.. )
7723 # Better ignore directories of this form. They are misleading.
7724 ;;
7725 *) searchdir=`cd "$searchdir" && pwd`
7726 case "$searchdir" in
7727 */lib64 ) acl_libdirstem=lib64 ;;
7728 esac ;;
7729 esac
7730 fi
7731 done
7732 IFS="$acl_save_IFS"
7733 fi
7734 ;;
7735 esac
7736 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7737
7738
7739
7740 gl_threads_api=none
7741 LIBTHREAD=
7742 LTLIBTHREAD=
7743 LIBMULTITHREAD=
7744 LTLIBMULTITHREAD=
7745 if test "$gl_use_threads" != no; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7747 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7748 if ${gl_cv_have_weak+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 gl_cv_have_weak=no
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 extern void xyzzy ();
7755 #pragma weak xyzzy
7756 int
7757 main ()
7758 {
7759 xyzzy();
7760 ;
7761 return 0;
7762 }
7763 _ACEOF
7764 if ac_fn_c_try_link "$LINENO"; then :
7765 gl_cv_have_weak=maybe
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext \
7768 conftest$ac_exeext conftest.$ac_ext
7769 if test $gl_cv_have_weak = maybe; then
7770 if test "$cross_compiling" = yes; then :
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 #ifdef __ELF__
7774 Extensible Linking Format
7775 #endif
7776
7777 _ACEOF
7778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7779 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7780 gl_cv_have_weak="guessing yes"
7781 else
7782 gl_cv_have_weak="guessing no"
7783 fi
7784 rm -f conftest*
7785
7786
7787 else
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790
7791 #include <stdio.h>
7792 #pragma weak fputs
7793 int main ()
7794 {
7795 return (fputs == NULL);
7796 }
7797 _ACEOF
7798 if ac_fn_c_try_run "$LINENO"; then :
7799 gl_cv_have_weak=yes
7800 else
7801 gl_cv_have_weak=no
7802 fi
7803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7804 conftest.$ac_objext conftest.beam conftest.$ac_ext
7805 fi
7806
7807 fi
7808
7809 fi
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7811 $as_echo "$gl_cv_have_weak" >&6; }
7812 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7813 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7814 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7815 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7816 if test "x$ac_cv_header_pthread_h" = xyes; then :
7817 gl_have_pthread_h=yes
7818 else
7819 gl_have_pthread_h=no
7820 fi
7821
7822
7823 if test "$gl_have_pthread_h" = yes; then
7824 # Other possible tests:
7825 # -lpthreads (FSU threads, PCthreads)
7826 # -lgthreads
7827 gl_have_pthread=
7828 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7829 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7830 # the second one only in libpthread, and lock.c needs it.
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 #include <pthread.h>
7834 int
7835 main ()
7836 {
7837 pthread_mutex_lock((pthread_mutex_t*)0);
7838 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7839 ;
7840 return 0;
7841 }
7842 _ACEOF
7843 if ac_fn_c_try_link "$LINENO"; then :
7844 gl_have_pthread=yes
7845 fi
7846 rm -f core conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7849 # since it is defined as a macro on OSF/1.)
7850 if test -n "$gl_have_pthread"; then
7851 # The program links fine without libpthread. But it may actually
7852 # need to link with libpthread in order to create multiple threads.
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7854 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7855 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 ac_check_lib_save_LIBS=$LIBS
7859 LIBS="-lpthread $LIBS"
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862
7863 /* Override any GCC internal prototype to avoid an error.
7864 Use char because int might match the return type of a GCC
7865 builtin and then its argument prototype would still apply. */
7866 #ifdef __cplusplus
7867 extern "C"
7868 #endif
7869 char pthread_kill ();
7870 int
7871 main ()
7872 {
7873 return pthread_kill ();
7874 ;
7875 return 0;
7876 }
7877 _ACEOF
7878 if ac_fn_c_try_link "$LINENO"; then :
7879 ac_cv_lib_pthread_pthread_kill=yes
7880 else
7881 ac_cv_lib_pthread_pthread_kill=no
7882 fi
7883 rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 LIBS=$ac_check_lib_save_LIBS
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7888 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7889 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7890 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7891 # On Solaris and HP-UX, most pthread functions exist also in libc.
7892 # Therefore pthread_in_use() needs to actually try to create a
7893 # thread: pthread_create from libc will fail, whereas
7894 # pthread_create will actually create a thread.
7895 case "$host_os" in
7896 solaris* | hpux*)
7897
7898 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7899
7900 esac
7901
7902 fi
7903
7904 else
7905 # Some library is needed. Try libpthread and libc_r.
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7907 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7908 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 ac_check_lib_save_LIBS=$LIBS
7912 LIBS="-lpthread $LIBS"
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915
7916 /* Override any GCC internal prototype to avoid an error.
7917 Use char because int might match the return type of a GCC
7918 builtin and then its argument prototype would still apply. */
7919 #ifdef __cplusplus
7920 extern "C"
7921 #endif
7922 char pthread_kill ();
7923 int
7924 main ()
7925 {
7926 return pthread_kill ();
7927 ;
7928 return 0;
7929 }
7930 _ACEOF
7931 if ac_fn_c_try_link "$LINENO"; then :
7932 ac_cv_lib_pthread_pthread_kill=yes
7933 else
7934 ac_cv_lib_pthread_pthread_kill=no
7935 fi
7936 rm -f core conftest.err conftest.$ac_objext \
7937 conftest$ac_exeext conftest.$ac_ext
7938 LIBS=$ac_check_lib_save_LIBS
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7941 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7942 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7943 gl_have_pthread=yes
7944 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7945 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7946 fi
7947
7948 if test -z "$gl_have_pthread"; then
7949 # For FreeBSD 4.
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7951 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7952 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 ac_check_lib_save_LIBS=$LIBS
7956 LIBS="-lc_r $LIBS"
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959
7960 /* Override any GCC internal prototype to avoid an error.
7961 Use char because int might match the return type of a GCC
7962 builtin and then its argument prototype would still apply. */
7963 #ifdef __cplusplus
7964 extern "C"
7965 #endif
7966 char pthread_kill ();
7967 int
7968 main ()
7969 {
7970 return pthread_kill ();
7971 ;
7972 return 0;
7973 }
7974 _ACEOF
7975 if ac_fn_c_try_link "$LINENO"; then :
7976 ac_cv_lib_c_r_pthread_kill=yes
7977 else
7978 ac_cv_lib_c_r_pthread_kill=no
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7982 LIBS=$ac_check_lib_save_LIBS
7983 fi
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
7985 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
7986 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
7987 gl_have_pthread=yes
7988 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
7989 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
7990 fi
7991
7992 fi
7993 fi
7994 if test -n "$gl_have_pthread"; then
7995 gl_threads_api=posix
7996
7997 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
7998
7999 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8000 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8001
8002 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8003
8004 LIBTHREAD=
8005 LTLIBTHREAD=
8006 fi
8007 fi
8008 fi
8009 fi
8010 fi
8011 if test -z "$gl_have_pthread"; then
8012 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8013 gl_have_solaristhread=
8014 gl_save_LIBS="$LIBS"
8015 LIBS="$LIBS -lthread"
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018
8019 #include <thread.h>
8020 #include <synch.h>
8021
8022 int
8023 main ()
8024 {
8025 thr_self();
8026 ;
8027 return 0;
8028 }
8029 _ACEOF
8030 if ac_fn_c_try_link "$LINENO"; then :
8031 gl_have_solaristhread=yes
8032 fi
8033 rm -f core conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 LIBS="$gl_save_LIBS"
8036 if test -n "$gl_have_solaristhread"; then
8037 gl_threads_api=solaris
8038 LIBTHREAD=-lthread
8039 LTLIBTHREAD=-lthread
8040 LIBMULTITHREAD="$LIBTHREAD"
8041 LTLIBMULTITHREAD="$LTLIBTHREAD"
8042
8043 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8044
8045 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8046
8047 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8048
8049 LIBTHREAD=
8050 LTLIBTHREAD=
8051 fi
8052 fi
8053 fi
8054 fi
8055 if test "$gl_use_threads" = pth; then
8056 gl_save_CPPFLAGS="$CPPFLAGS"
8057
8058
8059
8060
8061
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8063 $as_echo_n "checking how to link with libpth... " >&6; }
8064 if ${ac_cv_libpth_libs+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067
8068
8069
8070
8071
8072
8073
8074
8075 use_additional=yes
8076
8077 acl_save_prefix="$prefix"
8078 prefix="$acl_final_prefix"
8079 acl_save_exec_prefix="$exec_prefix"
8080 exec_prefix="$acl_final_exec_prefix"
8081
8082 eval additional_includedir=\"$includedir\"
8083 eval additional_libdir=\"$libdir\"
8084
8085 exec_prefix="$acl_save_exec_prefix"
8086 prefix="$acl_save_prefix"
8087
8088
8089 # Check whether --with-libpth-prefix was given.
8090 if test "${with_libpth_prefix+set}" = set; then :
8091 withval=$with_libpth_prefix;
8092 if test "X$withval" = "Xno"; then
8093 use_additional=no
8094 else
8095 if test "X$withval" = "X"; then
8096
8097 acl_save_prefix="$prefix"
8098 prefix="$acl_final_prefix"
8099 acl_save_exec_prefix="$exec_prefix"
8100 exec_prefix="$acl_final_exec_prefix"
8101
8102 eval additional_includedir=\"$includedir\"
8103 eval additional_libdir=\"$libdir\"
8104
8105 exec_prefix="$acl_save_exec_prefix"
8106 prefix="$acl_save_prefix"
8107
8108 else
8109 additional_includedir="$withval/include"
8110 additional_libdir="$withval/$acl_libdirstem"
8111 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8112 && ! test -d "$withval/$acl_libdirstem"; then
8113 additional_libdir="$withval/$acl_libdirstem2"
8114 fi
8115 fi
8116 fi
8117
8118 fi
8119
8120 LIBPTH=
8121 LTLIBPTH=
8122 INCPTH=
8123 LIBPTH_PREFIX=
8124 HAVE_LIBPTH=
8125 rpathdirs=
8126 ltrpathdirs=
8127 names_already_handled=
8128 names_next_round='pth '
8129 while test -n "$names_next_round"; do
8130 names_this_round="$names_next_round"
8131 names_next_round=
8132 for name in $names_this_round; do
8133 already_handled=
8134 for n in $names_already_handled; do
8135 if test "$n" = "$name"; then
8136 already_handled=yes
8137 break
8138 fi
8139 done
8140 if test -z "$already_handled"; then
8141 names_already_handled="$names_already_handled $name"
8142 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8143 eval value=\"\$HAVE_LIB$uppername\"
8144 if test -n "$value"; then
8145 if test "$value" = yes; then
8146 eval value=\"\$LIB$uppername\"
8147 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8148 eval value=\"\$LTLIB$uppername\"
8149 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8150 else
8151 :
8152 fi
8153 else
8154 found_dir=
8155 found_la=
8156 found_so=
8157 found_a=
8158 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8159 if test -n "$acl_shlibext"; then
8160 shrext=".$acl_shlibext" # typically: shrext=.so
8161 else
8162 shrext=
8163 fi
8164 if test $use_additional = yes; then
8165 dir="$additional_libdir"
8166 if test -n "$acl_shlibext"; then
8167 if test -f "$dir/$libname$shrext"; then
8168 found_dir="$dir"
8169 found_so="$dir/$libname$shrext"
8170 else
8171 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8172 ver=`(cd "$dir" && \
8173 for f in "$libname$shrext".*; do echo "$f"; done \
8174 | sed -e "s,^$libname$shrext\\\\.,," \
8175 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8176 | sed 1q ) 2>/dev/null`
8177 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8178 found_dir="$dir"
8179 found_so="$dir/$libname$shrext.$ver"
8180 fi
8181 else
8182 eval library_names=\"$acl_library_names_spec\"
8183 for f in $library_names; do
8184 if test -f "$dir/$f"; then
8185 found_dir="$dir"
8186 found_so="$dir/$f"
8187 break
8188 fi
8189 done
8190 fi
8191 fi
8192 fi
8193 if test "X$found_dir" = "X"; then
8194 if test -f "$dir/$libname.$acl_libext"; then
8195 found_dir="$dir"
8196 found_a="$dir/$libname.$acl_libext"
8197 fi
8198 fi
8199 if test "X$found_dir" != "X"; then
8200 if test -f "$dir/$libname.la"; then
8201 found_la="$dir/$libname.la"
8202 fi
8203 fi
8204 fi
8205 if test "X$found_dir" = "X"; then
8206 for x in $LDFLAGS $LTLIBPTH; do
8207
8208 acl_save_prefix="$prefix"
8209 prefix="$acl_final_prefix"
8210 acl_save_exec_prefix="$exec_prefix"
8211 exec_prefix="$acl_final_exec_prefix"
8212 eval x=\"$x\"
8213 exec_prefix="$acl_save_exec_prefix"
8214 prefix="$acl_save_prefix"
8215
8216 case "$x" in
8217 -L*)
8218 dir=`echo "X$x" | sed -e 's/^X-L//'`
8219 if test -n "$acl_shlibext"; then
8220 if test -f "$dir/$libname$shrext"; then
8221 found_dir="$dir"
8222 found_so="$dir/$libname$shrext"
8223 else
8224 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8225 ver=`(cd "$dir" && \
8226 for f in "$libname$shrext".*; do echo "$f"; done \
8227 | sed -e "s,^$libname$shrext\\\\.,," \
8228 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8229 | sed 1q ) 2>/dev/null`
8230 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8231 found_dir="$dir"
8232 found_so="$dir/$libname$shrext.$ver"
8233 fi
8234 else
8235 eval library_names=\"$acl_library_names_spec\"
8236 for f in $library_names; do
8237 if test -f "$dir/$f"; then
8238 found_dir="$dir"
8239 found_so="$dir/$f"
8240 break
8241 fi
8242 done
8243 fi
8244 fi
8245 fi
8246 if test "X$found_dir" = "X"; then
8247 if test -f "$dir/$libname.$acl_libext"; then
8248 found_dir="$dir"
8249 found_a="$dir/$libname.$acl_libext"
8250 fi
8251 fi
8252 if test "X$found_dir" != "X"; then
8253 if test -f "$dir/$libname.la"; then
8254 found_la="$dir/$libname.la"
8255 fi
8256 fi
8257 ;;
8258 esac
8259 if test "X$found_dir" != "X"; then
8260 break
8261 fi
8262 done
8263 fi
8264 if test "X$found_dir" != "X"; then
8265 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8266 if test "X$found_so" != "X"; then
8267 if test "$enable_rpath" = no \
8268 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8269 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8270 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8271 else
8272 haveit=
8273 for x in $ltrpathdirs; do
8274 if test "X$x" = "X$found_dir"; then
8275 haveit=yes
8276 break
8277 fi
8278 done
8279 if test -z "$haveit"; then
8280 ltrpathdirs="$ltrpathdirs $found_dir"
8281 fi
8282 if test "$acl_hardcode_direct" = yes; then
8283 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8284 else
8285 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8286 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8287 haveit=
8288 for x in $rpathdirs; do
8289 if test "X$x" = "X$found_dir"; then
8290 haveit=yes
8291 break
8292 fi
8293 done
8294 if test -z "$haveit"; then
8295 rpathdirs="$rpathdirs $found_dir"
8296 fi
8297 else
8298 haveit=
8299 for x in $LDFLAGS $LIBPTH; do
8300
8301 acl_save_prefix="$prefix"
8302 prefix="$acl_final_prefix"
8303 acl_save_exec_prefix="$exec_prefix"
8304 exec_prefix="$acl_final_exec_prefix"
8305 eval x=\"$x\"
8306 exec_prefix="$acl_save_exec_prefix"
8307 prefix="$acl_save_prefix"
8308
8309 if test "X$x" = "X-L$found_dir"; then
8310 haveit=yes
8311 break
8312 fi
8313 done
8314 if test -z "$haveit"; then
8315 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8316 fi
8317 if test "$acl_hardcode_minus_L" != no; then
8318 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8319 else
8320 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8321 fi
8322 fi
8323 fi
8324 fi
8325 else
8326 if test "X$found_a" != "X"; then
8327 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8328 else
8329 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8330 fi
8331 fi
8332 additional_includedir=
8333 case "$found_dir" in
8334 */$acl_libdirstem | */$acl_libdirstem/)
8335 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8336 if test "$name" = 'pth'; then
8337 LIBPTH_PREFIX="$basedir"
8338 fi
8339 additional_includedir="$basedir/include"
8340 ;;
8341 */$acl_libdirstem2 | */$acl_libdirstem2/)
8342 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8343 if test "$name" = 'pth'; then
8344 LIBPTH_PREFIX="$basedir"
8345 fi
8346 additional_includedir="$basedir/include"
8347 ;;
8348 esac
8349 if test "X$additional_includedir" != "X"; then
8350 if test "X$additional_includedir" != "X/usr/include"; then
8351 haveit=
8352 if test "X$additional_includedir" = "X/usr/local/include"; then
8353 if test -n "$GCC"; then
8354 case $host_os in
8355 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8356 esac
8357 fi
8358 fi
8359 if test -z "$haveit"; then
8360 for x in $CPPFLAGS $INCPTH; do
8361
8362 acl_save_prefix="$prefix"
8363 prefix="$acl_final_prefix"
8364 acl_save_exec_prefix="$exec_prefix"
8365 exec_prefix="$acl_final_exec_prefix"
8366 eval x=\"$x\"
8367 exec_prefix="$acl_save_exec_prefix"
8368 prefix="$acl_save_prefix"
8369
8370 if test "X$x" = "X-I$additional_includedir"; then
8371 haveit=yes
8372 break
8373 fi
8374 done
8375 if test -z "$haveit"; then
8376 if test -d "$additional_includedir"; then
8377 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8378 fi
8379 fi
8380 fi
8381 fi
8382 fi
8383 if test -n "$found_la"; then
8384 save_libdir="$libdir"
8385 case "$found_la" in
8386 */* | *\\*) . "$found_la" ;;
8387 *) . "./$found_la" ;;
8388 esac
8389 libdir="$save_libdir"
8390 for dep in $dependency_libs; do
8391 case "$dep" in
8392 -L*)
8393 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8394 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8395 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8396 haveit=
8397 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8398 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8399 if test -n "$GCC"; then
8400 case $host_os in
8401 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8402 esac
8403 fi
8404 fi
8405 if test -z "$haveit"; then
8406 haveit=
8407 for x in $LDFLAGS $LIBPTH; do
8408
8409 acl_save_prefix="$prefix"
8410 prefix="$acl_final_prefix"
8411 acl_save_exec_prefix="$exec_prefix"
8412 exec_prefix="$acl_final_exec_prefix"
8413 eval x=\"$x\"
8414 exec_prefix="$acl_save_exec_prefix"
8415 prefix="$acl_save_prefix"
8416
8417 if test "X$x" = "X-L$additional_libdir"; then
8418 haveit=yes
8419 break
8420 fi
8421 done
8422 if test -z "$haveit"; then
8423 if test -d "$additional_libdir"; then
8424 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8425 fi
8426 fi
8427 haveit=
8428 for x in $LDFLAGS $LTLIBPTH; do
8429
8430 acl_save_prefix="$prefix"
8431 prefix="$acl_final_prefix"
8432 acl_save_exec_prefix="$exec_prefix"
8433 exec_prefix="$acl_final_exec_prefix"
8434 eval x=\"$x\"
8435 exec_prefix="$acl_save_exec_prefix"
8436 prefix="$acl_save_prefix"
8437
8438 if test "X$x" = "X-L$additional_libdir"; then
8439 haveit=yes
8440 break
8441 fi
8442 done
8443 if test -z "$haveit"; then
8444 if test -d "$additional_libdir"; then
8445 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8446 fi
8447 fi
8448 fi
8449 fi
8450 ;;
8451 -R*)
8452 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8453 if test "$enable_rpath" != no; then
8454 haveit=
8455 for x in $rpathdirs; do
8456 if test "X$x" = "X$dir"; then
8457 haveit=yes
8458 break
8459 fi
8460 done
8461 if test -z "$haveit"; then
8462 rpathdirs="$rpathdirs $dir"
8463 fi
8464 haveit=
8465 for x in $ltrpathdirs; do
8466 if test "X$x" = "X$dir"; then
8467 haveit=yes
8468 break
8469 fi
8470 done
8471 if test -z "$haveit"; then
8472 ltrpathdirs="$ltrpathdirs $dir"
8473 fi
8474 fi
8475 ;;
8476 -l*)
8477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8478 ;;
8479 *.la)
8480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8481 ;;
8482 *)
8483 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8484 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8485 ;;
8486 esac
8487 done
8488 fi
8489 else
8490 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8491 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8492 fi
8493 fi
8494 fi
8495 done
8496 done
8497 if test "X$rpathdirs" != "X"; then
8498 if test -n "$acl_hardcode_libdir_separator"; then
8499 alldirs=
8500 for found_dir in $rpathdirs; do
8501 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8502 done
8503 acl_save_libdir="$libdir"
8504 libdir="$alldirs"
8505 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8506 libdir="$acl_save_libdir"
8507 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8508 else
8509 for found_dir in $rpathdirs; do
8510 acl_save_libdir="$libdir"
8511 libdir="$found_dir"
8512 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8513 libdir="$acl_save_libdir"
8514 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8515 done
8516 fi
8517 fi
8518 if test "X$ltrpathdirs" != "X"; then
8519 for found_dir in $ltrpathdirs; do
8520 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8521 done
8522 fi
8523
8524
8525
8526
8527
8528
8529 ac_cv_libpth_libs="$LIBPTH"
8530 ac_cv_libpth_ltlibs="$LTLIBPTH"
8531 ac_cv_libpth_cppflags="$INCPTH"
8532 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8533
8534 fi
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8536 $as_echo "$ac_cv_libpth_libs" >&6; }
8537 LIBPTH="$ac_cv_libpth_libs"
8538 LTLIBPTH="$ac_cv_libpth_ltlibs"
8539 INCPTH="$ac_cv_libpth_cppflags"
8540 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8541
8542 for element in $INCPTH; do
8543 haveit=
8544 for x in $CPPFLAGS; do
8545
8546 acl_save_prefix="$prefix"
8547 prefix="$acl_final_prefix"
8548 acl_save_exec_prefix="$exec_prefix"
8549 exec_prefix="$acl_final_exec_prefix"
8550 eval x=\"$x\"
8551 exec_prefix="$acl_save_exec_prefix"
8552 prefix="$acl_save_prefix"
8553
8554 if test "X$x" = "X$element"; then
8555 haveit=yes
8556 break
8557 fi
8558 done
8559 if test -z "$haveit"; then
8560 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8561 fi
8562 done
8563
8564
8565
8566
8567 HAVE_LIBPTH=yes
8568
8569
8570
8571 gl_have_pth=
8572 gl_save_LIBS="$LIBS"
8573 LIBS="$LIBS $LIBPTH"
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 #include <pth.h>
8577 int
8578 main ()
8579 {
8580 pth_self();
8581 ;
8582 return 0;
8583 }
8584 _ACEOF
8585 if ac_fn_c_try_link "$LINENO"; then :
8586 gl_have_pth=yes
8587 fi
8588 rm -f core conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8590 LIBS="$gl_save_LIBS"
8591 if test -n "$gl_have_pth"; then
8592 gl_threads_api=pth
8593 LIBTHREAD="$LIBPTH"
8594 LTLIBTHREAD="$LTLIBPTH"
8595 LIBMULTITHREAD="$LIBTHREAD"
8596 LTLIBMULTITHREAD="$LTLIBTHREAD"
8597
8598 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8599
8600 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8601 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8602
8603 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8604
8605 LIBTHREAD=
8606 LTLIBTHREAD=
8607 fi
8608 fi
8609 else
8610 CPPFLAGS="$gl_save_CPPFLAGS"
8611 fi
8612 fi
8613 if test -z "$gl_have_pthread"; then
8614 case "$gl_use_threads" in
8615 yes | windows | win32) # The 'win32' is for backward compatibility.
8616 if { case "$host_os" in
8617 mingw*) true;;
8618 *) false;;
8619 esac
8620 }; then
8621 gl_threads_api=windows
8622
8623 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8624
8625 fi
8626 ;;
8627 esac
8628 fi
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8631 $as_echo_n "checking for multithread API to use... " >&6; }
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8633 $as_echo "$gl_threads_api" >&6; }
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645 if test "$gl_threads_api" = posix; then
8646 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8647 # pthread_rwlock_* functions.
8648 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8649 "
8650 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8651
8652 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8653
8654 fi
8655
8656 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659
8660 #include <pthread.h>
8661 int
8662 main ()
8663 {
8664
8665 #if __FreeBSD__ == 4
8666 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8667 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8668 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8669 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8670 #else
8671 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8672 return !x;
8673 #endif
8674
8675 ;
8676 return 0;
8677 }
8678 _ACEOF
8679 if ac_fn_c_try_compile "$LINENO"; then :
8680
8681 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8682
8683 fi
8684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685 fi
8686 :
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699 use_additional=yes
8700
8701 acl_save_prefix="$prefix"
8702 prefix="$acl_final_prefix"
8703 acl_save_exec_prefix="$exec_prefix"
8704 exec_prefix="$acl_final_exec_prefix"
8705
8706 eval additional_includedir=\"$includedir\"
8707 eval additional_libdir=\"$libdir\"
8708
8709 exec_prefix="$acl_save_exec_prefix"
8710 prefix="$acl_save_prefix"
8711
8712
8713 # Check whether --with-libiconv-prefix was given.
8714 if test "${with_libiconv_prefix+set}" = set; then :
8715 withval=$with_libiconv_prefix;
8716 if test "X$withval" = "Xno"; then
8717 use_additional=no
8718 else
8719 if test "X$withval" = "X"; then
8720
8721 acl_save_prefix="$prefix"
8722 prefix="$acl_final_prefix"
8723 acl_save_exec_prefix="$exec_prefix"
8724 exec_prefix="$acl_final_exec_prefix"
8725
8726 eval additional_includedir=\"$includedir\"
8727 eval additional_libdir=\"$libdir\"
8728
8729 exec_prefix="$acl_save_exec_prefix"
8730 prefix="$acl_save_prefix"
8731
8732 else
8733 additional_includedir="$withval/include"
8734 additional_libdir="$withval/$acl_libdirstem"
8735 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8736 && ! test -d "$withval/$acl_libdirstem"; then
8737 additional_libdir="$withval/$acl_libdirstem2"
8738 fi
8739 fi
8740 fi
8741
8742 fi
8743
8744 LIBICONV=
8745 LTLIBICONV=
8746 INCICONV=
8747 LIBICONV_PREFIX=
8748 HAVE_LIBICONV=
8749 rpathdirs=
8750 ltrpathdirs=
8751 names_already_handled=
8752 names_next_round='iconv '
8753 while test -n "$names_next_round"; do
8754 names_this_round="$names_next_round"
8755 names_next_round=
8756 for name in $names_this_round; do
8757 already_handled=
8758 for n in $names_already_handled; do
8759 if test "$n" = "$name"; then
8760 already_handled=yes
8761 break
8762 fi
8763 done
8764 if test -z "$already_handled"; then
8765 names_already_handled="$names_already_handled $name"
8766 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8767 eval value=\"\$HAVE_LIB$uppername\"
8768 if test -n "$value"; then
8769 if test "$value" = yes; then
8770 eval value=\"\$LIB$uppername\"
8771 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8772 eval value=\"\$LTLIB$uppername\"
8773 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8774 else
8775 :
8776 fi
8777 else
8778 found_dir=
8779 found_la=
8780 found_so=
8781 found_a=
8782 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8783 if test -n "$acl_shlibext"; then
8784 shrext=".$acl_shlibext" # typically: shrext=.so
8785 else
8786 shrext=
8787 fi
8788 if test $use_additional = yes; then
8789 dir="$additional_libdir"
8790 if test -n "$acl_shlibext"; then
8791 if test -f "$dir/$libname$shrext"; then
8792 found_dir="$dir"
8793 found_so="$dir/$libname$shrext"
8794 else
8795 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8796 ver=`(cd "$dir" && \
8797 for f in "$libname$shrext".*; do echo "$f"; done \
8798 | sed -e "s,^$libname$shrext\\\\.,," \
8799 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8800 | sed 1q ) 2>/dev/null`
8801 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8802 found_dir="$dir"
8803 found_so="$dir/$libname$shrext.$ver"
8804 fi
8805 else
8806 eval library_names=\"$acl_library_names_spec\"
8807 for f in $library_names; do
8808 if test -f "$dir/$f"; then
8809 found_dir="$dir"
8810 found_so="$dir/$f"
8811 break
8812 fi
8813 done
8814 fi
8815 fi
8816 fi
8817 if test "X$found_dir" = "X"; then
8818 if test -f "$dir/$libname.$acl_libext"; then
8819 found_dir="$dir"
8820 found_a="$dir/$libname.$acl_libext"
8821 fi
8822 fi
8823 if test "X$found_dir" != "X"; then
8824 if test -f "$dir/$libname.la"; then
8825 found_la="$dir/$libname.la"
8826 fi
8827 fi
8828 fi
8829 if test "X$found_dir" = "X"; then
8830 for x in $LDFLAGS $LTLIBICONV; do
8831
8832 acl_save_prefix="$prefix"
8833 prefix="$acl_final_prefix"
8834 acl_save_exec_prefix="$exec_prefix"
8835 exec_prefix="$acl_final_exec_prefix"
8836 eval x=\"$x\"
8837 exec_prefix="$acl_save_exec_prefix"
8838 prefix="$acl_save_prefix"
8839
8840 case "$x" in
8841 -L*)
8842 dir=`echo "X$x" | sed -e 's/^X-L//'`
8843 if test -n "$acl_shlibext"; then
8844 if test -f "$dir/$libname$shrext"; then
8845 found_dir="$dir"
8846 found_so="$dir/$libname$shrext"
8847 else
8848 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8849 ver=`(cd "$dir" && \
8850 for f in "$libname$shrext".*; do echo "$f"; done \
8851 | sed -e "s,^$libname$shrext\\\\.,," \
8852 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8853 | sed 1q ) 2>/dev/null`
8854 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8855 found_dir="$dir"
8856 found_so="$dir/$libname$shrext.$ver"
8857 fi
8858 else
8859 eval library_names=\"$acl_library_names_spec\"
8860 for f in $library_names; do
8861 if test -f "$dir/$f"; then
8862 found_dir="$dir"
8863 found_so="$dir/$f"
8864 break
8865 fi
8866 done
8867 fi
8868 fi
8869 fi
8870 if test "X$found_dir" = "X"; then
8871 if test -f "$dir/$libname.$acl_libext"; then
8872 found_dir="$dir"
8873 found_a="$dir/$libname.$acl_libext"
8874 fi
8875 fi
8876 if test "X$found_dir" != "X"; then
8877 if test -f "$dir/$libname.la"; then
8878 found_la="$dir/$libname.la"
8879 fi
8880 fi
8881 ;;
8882 esac
8883 if test "X$found_dir" != "X"; then
8884 break
8885 fi
8886 done
8887 fi
8888 if test "X$found_dir" != "X"; then
8889 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8890 if test "X$found_so" != "X"; then
8891 if test "$enable_rpath" = no \
8892 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8893 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8894 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8895 else
8896 haveit=
8897 for x in $ltrpathdirs; do
8898 if test "X$x" = "X$found_dir"; then
8899 haveit=yes
8900 break
8901 fi
8902 done
8903 if test -z "$haveit"; then
8904 ltrpathdirs="$ltrpathdirs $found_dir"
8905 fi
8906 if test "$acl_hardcode_direct" = yes; then
8907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8908 else
8909 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8910 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8911 haveit=
8912 for x in $rpathdirs; do
8913 if test "X$x" = "X$found_dir"; then
8914 haveit=yes
8915 break
8916 fi
8917 done
8918 if test -z "$haveit"; then
8919 rpathdirs="$rpathdirs $found_dir"
8920 fi
8921 else
8922 haveit=
8923 for x in $LDFLAGS $LIBICONV; do
8924
8925 acl_save_prefix="$prefix"
8926 prefix="$acl_final_prefix"
8927 acl_save_exec_prefix="$exec_prefix"
8928 exec_prefix="$acl_final_exec_prefix"
8929 eval x=\"$x\"
8930 exec_prefix="$acl_save_exec_prefix"
8931 prefix="$acl_save_prefix"
8932
8933 if test "X$x" = "X-L$found_dir"; then
8934 haveit=yes
8935 break
8936 fi
8937 done
8938 if test -z "$haveit"; then
8939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8940 fi
8941 if test "$acl_hardcode_minus_L" != no; then
8942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8943 else
8944 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8945 fi
8946 fi
8947 fi
8948 fi
8949 else
8950 if test "X$found_a" != "X"; then
8951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8952 else
8953 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8954 fi
8955 fi
8956 additional_includedir=
8957 case "$found_dir" in
8958 */$acl_libdirstem | */$acl_libdirstem/)
8959 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8960 if test "$name" = 'iconv'; then
8961 LIBICONV_PREFIX="$basedir"
8962 fi
8963 additional_includedir="$basedir/include"
8964 ;;
8965 */$acl_libdirstem2 | */$acl_libdirstem2/)
8966 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8967 if test "$name" = 'iconv'; then
8968 LIBICONV_PREFIX="$basedir"
8969 fi
8970 additional_includedir="$basedir/include"
8971 ;;
8972 esac
8973 if test "X$additional_includedir" != "X"; then
8974 if test "X$additional_includedir" != "X/usr/include"; then
8975 haveit=
8976 if test "X$additional_includedir" = "X/usr/local/include"; then
8977 if test -n "$GCC"; then
8978 case $host_os in
8979 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8980 esac
8981 fi
8982 fi
8983 if test -z "$haveit"; then
8984 for x in $CPPFLAGS $INCICONV; do
8985
8986 acl_save_prefix="$prefix"
8987 prefix="$acl_final_prefix"
8988 acl_save_exec_prefix="$exec_prefix"
8989 exec_prefix="$acl_final_exec_prefix"
8990 eval x=\"$x\"
8991 exec_prefix="$acl_save_exec_prefix"
8992 prefix="$acl_save_prefix"
8993
8994 if test "X$x" = "X-I$additional_includedir"; then
8995 haveit=yes
8996 break
8997 fi
8998 done
8999 if test -z "$haveit"; then
9000 if test -d "$additional_includedir"; then
9001 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9002 fi
9003 fi
9004 fi
9005 fi
9006 fi
9007 if test -n "$found_la"; then
9008 save_libdir="$libdir"
9009 case "$found_la" in
9010 */* | *\\*) . "$found_la" ;;
9011 *) . "./$found_la" ;;
9012 esac
9013 libdir="$save_libdir"
9014 for dep in $dependency_libs; do
9015 case "$dep" in
9016 -L*)
9017 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9018 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9019 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9020 haveit=
9021 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9022 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9023 if test -n "$GCC"; then
9024 case $host_os in
9025 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9026 esac
9027 fi
9028 fi
9029 if test -z "$haveit"; then
9030 haveit=
9031 for x in $LDFLAGS $LIBICONV; do
9032
9033 acl_save_prefix="$prefix"
9034 prefix="$acl_final_prefix"
9035 acl_save_exec_prefix="$exec_prefix"
9036 exec_prefix="$acl_final_exec_prefix"
9037 eval x=\"$x\"
9038 exec_prefix="$acl_save_exec_prefix"
9039 prefix="$acl_save_prefix"
9040
9041 if test "X$x" = "X-L$additional_libdir"; then
9042 haveit=yes
9043 break
9044 fi
9045 done
9046 if test -z "$haveit"; then
9047 if test -d "$additional_libdir"; then
9048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9049 fi
9050 fi
9051 haveit=
9052 for x in $LDFLAGS $LTLIBICONV; do
9053
9054 acl_save_prefix="$prefix"
9055 prefix="$acl_final_prefix"
9056 acl_save_exec_prefix="$exec_prefix"
9057 exec_prefix="$acl_final_exec_prefix"
9058 eval x=\"$x\"
9059 exec_prefix="$acl_save_exec_prefix"
9060 prefix="$acl_save_prefix"
9061
9062 if test "X$x" = "X-L$additional_libdir"; then
9063 haveit=yes
9064 break
9065 fi
9066 done
9067 if test -z "$haveit"; then
9068 if test -d "$additional_libdir"; then
9069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9070 fi
9071 fi
9072 fi
9073 fi
9074 ;;
9075 -R*)
9076 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9077 if test "$enable_rpath" != no; then
9078 haveit=
9079 for x in $rpathdirs; do
9080 if test "X$x" = "X$dir"; then
9081 haveit=yes
9082 break
9083 fi
9084 done
9085 if test -z "$haveit"; then
9086 rpathdirs="$rpathdirs $dir"
9087 fi
9088 haveit=
9089 for x in $ltrpathdirs; do
9090 if test "X$x" = "X$dir"; then
9091 haveit=yes
9092 break
9093 fi
9094 done
9095 if test -z "$haveit"; then
9096 ltrpathdirs="$ltrpathdirs $dir"
9097 fi
9098 fi
9099 ;;
9100 -l*)
9101 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9102 ;;
9103 *.la)
9104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9105 ;;
9106 *)
9107 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9109 ;;
9110 esac
9111 done
9112 fi
9113 else
9114 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9116 fi
9117 fi
9118 fi
9119 done
9120 done
9121 if test "X$rpathdirs" != "X"; then
9122 if test -n "$acl_hardcode_libdir_separator"; then
9123 alldirs=
9124 for found_dir in $rpathdirs; do
9125 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9126 done
9127 acl_save_libdir="$libdir"
9128 libdir="$alldirs"
9129 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9130 libdir="$acl_save_libdir"
9131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9132 else
9133 for found_dir in $rpathdirs; do
9134 acl_save_libdir="$libdir"
9135 libdir="$found_dir"
9136 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9137 libdir="$acl_save_libdir"
9138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9139 done
9140 fi
9141 fi
9142 if test "X$ltrpathdirs" != "X"; then
9143 for found_dir in $ltrpathdirs; do
9144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9145 done
9146 fi
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159 am_save_CPPFLAGS="$CPPFLAGS"
9160
9161 for element in $INCICONV; do
9162 haveit=
9163 for x in $CPPFLAGS; do
9164
9165 acl_save_prefix="$prefix"
9166 prefix="$acl_final_prefix"
9167 acl_save_exec_prefix="$exec_prefix"
9168 exec_prefix="$acl_final_exec_prefix"
9169 eval x=\"$x\"
9170 exec_prefix="$acl_save_exec_prefix"
9171 prefix="$acl_save_prefix"
9172
9173 if test "X$x" = "X$element"; then
9174 haveit=yes
9175 break
9176 fi
9177 done
9178 if test -z "$haveit"; then
9179 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9180 fi
9181 done
9182
9183
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9185 $as_echo_n "checking for iconv... " >&6; }
9186 if ${am_cv_func_iconv+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189
9190 am_cv_func_iconv="no, consider installing GNU libiconv"
9191 am_cv_lib_iconv=no
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9194
9195 #include <stdlib.h>
9196 #include <iconv.h>
9197
9198 int
9199 main ()
9200 {
9201 iconv_t cd = iconv_open("","");
9202 iconv(cd,NULL,NULL,NULL,NULL);
9203 iconv_close(cd);
9204 ;
9205 return 0;
9206 }
9207 _ACEOF
9208 if ac_fn_c_try_link "$LINENO"; then :
9209 am_cv_func_iconv=yes
9210 fi
9211 rm -f core conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
9213 if test "$am_cv_func_iconv" != yes; then
9214 am_save_LIBS="$LIBS"
9215 LIBS="$LIBS $LIBICONV"
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9218
9219 #include <stdlib.h>
9220 #include <iconv.h>
9221
9222 int
9223 main ()
9224 {
9225 iconv_t cd = iconv_open("","");
9226 iconv(cd,NULL,NULL,NULL,NULL);
9227 iconv_close(cd);
9228 ;
9229 return 0;
9230 }
9231 _ACEOF
9232 if ac_fn_c_try_link "$LINENO"; then :
9233 am_cv_lib_iconv=yes
9234 am_cv_func_iconv=yes
9235 fi
9236 rm -f core conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS="$am_save_LIBS"
9239 fi
9240
9241 fi
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9243 $as_echo "$am_cv_func_iconv" >&6; }
9244 if test "$am_cv_func_iconv" = yes; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9246 $as_echo_n "checking for working iconv... " >&6; }
9247 if ${am_cv_func_iconv_works+:} false; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250
9251 am_save_LIBS="$LIBS"
9252 if test $am_cv_lib_iconv = yes; then
9253 LIBS="$LIBS $LIBICONV"
9254 fi
9255 if test "$cross_compiling" = yes; then :
9256
9257 case "$host_os" in
9258 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9259 *) am_cv_func_iconv_works="guessing yes" ;;
9260 esac
9261
9262 else
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265
9266 #include <iconv.h>
9267 #include <string.h>
9268 int main ()
9269 {
9270 int result = 0;
9271 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9272 returns. */
9273 {
9274 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9275 if (cd_utf8_to_88591 != (iconv_t)(-1))
9276 {
9277 static const char input[] = "\342\202\254"; /* EURO SIGN */
9278 char buf[10];
9279 const char *inptr = input;
9280 size_t inbytesleft = strlen (input);
9281 char *outptr = buf;
9282 size_t outbytesleft = sizeof (buf);
9283 size_t res = iconv (cd_utf8_to_88591,
9284 (char **) &inptr, &inbytesleft,
9285 &outptr, &outbytesleft);
9286 if (res == 0)
9287 result |= 1;
9288 iconv_close (cd_utf8_to_88591);
9289 }
9290 }
9291 /* Test against Solaris 10 bug: Failures are not distinguishable from
9292 successful returns. */
9293 {
9294 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9295 if (cd_ascii_to_88591 != (iconv_t)(-1))
9296 {
9297 static const char input[] = "\263";
9298 char buf[10];
9299 const char *inptr = input;
9300 size_t inbytesleft = strlen (input);
9301 char *outptr = buf;
9302 size_t outbytesleft = sizeof (buf);
9303 size_t res = iconv (cd_ascii_to_88591,
9304 (char **) &inptr, &inbytesleft,
9305 &outptr, &outbytesleft);
9306 if (res == 0)
9307 result |= 2;
9308 iconv_close (cd_ascii_to_88591);
9309 }
9310 }
9311 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9312 {
9313 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9314 if (cd_88591_to_utf8 != (iconv_t)(-1))
9315 {
9316 static const char input[] = "\304";
9317 static char buf[2] = { (char)0xDE, (char)0xAD };
9318 const char *inptr = input;
9319 size_t inbytesleft = 1;
9320 char *outptr = buf;
9321 size_t outbytesleft = 1;
9322 size_t res = iconv (cd_88591_to_utf8,
9323 (char **) &inptr, &inbytesleft,
9324 &outptr, &outbytesleft);
9325 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9326 result |= 4;
9327 iconv_close (cd_88591_to_utf8);
9328 }
9329 }
9330 #if 0 /* This bug could be worked around by the caller. */
9331 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9332 {
9333 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9334 if (cd_88591_to_utf8 != (iconv_t)(-1))
9335 {
9336 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9337 char buf[50];
9338 const char *inptr = input;
9339 size_t inbytesleft = strlen (input);
9340 char *outptr = buf;
9341 size_t outbytesleft = sizeof (buf);
9342 size_t res = iconv (cd_88591_to_utf8,
9343 (char **) &inptr, &inbytesleft,
9344 &outptr, &outbytesleft);
9345 if ((int)res > 0)
9346 result |= 8;
9347 iconv_close (cd_88591_to_utf8);
9348 }
9349 }
9350 #endif
9351 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9352 provided. */
9353 if (/* Try standardized names. */
9354 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9355 /* Try IRIX, OSF/1 names. */
9356 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9357 /* Try AIX names. */
9358 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9359 /* Try HP-UX names. */
9360 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9361 result |= 16;
9362 return result;
9363 }
9364 _ACEOF
9365 if ac_fn_c_try_run "$LINENO"; then :
9366 am_cv_func_iconv_works=yes
9367 else
9368 am_cv_func_iconv_works=no
9369 fi
9370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9371 conftest.$ac_objext conftest.beam conftest.$ac_ext
9372 fi
9373
9374 LIBS="$am_save_LIBS"
9375
9376 fi
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9378 $as_echo "$am_cv_func_iconv_works" >&6; }
9379 case "$am_cv_func_iconv_works" in
9380 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9381 *) am_func_iconv=yes ;;
9382 esac
9383 else
9384 am_func_iconv=no am_cv_lib_iconv=no
9385 fi
9386 if test "$am_func_iconv" = yes; then
9387
9388 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9389
9390 fi
9391 if test "$am_cv_lib_iconv" = yes; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9393 $as_echo_n "checking how to link with libiconv... " >&6; }
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9395 $as_echo "$LIBICONV" >&6; }
9396 else
9397 CPPFLAGS="$am_save_CPPFLAGS"
9398 LIBICONV=
9399 LTLIBICONV=
9400 fi
9401
9402
9403
9404 if test "$am_cv_func_iconv" = yes; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9406 $as_echo_n "checking for iconv declaration... " >&6; }
9407 if ${am_cv_proto_iconv+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9413
9414 #include <stdlib.h>
9415 #include <iconv.h>
9416 extern
9417 #ifdef __cplusplus
9418 "C"
9419 #endif
9420 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9421 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9422 #else
9423 size_t iconv();
9424 #endif
9425
9426 int
9427 main ()
9428 {
9429
9430 ;
9431 return 0;
9432 }
9433 _ACEOF
9434 if ac_fn_c_try_compile "$LINENO"; then :
9435 am_cv_proto_iconv_arg1=""
9436 else
9437 am_cv_proto_iconv_arg1="const"
9438 fi
9439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440 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);"
9441 fi
9442
9443 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9445 $am_cv_proto_iconv" >&5
9446 $as_echo "
9447 $am_cv_proto_iconv" >&6; }
9448
9449 cat >>confdefs.h <<_ACEOF
9450 #define ICONV_CONST $am_cv_proto_iconv_arg1
9451 _ACEOF
9452
9453
9454 fi
9455
9456
9457
9458
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9462 int
9463 main ()
9464 {
9465
9466 ;
9467 return 0;
9468 }
9469 _ACEOF
9470 if ac_fn_c_try_link "$LINENO"; then :
9471
9472 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9473
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9477
9478 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9479 do :
9480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9481 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9482 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9483 cat >>confdefs.h <<_ACEOF
9484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9485 _ACEOF
9486
9487 fi
9488
9489 done
9490
9491 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9492 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9493 argz_stringify argz_next __fsetlocking
9494 do :
9495 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9496 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9497 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9498 cat >>confdefs.h <<_ACEOF
9499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9500 _ACEOF
9501
9502 fi
9503 done
9504
9505
9506 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9507 "
9508 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9509 ac_have_decl=1
9510 else
9511 ac_have_decl=0
9512 fi
9513
9514 cat >>confdefs.h <<_ACEOF
9515 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9516 _ACEOF
9517 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9518 "
9519 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9520 ac_have_decl=1
9521 else
9522 ac_have_decl=0
9523 fi
9524
9525 cat >>confdefs.h <<_ACEOF
9526 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9527 _ACEOF
9528
9529
9530
9531
9532 for ac_prog in bison
9533 do
9534 # Extract the first word of "$ac_prog", so it can be a program name with args.
9535 set dummy $ac_prog; ac_word=$2
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9537 $as_echo_n "checking for $ac_word... " >&6; }
9538 if ${ac_cv_prog_INTLBISON+:} false; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 if test -n "$INTLBISON"; then
9542 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9543 else
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in $PATH
9546 do
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9551 ac_cv_prog_INTLBISON="$ac_prog"
9552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9554 fi
9555 done
9556 done
9557 IFS=$as_save_IFS
9558
9559 fi
9560 fi
9561 INTLBISON=$ac_cv_prog_INTLBISON
9562 if test -n "$INTLBISON"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9564 $as_echo "$INTLBISON" >&6; }
9565 else
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9568 fi
9569
9570
9571 test -n "$INTLBISON" && break
9572 done
9573
9574 if test -z "$INTLBISON"; then
9575 ac_verc_fail=yes
9576 else
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9578 $as_echo_n "checking version of bison... " >&6; }
9579 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9580 case $ac_prog_version in
9581 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9582 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9583 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9584 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9585 esac
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9587 $as_echo "$ac_prog_version" >&6; }
9588 fi
9589 if test $ac_verc_fail = yes; then
9590 INTLBISON=:
9591 fi
9592
9593
9594
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9596 $as_echo_n "checking for long long int... " >&6; }
9597 if ${ac_cv_type_long_long_int+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 ac_cv_type_long_long_int=yes
9601 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9602 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9603 if test $ac_cv_type_long_long_int = yes; then
9604 if test "$cross_compiling" = yes; then :
9605 :
9606 else
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 #include <limits.h>
9610 #ifndef LLONG_MAX
9611 # define HALF \
9612 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9613 # define LLONG_MAX (HALF - 1 + HALF)
9614 #endif
9615 int
9616 main ()
9617 {
9618 long long int n = 1;
9619 int i;
9620 for (i = 0; ; i++)
9621 {
9622 long long int m = n << i;
9623 if (m >> i != n)
9624 return 1;
9625 if (LLONG_MAX / 2 < m)
9626 break;
9627 }
9628 return 0;
9629 ;
9630 return 0;
9631 }
9632 _ACEOF
9633 if ac_fn_c_try_run "$LINENO"; then :
9634
9635 else
9636 ac_cv_type_long_long_int=no
9637 fi
9638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9639 conftest.$ac_objext conftest.beam conftest.$ac_ext
9640 fi
9641
9642 fi
9643 fi
9644 fi
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9646 $as_echo "$ac_cv_type_long_long_int" >&6; }
9647 if test $ac_cv_type_long_long_int = yes; then
9648
9649 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9650
9651 fi
9652
9653
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9655 $as_echo_n "checking for wchar_t... " >&6; }
9656 if ${gt_cv_c_wchar_t+:} false; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h. */
9661 #include <stddef.h>
9662 wchar_t foo = (wchar_t)'\0';
9663 int
9664 main ()
9665 {
9666
9667 ;
9668 return 0;
9669 }
9670 _ACEOF
9671 if ac_fn_c_try_compile "$LINENO"; then :
9672 gt_cv_c_wchar_t=yes
9673 else
9674 gt_cv_c_wchar_t=no
9675 fi
9676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9677 fi
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9679 $as_echo "$gt_cv_c_wchar_t" >&6; }
9680 if test $gt_cv_c_wchar_t = yes; then
9681
9682 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9683
9684 fi
9685
9686
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9688 $as_echo_n "checking for wint_t... " >&6; }
9689 if ${gt_cv_c_wint_t+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694
9695 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9696 <wchar.h>.
9697 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9698 before <wchar.h>. */
9699 #include <stddef.h>
9700 #include <stdio.h>
9701 #include <time.h>
9702 #include <wchar.h>
9703 wint_t foo = (wchar_t)'\0';
9704 int
9705 main ()
9706 {
9707
9708 ;
9709 return 0;
9710 }
9711 _ACEOF
9712 if ac_fn_c_try_compile "$LINENO"; then :
9713 gt_cv_c_wint_t=yes
9714 else
9715 gt_cv_c_wint_t=no
9716 fi
9717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718 fi
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9720 $as_echo "$gt_cv_c_wint_t" >&6; }
9721 if test $gt_cv_c_wint_t = yes; then
9722
9723 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9724
9725 fi
9726
9727
9728
9729
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9731 $as_echo_n "checking for intmax_t... " >&6; }
9732 if ${gt_cv_c_intmax_t+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737
9738 #include <stddef.h>
9739 #include <stdlib.h>
9740 #if HAVE_STDINT_H_WITH_UINTMAX
9741 #include <stdint.h>
9742 #endif
9743 #if HAVE_INTTYPES_H_WITH_UINTMAX
9744 #include <inttypes.h>
9745 #endif
9746
9747 int
9748 main ()
9749 {
9750 intmax_t x = -1;
9751 return !x;
9752 ;
9753 return 0;
9754 }
9755 _ACEOF
9756 if ac_fn_c_try_compile "$LINENO"; then :
9757 gt_cv_c_intmax_t=yes
9758 else
9759 gt_cv_c_intmax_t=no
9760 fi
9761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9762 fi
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9764 $as_echo "$gt_cv_c_intmax_t" >&6; }
9765 if test $gt_cv_c_intmax_t = yes; then
9766
9767 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9768
9769 fi
9770
9771
9772
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9774 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9775 if ${gt_cv_func_printf_posix+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778
9779 if test "$cross_compiling" = yes; then :
9780
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9783
9784 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9785 notposix
9786 #endif
9787
9788 _ACEOF
9789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9790 $EGREP "notposix" >/dev/null 2>&1; then :
9791 gt_cv_func_printf_posix="guessing no"
9792 else
9793 gt_cv_func_printf_posix="guessing yes"
9794 fi
9795 rm -f conftest*
9796
9797
9798 else
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h. */
9801
9802 #include <stdio.h>
9803 #include <string.h>
9804 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9805 dollar expansion (possibly an autoconf bug). */
9806 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9807 static char buf[100];
9808 int main ()
9809 {
9810 sprintf (buf, format, 33, 55);
9811 return (strcmp (buf, "55 33") != 0);
9812 }
9813 _ACEOF
9814 if ac_fn_c_try_run "$LINENO"; then :
9815 gt_cv_func_printf_posix=yes
9816 else
9817 gt_cv_func_printf_posix=no
9818 fi
9819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9820 conftest.$ac_objext conftest.beam conftest.$ac_ext
9821 fi
9822
9823
9824 fi
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9826 $as_echo "$gt_cv_func_printf_posix" >&6; }
9827 case $gt_cv_func_printf_posix in
9828 *yes)
9829
9830 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9831
9832 ;;
9833 esac
9834
9835
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9837 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9838 if ${ac_cv_gnu_library_2_1+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9843
9844 #include <features.h>
9845 #ifdef __GNU_LIBRARY__
9846 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9847 Lucky GNU user
9848 #endif
9849 #endif
9850 #ifdef __UCLIBC__
9851 Lucky user
9852 #endif
9853
9854 _ACEOF
9855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9856 $EGREP "Lucky" >/dev/null 2>&1; then :
9857 ac_cv_gnu_library_2_1=yes
9858 else
9859 ac_cv_gnu_library_2_1=no
9860 fi
9861 rm -f conftest*
9862
9863
9864
9865 fi
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9867 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9868
9869 GLIBC21="$ac_cv_gnu_library_2_1"
9870
9871
9872
9873 for ac_header in stdint.h
9874 do :
9875 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9876 if test "x$ac_cv_header_stdint_h" = xyes; then :
9877 cat >>confdefs.h <<_ACEOF
9878 #define HAVE_STDINT_H 1
9879 _ACEOF
9880
9881 fi
9882
9883 done
9884
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9886 $as_echo_n "checking for SIZE_MAX... " >&6; }
9887 if ${gl_cv_size_max+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889 else
9890
9891 gl_cv_size_max=
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9894
9895 #include <limits.h>
9896 #if HAVE_STDINT_H
9897 #include <stdint.h>
9898 #endif
9899 #ifdef SIZE_MAX
9900 Found it
9901 #endif
9902
9903 _ACEOF
9904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9905 $EGREP "Found it" >/dev/null 2>&1; then :
9906 gl_cv_size_max=yes
9907 fi
9908 rm -f conftest*
9909
9910 if test -z "$gl_cv_size_max"; then
9911 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9912 #include <limits.h>"; then :
9913
9914 else
9915 size_t_bits_minus_1=
9916 fi
9917
9918 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9919
9920 else
9921 fits_in_uint=
9922 fi
9923
9924 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9925 if test $fits_in_uint = 1; then
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928 #include <stddef.h>
9929 extern size_t foo;
9930 extern unsigned long foo;
9931
9932 int
9933 main ()
9934 {
9935
9936 ;
9937 return 0;
9938 }
9939 _ACEOF
9940 if ac_fn_c_try_compile "$LINENO"; then :
9941 fits_in_uint=0
9942 fi
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944 fi
9945 if test $fits_in_uint = 1; then
9946 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9947 else
9948 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9949 fi
9950 else
9951 gl_cv_size_max='((size_t)~(size_t)0)'
9952 fi
9953 fi
9954
9955 fi
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9957 $as_echo "$gl_cv_size_max" >&6; }
9958 if test "$gl_cv_size_max" != yes; then
9959
9960 cat >>confdefs.h <<_ACEOF
9961 #define SIZE_MAX $gl_cv_size_max
9962 _ACEOF
9963
9964 fi
9965
9966
9967
9968
9969 for ac_header in stdint.h
9970 do :
9971 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9972 if test "x$ac_cv_header_stdint_h" = xyes; then :
9973 cat >>confdefs.h <<_ACEOF
9974 #define HAVE_STDINT_H 1
9975 _ACEOF
9976
9977 fi
9978
9979 done
9980
9981
9982
9983
9984
9985 for ac_func in $ac_func_list
9986 do :
9987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9988 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9989 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9990 cat >>confdefs.h <<_ACEOF
9991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9992 _ACEOF
9993
9994 fi
9995 done
9996
9997
9998
9999
10000
10001
10002
10003
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10005 $as_echo_n "checking for working fcntl.h... " >&6; }
10006 if ${gl_cv_header_working_fcntl_h+:} false; then :
10007 $as_echo_n "(cached) " >&6
10008 else
10009 if test "$cross_compiling" = yes; then :
10010 gl_cv_header_working_fcntl_h=cross-compiling
10011 else
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10014 #include <sys/types.h>
10015 #include <sys/stat.h>
10016 #if HAVE_UNISTD_H
10017 # include <unistd.h>
10018 #else /* on Windows with MSVC */
10019 # include <io.h>
10020 # include <stdlib.h>
10021 # defined sleep(n) _sleep ((n) * 1000)
10022 #endif
10023 #include <fcntl.h>
10024 #ifndef O_NOATIME
10025 #define O_NOATIME 0
10026 #endif
10027 #ifndef O_NOFOLLOW
10028 #define O_NOFOLLOW 0
10029 #endif
10030 static int const constants[] =
10031 {
10032 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10033 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10034 };
10035
10036 int
10037 main ()
10038 {
10039
10040 int result = !constants;
10041 #if HAVE_SYMLINK
10042 {
10043 static char const sym[] = "conftest.sym";
10044 if (symlink ("/dev/null", sym) != 0)
10045 result |= 2;
10046 else
10047 {
10048 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10049 if (fd >= 0)
10050 {
10051 close (fd);
10052 result |= 4;
10053 }
10054 }
10055 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10056 result |= 2;
10057 else
10058 {
10059 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10060 if (fd >= 0)
10061 {
10062 close (fd);
10063 result |= 4;
10064 }
10065 }
10066 unlink (sym);
10067 }
10068 #endif
10069 {
10070 static char const file[] = "confdefs.h";
10071 int fd = open (file, O_RDONLY | O_NOATIME);
10072 if (fd < 0)
10073 result |= 8;
10074 else
10075 {
10076 struct stat st0;
10077 if (fstat (fd, &st0) != 0)
10078 result |= 16;
10079 else
10080 {
10081 char c;
10082 sleep (1);
10083 if (read (fd, &c, 1) != 1)
10084 result |= 24;
10085 else
10086 {
10087 if (close (fd) != 0)
10088 result |= 32;
10089 else
10090 {
10091 struct stat st1;
10092 if (stat (file, &st1) != 0)
10093 result |= 40;
10094 else
10095 if (st0.st_atime != st1.st_atime)
10096 result |= 64;
10097 }
10098 }
10099 }
10100 }
10101 }
10102 return result;
10103 ;
10104 return 0;
10105 }
10106 _ACEOF
10107 if ac_fn_c_try_run "$LINENO"; then :
10108 gl_cv_header_working_fcntl_h=yes
10109 else
10110 case $? in #(
10111 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10112 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10113 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10114 *) gl_cv_header_working_fcntl_h='no';;
10115 esac
10116 fi
10117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10118 conftest.$ac_objext conftest.beam conftest.$ac_ext
10119 fi
10120
10121 fi
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10123 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10124
10125 case $gl_cv_header_working_fcntl_h in #(
10126 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10127 *) ac_val=1;;
10128 esac
10129
10130 cat >>confdefs.h <<_ACEOF
10131 #define HAVE_WORKING_O_NOATIME $ac_val
10132 _ACEOF
10133
10134
10135 case $gl_cv_header_working_fcntl_h in #(
10136 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10137 *) ac_val=1;;
10138 esac
10139
10140 cat >>confdefs.h <<_ACEOF
10141 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10142 _ACEOF
10143
10144
10145
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10147 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10148 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 gt_save_LIBS="$LIBS"
10152 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10155 #include <CoreFoundation/CFPreferences.h>
10156 int
10157 main ()
10158 {
10159 CFPreferencesCopyAppValue(NULL, NULL)
10160 ;
10161 return 0;
10162 }
10163 _ACEOF
10164 if ac_fn_c_try_link "$LINENO"; then :
10165 gt_cv_func_CFPreferencesCopyAppValue=yes
10166 else
10167 gt_cv_func_CFPreferencesCopyAppValue=no
10168 fi
10169 rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS="$gt_save_LIBS"
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10174 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10175 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10176
10177 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10178
10179 fi
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10181 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10182 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 gt_save_LIBS="$LIBS"
10186 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 #include <CoreFoundation/CFLocale.h>
10190 int
10191 main ()
10192 {
10193 CFLocaleCopyCurrent();
10194 ;
10195 return 0;
10196 }
10197 _ACEOF
10198 if ac_fn_c_try_link "$LINENO"; then :
10199 gt_cv_func_CFLocaleCopyCurrent=yes
10200 else
10201 gt_cv_func_CFLocaleCopyCurrent=no
10202 fi
10203 rm -f core conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205 LIBS="$gt_save_LIBS"
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10208 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10209 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10210
10211 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10212
10213 fi
10214 INTL_MACOSX_LIBS=
10215 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10216 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10217 fi
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228 case "$enable_silent_rules" in
10229 yes) INTL_DEFAULT_VERBOSITY=0;;
10230 no) INTL_DEFAULT_VERBOSITY=1;;
10231 *) INTL_DEFAULT_VERBOSITY=1;;
10232 esac
10233
10234
10235 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10236 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10237
10238 else
10239
10240 $as_echo "#define ptrdiff_t long" >>confdefs.h
10241
10242
10243 fi
10244
10245 for ac_header in features.h stddef.h stdlib.h string.h
10246 do :
10247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10248 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10249 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10250 cat >>confdefs.h <<_ACEOF
10251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10252 _ACEOF
10253
10254 fi
10255
10256 done
10257
10258 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10259 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10260 do :
10261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10262 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10263 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10264 cat >>confdefs.h <<_ACEOF
10265 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10266 _ACEOF
10267
10268 fi
10269 done
10270
10271
10272 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10273 "
10274 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10275 ac_have_decl=1
10276 else
10277 ac_have_decl=0
10278 fi
10279
10280 cat >>confdefs.h <<_ACEOF
10281 #define HAVE_DECL__SNPRINTF $ac_have_decl
10282 _ACEOF
10283 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10284 "
10285 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10286 ac_have_decl=1
10287 else
10288 ac_have_decl=0
10289 fi
10290
10291 cat >>confdefs.h <<_ACEOF
10292 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10293 _ACEOF
10294
10295
10296 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10297 "
10298 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10299 ac_have_decl=1
10300 else
10301 ac_have_decl=0
10302 fi
10303
10304 cat >>confdefs.h <<_ACEOF
10305 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10306 _ACEOF
10307
10308
10309 case $gt_cv_func_printf_posix in
10310 *yes) HAVE_POSIX_PRINTF=1 ;;
10311 *) HAVE_POSIX_PRINTF=0 ;;
10312 esac
10313
10314 if test "$ac_cv_func_asprintf" = yes; then
10315 HAVE_ASPRINTF=1
10316 else
10317 HAVE_ASPRINTF=0
10318 fi
10319
10320 if test "$ac_cv_func_snprintf" = yes; then
10321 HAVE_SNPRINTF=1
10322 else
10323 HAVE_SNPRINTF=0
10324 fi
10325
10326 if test "$ac_cv_func_newlocale" = yes; then
10327 HAVE_NEWLOCALE=1
10328 else
10329 HAVE_NEWLOCALE=0
10330 fi
10331
10332 if test "$ac_cv_func_wprintf" = yes; then
10333 HAVE_WPRINTF=1
10334 else
10335 HAVE_WPRINTF=0
10336 fi
10337
10338
10339
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10341 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10342 if ${am_cv_langinfo_codeset+:} false; then :
10343 $as_echo_n "(cached) " >&6
10344 else
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10347 #include <langinfo.h>
10348 int
10349 main ()
10350 {
10351 char* cs = nl_langinfo(CODESET); return !cs;
10352 ;
10353 return 0;
10354 }
10355 _ACEOF
10356 if ac_fn_c_try_link "$LINENO"; then :
10357 am_cv_langinfo_codeset=yes
10358 else
10359 am_cv_langinfo_codeset=no
10360 fi
10361 rm -f core conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
10363
10364 fi
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10366 $as_echo "$am_cv_langinfo_codeset" >&6; }
10367 if test $am_cv_langinfo_codeset = yes; then
10368
10369 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10370
10371 fi
10372
10373
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10375 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10376 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 #include <locale.h>
10382 int
10383 main ()
10384 {
10385 return LC_MESSAGES
10386 ;
10387 return 0;
10388 }
10389 _ACEOF
10390 if ac_fn_c_try_link "$LINENO"; then :
10391 gt_cv_val_LC_MESSAGES=yes
10392 else
10393 gt_cv_val_LC_MESSAGES=no
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
10397 fi
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10399 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10400 if test $gt_cv_val_LC_MESSAGES = yes; then
10401
10402 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10403
10404 fi
10405
10406
10407 if test "$enable_shared" = yes; then
10408 case "$host_os" in
10409 mingw* | cygwin*) is_woe32dll=yes ;;
10410 *) is_woe32dll=no ;;
10411 esac
10412 else
10413 is_woe32dll=no
10414 fi
10415 WOE32DLL=$is_woe32dll
10416
10417
10418 case "$host_os" in
10419 mingw* | cygwin*) is_woe32=yes ;;
10420 *) is_woe32=no ;;
10421 esac
10422 WOE32=$is_woe32
10423
10424 if test $WOE32 = yes; then
10425 if test -n "$ac_tool_prefix"; then
10426 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10427 set dummy ${ac_tool_prefix}windres; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if ${ac_cv_prog_WINDRES+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 if test -n "$WINDRES"; then
10434 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10435 else
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $PATH
10438 do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10446 fi
10447 done
10448 done
10449 IFS=$as_save_IFS
10450
10451 fi
10452 fi
10453 WINDRES=$ac_cv_prog_WINDRES
10454 if test -n "$WINDRES"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10456 $as_echo "$WINDRES" >&6; }
10457 else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10460 fi
10461
10462
10463 fi
10464 if test -z "$ac_cv_prog_WINDRES"; then
10465 ac_ct_WINDRES=$WINDRES
10466 # Extract the first word of "windres", so it can be a program name with args.
10467 set dummy windres; ac_word=$2
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469 $as_echo_n "checking for $ac_word... " >&6; }
10470 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 if test -n "$ac_ct_WINDRES"; then
10474 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10475 else
10476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477 for as_dir in $PATH
10478 do
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
10481 for ac_exec_ext in '' $ac_executable_extensions; do
10482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10483 ac_cv_prog_ac_ct_WINDRES="windres"
10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 break 2
10486 fi
10487 done
10488 done
10489 IFS=$as_save_IFS
10490
10491 fi
10492 fi
10493 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10494 if test -n "$ac_ct_WINDRES"; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10496 $as_echo "$ac_ct_WINDRES" >&6; }
10497 else
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499 $as_echo "no" >&6; }
10500 fi
10501
10502 if test "x$ac_ct_WINDRES" = x; then
10503 WINDRES=""
10504 else
10505 case $cross_compiling:$ac_tool_warned in
10506 yes:)
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10509 ac_tool_warned=yes ;;
10510 esac
10511 WINDRES=$ac_ct_WINDRES
10512 fi
10513 else
10514 WINDRES="$ac_cv_prog_WINDRES"
10515 fi
10516
10517 fi
10518
10519 case "$host_os" in
10520 hpux*) LTLIBC="" ;;
10521 *) LTLIBC="-lc" ;;
10522 esac
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10551 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10552 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10553 $as_echo_n "(cached) " >&6
10554 else
10555 gt_save_LIBS="$LIBS"
10556 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h. */
10559 #include <CoreFoundation/CFPreferences.h>
10560 int
10561 main ()
10562 {
10563 CFPreferencesCopyAppValue(NULL, NULL)
10564 ;
10565 return 0;
10566 }
10567 _ACEOF
10568 if ac_fn_c_try_link "$LINENO"; then :
10569 gt_cv_func_CFPreferencesCopyAppValue=yes
10570 else
10571 gt_cv_func_CFPreferencesCopyAppValue=no
10572 fi
10573 rm -f core conftest.err conftest.$ac_objext \
10574 conftest$ac_exeext conftest.$ac_ext
10575 LIBS="$gt_save_LIBS"
10576 fi
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10578 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10579 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10580
10581 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10582
10583 fi
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10585 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10586 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 gt_save_LIBS="$LIBS"
10590 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 #include <CoreFoundation/CFLocale.h>
10594 int
10595 main ()
10596 {
10597 CFLocaleCopyCurrent();
10598 ;
10599 return 0;
10600 }
10601 _ACEOF
10602 if ac_fn_c_try_link "$LINENO"; then :
10603 gt_cv_func_CFLocaleCopyCurrent=yes
10604 else
10605 gt_cv_func_CFLocaleCopyCurrent=no
10606 fi
10607 rm -f core conftest.err conftest.$ac_objext \
10608 conftest$ac_exeext conftest.$ac_ext
10609 LIBS="$gt_save_LIBS"
10610 fi
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10612 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10613 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10614
10615 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10616
10617 fi
10618 INTL_MACOSX_LIBS=
10619 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10620 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10621 fi
10622
10623
10624
10625
10626
10627
10628 BUILD_INCLUDED_LIBINTL=no
10629 USE_INCLUDED_LIBINTL=no
10630
10631 LIBINTL=
10632 LTLIBINTL=
10633 POSUB=
10634
10635 case " $gt_needs " in
10636 *" need-formatstring-macros "*) gt_api_version=3 ;;
10637 *" need-ngettext "*) gt_api_version=2 ;;
10638 *) gt_api_version=1 ;;
10639 esac
10640 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10641 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10642
10643 if test "$USE_NLS" = "yes"; then
10644 gt_use_preinstalled_gnugettext=no
10645
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10647 $as_echo_n "checking whether included gettext is requested... " >&6; }
10648
10649 # Check whether --with-included-gettext was given.
10650 if test "${with_included_gettext+set}" = set; then :
10651 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10652 else
10653 nls_cv_force_use_gnu_gettext=no
10654 fi
10655
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10657 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10658
10659 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10660 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10661
10662
10663 if test $gt_api_version -ge 3; then
10664 gt_revision_test_code='
10665 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10666 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10667 #endif
10668 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10669 '
10670 else
10671 gt_revision_test_code=
10672 fi
10673 if test $gt_api_version -ge 2; then
10674 gt_expression_test_code=' + * ngettext ("", "", 0)'
10675 else
10676 gt_expression_test_code=
10677 fi
10678
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10680 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10681 if eval \${$gt_func_gnugettext_libc+:} false; then :
10682 $as_echo_n "(cached) " >&6
10683 else
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10686
10687 #include <libintl.h>
10688 $gt_revision_test_code
10689 extern int _nl_msg_cat_cntr;
10690 extern int *_nl_domain_bindings;
10691
10692 int
10693 main ()
10694 {
10695
10696 bindtextdomain ("", "");
10697 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10698
10699 ;
10700 return 0;
10701 }
10702 _ACEOF
10703 if ac_fn_c_try_link "$LINENO"; then :
10704 eval "$gt_func_gnugettext_libc=yes"
10705 else
10706 eval "$gt_func_gnugettext_libc=no"
10707 fi
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 fi
10711 eval ac_res=\$$gt_func_gnugettext_libc
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10713 $as_echo "$ac_res" >&6; }
10714
10715 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10716
10717
10718
10719
10720
10721
10722
10723
10724 use_additional=yes
10725
10726 acl_save_prefix="$prefix"
10727 prefix="$acl_final_prefix"
10728 acl_save_exec_prefix="$exec_prefix"
10729 exec_prefix="$acl_final_exec_prefix"
10730
10731 eval additional_includedir=\"$includedir\"
10732 eval additional_libdir=\"$libdir\"
10733
10734 exec_prefix="$acl_save_exec_prefix"
10735 prefix="$acl_save_prefix"
10736
10737
10738 # Check whether --with-libintl-prefix was given.
10739 if test "${with_libintl_prefix+set}" = set; then :
10740 withval=$with_libintl_prefix;
10741 if test "X$withval" = "Xno"; then
10742 use_additional=no
10743 else
10744 if test "X$withval" = "X"; then
10745
10746 acl_save_prefix="$prefix"
10747 prefix="$acl_final_prefix"
10748 acl_save_exec_prefix="$exec_prefix"
10749 exec_prefix="$acl_final_exec_prefix"
10750
10751 eval additional_includedir=\"$includedir\"
10752 eval additional_libdir=\"$libdir\"
10753
10754 exec_prefix="$acl_save_exec_prefix"
10755 prefix="$acl_save_prefix"
10756
10757 else
10758 additional_includedir="$withval/include"
10759 additional_libdir="$withval/$acl_libdirstem"
10760 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10761 && ! test -d "$withval/$acl_libdirstem"; then
10762 additional_libdir="$withval/$acl_libdirstem2"
10763 fi
10764 fi
10765 fi
10766
10767 fi
10768
10769 LIBINTL=
10770 LTLIBINTL=
10771 INCINTL=
10772 LIBINTL_PREFIX=
10773 HAVE_LIBINTL=
10774 rpathdirs=
10775 ltrpathdirs=
10776 names_already_handled=
10777 names_next_round='intl '
10778 while test -n "$names_next_round"; do
10779 names_this_round="$names_next_round"
10780 names_next_round=
10781 for name in $names_this_round; do
10782 already_handled=
10783 for n in $names_already_handled; do
10784 if test "$n" = "$name"; then
10785 already_handled=yes
10786 break
10787 fi
10788 done
10789 if test -z "$already_handled"; then
10790 names_already_handled="$names_already_handled $name"
10791 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10792 eval value=\"\$HAVE_LIB$uppername\"
10793 if test -n "$value"; then
10794 if test "$value" = yes; then
10795 eval value=\"\$LIB$uppername\"
10796 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10797 eval value=\"\$LTLIB$uppername\"
10798 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10799 else
10800 :
10801 fi
10802 else
10803 found_dir=
10804 found_la=
10805 found_so=
10806 found_a=
10807 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10808 if test -n "$acl_shlibext"; then
10809 shrext=".$acl_shlibext" # typically: shrext=.so
10810 else
10811 shrext=
10812 fi
10813 if test $use_additional = yes; then
10814 dir="$additional_libdir"
10815 if test -n "$acl_shlibext"; then
10816 if test -f "$dir/$libname$shrext"; then
10817 found_dir="$dir"
10818 found_so="$dir/$libname$shrext"
10819 else
10820 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10821 ver=`(cd "$dir" && \
10822 for f in "$libname$shrext".*; do echo "$f"; done \
10823 | sed -e "s,^$libname$shrext\\\\.,," \
10824 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10825 | sed 1q ) 2>/dev/null`
10826 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10827 found_dir="$dir"
10828 found_so="$dir/$libname$shrext.$ver"
10829 fi
10830 else
10831 eval library_names=\"$acl_library_names_spec\"
10832 for f in $library_names; do
10833 if test -f "$dir/$f"; then
10834 found_dir="$dir"
10835 found_so="$dir/$f"
10836 break
10837 fi
10838 done
10839 fi
10840 fi
10841 fi
10842 if test "X$found_dir" = "X"; then
10843 if test -f "$dir/$libname.$acl_libext"; then
10844 found_dir="$dir"
10845 found_a="$dir/$libname.$acl_libext"
10846 fi
10847 fi
10848 if test "X$found_dir" != "X"; then
10849 if test -f "$dir/$libname.la"; then
10850 found_la="$dir/$libname.la"
10851 fi
10852 fi
10853 fi
10854 if test "X$found_dir" = "X"; then
10855 for x in $LDFLAGS $LTLIBINTL; do
10856
10857 acl_save_prefix="$prefix"
10858 prefix="$acl_final_prefix"
10859 acl_save_exec_prefix="$exec_prefix"
10860 exec_prefix="$acl_final_exec_prefix"
10861 eval x=\"$x\"
10862 exec_prefix="$acl_save_exec_prefix"
10863 prefix="$acl_save_prefix"
10864
10865 case "$x" in
10866 -L*)
10867 dir=`echo "X$x" | sed -e 's/^X-L//'`
10868 if test -n "$acl_shlibext"; then
10869 if test -f "$dir/$libname$shrext"; then
10870 found_dir="$dir"
10871 found_so="$dir/$libname$shrext"
10872 else
10873 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10874 ver=`(cd "$dir" && \
10875 for f in "$libname$shrext".*; do echo "$f"; done \
10876 | sed -e "s,^$libname$shrext\\\\.,," \
10877 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10878 | sed 1q ) 2>/dev/null`
10879 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10880 found_dir="$dir"
10881 found_so="$dir/$libname$shrext.$ver"
10882 fi
10883 else
10884 eval library_names=\"$acl_library_names_spec\"
10885 for f in $library_names; do
10886 if test -f "$dir/$f"; then
10887 found_dir="$dir"
10888 found_so="$dir/$f"
10889 break
10890 fi
10891 done
10892 fi
10893 fi
10894 fi
10895 if test "X$found_dir" = "X"; then
10896 if test -f "$dir/$libname.$acl_libext"; then
10897 found_dir="$dir"
10898 found_a="$dir/$libname.$acl_libext"
10899 fi
10900 fi
10901 if test "X$found_dir" != "X"; then
10902 if test -f "$dir/$libname.la"; then
10903 found_la="$dir/$libname.la"
10904 fi
10905 fi
10906 ;;
10907 esac
10908 if test "X$found_dir" != "X"; then
10909 break
10910 fi
10911 done
10912 fi
10913 if test "X$found_dir" != "X"; then
10914 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10915 if test "X$found_so" != "X"; then
10916 if test "$enable_rpath" = no \
10917 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10918 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10919 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10920 else
10921 haveit=
10922 for x in $ltrpathdirs; do
10923 if test "X$x" = "X$found_dir"; then
10924 haveit=yes
10925 break
10926 fi
10927 done
10928 if test -z "$haveit"; then
10929 ltrpathdirs="$ltrpathdirs $found_dir"
10930 fi
10931 if test "$acl_hardcode_direct" = yes; then
10932 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10933 else
10934 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10935 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10936 haveit=
10937 for x in $rpathdirs; do
10938 if test "X$x" = "X$found_dir"; then
10939 haveit=yes
10940 break
10941 fi
10942 done
10943 if test -z "$haveit"; then
10944 rpathdirs="$rpathdirs $found_dir"
10945 fi
10946 else
10947 haveit=
10948 for x in $LDFLAGS $LIBINTL; do
10949
10950 acl_save_prefix="$prefix"
10951 prefix="$acl_final_prefix"
10952 acl_save_exec_prefix="$exec_prefix"
10953 exec_prefix="$acl_final_exec_prefix"
10954 eval x=\"$x\"
10955 exec_prefix="$acl_save_exec_prefix"
10956 prefix="$acl_save_prefix"
10957
10958 if test "X$x" = "X-L$found_dir"; then
10959 haveit=yes
10960 break
10961 fi
10962 done
10963 if test -z "$haveit"; then
10964 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10965 fi
10966 if test "$acl_hardcode_minus_L" != no; then
10967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10968 else
10969 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10970 fi
10971 fi
10972 fi
10973 fi
10974 else
10975 if test "X$found_a" != "X"; then
10976 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10977 else
10978 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10979 fi
10980 fi
10981 additional_includedir=
10982 case "$found_dir" in
10983 */$acl_libdirstem | */$acl_libdirstem/)
10984 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10985 if test "$name" = 'intl'; then
10986 LIBINTL_PREFIX="$basedir"
10987 fi
10988 additional_includedir="$basedir/include"
10989 ;;
10990 */$acl_libdirstem2 | */$acl_libdirstem2/)
10991 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10992 if test "$name" = 'intl'; then
10993 LIBINTL_PREFIX="$basedir"
10994 fi
10995 additional_includedir="$basedir/include"
10996 ;;
10997 esac
10998 if test "X$additional_includedir" != "X"; then
10999 if test "X$additional_includedir" != "X/usr/include"; then
11000 haveit=
11001 if test "X$additional_includedir" = "X/usr/local/include"; then
11002 if test -n "$GCC"; then
11003 case $host_os in
11004 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11005 esac
11006 fi
11007 fi
11008 if test -z "$haveit"; then
11009 for x in $CPPFLAGS $INCINTL; do
11010
11011 acl_save_prefix="$prefix"
11012 prefix="$acl_final_prefix"
11013 acl_save_exec_prefix="$exec_prefix"
11014 exec_prefix="$acl_final_exec_prefix"
11015 eval x=\"$x\"
11016 exec_prefix="$acl_save_exec_prefix"
11017 prefix="$acl_save_prefix"
11018
11019 if test "X$x" = "X-I$additional_includedir"; then
11020 haveit=yes
11021 break
11022 fi
11023 done
11024 if test -z "$haveit"; then
11025 if test -d "$additional_includedir"; then
11026 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11027 fi
11028 fi
11029 fi
11030 fi
11031 fi
11032 if test -n "$found_la"; then
11033 save_libdir="$libdir"
11034 case "$found_la" in
11035 */* | *\\*) . "$found_la" ;;
11036 *) . "./$found_la" ;;
11037 esac
11038 libdir="$save_libdir"
11039 for dep in $dependency_libs; do
11040 case "$dep" in
11041 -L*)
11042 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11043 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11044 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11045 haveit=
11046 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11047 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11048 if test -n "$GCC"; then
11049 case $host_os in
11050 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11051 esac
11052 fi
11053 fi
11054 if test -z "$haveit"; then
11055 haveit=
11056 for x in $LDFLAGS $LIBINTL; do
11057
11058 acl_save_prefix="$prefix"
11059 prefix="$acl_final_prefix"
11060 acl_save_exec_prefix="$exec_prefix"
11061 exec_prefix="$acl_final_exec_prefix"
11062 eval x=\"$x\"
11063 exec_prefix="$acl_save_exec_prefix"
11064 prefix="$acl_save_prefix"
11065
11066 if test "X$x" = "X-L$additional_libdir"; then
11067 haveit=yes
11068 break
11069 fi
11070 done
11071 if test -z "$haveit"; then
11072 if test -d "$additional_libdir"; then
11073 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11074 fi
11075 fi
11076 haveit=
11077 for x in $LDFLAGS $LTLIBINTL; do
11078
11079 acl_save_prefix="$prefix"
11080 prefix="$acl_final_prefix"
11081 acl_save_exec_prefix="$exec_prefix"
11082 exec_prefix="$acl_final_exec_prefix"
11083 eval x=\"$x\"
11084 exec_prefix="$acl_save_exec_prefix"
11085 prefix="$acl_save_prefix"
11086
11087 if test "X$x" = "X-L$additional_libdir"; then
11088 haveit=yes
11089 break
11090 fi
11091 done
11092 if test -z "$haveit"; then
11093 if test -d "$additional_libdir"; then
11094 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11095 fi
11096 fi
11097 fi
11098 fi
11099 ;;
11100 -R*)
11101 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11102 if test "$enable_rpath" != no; then
11103 haveit=
11104 for x in $rpathdirs; do
11105 if test "X$x" = "X$dir"; then
11106 haveit=yes
11107 break
11108 fi
11109 done
11110 if test -z "$haveit"; then
11111 rpathdirs="$rpathdirs $dir"
11112 fi
11113 haveit=
11114 for x in $ltrpathdirs; do
11115 if test "X$x" = "X$dir"; then
11116 haveit=yes
11117 break
11118 fi
11119 done
11120 if test -z "$haveit"; then
11121 ltrpathdirs="$ltrpathdirs $dir"
11122 fi
11123 fi
11124 ;;
11125 -l*)
11126 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11127 ;;
11128 *.la)
11129 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11130 ;;
11131 *)
11132 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11133 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11134 ;;
11135 esac
11136 done
11137 fi
11138 else
11139 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11140 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11141 fi
11142 fi
11143 fi
11144 done
11145 done
11146 if test "X$rpathdirs" != "X"; then
11147 if test -n "$acl_hardcode_libdir_separator"; then
11148 alldirs=
11149 for found_dir in $rpathdirs; do
11150 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11151 done
11152 acl_save_libdir="$libdir"
11153 libdir="$alldirs"
11154 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11155 libdir="$acl_save_libdir"
11156 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11157 else
11158 for found_dir in $rpathdirs; do
11159 acl_save_libdir="$libdir"
11160 libdir="$found_dir"
11161 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11162 libdir="$acl_save_libdir"
11163 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11164 done
11165 fi
11166 fi
11167 if test "X$ltrpathdirs" != "X"; then
11168 for found_dir in $ltrpathdirs; do
11169 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11170 done
11171 fi
11172
11173
11174
11175
11176
11177
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11179 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11180 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11181 $as_echo_n "(cached) " >&6
11182 else
11183 gt_save_CPPFLAGS="$CPPFLAGS"
11184 CPPFLAGS="$CPPFLAGS $INCINTL"
11185 gt_save_LIBS="$LIBS"
11186 LIBS="$LIBS $LIBINTL"
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11189
11190 #include <libintl.h>
11191 $gt_revision_test_code
11192 extern int _nl_msg_cat_cntr;
11193 extern
11194 #ifdef __cplusplus
11195 "C"
11196 #endif
11197 const char *_nl_expand_alias (const char *);
11198
11199 int
11200 main ()
11201 {
11202
11203 bindtextdomain ("", "");
11204 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11205
11206 ;
11207 return 0;
11208 }
11209 _ACEOF
11210 if ac_fn_c_try_link "$LINENO"; then :
11211 eval "$gt_func_gnugettext_libintl=yes"
11212 else
11213 eval "$gt_func_gnugettext_libintl=no"
11214 fi
11215 rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11217 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11218 LIBS="$LIBS $LIBICONV"
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 LIBINTL="$LIBINTL $LIBICONV"
11244 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11245 eval "$gt_func_gnugettext_libintl=yes"
11246
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250 fi
11251 CPPFLAGS="$gt_save_CPPFLAGS"
11252 LIBS="$gt_save_LIBS"
11253 fi
11254 eval ac_res=\$$gt_func_gnugettext_libintl
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11256 $as_echo "$ac_res" >&6; }
11257 fi
11258
11259 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11260 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11261 && test "$PACKAGE" != gettext-runtime \
11262 && test "$PACKAGE" != gettext-tools; }; then
11263 gt_use_preinstalled_gnugettext=yes
11264 else
11265 LIBINTL=
11266 LTLIBINTL=
11267 INCINTL=
11268 fi
11269
11270
11271 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11272 nls_cv_use_gnu_gettext=yes
11273 fi
11274 fi
11275
11276 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11277 BUILD_INCLUDED_LIBINTL=yes
11278 USE_INCLUDED_LIBINTL=yes
11279 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11280 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11281 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11282 fi
11283
11284 CATOBJEXT=
11285 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11286 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11287 CATOBJEXT=.gmo
11288 fi
11289
11290
11291 if test -n "$INTL_MACOSX_LIBS"; then
11292 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11293 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11294 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11295 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11296 fi
11297 fi
11298
11299 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11300 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11301
11302 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11303
11304 else
11305 USE_NLS=no
11306 fi
11307 fi
11308
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11310 $as_echo_n "checking whether to use NLS... " >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11312 $as_echo "$USE_NLS" >&6; }
11313 if test "$USE_NLS" = "yes"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11315 $as_echo_n "checking where the gettext function comes from... " >&6; }
11316 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11317 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11318 gt_source="external libintl"
11319 else
11320 gt_source="libc"
11321 fi
11322 else
11323 gt_source="included intl directory"
11324 fi
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11326 $as_echo "$gt_source" >&6; }
11327 fi
11328
11329 if test "$USE_NLS" = "yes"; then
11330
11331 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11332 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11334 $as_echo_n "checking how to link with libintl... " >&6; }
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11336 $as_echo "$LIBINTL" >&6; }
11337
11338 for element in $INCINTL; do
11339 haveit=
11340 for x in $CPPFLAGS; do
11341
11342 acl_save_prefix="$prefix"
11343 prefix="$acl_final_prefix"
11344 acl_save_exec_prefix="$exec_prefix"
11345 exec_prefix="$acl_final_exec_prefix"
11346 eval x=\"$x\"
11347 exec_prefix="$acl_save_exec_prefix"
11348 prefix="$acl_save_prefix"
11349
11350 if test "X$x" = "X$element"; then
11351 haveit=yes
11352 break
11353 fi
11354 done
11355 if test -z "$haveit"; then
11356 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11357 fi
11358 done
11359
11360 fi
11361
11362
11363 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11364
11365
11366 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11367
11368 fi
11369
11370 POSUB=po
11371 fi
11372
11373
11374 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11375 BUILD_INCLUDED_LIBINTL=yes
11376 fi
11377
11378
11379
11380
11381
11382 nls_cv_header_intl=
11383 nls_cv_header_libgt=
11384
11385 DATADIRNAME=share
11386
11387
11388 INSTOBJEXT=.mo
11389
11390
11391 GENCAT=gencat
11392
11393
11394 INTLOBJS=
11395 if test "$USE_INCLUDED_LIBINTL" = yes; then
11396 INTLOBJS="\$(GETTOBJS)"
11397 fi
11398
11399
11400 INTL_LIBTOOL_SUFFIX_PREFIX=
11401
11402
11403
11404 INTLLIBS="$LIBINTL"
11405
11406
11407
11408
11409
11410
11411
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11413 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11414 set x ${MAKE-make}
11415 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11416 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 cat >conftest.make <<\_ACEOF
11420 SHELL = /bin/sh
11421 all:
11422 @echo '@@@%%%=$(MAKE)=@@@%%%'
11423 _ACEOF
11424 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11425 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11426 *@@@%%%=?*=@@@%%%*)
11427 eval ac_cv_prog_make_${ac_make}_set=yes;;
11428 *)
11429 eval ac_cv_prog_make_${ac_make}_set=no;;
11430 esac
11431 rm -f conftest.make
11432 fi
11433 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11435 $as_echo "yes" >&6; }
11436 SET_MAKE=
11437 else
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11440 SET_MAKE="MAKE=${MAKE-make}"
11441 fi
11442
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11444 $as_echo_n "checking for GNU make... " >&6; }
11445 if ${_cv_gnu_make_command+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 _cv_gnu_make_command='' ;
11449 for a in "$MAKE" make gmake gnumake ; do
11450 if test -z "$a" ; then continue ; fi ;
11451 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11452 _cv_gnu_make_command=$a ;
11453 break;
11454 fi
11455 done ;
11456
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11459 $as_echo "$_cv_gnu_make_command" >&6; } ;
11460 if test "x$_cv_gnu_make_command" != "x" ; then
11461 ifGNUmake='' ;
11462 ifNotGNUmake='#' ;
11463 else
11464 ifGNUmake='#' ;
11465 ifNotGNUmake='' ;
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11467 $as_echo "\"Not found\"" >&6; };
11468 fi
11469
11470
11471
11472 # Extract the first word of "ln", so it can be a program name with args.
11473 set dummy ln; ac_word=$2
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475 $as_echo_n "checking for $ac_word... " >&6; }
11476 if ${ac_cv_path_LN+:} false; then :
11477 $as_echo_n "(cached) " >&6
11478 else
11479 case $LN in
11480 [\\/]* | ?:[\\/]*)
11481 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11482 ;;
11483 *)
11484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485 for as_dir in $PATH
11486 do
11487 IFS=$as_save_IFS
11488 test -z "$as_dir" && as_dir=.
11489 for ac_exec_ext in '' $ac_executable_extensions; do
11490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11491 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11493 break 2
11494 fi
11495 done
11496 done
11497 IFS=$as_save_IFS
11498
11499 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11500 ;;
11501 esac
11502 fi
11503 LN=$ac_cv_path_LN
11504 if test -n "$LN"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11506 $as_echo "$LN" >&6; }
11507 else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11510 fi
11511
11512
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11514 $as_echo_n "checking whether ln -s works... " >&6; }
11515 LN_S=$as_ln_s
11516 if test "$LN_S" = "ln -s"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518 $as_echo "yes" >&6; }
11519 else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11521 $as_echo "no, using $LN_S" >&6; }
11522 fi
11523
11524 # Extract the first word of "mv", so it can be a program name with args.
11525 set dummy mv; ac_word=$2
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527 $as_echo_n "checking for $ac_word... " >&6; }
11528 if ${ac_cv_path_MV+:} false; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 case $MV in
11532 [\\/]* | ?:[\\/]*)
11533 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11534 ;;
11535 *)
11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537 for as_dir in $PATH
11538 do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
11541 for ac_exec_ext in '' $ac_executable_extensions; do
11542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11543 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 break 2
11546 fi
11547 done
11548 done
11549 IFS=$as_save_IFS
11550
11551 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11552 ;;
11553 esac
11554 fi
11555 MV=$ac_cv_path_MV
11556 if test -n "$MV"; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11558 $as_echo "$MV" >&6; }
11559 else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11562 fi
11563
11564
11565 # Extract the first word of "cp", so it can be a program name with args.
11566 set dummy cp; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if ${ac_cv_path_CP+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 case $CP in
11573 [\\/]* | ?:[\\/]*)
11574 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11575 ;;
11576 *)
11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH
11579 do
11580 IFS=$as_save_IFS
11581 test -z "$as_dir" && as_dir=.
11582 for ac_exec_ext in '' $ac_executable_extensions; do
11583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11584 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11586 break 2
11587 fi
11588 done
11589 done
11590 IFS=$as_save_IFS
11591
11592 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11593 ;;
11594 esac
11595 fi
11596 CP=$ac_cv_path_CP
11597 if test -n "$CP"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11599 $as_echo "$CP" >&6; }
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11603 fi
11604
11605
11606 # Extract the first word of "rm", so it can be a program name with args.
11607 set dummy rm; ac_word=$2
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609 $as_echo_n "checking for $ac_word... " >&6; }
11610 if ${ac_cv_path_RM+:} false; then :
11611 $as_echo_n "(cached) " >&6
11612 else
11613 case $RM in
11614 [\\/]* | ?:[\\/]*)
11615 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11616 ;;
11617 *)
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11620 do
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11625 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 break 2
11628 fi
11629 done
11630 done
11631 IFS=$as_save_IFS
11632
11633 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11634 ;;
11635 esac
11636 fi
11637 RM=$ac_cv_path_RM
11638 if test -n "$RM"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11640 $as_echo "$RM" >&6; }
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11644 fi
11645
11646
11647 # Extract the first word of "chmod", so it can be a program name with args.
11648 set dummy chmod; ac_word=$2
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650 $as_echo_n "checking for $ac_word... " >&6; }
11651 if ${ac_cv_path_CHMOD+:} false; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 case $CHMOD in
11655 [\\/]* | ?:[\\/]*)
11656 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11657 ;;
11658 *)
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11661 do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11669 fi
11670 done
11671 done
11672 IFS=$as_save_IFS
11673
11674 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11675 ;;
11676 esac
11677 fi
11678 CHMOD=$ac_cv_path_CHMOD
11679 if test -n "$CHMOD"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11681 $as_echo "$CHMOD" >&6; }
11682 else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11685 fi
11686
11687
11688 for ac_prog in gawk mawk nawk awk
11689 do
11690 # Extract the first word of "$ac_prog", so it can be a program name with args.
11691 set dummy $ac_prog; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if ${ac_cv_prog_AWK+:} false; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 if test -n "$AWK"; then
11698 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11699 else
11700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701 for as_dir in $PATH
11702 do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
11705 for ac_exec_ext in '' $ac_executable_extensions; do
11706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11707 ac_cv_prog_AWK="$ac_prog"
11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11709 break 2
11710 fi
11711 done
11712 done
11713 IFS=$as_save_IFS
11714
11715 fi
11716 fi
11717 AWK=$ac_cv_prog_AWK
11718 if test -n "$AWK"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11720 $as_echo "$AWK" >&6; }
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11724 fi
11725
11726
11727 test -n "$AWK" && break
11728 done
11729
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11731 $as_echo_n "checking for egrep... " >&6; }
11732 if ${ac_cv_path_EGREP+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11736 then ac_cv_path_EGREP="$GREP -E"
11737 else
11738 if test -z "$EGREP"; then
11739 ac_path_EGREP_found=false
11740 # Loop through the user's path and test for each of PROGNAME-LIST
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11743 do
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
11746 for ac_prog in egrep; do
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11749 as_fn_executable_p "$ac_path_EGREP" || continue
11750 # Check for GNU ac_path_EGREP and select it if it is found.
11751 # Check for GNU $ac_path_EGREP
11752 case `"$ac_path_EGREP" --version 2>&1` in
11753 *GNU*)
11754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11755 *)
11756 ac_count=0
11757 $as_echo_n 0123456789 >"conftest.in"
11758 while :
11759 do
11760 cat "conftest.in" "conftest.in" >"conftest.tmp"
11761 mv "conftest.tmp" "conftest.in"
11762 cp "conftest.in" "conftest.nl"
11763 $as_echo 'EGREP' >> "conftest.nl"
11764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11766 as_fn_arith $ac_count + 1 && ac_count=$as_val
11767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11768 # Best one so far, save it but keep looking for a better one
11769 ac_cv_path_EGREP="$ac_path_EGREP"
11770 ac_path_EGREP_max=$ac_count
11771 fi
11772 # 10*(2^10) chars as input seems more than enough
11773 test $ac_count -gt 10 && break
11774 done
11775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11776 esac
11777
11778 $ac_path_EGREP_found && break 3
11779 done
11780 done
11781 done
11782 IFS=$as_save_IFS
11783 if test -z "$ac_cv_path_EGREP"; then
11784 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11785 fi
11786 else
11787 ac_cv_path_EGREP=$EGREP
11788 fi
11789
11790 fi
11791 fi
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11793 $as_echo "$ac_cv_path_EGREP" >&6; }
11794 EGREP="$ac_cv_path_EGREP"
11795
11796
11797 # Extract the first word of "sed", so it can be a program name with args.
11798 set dummy sed; ac_word=$2
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800 $as_echo_n "checking for $ac_word... " >&6; }
11801 if ${ac_cv_path_SED+:} false; then :
11802 $as_echo_n "(cached) " >&6
11803 else
11804 case $SED in
11805 [\\/]* | ?:[\\/]*)
11806 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11807 ;;
11808 *)
11809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810 for as_dir in $PATH
11811 do
11812 IFS=$as_save_IFS
11813 test -z "$as_dir" && as_dir=.
11814 for ac_exec_ext in '' $ac_executable_extensions; do
11815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11816 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11818 break 2
11819 fi
11820 done
11821 done
11822 IFS=$as_save_IFS
11823
11824 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11825 ;;
11826 esac
11827 fi
11828 SED=$ac_cv_path_SED
11829 if test -n "$SED"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11831 $as_echo "$SED" >&6; }
11832 else
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11835 fi
11836
11837
11838 # Extract the first word of "perl", so it can be a program name with args.
11839 set dummy perl; ac_word=$2
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11841 $as_echo_n "checking for $ac_word... " >&6; }
11842 if ${ac_cv_path_PERL+:} false; then :
11843 $as_echo_n "(cached) " >&6
11844 else
11845 case $PERL in
11846 [\\/]* | ?:[\\/]*)
11847 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11848 ;;
11849 *)
11850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851 for as_dir in $PATH
11852 do
11853 IFS=$as_save_IFS
11854 test -z "$as_dir" && as_dir=.
11855 for ac_exec_ext in '' $ac_executable_extensions; do
11856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11857 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11859 break 2
11860 fi
11861 done
11862 done
11863 IFS=$as_save_IFS
11864
11865 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11866 ;;
11867 esac
11868 fi
11869 PERL=$ac_cv_path_PERL
11870 if test -n "$PERL"; then
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11872 $as_echo "$PERL" >&6; }
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11876 fi
11877
11878
11879 # Extract the first word of "ldconfig", so it can be a program name with args.
11880 set dummy ldconfig; ac_word=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if ${ac_cv_path_LDCONFIG+:} false; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 case $LDCONFIG in
11887 [\\/]* | ?:[\\/]*)
11888 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11889 ;;
11890 *)
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $PATH
11893 do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11898 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11901 fi
11902 done
11903 done
11904 IFS=$as_save_IFS
11905
11906 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11907 ;;
11908 esac
11909 fi
11910 LDCONFIG=$ac_cv_path_LDCONFIG
11911 if test -n "$LDCONFIG"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11913 $as_echo "$LDCONFIG" >&6; }
11914 else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 fi
11918
11919
11920 if test -n "$ac_tool_prefix"; then
11921 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11922 set dummy ${ac_tool_prefix}ar; ac_word=$2
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924 $as_echo_n "checking for $ac_word... " >&6; }
11925 if ${ac_cv_prog_AR+:} false; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 if test -n "$AR"; then
11929 ac_cv_prog_AR="$AR" # Let the user override the test.
11930 else
11931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932 for as_dir in $PATH
11933 do
11934 IFS=$as_save_IFS
11935 test -z "$as_dir" && as_dir=.
11936 for ac_exec_ext in '' $ac_executable_extensions; do
11937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11938 ac_cv_prog_AR="${ac_tool_prefix}ar"
11939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11940 break 2
11941 fi
11942 done
11943 done
11944 IFS=$as_save_IFS
11945
11946 fi
11947 fi
11948 AR=$ac_cv_prog_AR
11949 if test -n "$AR"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11951 $as_echo "$AR" >&6; }
11952 else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 $as_echo "no" >&6; }
11955 fi
11956
11957
11958 fi
11959 if test -z "$ac_cv_prog_AR"; then
11960 ac_ct_AR=$AR
11961 # Extract the first word of "ar", so it can be a program name with args.
11962 set dummy ar; ac_word=$2
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11964 $as_echo_n "checking for $ac_word... " >&6; }
11965 if ${ac_cv_prog_ac_ct_AR+:} false; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 if test -n "$ac_ct_AR"; then
11969 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11970 else
11971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972 for as_dir in $PATH
11973 do
11974 IFS=$as_save_IFS
11975 test -z "$as_dir" && as_dir=.
11976 for ac_exec_ext in '' $ac_executable_extensions; do
11977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11978 ac_cv_prog_ac_ct_AR="ar"
11979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11980 break 2
11981 fi
11982 done
11983 done
11984 IFS=$as_save_IFS
11985
11986 fi
11987 fi
11988 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11989 if test -n "$ac_ct_AR"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11991 $as_echo "$ac_ct_AR" >&6; }
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11995 fi
11996
11997 if test "x$ac_ct_AR" = x; then
11998 AR="ar"
11999 else
12000 case $cross_compiling:$ac_tool_warned in
12001 yes:)
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12004 ac_tool_warned=yes ;;
12005 esac
12006 AR=$ac_ct_AR
12007 fi
12008 else
12009 AR="$ac_cv_prog_AR"
12010 fi
12011
12012 if test -n "$ac_tool_prefix"; then
12013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12014 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016 $as_echo_n "checking for $ac_word... " >&6; }
12017 if ${ac_cv_prog_RANLIB+:} false; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 if test -n "$RANLIB"; then
12021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12022 else
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12025 do
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 break 2
12033 fi
12034 done
12035 done
12036 IFS=$as_save_IFS
12037
12038 fi
12039 fi
12040 RANLIB=$ac_cv_prog_RANLIB
12041 if test -n "$RANLIB"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12043 $as_echo "$RANLIB" >&6; }
12044 else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12047 fi
12048
12049
12050 fi
12051 if test -z "$ac_cv_prog_RANLIB"; then
12052 ac_ct_RANLIB=$RANLIB
12053 # Extract the first word of "ranlib", so it can be a program name with args.
12054 set dummy ranlib; ac_word=$2
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056 $as_echo_n "checking for $ac_word... " >&6; }
12057 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 if test -n "$ac_ct_RANLIB"; then
12061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12062 else
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12065 do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_prog_ac_ct_RANLIB="ranlib"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 break 2
12073 fi
12074 done
12075 done
12076 IFS=$as_save_IFS
12077
12078 fi
12079 fi
12080 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12081 if test -n "$ac_ct_RANLIB"; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12083 $as_echo "$ac_ct_RANLIB" >&6; }
12084 else
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12087 fi
12088
12089 if test "x$ac_ct_RANLIB" = x; then
12090 RANLIB=":"
12091 else
12092 case $cross_compiling:$ac_tool_warned in
12093 yes:)
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12096 ac_tool_warned=yes ;;
12097 esac
12098 RANLIB=$ac_ct_RANLIB
12099 fi
12100 else
12101 RANLIB="$ac_cv_prog_RANLIB"
12102 fi
12103
12104 if test -n "$ac_tool_prefix"; then
12105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12106 set dummy ${ac_tool_prefix}strip; ac_word=$2
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12108 $as_echo_n "checking for $ac_word... " >&6; }
12109 if ${ac_cv_prog_STRIP+:} false; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 if test -n "$STRIP"; then
12113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12114 else
12115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116 for as_dir in $PATH
12117 do
12118 IFS=$as_save_IFS
12119 test -z "$as_dir" && as_dir=.
12120 for ac_exec_ext in '' $ac_executable_extensions; do
12121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12122 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12124 break 2
12125 fi
12126 done
12127 done
12128 IFS=$as_save_IFS
12129
12130 fi
12131 fi
12132 STRIP=$ac_cv_prog_STRIP
12133 if test -n "$STRIP"; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12135 $as_echo "$STRIP" >&6; }
12136 else
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12139 fi
12140
12141
12142 fi
12143 if test -z "$ac_cv_prog_STRIP"; then
12144 ac_ct_STRIP=$STRIP
12145 # Extract the first word of "strip", so it can be a program name with args.
12146 set dummy strip; ac_word=$2
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 if test -n "$ac_ct_STRIP"; then
12153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12154 else
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12157 do
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12162 ac_cv_prog_ac_ct_STRIP="strip"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12165 fi
12166 done
12167 done
12168 IFS=$as_save_IFS
12169
12170 fi
12171 fi
12172 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12173 if test -n "$ac_ct_STRIP"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12175 $as_echo "$ac_ct_STRIP" >&6; }
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12179 fi
12180
12181 if test "x$ac_ct_STRIP" = x; then
12182 STRIP=":"
12183 else
12184 case $cross_compiling:$ac_tool_warned in
12185 yes:)
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12188 ac_tool_warned=yes ;;
12189 esac
12190 STRIP=$ac_ct_STRIP
12191 fi
12192 else
12193 STRIP="$ac_cv_prog_STRIP"
12194 fi
12195
12196 # Extract the first word of "makeinfo", so it can be a program name with args.
12197 set dummy makeinfo; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if ${ac_cv_prog_MAKEINFO+:} false; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 if test -n "$MAKEINFO"; then
12204 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12205 else
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12208 do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213 ac_cv_prog_MAKEINFO="makeinfo"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215 break 2
12216 fi
12217 done
12218 done
12219 IFS=$as_save_IFS
12220
12221 fi
12222 fi
12223 MAKEINFO=$ac_cv_prog_MAKEINFO
12224 if test -n "$MAKEINFO"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12226 $as_echo "$MAKEINFO" >&6; }
12227 else
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12230 fi
12231
12232
12233 if test "_$MAKEINFO" = "_"; then
12234 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12235 else
12236 case "$MAKEINFO" in
12237 */missing.*)
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12239 *** Makeinfo is missing. Info documentation will not be built." >&5
12240 $as_echo "$as_me: WARNING:
12241 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12242 ;;
12243 *)
12244 ;;
12245 esac
12246 fi
12247
12248
12249 # See if we need a separate native compiler.
12250 if test $cross_compiling = no; then
12251 BUILD_CC="$CC"
12252
12253 else
12254 for ac_prog in gcc cc
12255 do
12256 # Extract the first word of "$ac_prog", so it can be a program name with args.
12257 set dummy $ac_prog; ac_word=$2
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259 $as_echo_n "checking for $ac_word... " >&6; }
12260 if ${ac_cv_prog_BUILD_CC+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 if test -n "$BUILD_CC"; then
12264 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12265 else
12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH
12268 do
12269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
12271 for ac_exec_ext in '' $ac_executable_extensions; do
12272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12273 ac_cv_prog_BUILD_CC="$ac_prog"
12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12275 break 2
12276 fi
12277 done
12278 done
12279 IFS=$as_save_IFS
12280
12281 fi
12282 fi
12283 BUILD_CC=$ac_cv_prog_BUILD_CC
12284 if test -n "$BUILD_CC"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12286 $as_echo "$BUILD_CC" >&6; }
12287 else
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12290 fi
12291
12292
12293 test -n "$BUILD_CC" && break
12294 done
12295
12296 fi
12297 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 attr/xattr.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
12298 do :
12299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12300 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12301 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12302 cat >>confdefs.h <<_ACEOF
12303 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12304 _ACEOF
12305
12306 fi
12307
12308 done
12309
12310 for ac_header in net/if.h
12311 do :
12312 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12313 #if HAVE_SYS_TYPES_H
12314 #include <sys/types.h>
12315 #endif
12316 #if HAVE_SYS_SOCKET
12317 #include <sys/socket.h>
12318 #endif
12319
12320 "
12321 if test "x$ac_cv_header_net_if_h" = xyes; then :
12322 cat >>confdefs.h <<_ACEOF
12323 #define HAVE_NET_IF_H 1
12324 _ACEOF
12325
12326 fi
12327
12328 done
12329
12330 for ac_func in vprintf
12331 do :
12332 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12333 if test "x$ac_cv_func_vprintf" = xyes; then :
12334 cat >>confdefs.h <<_ACEOF
12335 #define HAVE_VPRINTF 1
12336 _ACEOF
12337
12338 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12339 if test "x$ac_cv_func__doprnt" = xyes; then :
12340
12341 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12342
12343 fi
12344
12345 fi
12346 done
12347
12348
12349 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12350 "
12351 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12352
12353 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12354
12355 fi
12356
12357 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12358 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12359
12360 cat >>confdefs.h <<_ACEOF
12361 #define HAVE_STRUCT_STAT_ST_ATIM 1
12362 _ACEOF
12363
12364
12365 fi
12366
12367 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12368 "
12369 if test "x$ac_cv_type_ssize_t" = xyes; then :
12370
12371 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12372
12373 fi
12374
12375 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12376 "
12377 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12378
12379 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12380
12381 fi
12382
12383 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12384 #define _LARGEFILE64_SOURCE
12385 #include <unistd.h>
12386 "
12387 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12388
12389 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12390
12391 fi
12392
12393 # The cast to long int works around a bug in the HP C Compiler
12394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12396 # This bug is HP SR number 8606223364.
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12398 $as_echo_n "checking size of short... " >&6; }
12399 if ${ac_cv_sizeof_short+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12403
12404 else
12405 if test "$ac_cv_type_short" = yes; then
12406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12408 as_fn_error 77 "cannot compute sizeof (short)
12409 See \`config.log' for more details" "$LINENO" 5; }
12410 else
12411 ac_cv_sizeof_short=0
12412 fi
12413 fi
12414
12415 fi
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12417 $as_echo "$ac_cv_sizeof_short" >&6; }
12418
12419
12420
12421 cat >>confdefs.h <<_ACEOF
12422 #define SIZEOF_SHORT $ac_cv_sizeof_short
12423 _ACEOF
12424
12425
12426 # The cast to long int works around a bug in the HP C Compiler
12427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12429 # This bug is HP SR number 8606223364.
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12431 $as_echo_n "checking size of int... " >&6; }
12432 if ${ac_cv_sizeof_int+:} false; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12436
12437 else
12438 if test "$ac_cv_type_int" = yes; then
12439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12441 as_fn_error 77 "cannot compute sizeof (int)
12442 See \`config.log' for more details" "$LINENO" 5; }
12443 else
12444 ac_cv_sizeof_int=0
12445 fi
12446 fi
12447
12448 fi
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12450 $as_echo "$ac_cv_sizeof_int" >&6; }
12451
12452
12453
12454 cat >>confdefs.h <<_ACEOF
12455 #define SIZEOF_INT $ac_cv_sizeof_int
12456 _ACEOF
12457
12458
12459 # The cast to long int works around a bug in the HP C Compiler
12460 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12461 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12462 # This bug is HP SR number 8606223364.
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12464 $as_echo_n "checking size of long... " >&6; }
12465 if ${ac_cv_sizeof_long+:} false; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12469
12470 else
12471 if test "$ac_cv_type_long" = yes; then
12472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12474 as_fn_error 77 "cannot compute sizeof (long)
12475 See \`config.log' for more details" "$LINENO" 5; }
12476 else
12477 ac_cv_sizeof_long=0
12478 fi
12479 fi
12480
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12483 $as_echo "$ac_cv_sizeof_long" >&6; }
12484
12485
12486
12487 cat >>confdefs.h <<_ACEOF
12488 #define SIZEOF_LONG $ac_cv_sizeof_long
12489 _ACEOF
12490
12491
12492 # The cast to long int works around a bug in the HP C Compiler
12493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12495 # This bug is HP SR number 8606223364.
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12497 $as_echo_n "checking size of long long... " >&6; }
12498 if ${ac_cv_sizeof_long_long+:} false; then :
12499 $as_echo_n "(cached) " >&6
12500 else
12501 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12502
12503 else
12504 if test "$ac_cv_type_long_long" = yes; then
12505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12507 as_fn_error 77 "cannot compute sizeof (long long)
12508 See \`config.log' for more details" "$LINENO" 5; }
12509 else
12510 ac_cv_sizeof_long_long=0
12511 fi
12512 fi
12513
12514 fi
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12516 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12517
12518
12519
12520 cat >>confdefs.h <<_ACEOF
12521 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12522 _ACEOF
12523
12524
12525 # The cast to long int works around a bug in the HP C Compiler
12526 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12527 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12528 # This bug is HP SR number 8606223364.
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12530 $as_echo_n "checking size of off_t... " >&6; }
12531 if ${ac_cv_sizeof_off_t+:} false; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12535
12536 else
12537 if test "$ac_cv_type_off_t" = yes; then
12538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12540 as_fn_error 77 "cannot compute sizeof (off_t)
12541 See \`config.log' for more details" "$LINENO" 5; }
12542 else
12543 ac_cv_sizeof_off_t=0
12544 fi
12545 fi
12546
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12549 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12550
12551
12552
12553 cat >>confdefs.h <<_ACEOF
12554 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12555 _ACEOF
12556
12557
12558 SIZEOF_SHORT=$ac_cv_sizeof_short
12559 SIZEOF_INT=$ac_cv_sizeof_int
12560 SIZEOF_LONG=$ac_cv_sizeof_long
12561 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12562 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12563
12564
12565
12566
12567
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12569 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12570 if ${ac_cv_c_bigendian+:} false; then :
12571 $as_echo_n "(cached) " >&6
12572 else
12573 ac_cv_c_bigendian=unknown
12574 # See if we're dealing with a universal compiler.
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 #ifndef __APPLE_CC__
12578 not a universal capable compiler
12579 #endif
12580 typedef int dummy;
12581
12582 _ACEOF
12583 if ac_fn_c_try_compile "$LINENO"; then :
12584
12585 # Check for potential -arch flags. It is not universal unless
12586 # there are at least two -arch flags with different values.
12587 ac_arch=
12588 ac_prev=
12589 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12590 if test -n "$ac_prev"; then
12591 case $ac_word in
12592 i?86 | x86_64 | ppc | ppc64)
12593 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12594 ac_arch=$ac_word
12595 else
12596 ac_cv_c_bigendian=universal
12597 break
12598 fi
12599 ;;
12600 esac
12601 ac_prev=
12602 elif test "x$ac_word" = "x-arch"; then
12603 ac_prev=arch
12604 fi
12605 done
12606 fi
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608 if test $ac_cv_c_bigendian = unknown; then
12609 # See if sys/param.h defines the BYTE_ORDER macro.
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612 #include <sys/types.h>
12613 #include <sys/param.h>
12614
12615 int
12616 main ()
12617 {
12618 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12619 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12620 && LITTLE_ENDIAN)
12621 bogus endian macros
12622 #endif
12623
12624 ;
12625 return 0;
12626 }
12627 _ACEOF
12628 if ac_fn_c_try_compile "$LINENO"; then :
12629 # It does; now see whether it defined to BIG_ENDIAN or not.
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12632 #include <sys/types.h>
12633 #include <sys/param.h>
12634
12635 int
12636 main ()
12637 {
12638 #if BYTE_ORDER != BIG_ENDIAN
12639 not big endian
12640 #endif
12641
12642 ;
12643 return 0;
12644 }
12645 _ACEOF
12646 if ac_fn_c_try_compile "$LINENO"; then :
12647 ac_cv_c_bigendian=yes
12648 else
12649 ac_cv_c_bigendian=no
12650 fi
12651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652 fi
12653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654 fi
12655 if test $ac_cv_c_bigendian = unknown; then
12656 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659 #include <limits.h>
12660
12661 int
12662 main ()
12663 {
12664 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12665 bogus endian macros
12666 #endif
12667
12668 ;
12669 return 0;
12670 }
12671 _ACEOF
12672 if ac_fn_c_try_compile "$LINENO"; then :
12673 # It does; now see whether it defined to _BIG_ENDIAN or not.
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12676 #include <limits.h>
12677
12678 int
12679 main ()
12680 {
12681 #ifndef _BIG_ENDIAN
12682 not big endian
12683 #endif
12684
12685 ;
12686 return 0;
12687 }
12688 _ACEOF
12689 if ac_fn_c_try_compile "$LINENO"; then :
12690 ac_cv_c_bigendian=yes
12691 else
12692 ac_cv_c_bigendian=no
12693 fi
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12695 fi
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 fi
12698 if test $ac_cv_c_bigendian = unknown; then
12699 # Compile a test program.
12700 if test "$cross_compiling" = yes; then :
12701 # Try to guess by grepping values from an object file.
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 short int ascii_mm[] =
12705 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12706 short int ascii_ii[] =
12707 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12708 int use_ascii (int i) {
12709 return ascii_mm[i] + ascii_ii[i];
12710 }
12711 short int ebcdic_ii[] =
12712 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12713 short int ebcdic_mm[] =
12714 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12715 int use_ebcdic (int i) {
12716 return ebcdic_mm[i] + ebcdic_ii[i];
12717 }
12718 extern int foo;
12719
12720 int
12721 main ()
12722 {
12723 return use_ascii (foo) == use_ebcdic (foo);
12724 ;
12725 return 0;
12726 }
12727 _ACEOF
12728 if ac_fn_c_try_compile "$LINENO"; then :
12729 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12730 ac_cv_c_bigendian=yes
12731 fi
12732 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12733 if test "$ac_cv_c_bigendian" = unknown; then
12734 ac_cv_c_bigendian=no
12735 else
12736 # finding both strings is unlikely to happen, but who knows?
12737 ac_cv_c_bigendian=unknown
12738 fi
12739 fi
12740 fi
12741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12742 else
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745 $ac_includes_default
12746 int
12747 main ()
12748 {
12749
12750 /* Are we little or big endian? From Harbison&Steele. */
12751 union
12752 {
12753 long int l;
12754 char c[sizeof (long int)];
12755 } u;
12756 u.l = 1;
12757 return u.c[sizeof (long int) - 1] == 1;
12758
12759 ;
12760 return 0;
12761 }
12762 _ACEOF
12763 if ac_fn_c_try_run "$LINENO"; then :
12764 ac_cv_c_bigendian=no
12765 else
12766 ac_cv_c_bigendian=yes
12767 fi
12768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12769 conftest.$ac_objext conftest.beam conftest.$ac_ext
12770 fi
12771
12772 fi
12773 fi
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12775 $as_echo "$ac_cv_c_bigendian" >&6; }
12776 case $ac_cv_c_bigendian in #(
12777 yes)
12778 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12779 ;; #(
12780 no)
12781 ;; #(
12782 universal)
12783
12784 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12785
12786 ;; #(
12787 *)
12788 as_fn_error $? "unknown endianness
12789 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12790 esac
12791
12792 if test $cross_compiling = no; then
12793 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12794 else
12795 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12796 fi
12797 ASM_TYPES_HEADER=./asm_types.h
12798
12799 echo "/* These defines are needed for the public ext2fs.h header file */" \
12800 > public_config.h
12801 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12802 uniq tmp_config.$$ >> public_config.h
12803 else
12804 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12805 fi
12806 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12807 uniq tmp_config.$$ >> public_config.h
12808 else
12809 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12810 fi
12811 rm -f tmp_config.$$
12812 PUBLIC_CONFIG_HEADER=./public_config.h
12813
12814 for ac_header in inttypes.h
12815 do :
12816 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12817 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12818 cat >>confdefs.h <<_ACEOF
12819 #define HAVE_INTTYPES_H 1
12820 _ACEOF
12821
12822 fi
12823
12824 done
12825
12826 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12827 if test "x$ac_cv_type_intptr_t" = xyes; then :
12828
12829 cat >>confdefs.h <<_ACEOF
12830 #define HAVE_INTPTR_T 1
12831 _ACEOF
12832
12833
12834 fi
12835
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12837 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12838 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12843 #include <sys/stat.h>
12844 int
12845 main ()
12846 {
12847 struct stat stat; stat.st_flags = 0;
12848 ;
12849 return 0;
12850 }
12851 _ACEOF
12852 if ac_fn_c_try_compile "$LINENO"; then :
12853 e2fsprogs_cv_struct_st_flags=yes
12854 else
12855 e2fsprogs_cv_struct_st_flags=no
12856 fi
12857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12858 fi
12859
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12861 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12862 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12864 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12865 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12866 $as_echo_n "(cached) " >&6
12867 else
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12870 #include <sys/stat.h>
12871 int
12872 main ()
12873 {
12874 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12875 ;
12876 return 0;
12877 }
12878 _ACEOF
12879 if ac_fn_c_try_compile "$LINENO"; then :
12880 e2fsprogs_cv_struct_st_flags_immut=yes
12881 else
12882 e2fsprogs_cv_struct_st_flags_immut=no
12883 fi
12884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885 fi
12886
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12888 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12889 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12890
12891 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12892
12893 fi
12894 fi
12895 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12896 #include <sys/socket.h>
12897 "
12898 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
12899
12900 cat >>confdefs.h <<_ACEOF
12901 #define HAVE_SA_LEN 1
12902 _ACEOF
12903
12904 fi
12905
12906 if test -n "$BLKID_CMT"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
12908 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
12909 if ${ac_cv_search_blkid_probe_all+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 ac_func_search_save_LIBS=$LIBS
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12915
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12919 #ifdef __cplusplus
12920 extern "C"
12921 #endif
12922 char blkid_probe_all ();
12923 int
12924 main ()
12925 {
12926 return blkid_probe_all ();
12927 ;
12928 return 0;
12929 }
12930 _ACEOF
12931 for ac_lib in '' blkid; do
12932 if test -z "$ac_lib"; then
12933 ac_res="none required"
12934 else
12935 ac_res=-l$ac_lib
12936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12937 fi
12938 if ac_fn_c_try_link "$LINENO"; then :
12939 ac_cv_search_blkid_probe_all=$ac_res
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext
12943 if ${ac_cv_search_blkid_probe_all+:} false; then :
12944 break
12945 fi
12946 done
12947 if ${ac_cv_search_blkid_probe_all+:} false; then :
12948
12949 else
12950 ac_cv_search_blkid_probe_all=no
12951 fi
12952 rm conftest.$ac_ext
12953 LIBS=$ac_func_search_save_LIBS
12954 fi
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
12956 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12957 ac_res=$ac_cv_search_blkid_probe_all
12958 if test "$ac_res" != no; then :
12959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12960
12961 fi
12962
12963 fi
12964 for ac_func in __secure_getenv add_key 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 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
12965 do :
12966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12967 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12968 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12969 cat >>confdefs.h <<_ACEOF
12970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12971 _ACEOF
12972
12973 fi
12974 done
12975
12976 SOCKET_LIB=''
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
12978 $as_echo_n "checking for socket in -lsocket... " >&6; }
12979 if ${ac_cv_lib_socket_socket+:} false; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12982 ac_check_lib_save_LIBS=$LIBS
12983 LIBS="-lsocket $LIBS"
12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h. */
12986
12987 /* Override any GCC internal prototype to avoid an error.
12988 Use char because int might match the return type of a GCC
12989 builtin and then its argument prototype would still apply. */
12990 #ifdef __cplusplus
12991 extern "C"
12992 #endif
12993 char socket ();
12994 int
12995 main ()
12996 {
12997 return socket ();
12998 ;
12999 return 0;
13000 }
13001 _ACEOF
13002 if ac_fn_c_try_link "$LINENO"; then :
13003 ac_cv_lib_socket_socket=yes
13004 else
13005 ac_cv_lib_socket_socket=no
13006 fi
13007 rm -f core conftest.err conftest.$ac_objext \
13008 conftest$ac_exeext conftest.$ac_ext
13009 LIBS=$ac_check_lib_save_LIBS
13010 fi
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13012 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13013 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13014 SOCKET_LIB=-lsocket
13015 fi
13016
13017
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13019 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13020 if ${ac_cv_lib_magic_magic_file+:} false; then :
13021 $as_echo_n "(cached) " >&6
13022 else
13023 ac_check_lib_save_LIBS=$LIBS
13024 LIBS="-lmagic $LIBS"
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13027
13028 /* Override any GCC internal prototype to avoid an error.
13029 Use char because int might match the return type of a GCC
13030 builtin and then its argument prototype would still apply. */
13031 #ifdef __cplusplus
13032 extern "C"
13033 #endif
13034 char magic_file ();
13035 int
13036 main ()
13037 {
13038 return magic_file ();
13039 ;
13040 return 0;
13041 }
13042 _ACEOF
13043 if ac_fn_c_try_link "$LINENO"; then :
13044 ac_cv_lib_magic_magic_file=yes
13045 else
13046 ac_cv_lib_magic_magic_file=no
13047 fi
13048 rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13050 LIBS=$ac_check_lib_save_LIBS
13051 fi
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13053 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13054 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13055 MAGIC_LIB=-lmagic
13056 for ac_header in magic.h
13057 do :
13058 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13059 if test "x$ac_cv_header_magic_h" = xyes; then :
13060 cat >>confdefs.h <<_ACEOF
13061 #define HAVE_MAGIC_H 1
13062 _ACEOF
13063
13064 fi
13065
13066 done
13067
13068 fi
13069
13070 if test "$ac_cv_lib_dl_dlopen" = yes ; then
13071 MAGIC_LIB=$DLOPEN_LIB
13072 fi
13073
13074 FUSE_CMT=
13075 FUSE_LIB=
13076 # Check whether --enable-fuse2fs was given.
13077 if test "${enable_fuse2fs+set}" = set; then :
13078 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13079 then
13080 FUSE_CMT="#"
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13082 $as_echo "Disabling fuse2fs" >&6; }
13083 else
13084 for ac_header in pthread.h fuse.h
13085 do :
13086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13087 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13088 #define FUSE_USE_VERSION 29
13089 "
13090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13091 cat >>confdefs.h <<_ACEOF
13092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13093 _ACEOF
13094
13095 else
13096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13098 as_fn_error $? "Cannot find fuse2fs headers.
13099 See \`config.log' for more details" "$LINENO" 5; }
13100 fi
13101
13102 done
13103
13104
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13107 #define FUSE_USE_VERSION 29
13108 #ifdef __linux__
13109 #include <linux/fs.h>
13110 #include <linux/falloc.h>
13111 #include <linux/xattr.h>
13112 #endif
13113
13114 int
13115 main ()
13116 {
13117
13118 ;
13119 return 0;
13120 }
13121 _ACEOF
13122 if ac_fn_c_try_cpp "$LINENO"; then :
13123
13124 else
13125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13127 as_fn_error $? "Cannot find fuse2fs Linux headers.
13128 See \`config.log' for more details" "$LINENO" 5; }
13129 fi
13130 rm -f conftest.err conftest.i conftest.$ac_ext
13131
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13133 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13134 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 ac_check_lib_save_LIBS=$LIBS
13138 LIBS="-losxfuse $LIBS"
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141
13142 /* Override any GCC internal prototype to avoid an error.
13143 Use char because int might match the return type of a GCC
13144 builtin and then its argument prototype would still apply. */
13145 #ifdef __cplusplus
13146 extern "C"
13147 #endif
13148 char fuse_main ();
13149 int
13150 main ()
13151 {
13152 return fuse_main ();
13153 ;
13154 return 0;
13155 }
13156 _ACEOF
13157 if ac_fn_c_try_link "$LINENO"; then :
13158 ac_cv_lib_osxfuse_fuse_main=yes
13159 else
13160 ac_cv_lib_osxfuse_fuse_main=no
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
13164 LIBS=$ac_check_lib_save_LIBS
13165 fi
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13167 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13168 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13169 FUSE_LIB=-losxfuse
13170 else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13172 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13173 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 ac_check_lib_save_LIBS=$LIBS
13177 LIBS="-lfuse $LIBS"
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180
13181 /* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13184 #ifdef __cplusplus
13185 extern "C"
13186 #endif
13187 char fuse_main ();
13188 int
13189 main ()
13190 {
13191 return fuse_main ();
13192 ;
13193 return 0;
13194 }
13195 _ACEOF
13196 if ac_fn_c_try_link "$LINENO"; then :
13197 ac_cv_lib_fuse_fuse_main=yes
13198 else
13199 ac_cv_lib_fuse_fuse_main=no
13200 fi
13201 rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13204 fi
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13206 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13207 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13208 FUSE_LIB=-lfuse
13209 else
13210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13212 as_fn_error $? "Cannot find fuse library.
13213 See \`config.log' for more details" "$LINENO" 5; }
13214 fi
13215
13216 fi
13217
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13219 $as_echo "Enabling fuse2fs" >&6; }
13220 fi
13221
13222 else
13223 for ac_header in pthread.h fuse.h
13224 do :
13225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13226 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13227 #define FUSE_USE_VERSION 29
13228 #ifdef __linux__
13229 # include <linux/fs.h>
13230 # include <linux/falloc.h>
13231 # include <linux/xattr.h>
13232 #endif
13233 "
13234 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13235 cat >>confdefs.h <<_ACEOF
13236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13237 _ACEOF
13238
13239 else
13240 FUSE_CMT="#"
13241 fi
13242
13243 done
13244
13245 if test -z "$FUSE_CMT"
13246 then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13248 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13249 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 ac_check_lib_save_LIBS=$LIBS
13253 LIBS="-losxfuse $LIBS"
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13256
13257 /* Override any GCC internal prototype to avoid an error.
13258 Use char because int might match the return type of a GCC
13259 builtin and then its argument prototype would still apply. */
13260 #ifdef __cplusplus
13261 extern "C"
13262 #endif
13263 char fuse_main ();
13264 int
13265 main ()
13266 {
13267 return fuse_main ();
13268 ;
13269 return 0;
13270 }
13271 _ACEOF
13272 if ac_fn_c_try_link "$LINENO"; then :
13273 ac_cv_lib_osxfuse_fuse_main=yes
13274 else
13275 ac_cv_lib_osxfuse_fuse_main=no
13276 fi
13277 rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279 LIBS=$ac_check_lib_save_LIBS
13280 fi
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13282 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13283 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13284 FUSE_LIB=-losxfuse
13285 else
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13287 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13288 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291 ac_check_lib_save_LIBS=$LIBS
13292 LIBS="-lfuse $LIBS"
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13295
13296 /* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13299 #ifdef __cplusplus
13300 extern "C"
13301 #endif
13302 char fuse_main ();
13303 int
13304 main ()
13305 {
13306 return fuse_main ();
13307 ;
13308 return 0;
13309 }
13310 _ACEOF
13311 if ac_fn_c_try_link "$LINENO"; then :
13312 ac_cv_lib_fuse_fuse_main=yes
13313 else
13314 ac_cv_lib_fuse_fuse_main=no
13315 fi
13316 rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
13318 LIBS=$ac_check_lib_save_LIBS
13319 fi
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13321 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13322 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13323 FUSE_LIB=-lfuse
13324 else
13325 FUSE_CMT="#"
13326 fi
13327
13328 fi
13329
13330 fi
13331 if test -z "$FUSE_CMT"
13332 then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13334 $as_echo "Enabling fuse2fs by default." >&6; }
13335 fi
13336
13337 fi
13338
13339
13340
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13342 $as_echo_n "checking for optreset... " >&6; }
13343 if ${ac_cv_have_optreset+:} false; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13348 #include <unistd.h>
13349
13350 _ACEOF
13351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13352 $EGREP "optreset" >/dev/null 2>&1; then :
13353 ac_cv_have_optreset=yes
13354 else
13355 ac_cv_have_optreset=no
13356 fi
13357 rm -f conftest*
13358
13359 fi
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13361 $as_echo "$ac_cv_have_optreset" >&6; }
13362 if test $ac_cv_have_optreset = yes; then
13363
13364 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13365
13366 fi
13367
13368 SEM_INIT_LIB=''
13369 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13370 if test "x$ac_cv_func_sem_init" = xyes; then :
13371
13372 else
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13374 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13375 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13376 $as_echo_n "(cached) " >&6
13377 else
13378 ac_check_lib_save_LIBS=$LIBS
13379 LIBS="-lpthread $LIBS"
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382
13383 /* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13386 #ifdef __cplusplus
13387 extern "C"
13388 #endif
13389 char sem_init ();
13390 int
13391 main ()
13392 {
13393 return sem_init ();
13394 ;
13395 return 0;
13396 }
13397 _ACEOF
13398 if ac_fn_c_try_link "$LINENO"; then :
13399 ac_cv_lib_pthread_sem_init=yes
13400 else
13401 ac_cv_lib_pthread_sem_init=no
13402 fi
13403 rm -f core conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
13405 LIBS=$ac_check_lib_save_LIBS
13406 fi
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13408 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13409 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13410 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13411
13412 SEM_INIT_LIB=-lpthread
13413 else
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13415 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13416 if ${ac_cv_lib_rt_sem_init+:} false; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 ac_check_lib_save_LIBS=$LIBS
13420 LIBS="-lrt $LIBS"
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13423
13424 /* Override any GCC internal prototype to avoid an error.
13425 Use char because int might match the return type of a GCC
13426 builtin and then its argument prototype would still apply. */
13427 #ifdef __cplusplus
13428 extern "C"
13429 #endif
13430 char sem_init ();
13431 int
13432 main ()
13433 {
13434 return sem_init ();
13435 ;
13436 return 0;
13437 }
13438 _ACEOF
13439 if ac_fn_c_try_link "$LINENO"; then :
13440 ac_cv_lib_rt_sem_init=yes
13441 else
13442 ac_cv_lib_rt_sem_init=no
13443 fi
13444 rm -f core conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
13446 LIBS=$ac_check_lib_save_LIBS
13447 fi
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13449 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13450 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13451 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13452
13453 SEM_INIT_LIB=-lrt
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13456 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13457 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13458 $as_echo_n "(cached) " >&6
13459 else
13460 ac_check_lib_save_LIBS=$LIBS
13461 LIBS="-lposix4 $LIBS"
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h. */
13464
13465 /* Override any GCC internal prototype to avoid an error.
13466 Use char because int might match the return type of a GCC
13467 builtin and then its argument prototype would still apply. */
13468 #ifdef __cplusplus
13469 extern "C"
13470 #endif
13471 char sem_init ();
13472 int
13473 main ()
13474 {
13475 return sem_init ();
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_link "$LINENO"; then :
13481 ac_cv_lib_posix4_sem_init=yes
13482 else
13483 ac_cv_lib_posix4_sem_init=no
13484 fi
13485 rm -f core conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13488 fi
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13490 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13491 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13492 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13493
13494 SEM_INIT_LIB=-lposix4
13495 fi
13496
13497 fi
13498
13499 fi
13500
13501 fi
13502
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13504 $as_echo_n "checking for unified diff option... " >&6; }
13505 if diff -u $0 $0 > /dev/null 2>&1 ; then
13506 UNI_DIFF_OPTS=-u
13507 else
13508 UNI_DIFF_OPTS=-c
13509 fi
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13511 $as_echo "$UNI_DIFF_OPTS" >&6; }
13512
13513 case "$host_os" in
13514 linux*)
13515
13516 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13517
13518 ;;
13519 esac
13520 LINUX_CMT="#"
13521 CYGWIN_CMT="#"
13522 UNIX_CMT=
13523 case "$host_os" in
13524 linux*)
13525 LINUX_CMT=
13526 ;;
13527 cygwin)
13528 CYGWIN_CMT=
13529 UNIX_CMT="#"
13530 ;;
13531 esac
13532
13533
13534
13535 case "$host_os" in
13536 linux* | gnu* | k*bsd*-gnu)
13537 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13538 root_prefix="";
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13540 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13541 fi
13542 ;;
13543 esac
13544 case "$host_os" in
13545 linux* | gnu* | k*bsd*-gnu)
13546 if test "$prefix" = NONE ; then
13547 prefix="/usr";
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13549 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13550 if test "$mandir" = '${prefix}/man' ; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13552 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13553 mandir=/usr/share/man
13554 fi
13555 fi
13556 ;;
13557 esac
13558 if test "$root_prefix" = NONE ; then
13559 if test "$prefix" = NONE ; then
13560 root_prefix="$ac_default_prefix"
13561 else
13562 root_prefix="$prefix"
13563 fi
13564 root_bindir=$bindir
13565 root_sbindir=$sbindir
13566 root_libdir=$libdir
13567 root_sysconfdir=$sysconfdir
13568 else
13569 root_bindir='${root_prefix}/bin'
13570 root_sbindir='${root_prefix}/sbin'
13571 root_libdir='${root_prefix}/lib'
13572 root_sysconfdir='${root_prefix}/etc'
13573 fi
13574 if test "$bindir" != '${exec_prefix}/bin'; then
13575 root_bindir=$bindir
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13577 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13578 fi
13579 if test "$sbindir" != '${exec_prefix}/sbin'; then
13580 root_sbindir=$sbindir
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13582 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13583 fi
13584 if test "$libdir" != '${exec_prefix}/lib'; then
13585 root_libdir=$libdir
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13587 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13588 fi
13589 if test "$sysconfdir" != '${prefix}/etc'; then
13590 root_sysconfdir=$sysconfdir
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13592 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13593 fi
13594
13595
13596
13597
13598
13599
13600 # Check whether --with-multiarch was given.
13601 if test "${with_multiarch+set}" = set; then :
13602 withval=$with_multiarch; if test "$withval" = "lib64"; then
13603 libdir=/usr/lib64
13604 root_libdir=/lib64
13605 else
13606 libdir=$libdir/$withval
13607 root_libdir=$root_libdir/$withval
13608 fi
13609
13610 fi
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13612 $as_echo_n "checking whether we can link with -static... " >&6; }
13613 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13619 #include <stdio.h>
13620 int
13621 main ()
13622 {
13623 fflush(stdout);
13624 ;
13625 return 0;
13626 }
13627 _ACEOF
13628 if ac_fn_c_try_link "$LINENO"; then :
13629 ac_cv_e2fsprogs_use_static=yes
13630 else
13631 ac_cv_e2fsprogs_use_static=no
13632 fi
13633 rm -f core conftest.err conftest.$ac_objext \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LDFLAGS=$SAVE_LDFLAGS
13636 fi
13637
13638 case "$host_os" in
13639 solaris2.*)
13640 ac_cv_e2fsprogs_use_static=no
13641 ;;
13642 esac
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13644 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13645 LDFLAG_STATIC=
13646 if test $ac_cv_e2fsprogs_use_static = yes; then
13647 LDFLAG_STATIC=-static
13648 fi
13649
13650 case "$host_os" in
13651 darwin*)
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13653 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13654
13655 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13656
13657 ;;
13658 esac
13659 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13660 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13661
13662
13663 if test "$cross_compiling" = yes ; then
13664 DO_TEST_SUITE=
13665 else
13666 DO_TEST_SUITE=check
13667 fi
13668
13669 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13670 if test -n "$CPPFLAGS" ; then
13671 INCLUDES="$INCLUDES $CPPFLAGS"
13672 fi
13673 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13674 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13675 fi
13676 if test -n "$WITH_DIET_LIBC" ; then
13677 INCLUDES="$INCLUDES -D_REENTRANT"
13678 fi
13679
13680
13681 MKINSTALLDIRS=
13682 if test -n "$ac_aux_dir"; then
13683 case "$ac_aux_dir" in
13684 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13685 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13686 esac
13687 fi
13688 if test -z "$MKINSTALLDIRS"; then
13689 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13690 fi
13691
13692
13693 if test $cross_compiling = no; then
13694 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13695 BUILD_LDFLAGS="$LDFLAGS"
13696 fi
13697
13698
13699 test -d lib || mkdir lib
13700 test -d include || mkdir include
13701 test -d include/linux || mkdir include/linux
13702 test -d include/asm || mkdir include/asm
13703 if test -z "$UUID_CMT" ; then
13704 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13705 lib/uuid/uuid_types.h"
13706 fi
13707 if test -z "$BLKID_CMT" ; then
13708 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13709 lib/blkid/blkid_types.h"
13710 fi
13711 for i in MCONFIG Makefile e2fsprogs.spec \
13712 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13713 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13714 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13715 $uuid_out_list $blkid_out_list lib/support/Makefile \
13716 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
13717 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13718 debugfs/Makefile tests/Makefile tests/progs/Makefile \
13719 resize/Makefile doc/Makefile intl/Makefile \
13720 intl/libgnuintl.h po/Makefile.in ; do
13721 if test -d `dirname ${srcdir}/$i` ; then
13722 outlist="$outlist $i"
13723 fi
13724 done
13725 ac_config_files="$ac_config_files $outlist"
13726
13727 cat >confcache <<\_ACEOF
13728 # This file is a shell script that caches the results of configure
13729 # tests run on this system so they can be shared between configure
13730 # scripts and configure runs, see configure's option --config-cache.
13731 # It is not useful on other systems. If it contains results you don't
13732 # want to keep, you may remove or edit it.
13733 #
13734 # config.status only pays attention to the cache file if you give it
13735 # the --recheck option to rerun configure.
13736 #
13737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13739 # following values.
13740
13741 _ACEOF
13742
13743 # The following way of writing the cache mishandles newlines in values,
13744 # but we know of no workaround that is simple, portable, and efficient.
13745 # So, we kill variables containing newlines.
13746 # Ultrix sh set writes to stderr and can't be redirected directly,
13747 # and sets the high bit in the cache file unless we assign to the vars.
13748 (
13749 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13750 eval ac_val=\$$ac_var
13751 case $ac_val in #(
13752 *${as_nl}*)
13753 case $ac_var in #(
13754 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13755 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13756 esac
13757 case $ac_var in #(
13758 _ | IFS | as_nl) ;; #(
13759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13760 *) { eval $ac_var=; unset $ac_var;} ;;
13761 esac ;;
13762 esac
13763 done
13764
13765 (set) 2>&1 |
13766 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13767 *${as_nl}ac_space=\ *)
13768 # `set' does not quote correctly, so add quotes: double-quote
13769 # substitution turns \\\\ into \\, and sed turns \\ into \.
13770 sed -n \
13771 "s/'/'\\\\''/g;
13772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13773 ;; #(
13774 *)
13775 # `set' quotes correctly as required by POSIX, so do not add quotes.
13776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13777 ;;
13778 esac |
13779 sort
13780 ) |
13781 sed '
13782 /^ac_cv_env_/b end
13783 t clear
13784 :clear
13785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13786 t end
13787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13788 :end' >>confcache
13789 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13790 if test -w "$cache_file"; then
13791 if test "x$cache_file" != "x/dev/null"; then
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13793 $as_echo "$as_me: updating cache $cache_file" >&6;}
13794 if test ! -f "$cache_file" || test -h "$cache_file"; then
13795 cat confcache >"$cache_file"
13796 else
13797 case $cache_file in #(
13798 */* | ?:*)
13799 mv -f confcache "$cache_file"$$ &&
13800 mv -f "$cache_file"$$ "$cache_file" ;; #(
13801 *)
13802 mv -f confcache "$cache_file" ;;
13803 esac
13804 fi
13805 fi
13806 else
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13808 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13809 fi
13810 fi
13811 rm -f confcache
13812
13813 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13814 # Let make expand exec_prefix.
13815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13816
13817 DEFS=-DHAVE_CONFIG_H
13818
13819 ac_libobjs=
13820 ac_ltlibobjs=
13821 U=
13822 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13823 # 1. Remove the extension, and $U if already installed.
13824 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13825 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13826 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13827 # will be set to the directory where LIBOBJS objects are built.
13828 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13829 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13830 done
13831 LIBOBJS=$ac_libobjs
13832
13833 LTLIBOBJS=$ac_ltlibobjs
13834
13835
13836
13837
13838 : "${CONFIG_STATUS=./config.status}"
13839 ac_write_fail=0
13840 ac_clean_files_save=$ac_clean_files
13841 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13843 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13844 as_write_fail=0
13845 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13846 #! $SHELL
13847 # Generated by $as_me.
13848 # Run this file to recreate the current configuration.
13849 # Compiler output produced by configure, useful for debugging
13850 # configure, is in config.log if it exists.
13851
13852 debug=false
13853 ac_cs_recheck=false
13854 ac_cs_silent=false
13855
13856 SHELL=\${CONFIG_SHELL-$SHELL}
13857 export SHELL
13858 _ASEOF
13859 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13860 ## -------------------- ##
13861 ## M4sh Initialization. ##
13862 ## -------------------- ##
13863
13864 # Be more Bourne compatible
13865 DUALCASE=1; export DUALCASE # for MKS sh
13866 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13867 emulate sh
13868 NULLCMD=:
13869 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13870 # is contrary to our usage. Disable this feature.
13871 alias -g '${1+"$@"}'='"$@"'
13872 setopt NO_GLOB_SUBST
13873 else
13874 case `(set -o) 2>/dev/null` in #(
13875 *posix*) :
13876 set -o posix ;; #(
13877 *) :
13878 ;;
13879 esac
13880 fi
13881
13882
13883 as_nl='
13884 '
13885 export as_nl
13886 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13887 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13888 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13889 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13890 # Prefer a ksh shell builtin over an external printf program on Solaris,
13891 # but without wasting forks for bash or zsh.
13892 if test -z "$BASH_VERSION$ZSH_VERSION" \
13893 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13894 as_echo='print -r --'
13895 as_echo_n='print -rn --'
13896 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13897 as_echo='printf %s\n'
13898 as_echo_n='printf %s'
13899 else
13900 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13901 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13902 as_echo_n='/usr/ucb/echo -n'
13903 else
13904 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13905 as_echo_n_body='eval
13906 arg=$1;
13907 case $arg in #(
13908 *"$as_nl"*)
13909 expr "X$arg" : "X\\(.*\\)$as_nl";
13910 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13911 esac;
13912 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13913 '
13914 export as_echo_n_body
13915 as_echo_n='sh -c $as_echo_n_body as_echo'
13916 fi
13917 export as_echo_body
13918 as_echo='sh -c $as_echo_body as_echo'
13919 fi
13920
13921 # The user is always right.
13922 if test "${PATH_SEPARATOR+set}" != set; then
13923 PATH_SEPARATOR=:
13924 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13925 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13926 PATH_SEPARATOR=';'
13927 }
13928 fi
13929
13930
13931 # IFS
13932 # We need space, tab and new line, in precisely that order. Quoting is
13933 # there to prevent editors from complaining about space-tab.
13934 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13935 # splitting by setting IFS to empty value.)
13936 IFS=" "" $as_nl"
13937
13938 # Find who we are. Look in the path if we contain no directory separator.
13939 as_myself=
13940 case $0 in #((
13941 *[\\/]* ) as_myself=$0 ;;
13942 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13943 for as_dir in $PATH
13944 do
13945 IFS=$as_save_IFS
13946 test -z "$as_dir" && as_dir=.
13947 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13948 done
13949 IFS=$as_save_IFS
13950
13951 ;;
13952 esac
13953 # We did not find ourselves, most probably we were run as `sh COMMAND'
13954 # in which case we are not to be found in the path.
13955 if test "x$as_myself" = x; then
13956 as_myself=$0
13957 fi
13958 if test ! -f "$as_myself"; then
13959 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13960 exit 1
13961 fi
13962
13963 # Unset variables that we do not need and which cause bugs (e.g. in
13964 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13965 # suppresses any "Segmentation fault" message there. '((' could
13966 # trigger a bug in pdksh 5.2.14.
13967 for as_var in BASH_ENV ENV MAIL MAILPATH
13968 do eval test x\${$as_var+set} = xset \
13969 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13970 done
13971 PS1='$ '
13972 PS2='> '
13973 PS4='+ '
13974
13975 # NLS nuisances.
13976 LC_ALL=C
13977 export LC_ALL
13978 LANGUAGE=C
13979 export LANGUAGE
13980
13981 # CDPATH.
13982 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13983
13984
13985 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13986 # ----------------------------------------
13987 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13988 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13989 # script with STATUS, using 1 if that was 0.
13990 as_fn_error ()
13991 {
13992 as_status=$1; test $as_status -eq 0 && as_status=1
13993 if test "$4"; then
13994 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13995 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13996 fi
13997 $as_echo "$as_me: error: $2" >&2
13998 as_fn_exit $as_status
13999 } # as_fn_error
14000
14001
14002 # as_fn_set_status STATUS
14003 # -----------------------
14004 # Set $? to STATUS, without forking.
14005 as_fn_set_status ()
14006 {
14007 return $1
14008 } # as_fn_set_status
14009
14010 # as_fn_exit STATUS
14011 # -----------------
14012 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14013 as_fn_exit ()
14014 {
14015 set +e
14016 as_fn_set_status $1
14017 exit $1
14018 } # as_fn_exit
14019
14020 # as_fn_unset VAR
14021 # ---------------
14022 # Portably unset VAR.
14023 as_fn_unset ()
14024 {
14025 { eval $1=; unset $1;}
14026 }
14027 as_unset=as_fn_unset
14028 # as_fn_append VAR VALUE
14029 # ----------------------
14030 # Append the text in VALUE to the end of the definition contained in VAR. Take
14031 # advantage of any shell optimizations that allow amortized linear growth over
14032 # repeated appends, instead of the typical quadratic growth present in naive
14033 # implementations.
14034 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14035 eval 'as_fn_append ()
14036 {
14037 eval $1+=\$2
14038 }'
14039 else
14040 as_fn_append ()
14041 {
14042 eval $1=\$$1\$2
14043 }
14044 fi # as_fn_append
14045
14046 # as_fn_arith ARG...
14047 # ------------------
14048 # Perform arithmetic evaluation on the ARGs, and store the result in the
14049 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14050 # must be portable across $(()) and expr.
14051 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14052 eval 'as_fn_arith ()
14053 {
14054 as_val=$(( $* ))
14055 }'
14056 else
14057 as_fn_arith ()
14058 {
14059 as_val=`expr "$@" || test $? -eq 1`
14060 }
14061 fi # as_fn_arith
14062
14063
14064 if expr a : '\(a\)' >/dev/null 2>&1 &&
14065 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14066 as_expr=expr
14067 else
14068 as_expr=false
14069 fi
14070
14071 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14072 as_basename=basename
14073 else
14074 as_basename=false
14075 fi
14076
14077 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14078 as_dirname=dirname
14079 else
14080 as_dirname=false
14081 fi
14082
14083 as_me=`$as_basename -- "$0" ||
14084 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14085 X"$0" : 'X\(//\)$' \| \
14086 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14087 $as_echo X/"$0" |
14088 sed '/^.*\/\([^/][^/]*\)\/*$/{
14089 s//\1/
14090 q
14091 }
14092 /^X\/\(\/\/\)$/{
14093 s//\1/
14094 q
14095 }
14096 /^X\/\(\/\).*/{
14097 s//\1/
14098 q
14099 }
14100 s/.*/./; q'`
14101
14102 # Avoid depending upon Character Ranges.
14103 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14104 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14105 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14106 as_cr_digits='0123456789'
14107 as_cr_alnum=$as_cr_Letters$as_cr_digits
14108
14109 ECHO_C= ECHO_N= ECHO_T=
14110 case `echo -n x` in #(((((
14111 -n*)
14112 case `echo 'xy\c'` in
14113 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14114 xy) ECHO_C='\c';;
14115 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14116 ECHO_T=' ';;
14117 esac;;
14118 *)
14119 ECHO_N='-n';;
14120 esac
14121
14122 rm -f conf$$ conf$$.exe conf$$.file
14123 if test -d conf$$.dir; then
14124 rm -f conf$$.dir/conf$$.file
14125 else
14126 rm -f conf$$.dir
14127 mkdir conf$$.dir 2>/dev/null
14128 fi
14129 if (echo >conf$$.file) 2>/dev/null; then
14130 if ln -s conf$$.file conf$$ 2>/dev/null; then
14131 as_ln_s='ln -s'
14132 # ... but there are two gotchas:
14133 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14134 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14135 # In both cases, we have to default to `cp -pR'.
14136 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14137 as_ln_s='cp -pR'
14138 elif ln conf$$.file conf$$ 2>/dev/null; then
14139 as_ln_s=ln
14140 else
14141 as_ln_s='cp -pR'
14142 fi
14143 else
14144 as_ln_s='cp -pR'
14145 fi
14146 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14147 rmdir conf$$.dir 2>/dev/null
14148
14149
14150 # as_fn_mkdir_p
14151 # -------------
14152 # Create "$as_dir" as a directory, including parents if necessary.
14153 as_fn_mkdir_p ()
14154 {
14155
14156 case $as_dir in #(
14157 -*) as_dir=./$as_dir;;
14158 esac
14159 test -d "$as_dir" || eval $as_mkdir_p || {
14160 as_dirs=
14161 while :; do
14162 case $as_dir in #(
14163 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14164 *) as_qdir=$as_dir;;
14165 esac
14166 as_dirs="'$as_qdir' $as_dirs"
14167 as_dir=`$as_dirname -- "$as_dir" ||
14168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14169 X"$as_dir" : 'X\(//\)[^/]' \| \
14170 X"$as_dir" : 'X\(//\)$' \| \
14171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14172 $as_echo X"$as_dir" |
14173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14174 s//\1/
14175 q
14176 }
14177 /^X\(\/\/\)[^/].*/{
14178 s//\1/
14179 q
14180 }
14181 /^X\(\/\/\)$/{
14182 s//\1/
14183 q
14184 }
14185 /^X\(\/\).*/{
14186 s//\1/
14187 q
14188 }
14189 s/.*/./; q'`
14190 test -d "$as_dir" && break
14191 done
14192 test -z "$as_dirs" || eval "mkdir $as_dirs"
14193 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14194
14195
14196 } # as_fn_mkdir_p
14197 if mkdir -p . 2>/dev/null; then
14198 as_mkdir_p='mkdir -p "$as_dir"'
14199 else
14200 test -d ./-p && rmdir ./-p
14201 as_mkdir_p=false
14202 fi
14203
14204
14205 # as_fn_executable_p FILE
14206 # -----------------------
14207 # Test if FILE is an executable regular file.
14208 as_fn_executable_p ()
14209 {
14210 test -f "$1" && test -x "$1"
14211 } # as_fn_executable_p
14212 as_test_x='test -x'
14213 as_executable_p=as_fn_executable_p
14214
14215 # Sed expression to map a string onto a valid CPP name.
14216 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14217
14218 # Sed expression to map a string onto a valid variable name.
14219 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14220
14221
14222 exec 6>&1
14223 ## ----------------------------------- ##
14224 ## Main body of $CONFIG_STATUS script. ##
14225 ## ----------------------------------- ##
14226 _ASEOF
14227 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14228
14229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14230 # Save the log message, to keep $0 and so on meaningful, and to
14231 # report actual input values of CONFIG_FILES etc. instead of their
14232 # values after options handling.
14233 ac_log="
14234 This file was extended by $as_me, which was
14235 generated by GNU Autoconf 2.69. Invocation command line was
14236
14237 CONFIG_FILES = $CONFIG_FILES
14238 CONFIG_HEADERS = $CONFIG_HEADERS
14239 CONFIG_LINKS = $CONFIG_LINKS
14240 CONFIG_COMMANDS = $CONFIG_COMMANDS
14241 $ $0 $@
14242
14243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14244 "
14245
14246 _ACEOF
14247
14248 case $ac_config_files in *"
14249 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14250 esac
14251
14252 case $ac_config_headers in *"
14253 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14254 esac
14255
14256
14257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14258 # Files that config.status was made for.
14259 config_files="$ac_config_files"
14260 config_headers="$ac_config_headers"
14261 config_commands="$ac_config_commands"
14262
14263 _ACEOF
14264
14265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14266 ac_cs_usage="\
14267 \`$as_me' instantiates files and other configuration actions
14268 from templates according to the current configuration. Unless the files
14269 and actions are specified as TAGs, all are instantiated by default.
14270
14271 Usage: $0 [OPTION]... [TAG]...
14272
14273 -h, --help print this help, then exit
14274 -V, --version print version number and configuration settings, then exit
14275 --config print configuration, then exit
14276 -q, --quiet, --silent
14277 do not print progress messages
14278 -d, --debug don't remove temporary files
14279 --recheck update $as_me by reconfiguring in the same conditions
14280 --file=FILE[:TEMPLATE]
14281 instantiate the configuration file FILE
14282 --header=FILE[:TEMPLATE]
14283 instantiate the configuration header FILE
14284
14285 Configuration files:
14286 $config_files
14287
14288 Configuration headers:
14289 $config_headers
14290
14291 Configuration commands:
14292 $config_commands
14293
14294 Report bugs to the package provider."
14295
14296 _ACEOF
14297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14298 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14299 ac_cs_version="\\
14300 config.status
14301 configured by $0, generated by GNU Autoconf 2.69,
14302 with options \\"\$ac_cs_config\\"
14303
14304 Copyright (C) 2012 Free Software Foundation, Inc.
14305 This config.status script is free software; the Free Software Foundation
14306 gives unlimited permission to copy, distribute and modify it."
14307
14308 ac_pwd='$ac_pwd'
14309 srcdir='$srcdir'
14310 INSTALL='$INSTALL'
14311 MKDIR_P='$MKDIR_P'
14312 AWK='$AWK'
14313 test -n "\$AWK" || AWK=awk
14314 _ACEOF
14315
14316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14317 # The default lists apply if the user does not specify any file.
14318 ac_need_defaults=:
14319 while test $# != 0
14320 do
14321 case $1 in
14322 --*=?*)
14323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14325 ac_shift=:
14326 ;;
14327 --*=)
14328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14329 ac_optarg=
14330 ac_shift=:
14331 ;;
14332 *)
14333 ac_option=$1
14334 ac_optarg=$2
14335 ac_shift=shift
14336 ;;
14337 esac
14338
14339 case $ac_option in
14340 # Handling of the options.
14341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14342 ac_cs_recheck=: ;;
14343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14344 $as_echo "$ac_cs_version"; exit ;;
14345 --config | --confi | --conf | --con | --co | --c )
14346 $as_echo "$ac_cs_config"; exit ;;
14347 --debug | --debu | --deb | --de | --d | -d )
14348 debug=: ;;
14349 --file | --fil | --fi | --f )
14350 $ac_shift
14351 case $ac_optarg in
14352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14353 '') as_fn_error $? "missing file argument" ;;
14354 esac
14355 as_fn_append CONFIG_FILES " '$ac_optarg'"
14356 ac_need_defaults=false;;
14357 --header | --heade | --head | --hea )
14358 $ac_shift
14359 case $ac_optarg in
14360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14361 esac
14362 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14363 ac_need_defaults=false;;
14364 --he | --h)
14365 # Conflict between --help and --header
14366 as_fn_error $? "ambiguous option: \`$1'
14367 Try \`$0 --help' for more information.";;
14368 --help | --hel | -h )
14369 $as_echo "$ac_cs_usage"; exit ;;
14370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14372 ac_cs_silent=: ;;
14373
14374 # This is an error.
14375 -*) as_fn_error $? "unrecognized option: \`$1'
14376 Try \`$0 --help' for more information." ;;
14377
14378 *) as_fn_append ac_config_targets " $1"
14379 ac_need_defaults=false ;;
14380
14381 esac
14382 shift
14383 done
14384
14385 ac_configure_extra_args=
14386
14387 if $ac_cs_silent; then
14388 exec 6>/dev/null
14389 ac_configure_extra_args="$ac_configure_extra_args --silent"
14390 fi
14391
14392 _ACEOF
14393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14394 if \$ac_cs_recheck; then
14395 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14396 shift
14397 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14398 CONFIG_SHELL='$SHELL'
14399 export CONFIG_SHELL
14400 exec "\$@"
14401 fi
14402
14403 _ACEOF
14404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14405 exec 5>>config.log
14406 {
14407 echo
14408 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14409 ## Running $as_me. ##
14410 _ASBOX
14411 $as_echo "$ac_log"
14412 } >&5
14413
14414 _ACEOF
14415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14416 #
14417 # INIT-COMMANDS
14418 #
14419 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14420 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14421 # from automake < 1.5.
14422 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14423 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14424 LINGUAS="${LINGUAS-%UNSET%}"
14425
14426
14427 _ACEOF
14428
14429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14430
14431 # Handling of arguments.
14432 for ac_config_target in $ac_config_targets
14433 do
14434 case $ac_config_target in
14435 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14436 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14437 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14438
14439 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14440 esac
14441 done
14442
14443
14444 # If the user did not use the arguments to specify the items to instantiate,
14445 # then the envvar interface is used. Set only those that are not.
14446 # We use the long form for the default assignment because of an extremely
14447 # bizarre bug on SunOS 4.1.3.
14448 if $ac_need_defaults; then
14449 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14450 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14451 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14452 fi
14453
14454 # Have a temporary directory for convenience. Make it in the build tree
14455 # simply because there is no reason against having it here, and in addition,
14456 # creating and moving files from /tmp can sometimes cause problems.
14457 # Hook for its removal unless debugging.
14458 # Note that there is a small window in which the directory will not be cleaned:
14459 # after its creation but before its name has been assigned to `$tmp'.
14460 $debug ||
14461 {
14462 tmp= ac_tmp=
14463 trap 'exit_status=$?
14464 : "${ac_tmp:=$tmp}"
14465 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14466 ' 0
14467 trap 'as_fn_exit 1' 1 2 13 15
14468 }
14469 # Create a (secure) tmp directory for tmp files.
14470
14471 {
14472 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14473 test -d "$tmp"
14474 } ||
14475 {
14476 tmp=./conf$$-$RANDOM
14477 (umask 077 && mkdir "$tmp")
14478 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14479 ac_tmp=$tmp
14480
14481 # Set up the scripts for CONFIG_FILES section.
14482 # No need to generate them if there are no CONFIG_FILES.
14483 # This happens for instance with `./config.status config.h'.
14484 if test -n "$CONFIG_FILES"; then
14485
14486 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14487 ac_cs_awk_getline=:
14488 ac_cs_awk_pipe_init=
14489 ac_cs_awk_read_file='
14490 while ((getline aline < (F[key])) > 0)
14491 print(aline)
14492 close(F[key])'
14493 ac_cs_awk_pipe_fini=
14494 else
14495 ac_cs_awk_getline=false
14496 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14497 ac_cs_awk_read_file='
14498 print "|#_!!_#|"
14499 print "cat " F[key] " &&"
14500 '$ac_cs_awk_pipe_init
14501 # The final `:' finishes the AND list.
14502 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14503 fi
14504 ac_cr=`echo X | tr X '\015'`
14505 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14506 # But we know of no other shell where ac_cr would be empty at this
14507 # point, so we can use a bashism as a fallback.
14508 if test "x$ac_cr" = x; then
14509 eval ac_cr=\$\'\\r\'
14510 fi
14511 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14512 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14513 ac_cs_awk_cr='\\r'
14514 else
14515 ac_cs_awk_cr=$ac_cr
14516 fi
14517
14518 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14519 _ACEOF
14520
14521 # Create commands to substitute file output variables.
14522 {
14523 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14524 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14525 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14526 echo "_ACAWK" &&
14527 echo "_ACEOF"
14528 } >conf$$files.sh &&
14529 . ./conf$$files.sh ||
14530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14531 rm -f conf$$files.sh
14532
14533 {
14534 echo "cat >conf$$subs.awk <<_ACEOF" &&
14535 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14536 echo "_ACEOF"
14537 } >conf$$subs.sh ||
14538 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14539 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14540 ac_delim='%!_!# '
14541 for ac_last_try in false false false false false :; do
14542 . ./conf$$subs.sh ||
14543 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14544
14545 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14546 if test $ac_delim_n = $ac_delim_num; then
14547 break
14548 elif $ac_last_try; then
14549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14550 else
14551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14552 fi
14553 done
14554 rm -f conf$$subs.sh
14555
14556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14557 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14558 _ACEOF
14559 sed -n '
14560 h
14561 s/^/S["/; s/!.*/"]=/
14562 p
14563 g
14564 s/^[^!]*!//
14565 :repl
14566 t repl
14567 s/'"$ac_delim"'$//
14568 t delim
14569 :nl
14570 h
14571 s/\(.\{148\}\)..*/\1/
14572 t more1
14573 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14574 p
14575 n
14576 b repl
14577 :more1
14578 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14579 p
14580 g
14581 s/.\{148\}//
14582 t nl
14583 :delim
14584 h
14585 s/\(.\{148\}\)..*/\1/
14586 t more2
14587 s/["\\]/\\&/g; s/^/"/; s/$/"/
14588 p
14589 b
14590 :more2
14591 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14592 p
14593 g
14594 s/.\{148\}//
14595 t delim
14596 ' <conf$$subs.awk | sed '
14597 /^[^""]/{
14598 N
14599 s/\n//
14600 }
14601 ' >>$CONFIG_STATUS || ac_write_fail=1
14602 rm -f conf$$subs.awk
14603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14604 _ACAWK
14605 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14606 for (key in S) S_is_set[key] = 1
14607 FS = "\a"
14608 \$ac_cs_awk_pipe_init
14609 }
14610 {
14611 line = $ 0
14612 nfields = split(line, field, "@")
14613 substed = 0
14614 len = length(field[1])
14615 for (i = 2; i < nfields; i++) {
14616 key = field[i]
14617 keylen = length(key)
14618 if (S_is_set[key]) {
14619 value = S[key]
14620 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14621 len += length(value) + length(field[++i])
14622 substed = 1
14623 } else
14624 len += 1 + keylen
14625 }
14626 if (nfields == 3 && !substed) {
14627 key = field[2]
14628 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14629 \$ac_cs_awk_read_file
14630 next
14631 }
14632 }
14633 print line
14634 }
14635 \$ac_cs_awk_pipe_fini
14636 _ACAWK
14637 _ACEOF
14638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14639 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14640 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14641 else
14642 cat
14643 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14644 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14645 _ACEOF
14646
14647 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14648 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14649 # trailing colons and then remove the whole line if VPATH becomes empty
14650 # (actually we leave an empty line to preserve line numbers).
14651 if test "x$srcdir" = x.; then
14652 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14653 h
14654 s///
14655 s/^/:/
14656 s/[ ]*$/:/
14657 s/:\$(srcdir):/:/g
14658 s/:\${srcdir}:/:/g
14659 s/:@srcdir@:/:/g
14660 s/^:*//
14661 s/:*$//
14662 x
14663 s/\(=[ ]*\).*/\1/
14664 G
14665 s/\n//
14666 s/^[^=]*=[ ]*$//
14667 }'
14668 fi
14669
14670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14671 fi # test -n "$CONFIG_FILES"
14672
14673 # Set up the scripts for CONFIG_HEADERS section.
14674 # No need to generate them if there are no CONFIG_HEADERS.
14675 # This happens for instance with `./config.status Makefile'.
14676 if test -n "$CONFIG_HEADERS"; then
14677 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14678 BEGIN {
14679 _ACEOF
14680
14681 # Transform confdefs.h into an awk script `defines.awk', embedded as
14682 # here-document in config.status, that substitutes the proper values into
14683 # config.h.in to produce config.h.
14684
14685 # Create a delimiter string that does not exist in confdefs.h, to ease
14686 # handling of long lines.
14687 ac_delim='%!_!# '
14688 for ac_last_try in false false :; do
14689 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14690 if test -z "$ac_tt"; then
14691 break
14692 elif $ac_last_try; then
14693 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14694 else
14695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14696 fi
14697 done
14698
14699 # For the awk script, D is an array of macro values keyed by name,
14700 # likewise P contains macro parameters if any. Preserve backslash
14701 # newline sequences.
14702
14703 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14704 sed -n '
14705 s/.\{148\}/&'"$ac_delim"'/g
14706 t rset
14707 :rset
14708 s/^[ ]*#[ ]*define[ ][ ]*/ /
14709 t def
14710 d
14711 :def
14712 s/\\$//
14713 t bsnl
14714 s/["\\]/\\&/g
14715 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14716 D["\1"]=" \3"/p
14717 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14718 d
14719 :bsnl
14720 s/["\\]/\\&/g
14721 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14722 D["\1"]=" \3\\\\\\n"\\/p
14723 t cont
14724 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14725 t cont
14726 d
14727 :cont
14728 n
14729 s/.\{148\}/&'"$ac_delim"'/g
14730 t clear
14731 :clear
14732 s/\\$//
14733 t bsnlc
14734 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14735 d
14736 :bsnlc
14737 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14738 b cont
14739 ' <confdefs.h | sed '
14740 s/'"$ac_delim"'/"\\\
14741 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14742
14743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14744 for (key in D) D_is_set[key] = 1
14745 FS = "\a"
14746 }
14747 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14748 line = \$ 0
14749 split(line, arg, " ")
14750 if (arg[1] == "#") {
14751 defundef = arg[2]
14752 mac1 = arg[3]
14753 } else {
14754 defundef = substr(arg[1], 2)
14755 mac1 = arg[2]
14756 }
14757 split(mac1, mac2, "(") #)
14758 macro = mac2[1]
14759 prefix = substr(line, 1, index(line, defundef) - 1)
14760 if (D_is_set[macro]) {
14761 # Preserve the white space surrounding the "#".
14762 print prefix "define", macro P[macro] D[macro]
14763 next
14764 } else {
14765 # Replace #undef with comments. This is necessary, for example,
14766 # in the case of _POSIX_SOURCE, which is predefined and required
14767 # on some systems where configure will not decide to define it.
14768 if (defundef == "undef") {
14769 print "/*", prefix defundef, macro, "*/"
14770 next
14771 }
14772 }
14773 }
14774 { print }
14775 _ACAWK
14776 _ACEOF
14777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14778 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14779 fi # test -n "$CONFIG_HEADERS"
14780
14781
14782 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14783 shift
14784 for ac_tag
14785 do
14786 case $ac_tag in
14787 :[FHLC]) ac_mode=$ac_tag; continue;;
14788 esac
14789 case $ac_mode$ac_tag in
14790 :[FHL]*:*);;
14791 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14792 :[FH]-) ac_tag=-:-;;
14793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14794 esac
14795 ac_save_IFS=$IFS
14796 IFS=:
14797 set x $ac_tag
14798 IFS=$ac_save_IFS
14799 shift
14800 ac_file=$1
14801 shift
14802
14803 case $ac_mode in
14804 :L) ac_source=$1;;
14805 :[FH])
14806 ac_file_inputs=
14807 for ac_f
14808 do
14809 case $ac_f in
14810 -) ac_f="$ac_tmp/stdin";;
14811 *) # Look for the file first in the build tree, then in the source tree
14812 # (if the path is not absolute). The absolute path cannot be DOS-style,
14813 # because $ac_f cannot contain `:'.
14814 test -f "$ac_f" ||
14815 case $ac_f in
14816 [\\/$]*) false;;
14817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14818 esac ||
14819 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14820 esac
14821 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14822 as_fn_append ac_file_inputs " '$ac_f'"
14823 done
14824
14825 # Let's still pretend it is `configure' which instantiates (i.e., don't
14826 # use $as_me), people would be surprised to read:
14827 # /* config.h. Generated by config.status. */
14828 configure_input='Generated from '`
14829 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14830 `' by configure.'
14831 if test x"$ac_file" != x-; then
14832 configure_input="$ac_file. $configure_input"
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14834 $as_echo "$as_me: creating $ac_file" >&6;}
14835 fi
14836 # Neutralize special characters interpreted by sed in replacement strings.
14837 case $configure_input in #(
14838 *\&* | *\|* | *\\* )
14839 ac_sed_conf_input=`$as_echo "$configure_input" |
14840 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14841 *) ac_sed_conf_input=$configure_input;;
14842 esac
14843
14844 case $ac_tag in
14845 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14847 esac
14848 ;;
14849 esac
14850
14851 ac_dir=`$as_dirname -- "$ac_file" ||
14852 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14853 X"$ac_file" : 'X\(//\)[^/]' \| \
14854 X"$ac_file" : 'X\(//\)$' \| \
14855 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14856 $as_echo X"$ac_file" |
14857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14858 s//\1/
14859 q
14860 }
14861 /^X\(\/\/\)[^/].*/{
14862 s//\1/
14863 q
14864 }
14865 /^X\(\/\/\)$/{
14866 s//\1/
14867 q
14868 }
14869 /^X\(\/\).*/{
14870 s//\1/
14871 q
14872 }
14873 s/.*/./; q'`
14874 as_dir="$ac_dir"; as_fn_mkdir_p
14875 ac_builddir=.
14876
14877 case "$ac_dir" in
14878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14879 *)
14880 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14881 # A ".." for each directory in $ac_dir_suffix.
14882 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14883 case $ac_top_builddir_sub in
14884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14886 esac ;;
14887 esac
14888 ac_abs_top_builddir=$ac_pwd
14889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14890 # for backward compatibility:
14891 ac_top_builddir=$ac_top_build_prefix
14892
14893 case $srcdir in
14894 .) # We are building in place.
14895 ac_srcdir=.
14896 ac_top_srcdir=$ac_top_builddir_sub
14897 ac_abs_top_srcdir=$ac_pwd ;;
14898 [\\/]* | ?:[\\/]* ) # Absolute name.
14899 ac_srcdir=$srcdir$ac_dir_suffix;
14900 ac_top_srcdir=$srcdir
14901 ac_abs_top_srcdir=$srcdir ;;
14902 *) # Relative name.
14903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14904 ac_top_srcdir=$ac_top_build_prefix$srcdir
14905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14906 esac
14907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14908
14909
14910 case $ac_mode in
14911 :F)
14912 #
14913 # CONFIG_FILE
14914 #
14915
14916 case $INSTALL in
14917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14918 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14919 esac
14920 ac_MKDIR_P=$MKDIR_P
14921 case $MKDIR_P in
14922 [\\/$]* | ?:[\\/]* ) ;;
14923 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14924 esac
14925 _ACEOF
14926
14927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14928 # If the template does not know about datarootdir, expand it.
14929 # FIXME: This hack should be removed a few years after 2.60.
14930 ac_datarootdir_hack=; ac_datarootdir_seen=
14931 ac_sed_dataroot='
14932 /datarootdir/ {
14933 p
14934 q
14935 }
14936 /@datadir@/p
14937 /@docdir@/p
14938 /@infodir@/p
14939 /@localedir@/p
14940 /@mandir@/p'
14941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14942 *datarootdir*) ac_datarootdir_seen=yes;;
14943 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14945 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14946 _ACEOF
14947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14948 ac_datarootdir_hack='
14949 s&@datadir@&$datadir&g
14950 s&@docdir@&$docdir&g
14951 s&@infodir@&$infodir&g
14952 s&@localedir@&$localedir&g
14953 s&@mandir@&$mandir&g
14954 s&\\\${datarootdir}&$datarootdir&g' ;;
14955 esac
14956 _ACEOF
14957
14958 # Neutralize VPATH when `$srcdir' = `.'.
14959 # Shell code in configure.ac might set extrasub.
14960 # FIXME: do we really want to maintain this feature?
14961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14962 ac_sed_extra="$ac_vpsub
14963 $extrasub
14964 _ACEOF
14965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14966 :t
14967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14968 s|@configure_input@|$ac_sed_conf_input|;t t
14969 s&@top_builddir@&$ac_top_builddir_sub&;t t
14970 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14971 s&@srcdir@&$ac_srcdir&;t t
14972 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14973 s&@top_srcdir@&$ac_top_srcdir&;t t
14974 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14975 s&@builddir@&$ac_builddir&;t t
14976 s&@abs_builddir@&$ac_abs_builddir&;t t
14977 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14978 s&@INSTALL@&$ac_INSTALL&;t t
14979 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14980 $ac_datarootdir_hack
14981 "
14982 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14983 if $ac_cs_awk_getline; then
14984 $AWK -f "$ac_tmp/subs.awk"
14985 else
14986 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14987 fi \
14988 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14989
14990 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14991 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14992 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14993 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14995 which seems to be undefined. Please make sure it is defined" >&5
14996 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14997 which seems to be undefined. Please make sure it is defined" >&2;}
14998
14999 rm -f "$ac_tmp/stdin"
15000 case $ac_file in
15001 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15002 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15003 esac \
15004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15005 ;;
15006 :H)
15007 #
15008 # CONFIG_HEADER
15009 #
15010 if test x"$ac_file" != x-; then
15011 {
15012 $as_echo "/* $configure_input */" \
15013 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15014 } >"$ac_tmp/config.h" \
15015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15016 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15018 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15019 else
15020 rm -f "$ac_file"
15021 mv "$ac_tmp/config.h" "$ac_file" \
15022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15023 fi
15024 else
15025 $as_echo "/* $configure_input */" \
15026 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15027 || as_fn_error $? "could not create -" "$LINENO" 5
15028 fi
15029 ;;
15030
15031 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15032 $as_echo "$as_me: executing $ac_file commands" >&6;}
15033 ;;
15034 esac
15035
15036
15037 case $ac_file$ac_mode in
15038 "po-directories":C)
15039 for ac_file in $CONFIG_FILES; do
15040 # Support "outfile[:infile[:infile...]]"
15041 case "$ac_file" in
15042 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15043 esac
15044 # PO directories have a Makefile.in generated from Makefile.in.in.
15045 case "$ac_file" in */Makefile.in)
15046 # Adjust a relative srcdir.
15047 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15048 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15049 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15050 # In autoconf-2.13 it is called $ac_given_srcdir.
15051 # In autoconf-2.50 it is called $srcdir.
15052 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15053 case "$ac_given_srcdir" in
15054 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15055 /*) top_srcdir="$ac_given_srcdir" ;;
15056 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15057 esac
15058 # Treat a directory as a PO directory if and only if it has a
15059 # POTFILES.in file. This allows packages to have multiple PO
15060 # directories under different names or in different locations.
15061 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15062 rm -f "$ac_dir/POTFILES"
15063 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15064 gt_tab=`printf '\t'`
15065 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"
15066 POMAKEFILEDEPS="POTFILES.in"
15067 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15068 # on $ac_dir but don't depend on user-specified configuration
15069 # parameters.
15070 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15071 # The LINGUAS file contains the set of available languages.
15072 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15073 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15074 fi
15075 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15076 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15077 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15078 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15079 else
15080 # The set of available languages was given in configure.in.
15081 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15082 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15083 fi
15084 # Compute POFILES
15085 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15086 # Compute UPDATEPOFILES
15087 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15088 # Compute DUMMYPOFILES
15089 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15090 # Compute GMOFILES
15091 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15092 case "$ac_given_srcdir" in
15093 .) srcdirpre= ;;
15094 *) srcdirpre='$(srcdir)/' ;;
15095 esac
15096 POFILES=
15097 UPDATEPOFILES=
15098 DUMMYPOFILES=
15099 GMOFILES=
15100 for lang in $ALL_LINGUAS; do
15101 POFILES="$POFILES $srcdirpre$lang.po"
15102 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15103 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15104 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15105 done
15106 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15107 # environment variable.
15108 INST_LINGUAS=
15109 if test -n "$ALL_LINGUAS"; then
15110 for presentlang in $ALL_LINGUAS; do
15111 useit=no
15112 if test "%UNSET%" != "$LINGUAS"; then
15113 desiredlanguages="$LINGUAS"
15114 else
15115 desiredlanguages="$ALL_LINGUAS"
15116 fi
15117 for desiredlang in $desiredlanguages; do
15118 # Use the presentlang catalog if desiredlang is
15119 # a. equal to presentlang, or
15120 # b. a variant of presentlang (because in this case,
15121 # presentlang can be used as a fallback for messages
15122 # which are not translated in the desiredlang catalog).
15123 case "$desiredlang" in
15124 "$presentlang"*) useit=yes;;
15125 esac
15126 done
15127 if test $useit = yes; then
15128 INST_LINGUAS="$INST_LINGUAS $presentlang"
15129 fi
15130 done
15131 fi
15132 CATALOGS=
15133 if test -n "$INST_LINGUAS"; then
15134 for lang in $INST_LINGUAS; do
15135 CATALOGS="$CATALOGS $lang.gmo"
15136 done
15137 fi
15138 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15139 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"
15140 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15141 if test -f "$f"; then
15142 case "$f" in
15143 *.orig | *.bak | *~) ;;
15144 *) cat "$f" >> "$ac_dir/Makefile" ;;
15145 esac
15146 fi
15147 done
15148 fi
15149 ;;
15150 esac
15151 done ;;
15152
15153 esac
15154 done # for ac_tag
15155
15156
15157 as_fn_exit 0
15158 _ACEOF
15159 ac_clean_files=$ac_clean_files_save
15160
15161 test $ac_write_fail = 0 ||
15162 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15163
15164
15165 # configure is writing to config.log, and then calls config.status.
15166 # config.status does its own redirection, appending to config.log.
15167 # Unfortunately, on DOS this fails, as config.log is still kept open
15168 # by configure, so config.status won't be able to write to it; its
15169 # output is simply discarded. So we exec the FD to /dev/null,
15170 # effectively closing config.log, so it can be properly (re)opened and
15171 # appended to by config.status. When coming back to configure, we
15172 # need to make the FD available again.
15173 if test "$no_create" != yes; then
15174 ac_cs_success=:
15175 ac_config_status_args=
15176 test "$silent" = yes &&
15177 ac_config_status_args="$ac_config_status_args --quiet"
15178 exec 5>/dev/null
15179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15180 exec 5>>config.log
15181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15182 # would make configure fail if this is the last instruction.
15183 $ac_cs_success || as_fn_exit 1
15184 fi
15185 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15187 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15188 fi
15189
15190 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi