]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - configure
Shorten compile commands run by the build system
[thirdparty/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="version.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 LIBOBJS
597 BUILD_LDFLAGS
598 BUILD_CFLAGS
599 INCLUDES
600 DO_TEST_SUITE
601 ET_DIR
602 SS_DIR
603 LDFLAG_STATIC
604 root_sysconfdir
605 root_libdir
606 root_sbindir
607 root_bindir
608 root_prefix
609 UNIX_CMT
610 CYGWIN_CMT
611 LINUX_CMT
612 UNI_DIFF_OPTS
613 SEM_INIT_LIB
614 SOCKET_LIB
615 SIZEOF_LONG_LONG
616 SIZEOF_LONG
617 SIZEOF_INT
618 SIZEOF_SHORT
619 BUILD_CC
620 MAKEINFO
621 STRIP
622 AR
623 LDCONFIG
624 PERL
625 SED
626 AWK
627 CHMOD
628 RM
629 CP
630 MV
631 LN_S
632 LN
633 ifNotGNUmake
634 ifGNUmake
635 BINARY_TYPE
636 POSUB
637 LTLIBINTL
638 LIBINTL
639 INTLLIBS
640 INTL_LIBTOOL_SUFFIX_PREFIX
641 INTLOBJS
642 GENCAT
643 INSTOBJEXT
644 DATADIRNAME
645 CATOBJEXT
646 USE_INCLUDED_LIBINTL
647 BUILD_INCLUDED_LIBINTL
648 INTLBISON
649 LTLIBICONV
650 LIBICONV
651 HAVE_WPRINTF
652 HAVE_SNPRINTF
653 HAVE_ASPRINTF
654 HAVE_POSIX_PRINTF
655 GLIBC21
656 ALLOCA
657 EGREP
658 GREP
659 RANLIB
660 MSGMERGE
661 XGETTEXT
662 GMSGFMT
663 MSGFMT
664 USE_NLS
665 MKINSTALLDIRS
666 INSTALL_DATA
667 INSTALL_SCRIPT
668 INSTALL_PROGRAM
669 SET_MAKE
670 VERSION
671 PACKAGE
672 GETTEXT_PACKAGE
673 UUIDD_CMT
674 E2INITRD_MAN
675 E2INITRD_PROG
676 FSCK_MAN
677 FSCK_PROG
678 DEFRAG_CMT
679 RESIZER_CMT
680 IMAGER_CMT
681 DEBUGFS_CMT
682 QUOTA_CMT
683 DEPPROFILED_LIBQUOTA
684 PROFILED_LIBQUOTA
685 DEPSTATIC_LIBQUOTA
686 STATIC_LIBQUOTA
687 DEPLIBQUOTA
688 LIBQUOTA
689 BLKID_CMT
690 DEPPROFILED_LIBBLKID
691 PROFILED_LIBBLKID
692 DEPSTATIC_LIBBLKID
693 STATIC_LIBBLKID
694 DEPLIBBLKID
695 LIBBLKID
696 UUID_CMT
697 DEPPROFILED_LIBUUID
698 PROFILED_LIBUUID
699 DEPSTATIC_LIBUUID
700 STATIC_LIBUUID
701 DEPLIBUUID
702 LIBUUID
703 PKG_CONFIG
704 TEST_IO_CMT
705 PRIVATE_LIBS_CMT
706 LDFLAG_DYNAMIC
707 PROFILED_LIB_EXT
708 STATIC_LIB_EXT
709 LIB_EXT
710 CHECKER_CMT
711 PROFILE_CMT
712 BSDLIB_CMT
713 ELF_CMT
714 HTREE_CMT
715 Q
716 E
717 LINK_BUILD_FLAGS
718 LINK_INSTALL_FLAGS
719 MAINTAINER_CMT
720 CPP
721 RDYNAMIC
722 DLOPEN_LIB
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 E2FSPROGS_PKGVER
739 E2FSPROGS_VERSION
740 E2FSPROGS_DAY
741 E2FSPROGS_MONTH
742 E2FSPROGS_YEAR
743 target_alias
744 host_alias
745 build_alias
746 LIBS
747 ECHO_T
748 ECHO_N
749 ECHO_C
750 DEFS
751 mandir
752 localedir
753 libdir
754 psdir
755 pdfdir
756 dvidir
757 htmldir
758 infodir
759 docdir
760 oldincludedir
761 includedir
762 localstatedir
763 sharedstatedir
764 sysconfdir
765 datadir
766 datarootdir
767 libexecdir
768 sbindir
769 bindir
770 program_transform_name
771 prefix
772 exec_prefix
773 PACKAGE_URL
774 PACKAGE_BUGREPORT
775 PACKAGE_STRING
776 PACKAGE_VERSION
777 PACKAGE_TARNAME
778 PACKAGE_NAME
779 PATH_SEPARATOR
780 SHELL'
781 ac_subst_files='MCONFIG
782 MAKEFILE_ELF
783 MAKEFILE_BSDLIB
784 MAKEFILE_PROFILE
785 MAKEFILE_CHECKER
786 MAKEFILE_LIBRARY
787 ASM_TYPES_HEADER
788 PUBLIC_CONFIG_HEADER'
789 ac_user_opts='
790 enable_option_checking
791 with_diet_libc
792 with_cc
793 with_ccopts
794 with_ldopts
795 with_root_prefix
796 enable_maintainer_mode
797 enable_symlink_install
798 enable_symlink_build
799 enable_verbose_makecmds
800 enable_compression
801 enable_htree
802 enable_elf_shlibs
803 enable_bsd_shlibs
804 enable_profile
805 enable_checker
806 enable_jbd_debug
807 enable_blkid_debug
808 enable_testio_debug
809 enable_libuuid
810 enable_libblkid
811 enable_libquota
812 enable_debugfs
813 enable_imager
814 enable_resizer
815 enable_defrag
816 enable_fsck
817 enable_e2initrd_helper
818 enable_tls
819 enable_uuidd
820 enable_nls
821 with_gnu_ld
822 enable_rpath
823 with_libiconv_prefix
824 with_included_gettext
825 with_libintl_prefix
826 '
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CC
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
835 CPP
836 PKG_CONFIG'
837
838
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
860
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
886
887 ac_prev=
888 ac_dashdash=
889 for ac_option
890 do
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
894 ac_prev=
895 continue
896 fi
897
898 case $ac_option in
899 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *) ac_optarg=yes ;;
901 esac
902
903 # Accept the important Cygnus configure options, so we can diagnose typos.
904
905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
908
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
913
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
928
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
933
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
966
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1002
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1007
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1037
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1054
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1075
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1111
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
1130 sbindir=$ac_optarg ;;
1131
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
1141 sharedstatedir=$ac_optarg ;;
1142
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
1146 site=$ac_optarg ;;
1147
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1152
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1159
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1164
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1167
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1170
1171 -with-* | --with-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1186
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
1202
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1206
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1213
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1220
1221 -*) as_fn_error "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information."
1223 ;;
1224
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1231 esac
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1234
1235 *)
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1241 ;;
1242
1243 esac
1244 done
1245
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error "missing argument to $ac_option"
1249 fi
1250
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
1254 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1257 fi
1258
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1264 do
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1279
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1286
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1292 If a cross compiler is detected then cross compile mode will be used." >&2
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1342 fi
1343 else
1344 ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures this package to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1432
1433 cat <<\_ACEOF
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-maintainer-mode enable makefile rules useful for maintainers
1450 --enable-symlink-install use symlinks when installing instead of hard links
1451 --enable-symlink-build use symlinks while building instead of hard links
1452 --enable-verbose-makecmds enable verbose make command output
1453 --enable-compression enable EXPERIMENTAL compression support
1454 --enable-htree enable EXPERIMENTAL htree directory support
1455 --enable-elf-shlibs select ELF shared libraries
1456 --enable-bsd-shlibs select BSD shared libraries
1457 --enable-profile build profiling libraries
1458 --enable-checker build checker libraries
1459 --enable-jbd-debug enable journal debugging
1460 --enable-blkid-debug enable blkid debugging
1461 --disable-testio-debug disable the use of the test I/O manager for debugging
1462 --disable-libuuid do not build private uuid library
1463 --disable-libblkid do not build private blkid library
1464 --disable-libquota do not build private quota library
1465 --disable-debugfs disable support of debugfs program
1466 --disable-imager disable support of e2image program
1467 --disable-resizer disable support of e2resize program
1468 --disable-defrag disable support of e4defrag program
1469 --enable-fsck build fsck wrapper program
1470 --enable-e2initrd-helper build e2initrd-helper program
1471 --disable-tls disable use of thread local support
1472 --disable-uuidd disable building the uuid daemon
1473 --disable-nls do not use Native Language Support
1474 --disable-rpath do not hardcode runtime library paths
1475
1476 Optional Packages:
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-diet-libc use diet libc
1480 --with-cc no longer supported, use CC= instead
1481 --with-ccopts no longer supported, use CFLAGS= instead
1482 --with-ldopts no longer supported, use LDFLAGS= instead
1483 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1484 --with-gnu-ld assume the C compiler uses GNU ld default=no
1485 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1486 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1487 --with-included-gettext use the GNU gettext library included here
1488 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1489 --without-libintl-prefix don't search for libintl in includedir and libdir
1490
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 CPP C preprocessor
1500 PKG_CONFIG path to pkg-config utility
1501
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1504
1505 Report bugs to the package provider.
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 continue
1516 ac_builddir=.
1517
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *)
1521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1533
1534 case $srcdir in
1535 .) # We are building in place.
1536 ac_srcdir=.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1558 else
1559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1562 done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 configure
1569 generated by GNU Autoconf 2.65
1570
1571 Copyright (C) 2009 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575 exit
1576 fi
1577
1578 ## ------------------------ ##
1579 ## Autoconf initialization. ##
1580 ## ------------------------ ##
1581
1582 # ac_fn_c_try_compile LINENO
1583 # --------------------------
1584 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_compile ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext
1589 if { { ac_try="$ac_compile"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_compile") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest.$ac_objext; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_compile
1619
1620 # ac_fn_c_try_link LINENO
1621 # -----------------------
1622 # Try to link conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_link ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext conftest$ac_exeext
1627 if { { ac_try="$ac_link"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_link") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest$ac_exeext && {
1646 test "$cross_compiling" = yes ||
1647 $as_test_x conftest$ac_exeext
1648 }; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655 fi
1656 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1657 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1658 # interfere with the next link command; also delete a directory that is
1659 # left behind by Apple's compiler. We do this before executing the actions.
1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662 as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_link
1665
1666 # ac_fn_c_try_cpp LINENO
1667 # ----------------------
1668 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669 ac_fn_c_try_cpp ()
1670 {
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_cpp conftest.$ac_ext"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } >/dev/null && {
1688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 }; then :
1691 ac_retval=0
1692 else
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697 fi
1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_cpp
1702
1703 # ac_fn_c_try_run LINENO
1704 # ----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706 # that executables *can* be run.
1707 ac_fn_c_try_run ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_link"
1711 case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721 { { case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_try") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; }; }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: program exited with status $ac_status" >&5
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=$ac_status
1738 fi
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_run
1744
1745 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1746 # -------------------------------------------
1747 # Tests whether TYPE exists after having included INCLUDES, setting cache
1748 # variable VAR accordingly.
1749 ac_fn_c_check_type ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 eval "$3=no"
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 $4
1761 int
1762 main ()
1763 {
1764 if (sizeof ($2))
1765 return 0;
1766 ;
1767 return 0;
1768 }
1769 _ACEOF
1770 if ac_fn_c_try_compile "$LINENO"; then :
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 $4
1774 int
1775 main ()
1776 {
1777 if (sizeof (($2)))
1778 return 0;
1779 ;
1780 return 0;
1781 }
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784
1785 else
1786 eval "$3=yes"
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796
1797 } # ac_fn_c_check_type
1798
1799 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists and can be compiled using the include files in
1802 # INCLUDES, setting the cache variable VAR accordingly.
1803 ac_fn_c_check_header_compile ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1810 else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 $4
1814 #include <$2>
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"; then :
1817 eval "$3=yes"
1818 else
1819 eval "$3=no"
1820 fi
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828 } # ac_fn_c_check_header_compile
1829
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1845 #define $2 innocuous_$2
1846
1847 /* System header to define __stub macros and hopefully few prototypes,
1848 which can conflict with char $2 (); below.
1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850 <limits.h> exists even on freestanding compilers. */
1851
1852 #ifdef __STDC__
1853 # include <limits.h>
1854 #else
1855 # include <assert.h>
1856 #endif
1857
1858 #undef $2
1859
1860 /* Override any GCC internal prototype to avoid an error.
1861 Use char because int might match the return type of a GCC
1862 builtin and then its argument prototype would still apply. */
1863 #ifdef __cplusplus
1864 extern "C"
1865 #endif
1866 char $2 ();
1867 /* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870 #if defined __stub_$2 || defined __stub___$2
1871 choke me
1872 #endif
1873
1874 int
1875 main ()
1876 {
1877 return $2 ();
1878 ;
1879 return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_link "$LINENO"; then :
1883 eval "$3=yes"
1884 else
1885 eval "$3=no"
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext \
1888 conftest$ac_exeext conftest.$ac_ext
1889 fi
1890 eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894
1895 } # ac_fn_c_check_func
1896
1897 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1900 # the include files in INCLUDES and setting the cache variable VAR
1901 # accordingly.
1902 ac_fn_c_check_header_mongrel ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1910 fi
1911 eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 else
1915 # Is the header compilable?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1917 $as_echo_n "checking $2 usability... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $4
1921 #include <$2>
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 ac_header_compiler=yes
1925 else
1926 ac_header_compiler=no
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1930 $as_echo "$ac_header_compiler" >&6; }
1931
1932 # Is the header present?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1934 $as_echo_n "checking $2 presence... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 #include <$2>
1938 _ACEOF
1939 if ac_fn_c_try_cpp "$LINENO"; then :
1940 ac_header_preproc=yes
1941 else
1942 ac_header_preproc=no
1943 fi
1944 rm -f conftest.err conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1946 $as_echo "$ac_header_preproc" >&6; }
1947
1948 # So? What about this header?
1949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1950 yes:no: )
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1952 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 ;;
1956 no:yes:* )
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1958 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1960 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1962 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1964 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1966 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 ;;
1968 esac
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1972 $as_echo_n "(cached) " >&6
1973 else
1974 eval "$3=\$ac_header_compiler"
1975 fi
1976 eval ac_res=\$$3
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979 fi
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981
1982 } # ac_fn_c_check_header_mongrel
1983
1984 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1985 # --------------------------------------------
1986 # Tries to find the compile-time value of EXPR in a program that includes
1987 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1988 # computed
1989 ac_fn_c_compute_int ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if test "$cross_compiling" = yes; then
1993 # Depending upon the size, compute the lo and hi bounds.
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 $4
1997 int
1998 main ()
1999 {
2000 static int test_array [1 - 2 * !(($2) >= 0)];
2001 test_array [0] = 0
2002
2003 ;
2004 return 0;
2005 }
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008 ac_lo=0 ac_mid=0
2009 while :; do
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $4
2013 int
2014 main ()
2015 {
2016 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2017 test_array [0] = 0
2018
2019 ;
2020 return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_hi=$ac_mid; break
2025 else
2026 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2027 if test $ac_lo -le $ac_mid; then
2028 ac_lo= ac_hi=
2029 break
2030 fi
2031 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 done
2035 else
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2038 $4
2039 int
2040 main ()
2041 {
2042 static int test_array [1 - 2 * !(($2) < 0)];
2043 test_array [0] = 0
2044
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 ac_hi=-1 ac_mid=-1
2051 while :; do
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 $4
2055 int
2056 main ()
2057 {
2058 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2059 test_array [0] = 0
2060
2061 ;
2062 return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066 ac_lo=$ac_mid; break
2067 else
2068 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2069 if test $ac_mid -le $ac_hi; then
2070 ac_lo= ac_hi=
2071 break
2072 fi
2073 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 done
2077 else
2078 ac_lo= ac_hi=
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 fi
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 # Binary search between lo and hi bounds.
2084 while test "x$ac_lo" != "x$ac_hi"; do
2085 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 $4
2089 int
2090 main ()
2091 {
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093 test_array [0] = 0
2094
2095 ;
2096 return 0;
2097 }
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_hi=$ac_mid
2101 else
2102 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 done
2106 case $ac_lo in #((
2107 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2108 '') ac_retval=1 ;;
2109 esac
2110 else
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2113 $4
2114 static long int longval () { return $2; }
2115 static unsigned long int ulongval () { return $2; }
2116 #include <stdio.h>
2117 #include <stdlib.h>
2118 int
2119 main ()
2120 {
2121
2122 FILE *f = fopen ("conftest.val", "w");
2123 if (! f)
2124 return 1;
2125 if (($2) < 0)
2126 {
2127 long int i = longval ();
2128 if (i != ($2))
2129 return 1;
2130 fprintf (f, "%ld", i);
2131 }
2132 else
2133 {
2134 unsigned long int i = ulongval ();
2135 if (i != ($2))
2136 return 1;
2137 fprintf (f, "%lu", i);
2138 }
2139 /* Do not output a trailing newline, as this causes \r\n confusion
2140 on some platforms. */
2141 return ferror (f) || fclose (f) != 0;
2142
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_run "$LINENO"; then :
2148 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2149 else
2150 ac_retval=1
2151 fi
2152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2153 conftest.$ac_objext conftest.beam conftest.$ac_ext
2154 rm -f conftest.val
2155
2156 fi
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2158 as_fn_set_status $ac_retval
2159
2160 } # ac_fn_c_compute_int
2161
2162 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2163 # ----------------------------------------------------
2164 # Tries to find if the field MEMBER exists in type AGGR, after including
2165 # INCLUDES, setting cache variable VAR accordingly.
2166 ac_fn_c_check_member ()
2167 {
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2170 $as_echo_n "checking for $2.$3... " >&6; }
2171 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2172 $as_echo_n "(cached) " >&6
2173 else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2176 $5
2177 int
2178 main ()
2179 {
2180 static $2 ac_aggr;
2181 if (ac_aggr.$3)
2182 return 0;
2183 ;
2184 return 0;
2185 }
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188 eval "$4=yes"
2189 else
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2192 $5
2193 int
2194 main ()
2195 {
2196 static $2 ac_aggr;
2197 if (sizeof ac_aggr.$3)
2198 return 0;
2199 ;
2200 return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 eval "$4=yes"
2205 else
2206 eval "$4=no"
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 fi
2212 eval ac_res=\$$4
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216
2217 } # ac_fn_c_check_member
2218
2219 # ac_fn_c_check_decl LINENO SYMBOL VAR
2220 # ------------------------------------
2221 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2222 ac_fn_c_check_decl ()
2223 {
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2226 $as_echo_n "checking whether $2 is declared... " >&6; }
2227 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2228 $as_echo_n "(cached) " >&6
2229 else
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2232 $4
2233 int
2234 main ()
2235 {
2236 #ifndef $2
2237 (void) $2;
2238 #endif
2239
2240 ;
2241 return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245 eval "$3=yes"
2246 else
2247 eval "$3=no"
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 fi
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255
2256 } # ac_fn_c_check_decl
2257 cat >config.log <<_ACEOF
2258 This file contains any messages produced by compilers while
2259 running configure, to aid debugging if configure makes a mistake.
2260
2261 It was created by $as_me, which was
2262 generated by GNU Autoconf 2.65. Invocation command line was
2263
2264 $ $0 $@
2265
2266 _ACEOF
2267 exec 5>>config.log
2268 {
2269 cat <<_ASUNAME
2270 ## --------- ##
2271 ## Platform. ##
2272 ## --------- ##
2273
2274 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279
2280 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2282
2283 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2284 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2285 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2287 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2288 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2289 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2290
2291 _ASUNAME
2292
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 $as_echo "PATH: $as_dir"
2299 done
2300 IFS=$as_save_IFS
2301
2302 } >&5
2303
2304 cat >&5 <<_ACEOF
2305
2306
2307 ## ----------- ##
2308 ## Core tests. ##
2309 ## ----------- ##
2310
2311 _ACEOF
2312
2313
2314 # Keep a trace of the command line.
2315 # Strip out --no-create and --no-recursion so they do not pile up.
2316 # Strip out --silent because we don't want to record it for future runs.
2317 # Also quote any args containing shell meta-characters.
2318 # Make two passes to allow for proper duplicate-argument suppression.
2319 ac_configure_args=
2320 ac_configure_args0=
2321 ac_configure_args1=
2322 ac_must_keep_next=false
2323 for ac_pass in 1 2
2324 do
2325 for ac_arg
2326 do
2327 case $ac_arg in
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2331 continue ;;
2332 *\'*)
2333 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334 esac
2335 case $ac_pass in
2336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2337 2)
2338 as_fn_append ac_configure_args1 " '$ac_arg'"
2339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2341 else
2342 case $ac_arg in
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 esac
2350 ;;
2351 -* ) ac_must_keep_next=true ;;
2352 esac
2353 fi
2354 as_fn_append ac_configure_args " '$ac_arg'"
2355 ;;
2356 esac
2357 done
2358 done
2359 { ac_configure_args0=; unset ac_configure_args0;}
2360 { ac_configure_args1=; unset ac_configure_args1;}
2361
2362 # When interrupted or exit'd, cleanup temporary files, and complete
2363 # config.log. We remove comments because anyway the quotes in there
2364 # would cause problems or look ugly.
2365 # WARNING: Use '\'' to represent an apostrophe within the trap.
2366 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367 trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2369 {
2370 echo
2371
2372 cat <<\_ASBOX
2373 ## ---------------- ##
2374 ## Cache variables. ##
2375 ## ---------------- ##
2376 _ASBOX
2377 echo
2378 # The following way of writing the cache mishandles newlines in values,
2379 (
2380 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2381 eval ac_val=\$$ac_var
2382 case $ac_val in #(
2383 *${as_nl}*)
2384 case $ac_var in #(
2385 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2386 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2387 esac
2388 case $ac_var in #(
2389 _ | IFS | as_nl) ;; #(
2390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2391 *) { eval $ac_var=; unset $ac_var;} ;;
2392 esac ;;
2393 esac
2394 done
2395 (set) 2>&1 |
2396 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2397 *${as_nl}ac_space=\ *)
2398 sed -n \
2399 "s/'\''/'\''\\\\'\'''\''/g;
2400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2401 ;; #(
2402 *)
2403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2404 ;;
2405 esac |
2406 sort
2407 )
2408 echo
2409
2410 cat <<\_ASBOX
2411 ## ----------------- ##
2412 ## Output variables. ##
2413 ## ----------------- ##
2414 _ASBOX
2415 echo
2416 for ac_var in $ac_subst_vars
2417 do
2418 eval ac_val=\$$ac_var
2419 case $ac_val in
2420 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421 esac
2422 $as_echo "$ac_var='\''$ac_val'\''"
2423 done | sort
2424 echo
2425
2426 if test -n "$ac_subst_files"; then
2427 cat <<\_ASBOX
2428 ## ------------------- ##
2429 ## File substitutions. ##
2430 ## ------------------- ##
2431 _ASBOX
2432 echo
2433 for ac_var in $ac_subst_files
2434 do
2435 eval ac_val=\$$ac_var
2436 case $ac_val in
2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438 esac
2439 $as_echo "$ac_var='\''$ac_val'\''"
2440 done | sort
2441 echo
2442 fi
2443
2444 if test -s confdefs.h; then
2445 cat <<\_ASBOX
2446 ## ----------- ##
2447 ## confdefs.h. ##
2448 ## ----------- ##
2449 _ASBOX
2450 echo
2451 cat confdefs.h
2452 echo
2453 fi
2454 test "$ac_signal" != 0 &&
2455 $as_echo "$as_me: caught signal $ac_signal"
2456 $as_echo "$as_me: exit $exit_status"
2457 } >&5
2458 rm -f core *.core core.conftest.* &&
2459 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2460 exit $exit_status
2461 ' 0
2462 for ac_signal in 1 2 13 15; do
2463 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2464 done
2465 ac_signal=0
2466
2467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2468 rm -f -r conftest* confdefs.h
2469
2470 $as_echo "/* confdefs.h */" > confdefs.h
2471
2472 # Predefined preprocessor variables.
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_NAME "$PACKAGE_NAME"
2476 _ACEOF
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2484 _ACEOF
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_STRING "$PACKAGE_STRING"
2488 _ACEOF
2489
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2492 _ACEOF
2493
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_URL "$PACKAGE_URL"
2496 _ACEOF
2497
2498
2499 # Let the site file select an alternate cache file if it wants to.
2500 # Prefer an explicitly selected file to automatically selected ones.
2501 ac_site_file1=NONE
2502 ac_site_file2=NONE
2503 if test -n "$CONFIG_SITE"; then
2504 ac_site_file1=$CONFIG_SITE
2505 elif test "x$prefix" != xNONE; then
2506 ac_site_file1=$prefix/share/config.site
2507 ac_site_file2=$prefix/etc/config.site
2508 else
2509 ac_site_file1=$ac_default_prefix/share/config.site
2510 ac_site_file2=$ac_default_prefix/etc/config.site
2511 fi
2512 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2513 do
2514 test "x$ac_site_file" = xNONE && continue
2515 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2517 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2518 sed 's/^/| /' "$ac_site_file" >&5
2519 . "$ac_site_file"
2520 fi
2521 done
2522
2523 if test -r "$cache_file"; then
2524 # Some versions of bash will fail to source /dev/null (special files
2525 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2526 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2528 $as_echo "$as_me: loading cache $cache_file" >&6;}
2529 case $cache_file in
2530 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2531 *) . "./$cache_file";;
2532 esac
2533 fi
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2536 $as_echo "$as_me: creating cache $cache_file" >&6;}
2537 >$cache_file
2538 fi
2539
2540 as_fn_append ac_header_list " stdlib.h"
2541 as_fn_append ac_header_list " unistd.h"
2542 as_fn_append ac_header_list " sys/param.h"
2543 # Check that the precious variables saved in the cache have kept the same
2544 # value.
2545 ac_cache_corrupted=false
2546 for ac_var in $ac_precious_vars; do
2547 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2548 eval ac_new_set=\$ac_env_${ac_var}_set
2549 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2550 eval ac_new_val=\$ac_env_${ac_var}_value
2551 case $ac_old_set,$ac_new_set in
2552 set,)
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2554 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2555 ac_cache_corrupted=: ;;
2556 ,set)
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2558 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2559 ac_cache_corrupted=: ;;
2560 ,);;
2561 *)
2562 if test "x$ac_old_val" != "x$ac_new_val"; then
2563 # differences in whitespace do not lead to failure.
2564 ac_old_val_w=`echo x $ac_old_val`
2565 ac_new_val_w=`echo x $ac_new_val`
2566 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2568 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2569 ac_cache_corrupted=:
2570 else
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2572 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2573 eval $ac_var=\$ac_old_val
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2576 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2578 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2579 fi;;
2580 esac
2581 # Pass precious variables to config.status.
2582 if test "$ac_new_set" = set; then
2583 case $ac_new_val in
2584 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2585 *) ac_arg=$ac_var=$ac_new_val ;;
2586 esac
2587 case " $ac_configure_args " in
2588 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2589 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2590 esac
2591 fi
2592 done
2593 if $ac_cache_corrupted; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2597 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2598 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2599 fi
2600 ## -------------------- ##
2601 ## Main body of script. ##
2602 ## -------------------- ##
2603
2604 ac_ext=c
2605 ac_cpp='$CPP $CPPFLAGS'
2606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609
2610
2611
2612 ac_aux_dir=
2613 for ac_dir in config "$srcdir"/config; do
2614 for ac_t in install-sh install.sh shtool; do
2615 if test -f "$ac_dir/$ac_t"; then
2616 ac_aux_dir=$ac_dir
2617 ac_install_sh="$ac_aux_dir/$ac_t -c"
2618 break 2
2619 fi
2620 done
2621 done
2622 if test -z "$ac_aux_dir"; then
2623 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2624 fi
2625
2626 # These three variables are undocumented and unsupported,
2627 # and are intended to be withdrawn in a future Autoconf release.
2628 # They can cause serious problems if a builder's source tree is in a directory
2629 # whose full name contains unusual characters.
2630 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2631 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2632 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2633
2634
2635 ac_config_headers="$ac_config_headers lib/config.h"
2636
2637
2638 MCONFIG=./MCONFIG
2639
2640 BINARY_TYPE=bin
2641 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2642 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2643 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2644 | tr \" " "`
2645 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2646 MONTH=`echo $DATE | awk -F- '{print $2}'`
2647 YEAR=`echo $DATE | awk -F- '{print $3}'`
2648
2649 if expr $YEAR ">" 1900 > /dev/null ; then
2650 E2FSPROGS_YEAR=$YEAR
2651 elif expr $YEAR ">" 90 >/dev/null ; then
2652 E2FSPROGS_YEAR=19$YEAR
2653 else
2654 E2FSPROGS_YEAR=20$YEAR
2655 fi
2656
2657 case $MONTH in
2658 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2659 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2660 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2661 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2662 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2663 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2664 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2665 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2666 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2667 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2668 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2669 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2670 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2671 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2672 esac
2673
2674 base_ver=`echo $E2FSPROGS_VERSION | \
2675 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2676
2677 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2678
2679 case $E2FSPROGS_VERSION in
2680 *-WIP|pre-*)
2681 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2682 ;;
2683 *)
2684 E2FSPROGS_PKGVER="$base_ver"
2685 ;;
2686 esac
2687
2688 unset DATE MONTH YEAR base_ver pre_vers date_spec
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2690 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2692 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2693
2694
2695
2696
2697
2698 # Make sure we can run config.sub.
2699 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2700 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2701
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2703 $as_echo_n "checking build system type... " >&6; }
2704 if test "${ac_cv_build+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 ac_build_alias=$build_alias
2708 test "x$ac_build_alias" = x &&
2709 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2710 test "x$ac_build_alias" = x &&
2711 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2712 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2713 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2714
2715 fi
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2717 $as_echo "$ac_cv_build" >&6; }
2718 case $ac_cv_build in
2719 *-*-*) ;;
2720 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2721 esac
2722 build=$ac_cv_build
2723 ac_save_IFS=$IFS; IFS='-'
2724 set x $ac_cv_build
2725 shift
2726 build_cpu=$1
2727 build_vendor=$2
2728 shift; shift
2729 # Remember, the first character of IFS is used to create $*,
2730 # except with old shells:
2731 build_os=$*
2732 IFS=$ac_save_IFS
2733 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2734
2735
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2737 $as_echo_n "checking host system type... " >&6; }
2738 if test "${ac_cv_host+set}" = set; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test "x$host_alias" = x; then
2742 ac_cv_host=$ac_cv_build
2743 else
2744 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2745 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2746 fi
2747
2748 fi
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2750 $as_echo "$ac_cv_host" >&6; }
2751 case $ac_cv_host in
2752 *-*-*) ;;
2753 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2754 esac
2755 host=$ac_cv_host
2756 ac_save_IFS=$IFS; IFS='-'
2757 set x $ac_cv_host
2758 shift
2759 host_cpu=$1
2760 host_vendor=$2
2761 shift; shift
2762 # Remember, the first character of IFS is used to create $*,
2763 # except with old shells:
2764 host_os=$*
2765 IFS=$ac_save_IFS
2766 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2767
2768
2769 DLOPEN_LIB=''
2770 ac_ext=c
2771 ac_cpp='$CPP $CPPFLAGS'
2772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if test "${ac_cv_prog_CC+set}" = set; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$CC"; then
2784 ac_cv_prog_CC="$CC" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 CC=$ac_cv_prog_CC
2804 if test -n "$CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806 $as_echo "$CC" >&6; }
2807 else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813 fi
2814 if test -z "$ac_cv_prog_CC"; then
2815 ac_ct_CC=$CC
2816 # Extract the first word of "gcc", so it can be a program name with args.
2817 set dummy gcc; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if test -n "$ac_ct_CC"; then
2824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_ac_ct_CC="gcc"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2844 if test -n "$ac_ct_CC"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2846 $as_echo "$ac_ct_CC" >&6; }
2847 else
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850 fi
2851
2852 if test "x$ac_ct_CC" = x; then
2853 CC=""
2854 else
2855 case $cross_compiling:$ac_tool_warned in
2856 yes:)
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2859 ac_tool_warned=yes ;;
2860 esac
2861 CC=$ac_ct_CC
2862 fi
2863 else
2864 CC="$ac_cv_prog_CC"
2865 fi
2866
2867 if test -z "$CC"; then
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}cc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if test "${ac_cv_prog_CC+set}" = set; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_CC="${ac_tool_prefix}cc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 fi
2907 fi
2908 if test -z "$CC"; then
2909 # Extract the first word of "cc", so it can be a program name with args.
2910 set dummy cc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 else
2919 ac_prog_rejected=no
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2928 ac_prog_rejected=yes
2929 continue
2930 fi
2931 ac_cv_prog_CC="cc"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935 done
2936 done
2937 IFS=$as_save_IFS
2938
2939 if test $ac_prog_rejected = yes; then
2940 # We found a bogon in the path, so make sure we never use it.
2941 set dummy $ac_cv_prog_CC
2942 shift
2943 if test $# != 0; then
2944 # We chose a different compiler from the bogus one.
2945 # However, it has the same basename, so the bogon will be chosen
2946 # first if we set CC to just the basename; use the full file name.
2947 shift
2948 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2949 fi
2950 fi
2951 fi
2952 fi
2953 CC=$ac_cv_prog_CC
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 if test -z "$CC"; then
2965 if test -n "$ac_tool_prefix"; then
2966 for ac_prog in cl.exe
2967 do
2968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005 test -n "$CC" && break
3006 done
3007 fi
3008 if test -z "$CC"; then
3009 ac_ct_CC=$CC
3010 for ac_prog in cl.exe
3011 do
3012 # Extract the first word of "$ac_prog", so it can be a program name with args.
3013 set dummy $ac_prog; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 if test -n "$ac_ct_CC"; then
3020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_ac_ct_CC="$ac_prog"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3032 fi
3033 done
3034 done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040 if test -n "$ac_ct_CC"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3042 $as_echo "$ac_ct_CC" >&6; }
3043 else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 fi
3047
3048
3049 test -n "$ac_ct_CC" && break
3050 done
3051
3052 if test "x$ac_ct_CC" = x; then
3053 CC=""
3054 else
3055 case $cross_compiling:$ac_tool_warned in
3056 yes:)
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3059 ac_tool_warned=yes ;;
3060 esac
3061 CC=$ac_ct_CC
3062 fi
3063 fi
3064
3065 fi
3066
3067
3068 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070 as_fn_error "no acceptable C compiler found in \$PATH
3071 See \`config.log' for more details." "$LINENO" 5; }
3072
3073 # Provide some information about the compiler.
3074 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3075 set X $ac_compile
3076 ac_compiler=$2
3077 for ac_option in --version -v -V -qversion; do
3078 { { ac_try="$ac_compiler $ac_option >&5"
3079 case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 $as_echo "$ac_try_echo"; } >&5
3085 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3086 ac_status=$?
3087 if test -s conftest.err; then
3088 sed '10a\
3089 ... rest of stderr output deleted ...
3090 10q' conftest.err >conftest.er1
3091 cat conftest.er1 >&5
3092 fi
3093 rm -f conftest.er1 conftest.err
3094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }
3096 done
3097
3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3100
3101 int
3102 main ()
3103 {
3104
3105 ;
3106 return 0;
3107 }
3108 _ACEOF
3109 ac_clean_files_save=$ac_clean_files
3110 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3111 # Try to create an executable without -o first, disregard a.out.
3112 # It will help us diagnose broken compilers, and finding out an intuition
3113 # of exeext.
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3115 $as_echo_n "checking whether the C compiler works... " >&6; }
3116 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3117
3118 # The possible output files:
3119 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3120
3121 ac_rmfiles=
3122 for ac_file in $ac_files
3123 do
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3127 esac
3128 done
3129 rm -f $ac_rmfiles
3130
3131 if { { ac_try="$ac_link_default"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_link_default") 2>&5
3139 ac_status=$?
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; then :
3142 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3143 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3144 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3145 # so that the user can short-circuit this test for compilers unknown to
3146 # Autoconf.
3147 for ac_file in $ac_files ''
3148 do
3149 test -f "$ac_file" || continue
3150 case $ac_file in
3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3152 ;;
3153 [ab].out )
3154 # We found the default executable, but exeext='' is most
3155 # certainly right.
3156 break;;
3157 *.* )
3158 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3159 then :; else
3160 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161 fi
3162 # We set ac_cv_exeext here because the later test for it is not
3163 # safe: cross compilers may not add the suffix if given an `-o'
3164 # argument, so we may need to know it at that point already.
3165 # Even if this section looks crufty: it has the advantage of
3166 # actually working.
3167 break;;
3168 * )
3169 break;;
3170 esac
3171 done
3172 test "$ac_cv_exeext" = no && ac_cv_exeext=
3173
3174 else
3175 ac_file=''
3176 fi
3177 if test -z "$ac_file"; then :
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 $as_echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 { as_fn_set_status 77
3186 as_fn_error "C compiler cannot create executables
3187 See \`config.log' for more details." "$LINENO" 5; }; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3190 $as_echo "yes" >&6; }
3191 fi
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3193 $as_echo_n "checking for C compiler default output file name... " >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3195 $as_echo "$ac_file" >&6; }
3196 ac_exeext=$ac_cv_exeext
3197
3198 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3199 ac_clean_files=$ac_clean_files_save
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3201 $as_echo_n "checking for suffix of executables... " >&6; }
3202 if { { ac_try="$ac_link"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_link") 2>&5
3210 ac_status=$?
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; then :
3213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3214 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3215 # work properly (i.e., refer to `conftest.exe'), while it won't with
3216 # `rm'.
3217 for ac_file in conftest.exe conftest conftest.*; do
3218 test -f "$ac_file" || continue
3219 case $ac_file in
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 break;;
3223 * ) break;;
3224 esac
3225 done
3226 else
3227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 as_fn_error "cannot compute suffix of executables: cannot compile and link
3230 See \`config.log' for more details." "$LINENO" 5; }
3231 fi
3232 rm -f conftest conftest$ac_cv_exeext
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3234 $as_echo "$ac_cv_exeext" >&6; }
3235
3236 rm -f conftest.$ac_ext
3237 EXEEXT=$ac_cv_exeext
3238 ac_exeext=$EXEEXT
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3241 #include <stdio.h>
3242 int
3243 main ()
3244 {
3245 FILE *f = fopen ("conftest.out", "w");
3246 return ferror (f) || fclose (f) != 0;
3247
3248 ;
3249 return 0;
3250 }
3251 _ACEOF
3252 ac_clean_files="$ac_clean_files conftest.out"
3253 # Check that the compiler produces executables we can run. If not, either
3254 # the compiler is broken, or we cross compile.
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3256 $as_echo_n "checking whether we are cross compiling... " >&6; }
3257 if test "$cross_compiling" != yes; then
3258 { { ac_try="$ac_link"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }
3269 if { ac_try='./conftest$ac_cv_exeext'
3270 { { case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_try") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; }; then
3280 cross_compiling=no
3281 else
3282 if test "$cross_compiling" = maybe; then
3283 cross_compiling=yes
3284 else
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error "cannot run C compiled programs.
3288 If you meant to cross compile, use \`--host'.
3289 See \`config.log' for more details." "$LINENO" 5; }
3290 fi
3291 fi
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3294 $as_echo "$cross_compiling" >&6; }
3295
3296 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3297 ac_clean_files=$ac_clean_files_save
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3299 $as_echo_n "checking for suffix of object files... " >&6; }
3300 if test "${ac_cv_objext+set}" = set; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3305
3306 int
3307 main ()
3308 {
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 rm -f conftest.o conftest.obj
3315 if { { ac_try="$ac_compile"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_compile") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 for ac_file in conftest.o conftest.obj conftest.*; do
3327 test -f "$ac_file" || continue;
3328 case $ac_file in
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3330 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3331 break;;
3332 esac
3333 done
3334 else
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error "cannot compute suffix of object files: cannot compile
3341 See \`config.log' for more details." "$LINENO" 5; }
3342 fi
3343 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3346 $as_echo "$ac_cv_objext" >&6; }
3347 OBJEXT=$ac_cv_objext
3348 ac_objext=$OBJEXT
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3350 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3351 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356
3357 int
3358 main ()
3359 {
3360 #ifndef __GNUC__
3361 choke me
3362 #endif
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 if ac_fn_c_try_compile "$LINENO"; then :
3369 ac_compiler_gnu=yes
3370 else
3371 ac_compiler_gnu=no
3372 fi
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3375
3376 fi
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3378 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3379 if test $ac_compiler_gnu = yes; then
3380 GCC=yes
3381 else
3382 GCC=
3383 fi
3384 ac_test_CFLAGS=${CFLAGS+set}
3385 ac_save_CFLAGS=$CFLAGS
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3387 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3388 if test "${ac_cv_prog_cc_g+set}" = set; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 ac_save_c_werror_flag=$ac_c_werror_flag
3392 ac_c_werror_flag=yes
3393 ac_cv_prog_cc_g=no
3394 CFLAGS="-g"
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397
3398 int
3399 main ()
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 if ac_fn_c_try_compile "$LINENO"; then :
3407 ac_cv_prog_cc_g=yes
3408 else
3409 CFLAGS=""
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412
3413 int
3414 main ()
3415 {
3416
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 if ac_fn_c_try_compile "$LINENO"; then :
3422
3423 else
3424 ac_c_werror_flag=$ac_save_c_werror_flag
3425 CFLAGS="-g"
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428
3429 int
3430 main ()
3431 {
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 if ac_fn_c_try_compile "$LINENO"; then :
3438 ac_cv_prog_cc_g=yes
3439 fi
3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 fi
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 fi
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_c_werror_flag=$ac_save_c_werror_flag
3446 fi
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3448 $as_echo "$ac_cv_prog_cc_g" >&6; }
3449 if test "$ac_test_CFLAGS" = set; then
3450 CFLAGS=$ac_save_CFLAGS
3451 elif test $ac_cv_prog_cc_g = yes; then
3452 if test "$GCC" = yes; then
3453 CFLAGS="-g -O2"
3454 else
3455 CFLAGS="-g"
3456 fi
3457 else
3458 if test "$GCC" = yes; then
3459 CFLAGS="-O2"
3460 else
3461 CFLAGS=
3462 fi
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3465 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3466 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 ac_cv_prog_cc_c89=no
3470 ac_save_CC=$CC
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473 #include <stdarg.h>
3474 #include <stdio.h>
3475 #include <sys/types.h>
3476 #include <sys/stat.h>
3477 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3478 struct buf { int x; };
3479 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3480 static char *e (p, i)
3481 char **p;
3482 int i;
3483 {
3484 return p[i];
3485 }
3486 static char *f (char * (*g) (char **, int), char **p, ...)
3487 {
3488 char *s;
3489 va_list v;
3490 va_start (v,p);
3491 s = g (p, va_arg (v,int));
3492 va_end (v);
3493 return s;
3494 }
3495
3496 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3497 function prototypes and stuff, but not '\xHH' hex character constants.
3498 These don't provoke an error unfortunately, instead are silently treated
3499 as 'x'. The following induces an error, until -std is added to get
3500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3501 array size at least. It's necessary to write '\x00'==0 to get something
3502 that's true only with -std. */
3503 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3504
3505 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3506 inside strings and character constants. */
3507 #define FOO(x) 'x'
3508 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3509
3510 int test (int i, double x);
3511 struct s1 {int (*f) (int a);};
3512 struct s2 {int (*f) (double a);};
3513 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3514 int argc;
3515 char **argv;
3516 int
3517 main ()
3518 {
3519 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3526 do
3527 CC="$ac_save_CC $ac_arg"
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_cv_prog_cc_c89=$ac_arg
3530 fi
3531 rm -f core conftest.err conftest.$ac_objext
3532 test "x$ac_cv_prog_cc_c89" != "xno" && break
3533 done
3534 rm -f conftest.$ac_ext
3535 CC=$ac_save_CC
3536
3537 fi
3538 # AC_CACHE_VAL
3539 case "x$ac_cv_prog_cc_c89" in
3540 x)
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3542 $as_echo "none needed" >&6; } ;;
3543 xno)
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3545 $as_echo "unsupported" >&6; } ;;
3546 *)
3547 CC="$CC $ac_cv_prog_cc_c89"
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3549 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3550 esac
3551 if test "x$ac_cv_prog_cc_c89" != xno; then :
3552
3553 fi
3554
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560
3561
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3563 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 ac_check_lib_save_LIBS=$LIBS
3568 LIBS="-ldl $LIBS"
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571
3572 /* Override any GCC internal prototype to avoid an error.
3573 Use char because int might match the return type of a GCC
3574 builtin and then its argument prototype would still apply. */
3575 #ifdef __cplusplus
3576 extern "C"
3577 #endif
3578 char dlopen ();
3579 int
3580 main ()
3581 {
3582 return dlopen ();
3583 ;
3584 return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_c_try_link "$LINENO"; then :
3588 ac_cv_lib_dl_dlopen=yes
3589 else
3590 ac_cv_lib_dl_dlopen=no
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext \
3593 conftest$ac_exeext conftest.$ac_ext
3594 LIBS=$ac_check_lib_save_LIBS
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3597 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3598 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3599 DLOPEN_LIB=-ldl
3600
3601 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3602
3603 fi
3604
3605
3606 WITH_DIET_LIBC=
3607
3608 # Check whether --with-diet-libc was given.
3609 if test "${with_diet_libc+set}" = set; then :
3610 withval=$with_diet_libc; CC="diet cc -nostdinc"
3611 WITH_DIET_LIBC=yes
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3613 $as_echo "CC=$CC" >&6; }
3614 fi
3615
3616 # Check whether --with-cc was given.
3617 if test "${with_cc+set}" = set; then :
3618 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3619 fi
3620
3621
3622 # Check whether --with-ccopts was given.
3623 if test "${with_ccopts+set}" = set; then :
3624 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3625 fi
3626
3627
3628 # Check whether --with-ldopts was given.
3629 if test "${with_ldopts+set}" = set; then :
3630 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3631 fi
3632
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 if test -n "$ac_tool_prefix"; then
3639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3640 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if test "${ac_cv_prog_CC+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3648 else
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3651 do
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3656 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3659 fi
3660 done
3661 done
3662 IFS=$as_save_IFS
3663
3664 fi
3665 fi
3666 CC=$ac_cv_prog_CC
3667 if test -n "$CC"; then
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3669 $as_echo "$CC" >&6; }
3670 else
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3673 fi
3674
3675
3676 fi
3677 if test -z "$ac_cv_prog_CC"; then
3678 ac_ct_CC=$CC
3679 # Extract the first word of "gcc", so it can be a program name with args.
3680 set dummy gcc; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 if test -n "$ac_ct_CC"; then
3687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_ac_ct_CC="gcc"
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 break 2
3699 fi
3700 done
3701 done
3702 IFS=$as_save_IFS
3703
3704 fi
3705 fi
3706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3707 if test -n "$ac_ct_CC"; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3709 $as_echo "$ac_ct_CC" >&6; }
3710 else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 fi
3714
3715 if test "x$ac_ct_CC" = x; then
3716 CC=""
3717 else
3718 case $cross_compiling:$ac_tool_warned in
3719 yes:)
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3722 ac_tool_warned=yes ;;
3723 esac
3724 CC=$ac_ct_CC
3725 fi
3726 else
3727 CC="$ac_cv_prog_CC"
3728 fi
3729
3730 if test -z "$CC"; then
3731 if test -n "$ac_tool_prefix"; then
3732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3733 set dummy ${ac_tool_prefix}cc; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if test "${ac_cv_prog_CC+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 if test -n "$CC"; then
3740 ac_cv_prog_CC="$CC" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 ac_cv_prog_CC="${ac_tool_prefix}cc"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3752 fi
3753 done
3754 done
3755 IFS=$as_save_IFS
3756
3757 fi
3758 fi
3759 CC=$ac_cv_prog_CC
3760 if test -n "$CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3763 else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3766 fi
3767
3768
3769 fi
3770 fi
3771 if test -z "$CC"; then
3772 # Extract the first word of "cc", so it can be a program name with args.
3773 set dummy cc; ac_word=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if test "${ac_cv_prog_CC+set}" = set; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 if test -n "$CC"; then
3780 ac_cv_prog_CC="$CC" # Let the user override the test.
3781 else
3782 ac_prog_rejected=no
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3785 do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3791 ac_prog_rejected=yes
3792 continue
3793 fi
3794 ac_cv_prog_CC="cc"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798 done
3799 done
3800 IFS=$as_save_IFS
3801
3802 if test $ac_prog_rejected = yes; then
3803 # We found a bogon in the path, so make sure we never use it.
3804 set dummy $ac_cv_prog_CC
3805 shift
3806 if test $# != 0; then
3807 # We chose a different compiler from the bogus one.
3808 # However, it has the same basename, so the bogon will be chosen
3809 # first if we set CC to just the basename; use the full file name.
3810 shift
3811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3812 fi
3813 fi
3814 fi
3815 fi
3816 CC=$ac_cv_prog_CC
3817 if test -n "$CC"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819 $as_echo "$CC" >&6; }
3820 else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3823 fi
3824
3825
3826 fi
3827 if test -z "$CC"; then
3828 if test -n "$ac_tool_prefix"; then
3829 for ac_prog in cl.exe
3830 do
3831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if test "${ac_cv_prog_CC+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 if test -n "$CC"; then
3839 ac_cv_prog_CC="$CC" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3851 fi
3852 done
3853 done
3854 IFS=$as_save_IFS
3855
3856 fi
3857 fi
3858 CC=$ac_cv_prog_CC
3859 if test -n "$CC"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3861 $as_echo "$CC" >&6; }
3862 else
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3865 fi
3866
3867
3868 test -n "$CC" && break
3869 done
3870 fi
3871 if test -z "$CC"; then
3872 ac_ct_CC=$CC
3873 for ac_prog in cl.exe
3874 do
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3881 else
3882 if test -n "$ac_ct_CC"; then
3883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_ac_ct_CC="$ac_prog"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3895 fi
3896 done
3897 done
3898 IFS=$as_save_IFS
3899
3900 fi
3901 fi
3902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3903 if test -n "$ac_ct_CC"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3905 $as_echo "$ac_ct_CC" >&6; }
3906 else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3909 fi
3910
3911
3912 test -n "$ac_ct_CC" && break
3913 done
3914
3915 if test "x$ac_ct_CC" = x; then
3916 CC=""
3917 else
3918 case $cross_compiling:$ac_tool_warned in
3919 yes:)
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922 ac_tool_warned=yes ;;
3923 esac
3924 CC=$ac_ct_CC
3925 fi
3926 fi
3927
3928 fi
3929
3930
3931 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "no acceptable C compiler found in \$PATH
3934 See \`config.log' for more details." "$LINENO" 5; }
3935
3936 # Provide some information about the compiler.
3937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3938 set X $ac_compile
3939 ac_compiler=$2
3940 for ac_option in --version -v -V -qversion; do
3941 { { ac_try="$ac_compiler $ac_option >&5"
3942 case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945 esac
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 $as_echo "$ac_try_echo"; } >&5
3948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3949 ac_status=$?
3950 if test -s conftest.err; then
3951 sed '10a\
3952 ... rest of stderr output deleted ...
3953 10q' conftest.err >conftest.er1
3954 cat conftest.er1 >&5
3955 fi
3956 rm -f conftest.er1 conftest.err
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }
3959 done
3960
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3962 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3963 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3965 else
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3968
3969 int
3970 main ()
3971 {
3972 #ifndef __GNUC__
3973 choke me
3974 #endif
3975
3976 ;
3977 return 0;
3978 }
3979 _ACEOF
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_compiler_gnu=yes
3982 else
3983 ac_compiler_gnu=no
3984 fi
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3987
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3990 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3991 if test $ac_compiler_gnu = yes; then
3992 GCC=yes
3993 else
3994 GCC=
3995 fi
3996 ac_test_CFLAGS=${CFLAGS+set}
3997 ac_save_CFLAGS=$CFLAGS
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3999 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4000 if test "${ac_cv_prog_cc_g+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 ac_save_c_werror_flag=$ac_c_werror_flag
4004 ac_c_werror_flag=yes
4005 ac_cv_prog_cc_g=no
4006 CFLAGS="-g"
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009
4010 int
4011 main ()
4012 {
4013
4014 ;
4015 return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_cv_prog_cc_g=yes
4020 else
4021 CFLAGS=""
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4024
4025 int
4026 main ()
4027 {
4028
4029 ;
4030 return 0;
4031 }
4032 _ACEOF
4033 if ac_fn_c_try_compile "$LINENO"; then :
4034
4035 else
4036 ac_c_werror_flag=$ac_save_c_werror_flag
4037 CFLAGS="-g"
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040
4041 int
4042 main ()
4043 {
4044
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050 ac_cv_prog_cc_g=yes
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4060 $as_echo "$ac_cv_prog_cc_g" >&6; }
4061 if test "$ac_test_CFLAGS" = set; then
4062 CFLAGS=$ac_save_CFLAGS
4063 elif test $ac_cv_prog_cc_g = yes; then
4064 if test "$GCC" = yes; then
4065 CFLAGS="-g -O2"
4066 else
4067 CFLAGS="-g"
4068 fi
4069 else
4070 if test "$GCC" = yes; then
4071 CFLAGS="-O2"
4072 else
4073 CFLAGS=
4074 fi
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4077 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4078 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 ac_cv_prog_cc_c89=no
4082 ac_save_CC=$CC
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085 #include <stdarg.h>
4086 #include <stdio.h>
4087 #include <sys/types.h>
4088 #include <sys/stat.h>
4089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4090 struct buf { int x; };
4091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4092 static char *e (p, i)
4093 char **p;
4094 int i;
4095 {
4096 return p[i];
4097 }
4098 static char *f (char * (*g) (char **, int), char **p, ...)
4099 {
4100 char *s;
4101 va_list v;
4102 va_start (v,p);
4103 s = g (p, va_arg (v,int));
4104 va_end (v);
4105 return s;
4106 }
4107
4108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4109 function prototypes and stuff, but not '\xHH' hex character constants.
4110 These don't provoke an error unfortunately, instead are silently treated
4111 as 'x'. The following induces an error, until -std is added to get
4112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4113 array size at least. It's necessary to write '\x00'==0 to get something
4114 that's true only with -std. */
4115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4116
4117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4118 inside strings and character constants. */
4119 #define FOO(x) 'x'
4120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4121
4122 int test (int i, double x);
4123 struct s1 {int (*f) (int a);};
4124 struct s2 {int (*f) (double a);};
4125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4126 int argc;
4127 char **argv;
4128 int
4129 main ()
4130 {
4131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4132 ;
4133 return 0;
4134 }
4135 _ACEOF
4136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4138 do
4139 CC="$ac_save_CC $ac_arg"
4140 if ac_fn_c_try_compile "$LINENO"; then :
4141 ac_cv_prog_cc_c89=$ac_arg
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext
4144 test "x$ac_cv_prog_cc_c89" != "xno" && break
4145 done
4146 rm -f conftest.$ac_ext
4147 CC=$ac_save_CC
4148
4149 fi
4150 # AC_CACHE_VAL
4151 case "x$ac_cv_prog_cc_c89" in
4152 x)
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4154 $as_echo "none needed" >&6; } ;;
4155 xno)
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4157 $as_echo "unsupported" >&6; } ;;
4158 *)
4159 CC="$CC $ac_cv_prog_cc_c89"
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4161 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4162 esac
4163 if test "x$ac_cv_prog_cc_c89" != xno; then :
4164
4165 fi
4166
4167 ac_ext=c
4168 ac_cpp='$CPP $CPPFLAGS'
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172
4173 if test "$GCC" = yes; then
4174 RDYNAMIC="-rdynamic"
4175
4176 fi
4177 ac_ext=c
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4183 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4184 # On Suns, sometimes $CPP names a directory.
4185 if test -n "$CPP" && test -d "$CPP"; then
4186 CPP=
4187 fi
4188 if test -z "$CPP"; then
4189 if test "${ac_cv_prog_CPP+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 # Double quotes because CPP needs to be expanded
4193 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4194 do
4195 ac_preproc_ok=false
4196 for ac_c_preproc_warn_flag in '' yes
4197 do
4198 # Use a header file that comes with gcc, so configuring glibc
4199 # with a fresh cross-compiler works.
4200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4201 # <limits.h> exists even on freestanding compilers.
4202 # On the NeXT, cc -E runs the code through the compiler's parser,
4203 # not just through cpp. "Syntax error" is here to catch this case.
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #ifdef __STDC__
4207 # include <limits.h>
4208 #else
4209 # include <assert.h>
4210 #endif
4211 Syntax error
4212 _ACEOF
4213 if ac_fn_c_try_cpp "$LINENO"; then :
4214
4215 else
4216 # Broken: fails on valid input.
4217 continue
4218 fi
4219 rm -f conftest.err conftest.$ac_ext
4220
4221 # OK, works on sane cases. Now check whether nonexistent headers
4222 # can be detected and how.
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225 #include <ac_nonexistent.h>
4226 _ACEOF
4227 if ac_fn_c_try_cpp "$LINENO"; then :
4228 # Broken: success on invalid input.
4229 continue
4230 else
4231 # Passes both tests.
4232 ac_preproc_ok=:
4233 break
4234 fi
4235 rm -f conftest.err conftest.$ac_ext
4236
4237 done
4238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4239 rm -f conftest.err conftest.$ac_ext
4240 if $ac_preproc_ok; then :
4241 break
4242 fi
4243
4244 done
4245 ac_cv_prog_CPP=$CPP
4246
4247 fi
4248 CPP=$ac_cv_prog_CPP
4249 else
4250 ac_cv_prog_CPP=$CPP
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4253 $as_echo "$CPP" >&6; }
4254 ac_preproc_ok=false
4255 for ac_c_preproc_warn_flag in '' yes
4256 do
4257 # Use a header file that comes with gcc, so configuring glibc
4258 # with a fresh cross-compiler works.
4259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4260 # <limits.h> exists even on freestanding compilers.
4261 # On the NeXT, cc -E runs the code through the compiler's parser,
4262 # not just through cpp. "Syntax error" is here to catch this case.
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265 #ifdef __STDC__
4266 # include <limits.h>
4267 #else
4268 # include <assert.h>
4269 #endif
4270 Syntax error
4271 _ACEOF
4272 if ac_fn_c_try_cpp "$LINENO"; then :
4273
4274 else
4275 # Broken: fails on valid input.
4276 continue
4277 fi
4278 rm -f conftest.err conftest.$ac_ext
4279
4280 # OK, works on sane cases. Now check whether nonexistent headers
4281 # can be detected and how.
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 #include <ac_nonexistent.h>
4285 _ACEOF
4286 if ac_fn_c_try_cpp "$LINENO"; then :
4287 # Broken: success on invalid input.
4288 continue
4289 else
4290 # Passes both tests.
4291 ac_preproc_ok=:
4292 break
4293 fi
4294 rm -f conftest.err conftest.$ac_ext
4295
4296 done
4297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4298 rm -f conftest.err conftest.$ac_ext
4299 if $ac_preproc_ok; then :
4300
4301 else
4302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4305 See \`config.log' for more details." "$LINENO" 5; }
4306 fi
4307
4308 ac_ext=c
4309 ac_cpp='$CPP $CPPFLAGS'
4310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4315 $as_echo_n "checking for additional special compiler flags... " >&6; }
4316 if test "$GCC" = yes
4317 then
4318 case "$host_cpu" in
4319 alpha) addcflags="-mieee" ;;
4320 esac
4321 fi
4322 if test "x$addcflags" != x
4323 then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4325 $as_echo "$addcflags" >&6; }
4326 CFLAGS="$addcflags $CFLAGS"
4327 else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4329 $as_echo "(none)" >&6; }
4330 fi
4331 LIB_EXT=.a
4332 STATIC_LIB_EXT=.a
4333 PROFILED_LIB_EXT=.a
4334
4335 # Check whether --with-root-prefix was given.
4336 if test "${with_root_prefix+set}" = set; then :
4337 withval=$with_root_prefix; root_prefix=$withval
4338 else
4339 root_prefix=NONE
4340 fi
4341 # Check whether --enable-maintainer-mode was given.
4342 if test "${enable_maintainer_mode+set}" = set; then :
4343 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4344 then
4345 MAINTAINER_CMT=#
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4347 $as_echo "Disabling maintainer mode" >&6; }
4348 else
4349 MAINTAINER_CMT=
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4351 $as_echo "Enabling maintainer mode" >&6; }
4352 fi
4353
4354 else
4355 MAINTAINER_CMT=#
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4357 $as_echo "Disabling maintainer mode by default" >&6; }
4358
4359 fi
4360
4361
4362 # Check whether --enable-symlink-install was given.
4363 if test "${enable_symlink_install+set}" = set; then :
4364 enableval=$enable_symlink_install; if test "$enableval" = "no"
4365 then
4366 LINK_INSTALL_FLAGS=-f
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4368 $as_echo "Disabling symlinks for install" >&6; }
4369 else
4370 LINK_INSTALL_FLAGS=-sf
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4372 $as_echo "Enabling symlinks for install" >&6; }
4373 fi
4374
4375 else
4376 LINK_INSTALL_FLAGS=-f
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4378 $as_echo "Disabling symlinks for install" >&6; }
4379
4380 fi
4381
4382
4383 # Check whether --enable-symlink-build was given.
4384 if test "${enable_symlink_build+set}" = set; then :
4385 enableval=$enable_symlink_build; if test "$enableval" = "no"
4386 then
4387 LINK_BUILD_FLAGS=
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4389 $as_echo "Disabling symlinks for build" >&6; }
4390 else
4391 LINK_BUILD_FLAGS=-s
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4393 $as_echo "Enabling symlinks for build" >&6; }
4394 fi
4395
4396 else
4397 LINK_BUILD_FLAGS=
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4399 $as_echo "Disabling symlinks for build" >&6; }
4400
4401 fi
4402
4403
4404 # Check whether --enable-verbose-makecmds was given.
4405 if test "${enable_verbose_makecmds+set}" = set; then :
4406 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4407 then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4409 $as_echo "Disabling verbose make commands" >&6; }
4410 E=@echo
4411 Q=@
4412 else
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4414 $as_echo "Enabling verbose make commands" >&6; }
4415 E=@\\#
4416 Q=
4417 fi
4418
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4421 $as_echo "Disabling verbose make commands" >&6; }
4422 E=@echo
4423 Q=@
4424
4425 fi
4426
4427
4428
4429 # Check whether --enable-compression was given.
4430 if test "${enable_compression+set}" = set; then :
4431 enableval=$enable_compression; if test "$enableval" = "no"
4432 then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4434 $as_echo "Disabling compression support" >&6; }
4435 else
4436
4437 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4438
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4440 $as_echo "Enabling compression support" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4442 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4443 fi
4444
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4447 $as_echo "Disabling compression support by default" >&6; }
4448
4449 fi
4450
4451
4452 # Check whether --enable-htree was given.
4453 if test "${enable_htree+set}" = set; then :
4454 enableval=$enable_htree; if test "$enableval" = "no"
4455 then
4456 HTREE_CMT=#
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4458 $as_echo "Disabling htree directory support" >&6; }
4459 else
4460 HTREE_CMT=
4461 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4464 $as_echo "Enabling htree directory support" >&6; }
4465 fi
4466
4467 else
4468 HTREE_CMT=
4469 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4472 $as_echo "Enabling htree directory support by default" >&6; }
4473
4474 fi
4475
4476
4477 E2_PKG_CONFIG_STATIC=--static
4478 LDFLAG_DYNAMIC=
4479 PRIVATE_LIBS_CMT=
4480 # Check whether --enable-elf-shlibs was given.
4481 if test "${enable_elf_shlibs+set}" = set; then :
4482 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4483 then
4484 ELF_CMT=#
4485 MAKEFILE_ELF=/dev/null
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4487 $as_echo "Disabling ELF shared libraries" >&6; }
4488 else
4489 E2_PKG_CONFIG_STATIC=
4490 ELF_CMT=
4491 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4492 case "$host_os" in
4493 solaris2.*)
4494 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4495 ;;
4496 esac
4497 BINARY_TYPE=elfbin
4498 LIB_EXT=.so
4499 PRIVATE_LIBS_CMT=#
4500 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4502 $as_echo "Enabling ELF shared libraries" >&6; }
4503 fi
4504
4505 else
4506 MAKEFILE_ELF=/dev/null
4507 ELF_CMT=#
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4509 $as_echo "Disabling ELF shared libraries by default" >&6; }
4510
4511 fi
4512
4513
4514
4515 # Check whether --enable-bsd-shlibs was given.
4516 if test "${enable_bsd_shlibs+set}" = set; then :
4517 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4518 then
4519 BSDLIB_CMT=#
4520 MAKEFILE_BSDLIB=/dev/null
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4522 $as_echo "Disabling BSD shared libraries" >&6; }
4523 else
4524 E2_PKG_CONFIG_STATIC=
4525 BSDLIB_CMT=
4526 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4527 LIB_EXT=.so
4528 case "$host_os" in
4529 darwin*)
4530 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4531 LIB_EXT=.dylib
4532 ;;
4533 esac
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4535 $as_echo "Enabling BSD shared libraries" >&6; }
4536 fi
4537
4538 else
4539 MAKEFILE_BSDLIB=/dev/null
4540 BSDLIB_CMT=#
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4542 $as_echo "Disabling BSD shared libraries by default" >&6; }
4543
4544 fi
4545
4546
4547
4548 # Check whether --enable-profile was given.
4549 if test "${enable_profile+set}" = set; then :
4550 enableval=$enable_profile; if test "$enableval" = "no"
4551 then
4552 PROFILE_CMT=#
4553 MAKEFILE_PROFILE=/dev/null
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4555 $as_echo "Disabling profiling libraries" >&6; }
4556 else
4557 PROFILE_CMT=
4558 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4559 PROFILED_LIB_EXT=_p.a
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4561 $as_echo "Building profiling libraries" >&6; }
4562 fi
4563
4564 else
4565 PROFILE_CMT=#
4566 MAKEFILE_PROFILE=/dev/null
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4568 $as_echo "Disabling profiling libraries by default" >&6; }
4569
4570 fi
4571
4572
4573
4574 # Check whether --enable-checker was given.
4575 if test "${enable_checker+set}" = set; then :
4576 enableval=$enable_checker; if test "$enableval" = "no"
4577 then
4578 CHECKER_CMT=#
4579 MAKEFILE_CHECKER=/dev/null
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4581 $as_echo "Disabling checker libraries" >&6; }
4582 else
4583 CHECKER_CMT=
4584 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4586 $as_echo "Building checker libraries" >&6; }
4587 fi
4588
4589 else
4590 CHECKER_CMT=#
4591 MAKEFILE_CHECKER=/dev/null
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4593 $as_echo "Disabling checker libraries by default" >&6; }
4594
4595 fi
4596
4597
4598
4599
4600
4601
4602
4603
4604 # Check whether --enable-jbd-debug was given.
4605 if test "${enable_jbd_debug+set}" = set; then :
4606 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4607 then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4609 $as_echo "Disabling journal debugging" >&6; }
4610 else
4611
4612 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4615 $as_echo "Enabling journal debugging" >&6; }
4616 fi
4617
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4620 $as_echo "Disabling journal debugging by default" >&6; }
4621
4622 fi
4623
4624 # Check whether --enable-blkid-debug was given.
4625 if test "${enable_blkid_debug+set}" = set; then :
4626 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4627 then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4629 $as_echo "Disabling blkid debugging" >&6; }
4630 else
4631
4632 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4633
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4635 $as_echo "Enabling blkid debugging" >&6; }
4636 fi
4637
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4640 $as_echo "Disabling blkid debugging by default" >&6; }
4641
4642 fi
4643
4644 # Check whether --enable-testio-debug was given.
4645 if test "${enable_testio_debug+set}" = set; then :
4646 enableval=$enable_testio_debug;
4647 if test "$enableval" = "no"
4648 then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4650 $as_echo "Disabling testio debugging" >&6; }
4651 TEST_IO_CMT="#"
4652 else
4653 TEST_IO_CMT=
4654 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4655
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4657 $as_echo "Enabling testio debugging" >&6; }
4658 fi
4659
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4662 $as_echo "Enabling testio debugging by default" >&6; }
4663 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4664
4665 TEST_IO_CMT=
4666
4667 fi
4668
4669
4670
4671
4672 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4673 if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4675 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 case $PKG_CONFIG in
4682 [\\/]* | ?:[\\/]*)
4683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4684 ;;
4685 *)
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 ;;
4702 esac
4703 fi
4704 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4705 if test -n "$PKG_CONFIG"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4707 $as_echo "$PKG_CONFIG" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4711 fi
4712
4713
4714 fi
4715 if test -z "$ac_cv_path_PKG_CONFIG"; then
4716 ac_pt_PKG_CONFIG=$PKG_CONFIG
4717 # Extract the first word of "pkg-config", so it can be a program name with args.
4718 set dummy pkg-config; ac_word=$2
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 case $ac_pt_PKG_CONFIG in
4725 [\\/]* | ?:[\\/]*)
4726 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4727 ;;
4728 *)
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4739 fi
4740 done
4741 done
4742 IFS=$as_save_IFS
4743
4744 ;;
4745 esac
4746 fi
4747 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4748 if test -n "$ac_pt_PKG_CONFIG"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4750 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4754 fi
4755
4756 if test "x$ac_pt_PKG_CONFIG" = x; then
4757 PKG_CONFIG=""
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760 yes:)
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned=yes ;;
4764 esac
4765 PKG_CONFIG=$ac_pt_PKG_CONFIG
4766 fi
4767 else
4768 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4769 fi
4770
4771 fi
4772 if test -n "$PKG_CONFIG"; then
4773 _pkg_min_version=0.9.0
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4775 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4776 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4778 $as_echo "yes" >&6; }
4779 else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4782 PKG_CONFIG=""
4783 fi
4784
4785 fi
4786 LIBUUID=
4787 DEPLIBUUID=
4788 STATIC_LIBUUID=
4789 DEPSTATIC_LIBUUID=
4790 PROFILED_LIBUUID=
4791 DEPPROFILED_LIBUUID=
4792 UUID_CMT=
4793 # Check whether --enable-libuuid was given.
4794 if test "${enable_libuuid+set}" = set; then :
4795 enableval=$enable_libuuid; if test "$enableval" = "no"
4796 then
4797 if test -z "$PKG_CONFIG"; then
4798 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4799 fi
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4802 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4803 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 ac_check_lib_save_LIBS=$LIBS
4807 LIBS="-luuid $LIBUUID $LIBS"
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4810
4811 /* Override any GCC internal prototype to avoid an error.
4812 Use char because int might match the return type of a GCC
4813 builtin and then its argument prototype would still apply. */
4814 #ifdef __cplusplus
4815 extern "C"
4816 #endif
4817 char uuid_generate ();
4818 int
4819 main ()
4820 {
4821 return uuid_generate ();
4822 ;
4823 return 0;
4824 }
4825 _ACEOF
4826 if ac_fn_c_try_link "$LINENO"; then :
4827 ac_cv_lib_uuid_uuid_generate=yes
4828 else
4829 ac_cv_lib_uuid_uuid_generate=no
4830 fi
4831 rm -f core conftest.err conftest.$ac_objext \
4832 conftest$ac_exeext conftest.$ac_ext
4833 LIBS=$ac_check_lib_save_LIBS
4834 fi
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4836 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4837 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
4838 LIBUUID=`$PKG_CONFIG --libs uuid`;
4839 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4840 else
4841 as_fn_error "external uuid library not found" "$LINENO" 5
4842 fi
4843
4844 UUID_CMT=#
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4846 $as_echo "Disabling private uuid library" >&6; }
4847 else
4848 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4849 DEPLIBUUID=$LIBUUID
4850 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4851 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4852 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4853 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4855 $as_echo "Enabling private uuid library" >&6; }
4856 fi
4857
4858 else
4859 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4860 DEPLIBUUID=$LIBUUID
4861 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4862 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4863 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4864 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4866 $as_echo "Enabling private uuid library by default" >&6; }
4867
4868 fi
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4880 if test -n "$ac_tool_prefix"; then
4881 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4882 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 case $PKG_CONFIG in
4889 [\\/]* | ?:[\\/]*)
4890 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4891 ;;
4892 *)
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4903 fi
4904 done
4905 done
4906 IFS=$as_save_IFS
4907
4908 ;;
4909 esac
4910 fi
4911 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4912 if test -n "$PKG_CONFIG"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4914 $as_echo "$PKG_CONFIG" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920
4921 fi
4922 if test -z "$ac_cv_path_PKG_CONFIG"; then
4923 ac_pt_PKG_CONFIG=$PKG_CONFIG
4924 # Extract the first word of "pkg-config", so it can be a program name with args.
4925 set dummy pkg-config; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 case $ac_pt_PKG_CONFIG in
4932 [\\/]* | ?:[\\/]*)
4933 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4934 ;;
4935 *)
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951 ;;
4952 esac
4953 fi
4954 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4955 if test -n "$ac_pt_PKG_CONFIG"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4957 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4961 fi
4962
4963 if test "x$ac_pt_PKG_CONFIG" = x; then
4964 PKG_CONFIG=""
4965 else
4966 case $cross_compiling:$ac_tool_warned in
4967 yes:)
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970 ac_tool_warned=yes ;;
4971 esac
4972 PKG_CONFIG=$ac_pt_PKG_CONFIG
4973 fi
4974 else
4975 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4976 fi
4977
4978 fi
4979 if test -n "$PKG_CONFIG"; then
4980 _pkg_min_version=0.9.0
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4982 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4983 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4985 $as_echo "yes" >&6; }
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4989 PKG_CONFIG=""
4990 fi
4991
4992 fi
4993 LIBBLKID=
4994 DEPLIBBLKID=
4995 STATIC_LIBBLKID=
4996 DEPSTATIC_LIBBLKID=
4997 PROFILED_LIBBLKID=
4998 DEPPROFILED_LIBBLKID=
4999 BLKID_CMT=
5000
5001 # Check whether --enable-libblkid was given.
5002 if test "${enable_libblkid+set}" = set; then :
5003 enableval=$enable_libblkid; if test "$enableval" = "no"
5004 then
5005 if test -z "$PKG_CONFIG"; then
5006 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5007 fi
5008
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5010 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5011 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 ac_check_lib_save_LIBS=$LIBS
5015 LIBS="-lblkid $LIBBLKID $LIBS"
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018
5019 /* Override any GCC internal prototype to avoid an error.
5020 Use char because int might match the return type of a GCC
5021 builtin and then its argument prototype would still apply. */
5022 #ifdef __cplusplus
5023 extern "C"
5024 #endif
5025 char blkid_get_cache ();
5026 int
5027 main ()
5028 {
5029 return blkid_get_cache ();
5030 ;
5031 return 0;
5032 }
5033 _ACEOF
5034 if ac_fn_c_try_link "$LINENO"; then :
5035 ac_cv_lib_blkid_blkid_get_cache=yes
5036 else
5037 ac_cv_lib_blkid_blkid_get_cache=no
5038 fi
5039 rm -f core conftest.err conftest.$ac_objext \
5040 conftest$ac_exeext conftest.$ac_ext
5041 LIBS=$ac_check_lib_save_LIBS
5042 fi
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5044 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5045 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5046 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5047 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5048 else
5049 as_fn_error "external blkid library not found" "$LINENO" 5
5050 fi
5051
5052 BLKID_CMT=#
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5054 $as_echo "Disabling private blkid library" >&6; }
5055 else
5056 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5057 DEPLIBBLKID=$LIBBLKID
5058 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5059 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5060 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5061 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5062 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5063
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5065 $as_echo "Enabling private blkid library" >&6; }
5066 fi
5067
5068 else
5069 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5070 DEPLIBBLKID=$LIBBLKID
5071 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5072 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5073 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5074 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5075 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5078 $as_echo "Enabling private blkid library by default" >&6; }
5079
5080 fi
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5092 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5094 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 case $PKG_CONFIG in
5101 [\\/]* | ?:[\\/]*)
5102 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5103 ;;
5104 *)
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5107 do
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5115 fi
5116 done
5117 done
5118 IFS=$as_save_IFS
5119
5120 ;;
5121 esac
5122 fi
5123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5124 if test -n "$PKG_CONFIG"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5126 $as_echo "$PKG_CONFIG" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5130 fi
5131
5132
5133 fi
5134 if test -z "$ac_cv_path_PKG_CONFIG"; then
5135 ac_pt_PKG_CONFIG=$PKG_CONFIG
5136 # Extract the first word of "pkg-config", so it can be a program name with args.
5137 set dummy pkg-config; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 case $ac_pt_PKG_CONFIG in
5144 [\\/]* | ?:[\\/]*)
5145 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5146 ;;
5147 *)
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163 ;;
5164 esac
5165 fi
5166 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5167 if test -n "$ac_pt_PKG_CONFIG"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5169 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5173 fi
5174
5175 if test "x$ac_pt_PKG_CONFIG" = x; then
5176 PKG_CONFIG=""
5177 else
5178 case $cross_compiling:$ac_tool_warned in
5179 yes:)
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5182 ac_tool_warned=yes ;;
5183 esac
5184 PKG_CONFIG=$ac_pt_PKG_CONFIG
5185 fi
5186 else
5187 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5188 fi
5189
5190 fi
5191 if test -n "$PKG_CONFIG"; then
5192 _pkg_min_version=0.9.0
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5194 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5195 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5197 $as_echo "yes" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 PKG_CONFIG=""
5202 fi
5203
5204 fi
5205 LIBQUOTA=
5206 DEPLIBQUOTA=
5207 STATIC_LIBQUOTA=
5208 DEPSTATIC_LIBQUOTA=
5209 PROFILED_LIBQUOTA=
5210 DEPPROFILED_LIBQUOTA=
5211 QUOTA_CMT=
5212 # Check whether --enable-libquota was given.
5213 if test "${enable_libquota+set}" = set; then :
5214 enableval=$enable_libquota; if test "$enableval" = "no"
5215 then
5216 if test -z "$PKG_CONFIG"; then
5217 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5218 fi
5219
5220 as_ac_Lib=`$as_echo "ac_cv_lib_quota_LIBQUOTA=\`$PKG_CONFIG --libs quota\`;
5221 STATIC_LIBQUOTA=\`$PKG_CONFIG --static --libs quota\`" | $as_tr_sh`
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBQUOTA=\`$PKG_CONFIG --libs quota\`;
5223 STATIC_LIBQUOTA=\`$PKG_CONFIG --static --libs quota\` in -lquota" >&5
5224 $as_echo_n "checking for LIBQUOTA=\`$PKG_CONFIG --libs quota\`;
5225 STATIC_LIBQUOTA=\`$PKG_CONFIG --static --libs quota\` in -lquota... " >&6; }
5226 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 ac_check_lib_save_LIBS=$LIBS
5230 LIBS="-lquota $LIBS"
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5233
5234 /* Override any GCC internal prototype to avoid an error.
5235 Use char because int might match the return type of a GCC
5236 builtin and then its argument prototype would still apply. */
5237 #ifdef __cplusplus
5238 extern "C"
5239 #endif
5240 char LIBQUOTA=`$PKG_CONFIG --libs quota`;
5241 STATIC_LIBQUOTA=`$PKG_CONFIG --static --libs quota` ();
5242 int
5243 main ()
5244 {
5245 return LIBQUOTA=`$PKG_CONFIG --libs quota`;
5246 STATIC_LIBQUOTA=`$PKG_CONFIG --static --libs quota` ();
5247 ;
5248 return 0;
5249 }
5250 _ACEOF
5251 if ac_fn_c_try_link "$LINENO"; then :
5252 eval "$as_ac_Lib=yes"
5253 else
5254 eval "$as_ac_Lib=no"
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext \
5257 conftest$ac_exeext conftest.$ac_ext
5258 LIBS=$ac_check_lib_save_LIBS
5259 fi
5260 eval ac_res=\$$as_ac_Lib
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5262 $as_echo "$ac_res" >&6; }
5263 eval as_val=\$$as_ac_Lib
5264 if test "x$as_val" = x""yes; then :
5265 as_fn_error "external quota library not found" "$LINENO" 5
5266 else
5267 $LIBQUOTA
5268 fi
5269
5270 QUOTA_CMT=#
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private quota library" >&5
5272 $as_echo "Disabling private quota library" >&6; }
5273 else
5274 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5275 DEPLIBQUOTA=$LIBQUOTA
5276 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5277 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5278 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5279 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private quota library" >&5
5281 $as_echo "Enabling private quota library" >&6; }
5282 fi
5283
5284 else
5285 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5286 DEPLIBQUOTA=$LIBQUOTA
5287 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5288 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5289 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5290 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private quota library by default" >&5
5292 $as_echo "Enabling private quota library by default" >&6; }
5293
5294 fi
5295
5296
5297
5298
5299
5300
5301
5302
5303 # Check whether --enable-debugfs was given.
5304 if test "${enable_debugfs+set}" = set; then :
5305 enableval=$enable_debugfs; if test "$enableval" = "no"
5306 then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5308 $as_echo "Disabling debugfs support" >&6; }
5309 DEBUGFS_CMT="#"
5310 else
5311 DEBUGFS_CMT=
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5313 $as_echo "Enabling debugfs support" >&6; }
5314 fi
5315
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5318 $as_echo "Enabling debugfs support by default" >&6; }
5319 DEBUGFS_CMT=
5320
5321 fi
5322
5323
5324 # Check whether --enable-imager was given.
5325 if test "${enable_imager+set}" = set; then :
5326 enableval=$enable_imager; if test "$enableval" = "no"
5327 then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5329 $as_echo "Disabling e2image support" >&6; }
5330 IMAGER_CMT="#"
5331 else
5332 IMAGER_CMT=
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5334 $as_echo "Enabling e2image support" >&6; }
5335 fi
5336
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5339 $as_echo "Enabling e2image support by default" >&6; }
5340 IMAGER_CMT=
5341
5342 fi
5343
5344
5345 # Check whether --enable-resizer was given.
5346 if test "${enable_resizer+set}" = set; then :
5347 enableval=$enable_resizer; if test "$enableval" = "no"
5348 then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5350 $as_echo "Disabling e2resize support" >&6; }
5351 RESIZER_CMT="#"
5352 else
5353 RESIZER_CMT=
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5355 $as_echo "Enabling e2resize support" >&6; }
5356 fi
5357
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5360 $as_echo "Enabling e2resize support by default" >&6; }
5361 RESIZER_CMT=
5362
5363 fi
5364
5365
5366 # Check whether --enable-defrag was given.
5367 if test "${enable_defrag+set}" = set; then :
5368 enableval=$enable_defrag; if test "$enableval" = "no"
5369 then
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5371 $as_echo "Disabling e4defrag support" >&6; }
5372 DEFRAG_CMT="#"
5373 else
5374 DEFRAG_CMT=
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5376 $as_echo "Enabling e4defrag support" >&6; }
5377 fi
5378
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5381 $as_echo "Enabling e4defrag support by default" >&6; }
5382 DEFRAG_CMT=
5383
5384 fi
5385
5386
5387 # Check whether --enable-fsck was given.
5388 if test "${enable_fsck+set}" = set; then :
5389 enableval=$enable_fsck; if test "$enableval" = "no"
5390 then
5391 FSCK_PROG='' FSCK_MAN=''
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5393 $as_echo "Not building fsck wrapper" >&6; }
5394 else
5395 FSCK_PROG=fsck FSCK_MAN=fsck.8
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5397 $as_echo "Building fsck wrapper" >&6; }
5398 fi
5399
5400 else
5401 case "$host_os" in
5402 gnu*)
5403 FSCK_PROG='' FSCK_MAN=''
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5405 $as_echo "Not building fsck wrapper by default" >&6; }
5406 ;;
5407 *)
5408 FSCK_PROG=fsck FSCK_MAN=fsck.8
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5410 $as_echo "Building fsck wrapper by default" >&6; }
5411 esac
5412
5413 fi
5414
5415
5416
5417 # Check whether --enable-e2initrd-helper was given.
5418 if test "${enable_e2initrd_helper+set}" = set; then :
5419 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5420 then
5421 E2INITRD_PROG='' E2INITRD_MAN=''
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5423 $as_echo "Not building e2initrd helper" >&6; }
5424 else
5425 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5427 $as_echo "Building e2initrd helper" >&6; }
5428 fi
5429
5430 else
5431 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5433 $as_echo "Building e2initrd helper by default" >&6; }
5434
5435 fi
5436
5437
5438
5439 # Check whether --enable-tls was given.
5440 if test "${enable_tls+set}" = set; then :
5441 enableval=$enable_tls; if test "$enableval" = "no"
5442 then
5443 try_tls=""
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5445 $as_echo "Disabling thread local support" >&6; }
5446 else
5447 try_tls="yes"
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5449 $as_echo "Enabling thread local support" >&6; }
5450 fi
5451
5452 else
5453 if test -n "$WITH_DIET_LIBC"
5454 then
5455 try_tls=""
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5457 $as_echo "Diet libc does not support thread local support" >&6; }
5458 else
5459 try_tls="yes"
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5461 $as_echo "Try using thread local support by default" >&6; }
5462 fi
5463
5464 fi
5465
5466 if test "$try_tls" = "yes"
5467 then
5468
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5470 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5471 if test "${ac_cv_tls+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474
5475 ax_tls_keywords="__thread __declspec(thread) none"
5476 for ax_tls_keyword in $ax_tls_keywords; do
5477 case $ax_tls_keyword in
5478 none) ac_cv_tls=none ; break ;;
5479 *)
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 #include <stdlib.h>
5483 static void
5484 foo(void) {
5485 static $ax_tls_keyword int bar;
5486 exit(1);
5487 }
5488 int
5489 main ()
5490 {
5491
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"; then :
5497 ac_cv_tls=$ax_tls_keyword ; break
5498 else
5499 ac_cv_tls=none
5500
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 esac
5504 done
5505
5506 fi
5507
5508
5509 if test "$ac_cv_tls" != "none"; then
5510
5511 cat >>confdefs.h <<_ACEOF
5512 #define TLS $ac_cv_tls
5513 _ACEOF
5514
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5517 $as_echo "$ac_cv_tls" >&6; }
5518
5519 fi
5520
5521 # Check whether --enable-uuidd was given.
5522 if test "${enable_uuidd+set}" = set; then :
5523 enableval=$enable_uuidd; if test "$enableval" = "no"
5524 then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5526 $as_echo "Not building uuidd" >&6; }
5527 UUIDD_CMT="#"
5528 else
5529 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5530
5531 UUIDD_CMT=""
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5533 $as_echo "Building uuidd" >&6; }
5534 fi
5535
5536 else
5537 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5538
5539 UUIDD_CMT=""
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5541 $as_echo "Building uuidd by default" >&6; }
5542
5543 fi
5544
5545
5546 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5547
5548 GETTEXT_PACKAGE=e2fsprogs
5549 PACKAGE=e2fsprogs
5550 VERSION="$E2FSPROGS_VERSION"
5551 VERSION=0.14.1
5552
5553 cat >>confdefs.h <<_ACEOF
5554 #define PACKAGE "$PACKAGE"
5555 _ACEOF
5556
5557
5558 cat >>confdefs.h <<_ACEOF
5559 #define VERSION "$VERSION"
5560 _ACEOF
5561
5562
5563
5564
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5567 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5568 set x ${MAKE-make}
5569 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5570 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 cat >conftest.make <<\_ACEOF
5574 SHELL = /bin/sh
5575 all:
5576 @echo '@@@%%%=$(MAKE)=@@@%%%'
5577 _ACEOF
5578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5579 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5580 *@@@%%%=?*=@@@%%%*)
5581 eval ac_cv_prog_make_${ac_make}_set=yes;;
5582 *)
5583 eval ac_cv_prog_make_${ac_make}_set=no;;
5584 esac
5585 rm -f conftest.make
5586 fi
5587 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5589 $as_echo "yes" >&6; }
5590 SET_MAKE=
5591 else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 SET_MAKE="MAKE=${MAKE-make}"
5595 fi
5596
5597 # Find a good install program. We prefer a C program (faster),
5598 # so one script is as good as another. But avoid the broken or
5599 # incompatible versions:
5600 # SysV /etc/install, /usr/sbin/install
5601 # SunOS /usr/etc/install
5602 # IRIX /sbin/install
5603 # AIX /bin/install
5604 # AmigaOS /C/install, which installs bootblocks on floppy discs
5605 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5606 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5607 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5608 # OS/2's system install, which has a completely different semantic
5609 # ./install, which can be erroneously created by make from ./install.sh.
5610 # Reject install programs that cannot install multiple files.
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5612 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5613 if test -z "$INSTALL"; then
5614 if test "${ac_cv_path_install+set}" = set; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 # Account for people who put trailing slashes in PATH elements.
5623 case $as_dir/ in #((
5624 ./ | .// | /[cC]/* | \
5625 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5626 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5627 /usr/ucb/* ) ;;
5628 *)
5629 # OSF1 and SCO ODT 3.0 have their own names for install.
5630 # Don't use installbsd from OSF since it installs stuff as root
5631 # by default.
5632 for ac_prog in ginstall scoinst install; do
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5635 if test $ac_prog = install &&
5636 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5637 # AIX install. It has an incompatible calling convention.
5638 :
5639 elif test $ac_prog = install &&
5640 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5641 # program-specific install script used by HP pwplus--don't use.
5642 :
5643 else
5644 rm -rf conftest.one conftest.two conftest.dir
5645 echo one > conftest.one
5646 echo two > conftest.two
5647 mkdir conftest.dir
5648 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5649 test -s conftest.one && test -s conftest.two &&
5650 test -s conftest.dir/conftest.one &&
5651 test -s conftest.dir/conftest.two
5652 then
5653 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5654 break 3
5655 fi
5656 fi
5657 fi
5658 done
5659 done
5660 ;;
5661 esac
5662
5663 done
5664 IFS=$as_save_IFS
5665
5666 rm -rf conftest.one conftest.two conftest.dir
5667
5668 fi
5669 if test "${ac_cv_path_install+set}" = set; then
5670 INSTALL=$ac_cv_path_install
5671 else
5672 # As a last resort, use the slow shell script. Don't cache a
5673 # value for INSTALL within a source directory, because that will
5674 # break other packages using the cache if that directory is
5675 # removed, or if the value is a relative name.
5676 INSTALL=$ac_install_sh
5677 fi
5678 fi
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5680 $as_echo "$INSTALL" >&6; }
5681
5682 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5683 # It thinks the first close brace ends the variable substitution.
5684 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5685
5686 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5687
5688 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5689
5690
5691 MKINSTALLDIRS=
5692 if test -n "$ac_aux_dir"; then
5693 case "$ac_aux_dir" in
5694 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5695 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5696 esac
5697 fi
5698 if test -z "$MKINSTALLDIRS"; then
5699 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5700 fi
5701
5702
5703
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5705 $as_echo_n "checking whether NLS is requested... " >&6; }
5706 # Check whether --enable-nls was given.
5707 if test "${enable_nls+set}" = set; then :
5708 enableval=$enable_nls; USE_NLS=$enableval
5709 else
5710 USE_NLS=yes
5711 fi
5712
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5714 $as_echo "$USE_NLS" >&6; }
5715
5716
5717
5718
5719
5720
5721 # Prepare PATH_SEPARATOR.
5722 # The user is always right.
5723 if test "${PATH_SEPARATOR+set}" != set; then
5724 echo "#! /bin/sh" >conf$$.sh
5725 echo "exit 0" >>conf$$.sh
5726 chmod +x conf$$.sh
5727 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5728 PATH_SEPARATOR=';'
5729 else
5730 PATH_SEPARATOR=:
5731 fi
5732 rm -f conf$$.sh
5733 fi
5734
5735 # Find out how to test for executable files. Don't use a zero-byte file,
5736 # as systems may use methods other than mode bits to determine executability.
5737 cat >conf$$.file <<_ASEOF
5738 #! /bin/sh
5739 exit 0
5740 _ASEOF
5741 chmod +x conf$$.file
5742 if test -x conf$$.file >/dev/null 2>&1; then
5743 ac_executable_p="test -x"
5744 else
5745 ac_executable_p="test -f"
5746 fi
5747 rm -f conf$$.file
5748
5749 # Extract the first word of "msgfmt", so it can be a program name with args.
5750 set dummy msgfmt; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 case "$MSGFMT" in
5757 [\\/]* | ?:[\\/]*)
5758 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5759 ;;
5760 *)
5761 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5762 for ac_dir in $PATH; do
5763 IFS="$ac_save_IFS"
5764 test -z "$ac_dir" && ac_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5767 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5768 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5769 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5770 break 2
5771 fi
5772 fi
5773 done
5774 done
5775 IFS="$ac_save_IFS"
5776 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5777 ;;
5778 esac
5779 fi
5780 MSGFMT="$ac_cv_path_MSGFMT"
5781 if test "$MSGFMT" != ":"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5783 $as_echo "$MSGFMT" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788
5789 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5790 set dummy gmsgfmt; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 case $GMSGFMT in
5797 [\\/]* | ?:[\\/]*)
5798 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5799 ;;
5800 *)
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5808 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812 done
5813 done
5814 IFS=$as_save_IFS
5815
5816 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5817 ;;
5818 esac
5819 fi
5820 GMSGFMT=$ac_cv_path_GMSGFMT
5821 if test -n "$GMSGFMT"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5823 $as_echo "$GMSGFMT" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829
5830
5831
5832 # Prepare PATH_SEPARATOR.
5833 # The user is always right.
5834 if test "${PATH_SEPARATOR+set}" != set; then
5835 echo "#! /bin/sh" >conf$$.sh
5836 echo "exit 0" >>conf$$.sh
5837 chmod +x conf$$.sh
5838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5839 PATH_SEPARATOR=';'
5840 else
5841 PATH_SEPARATOR=:
5842 fi
5843 rm -f conf$$.sh
5844 fi
5845
5846 # Find out how to test for executable files. Don't use a zero-byte file,
5847 # as systems may use methods other than mode bits to determine executability.
5848 cat >conf$$.file <<_ASEOF
5849 #! /bin/sh
5850 exit 0
5851 _ASEOF
5852 chmod +x conf$$.file
5853 if test -x conf$$.file >/dev/null 2>&1; then
5854 ac_executable_p="test -x"
5855 else
5856 ac_executable_p="test -f"
5857 fi
5858 rm -f conf$$.file
5859
5860 # Extract the first word of "xgettext", so it can be a program name with args.
5861 set dummy xgettext; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 case "$XGETTEXT" in
5868 [\\/]* | ?:[\\/]*)
5869 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5870 ;;
5871 *)
5872 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5873 for ac_dir in $PATH; do
5874 IFS="$ac_save_IFS"
5875 test -z "$ac_dir" && ac_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5878 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5879 (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
5880 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5881 break 2
5882 fi
5883 fi
5884 done
5885 done
5886 IFS="$ac_save_IFS"
5887 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5888 ;;
5889 esac
5890 fi
5891 XGETTEXT="$ac_cv_path_XGETTEXT"
5892 if test "$XGETTEXT" != ":"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5894 $as_echo "$XGETTEXT" >&6; }
5895 else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5898 fi
5899
5900 rm -f messages.po
5901
5902
5903 # Prepare PATH_SEPARATOR.
5904 # The user is always right.
5905 if test "${PATH_SEPARATOR+set}" != set; then
5906 echo "#! /bin/sh" >conf$$.sh
5907 echo "exit 0" >>conf$$.sh
5908 chmod +x conf$$.sh
5909 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5910 PATH_SEPARATOR=';'
5911 else
5912 PATH_SEPARATOR=:
5913 fi
5914 rm -f conf$$.sh
5915 fi
5916
5917 # Find out how to test for executable files. Don't use a zero-byte file,
5918 # as systems may use methods other than mode bits to determine executability.
5919 cat >conf$$.file <<_ASEOF
5920 #! /bin/sh
5921 exit 0
5922 _ASEOF
5923 chmod +x conf$$.file
5924 if test -x conf$$.file >/dev/null 2>&1; then
5925 ac_executable_p="test -x"
5926 else
5927 ac_executable_p="test -f"
5928 fi
5929 rm -f conf$$.file
5930
5931 # Extract the first word of "msgmerge", so it can be a program name with args.
5932 set dummy msgmerge; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 case "$MSGMERGE" in
5939 [\\/]* | ?:[\\/]*)
5940 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5941 ;;
5942 *)
5943 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5944 for ac_dir in $PATH; do
5945 IFS="$ac_save_IFS"
5946 test -z "$ac_dir" && ac_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5949 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5950 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5951 break 2
5952 fi
5953 fi
5954 done
5955 done
5956 IFS="$ac_save_IFS"
5957 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5958 ;;
5959 esac
5960 fi
5961 MSGMERGE="$ac_cv_path_MSGMERGE"
5962 if test "$MSGMERGE" != ":"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5964 $as_echo "$MSGMERGE" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5968 fi
5969
5970
5971 if test "$GMSGFMT" != ":"; then
5972 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5973 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5974 : ;
5975 else
5976 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5978 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5979 GMSGFMT=":"
5980 fi
5981 fi
5982
5983 if test "$XGETTEXT" != ":"; then
5984 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5985 (if $XGETTEXT --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
5986 : ;
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5989 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5990 XGETTEXT=":"
5991 fi
5992 rm -f messages.po
5993 fi
5994
5995 ac_config_commands="$ac_config_commands default-1"
5996
5997
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$RANLIB"; then
6007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 RANLIB=$ac_cv_prog_RANLIB
6027 if test -n "$RANLIB"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6029 $as_echo "$RANLIB" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035
6036 fi
6037 if test -z "$ac_cv_prog_RANLIB"; then
6038 ac_ct_RANLIB=$RANLIB
6039 # Extract the first word of "ranlib", so it can be a program name with args.
6040 set dummy ranlib; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$ac_ct_RANLIB"; then
6047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_ac_ct_RANLIB="ranlib"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6067 if test -n "$ac_ct_RANLIB"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6069 $as_echo "$ac_ct_RANLIB" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074
6075 if test "x$ac_ct_RANLIB" = x; then
6076 RANLIB=":"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 RANLIB=$ac_ct_RANLIB
6085 fi
6086 else
6087 RANLIB="$ac_cv_prog_RANLIB"
6088 fi
6089
6090
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6092 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6093 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096 ac_check_lib_save_LIBS=$LIBS
6097 LIBS="-lcposix $LIBS"
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100
6101 /* Override any GCC internal prototype to avoid an error.
6102 Use char because int might match the return type of a GCC
6103 builtin and then its argument prototype would still apply. */
6104 #ifdef __cplusplus
6105 extern "C"
6106 #endif
6107 char strerror ();
6108 int
6109 main ()
6110 {
6111 return strerror ();
6112 ;
6113 return 0;
6114 }
6115 _ACEOF
6116 if ac_fn_c_try_link "$LINENO"; then :
6117 ac_cv_lib_cposix_strerror=yes
6118 else
6119 ac_cv_lib_cposix_strerror=no
6120 fi
6121 rm -f core conftest.err conftest.$ac_objext \
6122 conftest$ac_exeext conftest.$ac_ext
6123 LIBS=$ac_check_lib_save_LIBS
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6126 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6127 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6128 LIBS="$LIBS -lcposix"
6129 fi
6130
6131
6132
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6135 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6136 if test "${ac_cv_path_GREP+set}" = set; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 if test -z "$GREP"; then
6140 ac_path_GREP_found=false
6141 # Loop through the user's path and test for each of PROGNAME-LIST
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6144 do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_prog in grep ggrep; do
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6150 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6151 # Check for GNU ac_path_GREP and select it if it is found.
6152 # Check for GNU $ac_path_GREP
6153 case `"$ac_path_GREP" --version 2>&1` in
6154 *GNU*)
6155 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6156 *)
6157 ac_count=0
6158 $as_echo_n 0123456789 >"conftest.in"
6159 while :
6160 do
6161 cat "conftest.in" "conftest.in" >"conftest.tmp"
6162 mv "conftest.tmp" "conftest.in"
6163 cp "conftest.in" "conftest.nl"
6164 $as_echo 'GREP' >> "conftest.nl"
6165 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6167 as_fn_arith $ac_count + 1 && ac_count=$as_val
6168 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6169 # Best one so far, save it but keep looking for a better one
6170 ac_cv_path_GREP="$ac_path_GREP"
6171 ac_path_GREP_max=$ac_count
6172 fi
6173 # 10*(2^10) chars as input seems more than enough
6174 test $ac_count -gt 10 && break
6175 done
6176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6177 esac
6178
6179 $ac_path_GREP_found && break 3
6180 done
6181 done
6182 done
6183 IFS=$as_save_IFS
6184 if test -z "$ac_cv_path_GREP"; then
6185 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6186 fi
6187 else
6188 ac_cv_path_GREP=$GREP
6189 fi
6190
6191 fi
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6193 $as_echo "$ac_cv_path_GREP" >&6; }
6194 GREP="$ac_cv_path_GREP"
6195
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6198 $as_echo_n "checking for egrep... " >&6; }
6199 if test "${ac_cv_path_EGREP+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6203 then ac_cv_path_EGREP="$GREP -E"
6204 else
6205 if test -z "$EGREP"; then
6206 ac_path_EGREP_found=false
6207 # Loop through the user's path and test for each of PROGNAME-LIST
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6210 do
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_prog in egrep; do
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6216 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6217 # Check for GNU ac_path_EGREP and select it if it is found.
6218 # Check for GNU $ac_path_EGREP
6219 case `"$ac_path_EGREP" --version 2>&1` in
6220 *GNU*)
6221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6222 *)
6223 ac_count=0
6224 $as_echo_n 0123456789 >"conftest.in"
6225 while :
6226 do
6227 cat "conftest.in" "conftest.in" >"conftest.tmp"
6228 mv "conftest.tmp" "conftest.in"
6229 cp "conftest.in" "conftest.nl"
6230 $as_echo 'EGREP' >> "conftest.nl"
6231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6233 as_fn_arith $ac_count + 1 && ac_count=$as_val
6234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6235 # Best one so far, save it but keep looking for a better one
6236 ac_cv_path_EGREP="$ac_path_EGREP"
6237 ac_path_EGREP_max=$ac_count
6238 fi
6239 # 10*(2^10) chars as input seems more than enough
6240 test $ac_count -gt 10 && break
6241 done
6242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6243 esac
6244
6245 $ac_path_EGREP_found && break 3
6246 done
6247 done
6248 done
6249 IFS=$as_save_IFS
6250 if test -z "$ac_cv_path_EGREP"; then
6251 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6252 fi
6253 else
6254 ac_cv_path_EGREP=$EGREP
6255 fi
6256
6257 fi
6258 fi
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6260 $as_echo "$ac_cv_path_EGREP" >&6; }
6261 EGREP="$ac_cv_path_EGREP"
6262
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6265 $as_echo_n "checking for ANSI C header files... " >&6; }
6266 if test "${ac_cv_header_stdc+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 #include <stdlib.h>
6272 #include <stdarg.h>
6273 #include <string.h>
6274 #include <float.h>
6275
6276 int
6277 main ()
6278 {
6279
6280 ;
6281 return 0;
6282 }
6283 _ACEOF
6284 if ac_fn_c_try_compile "$LINENO"; then :
6285 ac_cv_header_stdc=yes
6286 else
6287 ac_cv_header_stdc=no
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290
6291 if test $ac_cv_header_stdc = yes; then
6292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 #include <string.h>
6296
6297 _ACEOF
6298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299 $EGREP "memchr" >/dev/null 2>&1; then :
6300
6301 else
6302 ac_cv_header_stdc=no
6303 fi
6304 rm -f conftest*
6305
6306 fi
6307
6308 if test $ac_cv_header_stdc = yes; then
6309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 #include <stdlib.h>
6313
6314 _ACEOF
6315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6316 $EGREP "free" >/dev/null 2>&1; then :
6317
6318 else
6319 ac_cv_header_stdc=no
6320 fi
6321 rm -f conftest*
6322
6323 fi
6324
6325 if test $ac_cv_header_stdc = yes; then
6326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6327 if test "$cross_compiling" = yes; then :
6328 :
6329 else
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6332 #include <ctype.h>
6333 #include <stdlib.h>
6334 #if ((' ' & 0x0FF) == 0x020)
6335 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6336 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6337 #else
6338 # define ISLOWER(c) \
6339 (('a' <= (c) && (c) <= 'i') \
6340 || ('j' <= (c) && (c) <= 'r') \
6341 || ('s' <= (c) && (c) <= 'z'))
6342 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6343 #endif
6344
6345 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6346 int
6347 main ()
6348 {
6349 int i;
6350 for (i = 0; i < 256; i++)
6351 if (XOR (islower (i), ISLOWER (i))
6352 || toupper (i) != TOUPPER (i))
6353 return 2;
6354 return 0;
6355 }
6356 _ACEOF
6357 if ac_fn_c_try_run "$LINENO"; then :
6358
6359 else
6360 ac_cv_header_stdc=no
6361 fi
6362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6363 conftest.$ac_objext conftest.beam conftest.$ac_ext
6364 fi
6365
6366 fi
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6369 $as_echo "$ac_cv_header_stdc" >&6; }
6370 if test $ac_cv_header_stdc = yes; then
6371
6372 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6373
6374 fi
6375
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6377 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6378 if test "${ac_cv_c_const+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383
6384 int
6385 main ()
6386 {
6387 /* FIXME: Include the comments suggested by Paul. */
6388 #ifndef __cplusplus
6389 /* Ultrix mips cc rejects this. */
6390 typedef int charset[2];
6391 const charset cs;
6392 /* SunOS 4.1.1 cc rejects this. */
6393 char const *const *pcpcc;
6394 char **ppc;
6395 /* NEC SVR4.0.2 mips cc rejects this. */
6396 struct point {int x, y;};
6397 static struct point const zero = {0,0};
6398 /* AIX XL C 1.02.0.0 rejects this.
6399 It does not let you subtract one const X* pointer from another in
6400 an arm of an if-expression whose if-part is not a constant
6401 expression */
6402 const char *g = "string";
6403 pcpcc = &g + (g ? g-g : 0);
6404 /* HPUX 7.0 cc rejects these. */
6405 ++pcpcc;
6406 ppc = (char**) pcpcc;
6407 pcpcc = (char const *const *) ppc;
6408 { /* SCO 3.2v4 cc rejects this. */
6409 char *t;
6410 char const *s = 0 ? (char *) 0 : (char const *) 0;
6411
6412 *t++ = 0;
6413 if (s) return 0;
6414 }
6415 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6416 int x[] = {25, 17};
6417 const int *foo = &x[0];
6418 ++foo;
6419 }
6420 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6421 typedef const int *iptr;
6422 iptr p = 0;
6423 ++p;
6424 }
6425 { /* AIX XL C 1.02.0.0 rejects this saying
6426 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6427 struct s { int j; const int *ap[3]; };
6428 struct s *b; b->j = 5;
6429 }
6430 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6431 const int foo = 10;
6432 if (!foo) return 0;
6433 }
6434 return !cs[0] && !zero.x;
6435 #endif
6436
6437 ;
6438 return 0;
6439 }
6440 _ACEOF
6441 if ac_fn_c_try_compile "$LINENO"; then :
6442 ac_cv_c_const=yes
6443 else
6444 ac_cv_c_const=no
6445 fi
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 fi
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6449 $as_echo "$ac_cv_c_const" >&6; }
6450 if test $ac_cv_c_const = no; then
6451
6452 $as_echo "#define const /**/" >>confdefs.h
6453
6454 fi
6455
6456
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6458 $as_echo_n "checking for signed... " >&6; }
6459 if test "${bh_cv_c_signed+set}" = set; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464
6465 int
6466 main ()
6467 {
6468 signed char x;
6469 ;
6470 return 0;
6471 }
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474 bh_cv_c_signed=yes
6475 else
6476 bh_cv_c_signed=no
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 fi
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6481 $as_echo "$bh_cv_c_signed" >&6; }
6482 if test $bh_cv_c_signed = no; then
6483
6484 $as_echo "#define signed /**/" >>confdefs.h
6485
6486 fi
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6489 $as_echo_n "checking for inline... " >&6; }
6490 if test "${ac_cv_c_inline+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 ac_cv_c_inline=no
6494 for ac_kw in inline __inline__ __inline; do
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 #ifndef __cplusplus
6498 typedef int foo_t;
6499 static $ac_kw foo_t static_foo () {return 0; }
6500 $ac_kw foo_t foo () {return 0; }
6501 #endif
6502
6503 _ACEOF
6504 if ac_fn_c_try_compile "$LINENO"; then :
6505 ac_cv_c_inline=$ac_kw
6506 fi
6507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508 test "$ac_cv_c_inline" != no && break
6509 done
6510
6511 fi
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6513 $as_echo "$ac_cv_c_inline" >&6; }
6514
6515 case $ac_cv_c_inline in
6516 inline | yes) ;;
6517 *)
6518 case $ac_cv_c_inline in
6519 no) ac_val=;;
6520 *) ac_val=$ac_cv_c_inline;;
6521 esac
6522 cat >>confdefs.h <<_ACEOF
6523 #ifndef __cplusplus
6524 #define inline $ac_val
6525 #endif
6526 _ACEOF
6527 ;;
6528 esac
6529
6530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6532 inttypes.h stdint.h unistd.h
6533 do :
6534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6535 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6536 "
6537 eval as_val=\$$as_ac_Header
6538 if test "x$as_val" = x""yes; then :
6539 cat >>confdefs.h <<_ACEOF
6540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 _ACEOF
6542
6543 fi
6544
6545 done
6546
6547
6548 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6549 if test "x$ac_cv_type_off_t" = x""yes; then :
6550
6551 else
6552
6553 cat >>confdefs.h <<_ACEOF
6554 #define off_t long int
6555 _ACEOF
6556
6557 fi
6558
6559 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6560 if test "x$ac_cv_type_size_t" = x""yes; then :
6561
6562 else
6563
6564 cat >>confdefs.h <<_ACEOF
6565 #define size_t unsigned int
6566 _ACEOF
6567
6568 fi
6569
6570
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6572 $as_echo_n "checking for long long... " >&6; }
6573 if test "${ac_cv_type_long_long+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578 long long ll = 1LL; int i = 63;
6579 int
6580 main ()
6581 {
6582 long long llmax = (long long) -1;
6583 return ll << i | ll >> i | llmax / ll | llmax % ll;
6584 ;
6585 return 0;
6586 }
6587 _ACEOF
6588 if ac_fn_c_try_link "$LINENO"; then :
6589 ac_cv_type_long_long=yes
6590 else
6591 ac_cv_type_long_long=no
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext \
6594 conftest$ac_exeext conftest.$ac_ext
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6597 $as_echo "$ac_cv_type_long_long" >&6; }
6598 if test $ac_cv_type_long_long = yes; then
6599
6600 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6601
6602 fi
6603
6604
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6606 $as_echo_n "checking for long double... " >&6; }
6607 if test "${gt_cv_c_long_double+set}" = set; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test "$GCC" = yes; then
6611 gt_cv_c_long_double=yes
6612 else
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615
6616 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6617 long double foo = 0.0;
6618 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6619 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6620
6621 int
6622 main ()
6623 {
6624
6625 ;
6626 return 0;
6627 }
6628 _ACEOF
6629 if ac_fn_c_try_compile "$LINENO"; then :
6630 gt_cv_c_long_double=yes
6631 else
6632 gt_cv_c_long_double=no
6633 fi
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 fi
6636 fi
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6638 $as_echo "$gt_cv_c_long_double" >&6; }
6639 if test $gt_cv_c_long_double = yes; then
6640
6641 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6642
6643 fi
6644
6645
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6647 $as_echo_n "checking for wchar_t... " >&6; }
6648 if test "${gt_cv_c_wchar_t+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 #include <stddef.h>
6654 wchar_t foo = (wchar_t)'\0';
6655 int
6656 main ()
6657 {
6658
6659 ;
6660 return 0;
6661 }
6662 _ACEOF
6663 if ac_fn_c_try_compile "$LINENO"; then :
6664 gt_cv_c_wchar_t=yes
6665 else
6666 gt_cv_c_wchar_t=no
6667 fi
6668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 fi
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6671 $as_echo "$gt_cv_c_wchar_t" >&6; }
6672 if test $gt_cv_c_wchar_t = yes; then
6673
6674 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6675
6676 fi
6677
6678
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6680 $as_echo_n "checking for wint_t... " >&6; }
6681 if test "${gt_cv_c_wint_t+set}" = set; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 #include <wchar.h>
6687 wint_t foo = (wchar_t)'\0';
6688 int
6689 main ()
6690 {
6691
6692 ;
6693 return 0;
6694 }
6695 _ACEOF
6696 if ac_fn_c_try_compile "$LINENO"; then :
6697 gt_cv_c_wint_t=yes
6698 else
6699 gt_cv_c_wint_t=no
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6704 $as_echo "$gt_cv_c_wint_t" >&6; }
6705 if test $gt_cv_c_wint_t = yes; then
6706
6707 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6708
6709 fi
6710
6711
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6713 $as_echo_n "checking for inttypes.h... " >&6; }
6714 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #include <sys/types.h>
6720 #include <inttypes.h>
6721 int
6722 main ()
6723 {
6724 uintmax_t i = (uintmax_t) -1;
6725 ;
6726 return 0;
6727 }
6728 _ACEOF
6729 if ac_fn_c_try_compile "$LINENO"; then :
6730 jm_ac_cv_header_inttypes_h=yes
6731 else
6732 jm_ac_cv_header_inttypes_h=no
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 fi
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6737 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6738 if test $jm_ac_cv_header_inttypes_h = yes; then
6739
6740 cat >>confdefs.h <<_ACEOF
6741 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6742 _ACEOF
6743
6744 fi
6745
6746
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6748 $as_echo_n "checking for stdint.h... " >&6; }
6749 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6754 #include <sys/types.h>
6755 #include <stdint.h>
6756 int
6757 main ()
6758 {
6759 uintmax_t i = (uintmax_t) -1;
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 jm_ac_cv_header_stdint_h=yes
6766 else
6767 jm_ac_cv_header_stdint_h=no
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770 fi
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6772 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6773 if test $jm_ac_cv_header_stdint_h = yes; then
6774
6775 cat >>confdefs.h <<_ACEOF
6776 #define HAVE_STDINT_H_WITH_UINTMAX 1
6777 _ACEOF
6778
6779 fi
6780
6781
6782
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6785 $as_echo_n "checking for intmax_t... " >&6; }
6786 if test "${gt_cv_c_intmax_t+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791
6792 #include <stddef.h>
6793 #include <stdlib.h>
6794 #if HAVE_STDINT_H_WITH_UINTMAX
6795 #include <stdint.h>
6796 #endif
6797 #if HAVE_INTTYPES_H_WITH_UINTMAX
6798 #include <inttypes.h>
6799 #endif
6800
6801 int
6802 main ()
6803 {
6804 intmax_t x = -1;
6805 ;
6806 return 0;
6807 }
6808 _ACEOF
6809 if ac_fn_c_try_compile "$LINENO"; then :
6810 gt_cv_c_intmax_t=yes
6811 else
6812 gt_cv_c_intmax_t=no
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 fi
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6817 $as_echo "$gt_cv_c_intmax_t" >&6; }
6818 if test $gt_cv_c_intmax_t = yes; then
6819
6820 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6821
6822 fi
6823
6824
6825
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6827 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6828 if test "${gt_cv_func_printf_posix+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831
6832 if test "$cross_compiling" = yes; then :
6833
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836
6837 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6838 notposix
6839 #endif
6840
6841 _ACEOF
6842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843 $EGREP "notposix" >/dev/null 2>&1; then :
6844 gt_cv_func_printf_posix="guessing no"
6845 else
6846 gt_cv_func_printf_posix="guessing yes"
6847 fi
6848 rm -f conftest*
6849
6850
6851 else
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854
6855 #include <stdio.h>
6856 #include <string.h>
6857 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6858 dollar expansion (possibly an autoconf bug). */
6859 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6860 static char buf[100];
6861 int main ()
6862 {
6863 sprintf (buf, format, 33, 55);
6864 return (strcmp (buf, "55 33") != 0);
6865 }
6866 _ACEOF
6867 if ac_fn_c_try_run "$LINENO"; then :
6868 gt_cv_func_printf_posix=yes
6869 else
6870 gt_cv_func_printf_posix=no
6871 fi
6872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6873 conftest.$ac_objext conftest.beam conftest.$ac_ext
6874 fi
6875
6876
6877 fi
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6879 $as_echo "$gt_cv_func_printf_posix" >&6; }
6880 case $gt_cv_func_printf_posix in
6881 *yes)
6882
6883 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6884
6885 ;;
6886 esac
6887
6888 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6889 # for constant arguments. Useless!
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6891 $as_echo_n "checking for working alloca.h... " >&6; }
6892 if test "${ac_cv_working_alloca_h+set}" = set; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 #include <alloca.h>
6898 int
6899 main ()
6900 {
6901 char *p = (char *) alloca (2 * sizeof (int));
6902 if (p) return 0;
6903 ;
6904 return 0;
6905 }
6906 _ACEOF
6907 if ac_fn_c_try_link "$LINENO"; then :
6908 ac_cv_working_alloca_h=yes
6909 else
6910 ac_cv_working_alloca_h=no
6911 fi
6912 rm -f core conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
6914 fi
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6916 $as_echo "$ac_cv_working_alloca_h" >&6; }
6917 if test $ac_cv_working_alloca_h = yes; then
6918
6919 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6920
6921 fi
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6924 $as_echo_n "checking for alloca... " >&6; }
6925 if test "${ac_cv_func_alloca_works+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 #ifdef __GNUC__
6931 # define alloca __builtin_alloca
6932 #else
6933 # ifdef _MSC_VER
6934 # include <malloc.h>
6935 # define alloca _alloca
6936 # else
6937 # ifdef HAVE_ALLOCA_H
6938 # include <alloca.h>
6939 # else
6940 # ifdef _AIX
6941 #pragma alloca
6942 # else
6943 # ifndef alloca /* predefined by HP cc +Olibcalls */
6944 char *alloca ();
6945 # endif
6946 # endif
6947 # endif
6948 # endif
6949 #endif
6950
6951 int
6952 main ()
6953 {
6954 char *p = (char *) alloca (1);
6955 if (p) return 0;
6956 ;
6957 return 0;
6958 }
6959 _ACEOF
6960 if ac_fn_c_try_link "$LINENO"; then :
6961 ac_cv_func_alloca_works=yes
6962 else
6963 ac_cv_func_alloca_works=no
6964 fi
6965 rm -f core conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6967 fi
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6969 $as_echo "$ac_cv_func_alloca_works" >&6; }
6970
6971 if test $ac_cv_func_alloca_works = yes; then
6972
6973 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6974
6975 else
6976 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6977 # that cause trouble. Some versions do not even contain alloca or
6978 # contain a buggy version. If you still want to use their alloca,
6979 # use ar to extract alloca.o from them instead of compiling alloca.c.
6980
6981 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6982
6983 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6984
6985
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6987 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6988 if test "${ac_cv_os_cray+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 #if defined CRAY && ! defined CRAY2
6994 webecray
6995 #else
6996 wenotbecray
6997 #endif
6998
6999 _ACEOF
7000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7001 $EGREP "webecray" >/dev/null 2>&1; then :
7002 ac_cv_os_cray=yes
7003 else
7004 ac_cv_os_cray=no
7005 fi
7006 rm -f conftest*
7007
7008 fi
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7010 $as_echo "$ac_cv_os_cray" >&6; }
7011 if test $ac_cv_os_cray = yes; then
7012 for ac_func in _getb67 GETB67 getb67; do
7013 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7014 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7015 eval as_val=\$$as_ac_var
7016 if test "x$as_val" = x""yes; then :
7017
7018 cat >>confdefs.h <<_ACEOF
7019 #define CRAY_STACKSEG_END $ac_func
7020 _ACEOF
7021
7022 break
7023 fi
7024
7025 done
7026 fi
7027
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7029 $as_echo_n "checking stack direction for C alloca... " >&6; }
7030 if test "${ac_cv_c_stack_direction+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 if test "$cross_compiling" = yes; then :
7034 ac_cv_c_stack_direction=0
7035 else
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 $ac_includes_default
7039 int
7040 find_stack_direction ()
7041 {
7042 static char *addr = 0;
7043 auto char dummy;
7044 if (addr == 0)
7045 {
7046 addr = &dummy;
7047 return find_stack_direction ();
7048 }
7049 else
7050 return (&dummy > addr) ? 1 : -1;
7051 }
7052
7053 int
7054 main ()
7055 {
7056 return find_stack_direction () < 0;
7057 }
7058 _ACEOF
7059 if ac_fn_c_try_run "$LINENO"; then :
7060 ac_cv_c_stack_direction=1
7061 else
7062 ac_cv_c_stack_direction=-1
7063 fi
7064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7065 conftest.$ac_objext conftest.beam conftest.$ac_ext
7066 fi
7067
7068 fi
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7070 $as_echo "$ac_cv_c_stack_direction" >&6; }
7071 cat >>confdefs.h <<_ACEOF
7072 #define STACK_DIRECTION $ac_cv_c_stack_direction
7073 _ACEOF
7074
7075
7076 fi
7077
7078
7079
7080
7081 for ac_header in $ac_header_list
7082 do :
7083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7084 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7085 "
7086 eval as_val=\$$as_ac_Header
7087 if test "x$as_val" = x""yes; then :
7088 cat >>confdefs.h <<_ACEOF
7089 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7090 _ACEOF
7091
7092 fi
7093
7094 done
7095
7096
7097
7098
7099
7100
7101
7102
7103 for ac_func in getpagesize
7104 do :
7105 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7106 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7107 cat >>confdefs.h <<_ACEOF
7108 #define HAVE_GETPAGESIZE 1
7109 _ACEOF
7110
7111 fi
7112 done
7113
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7115 $as_echo_n "checking for working mmap... " >&6; }
7116 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7117 $as_echo_n "(cached) " >&6
7118 else
7119 if test "$cross_compiling" = yes; then :
7120 ac_cv_func_mmap_fixed_mapped=no
7121 else
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7124 $ac_includes_default
7125 /* malloc might have been renamed as rpl_malloc. */
7126 #undef malloc
7127
7128 /* Thanks to Mike Haertel and Jim Avera for this test.
7129 Here is a matrix of mmap possibilities:
7130 mmap private not fixed
7131 mmap private fixed at somewhere currently unmapped
7132 mmap private fixed at somewhere already mapped
7133 mmap shared not fixed
7134 mmap shared fixed at somewhere currently unmapped
7135 mmap shared fixed at somewhere already mapped
7136 For private mappings, we should verify that changes cannot be read()
7137 back from the file, nor mmap's back from the file at a different
7138 address. (There have been systems where private was not correctly
7139 implemented like the infamous i386 svr4.0, and systems where the
7140 VM page cache was not coherent with the file system buffer cache
7141 like early versions of FreeBSD and possibly contemporary NetBSD.)
7142 For shared mappings, we should conversely verify that changes get
7143 propagated back to all the places they're supposed to be.
7144
7145 Grep wants private fixed already mapped.
7146 The main things grep needs to know about mmap are:
7147 * does it exist and is it safe to write into the mmap'd area
7148 * how to use it (BSD variants) */
7149
7150 #include <fcntl.h>
7151 #include <sys/mman.h>
7152
7153 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7154 char *malloc ();
7155 #endif
7156
7157 /* This mess was copied from the GNU getpagesize.h. */
7158 #ifndef HAVE_GETPAGESIZE
7159 # ifdef _SC_PAGESIZE
7160 # define getpagesize() sysconf(_SC_PAGESIZE)
7161 # else /* no _SC_PAGESIZE */
7162 # ifdef HAVE_SYS_PARAM_H
7163 # include <sys/param.h>
7164 # ifdef EXEC_PAGESIZE
7165 # define getpagesize() EXEC_PAGESIZE
7166 # else /* no EXEC_PAGESIZE */
7167 # ifdef NBPG
7168 # define getpagesize() NBPG * CLSIZE
7169 # ifndef CLSIZE
7170 # define CLSIZE 1
7171 # endif /* no CLSIZE */
7172 # else /* no NBPG */
7173 # ifdef NBPC
7174 # define getpagesize() NBPC
7175 # else /* no NBPC */
7176 # ifdef PAGESIZE
7177 # define getpagesize() PAGESIZE
7178 # endif /* PAGESIZE */
7179 # endif /* no NBPC */
7180 # endif /* no NBPG */
7181 # endif /* no EXEC_PAGESIZE */
7182 # else /* no HAVE_SYS_PARAM_H */
7183 # define getpagesize() 8192 /* punt totally */
7184 # endif /* no HAVE_SYS_PARAM_H */
7185 # endif /* no _SC_PAGESIZE */
7186
7187 #endif /* no HAVE_GETPAGESIZE */
7188
7189 int
7190 main ()
7191 {
7192 char *data, *data2, *data3;
7193 const char *cdata2;
7194 int i, pagesize;
7195 int fd, fd2;
7196
7197 pagesize = getpagesize ();
7198
7199 /* First, make a file with some known garbage in it. */
7200 data = (char *) malloc (pagesize);
7201 if (!data)
7202 return 1;
7203 for (i = 0; i < pagesize; ++i)
7204 *(data + i) = rand ();
7205 umask (0);
7206 fd = creat ("conftest.mmap", 0600);
7207 if (fd < 0)
7208 return 2;
7209 if (write (fd, data, pagesize) != pagesize)
7210 return 3;
7211 close (fd);
7212
7213 /* Next, check that the tail of a page is zero-filled. File must have
7214 non-zero length, otherwise we risk SIGBUS for entire page. */
7215 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7216 if (fd2 < 0)
7217 return 4;
7218 cdata2 = "";
7219 if (write (fd2, cdata2, 1) != 1)
7220 return 5;
7221 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7222 if (data2 == MAP_FAILED)
7223 return 6;
7224 for (i = 0; i < pagesize; ++i)
7225 if (*(data2 + i))
7226 return 7;
7227 close (fd2);
7228 if (munmap (data2, pagesize))
7229 return 8;
7230
7231 /* Next, try to mmap the file at a fixed address which already has
7232 something else allocated at it. If we can, also make sure that
7233 we see the same garbage. */
7234 fd = open ("conftest.mmap", O_RDWR);
7235 if (fd < 0)
7236 return 9;
7237 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7238 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7239 return 10;
7240 for (i = 0; i < pagesize; ++i)
7241 if (*(data + i) != *(data2 + i))
7242 return 11;
7243
7244 /* Finally, make sure that changes to the mapped area do not
7245 percolate back to the file as seen by read(). (This is a bug on
7246 some variants of i386 svr4.0.) */
7247 for (i = 0; i < pagesize; ++i)
7248 *(data2 + i) = *(data2 + i) + 1;
7249 data3 = (char *) malloc (pagesize);
7250 if (!data3)
7251 return 12;
7252 if (read (fd, data3, pagesize) != pagesize)
7253 return 13;
7254 for (i = 0; i < pagesize; ++i)
7255 if (*(data + i) != *(data3 + i))
7256 return 14;
7257 close (fd);
7258 return 0;
7259 }
7260 _ACEOF
7261 if ac_fn_c_try_run "$LINENO"; then :
7262 ac_cv_func_mmap_fixed_mapped=yes
7263 else
7264 ac_cv_func_mmap_fixed_mapped=no
7265 fi
7266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7267 conftest.$ac_objext conftest.beam conftest.$ac_ext
7268 fi
7269
7270 fi
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7272 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7273 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7274
7275 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7276
7277 fi
7278 rm -f conftest.mmap conftest.txt
7279
7280
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7282 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7283 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288
7289 #include <features.h>
7290 #ifdef __GNU_LIBRARY__
7291 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7292 Lucky GNU user
7293 #endif
7294 #endif
7295
7296 _ACEOF
7297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7299 ac_cv_gnu_library_2_1=yes
7300 else
7301 ac_cv_gnu_library_2_1=no
7302 fi
7303 rm -f conftest*
7304
7305
7306
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7309 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7310
7311 GLIBC21="$ac_cv_gnu_library_2_1"
7312
7313
7314
7315
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7317 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7318 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321
7322 if test "$cross_compiling" = yes; then :
7323
7324 # Guess based on the CPU.
7325 case "$host_cpu" in
7326 alpha* | i3456786 | m68k | s390*)
7327 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7328 *)
7329 gt_cv_int_divbyzero_sigfpe="guessing no";;
7330 esac
7331
7332 else
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7335
7336 #include <stdlib.h>
7337 #include <signal.h>
7338
7339 static void
7340 #ifdef __cplusplus
7341 sigfpe_handler (int sig)
7342 #else
7343 sigfpe_handler (sig) int sig;
7344 #endif
7345 {
7346 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7347 exit (sig != SIGFPE);
7348 }
7349
7350 int x = 1;
7351 int y = 0;
7352 int z;
7353 int nan;
7354
7355 int main ()
7356 {
7357 signal (SIGFPE, sigfpe_handler);
7358 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7359 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7360 signal (SIGTRAP, sigfpe_handler);
7361 #endif
7362 /* Linux/SPARC yields signal SIGILL. */
7363 #if defined (__sparc__) && defined (__linux__)
7364 signal (SIGILL, sigfpe_handler);
7365 #endif
7366
7367 z = x / y;
7368 nan = y / y;
7369 exit (1);
7370 }
7371
7372 _ACEOF
7373 if ac_fn_c_try_run "$LINENO"; then :
7374 gt_cv_int_divbyzero_sigfpe=yes
7375 else
7376 gt_cv_int_divbyzero_sigfpe=no
7377 fi
7378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7379 conftest.$ac_objext conftest.beam conftest.$ac_ext
7380 fi
7381
7382
7383 fi
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7385 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7386 case "$gt_cv_int_divbyzero_sigfpe" in
7387 *yes) value=1;;
7388 *) value=0;;
7389 esac
7390
7391 cat >>confdefs.h <<_ACEOF
7392 #define INTDIV0_RAISES_SIGFPE $value
7393 _ACEOF
7394
7395
7396
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7398 $as_echo_n "checking for unsigned long long... " >&6; }
7399 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 unsigned long long ull = 1ULL; int i = 63;
7405 int
7406 main ()
7407 {
7408 unsigned long long ullmax = (unsigned long long) -1;
7409 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7410 ;
7411 return 0;
7412 }
7413 _ACEOF
7414 if ac_fn_c_try_link "$LINENO"; then :
7415 ac_cv_type_unsigned_long_long=yes
7416 else
7417 ac_cv_type_unsigned_long_long=no
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext \
7420 conftest$ac_exeext conftest.$ac_ext
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7423 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7424 if test $ac_cv_type_unsigned_long_long = yes; then
7425
7426 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7427
7428 fi
7429
7430
7431
7432
7433 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7434
7435 test $ac_cv_type_unsigned_long_long = yes \
7436 && ac_type='unsigned long long' \
7437 || ac_type='unsigned long'
7438
7439 cat >>confdefs.h <<_ACEOF
7440 #define uintmax_t $ac_type
7441 _ACEOF
7442
7443 else
7444
7445 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7446
7447 fi
7448
7449
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7451 $as_echo_n "checking for inttypes.h... " >&6; }
7452 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7458 #include <sys/types.h>
7459 #include <inttypes.h>
7460 int
7461 main ()
7462 {
7463
7464 ;
7465 return 0;
7466 }
7467 _ACEOF
7468 if ac_fn_c_try_compile "$LINENO"; then :
7469 gt_cv_header_inttypes_h=yes
7470 else
7471 gt_cv_header_inttypes_h=no
7472 fi
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474
7475 fi
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7477 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7478 if test $gt_cv_header_inttypes_h = yes; then
7479
7480 cat >>confdefs.h <<_ACEOF
7481 #define HAVE_INTTYPES_H 1
7482 _ACEOF
7483
7484 fi
7485
7486
7487
7488 if test $gt_cv_header_inttypes_h = yes; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7490 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7491 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 #include <inttypes.h>
7498 #ifdef PRId32
7499 char *p = PRId32;
7500 #endif
7501
7502 int
7503 main ()
7504 {
7505
7506 ;
7507 return 0;
7508 }
7509 _ACEOF
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511 gt_cv_inttypes_pri_broken=no
7512 else
7513 gt_cv_inttypes_pri_broken=yes
7514 fi
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516
7517 fi
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7519 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7520 fi
7521 if test "$gt_cv_inttypes_pri_broken" = yes; then
7522
7523 cat >>confdefs.h <<_ACEOF
7524 #define PRI_MACROS_BROKEN 1
7525 _ACEOF
7526
7527 fi
7528
7529
7530 for ac_header in stdint.h
7531 do :
7532 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7533 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7534 cat >>confdefs.h <<_ACEOF
7535 #define HAVE_STDINT_H 1
7536 _ACEOF
7537
7538 fi
7539
7540 done
7541
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7543 $as_echo_n "checking for SIZE_MAX... " >&6; }
7544 result=
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547
7548 #include <limits.h>
7549 #if HAVE_STDINT_H
7550 #include <stdint.h>
7551 #endif
7552 #ifdef SIZE_MAX
7553 Found it
7554 #endif
7555
7556 _ACEOF
7557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7558 $EGREP "Found it" >/dev/null 2>&1; then :
7559 result=yes
7560 fi
7561 rm -f conftest*
7562
7563 if test -z "$result"; then
7564 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7565
7566 else
7567 result=?
7568 fi
7569
7570
7571 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7572
7573 else
7574 result=?
7575 fi
7576
7577
7578 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7579
7580 else
7581 result=?
7582 fi
7583
7584
7585 if test "$fits_in_uint" = 1; then
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7588 #include <stddef.h>
7589 extern size_t foo;
7590 extern unsigned long foo;
7591
7592 int
7593 main ()
7594 {
7595
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 if ac_fn_c_try_compile "$LINENO"; then :
7601 fits_in_uint=0
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 fi
7605 if test -z "$result"; then
7606 if test "$fits_in_uint" = 1; then
7607 result="$res_hi$res_lo"U
7608 else
7609 result="$res_hi$res_lo"UL
7610 fi
7611 else
7612 result='~(size_t)0'
7613 fi
7614 fi
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7616 $as_echo "$result" >&6; }
7617 if test "$result" != yes; then
7618
7619 cat >>confdefs.h <<_ACEOF
7620 #define SIZE_MAX $result
7621 _ACEOF
7622
7623 fi
7624
7625
7626
7627 for ac_header in stdint.h
7628 do :
7629 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7630 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7631 cat >>confdefs.h <<_ACEOF
7632 #define HAVE_STDINT_H 1
7633 _ACEOF
7634
7635 fi
7636
7637 done
7638
7639
7640
7641 if test "X$prefix" = "XNONE"; then
7642 acl_final_prefix="$ac_default_prefix"
7643 else
7644 acl_final_prefix="$prefix"
7645 fi
7646 if test "X$exec_prefix" = "XNONE"; then
7647 acl_final_exec_prefix='${prefix}'
7648 else
7649 acl_final_exec_prefix="$exec_prefix"
7650 fi
7651 acl_save_prefix="$prefix"
7652 prefix="$acl_final_prefix"
7653 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7654 prefix="$acl_save_prefix"
7655
7656
7657 # Check whether --with-gnu-ld was given.
7658 if test "${with_gnu_ld+set}" = set; then :
7659 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7660 else
7661 with_gnu_ld=no
7662 fi
7663
7664 # Prepare PATH_SEPARATOR.
7665 # The user is always right.
7666 if test "${PATH_SEPARATOR+set}" != set; then
7667 echo "#! /bin/sh" >conf$$.sh
7668 echo "exit 0" >>conf$$.sh
7669 chmod +x conf$$.sh
7670 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7671 PATH_SEPARATOR=';'
7672 else
7673 PATH_SEPARATOR=:
7674 fi
7675 rm -f conf$$.sh
7676 fi
7677 ac_prog=ld
7678 if test "$GCC" = yes; then
7679 # Check if gcc -print-prog-name=ld gives a path.
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7681 $as_echo_n "checking for ld used by GCC... " >&6; }
7682 case $host in
7683 *-*-mingw*)
7684 # gcc leaves a trailing carriage return which upsets mingw
7685 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7686 *)
7687 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7688 esac
7689 case $ac_prog in
7690 # Accept absolute paths.
7691 [\\/]* | [A-Za-z]:[\\/]*)
7692 re_direlt='/[^/][^/]*/\.\./'
7693 # Canonicalize the path of ld
7694 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7695 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7696 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7697 done
7698 test -z "$LD" && LD="$ac_prog"
7699 ;;
7700 "")
7701 # If it fails, then pretend we aren't using GCC.
7702 ac_prog=ld
7703 ;;
7704 *)
7705 # If it is relative, then search for the first ld in PATH.
7706 with_gnu_ld=unknown
7707 ;;
7708 esac
7709 elif test "$with_gnu_ld" = yes; then
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7711 $as_echo_n "checking for GNU ld... " >&6; }
7712 else
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7714 $as_echo_n "checking for non-GNU ld... " >&6; }
7715 fi
7716 if test "${acl_cv_path_LD+set}" = set; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 if test -z "$LD"; then
7720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7721 for ac_dir in $PATH; do
7722 test -z "$ac_dir" && ac_dir=.
7723 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7724 acl_cv_path_LD="$ac_dir/$ac_prog"
7725 # Check to see if the program is GNU ld. I'd rather use --version,
7726 # but apparently some GNU ld's only accept -v.
7727 # Break only if it was the GNU/non-GNU ld that we prefer.
7728 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7729 *GNU* | *'with BFD'*)
7730 test "$with_gnu_ld" != no && break ;;
7731 *)
7732 test "$with_gnu_ld" != yes && break ;;
7733 esac
7734 fi
7735 done
7736 IFS="$ac_save_ifs"
7737 else
7738 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7739 fi
7740 fi
7741
7742 LD="$acl_cv_path_LD"
7743 if test -n "$LD"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7745 $as_echo "$LD" >&6; }
7746 else
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7752 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7753 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7757 case `$LD -v 2>&1 </dev/null` in
7758 *GNU* | *'with BFD'*)
7759 acl_cv_prog_gnu_ld=yes ;;
7760 *)
7761 acl_cv_prog_gnu_ld=no ;;
7762 esac
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7765 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7766 with_gnu_ld=$acl_cv_prog_gnu_ld
7767
7768
7769
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7771 $as_echo_n "checking for shared library run path origin... " >&6; }
7772 if test "${acl_cv_rpath+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775
7776 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7777 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7778 . ./conftest.sh
7779 rm -f ./conftest.sh
7780 acl_cv_rpath=done
7781
7782 fi
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7784 $as_echo "$acl_cv_rpath" >&6; }
7785 wl="$acl_cv_wl"
7786 libext="$acl_cv_libext"
7787 shlibext="$acl_cv_shlibext"
7788 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7789 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7790 hardcode_direct="$acl_cv_hardcode_direct"
7791 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7792 # Check whether --enable-rpath was given.
7793 if test "${enable_rpath+set}" = set; then :
7794 enableval=$enable_rpath; :
7795 else
7796 enable_rpath=yes
7797 fi
7798
7799
7800
7801
7802
7803
7804
7805
7806 use_additional=yes
7807
7808 acl_save_prefix="$prefix"
7809 prefix="$acl_final_prefix"
7810 acl_save_exec_prefix="$exec_prefix"
7811 exec_prefix="$acl_final_exec_prefix"
7812
7813 eval additional_includedir=\"$includedir\"
7814 eval additional_libdir=\"$libdir\"
7815
7816 exec_prefix="$acl_save_exec_prefix"
7817 prefix="$acl_save_prefix"
7818
7819
7820 # Check whether --with-libiconv-prefix was given.
7821 if test "${with_libiconv_prefix+set}" = set; then :
7822 withval=$with_libiconv_prefix;
7823 if test "X$withval" = "Xno"; then
7824 use_additional=no
7825 else
7826 if test "X$withval" = "X"; then
7827
7828 acl_save_prefix="$prefix"
7829 prefix="$acl_final_prefix"
7830 acl_save_exec_prefix="$exec_prefix"
7831 exec_prefix="$acl_final_exec_prefix"
7832
7833 eval additional_includedir=\"$includedir\"
7834 eval additional_libdir=\"$libdir\"
7835
7836 exec_prefix="$acl_save_exec_prefix"
7837 prefix="$acl_save_prefix"
7838
7839 else
7840 additional_includedir="$withval/include"
7841 additional_libdir="$withval/lib"
7842 fi
7843 fi
7844
7845 fi
7846
7847 LIBICONV=
7848 LTLIBICONV=
7849 INCICONV=
7850 rpathdirs=
7851 ltrpathdirs=
7852 names_already_handled=
7853 names_next_round='iconv '
7854 while test -n "$names_next_round"; do
7855 names_this_round="$names_next_round"
7856 names_next_round=
7857 for name in $names_this_round; do
7858 already_handled=
7859 for n in $names_already_handled; do
7860 if test "$n" = "$name"; then
7861 already_handled=yes
7862 break
7863 fi
7864 done
7865 if test -z "$already_handled"; then
7866 names_already_handled="$names_already_handled $name"
7867 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7868 eval value=\"\$HAVE_LIB$uppername\"
7869 if test -n "$value"; then
7870 if test "$value" = yes; then
7871 eval value=\"\$LIB$uppername\"
7872 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7873 eval value=\"\$LTLIB$uppername\"
7874 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7875 else
7876 :
7877 fi
7878 else
7879 found_dir=
7880 found_la=
7881 found_so=
7882 found_a=
7883 if test $use_additional = yes; then
7884 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7885 found_dir="$additional_libdir"
7886 found_so="$additional_libdir/lib$name.$shlibext"
7887 if test -f "$additional_libdir/lib$name.la"; then
7888 found_la="$additional_libdir/lib$name.la"
7889 fi
7890 else
7891 if test -f "$additional_libdir/lib$name.$libext"; then
7892 found_dir="$additional_libdir"
7893 found_a="$additional_libdir/lib$name.$libext"
7894 if test -f "$additional_libdir/lib$name.la"; then
7895 found_la="$additional_libdir/lib$name.la"
7896 fi
7897 fi
7898 fi
7899 fi
7900 if test "X$found_dir" = "X"; then
7901 for x in $LDFLAGS $LTLIBICONV; do
7902
7903 acl_save_prefix="$prefix"
7904 prefix="$acl_final_prefix"
7905 acl_save_exec_prefix="$exec_prefix"
7906 exec_prefix="$acl_final_exec_prefix"
7907 eval x=\"$x\"
7908 exec_prefix="$acl_save_exec_prefix"
7909 prefix="$acl_save_prefix"
7910
7911 case "$x" in
7912 -L*)
7913 dir=`echo "X$x" | sed -e 's/^X-L//'`
7914 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7915 found_dir="$dir"
7916 found_so="$dir/lib$name.$shlibext"
7917 if test -f "$dir/lib$name.la"; then
7918 found_la="$dir/lib$name.la"
7919 fi
7920 else
7921 if test -f "$dir/lib$name.$libext"; then
7922 found_dir="$dir"
7923 found_a="$dir/lib$name.$libext"
7924 if test -f "$dir/lib$name.la"; then
7925 found_la="$dir/lib$name.la"
7926 fi
7927 fi
7928 fi
7929 ;;
7930 esac
7931 if test "X$found_dir" != "X"; then
7932 break
7933 fi
7934 done
7935 fi
7936 if test "X$found_dir" != "X"; then
7937 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7938 if test "X$found_so" != "X"; then
7939 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7940 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7941 else
7942 haveit=
7943 for x in $ltrpathdirs; do
7944 if test "X$x" = "X$found_dir"; then
7945 haveit=yes
7946 break
7947 fi
7948 done
7949 if test -z "$haveit"; then
7950 ltrpathdirs="$ltrpathdirs $found_dir"
7951 fi
7952 if test "$hardcode_direct" = yes; then
7953 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7954 else
7955 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7956 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7957 haveit=
7958 for x in $rpathdirs; do
7959 if test "X$x" = "X$found_dir"; then
7960 haveit=yes
7961 break
7962 fi
7963 done
7964 if test -z "$haveit"; then
7965 rpathdirs="$rpathdirs $found_dir"
7966 fi
7967 else
7968 haveit=
7969 for x in $LDFLAGS $LIBICONV; do
7970
7971 acl_save_prefix="$prefix"
7972 prefix="$acl_final_prefix"
7973 acl_save_exec_prefix="$exec_prefix"
7974 exec_prefix="$acl_final_exec_prefix"
7975 eval x=\"$x\"
7976 exec_prefix="$acl_save_exec_prefix"
7977 prefix="$acl_save_prefix"
7978
7979 if test "X$x" = "X-L$found_dir"; then
7980 haveit=yes
7981 break
7982 fi
7983 done
7984 if test -z "$haveit"; then
7985 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7986 fi
7987 if test "$hardcode_minus_L" != no; then
7988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7989 else
7990 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7991 fi
7992 fi
7993 fi
7994 fi
7995 else
7996 if test "X$found_a" != "X"; then
7997 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7998 else
7999 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8000 fi
8001 fi
8002 additional_includedir=
8003 case "$found_dir" in
8004 */lib | */lib/)
8005 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8006 additional_includedir="$basedir/include"
8007 ;;
8008 esac
8009 if test "X$additional_includedir" != "X"; then
8010 if test "X$additional_includedir" != "X/usr/include"; then
8011 haveit=
8012 if test "X$additional_includedir" = "X/usr/local/include"; then
8013 if test -n "$GCC"; then
8014 case $host_os in
8015 linux*) haveit=yes;;
8016 esac
8017 fi
8018 fi
8019 if test -z "$haveit"; then
8020 for x in $CPPFLAGS $INCICONV; do
8021
8022 acl_save_prefix="$prefix"
8023 prefix="$acl_final_prefix"
8024 acl_save_exec_prefix="$exec_prefix"
8025 exec_prefix="$acl_final_exec_prefix"
8026 eval x=\"$x\"
8027 exec_prefix="$acl_save_exec_prefix"
8028 prefix="$acl_save_prefix"
8029
8030 if test "X$x" = "X-I$additional_includedir"; then
8031 haveit=yes
8032 break
8033 fi
8034 done
8035 if test -z "$haveit"; then
8036 if test -d "$additional_includedir"; then
8037 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8038 fi
8039 fi
8040 fi
8041 fi
8042 fi
8043 if test -n "$found_la"; then
8044 save_libdir="$libdir"
8045 case "$found_la" in
8046 */* | *\\*) . "$found_la" ;;
8047 *) . "./$found_la" ;;
8048 esac
8049 libdir="$save_libdir"
8050 for dep in $dependency_libs; do
8051 case "$dep" in
8052 -L*)
8053 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8054 if test "X$additional_libdir" != "X/usr/lib"; then
8055 haveit=
8056 if test "X$additional_libdir" = "X/usr/local/lib"; then
8057 if test -n "$GCC"; then
8058 case $host_os in
8059 linux*) haveit=yes;;
8060 esac
8061 fi
8062 fi
8063 if test -z "$haveit"; then
8064 haveit=
8065 for x in $LDFLAGS $LIBICONV; do
8066
8067 acl_save_prefix="$prefix"
8068 prefix="$acl_final_prefix"
8069 acl_save_exec_prefix="$exec_prefix"
8070 exec_prefix="$acl_final_exec_prefix"
8071 eval x=\"$x\"
8072 exec_prefix="$acl_save_exec_prefix"
8073 prefix="$acl_save_prefix"
8074
8075 if test "X$x" = "X-L$additional_libdir"; then
8076 haveit=yes
8077 break
8078 fi
8079 done
8080 if test -z "$haveit"; then
8081 if test -d "$additional_libdir"; then
8082 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8083 fi
8084 fi
8085 haveit=
8086 for x in $LDFLAGS $LTLIBICONV; do
8087
8088 acl_save_prefix="$prefix"
8089 prefix="$acl_final_prefix"
8090 acl_save_exec_prefix="$exec_prefix"
8091 exec_prefix="$acl_final_exec_prefix"
8092 eval x=\"$x\"
8093 exec_prefix="$acl_save_exec_prefix"
8094 prefix="$acl_save_prefix"
8095
8096 if test "X$x" = "X-L$additional_libdir"; then
8097 haveit=yes
8098 break
8099 fi
8100 done
8101 if test -z "$haveit"; then
8102 if test -d "$additional_libdir"; then
8103 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8104 fi
8105 fi
8106 fi
8107 fi
8108 ;;
8109 -R*)
8110 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8111 if test "$enable_rpath" != no; then
8112 haveit=
8113 for x in $rpathdirs; do
8114 if test "X$x" = "X$dir"; then
8115 haveit=yes
8116 break
8117 fi
8118 done
8119 if test -z "$haveit"; then
8120 rpathdirs="$rpathdirs $dir"
8121 fi
8122 haveit=
8123 for x in $ltrpathdirs; do
8124 if test "X$x" = "X$dir"; then
8125 haveit=yes
8126 break
8127 fi
8128 done
8129 if test -z "$haveit"; then
8130 ltrpathdirs="$ltrpathdirs $dir"
8131 fi
8132 fi
8133 ;;
8134 -l*)
8135 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8136 ;;
8137 *.la)
8138 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8139 ;;
8140 *)
8141 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8142 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8143 ;;
8144 esac
8145 done
8146 fi
8147 else
8148 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8149 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8150 fi
8151 fi
8152 fi
8153 done
8154 done
8155 if test "X$rpathdirs" != "X"; then
8156 if test -n "$hardcode_libdir_separator"; then
8157 alldirs=
8158 for found_dir in $rpathdirs; do
8159 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8160 done
8161 acl_save_libdir="$libdir"
8162 libdir="$alldirs"
8163 eval flag=\"$hardcode_libdir_flag_spec\"
8164 libdir="$acl_save_libdir"
8165 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8166 else
8167 for found_dir in $rpathdirs; do
8168 acl_save_libdir="$libdir"
8169 libdir="$found_dir"
8170 eval flag=\"$hardcode_libdir_flag_spec\"
8171 libdir="$acl_save_libdir"
8172 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8173 done
8174 fi
8175 fi
8176 if test "X$ltrpathdirs" != "X"; then
8177 for found_dir in $ltrpathdirs; do
8178 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8179 done
8180 fi
8181
8182
8183
8184
8185
8186
8187
8188
8189 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8190 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8191
8192 else
8193
8194 $as_echo "#define ptrdiff_t long" >>confdefs.h
8195
8196
8197 fi
8198
8199 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8200 stdlib.h string.h unistd.h sys/param.h
8201 do :
8202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8203 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8204 eval as_val=\$$as_ac_Header
8205 if test "x$as_val" = x""yes; then :
8206 cat >>confdefs.h <<_ACEOF
8207 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8208 _ACEOF
8209
8210 fi
8211
8212 done
8213
8214 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8215 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8216 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8217 __fsetlocking
8218 do :
8219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8220 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8221 eval as_val=\$$as_ac_var
8222 if test "x$as_val" = x""yes; then :
8223 cat >>confdefs.h <<_ACEOF
8224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8225 _ACEOF
8226
8227 fi
8228 done
8229
8230
8231
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8233 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8234 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 #include <stdio.h>
8240 int
8241 main ()
8242 {
8243
8244 #ifndef _snprintf
8245 char *p = (char *) _snprintf;
8246 #endif
8247
8248 ;
8249 return 0;
8250 }
8251 _ACEOF
8252 if ac_fn_c_try_compile "$LINENO"; then :
8253 ac_cv_have_decl__snprintf=yes
8254 else
8255 ac_cv_have_decl__snprintf=no
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8260 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8261 if test $ac_cv_have_decl__snprintf = yes; then
8262 gt_value=1
8263 else
8264 gt_value=0
8265 fi
8266
8267 cat >>confdefs.h <<_ACEOF
8268 #define HAVE_DECL__SNPRINTF $gt_value
8269 _ACEOF
8270
8271
8272
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8274 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8275 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 #include <stdio.h>
8281 int
8282 main ()
8283 {
8284
8285 #ifndef _snwprintf
8286 char *p = (char *) _snwprintf;
8287 #endif
8288
8289 ;
8290 return 0;
8291 }
8292 _ACEOF
8293 if ac_fn_c_try_compile "$LINENO"; then :
8294 ac_cv_have_decl__snwprintf=yes
8295 else
8296 ac_cv_have_decl__snwprintf=no
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8301 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8302 if test $ac_cv_have_decl__snwprintf = yes; then
8303 gt_value=1
8304 else
8305 gt_value=0
8306 fi
8307
8308 cat >>confdefs.h <<_ACEOF
8309 #define HAVE_DECL__SNWPRINTF $gt_value
8310 _ACEOF
8311
8312
8313
8314
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8316 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8317 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 #include <stdio.h>
8323 int
8324 main ()
8325 {
8326
8327 #ifndef feof_unlocked
8328 char *p = (char *) feof_unlocked;
8329 #endif
8330
8331 ;
8332 return 0;
8333 }
8334 _ACEOF
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336 ac_cv_have_decl_feof_unlocked=yes
8337 else
8338 ac_cv_have_decl_feof_unlocked=no
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 fi
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8343 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8344 if test $ac_cv_have_decl_feof_unlocked = yes; then
8345 gt_value=1
8346 else
8347 gt_value=0
8348 fi
8349
8350 cat >>confdefs.h <<_ACEOF
8351 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8352 _ACEOF
8353
8354
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8357 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8358 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #include <stdio.h>
8364 int
8365 main ()
8366 {
8367
8368 #ifndef fgets_unlocked
8369 char *p = (char *) fgets_unlocked;
8370 #endif
8371
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377 ac_cv_have_decl_fgets_unlocked=yes
8378 else
8379 ac_cv_have_decl_fgets_unlocked=no
8380 fi
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8384 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8385 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8386 gt_value=1
8387 else
8388 gt_value=0
8389 fi
8390
8391 cat >>confdefs.h <<_ACEOF
8392 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8393 _ACEOF
8394
8395
8396
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8398 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8399 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8404 #include <stdio.h>
8405 int
8406 main ()
8407 {
8408
8409 #ifndef getc_unlocked
8410 char *p = (char *) getc_unlocked;
8411 #endif
8412
8413 ;
8414 return 0;
8415 }
8416 _ACEOF
8417 if ac_fn_c_try_compile "$LINENO"; then :
8418 ac_cv_have_decl_getc_unlocked=yes
8419 else
8420 ac_cv_have_decl_getc_unlocked=no
8421 fi
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 fi
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8425 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8426 if test $ac_cv_have_decl_getc_unlocked = yes; then
8427 gt_value=1
8428 else
8429 gt_value=0
8430 fi
8431
8432 cat >>confdefs.h <<_ACEOF
8433 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8434 _ACEOF
8435
8436
8437
8438 case $gt_cv_func_printf_posix in
8439 *yes) HAVE_POSIX_PRINTF=1 ;;
8440 *) HAVE_POSIX_PRINTF=0 ;;
8441 esac
8442
8443 if test "$ac_cv_func_asprintf" = yes; then
8444 HAVE_ASPRINTF=1
8445 else
8446 HAVE_ASPRINTF=0
8447 fi
8448
8449 if test "$ac_cv_func_snprintf" = yes; then
8450 HAVE_SNPRINTF=1
8451 else
8452 HAVE_SNPRINTF=0
8453 fi
8454
8455 if test "$ac_cv_func_wprintf" = yes; then
8456 HAVE_WPRINTF=1
8457 else
8458 HAVE_WPRINTF=0
8459 fi
8460
8461
8462
8463
8464
8465
8466
8467 am_save_CPPFLAGS="$CPPFLAGS"
8468
8469 for element in $INCICONV; do
8470 haveit=
8471 for x in $CPPFLAGS; do
8472
8473 acl_save_prefix="$prefix"
8474 prefix="$acl_final_prefix"
8475 acl_save_exec_prefix="$exec_prefix"
8476 exec_prefix="$acl_final_exec_prefix"
8477 eval x=\"$x\"
8478 exec_prefix="$acl_save_exec_prefix"
8479 prefix="$acl_save_prefix"
8480
8481 if test "X$x" = "X$element"; then
8482 haveit=yes
8483 break
8484 fi
8485 done
8486 if test -z "$haveit"; then
8487 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8488 fi
8489 done
8490
8491
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8493 $as_echo_n "checking for iconv... " >&6; }
8494 if test "${am_cv_func_iconv+set}" = set; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497
8498 am_cv_func_iconv="no, consider installing GNU libiconv"
8499 am_cv_lib_iconv=no
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8502 #include <stdlib.h>
8503 #include <iconv.h>
8504 int
8505 main ()
8506 {
8507 iconv_t cd = iconv_open("","");
8508 iconv(cd,NULL,NULL,NULL,NULL);
8509 iconv_close(cd);
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 if ac_fn_c_try_link "$LINENO"; then :
8515 am_cv_func_iconv=yes
8516 fi
8517 rm -f core conftest.err conftest.$ac_objext \
8518 conftest$ac_exeext conftest.$ac_ext
8519 if test "$am_cv_func_iconv" != yes; then
8520 am_save_LIBS="$LIBS"
8521 LIBS="$LIBS $LIBICONV"
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 #include <stdlib.h>
8525 #include <iconv.h>
8526 int
8527 main ()
8528 {
8529 iconv_t cd = iconv_open("","");
8530 iconv(cd,NULL,NULL,NULL,NULL);
8531 iconv_close(cd);
8532 ;
8533 return 0;
8534 }
8535 _ACEOF
8536 if ac_fn_c_try_link "$LINENO"; then :
8537 am_cv_lib_iconv=yes
8538 am_cv_func_iconv=yes
8539 fi
8540 rm -f core conftest.err conftest.$ac_objext \
8541 conftest$ac_exeext conftest.$ac_ext
8542 LIBS="$am_save_LIBS"
8543 fi
8544
8545 fi
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8547 $as_echo "$am_cv_func_iconv" >&6; }
8548 if test "$am_cv_func_iconv" = yes; then
8549
8550 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8551
8552 fi
8553 if test "$am_cv_lib_iconv" = yes; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8555 $as_echo_n "checking how to link with libiconv... " >&6; }
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8557 $as_echo "$LIBICONV" >&6; }
8558 else
8559 CPPFLAGS="$am_save_CPPFLAGS"
8560 LIBICONV=
8561 LTLIBICONV=
8562 fi
8563
8564
8565
8566 if test "$am_cv_func_iconv" = yes; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8568 $as_echo_n "checking for iconv declaration... " >&6; }
8569 if test "${am_cv_proto_iconv+set}" = set; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572
8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h. */
8575
8576 #include <stdlib.h>
8577 #include <iconv.h>
8578 extern
8579 #ifdef __cplusplus
8580 "C"
8581 #endif
8582 #if defined(__STDC__) || defined(__cplusplus)
8583 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8584 #else
8585 size_t iconv();
8586 #endif
8587
8588 int
8589 main ()
8590 {
8591
8592 ;
8593 return 0;
8594 }
8595 _ACEOF
8596 if ac_fn_c_try_compile "$LINENO"; then :
8597 am_cv_proto_iconv_arg1=""
8598 else
8599 am_cv_proto_iconv_arg1="const"
8600 fi
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 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);"
8603 fi
8604
8605 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8607 }$am_cv_proto_iconv" >&5
8608 $as_echo "${ac_t:-
8609 }$am_cv_proto_iconv" >&6; }
8610
8611 cat >>confdefs.h <<_ACEOF
8612 #define ICONV_CONST $am_cv_proto_iconv_arg1
8613 _ACEOF
8614
8615 fi
8616
8617
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8619 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8620 if test "${am_cv_langinfo_codeset+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625 #include <langinfo.h>
8626 int
8627 main ()
8628 {
8629 char* cs = nl_langinfo(CODESET);
8630 ;
8631 return 0;
8632 }
8633 _ACEOF
8634 if ac_fn_c_try_link "$LINENO"; then :
8635 am_cv_langinfo_codeset=yes
8636 else
8637 am_cv_langinfo_codeset=no
8638 fi
8639 rm -f core conftest.err conftest.$ac_objext \
8640 conftest$ac_exeext conftest.$ac_ext
8641
8642 fi
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8644 $as_echo "$am_cv_langinfo_codeset" >&6; }
8645 if test $am_cv_langinfo_codeset = yes; then
8646
8647 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8648
8649 fi
8650
8651 if test $ac_cv_header_locale_h = yes; then
8652
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8654 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8655 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 #include <locale.h>
8661 int
8662 main ()
8663 {
8664 return LC_MESSAGES
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 if ac_fn_c_try_link "$LINENO"; then :
8670 am_cv_val_LC_MESSAGES=yes
8671 else
8672 am_cv_val_LC_MESSAGES=no
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 fi
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8678 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8679 if test $am_cv_val_LC_MESSAGES = yes; then
8680
8681 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8682
8683 fi
8684
8685 fi
8686
8687 for ac_prog in bison
8688 do
8689 # Extract the first word of "$ac_prog", so it can be a program name with args.
8690 set dummy $ac_prog; ac_word=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696 if test -n "$INTLBISON"; then
8697 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8698 else
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 for as_dir in $PATH
8701 do
8702 IFS=$as_save_IFS
8703 test -z "$as_dir" && as_dir=.
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8706 ac_cv_prog_INTLBISON="$ac_prog"
8707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8708 break 2
8709 fi
8710 done
8711 done
8712 IFS=$as_save_IFS
8713
8714 fi
8715 fi
8716 INTLBISON=$ac_cv_prog_INTLBISON
8717 if test -n "$INTLBISON"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8719 $as_echo "$INTLBISON" >&6; }
8720 else
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8723 fi
8724
8725
8726 test -n "$INTLBISON" && break
8727 done
8728
8729 if test -z "$INTLBISON"; then
8730 ac_verc_fail=yes
8731 else
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8733 $as_echo_n "checking version of bison... " >&6; }
8734 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8735 case $ac_prog_version in
8736 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8737 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8738 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8739 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8740 esac
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8742 $as_echo "$ac_prog_version" >&6; }
8743 fi
8744 if test $ac_verc_fail = yes; then
8745 INTLBISON=:
8746 fi
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8764 $as_echo_n "checking whether NLS is requested... " >&6; }
8765 # Check whether --enable-nls was given.
8766 if test "${enable_nls+set}" = set; then :
8767 enableval=$enable_nls; USE_NLS=$enableval
8768 else
8769 USE_NLS=yes
8770 fi
8771
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8773 $as_echo "$USE_NLS" >&6; }
8774
8775
8776
8777
8778 BUILD_INCLUDED_LIBINTL=no
8779 USE_INCLUDED_LIBINTL=no
8780
8781 LIBINTL=
8782 LTLIBINTL=
8783 POSUB=
8784
8785 if test "$USE_NLS" = "yes"; then
8786 gt_use_preinstalled_gnugettext=no
8787
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8789 $as_echo_n "checking whether included gettext is requested... " >&6; }
8790
8791 # Check whether --with-included-gettext was given.
8792 if test "${with_included_gettext+set}" = set; then :
8793 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8794 else
8795 nls_cv_force_use_gnu_gettext=no
8796 fi
8797
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8799 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8800
8801 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8802 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8803
8804
8805
8806
8807
8808
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8810 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8811 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816 #include <libintl.h>
8817 extern int _nl_msg_cat_cntr;
8818 extern int *_nl_domain_bindings;
8819 int
8820 main ()
8821 {
8822 bindtextdomain ("", "");
8823 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8824 ;
8825 return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_link "$LINENO"; then :
8829 gt_cv_func_gnugettext1_libc=yes
8830 else
8831 gt_cv_func_gnugettext1_libc=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8835 fi
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8837 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8838
8839 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8840
8841
8842
8843 use_additional=yes
8844
8845 acl_save_prefix="$prefix"
8846 prefix="$acl_final_prefix"
8847 acl_save_exec_prefix="$exec_prefix"
8848 exec_prefix="$acl_final_exec_prefix"
8849
8850 eval additional_includedir=\"$includedir\"
8851 eval additional_libdir=\"$libdir\"
8852
8853 exec_prefix="$acl_save_exec_prefix"
8854 prefix="$acl_save_prefix"
8855
8856
8857 # Check whether --with-libintl-prefix was given.
8858 if test "${with_libintl_prefix+set}" = set; then :
8859 withval=$with_libintl_prefix;
8860 if test "X$withval" = "Xno"; then
8861 use_additional=no
8862 else
8863 if test "X$withval" = "X"; then
8864
8865 acl_save_prefix="$prefix"
8866 prefix="$acl_final_prefix"
8867 acl_save_exec_prefix="$exec_prefix"
8868 exec_prefix="$acl_final_exec_prefix"
8869
8870 eval additional_includedir=\"$includedir\"
8871 eval additional_libdir=\"$libdir\"
8872
8873 exec_prefix="$acl_save_exec_prefix"
8874 prefix="$acl_save_prefix"
8875
8876 else
8877 additional_includedir="$withval/include"
8878 additional_libdir="$withval/lib"
8879 fi
8880 fi
8881
8882 fi
8883
8884 LIBINTL=
8885 LTLIBINTL=
8886 INCINTL=
8887 rpathdirs=
8888 ltrpathdirs=
8889 names_already_handled=
8890 names_next_round='intl '
8891 while test -n "$names_next_round"; do
8892 names_this_round="$names_next_round"
8893 names_next_round=
8894 for name in $names_this_round; do
8895 already_handled=
8896 for n in $names_already_handled; do
8897 if test "$n" = "$name"; then
8898 already_handled=yes
8899 break
8900 fi
8901 done
8902 if test -z "$already_handled"; then
8903 names_already_handled="$names_already_handled $name"
8904 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8905 eval value=\"\$HAVE_LIB$uppername\"
8906 if test -n "$value"; then
8907 if test "$value" = yes; then
8908 eval value=\"\$LIB$uppername\"
8909 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8910 eval value=\"\$LTLIB$uppername\"
8911 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8912 else
8913 :
8914 fi
8915 else
8916 found_dir=
8917 found_la=
8918 found_so=
8919 found_a=
8920 if test $use_additional = yes; then
8921 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8922 found_dir="$additional_libdir"
8923 found_so="$additional_libdir/lib$name.$shlibext"
8924 if test -f "$additional_libdir/lib$name.la"; then
8925 found_la="$additional_libdir/lib$name.la"
8926 fi
8927 else
8928 if test -f "$additional_libdir/lib$name.$libext"; then
8929 found_dir="$additional_libdir"
8930 found_a="$additional_libdir/lib$name.$libext"
8931 if test -f "$additional_libdir/lib$name.la"; then
8932 found_la="$additional_libdir/lib$name.la"
8933 fi
8934 fi
8935 fi
8936 fi
8937 if test "X$found_dir" = "X"; then
8938 for x in $LDFLAGS $LTLIBINTL; do
8939
8940 acl_save_prefix="$prefix"
8941 prefix="$acl_final_prefix"
8942 acl_save_exec_prefix="$exec_prefix"
8943 exec_prefix="$acl_final_exec_prefix"
8944 eval x=\"$x\"
8945 exec_prefix="$acl_save_exec_prefix"
8946 prefix="$acl_save_prefix"
8947
8948 case "$x" in
8949 -L*)
8950 dir=`echo "X$x" | sed -e 's/^X-L//'`
8951 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8952 found_dir="$dir"
8953 found_so="$dir/lib$name.$shlibext"
8954 if test -f "$dir/lib$name.la"; then
8955 found_la="$dir/lib$name.la"
8956 fi
8957 else
8958 if test -f "$dir/lib$name.$libext"; then
8959 found_dir="$dir"
8960 found_a="$dir/lib$name.$libext"
8961 if test -f "$dir/lib$name.la"; then
8962 found_la="$dir/lib$name.la"
8963 fi
8964 fi
8965 fi
8966 ;;
8967 esac
8968 if test "X$found_dir" != "X"; then
8969 break
8970 fi
8971 done
8972 fi
8973 if test "X$found_dir" != "X"; then
8974 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8975 if test "X$found_so" != "X"; then
8976 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8977 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8978 else
8979 haveit=
8980 for x in $ltrpathdirs; do
8981 if test "X$x" = "X$found_dir"; then
8982 haveit=yes
8983 break
8984 fi
8985 done
8986 if test -z "$haveit"; then
8987 ltrpathdirs="$ltrpathdirs $found_dir"
8988 fi
8989 if test "$hardcode_direct" = yes; then
8990 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8991 else
8992 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8993 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8994 haveit=
8995 for x in $rpathdirs; do
8996 if test "X$x" = "X$found_dir"; then
8997 haveit=yes
8998 break
8999 fi
9000 done
9001 if test -z "$haveit"; then
9002 rpathdirs="$rpathdirs $found_dir"
9003 fi
9004 else
9005 haveit=
9006 for x in $LDFLAGS $LIBINTL; do
9007
9008 acl_save_prefix="$prefix"
9009 prefix="$acl_final_prefix"
9010 acl_save_exec_prefix="$exec_prefix"
9011 exec_prefix="$acl_final_exec_prefix"
9012 eval x=\"$x\"
9013 exec_prefix="$acl_save_exec_prefix"
9014 prefix="$acl_save_prefix"
9015
9016 if test "X$x" = "X-L$found_dir"; then
9017 haveit=yes
9018 break
9019 fi
9020 done
9021 if test -z "$haveit"; then
9022 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9023 fi
9024 if test "$hardcode_minus_L" != no; then
9025 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9026 else
9027 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9028 fi
9029 fi
9030 fi
9031 fi
9032 else
9033 if test "X$found_a" != "X"; then
9034 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9035 else
9036 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9037 fi
9038 fi
9039 additional_includedir=
9040 case "$found_dir" in
9041 */lib | */lib/)
9042 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9043 additional_includedir="$basedir/include"
9044 ;;
9045 esac
9046 if test "X$additional_includedir" != "X"; then
9047 if test "X$additional_includedir" != "X/usr/include"; then
9048 haveit=
9049 if test "X$additional_includedir" = "X/usr/local/include"; then
9050 if test -n "$GCC"; then
9051 case $host_os in
9052 linux*) haveit=yes;;
9053 esac
9054 fi
9055 fi
9056 if test -z "$haveit"; then
9057 for x in $CPPFLAGS $INCINTL; do
9058
9059 acl_save_prefix="$prefix"
9060 prefix="$acl_final_prefix"
9061 acl_save_exec_prefix="$exec_prefix"
9062 exec_prefix="$acl_final_exec_prefix"
9063 eval x=\"$x\"
9064 exec_prefix="$acl_save_exec_prefix"
9065 prefix="$acl_save_prefix"
9066
9067 if test "X$x" = "X-I$additional_includedir"; then
9068 haveit=yes
9069 break
9070 fi
9071 done
9072 if test -z "$haveit"; then
9073 if test -d "$additional_includedir"; then
9074 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9075 fi
9076 fi
9077 fi
9078 fi
9079 fi
9080 if test -n "$found_la"; then
9081 save_libdir="$libdir"
9082 case "$found_la" in
9083 */* | *\\*) . "$found_la" ;;
9084 *) . "./$found_la" ;;
9085 esac
9086 libdir="$save_libdir"
9087 for dep in $dependency_libs; do
9088 case "$dep" in
9089 -L*)
9090 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9091 if test "X$additional_libdir" != "X/usr/lib"; then
9092 haveit=
9093 if test "X$additional_libdir" = "X/usr/local/lib"; then
9094 if test -n "$GCC"; then
9095 case $host_os in
9096 linux*) haveit=yes;;
9097 esac
9098 fi
9099 fi
9100 if test -z "$haveit"; then
9101 haveit=
9102 for x in $LDFLAGS $LIBINTL; do
9103
9104 acl_save_prefix="$prefix"
9105 prefix="$acl_final_prefix"
9106 acl_save_exec_prefix="$exec_prefix"
9107 exec_prefix="$acl_final_exec_prefix"
9108 eval x=\"$x\"
9109 exec_prefix="$acl_save_exec_prefix"
9110 prefix="$acl_save_prefix"
9111
9112 if test "X$x" = "X-L$additional_libdir"; then
9113 haveit=yes
9114 break
9115 fi
9116 done
9117 if test -z "$haveit"; then
9118 if test -d "$additional_libdir"; then
9119 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9120 fi
9121 fi
9122 haveit=
9123 for x in $LDFLAGS $LTLIBINTL; do
9124
9125 acl_save_prefix="$prefix"
9126 prefix="$acl_final_prefix"
9127 acl_save_exec_prefix="$exec_prefix"
9128 exec_prefix="$acl_final_exec_prefix"
9129 eval x=\"$x\"
9130 exec_prefix="$acl_save_exec_prefix"
9131 prefix="$acl_save_prefix"
9132
9133 if test "X$x" = "X-L$additional_libdir"; then
9134 haveit=yes
9135 break
9136 fi
9137 done
9138 if test -z "$haveit"; then
9139 if test -d "$additional_libdir"; then
9140 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9141 fi
9142 fi
9143 fi
9144 fi
9145 ;;
9146 -R*)
9147 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9148 if test "$enable_rpath" != no; then
9149 haveit=
9150 for x in $rpathdirs; do
9151 if test "X$x" = "X$dir"; then
9152 haveit=yes
9153 break
9154 fi
9155 done
9156 if test -z "$haveit"; then
9157 rpathdirs="$rpathdirs $dir"
9158 fi
9159 haveit=
9160 for x in $ltrpathdirs; do
9161 if test "X$x" = "X$dir"; then
9162 haveit=yes
9163 break
9164 fi
9165 done
9166 if test -z "$haveit"; then
9167 ltrpathdirs="$ltrpathdirs $dir"
9168 fi
9169 fi
9170 ;;
9171 -l*)
9172 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9173 ;;
9174 *.la)
9175 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9176 ;;
9177 *)
9178 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9179 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9180 ;;
9181 esac
9182 done
9183 fi
9184 else
9185 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9186 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9187 fi
9188 fi
9189 fi
9190 done
9191 done
9192 if test "X$rpathdirs" != "X"; then
9193 if test -n "$hardcode_libdir_separator"; then
9194 alldirs=
9195 for found_dir in $rpathdirs; do
9196 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9197 done
9198 acl_save_libdir="$libdir"
9199 libdir="$alldirs"
9200 eval flag=\"$hardcode_libdir_flag_spec\"
9201 libdir="$acl_save_libdir"
9202 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9203 else
9204 for found_dir in $rpathdirs; do
9205 acl_save_libdir="$libdir"
9206 libdir="$found_dir"
9207 eval flag=\"$hardcode_libdir_flag_spec\"
9208 libdir="$acl_save_libdir"
9209 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9210 done
9211 fi
9212 fi
9213 if test "X$ltrpathdirs" != "X"; then
9214 for found_dir in $ltrpathdirs; do
9215 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9216 done
9217 fi
9218
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9220 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9221 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 gt_save_CPPFLAGS="$CPPFLAGS"
9225 CPPFLAGS="$CPPFLAGS $INCINTL"
9226 gt_save_LIBS="$LIBS"
9227 LIBS="$LIBS $LIBINTL"
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 #include <libintl.h>
9231 extern int _nl_msg_cat_cntr;
9232 extern
9233 #ifdef __cplusplus
9234 "C"
9235 #endif
9236 const char *_nl_expand_alias ();
9237 int
9238 main ()
9239 {
9240 bindtextdomain ("", "");
9241 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9242 ;
9243 return 0;
9244 }
9245 _ACEOF
9246 if ac_fn_c_try_link "$LINENO"; then :
9247 gt_cv_func_gnugettext1_libintl=yes
9248 else
9249 gt_cv_func_gnugettext1_libintl=no
9250 fi
9251 rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9254 LIBS="$LIBS $LIBICONV"
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257 #include <libintl.h>
9258 extern int _nl_msg_cat_cntr;
9259 extern
9260 #ifdef __cplusplus
9261 "C"
9262 #endif
9263 const char *_nl_expand_alias ();
9264 int
9265 main ()
9266 {
9267 bindtextdomain ("", "");
9268 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9269 ;
9270 return 0;
9271 }
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"; then :
9274 LIBINTL="$LIBINTL $LIBICONV"
9275 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9276 gt_cv_func_gnugettext1_libintl=yes
9277
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9281 fi
9282 CPPFLAGS="$gt_save_CPPFLAGS"
9283 LIBS="$gt_save_LIBS"
9284 fi
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9286 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9287 fi
9288
9289 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9290 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9291 && test "$PACKAGE" != gettext-runtime \
9292 && test "$PACKAGE" != gettext-tools; }; then
9293 gt_use_preinstalled_gnugettext=yes
9294 else
9295 LIBINTL=
9296 LTLIBINTL=
9297 INCINTL=
9298 fi
9299
9300
9301 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9302 nls_cv_use_gnu_gettext=yes
9303 fi
9304 fi
9305
9306 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9307 BUILD_INCLUDED_LIBINTL=yes
9308 USE_INCLUDED_LIBINTL=yes
9309 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9310 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9311 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9312 fi
9313
9314 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9315 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9316 CATOBJEXT=.gmo
9317 fi
9318
9319
9320 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9321 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9322
9323 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9324
9325 else
9326 USE_NLS=no
9327 fi
9328 fi
9329
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9331 $as_echo_n "checking whether to use NLS... " >&6; }
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9333 $as_echo "$USE_NLS" >&6; }
9334 if test "$USE_NLS" = "yes"; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9336 $as_echo_n "checking where the gettext function comes from... " >&6; }
9337 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9338 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9339 gt_source="external libintl"
9340 else
9341 gt_source="libc"
9342 fi
9343 else
9344 gt_source="included intl directory"
9345 fi
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9347 $as_echo "$gt_source" >&6; }
9348 fi
9349
9350 if test "$USE_NLS" = "yes"; then
9351
9352 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9353 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9355 $as_echo_n "checking how to link with libintl... " >&6; }
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9357 $as_echo "$LIBINTL" >&6; }
9358
9359 for element in $INCINTL; do
9360 haveit=
9361 for x in $CPPFLAGS; do
9362
9363 acl_save_prefix="$prefix"
9364 prefix="$acl_final_prefix"
9365 acl_save_exec_prefix="$exec_prefix"
9366 exec_prefix="$acl_final_exec_prefix"
9367 eval x=\"$x\"
9368 exec_prefix="$acl_save_exec_prefix"
9369 prefix="$acl_save_prefix"
9370
9371 if test "X$x" = "X$element"; then
9372 haveit=yes
9373 break
9374 fi
9375 done
9376 if test -z "$haveit"; then
9377 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9378 fi
9379 done
9380
9381 fi
9382
9383
9384 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9385
9386
9387 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9388
9389 fi
9390
9391 POSUB=po
9392 fi
9393
9394
9395 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9396 BUILD_INCLUDED_LIBINTL=yes
9397 fi
9398
9399
9400
9401
9402
9403 nls_cv_header_intl=
9404 nls_cv_header_libgt=
9405
9406 DATADIRNAME=share
9407
9408
9409 INSTOBJEXT=.mo
9410
9411
9412 GENCAT=gencat
9413
9414
9415 if test "$USE_INCLUDED_LIBINTL" = yes; then
9416 INTLOBJS="\$(GETTOBJS)"
9417 fi
9418
9419
9420 INTL_LIBTOOL_SUFFIX_PREFIX=
9421
9422
9423
9424 INTLLIBS="$LIBINTL"
9425
9426
9427
9428
9429
9430
9431
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9433 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9434 set x ${MAKE-make}
9435 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9436 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 cat >conftest.make <<\_ACEOF
9440 SHELL = /bin/sh
9441 all:
9442 @echo '@@@%%%=$(MAKE)=@@@%%%'
9443 _ACEOF
9444 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9445 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9446 *@@@%%%=?*=@@@%%%*)
9447 eval ac_cv_prog_make_${ac_make}_set=yes;;
9448 *)
9449 eval ac_cv_prog_make_${ac_make}_set=no;;
9450 esac
9451 rm -f conftest.make
9452 fi
9453 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9455 $as_echo "yes" >&6; }
9456 SET_MAKE=
9457 else
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9460 SET_MAKE="MAKE=${MAKE-make}"
9461 fi
9462
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9464 $as_echo_n "checking for GNU make... " >&6; }
9465 if test "${_cv_gnu_make_command+set}" = set; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 _cv_gnu_make_command='' ;
9469 for a in "$MAKE" make gmake gnumake ; do
9470 if test -z "$a" ; then continue ; fi ;
9471 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9472 _cv_gnu_make_command=$a ;
9473 break;
9474 fi
9475 done ;
9476
9477 fi
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9479 $as_echo "$_cv_gnu_make_command" >&6; } ;
9480 if test "x$_cv_gnu_make_command" != "x" ; then
9481 ifGNUmake='' ;
9482 ifNotGNUmake='#' ;
9483 else
9484 ifGNUmake='#' ;
9485 ifNotGNUmake='' ;
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9487 $as_echo "\"Not found\"" >&6; };
9488 fi
9489
9490
9491
9492 # Extract the first word of "ln", so it can be a program name with args.
9493 set dummy ln; ac_word=$2
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9495 $as_echo_n "checking for $ac_word... " >&6; }
9496 if test "${ac_cv_path_LN+set}" = set; then :
9497 $as_echo_n "(cached) " >&6
9498 else
9499 case $LN in
9500 [\\/]* | ?:[\\/]*)
9501 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9502 ;;
9503 *)
9504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505 for as_dir in $PATH
9506 do
9507 IFS=$as_save_IFS
9508 test -z "$as_dir" && as_dir=.
9509 for ac_exec_ext in '' $ac_executable_extensions; do
9510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9511 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9513 break 2
9514 fi
9515 done
9516 done
9517 IFS=$as_save_IFS
9518
9519 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9520 ;;
9521 esac
9522 fi
9523 LN=$ac_cv_path_LN
9524 if test -n "$LN"; then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9526 $as_echo "$LN" >&6; }
9527 else
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529 $as_echo "no" >&6; }
9530 fi
9531
9532
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9534 $as_echo_n "checking whether ln -s works... " >&6; }
9535 LN_S=$as_ln_s
9536 if test "$LN_S" = "ln -s"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9538 $as_echo "yes" >&6; }
9539 else
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9541 $as_echo "no, using $LN_S" >&6; }
9542 fi
9543
9544 # Extract the first word of "mv", so it can be a program name with args.
9545 set dummy mv; ac_word=$2
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 $as_echo_n "checking for $ac_word... " >&6; }
9548 if test "${ac_cv_path_MV+set}" = set; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9551 case $MV in
9552 [\\/]* | ?:[\\/]*)
9553 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9554 ;;
9555 *)
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557 for as_dir in $PATH
9558 do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9563 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9565 break 2
9566 fi
9567 done
9568 done
9569 IFS=$as_save_IFS
9570
9571 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9572 ;;
9573 esac
9574 fi
9575 MV=$ac_cv_path_MV
9576 if test -n "$MV"; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9578 $as_echo "$MV" >&6; }
9579 else
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581 $as_echo "no" >&6; }
9582 fi
9583
9584
9585 # Extract the first word of "cp", so it can be a program name with args.
9586 set dummy cp; ac_word=$2
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588 $as_echo_n "checking for $ac_word... " >&6; }
9589 if test "${ac_cv_path_CP+set}" = set; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 case $CP in
9593 [\\/]* | ?:[\\/]*)
9594 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9595 ;;
9596 *)
9597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598 for as_dir in $PATH
9599 do
9600 IFS=$as_save_IFS
9601 test -z "$as_dir" && as_dir=.
9602 for ac_exec_ext in '' $ac_executable_extensions; do
9603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9604 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9606 break 2
9607 fi
9608 done
9609 done
9610 IFS=$as_save_IFS
9611
9612 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9613 ;;
9614 esac
9615 fi
9616 CP=$ac_cv_path_CP
9617 if test -n "$CP"; then
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9619 $as_echo "$CP" >&6; }
9620 else
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622 $as_echo "no" >&6; }
9623 fi
9624
9625
9626 # Extract the first word of "rm", so it can be a program name with args.
9627 set dummy rm; ac_word=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if test "${ac_cv_path_RM+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 case $RM in
9634 [\\/]* | ?:[\\/]*)
9635 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9636 ;;
9637 *)
9638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639 for as_dir in $PATH
9640 do
9641 IFS=$as_save_IFS
9642 test -z "$as_dir" && as_dir=.
9643 for ac_exec_ext in '' $ac_executable_extensions; do
9644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9645 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9647 break 2
9648 fi
9649 done
9650 done
9651 IFS=$as_save_IFS
9652
9653 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9654 ;;
9655 esac
9656 fi
9657 RM=$ac_cv_path_RM
9658 if test -n "$RM"; then
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9660 $as_echo "$RM" >&6; }
9661 else
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 $as_echo "no" >&6; }
9664 fi
9665
9666
9667 # Extract the first word of "chmod", so it can be a program name with args.
9668 set dummy chmod; ac_word=$2
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670 $as_echo_n "checking for $ac_word... " >&6; }
9671 if test "${ac_cv_path_CHMOD+set}" = set; then :
9672 $as_echo_n "(cached) " >&6
9673 else
9674 case $CHMOD in
9675 [\\/]* | ?:[\\/]*)
9676 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9677 ;;
9678 *)
9679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680 for as_dir in $PATH
9681 do
9682 IFS=$as_save_IFS
9683 test -z "$as_dir" && as_dir=.
9684 for ac_exec_ext in '' $ac_executable_extensions; do
9685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9686 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9688 break 2
9689 fi
9690 done
9691 done
9692 IFS=$as_save_IFS
9693
9694 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9695 ;;
9696 esac
9697 fi
9698 CHMOD=$ac_cv_path_CHMOD
9699 if test -n "$CHMOD"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9701 $as_echo "$CHMOD" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9705 fi
9706
9707
9708 for ac_prog in gawk mawk nawk awk
9709 do
9710 # Extract the first word of "$ac_prog", so it can be a program name with args.
9711 set dummy $ac_prog; ac_word=$2
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713 $as_echo_n "checking for $ac_word... " >&6; }
9714 if test "${ac_cv_prog_AWK+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 if test -n "$AWK"; then
9718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9719 else
9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 for as_dir in $PATH
9722 do
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9727 ac_cv_prog_AWK="$ac_prog"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9730 fi
9731 done
9732 done
9733 IFS=$as_save_IFS
9734
9735 fi
9736 fi
9737 AWK=$ac_cv_prog_AWK
9738 if test -n "$AWK"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9740 $as_echo "$AWK" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9744 fi
9745
9746
9747 test -n "$AWK" && break
9748 done
9749
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9751 $as_echo_n "checking for egrep... " >&6; }
9752 if test "${ac_cv_path_EGREP+set}" = set; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9756 then ac_cv_path_EGREP="$GREP -E"
9757 else
9758 if test -z "$EGREP"; then
9759 ac_path_EGREP_found=false
9760 # Loop through the user's path and test for each of PROGNAME-LIST
9761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9763 do
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_prog in egrep; do
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9769 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9770 # Check for GNU ac_path_EGREP and select it if it is found.
9771 # Check for GNU $ac_path_EGREP
9772 case `"$ac_path_EGREP" --version 2>&1` in
9773 *GNU*)
9774 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9775 *)
9776 ac_count=0
9777 $as_echo_n 0123456789 >"conftest.in"
9778 while :
9779 do
9780 cat "conftest.in" "conftest.in" >"conftest.tmp"
9781 mv "conftest.tmp" "conftest.in"
9782 cp "conftest.in" "conftest.nl"
9783 $as_echo 'EGREP' >> "conftest.nl"
9784 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9786 as_fn_arith $ac_count + 1 && ac_count=$as_val
9787 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9788 # Best one so far, save it but keep looking for a better one
9789 ac_cv_path_EGREP="$ac_path_EGREP"
9790 ac_path_EGREP_max=$ac_count
9791 fi
9792 # 10*(2^10) chars as input seems more than enough
9793 test $ac_count -gt 10 && break
9794 done
9795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9796 esac
9797
9798 $ac_path_EGREP_found && break 3
9799 done
9800 done
9801 done
9802 IFS=$as_save_IFS
9803 if test -z "$ac_cv_path_EGREP"; then
9804 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9805 fi
9806 else
9807 ac_cv_path_EGREP=$EGREP
9808 fi
9809
9810 fi
9811 fi
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9813 $as_echo "$ac_cv_path_EGREP" >&6; }
9814 EGREP="$ac_cv_path_EGREP"
9815
9816
9817 # Extract the first word of "sed", so it can be a program name with args.
9818 set dummy sed; ac_word=$2
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820 $as_echo_n "checking for $ac_word... " >&6; }
9821 if test "${ac_cv_path_SED+set}" = set; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 case $SED in
9825 [\\/]* | ?:[\\/]*)
9826 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9827 ;;
9828 *)
9829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9830 for as_dir in $PATH
9831 do
9832 IFS=$as_save_IFS
9833 test -z "$as_dir" && as_dir=.
9834 for ac_exec_ext in '' $ac_executable_extensions; do
9835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9836 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9838 break 2
9839 fi
9840 done
9841 done
9842 IFS=$as_save_IFS
9843
9844 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9845 ;;
9846 esac
9847 fi
9848 SED=$ac_cv_path_SED
9849 if test -n "$SED"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9851 $as_echo "$SED" >&6; }
9852 else
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9855 fi
9856
9857
9858 # Extract the first word of "perl", so it can be a program name with args.
9859 set dummy perl; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if test "${ac_cv_path_PERL+set}" = set; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 case $PERL in
9866 [\\/]* | ?:[\\/]*)
9867 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9868 ;;
9869 *)
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9877 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9880 fi
9881 done
9882 done
9883 IFS=$as_save_IFS
9884
9885 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9886 ;;
9887 esac
9888 fi
9889 PERL=$ac_cv_path_PERL
9890 if test -n "$PERL"; then
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9892 $as_echo "$PERL" >&6; }
9893 else
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895 $as_echo "no" >&6; }
9896 fi
9897
9898
9899 # Extract the first word of "ldconfig", so it can be a program name with args.
9900 set dummy ldconfig; ac_word=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 case $LDCONFIG in
9907 [\\/]* | ?:[\\/]*)
9908 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9909 ;;
9910 *)
9911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912 for as_dir in $PATH
9913 do
9914 IFS=$as_save_IFS
9915 test -z "$as_dir" && as_dir=.
9916 for ac_exec_ext in '' $ac_executable_extensions; do
9917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9918 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9920 break 2
9921 fi
9922 done
9923 done
9924 IFS=$as_save_IFS
9925
9926 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9927 ;;
9928 esac
9929 fi
9930 LDCONFIG=$ac_cv_path_LDCONFIG
9931 if test -n "$LDCONFIG"; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9933 $as_echo "$LDCONFIG" >&6; }
9934 else
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; }
9937 fi
9938
9939
9940 if test -n "$ac_tool_prefix"; then
9941 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9942 set dummy ${ac_tool_prefix}ar; ac_word=$2
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 $as_echo_n "checking for $ac_word... " >&6; }
9945 if test "${ac_cv_prog_AR+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
9947 else
9948 if test -n "$AR"; then
9949 ac_cv_prog_AR="$AR" # Let the user override the test.
9950 else
9951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952 for as_dir in $PATH
9953 do
9954 IFS=$as_save_IFS
9955 test -z "$as_dir" && as_dir=.
9956 for ac_exec_ext in '' $ac_executable_extensions; do
9957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9958 ac_cv_prog_AR="${ac_tool_prefix}ar"
9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9960 break 2
9961 fi
9962 done
9963 done
9964 IFS=$as_save_IFS
9965
9966 fi
9967 fi
9968 AR=$ac_cv_prog_AR
9969 if test -n "$AR"; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9971 $as_echo "$AR" >&6; }
9972 else
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974 $as_echo "no" >&6; }
9975 fi
9976
9977
9978 fi
9979 if test -z "$ac_cv_prog_AR"; then
9980 ac_ct_AR=$AR
9981 # Extract the first word of "ar", so it can be a program name with args.
9982 set dummy ar; ac_word=$2
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984 $as_echo_n "checking for $ac_word... " >&6; }
9985 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 if test -n "$ac_ct_AR"; then
9989 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9990 else
9991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992 for as_dir in $PATH
9993 do
9994 IFS=$as_save_IFS
9995 test -z "$as_dir" && as_dir=.
9996 for ac_exec_ext in '' $ac_executable_extensions; do
9997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9998 ac_cv_prog_ac_ct_AR="ar"
9999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10000 break 2
10001 fi
10002 done
10003 done
10004 IFS=$as_save_IFS
10005
10006 fi
10007 fi
10008 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10009 if test -n "$ac_ct_AR"; then
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10011 $as_echo "$ac_ct_AR" >&6; }
10012 else
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10015 fi
10016
10017 if test "x$ac_ct_AR" = x; then
10018 AR="ar"
10019 else
10020 case $cross_compiling:$ac_tool_warned in
10021 yes:)
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10024 ac_tool_warned=yes ;;
10025 esac
10026 AR=$ac_ct_AR
10027 fi
10028 else
10029 AR="$ac_cv_prog_AR"
10030 fi
10031
10032 if test -n "$ac_tool_prefix"; then
10033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10034 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10036 $as_echo_n "checking for $ac_word... " >&6; }
10037 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 if test -n "$RANLIB"; then
10041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10042 else
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10045 do
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10053 fi
10054 done
10055 done
10056 IFS=$as_save_IFS
10057
10058 fi
10059 fi
10060 RANLIB=$ac_cv_prog_RANLIB
10061 if test -n "$RANLIB"; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10063 $as_echo "$RANLIB" >&6; }
10064 else
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 $as_echo "no" >&6; }
10067 fi
10068
10069
10070 fi
10071 if test -z "$ac_cv_prog_RANLIB"; then
10072 ac_ct_RANLIB=$RANLIB
10073 # Extract the first word of "ranlib", so it can be a program name with args.
10074 set dummy ranlib; ac_word=$2
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 $as_echo_n "checking for $ac_word... " >&6; }
10077 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 if test -n "$ac_ct_RANLIB"; then
10081 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10082 else
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10085 do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10090 ac_cv_prog_ac_ct_RANLIB="ranlib"
10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10093 fi
10094 done
10095 done
10096 IFS=$as_save_IFS
10097
10098 fi
10099 fi
10100 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10101 if test -n "$ac_ct_RANLIB"; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10103 $as_echo "$ac_ct_RANLIB" >&6; }
10104 else
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106 $as_echo "no" >&6; }
10107 fi
10108
10109 if test "x$ac_ct_RANLIB" = x; then
10110 RANLIB=":"
10111 else
10112 case $cross_compiling:$ac_tool_warned in
10113 yes:)
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10116 ac_tool_warned=yes ;;
10117 esac
10118 RANLIB=$ac_ct_RANLIB
10119 fi
10120 else
10121 RANLIB="$ac_cv_prog_RANLIB"
10122 fi
10123
10124 if test -n "$ac_tool_prefix"; then
10125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10126 set dummy ${ac_tool_prefix}strip; ac_word=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if test "${ac_cv_prog_STRIP+set}" = set; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 if test -n "$STRIP"; then
10133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10134 else
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10137 do
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10142 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10145 fi
10146 done
10147 done
10148 IFS=$as_save_IFS
10149
10150 fi
10151 fi
10152 STRIP=$ac_cv_prog_STRIP
10153 if test -n "$STRIP"; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10155 $as_echo "$STRIP" >&6; }
10156 else
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10159 fi
10160
10161
10162 fi
10163 if test -z "$ac_cv_prog_STRIP"; then
10164 ac_ct_STRIP=$STRIP
10165 # Extract the first word of "strip", so it can be a program name with args.
10166 set dummy strip; ac_word=$2
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 $as_echo_n "checking for $ac_word... " >&6; }
10169 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 if test -n "$ac_ct_STRIP"; then
10173 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10174 else
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in $PATH
10177 do
10178 IFS=$as_save_IFS
10179 test -z "$as_dir" && as_dir=.
10180 for ac_exec_ext in '' $ac_executable_extensions; do
10181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10182 ac_cv_prog_ac_ct_STRIP="strip"
10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10184 break 2
10185 fi
10186 done
10187 done
10188 IFS=$as_save_IFS
10189
10190 fi
10191 fi
10192 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10193 if test -n "$ac_ct_STRIP"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10195 $as_echo "$ac_ct_STRIP" >&6; }
10196 else
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10199 fi
10200
10201 if test "x$ac_ct_STRIP" = x; then
10202 STRIP=":"
10203 else
10204 case $cross_compiling:$ac_tool_warned in
10205 yes:)
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10208 ac_tool_warned=yes ;;
10209 esac
10210 STRIP=$ac_ct_STRIP
10211 fi
10212 else
10213 STRIP="$ac_cv_prog_STRIP"
10214 fi
10215
10216 # Extract the first word of "makeinfo", so it can be a program name with args.
10217 set dummy makeinfo; ac_word=$2
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10219 $as_echo_n "checking for $ac_word... " >&6; }
10220 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 if test -n "$MAKEINFO"; then
10224 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10225 else
10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10228 do
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
10231 for ac_exec_ext in '' $ac_executable_extensions; do
10232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10233 ac_cv_prog_MAKEINFO="makeinfo"
10234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 break 2
10236 fi
10237 done
10238 done
10239 IFS=$as_save_IFS
10240
10241 fi
10242 fi
10243 MAKEINFO=$ac_cv_prog_MAKEINFO
10244 if test -n "$MAKEINFO"; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10246 $as_echo "$MAKEINFO" >&6; }
10247 else
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10250 fi
10251
10252
10253 if test "_$MAKEINFO" = "_"; then
10254 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10255 else
10256 case "$MAKEINFO" in
10257 */missing.*)
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10259 *** Makeinfo is missing. Info documentation will not be built." >&5
10260 $as_echo "$as_me: WARNING:
10261 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10262 ;;
10263 *)
10264 ;;
10265 esac
10266 fi
10267
10268
10269 # See if we need a separate native compiler.
10270 if test $cross_compiling = no; then
10271 BUILD_CC="$CC"
10272
10273 else
10274 for ac_prog in gcc cc
10275 do
10276 # Extract the first word of "$ac_prog", so it can be a program name with args.
10277 set dummy $ac_prog; ac_word=$2
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 $as_echo_n "checking for $ac_word... " >&6; }
10280 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283 if test -n "$BUILD_CC"; then
10284 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10285 else
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10288 do
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10293 ac_cv_prog_BUILD_CC="$ac_prog"
10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 break 2
10296 fi
10297 done
10298 done
10299 IFS=$as_save_IFS
10300
10301 fi
10302 fi
10303 BUILD_CC=$ac_cv_prog_BUILD_CC
10304 if test -n "$BUILD_CC"; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10306 $as_echo "$BUILD_CC" >&6; }
10307 else
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309 $as_echo "no" >&6; }
10310 fi
10311
10312
10313 test -n "$BUILD_CC" && break
10314 done
10315
10316 fi
10317 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
10318 do :
10319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10320 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10321 eval as_val=\$$as_ac_Header
10322 if test "x$as_val" = x""yes; then :
10323 cat >>confdefs.h <<_ACEOF
10324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10325 _ACEOF
10326
10327 fi
10328
10329 done
10330
10331 for ac_header in sys/disk.h sys/mount.h
10332 do :
10333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10334 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10335 #if HAVE_SYS_QUEUE_H
10336 #include <sys/queue.h>
10337 #endif
10338
10339 "
10340 eval as_val=\$$as_ac_Header
10341 if test "x$as_val" = x""yes; then :
10342 cat >>confdefs.h <<_ACEOF
10343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10344 _ACEOF
10345
10346 fi
10347
10348 done
10349
10350 for ac_header in net/if.h
10351 do :
10352 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10353 #if HAVE_SYS_TYPES_H
10354 #include <sys/types.h>
10355 #endif
10356 #if HAVE_SYS_SOCKET
10357 #include <sys/socket.h>
10358 #endif
10359
10360 "
10361 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10362 cat >>confdefs.h <<_ACEOF
10363 #define HAVE_NET_IF_H 1
10364 _ACEOF
10365
10366 fi
10367
10368 done
10369
10370 for ac_func in vprintf
10371 do :
10372 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10373 if test "x$ac_cv_func_vprintf" = x""yes; then :
10374 cat >>confdefs.h <<_ACEOF
10375 #define HAVE_VPRINTF 1
10376 _ACEOF
10377
10378 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10379 if test "x$ac_cv_func__doprnt" = x""yes; then :
10380
10381 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10382
10383 fi
10384
10385 fi
10386 done
10387
10388
10389 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10390 "
10391 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10392
10393 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10394
10395 fi
10396
10397 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10398 "
10399 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10400
10401 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10402
10403 fi
10404
10405 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10406 "
10407 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10408
10409 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10410
10411 fi
10412
10413 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10414 #define _LARGEFILE64_SOURCE
10415 #include <unistd.h>
10416 "
10417 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10418
10419 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10420
10421 fi
10422
10423 # The cast to long int works around a bug in the HP C Compiler
10424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10426 # This bug is HP SR number 8606223364.
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10428 $as_echo_n "checking size of short... " >&6; }
10429 if test "${ac_cv_sizeof_short+set}" = set; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10433
10434 else
10435 if test "$ac_cv_type_short" = yes; then
10436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10438 { as_fn_set_status 77
10439 as_fn_error "cannot compute sizeof (short)
10440 See \`config.log' for more details." "$LINENO" 5; }; }
10441 else
10442 ac_cv_sizeof_short=0
10443 fi
10444 fi
10445
10446 fi
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10448 $as_echo "$ac_cv_sizeof_short" >&6; }
10449
10450
10451
10452 cat >>confdefs.h <<_ACEOF
10453 #define SIZEOF_SHORT $ac_cv_sizeof_short
10454 _ACEOF
10455
10456
10457 # The cast to long int works around a bug in the HP C Compiler
10458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10460 # This bug is HP SR number 8606223364.
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10462 $as_echo_n "checking size of int... " >&6; }
10463 if test "${ac_cv_sizeof_int+set}" = set; then :
10464 $as_echo_n "(cached) " >&6
10465 else
10466 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10467
10468 else
10469 if test "$ac_cv_type_int" = yes; then
10470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10472 { as_fn_set_status 77
10473 as_fn_error "cannot compute sizeof (int)
10474 See \`config.log' for more details." "$LINENO" 5; }; }
10475 else
10476 ac_cv_sizeof_int=0
10477 fi
10478 fi
10479
10480 fi
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10482 $as_echo "$ac_cv_sizeof_int" >&6; }
10483
10484
10485
10486 cat >>confdefs.h <<_ACEOF
10487 #define SIZEOF_INT $ac_cv_sizeof_int
10488 _ACEOF
10489
10490
10491 # The cast to long int works around a bug in the HP C Compiler
10492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10494 # This bug is HP SR number 8606223364.
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10496 $as_echo_n "checking size of long... " >&6; }
10497 if test "${ac_cv_sizeof_long+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10501
10502 else
10503 if test "$ac_cv_type_long" = yes; then
10504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10506 { as_fn_set_status 77
10507 as_fn_error "cannot compute sizeof (long)
10508 See \`config.log' for more details." "$LINENO" 5; }; }
10509 else
10510 ac_cv_sizeof_long=0
10511 fi
10512 fi
10513
10514 fi
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10516 $as_echo "$ac_cv_sizeof_long" >&6; }
10517
10518
10519
10520 cat >>confdefs.h <<_ACEOF
10521 #define SIZEOF_LONG $ac_cv_sizeof_long
10522 _ACEOF
10523
10524
10525 # The cast to long int works around a bug in the HP C Compiler
10526 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10527 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10528 # This bug is HP SR number 8606223364.
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10530 $as_echo_n "checking size of long long... " >&6; }
10531 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10535
10536 else
10537 if test "$ac_cv_type_long_long" = yes; then
10538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10540 { as_fn_set_status 77
10541 as_fn_error "cannot compute sizeof (long long)
10542 See \`config.log' for more details." "$LINENO" 5; }; }
10543 else
10544 ac_cv_sizeof_long_long=0
10545 fi
10546 fi
10547
10548 fi
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10550 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10551
10552
10553
10554 cat >>confdefs.h <<_ACEOF
10555 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10556 _ACEOF
10557
10558
10559 SIZEOF_SHORT=$ac_cv_sizeof_short
10560 SIZEOF_INT=$ac_cv_sizeof_int
10561 SIZEOF_LONG=$ac_cv_sizeof_long
10562 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10563
10564
10565
10566
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10568 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10569 if test "${ac_cv_c_bigendian+set}" = set; then :
10570 $as_echo_n "(cached) " >&6
10571 else
10572 ac_cv_c_bigendian=unknown
10573 # See if we're dealing with a universal compiler.
10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h. */
10576 #ifndef __APPLE_CC__
10577 not a universal capable compiler
10578 #endif
10579 typedef int dummy;
10580
10581 _ACEOF
10582 if ac_fn_c_try_compile "$LINENO"; then :
10583
10584 # Check for potential -arch flags. It is not universal unless
10585 # there are at least two -arch flags with different values.
10586 ac_arch=
10587 ac_prev=
10588 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10589 if test -n "$ac_prev"; then
10590 case $ac_word in
10591 i?86 | x86_64 | ppc | ppc64)
10592 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10593 ac_arch=$ac_word
10594 else
10595 ac_cv_c_bigendian=universal
10596 break
10597 fi
10598 ;;
10599 esac
10600 ac_prev=
10601 elif test "x$ac_word" = "x-arch"; then
10602 ac_prev=arch
10603 fi
10604 done
10605 fi
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 if test $ac_cv_c_bigendian = unknown; then
10608 # See if sys/param.h defines the BYTE_ORDER macro.
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 #include <sys/types.h>
10612 #include <sys/param.h>
10613
10614 int
10615 main ()
10616 {
10617 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10618 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10619 && LITTLE_ENDIAN)
10620 bogus endian macros
10621 #endif
10622
10623 ;
10624 return 0;
10625 }
10626 _ACEOF
10627 if ac_fn_c_try_compile "$LINENO"; then :
10628 # It does; now see whether it defined to BIG_ENDIAN or not.
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 #include <sys/types.h>
10632 #include <sys/param.h>
10633
10634 int
10635 main ()
10636 {
10637 #if BYTE_ORDER != BIG_ENDIAN
10638 not big endian
10639 #endif
10640
10641 ;
10642 return 0;
10643 }
10644 _ACEOF
10645 if ac_fn_c_try_compile "$LINENO"; then :
10646 ac_cv_c_bigendian=yes
10647 else
10648 ac_cv_c_bigendian=no
10649 fi
10650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10651 fi
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653 fi
10654 if test $ac_cv_c_bigendian = unknown; then
10655 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658 #include <limits.h>
10659
10660 int
10661 main ()
10662 {
10663 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10664 bogus endian macros
10665 #endif
10666
10667 ;
10668 return 0;
10669 }
10670 _ACEOF
10671 if ac_fn_c_try_compile "$LINENO"; then :
10672 # It does; now see whether it defined to _BIG_ENDIAN or not.
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10675 #include <limits.h>
10676
10677 int
10678 main ()
10679 {
10680 #ifndef _BIG_ENDIAN
10681 not big endian
10682 #endif
10683
10684 ;
10685 return 0;
10686 }
10687 _ACEOF
10688 if ac_fn_c_try_compile "$LINENO"; then :
10689 ac_cv_c_bigendian=yes
10690 else
10691 ac_cv_c_bigendian=no
10692 fi
10693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10694 fi
10695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10696 fi
10697 if test $ac_cv_c_bigendian = unknown; then
10698 # Compile a test program.
10699 if test "$cross_compiling" = yes; then :
10700 # Try to guess by grepping values from an object file.
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703 short int ascii_mm[] =
10704 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10705 short int ascii_ii[] =
10706 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10707 int use_ascii (int i) {
10708 return ascii_mm[i] + ascii_ii[i];
10709 }
10710 short int ebcdic_ii[] =
10711 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10712 short int ebcdic_mm[] =
10713 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10714 int use_ebcdic (int i) {
10715 return ebcdic_mm[i] + ebcdic_ii[i];
10716 }
10717 extern int foo;
10718
10719 int
10720 main ()
10721 {
10722 return use_ascii (foo) == use_ebcdic (foo);
10723 ;
10724 return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_compile "$LINENO"; then :
10728 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10729 ac_cv_c_bigendian=yes
10730 fi
10731 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10732 if test "$ac_cv_c_bigendian" = unknown; then
10733 ac_cv_c_bigendian=no
10734 else
10735 # finding both strings is unlikely to happen, but who knows?
10736 ac_cv_c_bigendian=unknown
10737 fi
10738 fi
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10741 else
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 $ac_includes_default
10745 int
10746 main ()
10747 {
10748
10749 /* Are we little or big endian? From Harbison&Steele. */
10750 union
10751 {
10752 long int l;
10753 char c[sizeof (long int)];
10754 } u;
10755 u.l = 1;
10756 return u.c[sizeof (long int) - 1] == 1;
10757
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_run "$LINENO"; then :
10763 ac_cv_c_bigendian=no
10764 else
10765 ac_cv_c_bigendian=yes
10766 fi
10767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10768 conftest.$ac_objext conftest.beam conftest.$ac_ext
10769 fi
10770
10771 fi
10772 fi
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10774 $as_echo "$ac_cv_c_bigendian" >&6; }
10775 case $ac_cv_c_bigendian in #(
10776 yes)
10777 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10778 ;; #(
10779 no)
10780 ;; #(
10781 universal)
10782
10783 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10784
10785 ;; #(
10786 *)
10787 as_fn_error "unknown endianness
10788 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10789 esac
10790
10791 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10792 ASM_TYPES_HEADER=./asm_types.h
10793
10794 echo "/* These defines are needed for the public ext2fs.h header file */" \
10795 > public_config.h
10796 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10797 uniq tmp_config.$$ >> public_config.h
10798 else
10799 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10800 fi
10801 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10802 uniq tmp_config.$$ >> public_config.h
10803 else
10804 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10805 fi
10806 rm -f tmp_config.$$
10807 PUBLIC_CONFIG_HEADER=./public_config.h
10808
10809 for ac_header in inttypes.h
10810 do :
10811 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10812 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10813 cat >>confdefs.h <<_ACEOF
10814 #define HAVE_INTTYPES_H 1
10815 _ACEOF
10816
10817 fi
10818
10819 done
10820
10821 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10822 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10823
10824 cat >>confdefs.h <<_ACEOF
10825 #define HAVE_INTPTR_T 1
10826 _ACEOF
10827
10828
10829 fi
10830
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10832 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10833 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10834 $as_echo_n "(cached) " >&6
10835 else
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10838 #include <sys/stat.h>
10839 int
10840 main ()
10841 {
10842 struct stat stat; stat.st_flags = 0;
10843 ;
10844 return 0;
10845 }
10846 _ACEOF
10847 if ac_fn_c_try_compile "$LINENO"; then :
10848 e2fsprogs_cv_struct_st_flags=yes
10849 else
10850 e2fsprogs_cv_struct_st_flags=no
10851 fi
10852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10853 fi
10854
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10856 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10857 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10859 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10860 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10865 #include <sys/stat.h>
10866 int
10867 main ()
10868 {
10869 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 if ac_fn_c_try_compile "$LINENO"; then :
10875 e2fsprogs_cv_struct_st_flags_immut=yes
10876 else
10877 e2fsprogs_cv_struct_st_flags_immut=no
10878 fi
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880 fi
10881
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10883 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10884 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10885
10886 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10887
10888 fi
10889 fi
10890 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10891 #include <sys/socket.h>
10892 "
10893 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10894
10895 cat >>confdefs.h <<_ACEOF
10896 #define HAVE_SA_LEN 1
10897 _ACEOF
10898
10899 fi
10900
10901 if test -n "$BLKID_CMT"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10903 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10904 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 ac_func_search_save_LIBS=$LIBS
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10910
10911 /* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10914 #ifdef __cplusplus
10915 extern "C"
10916 #endif
10917 char blkid_probe_all ();
10918 int
10919 main ()
10920 {
10921 return blkid_probe_all ();
10922 ;
10923 return 0;
10924 }
10925 _ACEOF
10926 for ac_lib in '' blkid; do
10927 if test -z "$ac_lib"; then
10928 ac_res="none required"
10929 else
10930 ac_res=-l$ac_lib
10931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10932 fi
10933 if ac_fn_c_try_link "$LINENO"; then :
10934 ac_cv_search_blkid_probe_all=$ac_res
10935 fi
10936 rm -f core conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext
10938 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10939 break
10940 fi
10941 done
10942 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10943
10944 else
10945 ac_cv_search_blkid_probe_all=no
10946 fi
10947 rm conftest.$ac_ext
10948 LIBS=$ac_func_search_save_LIBS
10949 fi
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10951 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10952 ac_res=$ac_cv_search_blkid_probe_all
10953 if test "$ac_res" != no; then :
10954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10955
10956 fi
10957
10958 fi
10959 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit sync_file_range posix_fadvise fallocate fallocate64 blkid_probe_get_topology mbstowcs backtrace
10960 do :
10961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10962 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10963 eval as_val=\$$as_ac_var
10964 if test "x$as_val" = x""yes; then :
10965 cat >>confdefs.h <<_ACEOF
10966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10967 _ACEOF
10968
10969 fi
10970 done
10971
10972 SOCKET_LIB=''
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10974 $as_echo_n "checking for socket in -lsocket... " >&6; }
10975 if test "${ac_cv_lib_socket_socket+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 ac_check_lib_save_LIBS=$LIBS
10979 LIBS="-lsocket $LIBS"
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10982
10983 /* Override any GCC internal prototype to avoid an error.
10984 Use char because int might match the return type of a GCC
10985 builtin and then its argument prototype would still apply. */
10986 #ifdef __cplusplus
10987 extern "C"
10988 #endif
10989 char socket ();
10990 int
10991 main ()
10992 {
10993 return socket ();
10994 ;
10995 return 0;
10996 }
10997 _ACEOF
10998 if ac_fn_c_try_link "$LINENO"; then :
10999 ac_cv_lib_socket_socket=yes
11000 else
11001 ac_cv_lib_socket_socket=no
11002 fi
11003 rm -f core conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005 LIBS=$ac_check_lib_save_LIBS
11006 fi
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11008 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11009 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
11010 SOCKET_LIB=-lsocket
11011 fi
11012
11013
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11015 $as_echo_n "checking for optreset... " >&6; }
11016 if test "${ac_cv_have_optreset+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h. */
11021 #include <unistd.h>
11022
11023 _ACEOF
11024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11025 $EGREP "optreset" >/dev/null 2>&1; then :
11026 ac_cv_have_optreset=yes
11027 else
11028 ac_cv_have_optreset=no
11029 fi
11030 rm -f conftest*
11031
11032 fi
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11034 $as_echo "$ac_cv_have_optreset" >&6; }
11035 if test $ac_cv_have_optreset = yes; then
11036
11037 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11038
11039 fi
11040
11041 SEM_INIT_LIB=''
11042 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11043 if test "x$ac_cv_func_sem_init" = x""yes; then :
11044
11045 else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11047 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11048 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 ac_check_lib_save_LIBS=$LIBS
11052 LIBS="-lpthread $LIBS"
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11055
11056 /* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11059 #ifdef __cplusplus
11060 extern "C"
11061 #endif
11062 char sem_init ();
11063 int
11064 main ()
11065 {
11066 return sem_init ();
11067 ;
11068 return 0;
11069 }
11070 _ACEOF
11071 if ac_fn_c_try_link "$LINENO"; then :
11072 ac_cv_lib_pthread_sem_init=yes
11073 else
11074 ac_cv_lib_pthread_sem_init=no
11075 fi
11076 rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11078 LIBS=$ac_check_lib_save_LIBS
11079 fi
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11081 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11082 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11083 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11084
11085 SEM_INIT_LIB=-lpthread
11086 else
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11088 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11089 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
11091 else
11092 ac_check_lib_save_LIBS=$LIBS
11093 LIBS="-lrt $LIBS"
11094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095 /* end confdefs.h. */
11096
11097 /* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11100 #ifdef __cplusplus
11101 extern "C"
11102 #endif
11103 char sem_init ();
11104 int
11105 main ()
11106 {
11107 return sem_init ();
11108 ;
11109 return 0;
11110 }
11111 _ACEOF
11112 if ac_fn_c_try_link "$LINENO"; then :
11113 ac_cv_lib_rt_sem_init=yes
11114 else
11115 ac_cv_lib_rt_sem_init=no
11116 fi
11117 rm -f core conftest.err conftest.$ac_objext \
11118 conftest$ac_exeext conftest.$ac_ext
11119 LIBS=$ac_check_lib_save_LIBS
11120 fi
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11122 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11123 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11124 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11125
11126 SEM_INIT_LIB=-lrt
11127 else
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11129 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11130 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 ac_check_lib_save_LIBS=$LIBS
11134 LIBS="-lposix4 $LIBS"
11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11137
11138 /* Override any GCC internal prototype to avoid an error.
11139 Use char because int might match the return type of a GCC
11140 builtin and then its argument prototype would still apply. */
11141 #ifdef __cplusplus
11142 extern "C"
11143 #endif
11144 char sem_init ();
11145 int
11146 main ()
11147 {
11148 return sem_init ();
11149 ;
11150 return 0;
11151 }
11152 _ACEOF
11153 if ac_fn_c_try_link "$LINENO"; then :
11154 ac_cv_lib_posix4_sem_init=yes
11155 else
11156 ac_cv_lib_posix4_sem_init=no
11157 fi
11158 rm -f core conftest.err conftest.$ac_objext \
11159 conftest$ac_exeext conftest.$ac_ext
11160 LIBS=$ac_check_lib_save_LIBS
11161 fi
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11163 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11164 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11165 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11166
11167 SEM_INIT_LIB=-lposix4
11168 fi
11169
11170 fi
11171
11172 fi
11173
11174 fi
11175
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11177 $as_echo_n "checking for unified diff option... " >&6; }
11178 if diff -u $0 $0 > /dev/null 2>&1 ; then
11179 UNI_DIFF_OPTS=-u
11180 else
11181 UNI_DIFF_OPTS=-c
11182 fi
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11184 $as_echo "$UNI_DIFF_OPTS" >&6; }
11185
11186 case "$host_os" in
11187 linux*)
11188
11189 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11190
11191 ;;
11192 esac
11193 LINUX_CMT="#"
11194 CYGWIN_CMT="#"
11195 UNIX_CMT=
11196 case "$host_os" in
11197 linux*)
11198 LINUX_CMT=
11199 ;;
11200 cygwin)
11201 CYGWIN_CMT=
11202 UNIX_CMT="#"
11203 ;;
11204 esac
11205
11206
11207
11208 case "$host_os" in
11209 linux* | gnu* | k*bsd*-gnu)
11210 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11211 root_prefix="";
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11213 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11214 fi
11215 ;;
11216 esac
11217 case "$host_os" in
11218 linux* | gnu* | k*bsd*-gnu)
11219 if test "$prefix" = NONE ; then
11220 prefix="/usr";
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11222 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11223 if test "$mandir" = '${prefix}/man' ; then
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11225 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11226 mandir=/usr/share/man
11227 fi
11228 fi
11229 ;;
11230 esac
11231 if test "$root_prefix" = NONE ; then
11232 if test "$prefix" = NONE ; then
11233 root_prefix="$ac_default_prefix"
11234 else
11235 root_prefix="$prefix"
11236 fi
11237 root_bindir=$bindir
11238 root_sbindir=$sbindir
11239 root_libdir=$libdir
11240 root_sysconfdir=$sysconfdir
11241 else
11242 root_bindir='${root_prefix}/bin'
11243 root_sbindir='${root_prefix}/sbin'
11244 root_libdir='${root_prefix}/lib'
11245 root_sysconfdir='${root_prefix}/etc'
11246 fi
11247 if test "$bindir" != '${exec_prefix}/bin'; then
11248 root_bindir=$bindir
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11250 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11251 fi
11252 if test "$sbindir" != '${exec_prefix}/sbin'; then
11253 root_sbindir=$sbindir
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11255 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11256 fi
11257 if test "$libdir" != '${exec_prefix}/lib'; then
11258 root_libdir=$libdir
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11260 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11261 fi
11262 if test "$sysconfdir" != '${prefix}/etc'; then
11263 root_sysconfdir=$sysconfdir
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11265 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11266 fi
11267
11268
11269
11270
11271
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11273 $as_echo_n "checking whether linker accepts -static... " >&6; }
11274 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11275 $as_echo_n "(cached) " >&6
11276 else
11277 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11280 #include <stdio.h>
11281 int
11282 main ()
11283 {
11284 fflush(stdout);
11285 ;
11286 return 0;
11287 }
11288 _ACEOF
11289 if ac_fn_c_try_link "$LINENO"; then :
11290 ac_cv_e2fsprogs_use_static=yes
11291 else
11292 ac_cv_e2fsprogs_use_static=no
11293 fi
11294 rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11296 LDFLAGS=$SAVE_LDFLAGS
11297 fi
11298
11299 case "$host_os" in
11300 solaris2.*)
11301 ac_cv_e2fsprogs_use_static=no
11302 ;;
11303 esac
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11305 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11306 LDFLAG_STATIC=
11307 if test $ac_cv_e2fsprogs_use_static = yes; then
11308 LDFLAG_STATIC=-static
11309 fi
11310
11311 case "$host_os" in
11312 darwin*)
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11314 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11315
11316 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11317
11318 ;;
11319 esac
11320 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11321 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11322
11323
11324 if test "$cross_compiling" = yes ; then
11325 DO_TEST_SUITE=
11326 else
11327 DO_TEST_SUITE=check
11328 fi
11329
11330 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11331 if test -n "$CPPFLAGS" ; then
11332 INCLUDES="$INCLUDES $CPPFLAGS"
11333 fi
11334 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11335 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11336 fi
11337
11338 if test $cross_compiling = no; then
11339 BUILD_CFLAGS="$CFLAGS"
11340 BUILD_LDFLAGS="$LDFLAGS"
11341 else
11342 BUILD_CFLAGS=
11343 BUILD_LDFLAGS=
11344 fi
11345
11346
11347 test -d lib || mkdir lib
11348 test -d include || mkdir include
11349 test -d include/linux || mkdir include/linux
11350 test -d include/asm || mkdir include/asm
11351 for i in MCONFIG Makefile e2fsprogs.spec \
11352 util/Makefile util/subst.conf util/gen-tarball \
11353 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11354 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11355 lib/uuid/Makefile lib/uuid/uuid_types.h \
11356 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11357 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11358 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11359 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11360 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11361 resize/Makefile doc/Makefile intl/Makefile \
11362 intl/libgnuintl.h po/Makefile.in ; do
11363 if test -d `dirname ${srcdir}/$i` ; then
11364 outlist="$outlist $i"
11365 fi
11366 done
11367 ac_config_files="$ac_config_files $outlist"
11368
11369 cat >confcache <<\_ACEOF
11370 # This file is a shell script that caches the results of configure
11371 # tests run on this system so they can be shared between configure
11372 # scripts and configure runs, see configure's option --config-cache.
11373 # It is not useful on other systems. If it contains results you don't
11374 # want to keep, you may remove or edit it.
11375 #
11376 # config.status only pays attention to the cache file if you give it
11377 # the --recheck option to rerun configure.
11378 #
11379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11381 # following values.
11382
11383 _ACEOF
11384
11385 # The following way of writing the cache mishandles newlines in values,
11386 # but we know of no workaround that is simple, portable, and efficient.
11387 # So, we kill variables containing newlines.
11388 # Ultrix sh set writes to stderr and can't be redirected directly,
11389 # and sets the high bit in the cache file unless we assign to the vars.
11390 (
11391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11392 eval ac_val=\$$ac_var
11393 case $ac_val in #(
11394 *${as_nl}*)
11395 case $ac_var in #(
11396 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11397 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11398 esac
11399 case $ac_var in #(
11400 _ | IFS | as_nl) ;; #(
11401 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11402 *) { eval $ac_var=; unset $ac_var;} ;;
11403 esac ;;
11404 esac
11405 done
11406
11407 (set) 2>&1 |
11408 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11409 *${as_nl}ac_space=\ *)
11410 # `set' does not quote correctly, so add quotes: double-quote
11411 # substitution turns \\\\ into \\, and sed turns \\ into \.
11412 sed -n \
11413 "s/'/'\\\\''/g;
11414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11415 ;; #(
11416 *)
11417 # `set' quotes correctly as required by POSIX, so do not add quotes.
11418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11419 ;;
11420 esac |
11421 sort
11422 ) |
11423 sed '
11424 /^ac_cv_env_/b end
11425 t clear
11426 :clear
11427 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11428 t end
11429 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11430 :end' >>confcache
11431 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11432 if test -w "$cache_file"; then
11433 test "x$cache_file" != "x/dev/null" &&
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11435 $as_echo "$as_me: updating cache $cache_file" >&6;}
11436 cat confcache >$cache_file
11437 else
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11439 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11440 fi
11441 fi
11442 rm -f confcache
11443
11444 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11445 # Let make expand exec_prefix.
11446 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11447
11448 DEFS=-DHAVE_CONFIG_H
11449
11450 ac_libobjs=
11451 ac_ltlibobjs=
11452 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11453 # 1. Remove the extension, and $U if already installed.
11454 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11455 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11456 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11457 # will be set to the directory where LIBOBJS objects are built.
11458 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11459 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11460 done
11461 LIBOBJS=$ac_libobjs
11462
11463 LTLIBOBJS=$ac_ltlibobjs
11464
11465
11466
11467
11468 : ${CONFIG_STATUS=./config.status}
11469 ac_write_fail=0
11470 ac_clean_files_save=$ac_clean_files
11471 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11473 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11474 as_write_fail=0
11475 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11476 #! $SHELL
11477 # Generated by $as_me.
11478 # Run this file to recreate the current configuration.
11479 # Compiler output produced by configure, useful for debugging
11480 # configure, is in config.log if it exists.
11481
11482 debug=false
11483 ac_cs_recheck=false
11484 ac_cs_silent=false
11485
11486 SHELL=\${CONFIG_SHELL-$SHELL}
11487 export SHELL
11488 _ASEOF
11489 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11490 ## -------------------- ##
11491 ## M4sh Initialization. ##
11492 ## -------------------- ##
11493
11494 # Be more Bourne compatible
11495 DUALCASE=1; export DUALCASE # for MKS sh
11496 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11497 emulate sh
11498 NULLCMD=:
11499 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11500 # is contrary to our usage. Disable this feature.
11501 alias -g '${1+"$@"}'='"$@"'
11502 setopt NO_GLOB_SUBST
11503 else
11504 case `(set -o) 2>/dev/null` in #(
11505 *posix*) :
11506 set -o posix ;; #(
11507 *) :
11508 ;;
11509 esac
11510 fi
11511
11512
11513 as_nl='
11514 '
11515 export as_nl
11516 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11517 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11518 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11519 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11520 # Prefer a ksh shell builtin over an external printf program on Solaris,
11521 # but without wasting forks for bash or zsh.
11522 if test -z "$BASH_VERSION$ZSH_VERSION" \
11523 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11524 as_echo='print -r --'
11525 as_echo_n='print -rn --'
11526 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11527 as_echo='printf %s\n'
11528 as_echo_n='printf %s'
11529 else
11530 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11531 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11532 as_echo_n='/usr/ucb/echo -n'
11533 else
11534 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11535 as_echo_n_body='eval
11536 arg=$1;
11537 case $arg in #(
11538 *"$as_nl"*)
11539 expr "X$arg" : "X\\(.*\\)$as_nl";
11540 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11541 esac;
11542 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11543 '
11544 export as_echo_n_body
11545 as_echo_n='sh -c $as_echo_n_body as_echo'
11546 fi
11547 export as_echo_body
11548 as_echo='sh -c $as_echo_body as_echo'
11549 fi
11550
11551 # The user is always right.
11552 if test "${PATH_SEPARATOR+set}" != set; then
11553 PATH_SEPARATOR=:
11554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11555 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11556 PATH_SEPARATOR=';'
11557 }
11558 fi
11559
11560
11561 # IFS
11562 # We need space, tab and new line, in precisely that order. Quoting is
11563 # there to prevent editors from complaining about space-tab.
11564 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11565 # splitting by setting IFS to empty value.)
11566 IFS=" "" $as_nl"
11567
11568 # Find who we are. Look in the path if we contain no directory separator.
11569 case $0 in #((
11570 *[\\/]* ) as_myself=$0 ;;
11571 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11573 do
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
11576 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11577 done
11578 IFS=$as_save_IFS
11579
11580 ;;
11581 esac
11582 # We did not find ourselves, most probably we were run as `sh COMMAND'
11583 # in which case we are not to be found in the path.
11584 if test "x$as_myself" = x; then
11585 as_myself=$0
11586 fi
11587 if test ! -f "$as_myself"; then
11588 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11589 exit 1
11590 fi
11591
11592 # Unset variables that we do not need and which cause bugs (e.g. in
11593 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11594 # suppresses any "Segmentation fault" message there. '((' could
11595 # trigger a bug in pdksh 5.2.14.
11596 for as_var in BASH_ENV ENV MAIL MAILPATH
11597 do eval test x\${$as_var+set} = xset \
11598 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11599 done
11600 PS1='$ '
11601 PS2='> '
11602 PS4='+ '
11603
11604 # NLS nuisances.
11605 LC_ALL=C
11606 export LC_ALL
11607 LANGUAGE=C
11608 export LANGUAGE
11609
11610 # CDPATH.
11611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11612
11613
11614 # as_fn_error ERROR [LINENO LOG_FD]
11615 # ---------------------------------
11616 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11617 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11618 # script with status $?, using 1 if that was 0.
11619 as_fn_error ()
11620 {
11621 as_status=$?; test $as_status -eq 0 && as_status=1
11622 if test "$3"; then
11623 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11624 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11625 fi
11626 $as_echo "$as_me: error: $1" >&2
11627 as_fn_exit $as_status
11628 } # as_fn_error
11629
11630
11631 # as_fn_set_status STATUS
11632 # -----------------------
11633 # Set $? to STATUS, without forking.
11634 as_fn_set_status ()
11635 {
11636 return $1
11637 } # as_fn_set_status
11638
11639 # as_fn_exit STATUS
11640 # -----------------
11641 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11642 as_fn_exit ()
11643 {
11644 set +e
11645 as_fn_set_status $1
11646 exit $1
11647 } # as_fn_exit
11648
11649 # as_fn_unset VAR
11650 # ---------------
11651 # Portably unset VAR.
11652 as_fn_unset ()
11653 {
11654 { eval $1=; unset $1;}
11655 }
11656 as_unset=as_fn_unset
11657 # as_fn_append VAR VALUE
11658 # ----------------------
11659 # Append the text in VALUE to the end of the definition contained in VAR. Take
11660 # advantage of any shell optimizations that allow amortized linear growth over
11661 # repeated appends, instead of the typical quadratic growth present in naive
11662 # implementations.
11663 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11664 eval 'as_fn_append ()
11665 {
11666 eval $1+=\$2
11667 }'
11668 else
11669 as_fn_append ()
11670 {
11671 eval $1=\$$1\$2
11672 }
11673 fi # as_fn_append
11674
11675 # as_fn_arith ARG...
11676 # ------------------
11677 # Perform arithmetic evaluation on the ARGs, and store the result in the
11678 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11679 # must be portable across $(()) and expr.
11680 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11681 eval 'as_fn_arith ()
11682 {
11683 as_val=$(( $* ))
11684 }'
11685 else
11686 as_fn_arith ()
11687 {
11688 as_val=`expr "$@" || test $? -eq 1`
11689 }
11690 fi # as_fn_arith
11691
11692
11693 if expr a : '\(a\)' >/dev/null 2>&1 &&
11694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11695 as_expr=expr
11696 else
11697 as_expr=false
11698 fi
11699
11700 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11701 as_basename=basename
11702 else
11703 as_basename=false
11704 fi
11705
11706 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11707 as_dirname=dirname
11708 else
11709 as_dirname=false
11710 fi
11711
11712 as_me=`$as_basename -- "$0" ||
11713 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11714 X"$0" : 'X\(//\)$' \| \
11715 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11716 $as_echo X/"$0" |
11717 sed '/^.*\/\([^/][^/]*\)\/*$/{
11718 s//\1/
11719 q
11720 }
11721 /^X\/\(\/\/\)$/{
11722 s//\1/
11723 q
11724 }
11725 /^X\/\(\/\).*/{
11726 s//\1/
11727 q
11728 }
11729 s/.*/./; q'`
11730
11731 # Avoid depending upon Character Ranges.
11732 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11733 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11734 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11735 as_cr_digits='0123456789'
11736 as_cr_alnum=$as_cr_Letters$as_cr_digits
11737
11738 ECHO_C= ECHO_N= ECHO_T=
11739 case `echo -n x` in #(((((
11740 -n*)
11741 case `echo 'xy\c'` in
11742 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11743 xy) ECHO_C='\c';;
11744 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11745 ECHO_T=' ';;
11746 esac;;
11747 *)
11748 ECHO_N='-n';;
11749 esac
11750
11751 rm -f conf$$ conf$$.exe conf$$.file
11752 if test -d conf$$.dir; then
11753 rm -f conf$$.dir/conf$$.file
11754 else
11755 rm -f conf$$.dir
11756 mkdir conf$$.dir 2>/dev/null
11757 fi
11758 if (echo >conf$$.file) 2>/dev/null; then
11759 if ln -s conf$$.file conf$$ 2>/dev/null; then
11760 as_ln_s='ln -s'
11761 # ... but there are two gotchas:
11762 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11763 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11764 # In both cases, we have to default to `cp -p'.
11765 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11766 as_ln_s='cp -p'
11767 elif ln conf$$.file conf$$ 2>/dev/null; then
11768 as_ln_s=ln
11769 else
11770 as_ln_s='cp -p'
11771 fi
11772 else
11773 as_ln_s='cp -p'
11774 fi
11775 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11776 rmdir conf$$.dir 2>/dev/null
11777
11778
11779 # as_fn_mkdir_p
11780 # -------------
11781 # Create "$as_dir" as a directory, including parents if necessary.
11782 as_fn_mkdir_p ()
11783 {
11784
11785 case $as_dir in #(
11786 -*) as_dir=./$as_dir;;
11787 esac
11788 test -d "$as_dir" || eval $as_mkdir_p || {
11789 as_dirs=
11790 while :; do
11791 case $as_dir in #(
11792 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11793 *) as_qdir=$as_dir;;
11794 esac
11795 as_dirs="'$as_qdir' $as_dirs"
11796 as_dir=`$as_dirname -- "$as_dir" ||
11797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11798 X"$as_dir" : 'X\(//\)[^/]' \| \
11799 X"$as_dir" : 'X\(//\)$' \| \
11800 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11801 $as_echo X"$as_dir" |
11802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11803 s//\1/
11804 q
11805 }
11806 /^X\(\/\/\)[^/].*/{
11807 s//\1/
11808 q
11809 }
11810 /^X\(\/\/\)$/{
11811 s//\1/
11812 q
11813 }
11814 /^X\(\/\).*/{
11815 s//\1/
11816 q
11817 }
11818 s/.*/./; q'`
11819 test -d "$as_dir" && break
11820 done
11821 test -z "$as_dirs" || eval "mkdir $as_dirs"
11822 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11823
11824
11825 } # as_fn_mkdir_p
11826 if mkdir -p . 2>/dev/null; then
11827 as_mkdir_p='mkdir -p "$as_dir"'
11828 else
11829 test -d ./-p && rmdir ./-p
11830 as_mkdir_p=false
11831 fi
11832
11833 if test -x / >/dev/null 2>&1; then
11834 as_test_x='test -x'
11835 else
11836 if ls -dL / >/dev/null 2>&1; then
11837 as_ls_L_option=L
11838 else
11839 as_ls_L_option=
11840 fi
11841 as_test_x='
11842 eval sh -c '\''
11843 if test -d "$1"; then
11844 test -d "$1/.";
11845 else
11846 case $1 in #(
11847 -*)set "./$1";;
11848 esac;
11849 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11850 ???[sx]*):;;*)false;;esac;fi
11851 '\'' sh
11852 '
11853 fi
11854 as_executable_p=$as_test_x
11855
11856 # Sed expression to map a string onto a valid CPP name.
11857 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11858
11859 # Sed expression to map a string onto a valid variable name.
11860 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11861
11862
11863 exec 6>&1
11864 ## ----------------------------------- ##
11865 ## Main body of $CONFIG_STATUS script. ##
11866 ## ----------------------------------- ##
11867 _ASEOF
11868 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11869
11870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11871 # Save the log message, to keep $0 and so on meaningful, and to
11872 # report actual input values of CONFIG_FILES etc. instead of their
11873 # values after options handling.
11874 ac_log="
11875 This file was extended by $as_me, which was
11876 generated by GNU Autoconf 2.65. Invocation command line was
11877
11878 CONFIG_FILES = $CONFIG_FILES
11879 CONFIG_HEADERS = $CONFIG_HEADERS
11880 CONFIG_LINKS = $CONFIG_LINKS
11881 CONFIG_COMMANDS = $CONFIG_COMMANDS
11882 $ $0 $@
11883
11884 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11885 "
11886
11887 _ACEOF
11888
11889 case $ac_config_files in *"
11890 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11891 esac
11892
11893 case $ac_config_headers in *"
11894 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11895 esac
11896
11897
11898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11899 # Files that config.status was made for.
11900 config_files="$ac_config_files"
11901 config_headers="$ac_config_headers"
11902 config_commands="$ac_config_commands"
11903
11904 _ACEOF
11905
11906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11907 ac_cs_usage="\
11908 \`$as_me' instantiates files and other configuration actions
11909 from templates according to the current configuration. Unless the files
11910 and actions are specified as TAGs, all are instantiated by default.
11911
11912 Usage: $0 [OPTION]... [TAG]...
11913
11914 -h, --help print this help, then exit
11915 -V, --version print version number and configuration settings, then exit
11916 --config print configuration, then exit
11917 -q, --quiet, --silent
11918 do not print progress messages
11919 -d, --debug don't remove temporary files
11920 --recheck update $as_me by reconfiguring in the same conditions
11921 --file=FILE[:TEMPLATE]
11922 instantiate the configuration file FILE
11923 --header=FILE[:TEMPLATE]
11924 instantiate the configuration header FILE
11925
11926 Configuration files:
11927 $config_files
11928
11929 Configuration headers:
11930 $config_headers
11931
11932 Configuration commands:
11933 $config_commands
11934
11935 Report bugs to the package provider."
11936
11937 _ACEOF
11938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11939 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11940 ac_cs_version="\\
11941 config.status
11942 configured by $0, generated by GNU Autoconf 2.65,
11943 with options \\"\$ac_cs_config\\"
11944
11945 Copyright (C) 2009 Free Software Foundation, Inc.
11946 This config.status script is free software; the Free Software Foundation
11947 gives unlimited permission to copy, distribute and modify it."
11948
11949 ac_pwd='$ac_pwd'
11950 srcdir='$srcdir'
11951 INSTALL='$INSTALL'
11952 AWK='$AWK'
11953 test -n "\$AWK" || AWK=awk
11954 _ACEOF
11955
11956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11957 # The default lists apply if the user does not specify any file.
11958 ac_need_defaults=:
11959 while test $# != 0
11960 do
11961 case $1 in
11962 --*=*)
11963 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11964 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11965 ac_shift=:
11966 ;;
11967 *)
11968 ac_option=$1
11969 ac_optarg=$2
11970 ac_shift=shift
11971 ;;
11972 esac
11973
11974 case $ac_option in
11975 # Handling of the options.
11976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11977 ac_cs_recheck=: ;;
11978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11979 $as_echo "$ac_cs_version"; exit ;;
11980 --config | --confi | --conf | --con | --co | --c )
11981 $as_echo "$ac_cs_config"; exit ;;
11982 --debug | --debu | --deb | --de | --d | -d )
11983 debug=: ;;
11984 --file | --fil | --fi | --f )
11985 $ac_shift
11986 case $ac_optarg in
11987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11988 esac
11989 as_fn_append CONFIG_FILES " '$ac_optarg'"
11990 ac_need_defaults=false;;
11991 --header | --heade | --head | --hea )
11992 $ac_shift
11993 case $ac_optarg in
11994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11995 esac
11996 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11997 ac_need_defaults=false;;
11998 --he | --h)
11999 # Conflict between --help and --header
12000 as_fn_error "ambiguous option: \`$1'
12001 Try \`$0 --help' for more information.";;
12002 --help | --hel | -h )
12003 $as_echo "$ac_cs_usage"; exit ;;
12004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12005 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12006 ac_cs_silent=: ;;
12007
12008 # This is an error.
12009 -*) as_fn_error "unrecognized option: \`$1'
12010 Try \`$0 --help' for more information." ;;
12011
12012 *) as_fn_append ac_config_targets " $1"
12013 ac_need_defaults=false ;;
12014
12015 esac
12016 shift
12017 done
12018
12019 ac_configure_extra_args=
12020
12021 if $ac_cs_silent; then
12022 exec 6>/dev/null
12023 ac_configure_extra_args="$ac_configure_extra_args --silent"
12024 fi
12025
12026 _ACEOF
12027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12028 if \$ac_cs_recheck; then
12029 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12030 shift
12031 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12032 CONFIG_SHELL='$SHELL'
12033 export CONFIG_SHELL
12034 exec "\$@"
12035 fi
12036
12037 _ACEOF
12038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12039 exec 5>>config.log
12040 {
12041 echo
12042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12043 ## Running $as_me. ##
12044 _ASBOX
12045 $as_echo "$ac_log"
12046 } >&5
12047
12048 _ACEOF
12049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12050 #
12051 # INIT-COMMANDS
12052 #
12053 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12054 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12055 # from automake.
12056 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12057 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12058 LINGUAS="${LINGUAS-%UNSET%}"
12059
12060
12061 _ACEOF
12062
12063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12064
12065 # Handling of arguments.
12066 for ac_config_target in $ac_config_targets
12067 do
12068 case $ac_config_target in
12069 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12070 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12071 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12072
12073 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12074 esac
12075 done
12076
12077
12078 # If the user did not use the arguments to specify the items to instantiate,
12079 # then the envvar interface is used. Set only those that are not.
12080 # We use the long form for the default assignment because of an extremely
12081 # bizarre bug on SunOS 4.1.3.
12082 if $ac_need_defaults; then
12083 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12084 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12085 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12086 fi
12087
12088 # Have a temporary directory for convenience. Make it in the build tree
12089 # simply because there is no reason against having it here, and in addition,
12090 # creating and moving files from /tmp can sometimes cause problems.
12091 # Hook for its removal unless debugging.
12092 # Note that there is a small window in which the directory will not be cleaned:
12093 # after its creation but before its name has been assigned to `$tmp'.
12094 $debug ||
12095 {
12096 tmp=
12097 trap 'exit_status=$?
12098 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12099 ' 0
12100 trap 'as_fn_exit 1' 1 2 13 15
12101 }
12102 # Create a (secure) tmp directory for tmp files.
12103
12104 {
12105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12106 test -n "$tmp" && test -d "$tmp"
12107 } ||
12108 {
12109 tmp=./conf$$-$RANDOM
12110 (umask 077 && mkdir "$tmp")
12111 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12112
12113 # Set up the scripts for CONFIG_FILES section.
12114 # No need to generate them if there are no CONFIG_FILES.
12115 # This happens for instance with `./config.status config.h'.
12116 if test -n "$CONFIG_FILES"; then
12117
12118 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12119 ac_cs_awk_getline=:
12120 ac_cs_awk_pipe_init=
12121 ac_cs_awk_read_file='
12122 while ((getline aline < (F[key])) > 0)
12123 print(aline)
12124 close(F[key])'
12125 ac_cs_awk_pipe_fini=
12126 else
12127 ac_cs_awk_getline=false
12128 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12129 ac_cs_awk_read_file='
12130 print "|#_!!_#|"
12131 print "cat " F[key] " &&"
12132 '$ac_cs_awk_pipe_init
12133 # The final `:' finishes the AND list.
12134 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12135 fi
12136 ac_cr=`echo X | tr X '\015'`
12137 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12138 # But we know of no other shell where ac_cr would be empty at this
12139 # point, so we can use a bashism as a fallback.
12140 if test "x$ac_cr" = x; then
12141 eval ac_cr=\$\'\\r\'
12142 fi
12143 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12144 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12145 ac_cs_awk_cr='\r'
12146 else
12147 ac_cs_awk_cr=$ac_cr
12148 fi
12149
12150 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12151 _ACEOF
12152
12153 # Create commands to substitute file output variables.
12154 {
12155 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12156 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12157 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12158 echo "_ACAWK" &&
12159 echo "_ACEOF"
12160 } >conf$$files.sh &&
12161 . ./conf$$files.sh ||
12162 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12163 rm -f conf$$files.sh
12164
12165 {
12166 echo "cat >conf$$subs.awk <<_ACEOF" &&
12167 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12168 echo "_ACEOF"
12169 } >conf$$subs.sh ||
12170 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12171 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12172 ac_delim='%!_!# '
12173 for ac_last_try in false false false false false :; do
12174 . ./conf$$subs.sh ||
12175 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12176
12177 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12178 if test $ac_delim_n = $ac_delim_num; then
12179 break
12180 elif $ac_last_try; then
12181 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12182 else
12183 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12184 fi
12185 done
12186 rm -f conf$$subs.sh
12187
12188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12189 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12190 _ACEOF
12191 sed -n '
12192 h
12193 s/^/S["/; s/!.*/"]=/
12194 p
12195 g
12196 s/^[^!]*!//
12197 :repl
12198 t repl
12199 s/'"$ac_delim"'$//
12200 t delim
12201 :nl
12202 h
12203 s/\(.\{148\}\)..*/\1/
12204 t more1
12205 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12206 p
12207 n
12208 b repl
12209 :more1
12210 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12211 p
12212 g
12213 s/.\{148\}//
12214 t nl
12215 :delim
12216 h
12217 s/\(.\{148\}\)..*/\1/
12218 t more2
12219 s/["\\]/\\&/g; s/^/"/; s/$/"/
12220 p
12221 b
12222 :more2
12223 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12224 p
12225 g
12226 s/.\{148\}//
12227 t delim
12228 ' <conf$$subs.awk | sed '
12229 /^[^""]/{
12230 N
12231 s/\n//
12232 }
12233 ' >>$CONFIG_STATUS || ac_write_fail=1
12234 rm -f conf$$subs.awk
12235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12236 _ACAWK
12237 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12238 for (key in S) S_is_set[key] = 1
12239 FS = "\a"
12240 \$ac_cs_awk_pipe_init
12241 }
12242 {
12243 line = $ 0
12244 nfields = split(line, field, "@")
12245 substed = 0
12246 len = length(field[1])
12247 for (i = 2; i < nfields; i++) {
12248 key = field[i]
12249 keylen = length(key)
12250 if (S_is_set[key]) {
12251 value = S[key]
12252 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12253 len += length(value) + length(field[++i])
12254 substed = 1
12255 } else
12256 len += 1 + keylen
12257 }
12258 if (nfields == 3 && !substed) {
12259 key = field[2]
12260 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12261 \$ac_cs_awk_read_file
12262 next
12263 }
12264 }
12265 print line
12266 }
12267 \$ac_cs_awk_pipe_fini
12268 _ACAWK
12269 _ACEOF
12270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12271 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12272 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12273 else
12274 cat
12275 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12276 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12277 _ACEOF
12278
12279 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12280 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12281 # trailing colons and then remove the whole line if VPATH becomes empty
12282 # (actually we leave an empty line to preserve line numbers).
12283 if test "x$srcdir" = x.; then
12284 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12285 s/:*\$(srcdir):*/:/
12286 s/:*\${srcdir}:*/:/
12287 s/:*@srcdir@:*/:/
12288 s/^\([^=]*=[ ]*\):*/\1/
12289 s/:*$//
12290 s/^[^=]*=[ ]*$//
12291 }'
12292 fi
12293
12294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12295 fi # test -n "$CONFIG_FILES"
12296
12297 # Set up the scripts for CONFIG_HEADERS section.
12298 # No need to generate them if there are no CONFIG_HEADERS.
12299 # This happens for instance with `./config.status Makefile'.
12300 if test -n "$CONFIG_HEADERS"; then
12301 cat >"$tmp/defines.awk" <<\_ACAWK ||
12302 BEGIN {
12303 _ACEOF
12304
12305 # Transform confdefs.h into an awk script `defines.awk', embedded as
12306 # here-document in config.status, that substitutes the proper values into
12307 # config.h.in to produce config.h.
12308
12309 # Create a delimiter string that does not exist in confdefs.h, to ease
12310 # handling of long lines.
12311 ac_delim='%!_!# '
12312 for ac_last_try in false false :; do
12313 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12314 if test -z "$ac_t"; then
12315 break
12316 elif $ac_last_try; then
12317 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12318 else
12319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12320 fi
12321 done
12322
12323 # For the awk script, D is an array of macro values keyed by name,
12324 # likewise P contains macro parameters if any. Preserve backslash
12325 # newline sequences.
12326
12327 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12328 sed -n '
12329 s/.\{148\}/&'"$ac_delim"'/g
12330 t rset
12331 :rset
12332 s/^[ ]*#[ ]*define[ ][ ]*/ /
12333 t def
12334 d
12335 :def
12336 s/\\$//
12337 t bsnl
12338 s/["\\]/\\&/g
12339 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12340 D["\1"]=" \3"/p
12341 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12342 d
12343 :bsnl
12344 s/["\\]/\\&/g
12345 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12346 D["\1"]=" \3\\\\\\n"\\/p
12347 t cont
12348 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12349 t cont
12350 d
12351 :cont
12352 n
12353 s/.\{148\}/&'"$ac_delim"'/g
12354 t clear
12355 :clear
12356 s/\\$//
12357 t bsnlc
12358 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12359 d
12360 :bsnlc
12361 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12362 b cont
12363 ' <confdefs.h | sed '
12364 s/'"$ac_delim"'/"\\\
12365 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12366
12367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12368 for (key in D) D_is_set[key] = 1
12369 FS = "\a"
12370 }
12371 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12372 line = \$ 0
12373 split(line, arg, " ")
12374 if (arg[1] == "#") {
12375 defundef = arg[2]
12376 mac1 = arg[3]
12377 } else {
12378 defundef = substr(arg[1], 2)
12379 mac1 = arg[2]
12380 }
12381 split(mac1, mac2, "(") #)
12382 macro = mac2[1]
12383 prefix = substr(line, 1, index(line, defundef) - 1)
12384 if (D_is_set[macro]) {
12385 # Preserve the white space surrounding the "#".
12386 print prefix "define", macro P[macro] D[macro]
12387 next
12388 } else {
12389 # Replace #undef with comments. This is necessary, for example,
12390 # in the case of _POSIX_SOURCE, which is predefined and required
12391 # on some systems where configure will not decide to define it.
12392 if (defundef == "undef") {
12393 print "/*", prefix defundef, macro, "*/"
12394 next
12395 }
12396 }
12397 }
12398 { print }
12399 _ACAWK
12400 _ACEOF
12401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12402 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12403 fi # test -n "$CONFIG_HEADERS"
12404
12405
12406 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12407 shift
12408 for ac_tag
12409 do
12410 case $ac_tag in
12411 :[FHLC]) ac_mode=$ac_tag; continue;;
12412 esac
12413 case $ac_mode$ac_tag in
12414 :[FHL]*:*);;
12415 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12416 :[FH]-) ac_tag=-:-;;
12417 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12418 esac
12419 ac_save_IFS=$IFS
12420 IFS=:
12421 set x $ac_tag
12422 IFS=$ac_save_IFS
12423 shift
12424 ac_file=$1
12425 shift
12426
12427 case $ac_mode in
12428 :L) ac_source=$1;;
12429 :[FH])
12430 ac_file_inputs=
12431 for ac_f
12432 do
12433 case $ac_f in
12434 -) ac_f="$tmp/stdin";;
12435 *) # Look for the file first in the build tree, then in the source tree
12436 # (if the path is not absolute). The absolute path cannot be DOS-style,
12437 # because $ac_f cannot contain `:'.
12438 test -f "$ac_f" ||
12439 case $ac_f in
12440 [\\/$]*) false;;
12441 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12442 esac ||
12443 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12444 esac
12445 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12446 as_fn_append ac_file_inputs " '$ac_f'"
12447 done
12448
12449 # Let's still pretend it is `configure' which instantiates (i.e., don't
12450 # use $as_me), people would be surprised to read:
12451 # /* config.h. Generated by config.status. */
12452 configure_input='Generated from '`
12453 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12454 `' by configure.'
12455 if test x"$ac_file" != x-; then
12456 configure_input="$ac_file. $configure_input"
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12458 $as_echo "$as_me: creating $ac_file" >&6;}
12459 fi
12460 # Neutralize special characters interpreted by sed in replacement strings.
12461 case $configure_input in #(
12462 *\&* | *\|* | *\\* )
12463 ac_sed_conf_input=`$as_echo "$configure_input" |
12464 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12465 *) ac_sed_conf_input=$configure_input;;
12466 esac
12467
12468 case $ac_tag in
12469 *:-:* | *:-) cat >"$tmp/stdin" \
12470 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12471 esac
12472 ;;
12473 esac
12474
12475 ac_dir=`$as_dirname -- "$ac_file" ||
12476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12477 X"$ac_file" : 'X\(//\)[^/]' \| \
12478 X"$ac_file" : 'X\(//\)$' \| \
12479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12480 $as_echo X"$ac_file" |
12481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12482 s//\1/
12483 q
12484 }
12485 /^X\(\/\/\)[^/].*/{
12486 s//\1/
12487 q
12488 }
12489 /^X\(\/\/\)$/{
12490 s//\1/
12491 q
12492 }
12493 /^X\(\/\).*/{
12494 s//\1/
12495 q
12496 }
12497 s/.*/./; q'`
12498 as_dir="$ac_dir"; as_fn_mkdir_p
12499 ac_builddir=.
12500
12501 case "$ac_dir" in
12502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12503 *)
12504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12505 # A ".." for each directory in $ac_dir_suffix.
12506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12507 case $ac_top_builddir_sub in
12508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12510 esac ;;
12511 esac
12512 ac_abs_top_builddir=$ac_pwd
12513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12514 # for backward compatibility:
12515 ac_top_builddir=$ac_top_build_prefix
12516
12517 case $srcdir in
12518 .) # We are building in place.
12519 ac_srcdir=.
12520 ac_top_srcdir=$ac_top_builddir_sub
12521 ac_abs_top_srcdir=$ac_pwd ;;
12522 [\\/]* | ?:[\\/]* ) # Absolute name.
12523 ac_srcdir=$srcdir$ac_dir_suffix;
12524 ac_top_srcdir=$srcdir
12525 ac_abs_top_srcdir=$srcdir ;;
12526 *) # Relative name.
12527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12528 ac_top_srcdir=$ac_top_build_prefix$srcdir
12529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12530 esac
12531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12532
12533
12534 case $ac_mode in
12535 :F)
12536 #
12537 # CONFIG_FILE
12538 #
12539
12540 case $INSTALL in
12541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12542 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12543 esac
12544 _ACEOF
12545
12546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12547 # If the template does not know about datarootdir, expand it.
12548 # FIXME: This hack should be removed a few years after 2.60.
12549 ac_datarootdir_hack=; ac_datarootdir_seen=
12550 ac_sed_dataroot='
12551 /datarootdir/ {
12552 p
12553 q
12554 }
12555 /@datadir@/p
12556 /@docdir@/p
12557 /@infodir@/p
12558 /@localedir@/p
12559 /@mandir@/p'
12560 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12561 *datarootdir*) ac_datarootdir_seen=yes;;
12562 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12564 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12565 _ACEOF
12566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12567 ac_datarootdir_hack='
12568 s&@datadir@&$datadir&g
12569 s&@docdir@&$docdir&g
12570 s&@infodir@&$infodir&g
12571 s&@localedir@&$localedir&g
12572 s&@mandir@&$mandir&g
12573 s&\\\${datarootdir}&$datarootdir&g' ;;
12574 esac
12575 _ACEOF
12576
12577 # Neutralize VPATH when `$srcdir' = `.'.
12578 # Shell code in configure.ac might set extrasub.
12579 # FIXME: do we really want to maintain this feature?
12580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12581 ac_sed_extra="$ac_vpsub
12582 $extrasub
12583 _ACEOF
12584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12585 :t
12586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12587 s|@configure_input@|$ac_sed_conf_input|;t t
12588 s&@top_builddir@&$ac_top_builddir_sub&;t t
12589 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12590 s&@srcdir@&$ac_srcdir&;t t
12591 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12592 s&@top_srcdir@&$ac_top_srcdir&;t t
12593 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12594 s&@builddir@&$ac_builddir&;t t
12595 s&@abs_builddir@&$ac_abs_builddir&;t t
12596 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12597 s&@INSTALL@&$ac_INSTALL&;t t
12598 $ac_datarootdir_hack
12599 "
12600 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12601 if $ac_cs_awk_getline; then
12602 $AWK -f "$tmp/subs.awk"
12603 else
12604 $AWK -f "$tmp/subs.awk" | $SHELL
12605 fi >$tmp/out \
12606 || as_fn_error "could not create $ac_file" "$LINENO" 5
12607
12608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12609 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12612 which seems to be undefined. Please make sure it is defined." >&5
12613 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12614 which seems to be undefined. Please make sure it is defined." >&2;}
12615
12616 rm -f "$tmp/stdin"
12617 case $ac_file in
12618 -) cat "$tmp/out" && rm -f "$tmp/out";;
12619 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12620 esac \
12621 || as_fn_error "could not create $ac_file" "$LINENO" 5
12622 ;;
12623 :H)
12624 #
12625 # CONFIG_HEADER
12626 #
12627 if test x"$ac_file" != x-; then
12628 {
12629 $as_echo "/* $configure_input */" \
12630 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12631 } >"$tmp/config.h" \
12632 || as_fn_error "could not create $ac_file" "$LINENO" 5
12633 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12635 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12636 else
12637 rm -f "$ac_file"
12638 mv "$tmp/config.h" "$ac_file" \
12639 || as_fn_error "could not create $ac_file" "$LINENO" 5
12640 fi
12641 else
12642 $as_echo "/* $configure_input */" \
12643 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12644 || as_fn_error "could not create -" "$LINENO" 5
12645 fi
12646 ;;
12647
12648 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12649 $as_echo "$as_me: executing $ac_file commands" >&6;}
12650 ;;
12651 esac
12652
12653
12654 case $ac_file$ac_mode in
12655 "default-1":C)
12656 for ac_file in $CONFIG_FILES; do
12657 # Support "outfile[:infile[:infile...]]"
12658 case "$ac_file" in
12659 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12660 esac
12661 # PO directories have a Makefile.in generated from Makefile.in.in.
12662 case "$ac_file" in */Makefile.in)
12663 # Adjust a relative srcdir.
12664 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12665 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12666 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12667 # In autoconf-2.13 it is called $ac_given_srcdir.
12668 # In autoconf-2.50 it is called $srcdir.
12669 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12670 case "$ac_given_srcdir" in
12671 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12672 /*) top_srcdir="$ac_given_srcdir" ;;
12673 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12674 esac
12675 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12676 rm -f "$ac_dir/POTFILES"
12677 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12678 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12679 POMAKEFILEDEPS="POTFILES.in"
12680 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12681 # on $ac_dir but don't depend on user-specified configuration
12682 # parameters.
12683 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12684 # The LINGUAS file contains the set of available languages.
12685 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12686 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12687 fi
12688 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12689 # Hide the ALL_LINGUAS assigment from automake.
12690 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12691 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12692 else
12693 # The set of available languages was given in configure.in.
12694 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12695 fi
12696 # Compute POFILES
12697 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12698 # Compute UPDATEPOFILES
12699 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12700 # Compute DUMMYPOFILES
12701 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12702 # Compute GMOFILES
12703 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12704 case "$ac_given_srcdir" in
12705 .) srcdirpre= ;;
12706 *) srcdirpre='$(srcdir)/' ;;
12707 esac
12708 POFILES=
12709 UPDATEPOFILES=
12710 DUMMYPOFILES=
12711 GMOFILES=
12712 for lang in $ALL_LINGUAS; do
12713 POFILES="$POFILES $srcdirpre$lang.po"
12714 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12715 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12716 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12717 done
12718 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12719 # environment variable.
12720 INST_LINGUAS=
12721 if test -n "$ALL_LINGUAS"; then
12722 for presentlang in $ALL_LINGUAS; do
12723 useit=no
12724 if test "%UNSET%" != "$LINGUAS"; then
12725 desiredlanguages="$LINGUAS"
12726 else
12727 desiredlanguages="$ALL_LINGUAS"
12728 fi
12729 for desiredlang in $desiredlanguages; do
12730 # Use the presentlang catalog if desiredlang is
12731 # a. equal to presentlang, or
12732 # b. a variant of presentlang (because in this case,
12733 # presentlang can be used as a fallback for messages
12734 # which are not translated in the desiredlang catalog).
12735 case "$desiredlang" in
12736 "$presentlang"*) useit=yes;;
12737 esac
12738 done
12739 if test $useit = yes; then
12740 INST_LINGUAS="$INST_LINGUAS $presentlang"
12741 fi
12742 done
12743 fi
12744 CATALOGS=
12745 if test -n "$INST_LINGUAS"; then
12746 for lang in $INST_LINGUAS; do
12747 CATALOGS="$CATALOGS $lang.gmo"
12748 done
12749 fi
12750 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12751 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"
12752 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12753 if test -f "$f"; then
12754 case "$f" in
12755 *.orig | *.bak | *~) ;;
12756 *) cat "$f" >> "$ac_dir/Makefile" ;;
12757 esac
12758 fi
12759 done
12760 fi
12761 ;;
12762 esac
12763 done ;;
12764
12765 esac
12766 done # for ac_tag
12767
12768
12769 as_fn_exit 0
12770 _ACEOF
12771 ac_clean_files=$ac_clean_files_save
12772
12773 test $ac_write_fail = 0 ||
12774 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12775
12776
12777 # configure is writing to config.log, and then calls config.status.
12778 # config.status does its own redirection, appending to config.log.
12779 # Unfortunately, on DOS this fails, as config.log is still kept open
12780 # by configure, so config.status won't be able to write to it; its
12781 # output is simply discarded. So we exec the FD to /dev/null,
12782 # effectively closing config.log, so it can be properly (re)opened and
12783 # appended to by config.status. When coming back to configure, we
12784 # need to make the FD available again.
12785 if test "$no_create" != yes; then
12786 ac_cs_success=:
12787 ac_config_status_args=
12788 test "$silent" = yes &&
12789 ac_config_status_args="$ac_config_status_args --quiet"
12790 exec 5>/dev/null
12791 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12792 exec 5>>config.log
12793 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12794 # would make configure fail if this is the last instruction.
12795 $ac_cs_success || as_fn_exit $?
12796 fi
12797 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12799 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12800 fi
12801
12802 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi