pass HOST_ variables, not BUILD_
[buildroot.git] / package / libelf / libelf-0.8.10-Elf64-fixups.patch
blob86a064a7c248f5b355037051450c52e80f5764e4
1 diff -rdup libelf-0.8.10.orig/configure libelf-0.8.10/configure
2 --- libelf-0.8.10.orig/configure 2007-09-07 14:08:06.000000000 +0200
3 +++ libelf-0.8.10/configure 2007-09-20 10:32:04.000000000 +0200
4 @@ -1,47 +1,728 @@
5 #! /bin/sh
7 # Guess values for system-dependent variables and create Makefiles.
8 -# Generated automatically using autoconf version 2.13
9 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
10 +# Generated by GNU Autoconf 2.61.
12 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 +## --------------------- ##
17 +## M4sh Initialization. ##
18 +## --------------------- ##
20 -# Defaults:
21 -ac_help=
22 +# Be more Bourne compatible
23 +DUALCASE=1; export DUALCASE # for MKS sh
24 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 + emulate sh
26 + NULLCMD=:
27 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28 + # is contrary to our usage. Disable this feature.
29 + alias -g '${1+"$@"}'='"$@"'
30 + setopt NO_GLOB_SUBST
31 +else
32 + case `(set -o) 2>/dev/null` in
33 + *posix*) set -o posix ;;
34 +esac
36 +fi
41 +# PATH needs CR
42 +# Avoid depending upon Character Ranges.
43 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46 +as_cr_digits='0123456789'
47 +as_cr_alnum=$as_cr_Letters$as_cr_digits
49 +# The user is always right.
50 +if test "${PATH_SEPARATOR+set}" != set; then
51 + echo "#! /bin/sh" >conf$$.sh
52 + echo "exit 0" >>conf$$.sh
53 + chmod +x conf$$.sh
54 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 + PATH_SEPARATOR=';'
56 + else
57 + PATH_SEPARATOR=:
58 + fi
59 + rm -f conf$$.sh
60 +fi
62 +# Support unset when possible.
63 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 + as_unset=unset
65 +else
66 + as_unset=false
67 +fi
70 +# IFS
71 +# We need space, tab and new line, in precisely that order. Quoting is
72 +# there to prevent editors from complaining about space-tab.
73 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
74 +# splitting by setting IFS to empty value.)
75 +as_nl='
77 +IFS=" "" $as_nl"
79 +# Find who we are. Look in the path if we contain no directory separator.
80 +case $0 in
81 + *[\\/]* ) as_myself=$0 ;;
82 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
83 +for as_dir in $PATH
84 +do
85 + IFS=$as_save_IFS
86 + test -z "$as_dir" && as_dir=.
87 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
88 +done
89 +IFS=$as_save_IFS
91 + ;;
92 +esac
93 +# We did not find ourselves, most probably we were run as `sh COMMAND'
94 +# in which case we are not to be found in the path.
95 +if test "x$as_myself" = x; then
96 + as_myself=$0
97 +fi
98 +if test ! -f "$as_myself"; then
99 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
100 + { (exit 1); exit 1; }
103 +# Work around bugs in pre-3.0 UWIN ksh.
104 +for as_var in ENV MAIL MAILPATH
105 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 +done
107 +PS1='$ '
108 +PS2='> '
109 +PS4='+ '
111 +# NLS nuisances.
112 +for as_var in \
113 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
114 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
115 + LC_TELEPHONE LC_TIME
117 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
118 + eval $as_var=C; export $as_var
119 + else
120 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
121 + fi
122 +done
124 +# Required to use basename.
125 +if expr a : '\(a\)' >/dev/null 2>&1 &&
126 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
127 + as_expr=expr
128 +else
129 + as_expr=false
132 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 + as_basename=basename
134 +else
135 + as_basename=false
139 +# Name of the executable.
140 +as_me=`$as_basename -- "$0" ||
141 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
142 + X"$0" : 'X\(//\)$' \| \
143 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
144 +echo X/"$0" |
145 + sed '/^.*\/\([^/][^/]*\)\/*$/{
146 + s//\1/
149 + /^X\/\(\/\/\)$/{
150 + s//\1/
153 + /^X\/\(\/\).*/{
154 + s//\1/
157 + s/.*/./; q'`
159 +# CDPATH.
160 +$as_unset CDPATH
163 +if test "x$CONFIG_SHELL" = x; then
164 + if (eval ":") 2>/dev/null; then
165 + as_have_required=yes
166 +else
167 + as_have_required=no
170 + if test $as_have_required = yes && (eval ":
171 +(as_func_return () {
172 + (exit \$1)
174 +as_func_success () {
175 + as_func_return 0
177 +as_func_failure () {
178 + as_func_return 1
180 +as_func_ret_success () {
181 + return 0
183 +as_func_ret_failure () {
184 + return 1
187 +exitcode=0
188 +if as_func_success; then
190 +else
191 + exitcode=1
192 + echo as_func_success failed.
195 +if as_func_failure; then
196 + exitcode=1
197 + echo as_func_failure succeeded.
200 +if as_func_ret_success; then
202 +else
203 + exitcode=1
204 + echo as_func_ret_success failed.
207 +if as_func_ret_failure; then
208 + exitcode=1
209 + echo as_func_ret_failure succeeded.
212 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
214 +else
215 + exitcode=1
216 + echo positional parameters were not saved.
219 +test \$exitcode = 0) || { (exit 1); exit 1; }
222 + as_lineno_1=\$LINENO
223 + as_lineno_2=\$LINENO
224 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
225 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
226 +") 2> /dev/null; then
228 +else
229 + as_candidate_shells=
230 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
231 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
233 + IFS=$as_save_IFS
234 + test -z "$as_dir" && as_dir=.
235 + case $as_dir in
236 + /*)
237 + for as_base in sh bash ksh sh5; do
238 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 + done;;
240 + esac
241 +done
242 +IFS=$as_save_IFS
245 + for as_shell in $as_candidate_shells $SHELL; do
246 + # Try only shells that exist, to save several forks.
247 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
248 + { ("$as_shell") 2> /dev/null <<\_ASEOF
249 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
250 + emulate sh
251 + NULLCMD=:
252 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
253 + # is contrary to our usage. Disable this feature.
254 + alias -g '${1+"$@"}'='"$@"'
255 + setopt NO_GLOB_SUBST
256 +else
257 + case `(set -o) 2>/dev/null` in
258 + *posix*) set -o posix ;;
259 +esac
265 +_ASEOF
266 +}; then
267 + CONFIG_SHELL=$as_shell
268 + as_have_required=yes
269 + if { "$as_shell" 2> /dev/null <<\_ASEOF
270 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
271 + emulate sh
272 + NULLCMD=:
273 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
274 + # is contrary to our usage. Disable this feature.
275 + alias -g '${1+"$@"}'='"$@"'
276 + setopt NO_GLOB_SUBST
277 +else
278 + case `(set -o) 2>/dev/null` in
279 + *posix*) set -o posix ;;
280 +esac
286 +(as_func_return () {
287 + (exit $1)
289 +as_func_success () {
290 + as_func_return 0
292 +as_func_failure () {
293 + as_func_return 1
295 +as_func_ret_success () {
296 + return 0
298 +as_func_ret_failure () {
299 + return 1
302 +exitcode=0
303 +if as_func_success; then
305 +else
306 + exitcode=1
307 + echo as_func_success failed.
310 +if as_func_failure; then
311 + exitcode=1
312 + echo as_func_failure succeeded.
315 +if as_func_ret_success; then
317 +else
318 + exitcode=1
319 + echo as_func_ret_success failed.
322 +if as_func_ret_failure; then
323 + exitcode=1
324 + echo as_func_ret_failure succeeded.
327 +if ( set x; as_func_ret_success y && test x = "$1" ); then
329 +else
330 + exitcode=1
331 + echo positional parameters were not saved.
334 +test $exitcode = 0) || { (exit 1); exit 1; }
337 + as_lineno_1=$LINENO
338 + as_lineno_2=$LINENO
339 + test "x$as_lineno_1" != "x$as_lineno_2" &&
340 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 +_ASEOF
343 +}; then
344 + break
349 + done
351 + if test "x$CONFIG_SHELL" != x; then
352 + for as_var in BASH_ENV ENV
353 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
354 + done
355 + export CONFIG_SHELL
356 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
360 + if test $as_have_required = no; then
361 + echo This script requires a shell more modern than all the
362 + echo shells that I found on your system. Please install a
363 + echo modern shell, or manually run the script under such a
364 + echo shell if you do have one.
365 + { (exit 1); exit 1; }
375 +(eval "as_func_return () {
376 + (exit \$1)
378 +as_func_success () {
379 + as_func_return 0
381 +as_func_failure () {
382 + as_func_return 1
384 +as_func_ret_success () {
385 + return 0
387 +as_func_ret_failure () {
388 + return 1
391 +exitcode=0
392 +if as_func_success; then
394 +else
395 + exitcode=1
396 + echo as_func_success failed.
399 +if as_func_failure; then
400 + exitcode=1
401 + echo as_func_failure succeeded.
404 +if as_func_ret_success; then
406 +else
407 + exitcode=1
408 + echo as_func_ret_success failed.
411 +if as_func_ret_failure; then
412 + exitcode=1
413 + echo as_func_ret_failure succeeded.
416 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
418 +else
419 + exitcode=1
420 + echo positional parameters were not saved.
423 +test \$exitcode = 0") || {
424 + echo No shell found that supports shell functions.
425 + echo Please tell autoconf@gnu.org about your system,
426 + echo including any error possibly output before this
427 + echo message
432 + as_lineno_1=$LINENO
433 + as_lineno_2=$LINENO
434 + test "x$as_lineno_1" != "x$as_lineno_2" &&
435 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
437 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
438 + # uniformly replaced by the line number. The first 'sed' inserts a
439 + # line-number line after each line using $LINENO; the second 'sed'
440 + # does the real work. The second script uses 'N' to pair each
441 + # line-number line with the line containing $LINENO, and appends
442 + # trailing '-' during substitution so that $LINENO is not a special
443 + # case at line end.
444 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
445 + # scripts with optimization help from Paolo Bonzini. Blame Lee
446 + # E. McMahon (1931-1989) for sed's syntax. :-)
447 + sed -n '
449 + /[$]LINENO/=
450 + ' <$as_myself |
451 + sed '
452 + s/[$]LINENO.*/&-/
453 + t lineno
455 + :lineno
457 + :loop
458 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
459 + t loop
460 + s/-\n.*//
461 + ' >$as_me.lineno &&
462 + chmod +x "$as_me.lineno" ||
463 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
464 + { (exit 1); exit 1; }; }
466 + # Don't try to exec as it changes $[0], causing all sort of problems
467 + # (the dirname of $[0] is not the place where we might find the
468 + # original and so on. Autoconf is especially sensitive to this).
469 + . "./$as_me.lineno"
470 + # Exit status is that of the last command.
471 + exit
475 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
476 + as_dirname=dirname
477 +else
478 + as_dirname=false
481 +ECHO_C= ECHO_N= ECHO_T=
482 +case `echo -n x` in
483 +-n*)
484 + case `echo 'x\c'` in
485 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 + *) ECHO_C='\c';;
487 + esac;;
489 + ECHO_N='-n';;
490 +esac
492 +if expr a : '\(a\)' >/dev/null 2>&1 &&
493 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
494 + as_expr=expr
495 +else
496 + as_expr=false
499 +rm -f conf$$ conf$$.exe conf$$.file
500 +if test -d conf$$.dir; then
501 + rm -f conf$$.dir/conf$$.file
502 +else
503 + rm -f conf$$.dir
504 + mkdir conf$$.dir
506 +echo >conf$$.file
507 +if ln -s conf$$.file conf$$ 2>/dev/null; then
508 + as_ln_s='ln -s'
509 + # ... but there are two gotchas:
510 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
511 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
512 + # In both cases, we have to default to `cp -p'.
513 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
514 + as_ln_s='cp -p'
515 +elif ln conf$$.file conf$$ 2>/dev/null; then
516 + as_ln_s=ln
517 +else
518 + as_ln_s='cp -p'
520 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
521 +rmdir conf$$.dir 2>/dev/null
523 +if mkdir -p . 2>/dev/null; then
524 + as_mkdir_p=:
525 +else
526 + test -d ./-p && rmdir ./-p
527 + as_mkdir_p=false
530 +if test -x / >/dev/null 2>&1; then
531 + as_test_x='test -x'
532 +else
533 + if ls -dL / >/dev/null 2>&1; then
534 + as_ls_L_option=L
535 + else
536 + as_ls_L_option=
537 + fi
538 + as_test_x='
539 + eval sh -c '\''
540 + if test -d "$1"; then
541 + test -d "$1/.";
542 + else
543 + case $1 in
544 + -*)set "./$1";;
545 + esac;
546 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
547 + ???[sx]*):;;*)false;;esac;fi
548 + '\'' sh
551 +as_executable_p=$as_test_x
553 +# Sed expression to map a string onto a valid CPP name.
554 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 +# Sed expression to map a string onto a valid variable name.
557 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 +exec 7<&0 </dev/null 6>&1
563 +# Name of the host.
564 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
565 +# so uname gets run too.
566 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 +# Initializations.
571 ac_default_prefix=/usr/local
572 -# Any additions from configure.in:
573 -ac_help="$ac_help
574 - --enable-maintainer-mode
575 - enable maintainer-specific make rules (default: auto)"
576 -ac_help="$ac_help
577 - --enable-compat install <libelf.h>, <nlist.h> and <gelf.h> (default: auto)"
578 -ac_help="$ac_help
579 - --enable-elf64 compile in 64-bit support (default: auto)"
580 -ac_help="$ac_help
581 - --enable-versioning compile in versioning support (default: auto)"
582 -ac_help="$ac_help
583 - --enable-nls use Native Language Support (default: yes)"
584 -ac_help="$ac_help
585 - --enable-shared build shared library (default: yes)"
586 -ac_help="$ac_help
587 - --enable-gnu-names use GNU library naming conventions (default: no)"
588 -ac_help="$ac_help
589 - --enable-extended-format support extended file formats (default: no)"
590 -ac_help="$ac_help
591 - --enable-sanity-checks enable sanity checks by default (default: yes)"
592 -ac_help="$ac_help
593 - --enable-debug include extra debugging code (default: no)"
594 +ac_clean_files=
595 +ac_config_libobj_dir=.
596 +LIBOBJS=
597 +cross_compiling=no
598 +subdirs=
599 +MFLAGS=
600 +MAKEFLAGS=
601 +SHELL=${CONFIG_SHELL-/bin/sh}
603 +# Identity of this package.
604 +PACKAGE_NAME=
605 +PACKAGE_TARNAME=
606 +PACKAGE_VERSION=
607 +PACKAGE_STRING=
608 +PACKAGE_BUGREPORT=
610 +ac_unique_file="VERSION"
611 +# Factoring default headers for most tests.
612 +ac_includes_default="\
613 +#include <stdio.h>
614 +#ifdef HAVE_SYS_TYPES_H
615 +# include <sys/types.h>
616 +#endif
617 +#ifdef HAVE_SYS_STAT_H
618 +# include <sys/stat.h>
619 +#endif
620 +#ifdef STDC_HEADERS
621 +# include <stdlib.h>
622 +# include <stddef.h>
623 +#else
624 +# ifdef HAVE_STDLIB_H
625 +# include <stdlib.h>
626 +# endif
627 +#endif
628 +#ifdef HAVE_STRING_H
629 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
630 +# include <memory.h>
631 +# endif
632 +# include <string.h>
633 +#endif
634 +#ifdef HAVE_STRINGS_H
635 +# include <strings.h>
636 +#endif
637 +#ifdef HAVE_INTTYPES_H
638 +# include <inttypes.h>
639 +#endif
640 +#ifdef HAVE_STDINT_H
641 +# include <stdint.h>
642 +#endif
643 +#ifdef HAVE_UNISTD_H
644 +# include <unistd.h>
645 +#endif"
647 +ac_subst_vars='SHELL
648 +PATH_SEPARATOR
649 +PACKAGE_NAME
650 +PACKAGE_TARNAME
651 +PACKAGE_VERSION
652 +PACKAGE_STRING
653 +PACKAGE_BUGREPORT
654 +exec_prefix
655 +prefix
656 +program_transform_name
657 +bindir
658 +sbindir
659 +libexecdir
660 +datarootdir
661 +datadir
662 +sysconfdir
663 +sharedstatedir
664 +localstatedir
665 +includedir
666 +oldincludedir
667 +docdir
668 +infodir
669 +htmldir
670 +dvidir
671 +pdfdir
672 +psdir
673 +libdir
674 +localedir
675 +mandir
676 +DEFS
677 +ECHO_C
678 +ECHO_N
679 +ECHO_T
680 +LIBS
681 +build_alias
682 +host_alias
683 +target_alias
684 +PACKAGE
685 +VERSION
686 +MAINT
687 +MAJOR
688 +SET_MAKE
690 +CFLAGS
691 +LDFLAGS
692 +CPPFLAGS
693 +ac_ct_CC
694 +EXEEXT
695 +OBJEXT
696 +CPP
697 +INSTALL_PROGRAM
698 +INSTALL_SCRIPT
699 +INSTALL_DATA
700 +RANLIB
701 +LN_S
702 +GREP
703 +EGREP
704 +DO_COMPAT
705 +LIBOBJS
706 +GMOFILES
707 +MSGFILES
708 +POFILES
709 +MSGFMT
710 +GMSGFMT
711 +XGETTEXT
712 +MSGMERGE
713 +GENCAT
714 +CATOBJEXT
715 +INSTOBJEXT
716 +CATALOGS
717 +POSUB
718 +LIBINTL
719 +build
720 +build_cpu
721 +build_vendor
722 +build_os
723 +host
724 +host_cpu
725 +host_vendor
726 +host_os
728 +PICFLAGS
729 +SHLIB_SFX
730 +SHLINK_SFX
731 +SONAME_SFX
732 +LINK_SHLIB
733 +INSTALL_SHLIB
734 +DEPSHLIBS
735 +DO_SHLIB
736 +LTLIBOBJS'
737 +ac_subst_files=''
738 + ac_precious_vars='build_alias
739 +host_alias
740 +target_alias
742 +CFLAGS
743 +LDFLAGS
744 +LIBS
745 +CPPFLAGS
746 +CPP'
749 # Initialize some variables set by options.
750 +ac_init_help=
751 +ac_init_version=false
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
754 -build=NONE
755 -cache_file=./config.cache
756 +cache_file=/dev/null
757 exec_prefix=NONE
758 -host=NONE
759 no_create=
760 -nonopt=NONE
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 @@ -50,94 +731,117 @@ program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 -target=NONE
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
773 +# Installation directory options.
774 +# These are left unexpanded so users can "make install exec_prefix=/foo"
775 +# and all the variables that are supposed to be based on exec_prefix
776 +# by default will actually change.
777 +# Use braces instead of parens because sh, perl, etc. also accept them.
778 +# (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 -datadir='${prefix}/share'
783 +datarootdir='${prefix}/share'
784 +datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 -libdir='${exec_prefix}/lib'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 -infodir='${prefix}/info'
792 -mandir='${prefix}/man'
794 -# Initialize some other variables.
795 -subdirs=
796 -MFLAGS= MAKEFLAGS=
797 -SHELL=${CONFIG_SHELL-/bin/sh}
798 -# Maximum number of lines to put in a shell here document.
799 -ac_max_here_lines=12
800 +docdir='${datarootdir}/doc/${PACKAGE}'
801 +infodir='${datarootdir}/info'
802 +htmldir='${docdir}'
803 +dvidir='${docdir}'
804 +pdfdir='${docdir}'
805 +psdir='${docdir}'
806 +libdir='${exec_prefix}/lib'
807 +localedir='${datarootdir}/locale'
808 +mandir='${datarootdir}/man'
810 ac_prev=
811 +ac_dashdash=
812 for ac_option
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 - eval "$ac_prev=\$ac_option"
818 + eval $ac_prev=\$ac_option
819 ac_prev=
820 continue
823 - case "$ac_option" in
824 - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
825 - *) ac_optarg= ;;
826 + case $ac_option in
827 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 + *) ac_optarg=yes ;;
829 esac
831 # Accept the important Cygnus configure options, so we can diagnose typos.
833 - case "$ac_option" in
834 + case $ac_dashdash$ac_option in
835 + --)
836 + ac_dashdash=yes ;;
838 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 ac_prev=bindir ;;
840 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841 - bindir="$ac_optarg" ;;
842 + bindir=$ac_optarg ;;
844 -build | --build | --buil | --bui | --bu)
845 - ac_prev=build ;;
846 + ac_prev=build_alias ;;
847 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848 - build="$ac_optarg" ;;
849 + build_alias=$ac_optarg ;;
851 -cache-file | --cache-file | --cache-fil | --cache-fi \
852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853 ac_prev=cache_file ;;
854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856 - cache_file="$ac_optarg" ;;
857 + cache_file=$ac_optarg ;;
859 - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
860 + --config-cache | -C)
861 + cache_file=config.cache ;;
863 + -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
866 - | --da=*)
867 - datadir="$ac_optarg" ;;
868 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 + datadir=$ac_optarg ;;
871 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 + | --dataroo | --dataro | --datar)
873 + ac_prev=datarootdir ;;
874 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 + datarootdir=$ac_optarg ;;
878 -disable-* | --disable-*)
879 - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
880 + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
883 - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
884 - fi
885 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
886 - eval "enable_${ac_feature}=no" ;;
887 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
888 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
889 + { (exit 1); exit 1; }; }
890 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
891 + eval enable_$ac_feature=no ;;
893 + -docdir | --docdir | --docdi | --doc | --do)
894 + ac_prev=docdir ;;
895 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896 + docdir=$ac_optarg ;;
898 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 + ac_prev=dvidir ;;
900 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901 + dvidir=$ac_optarg ;;
903 -enable-* | --enable-*)
904 - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
905 + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
908 - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
909 - fi
910 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
911 - case "$ac_option" in
912 - *=*) ;;
913 - *) ac_optarg=yes ;;
914 - esac
915 - eval "enable_${ac_feature}='$ac_optarg'" ;;
916 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
917 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
918 + { (exit 1); exit 1; }; }
919 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
920 + eval enable_$ac_feature=\$ac_optarg ;;
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 @@ -146,116 +850,77 @@ do
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
928 - exec_prefix="$ac_optarg" ;;
929 + exec_prefix=$ac_optarg ;;
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
935 - -help | --help | --hel | --he)
936 - # Omit some internal or obsolete options to make the list less imposing.
937 - # This message is too long to be a string in the A/UX 3.1 sh.
938 - cat << EOF
939 -Usage: configure [options] [host]
940 -Options: [defaults in brackets after descriptions]
941 -Configuration:
942 - --cache-file=FILE cache test results in FILE
943 - --help print this message
944 - --no-create do not create output files
945 - --quiet, --silent do not print \`checking...' messages
946 - --version print the version of autoconf that created configure
947 -Directory and file names:
948 - --prefix=PREFIX install architecture-independent files in PREFIX
949 - [$ac_default_prefix]
950 - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
951 - [same as prefix]
952 - --bindir=DIR user executables in DIR [EPREFIX/bin]
953 - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
954 - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
955 - --datadir=DIR read-only architecture-independent data in DIR
956 - [PREFIX/share]
957 - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
958 - --sharedstatedir=DIR modifiable architecture-independent data in DIR
959 - [PREFIX/com]
960 - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
961 - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
962 - --includedir=DIR C header files in DIR [PREFIX/include]
963 - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
964 - --infodir=DIR info documentation in DIR [PREFIX/info]
965 - --mandir=DIR man documentation in DIR [PREFIX/man]
966 - --srcdir=DIR find the sources in DIR [configure dir or ..]
967 - --program-prefix=PREFIX prepend PREFIX to installed program names
968 - --program-suffix=SUFFIX append SUFFIX to installed program names
969 - --program-transform-name=PROGRAM
970 - run sed PROGRAM on installed program names
971 -EOF
972 - cat << EOF
973 -Host type:
974 - --build=BUILD configure for building on BUILD [BUILD=HOST]
975 - --host=HOST configure for HOST [guessed]
976 - --target=TARGET configure for TARGET [TARGET=HOST]
977 -Features and packages:
978 - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
979 - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
980 - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
981 - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
982 - --x-includes=DIR X include files are in DIR
983 - --x-libraries=DIR X library files are in DIR
984 -EOF
985 - if test -n "$ac_help"; then
986 - echo "--enable and --with options recognized:$ac_help"
987 - fi
988 - exit 0 ;;
989 + -help | --help | --hel | --he | -h)
990 + ac_init_help=long ;;
991 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 + ac_init_help=recursive ;;
993 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 + ac_init_help=short ;;
996 -host | --host | --hos | --ho)
997 - ac_prev=host ;;
998 + ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 - host="$ac_optarg" ;;
1001 + host_alias=$ac_optarg ;;
1003 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 + ac_prev=htmldir ;;
1005 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 + | --ht=*)
1007 + htmldir=$ac_optarg ;;
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 - includedir="$ac_optarg" ;;
1015 + includedir=$ac_optarg ;;
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 - infodir="$ac_optarg" ;;
1021 + infodir=$ac_optarg ;;
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 - libdir="$ac_optarg" ;;
1027 + libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 - libexecdir="$ac_optarg" ;;
1035 + libexecdir=$ac_optarg ;;
1037 + -localedir | --localedir | --localedi | --localed | --locale)
1038 + ac_prev=localedir ;;
1039 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 + localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 - | --localstate | --localstat | --localsta | --localst \
1044 - | --locals | --local | --loca | --loc | --lo)
1045 + | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
1049 - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1050 - localstatedir="$ac_optarg" ;;
1051 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 + localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 - mandir="$ac_optarg" ;;
1058 + mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 - | --no-cr | --no-c)
1066 + | --no-cr | --no-c | -n)
1067 no_create=yes ;;
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 @@ -269,26 +934,26 @@ EOF
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 - oldincludedir="$ac_optarg" ;;
1075 + oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 - prefix="$ac_optarg" ;;
1081 + prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 - program_prefix="$ac_optarg" ;;
1089 + program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 - program_suffix="$ac_optarg" ;;
1097 + program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 @@ -305,7 +970,17 @@ EOF
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 - program_transform_name="$ac_optarg" ;;
1106 + program_transform_name=$ac_optarg ;;
1108 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 + ac_prev=pdfdir ;;
1110 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 + pdfdir=$ac_optarg ;;
1113 + -psdir | --psdir | --psdi | --psd | --ps)
1114 + ac_prev=psdir ;;
1115 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 + psdir=$ac_optarg ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 @@ -315,7 +990,7 @@ EOF
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 - sbindir="$ac_optarg" ;;
1125 + sbindir=$ac_optarg ;;
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 @@ -326,58 +1001,53 @@ EOF
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1133 - sharedstatedir="$ac_optarg" ;;
1134 + sharedstatedir=$ac_optarg ;;
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 - site="$ac_optarg" ;;
1140 + site=$ac_optarg ;;
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 - srcdir="$ac_optarg" ;;
1146 + srcdir=$ac_optarg ;;
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 - sysconfdir="$ac_optarg" ;;
1154 + sysconfdir=$ac_optarg ;;
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 - ac_prev=target ;;
1158 + ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 - target="$ac_optarg" ;;
1161 + target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1166 - -version | --version | --versio | --versi | --vers)
1167 - echo "configure generated by autoconf version 2.13"
1168 - exit 0 ;;
1169 + -version | --version | --versio | --versi | --vers | -V)
1170 + ac_init_version=: ;;
1172 -with-* | --with-*)
1173 - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
1174 + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
1177 - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1178 - fi
1179 - ac_package=`echo $ac_package| sed 's/-/_/g'`
1180 - case "$ac_option" in
1181 - *=*) ;;
1182 - *) ac_optarg=yes ;;
1183 - esac
1184 - eval "with_${ac_package}='$ac_optarg'" ;;
1185 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 + { echo "$as_me: error: invalid package name: $ac_package" >&2
1187 + { (exit 1); exit 1; }; }
1188 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1189 + eval with_$ac_package=\$ac_optarg ;;
1191 -without-* | --without-*)
1192 - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
1193 + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
1196 - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1197 - fi
1198 - ac_package=`echo $ac_package| sed 's/-/_/g'`
1199 - eval "with_${ac_package}=no" ;;
1200 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 + { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 + { (exit 1); exit 1; }; }
1203 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1204 + eval with_$ac_package=no ;;
1206 --x)
1207 # Obsolete; use --with-x.
1208 @@ -388,157 +1058,652 @@ EOF
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 + x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 - x_libraries="$ac_optarg" ;;
1221 + x_libraries=$ac_optarg ;;
1223 - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
1224 + -*) { echo "$as_me: error: unrecognized option: $ac_option
1225 +Try \`$0 --help' for more information." >&2
1226 + { (exit 1); exit 1; }; }
1229 + *=*)
1230 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 + # Reject names that are not valid shell variable names.
1232 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1233 + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1234 + { (exit 1); exit 1; }; }
1235 + eval $ac_envvar=\$ac_optarg
1236 + export $ac_envvar ;;
1239 - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
1240 - echo "configure: warning: $ac_option: invalid host type" 1>&2
1241 - fi
1242 - if test "x$nonopt" != xNONE; then
1243 - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
1244 - fi
1245 - nonopt="$ac_option"
1246 + # FIXME: should be removed in autoconf 3.0.
1247 + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1253 esac
1254 done
1256 if test -n "$ac_prev"; then
1257 - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
1258 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 + { echo "$as_me: error: missing argument to $ac_option" >&2
1260 + { (exit 1); exit 1; }; }
1263 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1264 +# Be sure to have absolute directory names.
1265 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 + datadir sysconfdir sharedstatedir localstatedir includedir \
1267 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 + libdir localedir mandir
1270 + eval ac_val=\$$ac_var
1271 + case $ac_val in
1272 + [\\/$]* | ?:[\\/]* ) continue;;
1273 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 + esac
1275 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1276 + { (exit 1); exit 1; }; }
1277 +done
1279 -# File descriptor usage:
1280 -# 0 standard input
1281 -# 1 file creation
1282 -# 2 errors and warnings
1283 -# 3 some systems may open it to /dev/tty
1284 -# 4 used on the Kubota Titan
1285 -# 6 checking for... messages and results
1286 -# 5 compiler messages saved in config.log
1287 -if test "$silent" = yes; then
1288 - exec 6>/dev/null
1289 -else
1290 - exec 6>&1
1291 +# There might be people who depend on the old broken behavior: `$host'
1292 +# used to hold the argument of --host etc.
1293 +# FIXME: To remove some day.
1294 +build=$build_alias
1295 +host=$host_alias
1296 +target=$target_alias
1298 +# FIXME: To remove some day.
1299 +if test "x$host_alias" != x; then
1300 + if test "x$build_alias" = x; then
1301 + cross_compiling=maybe
1302 + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 + If a cross compiler is detected then cross compile mode will be used." >&2
1304 + elif test "x$build_alias" != "x$host_alias"; then
1305 + cross_compiling=yes
1306 + fi
1308 -exec 5>./config.log
1310 -echo "\
1311 -This file contains any messages produced by compilers while
1312 -running configure, to aid debugging if configure makes a mistake.
1313 -" 1>&5
1314 +ac_tool_prefix=
1315 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 -# Strip out --no-create and --no-recursion so they do not pile up.
1318 -# Also quote any args containing shell metacharacters.
1319 -ac_configure_args=
1320 -for ac_arg
1322 - case "$ac_arg" in
1323 - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1324 - | --no-cr | --no-c) ;;
1325 - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1326 - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1327 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
1328 - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1329 - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
1330 - esac
1331 -done
1332 +test "$silent" = yes && exec 6>/dev/null
1334 -# NLS nuisances.
1335 -# Only set these to C if already set. These must not be set unconditionally
1336 -# because not all systems understand e.g. LANG=C (notably SCO).
1337 -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
1338 -# Non-C LC_CTYPE values break the ctype check.
1339 -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
1340 -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
1341 -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
1342 -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
1344 -# confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 -rm -rf conftest* confdefs.h
1346 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 -echo > confdefs.h
1348 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349 +ac_ls_di=`ls -di .` &&
1350 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351 + { echo "$as_me: error: Working directory cannot be determined" >&2
1352 + { (exit 1); exit 1; }; }
1353 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 + { echo "$as_me: error: pwd does not report name of working directory" >&2
1355 + { (exit 1); exit 1; }; }
1357 -# A filename unique to this package, relative to the directory that
1358 -# configure is in, which we can look for to find out if srcdir is correct.
1359 -ac_unique_file=VERSION
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 - # Try the directory containing this script, then its parent.
1365 - ac_prog=$0
1366 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
1367 - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
1368 + # Try the directory containing this script, then the parent directory.
1369 + ac_confdir=`$as_dirname -- "$0" ||
1370 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 + X"$0" : 'X\(//\)[^/]' \| \
1372 + X"$0" : 'X\(//\)$' \| \
1373 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1374 +echo X"$0" |
1375 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 + s//\1/
1379 + /^X\(\/\/\)[^/].*/{
1380 + s//\1/
1383 + /^X\(\/\/\)$/{
1384 + s//\1/
1387 + /^X\(\/\).*/{
1388 + s//\1/
1391 + s/.*/./; q'`
1392 srcdir=$ac_confdir
1393 - if test ! -r $srcdir/$ac_unique_file; then
1394 + if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1397 else
1398 ac_srcdir_defaulted=no
1400 -if test ! -r $srcdir/$ac_unique_file; then
1401 - if test "$ac_srcdir_defaulted" = yes; then
1402 - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
1403 - else
1404 - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
1405 - fi
1406 +if test ! -r "$srcdir/$ac_unique_file"; then
1407 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1408 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1409 + { (exit 1); exit 1; }; }
1411 -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
1412 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413 +ac_abs_confdir=`(
1414 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1415 + { (exit 1); exit 1; }; }
1416 + pwd)`
1417 +# When building in place, set srcdir=.
1418 +if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 + srcdir=.
1421 +# Remove unnecessary trailing slashes from srcdir.
1422 +# Double slashes in file names in object file debugging info
1423 +# mess up M-x gdb in Emacs.
1424 +case $srcdir in
1425 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 +esac
1427 +for ac_var in $ac_precious_vars; do
1428 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429 + eval ac_env_${ac_var}_value=\$${ac_var}
1430 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432 +done
1435 +# Report the --help message.
1437 +if test "$ac_init_help" = "long"; then
1438 + # Omit some internal or obsolete options to make the list less imposing.
1439 + # This message is too long to be a string in the A/UX 3.1 sh.
1440 + cat <<_ACEOF
1441 +\`configure' configures this package to adapt to many kinds of systems.
1443 +Usage: $0 [OPTION]... [VAR=VALUE]...
1445 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446 +VAR=VALUE. See below for descriptions of some of the useful variables.
1448 +Defaults for the options are specified in brackets.
1450 +Configuration:
1451 + -h, --help display this help and exit
1452 + --help=short display options specific to this package
1453 + --help=recursive display the short help of all the included packages
1454 + -V, --version display version information and exit
1455 + -q, --quiet, --silent do not print \`checking...' messages
1456 + --cache-file=FILE cache test results in FILE [disabled]
1457 + -C, --config-cache alias for \`--cache-file=config.cache'
1458 + -n, --no-create do not create output files
1459 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
1461 +Installation directories:
1462 + --prefix=PREFIX install architecture-independent files in PREFIX
1463 + [$ac_default_prefix]
1464 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1465 + [PREFIX]
1467 +By default, \`make install' will install all the files in
1468 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470 +for instance \`--prefix=\$HOME'.
1472 +For better control, use the options below.
1474 +Fine tuning of the installation directories:
1475 + --bindir=DIR user executables [EPREFIX/bin]
1476 + --sbindir=DIR system admin executables [EPREFIX/sbin]
1477 + --libexecdir=DIR program executables [EPREFIX/libexec]
1478 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481 + --libdir=DIR object code libraries [EPREFIX/lib]
1482 + --includedir=DIR C header files [PREFIX/include]
1483 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
1484 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1485 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1486 + --infodir=DIR info documentation [DATAROOTDIR/info]
1487 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1488 + --mandir=DIR man documentation [DATAROOTDIR/man]
1489 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1490 + --htmldir=DIR html documentation [DOCDIR]
1491 + --dvidir=DIR dvi documentation [DOCDIR]
1492 + --pdfdir=DIR pdf documentation [DOCDIR]
1493 + --psdir=DIR ps documentation [DOCDIR]
1494 +_ACEOF
1496 + cat <<\_ACEOF
1498 +System types:
1499 + --build=BUILD configure for building on BUILD [guessed]
1500 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
1501 +_ACEOF
1504 +if test -n "$ac_init_help"; then
1506 + cat <<\_ACEOF
1508 +Optional Features:
1509 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1511 + --enable-maintainer-mode
1512 + enable maintainer-specific make rules (default: auto)
1513 + --enable-compat install <libelf.h>, <nlist.h> and <gelf.h> (default: auto)
1514 + --enable-elf64 compile in 64-bit support (default: auto)
1515 + --enable-versioning compile in versioning support (default: auto)
1516 + --enable-nls use Native Language Support (default: yes)
1517 + --enable-shared build shared library (default: yes)
1518 + --enable-gnu-names use GNU library naming conventions (default: no)
1519 + --enable-extended-format support extended file formats (default: no)
1520 + --enable-sanity-checks enable sanity checks by default (default: yes)
1521 + --enable-debug include extra debugging code (default: no)
1523 +Some influential environment variables:
1524 + CC C compiler command
1525 + CFLAGS C compiler flags
1526 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 + nonstandard directory <lib dir>
1528 + LIBS libraries to pass to the linker, e.g. -l<library>
1529 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 + you have headers in a nonstandard directory <include dir>
1531 + CPP C preprocessor
1533 +Use these variables to override the choices made by `configure' or to help
1534 +it to find libraries and programs with nonstandard names/locations.
1536 +_ACEOF
1537 +ac_status=$?
1540 +if test "$ac_init_help" = "recursive"; then
1541 + # If there are subdirs, report their specific --help.
1542 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 + test -d "$ac_dir" || continue
1544 + ac_builddir=.
1546 +case "$ac_dir" in
1547 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1550 + # A ".." for each directory in $ac_dir_suffix.
1551 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1552 + case $ac_top_builddir_sub in
1553 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 + esac ;;
1556 +esac
1557 +ac_abs_top_builddir=$ac_pwd
1558 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 +# for backward compatibility:
1560 +ac_top_builddir=$ac_top_build_prefix
1562 +case $srcdir in
1563 + .) # We are building in place.
1564 + ac_srcdir=.
1565 + ac_top_srcdir=$ac_top_builddir_sub
1566 + ac_abs_top_srcdir=$ac_pwd ;;
1567 + [\\/]* | ?:[\\/]* ) # Absolute name.
1568 + ac_srcdir=$srcdir$ac_dir_suffix;
1569 + ac_top_srcdir=$srcdir
1570 + ac_abs_top_srcdir=$srcdir ;;
1571 + *) # Relative name.
1572 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 + ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 +esac
1576 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578 + cd "$ac_dir" || { ac_status=$?; continue; }
1579 + # Check for guested configure.
1580 + if test -f "$ac_srcdir/configure.gnu"; then
1581 + echo &&
1582 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 + elif test -f "$ac_srcdir/configure"; then
1584 + echo &&
1585 + $SHELL "$ac_srcdir/configure" --help=recursive
1586 + else
1587 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 + fi || ac_status=$?
1589 + cd "$ac_pwd" || { ac_status=$?; break; }
1590 + done
1593 +test -n "$ac_init_help" && exit $ac_status
1594 +if $ac_init_version; then
1595 + cat <<\_ACEOF
1596 +configure
1597 +generated by GNU Autoconf 2.61
1599 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1600 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1601 +This configure script is free software; the Free Software Foundation
1602 +gives unlimited permission to copy, distribute and modify it.
1603 +_ACEOF
1604 + exit
1606 +cat >config.log <<_ACEOF
1607 +This file contains any messages produced by compilers while
1608 +running configure, to aid debugging if configure makes a mistake.
1610 +It was created by $as_me, which was
1611 +generated by GNU Autoconf 2.61. Invocation command line was
1613 + $ $0 $@
1615 +_ACEOF
1616 +exec 5>>config.log
1618 +cat <<_ASUNAME
1619 +## --------- ##
1620 +## Platform. ##
1621 +## --------- ##
1623 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1624 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
1625 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
1626 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
1627 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
1629 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1630 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1632 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1633 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1634 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1635 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1636 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1637 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1638 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1640 +_ASUNAME
1642 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 +for as_dir in $PATH
1645 + IFS=$as_save_IFS
1646 + test -z "$as_dir" && as_dir=.
1647 + echo "PATH: $as_dir"
1648 +done
1649 +IFS=$as_save_IFS
1651 +} >&5
1653 +cat >&5 <<_ACEOF
1656 +## ----------- ##
1657 +## Core tests. ##
1658 +## ----------- ##
1660 +_ACEOF
1663 +# Keep a trace of the command line.
1664 +# Strip out --no-create and --no-recursion so they do not pile up.
1665 +# Strip out --silent because we don't want to record it for future runs.
1666 +# Also quote any args containing shell meta-characters.
1667 +# Make two passes to allow for proper duplicate-argument suppression.
1668 +ac_configure_args=
1669 +ac_configure_args0=
1670 +ac_configure_args1=
1671 +ac_must_keep_next=false
1672 +for ac_pass in 1 2
1674 + for ac_arg
1675 + do
1676 + case $ac_arg in
1677 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1678 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1679 + | -silent | --silent | --silen | --sile | --sil)
1680 + continue ;;
1681 + *\'*)
1682 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1683 + esac
1684 + case $ac_pass in
1685 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1686 + 2)
1687 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1688 + if test $ac_must_keep_next = true; then
1689 + ac_must_keep_next=false # Got value, back to normal.
1690 + else
1691 + case $ac_arg in
1692 + *=* | --config-cache | -C | -disable-* | --disable-* \
1693 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1694 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1695 + | -with-* | --with-* | -without-* | --without-* | --x)
1696 + case "$ac_configure_args0 " in
1697 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1698 + esac
1699 + ;;
1700 + -* ) ac_must_keep_next=true ;;
1701 + esac
1702 + fi
1703 + ac_configure_args="$ac_configure_args '$ac_arg'"
1704 + ;;
1705 + esac
1706 + done
1707 +done
1708 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1709 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1711 +# When interrupted or exit'd, cleanup temporary files, and complete
1712 +# config.log. We remove comments because anyway the quotes in there
1713 +# would cause problems or look ugly.
1714 +# WARNING: Use '\'' to represent an apostrophe within the trap.
1715 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1716 +trap 'exit_status=$?
1717 + # Save into config.log some information that might help in debugging.
1719 + echo
1721 + cat <<\_ASBOX
1722 +## ---------------- ##
1723 +## Cache variables. ##
1724 +## ---------------- ##
1725 +_ASBOX
1726 + echo
1727 + # The following way of writing the cache mishandles newlines in values,
1729 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1730 + eval ac_val=\$$ac_var
1731 + case $ac_val in #(
1732 + *${as_nl}*)
1733 + case $ac_var in #(
1734 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1735 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1736 + esac
1737 + case $ac_var in #(
1738 + _ | IFS | as_nl) ;; #(
1739 + *) $as_unset $ac_var ;;
1740 + esac ;;
1741 + esac
1742 + done
1743 + (set) 2>&1 |
1744 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1745 + *${as_nl}ac_space=\ *)
1746 + sed -n \
1747 + "s/'\''/'\''\\\\'\'''\''/g;
1748 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1749 + ;; #(
1750 + *)
1751 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1752 + ;;
1753 + esac |
1754 + sort
1756 + echo
1758 + cat <<\_ASBOX
1759 +## ----------------- ##
1760 +## Output variables. ##
1761 +## ----------------- ##
1762 +_ASBOX
1763 + echo
1764 + for ac_var in $ac_subst_vars
1765 + do
1766 + eval ac_val=\$$ac_var
1767 + case $ac_val in
1768 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 + esac
1770 + echo "$ac_var='\''$ac_val'\''"
1771 + done | sort
1772 + echo
1774 + if test -n "$ac_subst_files"; then
1775 + cat <<\_ASBOX
1776 +## ------------------- ##
1777 +## File substitutions. ##
1778 +## ------------------- ##
1779 +_ASBOX
1780 + echo
1781 + for ac_var in $ac_subst_files
1782 + do
1783 + eval ac_val=\$$ac_var
1784 + case $ac_val in
1785 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786 + esac
1787 + echo "$ac_var='\''$ac_val'\''"
1788 + done | sort
1789 + echo
1790 + fi
1792 + if test -s confdefs.h; then
1793 + cat <<\_ASBOX
1794 +## ----------- ##
1795 +## confdefs.h. ##
1796 +## ----------- ##
1797 +_ASBOX
1798 + echo
1799 + cat confdefs.h
1800 + echo
1801 + fi
1802 + test "$ac_signal" != 0 &&
1803 + echo "$as_me: caught signal $ac_signal"
1804 + echo "$as_me: exit $exit_status"
1805 + } >&5
1806 + rm -f core *.core core.conftest.* &&
1807 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1808 + exit $exit_status
1809 +' 0
1810 +for ac_signal in 1 2 13 15; do
1811 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1812 +done
1813 +ac_signal=0
1815 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
1816 +rm -f -r conftest* confdefs.h
1818 +# Predefined preprocessor variables.
1820 +cat >>confdefs.h <<_ACEOF
1821 +#define PACKAGE_NAME "$PACKAGE_NAME"
1822 +_ACEOF
1825 +cat >>confdefs.h <<_ACEOF
1826 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1827 +_ACEOF
1830 +cat >>confdefs.h <<_ACEOF
1831 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
1832 +_ACEOF
1835 +cat >>confdefs.h <<_ACEOF
1836 +#define PACKAGE_STRING "$PACKAGE_STRING"
1837 +_ACEOF
1840 +cat >>confdefs.h <<_ACEOF
1841 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1842 +_ACEOF
1845 +# Let the site file select an alternate cache file if it wants to.
1846 # Prefer explicitly selected file to automatically selected ones.
1847 -if test -z "$CONFIG_SITE"; then
1848 - if test "x$prefix" != xNONE; then
1849 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1850 - else
1851 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1852 - fi
1853 +if test -n "$CONFIG_SITE"; then
1854 + set x "$CONFIG_SITE"
1855 +elif test "x$prefix" != xNONE; then
1856 + set x "$prefix/share/config.site" "$prefix/etc/config.site"
1857 +else
1858 + set x "$ac_default_prefix/share/config.site" \
1859 + "$ac_default_prefix/etc/config.site"
1861 -for ac_site_file in $CONFIG_SITE; do
1862 +shift
1863 +for ac_site_file
1865 if test -r "$ac_site_file"; then
1866 - echo "loading site script $ac_site_file"
1867 + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1868 +echo "$as_me: loading site script $ac_site_file" >&6;}
1869 + sed 's/^/| /' "$ac_site_file" >&5
1870 . "$ac_site_file"
1872 done
1874 if test -r "$cache_file"; then
1875 - echo "loading cache $cache_file"
1876 - . $cache_file
1877 + # Some versions of bash will fail to source /dev/null (special
1878 + # files actually), so we avoid doing that.
1879 + if test -f "$cache_file"; then
1880 + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1881 +echo "$as_me: loading cache $cache_file" >&6;}
1882 + case $cache_file in
1883 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
1884 + *) . "./$cache_file";;
1885 + esac
1886 + fi
1887 else
1888 - echo "creating cache $cache_file"
1889 - > $cache_file
1890 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1891 +echo "$as_me: creating cache $cache_file" >&6;}
1892 + >$cache_file
1895 -ac_ext=c
1896 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1897 -ac_cpp='$CPP $CPPFLAGS'
1898 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1899 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1900 -cross_compiling=$ac_cv_prog_cc_cross
1902 -ac_exeext=
1903 -ac_objext=o
1904 -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
1905 - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
1906 - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
1907 - ac_n= ac_c='
1908 -' ac_t=' '
1909 - else
1910 - ac_n=-n ac_c= ac_t=
1911 +# Check that the precious variables saved in the cache have kept the same
1912 +# value.
1913 +ac_cache_corrupted=false
1914 +for ac_var in $ac_precious_vars; do
1915 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
1916 + eval ac_new_set=\$ac_env_${ac_var}_set
1917 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
1918 + eval ac_new_val=\$ac_env_${ac_var}_value
1919 + case $ac_old_set,$ac_new_set in
1920 + set,)
1921 + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1922 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1923 + ac_cache_corrupted=: ;;
1924 + ,set)
1925 + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1926 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1927 + ac_cache_corrupted=: ;;
1928 + ,);;
1929 + *)
1930 + if test "x$ac_old_val" != "x$ac_new_val"; then
1931 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1932 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1933 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1934 +echo "$as_me: former value: $ac_old_val" >&2;}
1935 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1936 +echo "$as_me: current value: $ac_new_val" >&2;}
1937 + ac_cache_corrupted=:
1938 + fi;;
1939 + esac
1940 + # Pass precious variables to config.status.
1941 + if test "$ac_new_set" = set; then
1942 + case $ac_new_val in
1943 + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1944 + *) ac_arg=$ac_var=$ac_new_val ;;
1945 + esac
1946 + case " $ac_configure_args " in
1947 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1948 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1949 + esac
1951 -else
1952 - ac_n= ac_c='\c' ac_t=
1953 +done
1954 +if $ac_cache_corrupted; then
1955 + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1956 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1957 + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1958 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1959 + { (exit 1); exit 1; }; }
1963 @@ -546,14 +1711,36 @@ fi
1978 +ac_ext=c
1979 +ac_cpp='$CPP $CPPFLAGS'
1980 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1981 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1982 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1985 +ac_config_headers="$ac_config_headers config.h lib/sys_elf.h"
1990 PACKAGE=libelf
1991 VERSION=`cat $srcdir/VERSION`
1994 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1997 + # Check whether --enable-maintainer-mode was given.
1998 if test "${enable_maintainer_mode+set}" = set; then
1999 - enableval="$enable_maintainer_mode"
2000 - mr_enable_maintainer_mode="$enableval"
2001 + enableval=$enable_maintainer_mode; mr_enable_maintainer_mode="$enableval"
2002 else
2003 case :${I_AM_THE_MAINTAINER_OF}: in
2004 *:libelf:*) mr_enable_maintainer_mode=yes;;
2005 @@ -566,7 +1753,7 @@ fi
2006 else
2007 MAINT='maintainer-only-'
2013 ALL_LINGUAS=`cd $srcdir/po && echo *.po | sed 's/\.po//g'`
2014 @@ -577,241 +1764,821 @@ MINOR=${2-0}
2015 PATCH=${3-0}
2018 -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2019 -echo "configure:582: checking whether ${MAKE-make} sets \${MAKE}" >&5
2020 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2021 -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2022 - echo $ac_n "(cached) $ac_c" 1>&6
2023 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2024 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2025 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2026 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2027 + echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029 - cat > conftestmake <<\EOF
2030 + cat >conftest.make <<\_ACEOF
2031 +SHELL = /bin/sh
2032 all:
2033 - @echo 'ac_maketemp="${MAKE}"'
2034 -EOF
2035 + @echo '@@@%%%=$(MAKE)=@@@%%%'
2036 +_ACEOF
2037 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2038 -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2039 -if test -n "$ac_maketemp"; then
2040 - eval ac_cv_prog_make_${ac_make}_set=yes
2041 -else
2042 - eval ac_cv_prog_make_${ac_make}_set=no
2044 -rm -f conftestmake
2045 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
2046 + *@@@%%%=?*=@@@%%%*)
2047 + eval ac_cv_prog_make_${ac_make}_set=yes;;
2048 + *)
2049 + eval ac_cv_prog_make_${ac_make}_set=no;;
2050 +esac
2051 +rm -f conftest.make
2053 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2054 - echo "$ac_t""yes" 1>&6
2055 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2056 + { echo "$as_me:$LINENO: result: yes" >&5
2057 +echo "${ECHO_T}yes" >&6; }
2058 SET_MAKE=
2059 else
2060 - echo "$ac_t""no" 1>&6
2061 + { echo "$as_me:$LINENO: result: no" >&5
2062 +echo "${ECHO_T}no" >&6; }
2063 SET_MAKE="MAKE=${MAKE-make}"
2066 -# Extract the first word of "gcc", so it can be a program name with args.
2067 +ac_ext=c
2068 +ac_cpp='$CPP $CPPFLAGS'
2069 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072 +if test -n "$ac_tool_prefix"; then
2073 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2074 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
2075 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077 +if test "${ac_cv_prog_CC+set}" = set; then
2078 + echo $ECHO_N "(cached) $ECHO_C" >&6
2079 +else
2080 + if test -n "$CC"; then
2081 + ac_cv_prog_CC="$CC" # Let the user override the test.
2082 +else
2083 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 +for as_dir in $PATH
2086 + IFS=$as_save_IFS
2087 + test -z "$as_dir" && as_dir=.
2088 + for ac_exec_ext in '' $ac_executable_extensions; do
2089 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
2091 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 + break 2
2093 + fi
2094 +done
2095 +done
2096 +IFS=$as_save_IFS
2100 +CC=$ac_cv_prog_CC
2101 +if test -n "$CC"; then
2102 + { echo "$as_me:$LINENO: result: $CC" >&5
2103 +echo "${ECHO_T}$CC" >&6; }
2104 +else
2105 + { echo "$as_me:$LINENO: result: no" >&5
2106 +echo "${ECHO_T}no" >&6; }
2111 +if test -z "$ac_cv_prog_CC"; then
2112 + ac_ct_CC=$CC
2113 + # Extract the first word of "gcc", so it can be a program name with args.
2114 set dummy gcc; ac_word=$2
2115 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2116 -echo "configure:611: checking for $ac_word" >&5
2117 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2118 - echo $ac_n "(cached) $ac_c" 1>&6
2119 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2121 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122 + echo $ECHO_N "(cached) $ECHO_C" >&6
2123 +else
2124 + if test -n "$ac_ct_CC"; then
2125 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 +else
2127 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 +for as_dir in $PATH
2130 + IFS=$as_save_IFS
2131 + test -z "$as_dir" && as_dir=.
2132 + for ac_exec_ext in '' $ac_executable_extensions; do
2133 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2134 + ac_cv_prog_ac_ct_CC="gcc"
2135 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 + break 2
2137 + fi
2138 +done
2139 +done
2140 +IFS=$as_save_IFS
2144 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2145 +if test -n "$ac_ct_CC"; then
2146 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2147 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2148 +else
2149 + { echo "$as_me:$LINENO: result: no" >&5
2150 +echo "${ECHO_T}no" >&6; }
2153 + if test "x$ac_ct_CC" = x; then
2154 + CC=""
2155 + else
2156 + case $cross_compiling:$ac_tool_warned in
2157 +yes:)
2158 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2159 +whose name does not start with the host triplet. If you think this
2160 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2161 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2162 +whose name does not start with the host triplet. If you think this
2163 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2164 +ac_tool_warned=yes ;;
2165 +esac
2166 + CC=$ac_ct_CC
2167 + fi
2168 +else
2169 + CC="$ac_cv_prog_CC"
2172 +if test -z "$CC"; then
2173 + if test -n "$ac_tool_prefix"; then
2174 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2175 +set dummy ${ac_tool_prefix}cc; ac_word=$2
2176 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178 +if test "${ac_cv_prog_CC+set}" = set; then
2179 + echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181 if test -n "$CC"; then
2182 ac_cv_prog_CC="$CC" # Let the user override the test.
2183 else
2184 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2185 - ac_dummy="$PATH"
2186 - for ac_dir in $ac_dummy; do
2187 - test -z "$ac_dir" && ac_dir=.
2188 - if test -f $ac_dir/$ac_word; then
2189 - ac_cv_prog_CC="gcc"
2190 - break
2191 - fi
2192 - done
2193 - IFS="$ac_save_ifs"
2194 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 +for as_dir in $PATH
2197 + IFS=$as_save_IFS
2198 + test -z "$as_dir" && as_dir=.
2199 + for ac_exec_ext in '' $ac_executable_extensions; do
2200 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201 + ac_cv_prog_CC="${ac_tool_prefix}cc"
2202 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 + break 2
2204 + fi
2205 +done
2206 +done
2207 +IFS=$as_save_IFS
2211 -CC="$ac_cv_prog_CC"
2212 +CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214 - echo "$ac_t""$CC" 1>&6
2215 + { echo "$as_me:$LINENO: result: $CC" >&5
2216 +echo "${ECHO_T}$CC" >&6; }
2217 else
2218 - echo "$ac_t""no" 1>&6
2219 + { echo "$as_me:$LINENO: result: no" >&5
2220 +echo "${ECHO_T}no" >&6; }
2224 + fi
2226 if test -z "$CC"; then
2227 # Extract the first word of "cc", so it can be a program name with args.
2228 set dummy cc; ac_word=$2
2229 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2230 -echo "configure:641: checking for $ac_word" >&5
2231 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2232 - echo $ac_n "(cached) $ac_c" 1>&6
2233 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2235 +if test "${ac_cv_prog_CC+set}" = set; then
2236 + echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 else
2241 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2242 ac_prog_rejected=no
2243 - ac_dummy="$PATH"
2244 - for ac_dir in $ac_dummy; do
2245 - test -z "$ac_dir" && ac_dir=.
2246 - if test -f $ac_dir/$ac_word; then
2247 - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2248 - ac_prog_rejected=yes
2249 - continue
2250 - fi
2251 - ac_cv_prog_CC="cc"
2252 - break
2253 - fi
2254 - done
2255 - IFS="$ac_save_ifs"
2256 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 +for as_dir in $PATH
2259 + IFS=$as_save_IFS
2260 + test -z "$as_dir" && as_dir=.
2261 + for ac_exec_ext in '' $ac_executable_extensions; do
2262 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2264 + ac_prog_rejected=yes
2265 + continue
2266 + fi
2267 + ac_cv_prog_CC="cc"
2268 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 + break 2
2270 + fi
2271 +done
2272 +done
2273 +IFS=$as_save_IFS
2275 if test $ac_prog_rejected = yes; then
2276 # We found a bogon in the path, so make sure we never use it.
2277 set dummy $ac_cv_prog_CC
2278 shift
2279 - if test $# -gt 0; then
2280 + if test $# != 0; then
2281 # We chose a different compiler from the bogus one.
2282 # However, it has the same basename, so the bogon will be chosen
2283 # first if we set CC to just the basename; use the full file name.
2284 shift
2285 - set dummy "$ac_dir/$ac_word" "$@"
2286 - shift
2287 - ac_cv_prog_CC="$@"
2288 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2293 -CC="$ac_cv_prog_CC"
2294 +CC=$ac_cv_prog_CC
2295 if test -n "$CC"; then
2296 - echo "$ac_t""$CC" 1>&6
2297 + { echo "$as_me:$LINENO: result: $CC" >&5
2298 +echo "${ECHO_T}$CC" >&6; }
2299 else
2300 - echo "$ac_t""no" 1>&6
2301 + { echo "$as_me:$LINENO: result: no" >&5
2302 +echo "${ECHO_T}no" >&6; }
2305 - if test -z "$CC"; then
2306 - case "`uname -s`" in
2307 - *win32* | *WIN32*)
2308 - # Extract the first word of "cl", so it can be a program name with args.
2309 -set dummy cl; ac_word=$2
2310 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2311 -echo "configure:692: checking for $ac_word" >&5
2312 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2313 - echo $ac_n "(cached) $ac_c" 1>&6
2316 +if test -z "$CC"; then
2317 + if test -n "$ac_tool_prefix"; then
2318 + for ac_prog in cl.exe
2319 + do
2320 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2321 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2322 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324 +if test "${ac_cv_prog_CC+set}" = set; then
2325 + echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 if test -n "$CC"; then
2328 ac_cv_prog_CC="$CC" # Let the user override the test.
2329 else
2330 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2331 - ac_dummy="$PATH"
2332 - for ac_dir in $ac_dummy; do
2333 - test -z "$ac_dir" && ac_dir=.
2334 - if test -f $ac_dir/$ac_word; then
2335 - ac_cv_prog_CC="cl"
2336 - break
2337 - fi
2338 - done
2339 - IFS="$ac_save_ifs"
2340 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 +for as_dir in $PATH
2343 + IFS=$as_save_IFS
2344 + test -z "$as_dir" && as_dir=.
2345 + for ac_exec_ext in '' $ac_executable_extensions; do
2346 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2348 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 + break 2
2350 + fi
2351 +done
2352 +done
2353 +IFS=$as_save_IFS
2357 -CC="$ac_cv_prog_CC"
2358 +CC=$ac_cv_prog_CC
2359 if test -n "$CC"; then
2360 - echo "$ac_t""$CC" 1>&6
2361 + { echo "$as_me:$LINENO: result: $CC" >&5
2362 +echo "${ECHO_T}$CC" >&6; }
2363 else
2364 - echo "$ac_t""no" 1>&6
2365 + { echo "$as_me:$LINENO: result: no" >&5
2366 +echo "${ECHO_T}no" >&6; }
2368 - ;;
2369 - esac
2372 + test -n "$CC" && break
2373 + done
2375 +if test -z "$CC"; then
2376 + ac_ct_CC=$CC
2377 + for ac_prog in cl.exe
2379 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2380 +set dummy $ac_prog; ac_word=$2
2381 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2384 + echo $ECHO_N "(cached) $ECHO_C" >&6
2385 +else
2386 + if test -n "$ac_ct_CC"; then
2387 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2388 +else
2389 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 +for as_dir in $PATH
2392 + IFS=$as_save_IFS
2393 + test -z "$as_dir" && as_dir=.
2394 + for ac_exec_ext in '' $ac_executable_extensions; do
2395 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396 + ac_cv_prog_ac_ct_CC="$ac_prog"
2397 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398 + break 2
2400 - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2401 +done
2402 +done
2403 +IFS=$as_save_IFS
2407 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 +if test -n "$ac_ct_CC"; then
2409 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2410 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2411 +else
2412 + { echo "$as_me:$LINENO: result: no" >&5
2413 +echo "${ECHO_T}no" >&6; }
2416 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2417 -echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2419 -ac_ext=c
2420 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2421 -ac_cpp='$CPP $CPPFLAGS'
2422 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2423 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2424 -cross_compiling=$ac_cv_prog_cc_cross
2425 + test -n "$ac_ct_CC" && break
2426 +done
2428 -cat > conftest.$ac_ext << EOF
2429 + if test "x$ac_ct_CC" = x; then
2430 + CC=""
2431 + else
2432 + case $cross_compiling:$ac_tool_warned in
2433 +yes:)
2434 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435 +whose name does not start with the host triplet. If you think this
2436 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2437 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438 +whose name does not start with the host triplet. If you think this
2439 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2440 +ac_tool_warned=yes ;;
2441 +esac
2442 + CC=$ac_ct_CC
2443 + fi
2446 -#line 735 "configure"
2447 -#include "confdefs.h"
2450 -main(){return(0);}
2451 -EOF
2452 -if { (eval echo configure:740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2453 - ac_cv_prog_cc_works=yes
2454 - # If we can't run a trivial program, we are probably using a cross compiler.
2455 - if (./conftest; exit) 2>/dev/null; then
2456 - ac_cv_prog_cc_cross=no
2458 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2459 +See \`config.log' for more details." >&5
2460 +echo "$as_me: error: no acceptable C compiler found in \$PATH
2461 +See \`config.log' for more details." >&2;}
2462 + { (exit 1); exit 1; }; }
2464 +# Provide some information about the compiler.
2465 +echo "$as_me:$LINENO: checking for C compiler version" >&5
2466 +ac_compiler=`set X $ac_compile; echo $2`
2467 +{ (ac_try="$ac_compiler --version >&5"
2468 +case "(($ac_try" in
2469 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 + *) ac_try_echo=$ac_try;;
2471 +esac
2472 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 + (eval "$ac_compiler --version >&5") 2>&5
2474 + ac_status=$?
2475 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 + (exit $ac_status); }
2477 +{ (ac_try="$ac_compiler -v >&5"
2478 +case "(($ac_try" in
2479 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 + *) ac_try_echo=$ac_try;;
2481 +esac
2482 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 + (eval "$ac_compiler -v >&5") 2>&5
2484 + ac_status=$?
2485 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 + (exit $ac_status); }
2487 +{ (ac_try="$ac_compiler -V >&5"
2488 +case "(($ac_try" in
2489 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 + *) ac_try_echo=$ac_try;;
2491 +esac
2492 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 + (eval "$ac_compiler -V >&5") 2>&5
2494 + ac_status=$?
2495 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 + (exit $ac_status); }
2498 +cat >conftest.$ac_ext <<_ACEOF
2499 +/* confdefs.h. */
2500 +_ACEOF
2501 +cat confdefs.h >>conftest.$ac_ext
2502 +cat >>conftest.$ac_ext <<_ACEOF
2503 +/* end confdefs.h. */
2505 +int
2506 +main ()
2510 + return 0;
2512 +_ACEOF
2513 +ac_clean_files_save=$ac_clean_files
2514 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
2515 +# Try to create an executable without -o first, disregard a.out.
2516 +# It will help us diagnose broken compilers, and finding out an intuition
2517 +# of exeext.
2518 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2519 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2520 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2522 +# List of possible output files, starting from the most likely.
2523 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2524 +# only as a last resort. b.out is created by i960 compilers.
2525 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2527 +# The IRIX 6 linker writes into existing files which may not be
2528 +# executable, retaining their permissions. Remove them first so a
2529 +# subsequent execution test works.
2530 +ac_rmfiles=
2531 +for ac_file in $ac_files
2533 + case $ac_file in
2534 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2535 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2536 + esac
2537 +done
2538 +rm -f $ac_rmfiles
2540 +if { (ac_try="$ac_link_default"
2541 +case "(($ac_try" in
2542 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 + *) ac_try_echo=$ac_try;;
2544 +esac
2545 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 + (eval "$ac_link_default") 2>&5
2547 + ac_status=$?
2548 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 + (exit $ac_status); }; then
2550 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2551 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2552 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
2553 +# so that the user can short-circuit this test for compilers unknown to
2554 +# Autoconf.
2555 +for ac_file in $ac_files ''
2557 + test -f "$ac_file" || continue
2558 + case $ac_file in
2559 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2560 + ;;
2561 + [ab].out )
2562 + # We found the default executable, but exeext='' is most
2563 + # certainly right.
2564 + break;;
2565 + *.* )
2566 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2567 + then :; else
2568 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2569 + fi
2570 + # We set ac_cv_exeext here because the later test for it is not
2571 + # safe: cross compilers may not add the suffix if given an `-o'
2572 + # argument, so we may need to know it at that point already.
2573 + # Even if this section looks crufty: it has the advantage of
2574 + # actually working.
2575 + break;;
2576 + * )
2577 + break;;
2578 + esac
2579 +done
2580 +test "$ac_cv_exeext" = no && ac_cv_exeext=
2582 +else
2583 + ac_file=''
2586 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
2587 +echo "${ECHO_T}$ac_file" >&6; }
2588 +if test -z "$ac_file"; then
2589 + echo "$as_me: failed program was:" >&5
2590 +sed 's/^/| /' conftest.$ac_ext >&5
2592 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2593 +See \`config.log' for more details." >&5
2594 +echo "$as_me: error: C compiler cannot create executables
2595 +See \`config.log' for more details." >&2;}
2596 + { (exit 77); exit 77; }; }
2599 +ac_exeext=$ac_cv_exeext
2601 +# Check that the compiler produces executables we can run. If not, either
2602 +# the compiler is broken, or we cross compile.
2603 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2604 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2605 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2606 +# If not cross compiling, check that we can run a simple program.
2607 +if test "$cross_compiling" != yes; then
2608 + if { ac_try='./$ac_file'
2609 + { (case "(($ac_try" in
2610 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611 + *) ac_try_echo=$ac_try;;
2612 +esac
2613 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614 + (eval "$ac_try") 2>&5
2615 + ac_status=$?
2616 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 + (exit $ac_status); }; }; then
2618 + cross_compiling=no
2619 else
2620 - ac_cv_prog_cc_cross=yes
2621 + if test "$cross_compiling" = maybe; then
2622 + cross_compiling=yes
2623 + else
2624 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2625 +If you meant to cross compile, use \`--host'.
2626 +See \`config.log' for more details." >&5
2627 +echo "$as_me: error: cannot run C compiled programs.
2628 +If you meant to cross compile, use \`--host'.
2629 +See \`config.log' for more details." >&2;}
2630 + { (exit 1); exit 1; }; }
2631 + fi
2634 +{ echo "$as_me:$LINENO: result: yes" >&5
2635 +echo "${ECHO_T}yes" >&6; }
2637 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
2638 +ac_clean_files=$ac_clean_files_save
2639 +# Check that the compiler produces executables we can run. If not, either
2640 +# the compiler is broken, or we cross compile.
2641 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2642 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2643 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2644 +echo "${ECHO_T}$cross_compiling" >&6; }
2646 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2647 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2648 +if { (ac_try="$ac_link"
2649 +case "(($ac_try" in
2650 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 + *) ac_try_echo=$ac_try;;
2652 +esac
2653 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 + (eval "$ac_link") 2>&5
2655 + ac_status=$?
2656 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 + (exit $ac_status); }; then
2658 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
2659 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2660 +# work properly (i.e., refer to `conftest.exe'), while it won't with
2661 +# `rm'.
2662 +for ac_file in conftest.exe conftest conftest.*; do
2663 + test -f "$ac_file" || continue
2664 + case $ac_file in
2665 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2666 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2667 + break;;
2668 + * ) break;;
2669 + esac
2670 +done
2671 else
2672 - echo "configure: failed program was:" >&5
2673 - cat conftest.$ac_ext >&5
2674 - ac_cv_prog_cc_works=no
2675 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2676 +See \`config.log' for more details." >&5
2677 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2678 +See \`config.log' for more details." >&2;}
2679 + { (exit 1); exit 1; }; }
2681 -rm -fr conftest*
2682 -ac_ext=c
2683 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2684 -ac_cpp='$CPP $CPPFLAGS'
2685 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2686 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2687 -cross_compiling=$ac_cv_prog_cc_cross
2689 -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2690 -if test $ac_cv_prog_cc_works = no; then
2691 - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2692 +rm -f conftest$ac_cv_exeext
2693 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2694 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
2696 +rm -f conftest.$ac_ext
2697 +EXEEXT=$ac_cv_exeext
2698 +ac_exeext=$EXEEXT
2699 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2700 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2701 +if test "${ac_cv_objext+set}" = set; then
2702 + echo $ECHO_N "(cached) $ECHO_C" >&6
2703 +else
2704 + cat >conftest.$ac_ext <<_ACEOF
2705 +/* confdefs.h. */
2706 +_ACEOF
2707 +cat confdefs.h >>conftest.$ac_ext
2708 +cat >>conftest.$ac_ext <<_ACEOF
2709 +/* end confdefs.h. */
2711 +int
2712 +main ()
2716 + return 0;
2718 +_ACEOF
2719 +rm -f conftest.o conftest.obj
2720 +if { (ac_try="$ac_compile"
2721 +case "(($ac_try" in
2722 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 + *) ac_try_echo=$ac_try;;
2724 +esac
2725 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 + (eval "$ac_compile") 2>&5
2727 + ac_status=$?
2728 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 + (exit $ac_status); }; then
2730 + for ac_file in conftest.o conftest.obj conftest.*; do
2731 + test -f "$ac_file" || continue;
2732 + case $ac_file in
2733 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2734 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2735 + break;;
2736 + esac
2737 +done
2738 +else
2739 + echo "$as_me: failed program was:" >&5
2740 +sed 's/^/| /' conftest.$ac_ext >&5
2742 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2743 +See \`config.log' for more details." >&5
2744 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
2745 +See \`config.log' for more details." >&2;}
2746 + { (exit 1); exit 1; }; }
2748 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2749 -echo "configure:766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2750 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2751 -cross_compiling=$ac_cv_prog_cc_cross
2753 -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2754 -echo "configure:771: checking whether we are using GNU C" >&5
2755 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2756 - echo $ac_n "(cached) $ac_c" 1>&6
2757 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
2759 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2760 +echo "${ECHO_T}$ac_cv_objext" >&6; }
2761 +OBJEXT=$ac_cv_objext
2762 +ac_objext=$OBJEXT
2763 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2764 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2765 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
2766 + echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768 - cat > conftest.c <<EOF
2769 -#ifdef __GNUC__
2770 - yes;
2771 + cat >conftest.$ac_ext <<_ACEOF
2772 +/* confdefs.h. */
2773 +_ACEOF
2774 +cat confdefs.h >>conftest.$ac_ext
2775 +cat >>conftest.$ac_ext <<_ACEOF
2776 +/* end confdefs.h. */
2778 +int
2779 +main ()
2781 +#ifndef __GNUC__
2782 + choke me
2783 #endif
2784 -EOF
2785 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2786 - ac_cv_prog_gcc=yes
2789 + return 0;
2791 +_ACEOF
2792 +rm -f conftest.$ac_objext
2793 +if { (ac_try="$ac_compile"
2794 +case "(($ac_try" in
2795 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 + *) ac_try_echo=$ac_try;;
2797 +esac
2798 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 + (eval "$ac_compile") 2>conftest.er1
2800 + ac_status=$?
2801 + grep -v '^ *+' conftest.er1 >conftest.err
2802 + rm -f conftest.er1
2803 + cat conftest.err >&5
2804 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 + (exit $ac_status); } && {
2806 + test -z "$ac_c_werror_flag" ||
2807 + test ! -s conftest.err
2808 + } && test -s conftest.$ac_objext; then
2809 + ac_compiler_gnu=yes
2810 else
2811 - ac_cv_prog_gcc=no
2812 + echo "$as_me: failed program was:" >&5
2813 +sed 's/^/| /' conftest.$ac_ext >&5
2815 + ac_compiler_gnu=no
2818 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2819 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
2822 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2823 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2824 +GCC=`test $ac_compiler_gnu = yes && echo yes`
2825 +ac_test_CFLAGS=${CFLAGS+set}
2826 +ac_save_CFLAGS=$CFLAGS
2827 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2828 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2829 +if test "${ac_cv_prog_cc_g+set}" = set; then
2830 + echo $ECHO_N "(cached) $ECHO_C" >&6
2831 +else
2832 + ac_save_c_werror_flag=$ac_c_werror_flag
2833 + ac_c_werror_flag=yes
2834 + ac_cv_prog_cc_g=no
2835 + CFLAGS="-g"
2836 + cat >conftest.$ac_ext <<_ACEOF
2837 +/* confdefs.h. */
2838 +_ACEOF
2839 +cat confdefs.h >>conftest.$ac_ext
2840 +cat >>conftest.$ac_ext <<_ACEOF
2841 +/* end confdefs.h. */
2843 -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2844 +int
2845 +main ()
2848 -if test $ac_cv_prog_gcc = yes; then
2849 - GCC=yes
2851 + return 0;
2853 +_ACEOF
2854 +rm -f conftest.$ac_objext
2855 +if { (ac_try="$ac_compile"
2856 +case "(($ac_try" in
2857 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 + *) ac_try_echo=$ac_try;;
2859 +esac
2860 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 + (eval "$ac_compile") 2>conftest.er1
2862 + ac_status=$?
2863 + grep -v '^ *+' conftest.er1 >conftest.err
2864 + rm -f conftest.er1
2865 + cat conftest.err >&5
2866 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 + (exit $ac_status); } && {
2868 + test -z "$ac_c_werror_flag" ||
2869 + test ! -s conftest.err
2870 + } && test -s conftest.$ac_objext; then
2871 + ac_cv_prog_cc_g=yes
2872 else
2873 - GCC=
2875 + echo "$as_me: failed program was:" >&5
2876 +sed 's/^/| /' conftest.$ac_ext >&5
2878 -ac_test_CFLAGS="${CFLAGS+set}"
2879 -ac_save_CFLAGS="$CFLAGS"
2880 -CFLAGS=
2881 -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2882 -echo "configure:799: checking whether ${CC-cc} accepts -g" >&5
2883 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2884 - echo $ac_n "(cached) $ac_c" 1>&6
2885 + CFLAGS=""
2886 + cat >conftest.$ac_ext <<_ACEOF
2887 +/* confdefs.h. */
2888 +_ACEOF
2889 +cat confdefs.h >>conftest.$ac_ext
2890 +cat >>conftest.$ac_ext <<_ACEOF
2891 +/* end confdefs.h. */
2893 +int
2894 +main ()
2898 + return 0;
2900 +_ACEOF
2901 +rm -f conftest.$ac_objext
2902 +if { (ac_try="$ac_compile"
2903 +case "(($ac_try" in
2904 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 + *) ac_try_echo=$ac_try;;
2906 +esac
2907 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 + (eval "$ac_compile") 2>conftest.er1
2909 + ac_status=$?
2910 + grep -v '^ *+' conftest.er1 >conftest.err
2911 + rm -f conftest.er1
2912 + cat conftest.err >&5
2913 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 + (exit $ac_status); } && {
2915 + test -z "$ac_c_werror_flag" ||
2916 + test ! -s conftest.err
2917 + } && test -s conftest.$ac_objext; then
2919 else
2920 - echo 'void f(){}' > conftest.c
2921 -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2922 + echo "$as_me: failed program was:" >&5
2923 +sed 's/^/| /' conftest.$ac_ext >&5
2925 + ac_c_werror_flag=$ac_save_c_werror_flag
2926 + CFLAGS="-g"
2927 + cat >conftest.$ac_ext <<_ACEOF
2928 +/* confdefs.h. */
2929 +_ACEOF
2930 +cat confdefs.h >>conftest.$ac_ext
2931 +cat >>conftest.$ac_ext <<_ACEOF
2932 +/* end confdefs.h. */
2934 +int
2935 +main ()
2939 + return 0;
2941 +_ACEOF
2942 +rm -f conftest.$ac_objext
2943 +if { (ac_try="$ac_compile"
2944 +case "(($ac_try" in
2945 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 + *) ac_try_echo=$ac_try;;
2947 +esac
2948 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 + (eval "$ac_compile") 2>conftest.er1
2950 + ac_status=$?
2951 + grep -v '^ *+' conftest.er1 >conftest.err
2952 + rm -f conftest.er1
2953 + cat conftest.err >&5
2954 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 + (exit $ac_status); } && {
2956 + test -z "$ac_c_werror_flag" ||
2957 + test ! -s conftest.err
2958 + } && test -s conftest.$ac_objext; then
2959 ac_cv_prog_cc_g=yes
2960 else
2961 - ac_cv_prog_cc_g=no
2962 + echo "$as_me: failed program was:" >&5
2963 +sed 's/^/| /' conftest.$ac_ext >&5
2967 -rm -f conftest*
2969 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972 -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2973 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 + ac_c_werror_flag=$ac_save_c_werror_flag
2979 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2980 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2981 if test "$ac_test_CFLAGS" = set; then
2982 - CFLAGS="$ac_save_CFLAGS"
2983 + CFLAGS=$ac_save_CFLAGS
2984 elif test $ac_cv_prog_cc_g = yes; then
2985 if test "$GCC" = yes; then
2986 CFLAGS="-g -O2"
2987 @@ -825,105 +2592,387 @@ else
2988 CFLAGS=
2991 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2992 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2993 +if test "${ac_cv_prog_cc_c89+set}" = set; then
2994 + echo $ECHO_N "(cached) $ECHO_C" >&6
2995 +else
2996 + ac_cv_prog_cc_c89=no
2997 +ac_save_CC=$CC
2998 +cat >conftest.$ac_ext <<_ACEOF
2999 +/* confdefs.h. */
3000 +_ACEOF
3001 +cat confdefs.h >>conftest.$ac_ext
3002 +cat >>conftest.$ac_ext <<_ACEOF
3003 +/* end confdefs.h. */
3004 +#include <stdarg.h>
3005 +#include <stdio.h>
3006 +#include <sys/types.h>
3007 +#include <sys/stat.h>
3008 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3009 +struct buf { int x; };
3010 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
3011 +static char *e (p, i)
3012 + char **p;
3013 + int i;
3015 + return p[i];
3017 +static char *f (char * (*g) (char **, int), char **p, ...)
3019 + char *s;
3020 + va_list v;
3021 + va_start (v,p);
3022 + s = g (p, va_arg (v,int));
3023 + va_end (v);
3024 + return s;
3027 -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3028 -echo "configure:831: checking how to run the C preprocessor" >&5
3029 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3030 + function prototypes and stuff, but not '\xHH' hex character constants.
3031 + These don't provoke an error unfortunately, instead are silently treated
3032 + as 'x'. The following induces an error, until -std is added to get
3033 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3034 + array size at least. It's necessary to write '\x00'==0 to get something
3035 + that's true only with -std. */
3036 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3038 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3039 + inside strings and character constants. */
3040 +#define FOO(x) 'x'
3041 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3043 +int test (int i, double x);
3044 +struct s1 {int (*f) (int a);};
3045 +struct s2 {int (*f) (double a);};
3046 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3047 +int argc;
3048 +char **argv;
3049 +int
3050 +main ()
3052 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3054 + return 0;
3056 +_ACEOF
3057 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3058 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3060 + CC="$ac_save_CC $ac_arg"
3061 + rm -f conftest.$ac_objext
3062 +if { (ac_try="$ac_compile"
3063 +case "(($ac_try" in
3064 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 + *) ac_try_echo=$ac_try;;
3066 +esac
3067 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 + (eval "$ac_compile") 2>conftest.er1
3069 + ac_status=$?
3070 + grep -v '^ *+' conftest.er1 >conftest.err
3071 + rm -f conftest.er1
3072 + cat conftest.err >&5
3073 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 + (exit $ac_status); } && {
3075 + test -z "$ac_c_werror_flag" ||
3076 + test ! -s conftest.err
3077 + } && test -s conftest.$ac_objext; then
3078 + ac_cv_prog_cc_c89=$ac_arg
3079 +else
3080 + echo "$as_me: failed program was:" >&5
3081 +sed 's/^/| /' conftest.$ac_ext >&5
3086 +rm -f core conftest.err conftest.$ac_objext
3087 + test "x$ac_cv_prog_cc_c89" != "xno" && break
3088 +done
3089 +rm -f conftest.$ac_ext
3090 +CC=$ac_save_CC
3093 +# AC_CACHE_VAL
3094 +case "x$ac_cv_prog_cc_c89" in
3095 + x)
3096 + { echo "$as_me:$LINENO: result: none needed" >&5
3097 +echo "${ECHO_T}none needed" >&6; } ;;
3098 + xno)
3099 + { echo "$as_me:$LINENO: result: unsupported" >&5
3100 +echo "${ECHO_T}unsupported" >&6; } ;;
3101 + *)
3102 + CC="$CC $ac_cv_prog_cc_c89"
3103 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3104 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3105 +esac
3108 +ac_ext=c
3109 +ac_cpp='$CPP $CPPFLAGS'
3110 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 +ac_ext=c
3115 +ac_cpp='$CPP $CPPFLAGS'
3116 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3119 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3120 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3121 # On Suns, sometimes $CPP names a directory.
3122 if test -n "$CPP" && test -d "$CPP"; then
3123 CPP=
3125 if test -z "$CPP"; then
3126 -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3127 - echo $ac_n "(cached) $ac_c" 1>&6
3128 + if test "${ac_cv_prog_CPP+set}" = set; then
3129 + echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131 - # This must be in double quotes, not single quotes, because CPP may get
3132 - # substituted into the Makefile and "${CC-cc}" will confuse make.
3133 - CPP="${CC-cc} -E"
3134 + # Double quotes because CPP needs to be expanded
3135 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3136 + do
3137 + ac_preproc_ok=false
3138 +for ac_c_preproc_warn_flag in '' yes
3140 + # Use a header file that comes with gcc, so configuring glibc
3141 + # with a fresh cross-compiler works.
3142 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3143 + # <limits.h> exists even on freestanding compilers.
3144 # On the NeXT, cc -E runs the code through the compiler's parser,
3145 - # not just through cpp.
3146 - cat > conftest.$ac_ext <<EOF
3147 -#line 846 "configure"
3148 -#include "confdefs.h"
3149 -#include <assert.h>
3150 -Syntax Error
3151 -EOF
3152 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3153 -{ (eval echo configure:852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3154 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3155 -if test -z "$ac_err"; then
3157 -else
3158 - echo "$ac_err" >&5
3159 - echo "configure: failed program was:" >&5
3160 - cat conftest.$ac_ext >&5
3161 - rm -rf conftest*
3162 - CPP="${CC-cc} -E -traditional-cpp"
3163 - cat > conftest.$ac_ext <<EOF
3164 -#line 863 "configure"
3165 -#include "confdefs.h"
3166 -#include <assert.h>
3167 -Syntax Error
3168 -EOF
3169 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3170 -{ (eval echo configure:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3171 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3172 -if test -z "$ac_err"; then
3173 + # not just through cpp. "Syntax error" is here to catch this case.
3174 + cat >conftest.$ac_ext <<_ACEOF
3175 +/* confdefs.h. */
3176 +_ACEOF
3177 +cat confdefs.h >>conftest.$ac_ext
3178 +cat >>conftest.$ac_ext <<_ACEOF
3179 +/* end confdefs.h. */
3180 +#ifdef __STDC__
3181 +# include <limits.h>
3182 +#else
3183 +# include <assert.h>
3184 +#endif
3185 + Syntax error
3186 +_ACEOF
3187 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3188 +case "(($ac_try" in
3189 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 + *) ac_try_echo=$ac_try;;
3191 +esac
3192 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3194 + ac_status=$?
3195 + grep -v '^ *+' conftest.er1 >conftest.err
3196 + rm -f conftest.er1
3197 + cat conftest.err >&5
3198 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 + (exit $ac_status); } >/dev/null && {
3200 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3201 + test ! -s conftest.err
3202 + }; then
3204 else
3205 - echo "$ac_err" >&5
3206 - echo "configure: failed program was:" >&5
3207 - cat conftest.$ac_ext >&5
3208 - rm -rf conftest*
3209 - CPP="${CC-cc} -nologo -E"
3210 - cat > conftest.$ac_ext <<EOF
3211 -#line 880 "configure"
3212 -#include "confdefs.h"
3213 -#include <assert.h>
3214 -Syntax Error
3215 -EOF
3216 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3217 -{ (eval echo configure:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3218 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3219 -if test -z "$ac_err"; then
3221 + echo "$as_me: failed program was:" >&5
3222 +sed 's/^/| /' conftest.$ac_ext >&5
3224 + # Broken: fails on valid input.
3225 +continue
3228 +rm -f conftest.err conftest.$ac_ext
3230 + # OK, works on sane cases. Now check whether nonexistent headers
3231 + # can be detected and how.
3232 + cat >conftest.$ac_ext <<_ACEOF
3233 +/* confdefs.h. */
3234 +_ACEOF
3235 +cat confdefs.h >>conftest.$ac_ext
3236 +cat >>conftest.$ac_ext <<_ACEOF
3237 +/* end confdefs.h. */
3238 +#include <ac_nonexistent.h>
3239 +_ACEOF
3240 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3241 +case "(($ac_try" in
3242 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 + *) ac_try_echo=$ac_try;;
3244 +esac
3245 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3247 + ac_status=$?
3248 + grep -v '^ *+' conftest.er1 >conftest.err
3249 + rm -f conftest.er1
3250 + cat conftest.err >&5
3251 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 + (exit $ac_status); } >/dev/null && {
3253 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3254 + test ! -s conftest.err
3255 + }; then
3256 + # Broken: success on invalid input.
3257 +continue
3258 else
3259 - echo "$ac_err" >&5
3260 - echo "configure: failed program was:" >&5
3261 - cat conftest.$ac_ext >&5
3262 - rm -rf conftest*
3263 - CPP=/lib/cpp
3264 + echo "$as_me: failed program was:" >&5
3265 +sed 's/^/| /' conftest.$ac_ext >&5
3267 + # Passes both tests.
3268 +ac_preproc_ok=:
3269 +break
3271 -rm -f conftest*
3273 +rm -f conftest.err conftest.$ac_ext
3275 +done
3276 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3277 +rm -f conftest.err conftest.$ac_ext
3278 +if $ac_preproc_ok; then
3279 + break
3281 -rm -f conftest*
3283 + done
3284 + ac_cv_prog_CPP=$CPP
3287 -rm -f conftest*
3288 - ac_cv_prog_CPP="$CPP"
3289 + CPP=$ac_cv_prog_CPP
3290 +else
3291 + ac_cv_prog_CPP=$CPP
3293 - CPP="$ac_cv_prog_CPP"
3294 +{ echo "$as_me:$LINENO: result: $CPP" >&5
3295 +echo "${ECHO_T}$CPP" >&6; }
3296 +ac_preproc_ok=false
3297 +for ac_c_preproc_warn_flag in '' yes
3299 + # Use a header file that comes with gcc, so configuring glibc
3300 + # with a fresh cross-compiler works.
3301 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3302 + # <limits.h> exists even on freestanding compilers.
3303 + # On the NeXT, cc -E runs the code through the compiler's parser,
3304 + # not just through cpp. "Syntax error" is here to catch this case.
3305 + cat >conftest.$ac_ext <<_ACEOF
3306 +/* confdefs.h. */
3307 +_ACEOF
3308 +cat confdefs.h >>conftest.$ac_ext
3309 +cat >>conftest.$ac_ext <<_ACEOF
3310 +/* end confdefs.h. */
3311 +#ifdef __STDC__
3312 +# include <limits.h>
3313 +#else
3314 +# include <assert.h>
3315 +#endif
3316 + Syntax error
3317 +_ACEOF
3318 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3319 +case "(($ac_try" in
3320 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 + *) ac_try_echo=$ac_try;;
3322 +esac
3323 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3325 + ac_status=$?
3326 + grep -v '^ *+' conftest.er1 >conftest.err
3327 + rm -f conftest.er1
3328 + cat conftest.err >&5
3329 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 + (exit $ac_status); } >/dev/null && {
3331 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3332 + test ! -s conftest.err
3333 + }; then
3335 else
3336 - ac_cv_prog_CPP="$CPP"
3337 + echo "$as_me: failed program was:" >&5
3338 +sed 's/^/| /' conftest.$ac_ext >&5
3340 + # Broken: fails on valid input.
3341 +continue
3343 -echo "$ac_t""$CPP" 1>&6
3345 +rm -f conftest.err conftest.$ac_ext
3347 + # OK, works on sane cases. Now check whether nonexistent headers
3348 + # can be detected and how.
3349 + cat >conftest.$ac_ext <<_ACEOF
3350 +/* confdefs.h. */
3351 +_ACEOF
3352 +cat confdefs.h >>conftest.$ac_ext
3353 +cat >>conftest.$ac_ext <<_ACEOF
3354 +/* end confdefs.h. */
3355 +#include <ac_nonexistent.h>
3356 +_ACEOF
3357 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3358 +case "(($ac_try" in
3359 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 + *) ac_try_echo=$ac_try;;
3361 +esac
3362 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3364 + ac_status=$?
3365 + grep -v '^ *+' conftest.er1 >conftest.err
3366 + rm -f conftest.er1
3367 + cat conftest.err >&5
3368 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 + (exit $ac_status); } >/dev/null && {
3370 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3371 + test ! -s conftest.err
3372 + }; then
3373 + # Broken: success on invalid input.
3374 +continue
3375 +else
3376 + echo "$as_me: failed program was:" >&5
3377 +sed 's/^/| /' conftest.$ac_ext >&5
3379 + # Passes both tests.
3380 +ac_preproc_ok=:
3381 +break
3384 +rm -f conftest.err conftest.$ac_ext
3386 +done
3387 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3388 +rm -f conftest.err conftest.$ac_ext
3389 +if $ac_preproc_ok; then
3391 +else
3392 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3393 +See \`config.log' for more details." >&5
3394 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3395 +See \`config.log' for more details." >&2;}
3396 + { (exit 1); exit 1; }; }
3399 +ac_ext=c
3400 +ac_cpp='$CPP $CPPFLAGS'
3401 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 ac_aux_dir=
3406 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3407 - if test -f $ac_dir/install-sh; then
3408 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3409 + if test -f "$ac_dir/install-sh"; then
3410 ac_aux_dir=$ac_dir
3411 ac_install_sh="$ac_aux_dir/install-sh -c"
3412 break
3413 - elif test -f $ac_dir/install.sh; then
3414 + elif test -f "$ac_dir/install.sh"; then
3415 ac_aux_dir=$ac_dir
3416 ac_install_sh="$ac_aux_dir/install.sh -c"
3417 break
3418 + elif test -f "$ac_dir/shtool"; then
3419 + ac_aux_dir=$ac_dir
3420 + ac_install_sh="$ac_aux_dir/shtool install -c"
3421 + break
3423 done
3424 if test -z "$ac_aux_dir"; then
3425 - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
3426 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3427 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3428 + { (exit 1); exit 1; }; }
3430 -ac_config_guess=$ac_aux_dir/config.guess
3431 -ac_config_sub=$ac_aux_dir/config.sub
3432 -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
3434 +# These three variables are undocumented and unsupported,
3435 +# and are intended to be withdrawn in a future Autoconf release.
3436 +# They can cause serious problems if a builder's source tree is in a directory
3437 +# whose full name contains unusual characters.
3438 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3439 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3440 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3443 # Find a good install program. We prefer a C program (faster),
3444 # so one script is as good as another. But avoid the broken or
3445 @@ -932,156 +2981,418 @@ ac_configure=$ac_aux_dir/configure # Thi
3446 # SunOS /usr/etc/install
3447 # IRIX /sbin/install
3448 # AIX /bin/install
3449 +# AmigaOS /C/install, which installs bootblocks on floppy discs
3450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3453 +# OS/2's system install, which has a completely different semantic
3454 # ./install, which can be erroneously created by make from ./install.sh.
3455 -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3456 -echo "configure:941: checking for a BSD compatible install" >&5
3457 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3458 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3459 if test -z "$INSTALL"; then
3460 -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3461 - echo $ac_n "(cached) $ac_c" 1>&6
3462 +if test "${ac_cv_path_install+set}" = set; then
3463 + echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3466 - for ac_dir in $PATH; do
3467 - # Account for people who put trailing slashes in PATH elements.
3468 - case "$ac_dir/" in
3469 - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3470 - *)
3471 - # OSF1 and SCO ODT 3.0 have their own names for install.
3472 - # Don't use installbsd from OSF since it installs stuff as root
3473 - # by default.
3474 - for ac_prog in ginstall scoinst install; do
3475 - if test -f $ac_dir/$ac_prog; then
3476 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 +for as_dir in $PATH
3479 + IFS=$as_save_IFS
3480 + test -z "$as_dir" && as_dir=.
3481 + # Account for people who put trailing slashes in PATH elements.
3482 +case $as_dir/ in
3483 + ./ | .// | /cC/* | \
3484 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3485 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3486 + /usr/ucb/* ) ;;
3487 + *)
3488 + # OSF1 and SCO ODT 3.0 have their own names for install.
3489 + # Don't use installbsd from OSF since it installs stuff as root
3490 + # by default.
3491 + for ac_prog in ginstall scoinst install; do
3492 + for ac_exec_ext in '' $ac_executable_extensions; do
3493 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3494 if test $ac_prog = install &&
3495 - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3496 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3497 # AIX install. It has an incompatible calling convention.
3499 + elif test $ac_prog = install &&
3500 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3501 + # program-specific install script used by HP pwplus--don't use.
3503 else
3504 - ac_cv_path_install="$ac_dir/$ac_prog -c"
3505 - break 2
3506 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3507 + break 3
3510 done
3511 - ;;
3512 - esac
3513 - done
3514 - IFS="$ac_save_IFS"
3515 + done
3516 + ;;
3517 +esac
3518 +done
3519 +IFS=$as_save_IFS
3523 if test "${ac_cv_path_install+set}" = set; then
3524 - INSTALL="$ac_cv_path_install"
3525 + INSTALL=$ac_cv_path_install
3526 else
3527 - # As a last resort, use the slow shell script. We don't cache a
3528 - # path for INSTALL within a source directory, because that will
3529 + # As a last resort, use the slow shell script. Don't cache a
3530 + # value for INSTALL within a source directory, because that will
3531 # break other packages using the cache if that directory is
3532 - # removed, or if the path is relative.
3533 - INSTALL="$ac_install_sh"
3534 + # removed, or if the value is a relative name.
3535 + INSTALL=$ac_install_sh
3538 -echo "$ac_t""$INSTALL" 1>&6
3539 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3540 +echo "${ECHO_T}$INSTALL" >&6; }
3542 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3543 # It thinks the first close brace ends the variable substitution.
3544 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3546 -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3547 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3549 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3551 -# Extract the first word of "ranlib", so it can be a program name with args.
3552 -set dummy ranlib; ac_word=$2
3553 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3554 -echo "configure:996: checking for $ac_word" >&5
3555 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3556 - echo $ac_n "(cached) $ac_c" 1>&6
3557 +if test -n "$ac_tool_prefix"; then
3558 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3559 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3560 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3561 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3562 +if test "${ac_cv_prog_RANLIB+set}" = set; then
3563 + echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565 if test -n "$RANLIB"; then
3566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3567 else
3568 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3569 - ac_dummy="$PATH"
3570 - for ac_dir in $ac_dummy; do
3571 - test -z "$ac_dir" && ac_dir=.
3572 - if test -f $ac_dir/$ac_word; then
3573 - ac_cv_prog_RANLIB="ranlib"
3574 - break
3575 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 +for as_dir in $PATH
3578 + IFS=$as_save_IFS
3579 + test -z "$as_dir" && as_dir=.
3580 + for ac_exec_ext in '' $ac_executable_extensions; do
3581 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3583 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 + break 2
3585 + fi
3586 +done
3587 +done
3588 +IFS=$as_save_IFS
3592 +RANLIB=$ac_cv_prog_RANLIB
3593 +if test -n "$RANLIB"; then
3594 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
3595 +echo "${ECHO_T}$RANLIB" >&6; }
3596 +else
3597 + { echo "$as_me:$LINENO: result: no" >&5
3598 +echo "${ECHO_T}no" >&6; }
3603 +if test -z "$ac_cv_prog_RANLIB"; then
3604 + ac_ct_RANLIB=$RANLIB
3605 + # Extract the first word of "ranlib", so it can be a program name with args.
3606 +set dummy ranlib; ac_word=$2
3607 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3608 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3609 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3610 + echo $ECHO_N "(cached) $ECHO_C" >&6
3611 +else
3612 + if test -n "$ac_ct_RANLIB"; then
3613 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3614 +else
3615 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 +for as_dir in $PATH
3618 + IFS=$as_save_IFS
3619 + test -z "$as_dir" && as_dir=.
3620 + for ac_exec_ext in '' $ac_executable_extensions; do
3621 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 + ac_cv_prog_ac_ct_RANLIB="ranlib"
3623 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 + break 2
3625 + fi
3626 +done
3627 +done
3628 +IFS=$as_save_IFS
3632 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3633 +if test -n "$ac_ct_RANLIB"; then
3634 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3635 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3636 +else
3637 + { echo "$as_me:$LINENO: result: no" >&5
3638 +echo "${ECHO_T}no" >&6; }
3641 + if test "x$ac_ct_RANLIB" = x; then
3642 + RANLIB=":"
3643 + else
3644 + case $cross_compiling:$ac_tool_warned in
3645 +yes:)
3646 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3647 +whose name does not start with the host triplet. If you think this
3648 +configuration is useful to you, please write to autoconf@gnu.org." >&5
3649 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3650 +whose name does not start with the host triplet. If you think this
3651 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3652 +ac_tool_warned=yes ;;
3653 +esac
3654 + RANLIB=$ac_ct_RANLIB
3655 + fi
3656 +else
3657 + RANLIB="$ac_cv_prog_RANLIB"
3660 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3661 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3662 +LN_S=$as_ln_s
3663 +if test "$LN_S" = "ln -s"; then
3664 + { echo "$as_me:$LINENO: result: yes" >&5
3665 +echo "${ECHO_T}yes" >&6; }
3666 +else
3667 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3668 +echo "${ECHO_T}no, using $LN_S" >&6; }
3675 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3676 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3677 +if test "${ac_cv_path_GREP+set}" = set; then
3678 + echo $ECHO_N "(cached) $ECHO_C" >&6
3679 +else
3680 + # Extract the first word of "grep ggrep" to use in msg output
3681 +if test -z "$GREP"; then
3682 +set dummy grep ggrep; ac_prog_name=$2
3683 +if test "${ac_cv_path_GREP+set}" = set; then
3684 + echo $ECHO_N "(cached) $ECHO_C" >&6
3685 +else
3686 + ac_path_GREP_found=false
3687 +# Loop through the user's path and test for each of PROGNAME-LIST
3688 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3691 + IFS=$as_save_IFS
3692 + test -z "$as_dir" && as_dir=.
3693 + for ac_prog in grep ggrep; do
3694 + for ac_exec_ext in '' $ac_executable_extensions; do
3695 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3696 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3697 + # Check for GNU ac_path_GREP and select it if it is found.
3698 + # Check for GNU $ac_path_GREP
3699 +case `"$ac_path_GREP" --version 2>&1` in
3700 +*GNU*)
3701 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3703 + ac_count=0
3704 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3705 + while :
3706 + do
3707 + cat "conftest.in" "conftest.in" >"conftest.tmp"
3708 + mv "conftest.tmp" "conftest.in"
3709 + cp "conftest.in" "conftest.nl"
3710 + echo 'GREP' >> "conftest.nl"
3711 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3712 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3713 + ac_count=`expr $ac_count + 1`
3714 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
3715 + # Best one so far, save it but keep looking for a better one
3716 + ac_cv_path_GREP="$ac_path_GREP"
3717 + ac_path_GREP_max=$ac_count
3719 + # 10*(2^10) chars as input seems more than enough
3720 + test $ac_count -gt 10 && break
3721 done
3722 - IFS="$ac_save_ifs"
3723 - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3724 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3725 +esac
3728 + $ac_path_GREP_found && break 3
3729 + done
3730 +done
3732 +done
3733 +IFS=$as_save_IFS
3738 +GREP="$ac_cv_path_GREP"
3739 +if test -z "$GREP"; then
3740 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3741 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3742 + { (exit 1); exit 1; }; }
3744 -RANLIB="$ac_cv_prog_RANLIB"
3745 -if test -n "$RANLIB"; then
3746 - echo "$ac_t""$RANLIB" 1>&6
3748 else
3749 - echo "$ac_t""no" 1>&6
3750 + ac_cv_path_GREP=$GREP
3753 -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3754 -echo "configure:1024: checking whether ln -s works" >&5
3755 -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3756 - echo $ac_n "(cached) $ac_c" 1>&6
3759 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3760 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3761 + GREP="$ac_cv_path_GREP"
3764 +{ echo "$as_me:$LINENO: checking for egrep" >&5
3765 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3766 +if test "${ac_cv_path_EGREP+set}" = set; then
3767 + echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 - rm -f conftestdata
3770 -if ln -s X conftestdata 2>/dev/null
3771 -then
3772 - rm -f conftestdata
3773 - ac_cv_prog_LN_S="ln -s"
3774 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3775 + then ac_cv_path_EGREP="$GREP -E"
3776 + else
3777 + # Extract the first word of "egrep" to use in msg output
3778 +if test -z "$EGREP"; then
3779 +set dummy egrep; ac_prog_name=$2
3780 +if test "${ac_cv_path_EGREP+set}" = set; then
3781 + echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 - ac_cv_prog_LN_S=ln
3784 + ac_path_EGREP_found=false
3785 +# Loop through the user's path and test for each of PROGNAME-LIST
3786 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789 + IFS=$as_save_IFS
3790 + test -z "$as_dir" && as_dir=.
3791 + for ac_prog in egrep; do
3792 + for ac_exec_ext in '' $ac_executable_extensions; do
3793 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3794 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3795 + # Check for GNU ac_path_EGREP and select it if it is found.
3796 + # Check for GNU $ac_path_EGREP
3797 +case `"$ac_path_EGREP" --version 2>&1` in
3798 +*GNU*)
3799 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3801 + ac_count=0
3802 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3803 + while :
3804 + do
3805 + cat "conftest.in" "conftest.in" >"conftest.tmp"
3806 + mv "conftest.tmp" "conftest.in"
3807 + cp "conftest.in" "conftest.nl"
3808 + echo 'EGREP' >> "conftest.nl"
3809 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3810 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3811 + ac_count=`expr $ac_count + 1`
3812 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3813 + # Best one so far, save it but keep looking for a better one
3814 + ac_cv_path_EGREP="$ac_path_EGREP"
3815 + ac_path_EGREP_max=$ac_count
3816 + fi
3817 + # 10*(2^10) chars as input seems more than enough
3818 + test $ac_count -gt 10 && break
3819 + done
3820 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3821 +esac
3824 + $ac_path_EGREP_found && break 3
3825 + done
3826 +done
3828 +done
3829 +IFS=$as_save_IFS
3834 +EGREP="$ac_cv_path_EGREP"
3835 +if test -z "$EGREP"; then
3836 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3837 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3838 + { (exit 1); exit 1; }; }
3840 -LN_S="$ac_cv_prog_LN_S"
3841 -if test "$ac_cv_prog_LN_S" = "ln -s"; then
3842 - echo "$ac_t""yes" 1>&6
3844 else
3845 - echo "$ac_t""no" 1>&6
3846 + ac_cv_path_EGREP=$EGREP
3850 + fi
3852 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3853 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3854 + EGREP="$ac_cv_path_EGREP"
3856 -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3857 -echo "configure:1047: checking for ANSI C header files" >&5
3858 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3859 - echo $ac_n "(cached) $ac_c" 1>&6
3861 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3862 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3863 +if test "${ac_cv_header_stdc+set}" = set; then
3864 + echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866 - cat > conftest.$ac_ext <<EOF
3867 -#line 1052 "configure"
3868 -#include "confdefs.h"
3869 + cat >conftest.$ac_ext <<_ACEOF
3870 +/* confdefs.h. */
3871 +_ACEOF
3872 +cat confdefs.h >>conftest.$ac_ext
3873 +cat >>conftest.$ac_ext <<_ACEOF
3874 +/* end confdefs.h. */
3875 #include <stdlib.h>
3876 #include <stdarg.h>
3877 #include <string.h>
3878 #include <float.h>
3879 -EOF
3880 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3881 -{ (eval echo configure:1060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3882 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3883 -if test -z "$ac_err"; then
3884 - rm -rf conftest*
3886 +int
3887 +main ()
3891 + return 0;
3893 +_ACEOF
3894 +rm -f conftest.$ac_objext
3895 +if { (ac_try="$ac_compile"
3896 +case "(($ac_try" in
3897 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 + *) ac_try_echo=$ac_try;;
3899 +esac
3900 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 + (eval "$ac_compile") 2>conftest.er1
3902 + ac_status=$?
3903 + grep -v '^ *+' conftest.er1 >conftest.err
3904 + rm -f conftest.er1
3905 + cat conftest.err >&5
3906 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 + (exit $ac_status); } && {
3908 + test -z "$ac_c_werror_flag" ||
3909 + test ! -s conftest.err
3910 + } && test -s conftest.$ac_objext; then
3911 ac_cv_header_stdc=yes
3912 else
3913 - echo "$ac_err" >&5
3914 - echo "configure: failed program was:" >&5
3915 - cat conftest.$ac_ext >&5
3916 - rm -rf conftest*
3917 - ac_cv_header_stdc=no
3918 + echo "$as_me: failed program was:" >&5
3919 +sed 's/^/| /' conftest.$ac_ext >&5
3921 + ac_cv_header_stdc=no
3923 -rm -f conftest*
3925 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 if test $ac_cv_header_stdc = yes; then
3928 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3929 -cat > conftest.$ac_ext <<EOF
3930 -#line 1077 "configure"
3931 -#include "confdefs.h"
3932 + cat >conftest.$ac_ext <<_ACEOF
3933 +/* confdefs.h. */
3934 +_ACEOF
3935 +cat confdefs.h >>conftest.$ac_ext
3936 +cat >>conftest.$ac_ext <<_ACEOF
3937 +/* end confdefs.h. */
3938 #include <string.h>
3939 -EOF
3941 +_ACEOF
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943 - egrep "memchr" >/dev/null 2>&1; then
3944 + $EGREP "memchr" >/dev/null 2>&1; then
3946 else
3947 - rm -rf conftest*
3948 ac_cv_header_stdc=no
3950 rm -f conftest*
3951 @@ -1090,16 +3401,19 @@ fi
3953 if test $ac_cv_header_stdc = yes; then
3954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3955 -cat > conftest.$ac_ext <<EOF
3956 -#line 1095 "configure"
3957 -#include "confdefs.h"
3958 + cat >conftest.$ac_ext <<_ACEOF
3959 +/* confdefs.h. */
3960 +_ACEOF
3961 +cat confdefs.h >>conftest.$ac_ext
3962 +cat >>conftest.$ac_ext <<_ACEOF
3963 +/* end confdefs.h. */
3964 #include <stdlib.h>
3965 -EOF
3967 +_ACEOF
3968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3969 - egrep "free" >/dev/null 2>&1; then
3970 + $EGREP "free" >/dev/null 2>&1; then
3972 else
3973 - rm -rf conftest*
3974 ac_cv_header_stdc=no
3976 rm -f conftest*
3977 @@ -1108,218 +3422,658 @@ fi
3979 if test $ac_cv_header_stdc = yes; then
3980 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3981 -if test "$cross_compiling" = yes; then
3982 + if test "$cross_compiling" = yes; then
3984 else
3985 - cat > conftest.$ac_ext <<EOF
3986 -#line 1116 "configure"
3987 -#include "confdefs.h"
3988 + cat >conftest.$ac_ext <<_ACEOF
3989 +/* confdefs.h. */
3990 +_ACEOF
3991 +cat confdefs.h >>conftest.$ac_ext
3992 +cat >>conftest.$ac_ext <<_ACEOF
3993 +/* end confdefs.h. */
3994 #include <ctype.h>
3995 -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3996 -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3997 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3998 -int main () { int i; for (i = 0; i < 256; i++)
3999 -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4000 -exit (0); }
4001 +#include <stdlib.h>
4002 +#if ((' ' & 0x0FF) == 0x020)
4003 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4004 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4005 +#else
4006 +# define ISLOWER(c) \
4007 + (('a' <= (c) && (c) <= 'i') \
4008 + || ('j' <= (c) && (c) <= 'r') \
4009 + || ('s' <= (c) && (c) <= 'z'))
4010 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4011 +#endif
4013 -EOF
4014 -if { (eval echo configure:1127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4015 -then
4016 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4017 +int
4018 +main ()
4020 + int i;
4021 + for (i = 0; i < 256; i++)
4022 + if (XOR (islower (i), ISLOWER (i))
4023 + || toupper (i) != TOUPPER (i))
4024 + return 2;
4025 + return 0;
4027 +_ACEOF
4028 +rm -f conftest$ac_exeext
4029 +if { (ac_try="$ac_link"
4030 +case "(($ac_try" in
4031 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 + *) ac_try_echo=$ac_try;;
4033 +esac
4034 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 + (eval "$ac_link") 2>&5
4036 + ac_status=$?
4037 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4039 + { (case "(($ac_try" in
4040 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 + *) ac_try_echo=$ac_try;;
4042 +esac
4043 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 + (eval "$ac_try") 2>&5
4045 + ac_status=$?
4046 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 + (exit $ac_status); }; }; then
4049 else
4050 - echo "configure: failed program was:" >&5
4051 - cat conftest.$ac_ext >&5
4052 - rm -fr conftest*
4053 - ac_cv_header_stdc=no
4054 + echo "$as_me: program exited with status $ac_status" >&5
4055 +echo "$as_me: failed program was:" >&5
4056 +sed 's/^/| /' conftest.$ac_ext >&5
4058 +( exit $ac_status )
4059 +ac_cv_header_stdc=no
4061 -rm -fr conftest*
4062 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4069 -echo "$ac_t""$ac_cv_header_stdc" 1>&6
4070 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4071 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4072 if test $ac_cv_header_stdc = yes; then
4073 - cat >> confdefs.h <<\EOF
4075 +cat >>confdefs.h <<\_ACEOF
4076 #define STDC_HEADERS 1
4077 -EOF
4078 +_ACEOF
4082 -for ac_hdr in unistd.h stdint.h fcntl.h
4083 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4093 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4094 + inttypes.h stdint.h unistd.h
4096 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4097 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4098 -echo "configure:1154: checking for $ac_hdr" >&5
4099 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4100 - echo $ac_n "(cached) $ac_c" 1>&6
4101 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4102 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4103 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4104 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4105 + echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 - cat > conftest.$ac_ext <<EOF
4108 -#line 1159 "configure"
4109 -#include "confdefs.h"
4110 -#include <$ac_hdr>
4111 -EOF
4112 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4113 -{ (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4114 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4115 -if test -z "$ac_err"; then
4116 - rm -rf conftest*
4117 - eval "ac_cv_header_$ac_safe=yes"
4118 + cat >conftest.$ac_ext <<_ACEOF
4119 +/* confdefs.h. */
4120 +_ACEOF
4121 +cat confdefs.h >>conftest.$ac_ext
4122 +cat >>conftest.$ac_ext <<_ACEOF
4123 +/* end confdefs.h. */
4124 +$ac_includes_default
4126 +#include <$ac_header>
4127 +_ACEOF
4128 +rm -f conftest.$ac_objext
4129 +if { (ac_try="$ac_compile"
4130 +case "(($ac_try" in
4131 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 + *) ac_try_echo=$ac_try;;
4133 +esac
4134 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 + (eval "$ac_compile") 2>conftest.er1
4136 + ac_status=$?
4137 + grep -v '^ *+' conftest.er1 >conftest.err
4138 + rm -f conftest.er1
4139 + cat conftest.err >&5
4140 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 + (exit $ac_status); } && {
4142 + test -z "$ac_c_werror_flag" ||
4143 + test ! -s conftest.err
4144 + } && test -s conftest.$ac_objext; then
4145 + eval "$as_ac_Header=yes"
4146 else
4147 - echo "$ac_err" >&5
4148 - echo "configure: failed program was:" >&5
4149 - cat conftest.$ac_ext >&5
4150 - rm -rf conftest*
4151 - eval "ac_cv_header_$ac_safe=no"
4152 + echo "$as_me: failed program was:" >&5
4153 +sed 's/^/| /' conftest.$ac_ext >&5
4155 + eval "$as_ac_Header=no"
4157 -rm -f conftest*
4159 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4162 - echo "$ac_t""yes" 1>&6
4163 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4164 - cat >> confdefs.h <<EOF
4165 -#define $ac_tr_hdr 1
4166 -EOF
4168 +ac_res=`eval echo '${'$as_ac_Header'}'`
4169 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4170 +echo "${ECHO_T}$ac_res" >&6; }
4171 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
4172 + cat >>confdefs.h <<_ACEOF
4173 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4174 +_ACEOF
4178 +done
4184 +for ac_header in unistd.h stdint.h fcntl.h
4186 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4187 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4188 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
4189 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4190 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4191 + echo $ECHO_N "(cached) $ECHO_C" >&6
4193 +ac_res=`eval echo '${'$as_ac_Header'}'`
4194 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4195 +echo "${ECHO_T}$ac_res" >&6; }
4196 else
4197 - echo "$ac_t""no" 1>&6
4198 + # Is the header compilable?
4199 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4200 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4201 +cat >conftest.$ac_ext <<_ACEOF
4202 +/* confdefs.h. */
4203 +_ACEOF
4204 +cat confdefs.h >>conftest.$ac_ext
4205 +cat >>conftest.$ac_ext <<_ACEOF
4206 +/* end confdefs.h. */
4207 +$ac_includes_default
4208 +#include <$ac_header>
4209 +_ACEOF
4210 +rm -f conftest.$ac_objext
4211 +if { (ac_try="$ac_compile"
4212 +case "(($ac_try" in
4213 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 + *) ac_try_echo=$ac_try;;
4215 +esac
4216 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 + (eval "$ac_compile") 2>conftest.er1
4218 + ac_status=$?
4219 + grep -v '^ *+' conftest.er1 >conftest.err
4220 + rm -f conftest.er1
4221 + cat conftest.err >&5
4222 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 + (exit $ac_status); } && {
4224 + test -z "$ac_c_werror_flag" ||
4225 + test ! -s conftest.err
4226 + } && test -s conftest.$ac_objext; then
4227 + ac_header_compiler=yes
4228 +else
4229 + echo "$as_me: failed program was:" >&5
4230 +sed 's/^/| /' conftest.$ac_ext >&5
4232 + ac_header_compiler=no
4235 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4237 +echo "${ECHO_T}$ac_header_compiler" >&6; }
4239 +# Is the header present?
4240 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4241 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4242 +cat >conftest.$ac_ext <<_ACEOF
4243 +/* confdefs.h. */
4244 +_ACEOF
4245 +cat confdefs.h >>conftest.$ac_ext
4246 +cat >>conftest.$ac_ext <<_ACEOF
4247 +/* end confdefs.h. */
4248 +#include <$ac_header>
4249 +_ACEOF
4250 +if { (ac_try="$ac_cpp conftest.$ac_ext"
4251 +case "(($ac_try" in
4252 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 + *) ac_try_echo=$ac_try;;
4254 +esac
4255 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4257 + ac_status=$?
4258 + grep -v '^ *+' conftest.er1 >conftest.err
4259 + rm -f conftest.er1
4260 + cat conftest.err >&5
4261 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 + (exit $ac_status); } >/dev/null && {
4263 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4264 + test ! -s conftest.err
4265 + }; then
4266 + ac_header_preproc=yes
4267 +else
4268 + echo "$as_me: failed program was:" >&5
4269 +sed 's/^/| /' conftest.$ac_ext >&5
4271 + ac_header_preproc=no
4274 +rm -f conftest.err conftest.$ac_ext
4275 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4276 +echo "${ECHO_T}$ac_header_preproc" >&6; }
4278 +# So? What about this header?
4279 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4280 + yes:no: )
4281 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4282 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4283 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4284 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4285 + ac_header_preproc=yes
4286 + ;;
4287 + no:yes:* )
4288 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4289 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4290 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4291 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4292 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4293 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4294 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4295 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4296 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4297 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4298 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4299 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4301 + ;;
4302 +esac
4303 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4304 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4305 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4306 + echo $ECHO_N "(cached) $ECHO_C" >&6
4307 +else
4308 + eval "$as_ac_Header=\$ac_header_preproc"
4310 +ac_res=`eval echo '${'$as_ac_Header'}'`
4311 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4312 +echo "${ECHO_T}$ac_res" >&6; }
4315 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316 + cat >>confdefs.h <<_ACEOF
4317 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318 +_ACEOF
4322 done
4324 -for ac_hdr in elf.h sys/elf.h link.h sys/link.h
4329 +for ac_header in elf.h sys/elf.h link.h sys/link.h
4331 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4332 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4333 -echo "configure:1194: checking for $ac_hdr" >&5
4334 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4335 - echo $ac_n "(cached) $ac_c" 1>&6
4336 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4337 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4338 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
4339 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4340 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4341 + echo $ECHO_N "(cached) $ECHO_C" >&6
4343 +ac_res=`eval echo '${'$as_ac_Header'}'`
4344 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4345 +echo "${ECHO_T}$ac_res" >&6; }
4346 else
4347 - cat > conftest.$ac_ext <<EOF
4348 -#line 1199 "configure"
4349 -#include "confdefs.h"
4350 -#include <$ac_hdr>
4351 -EOF
4352 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4353 -{ (eval echo configure:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4354 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4355 -if test -z "$ac_err"; then
4356 - rm -rf conftest*
4357 - eval "ac_cv_header_$ac_safe=yes"
4358 + # Is the header compilable?
4359 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4360 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4361 +cat >conftest.$ac_ext <<_ACEOF
4362 +/* confdefs.h. */
4363 +_ACEOF
4364 +cat confdefs.h >>conftest.$ac_ext
4365 +cat >>conftest.$ac_ext <<_ACEOF
4366 +/* end confdefs.h. */
4367 +$ac_includes_default
4368 +#include <$ac_header>
4369 +_ACEOF
4370 +rm -f conftest.$ac_objext
4371 +if { (ac_try="$ac_compile"
4372 +case "(($ac_try" in
4373 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 + *) ac_try_echo=$ac_try;;
4375 +esac
4376 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 + (eval "$ac_compile") 2>conftest.er1
4378 + ac_status=$?
4379 + grep -v '^ *+' conftest.er1 >conftest.err
4380 + rm -f conftest.er1
4381 + cat conftest.err >&5
4382 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 + (exit $ac_status); } && {
4384 + test -z "$ac_c_werror_flag" ||
4385 + test ! -s conftest.err
4386 + } && test -s conftest.$ac_objext; then
4387 + ac_header_compiler=yes
4388 else
4389 - echo "$ac_err" >&5
4390 - echo "configure: failed program was:" >&5
4391 - cat conftest.$ac_ext >&5
4392 - rm -rf conftest*
4393 - eval "ac_cv_header_$ac_safe=no"
4394 + echo "$as_me: failed program was:" >&5
4395 +sed 's/^/| /' conftest.$ac_ext >&5
4397 + ac_header_compiler=no
4399 -rm -f conftest*
4401 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4403 +echo "${ECHO_T}$ac_header_compiler" >&6; }
4405 +# Is the header present?
4406 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4407 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4408 +cat >conftest.$ac_ext <<_ACEOF
4409 +/* confdefs.h. */
4410 +_ACEOF
4411 +cat confdefs.h >>conftest.$ac_ext
4412 +cat >>conftest.$ac_ext <<_ACEOF
4413 +/* end confdefs.h. */
4414 +#include <$ac_header>
4415 +_ACEOF
4416 +if { (ac_try="$ac_cpp conftest.$ac_ext"
4417 +case "(($ac_try" in
4418 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 + *) ac_try_echo=$ac_try;;
4420 +esac
4421 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4423 + ac_status=$?
4424 + grep -v '^ *+' conftest.er1 >conftest.err
4425 + rm -f conftest.er1
4426 + cat conftest.err >&5
4427 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 + (exit $ac_status); } >/dev/null && {
4429 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4430 + test ! -s conftest.err
4431 + }; then
4432 + ac_header_preproc=yes
4433 +else
4434 + echo "$as_me: failed program was:" >&5
4435 +sed 's/^/| /' conftest.$ac_ext >&5
4437 + ac_header_preproc=no
4439 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4440 - echo "$ac_t""yes" 1>&6
4441 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4442 - cat >> confdefs.h <<EOF
4443 -#define $ac_tr_hdr 1
4444 -EOF
4447 +rm -f conftest.err conftest.$ac_ext
4448 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4449 +echo "${ECHO_T}$ac_header_preproc" >&6; }
4451 +# So? What about this header?
4452 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4453 + yes:no: )
4454 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4455 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4456 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4457 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4458 + ac_header_preproc=yes
4459 + ;;
4460 + no:yes:* )
4461 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4462 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4463 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4464 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4465 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4466 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4467 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4468 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4469 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4470 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4471 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4472 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4474 + ;;
4475 +esac
4476 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4477 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4478 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4479 + echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 - echo "$ac_t""no" 1>&6
4482 + eval "$as_ac_Header=\$ac_header_preproc"
4484 +ac_res=`eval echo '${'$as_ac_Header'}'`
4485 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4486 +echo "${ECHO_T}$ac_res" >&6; }
4489 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
4490 + cat >>confdefs.h <<_ACEOF
4491 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4492 +_ACEOF
4496 done
4498 -echo $ac_n "checking if ${CC} can compile elf.h""... $ac_c" 1>&6
4499 -echo "configure:1231: checking if ${CC} can compile elf.h" >&5
4500 -if eval "test \"`echo '$''{'libelf_cv_elf_h_works'+set}'`\" = set"; then
4501 - echo $ac_n "(cached) $ac_c" 1>&6
4502 +{ echo "$as_me:$LINENO: checking if ${CC} can compile elf.h" >&5
4503 +echo $ECHO_N "checking if ${CC} can compile elf.h... $ECHO_C" >&6; }
4504 +if test "${libelf_cv_elf_h_works+set}" = set; then
4505 + echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4508 - cat > conftest.$ac_ext <<EOF
4509 -#line 1237 "configure"
4510 -#include "confdefs.h"
4512 + cat >conftest.$ac_ext <<_ACEOF
4513 +/* confdefs.h. */
4514 +_ACEOF
4515 +cat confdefs.h >>conftest.$ac_ext
4516 +cat >>conftest.$ac_ext <<_ACEOF
4517 +/* end confdefs.h. */
4518 #if HAVE_ELF_H
4519 #include <elf.h>
4520 #elif HAVE_SYS_ELF_H
4521 #include <sys/elf.h>
4522 #endif
4523 -int main() {
4524 +int
4525 +main ()
4527 Elf32_Ehdr dummy
4528 -; return 0; }
4529 -EOF
4530 -if { (eval echo configure:1248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4531 - rm -rf conftest*
4533 + return 0;
4535 +_ACEOF
4536 +rm -f conftest.$ac_objext
4537 +if { (ac_try="$ac_compile"
4538 +case "(($ac_try" in
4539 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 + *) ac_try_echo=$ac_try;;
4541 +esac
4542 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 + (eval "$ac_compile") 2>conftest.er1
4544 + ac_status=$?
4545 + grep -v '^ *+' conftest.er1 >conftest.err
4546 + rm -f conftest.er1
4547 + cat conftest.err >&5
4548 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 + (exit $ac_status); } && {
4550 + test -z "$ac_c_werror_flag" ||
4551 + test ! -s conftest.err
4552 + } && test -s conftest.$ac_objext; then
4553 libelf_cv_elf_h_works=yes
4554 else
4555 - echo "configure: failed program was:" >&5
4556 - cat conftest.$ac_ext >&5
4557 - rm -rf conftest*
4558 - libelf_cv_elf_h_works=no
4560 -rm -f conftest*
4561 + echo "$as_me: failed program was:" >&5
4562 +sed 's/^/| /' conftest.$ac_ext >&5
4564 + libelf_cv_elf_h_works=no
4567 -echo "$ac_t""$libelf_cv_elf_h_works" 1>&6
4568 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 +{ echo "$as_me:$LINENO: result: $libelf_cv_elf_h_works" >&5
4572 +echo "${ECHO_T}$libelf_cv_elf_h_works" >&6; }
4573 if test "$libelf_cv_elf_h_works" = no; then
4574 ac_cv_header_elf_h=no
4575 ac_cv_header_sys_elf_h=no
4577 if test "$ac_cv_header_elf_h" = yes; then
4578 - cat >> confdefs.h <<\EOF
4579 + cat >>confdefs.h <<\_ACEOF
4580 #define __LIBELF_HEADER_ELF_H <elf.h>
4581 -EOF
4582 +_ACEOF
4584 elif test "$ac_cv_header_sys_elf_h" = yes; then
4585 - cat >> confdefs.h <<\EOF
4586 + cat >>confdefs.h <<\_ACEOF
4587 #define __LIBELF_HEADER_ELF_H <sys/elf.h>
4588 -EOF
4589 +_ACEOF
4593 -for ac_hdr in ar.h libelf.h nlist.h gelf.h
4598 +for ac_header in ar.h libelf.h nlist.h gelf.h
4600 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4601 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4602 -echo "configure:1282: checking for $ac_hdr" >&5
4603 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4604 - echo $ac_n "(cached) $ac_c" 1>&6
4605 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4606 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4607 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
4608 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4609 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4610 + echo $ECHO_N "(cached) $ECHO_C" >&6
4612 +ac_res=`eval echo '${'$as_ac_Header'}'`
4613 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4614 +echo "${ECHO_T}$ac_res" >&6; }
4615 else
4616 - cat > conftest.$ac_ext <<EOF
4617 -#line 1287 "configure"
4618 -#include "confdefs.h"
4619 -#include <$ac_hdr>
4620 -EOF
4621 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4622 -{ (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4623 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4624 -if test -z "$ac_err"; then
4625 - rm -rf conftest*
4626 - eval "ac_cv_header_$ac_safe=yes"
4627 + # Is the header compilable?
4628 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4629 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4630 +cat >conftest.$ac_ext <<_ACEOF
4631 +/* confdefs.h. */
4632 +_ACEOF
4633 +cat confdefs.h >>conftest.$ac_ext
4634 +cat >>conftest.$ac_ext <<_ACEOF
4635 +/* end confdefs.h. */
4636 +$ac_includes_default
4637 +#include <$ac_header>
4638 +_ACEOF
4639 +rm -f conftest.$ac_objext
4640 +if { (ac_try="$ac_compile"
4641 +case "(($ac_try" in
4642 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 + *) ac_try_echo=$ac_try;;
4644 +esac
4645 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 + (eval "$ac_compile") 2>conftest.er1
4647 + ac_status=$?
4648 + grep -v '^ *+' conftest.er1 >conftest.err
4649 + rm -f conftest.er1
4650 + cat conftest.err >&5
4651 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 + (exit $ac_status); } && {
4653 + test -z "$ac_c_werror_flag" ||
4654 + test ! -s conftest.err
4655 + } && test -s conftest.$ac_objext; then
4656 + ac_header_compiler=yes
4657 else
4658 - echo "$ac_err" >&5
4659 - echo "configure: failed program was:" >&5
4660 - cat conftest.$ac_ext >&5
4661 - rm -rf conftest*
4662 - eval "ac_cv_header_$ac_safe=no"
4663 + echo "$as_me: failed program was:" >&5
4664 +sed 's/^/| /' conftest.$ac_ext >&5
4666 + ac_header_compiler=no
4668 -rm -f conftest*
4670 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4672 +echo "${ECHO_T}$ac_header_compiler" >&6; }
4674 +# Is the header present?
4675 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4676 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4677 +cat >conftest.$ac_ext <<_ACEOF
4678 +/* confdefs.h. */
4679 +_ACEOF
4680 +cat confdefs.h >>conftest.$ac_ext
4681 +cat >>conftest.$ac_ext <<_ACEOF
4682 +/* end confdefs.h. */
4683 +#include <$ac_header>
4684 +_ACEOF
4685 +if { (ac_try="$ac_cpp conftest.$ac_ext"
4686 +case "(($ac_try" in
4687 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 + *) ac_try_echo=$ac_try;;
4689 +esac
4690 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4692 + ac_status=$?
4693 + grep -v '^ *+' conftest.er1 >conftest.err
4694 + rm -f conftest.er1
4695 + cat conftest.err >&5
4696 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 + (exit $ac_status); } >/dev/null && {
4698 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4699 + test ! -s conftest.err
4700 + }; then
4701 + ac_header_preproc=yes
4702 +else
4703 + echo "$as_me: failed program was:" >&5
4704 +sed 's/^/| /' conftest.$ac_ext >&5
4706 + ac_header_preproc=no
4708 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4709 - echo "$ac_t""yes" 1>&6
4710 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4711 - cat >> confdefs.h <<EOF
4712 -#define $ac_tr_hdr 1
4713 -EOF
4716 +rm -f conftest.err conftest.$ac_ext
4717 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4718 +echo "${ECHO_T}$ac_header_preproc" >&6; }
4720 +# So? What about this header?
4721 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4722 + yes:no: )
4723 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4724 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4725 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4726 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4727 + ac_header_preproc=yes
4728 + ;;
4729 + no:yes:* )
4730 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4731 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4732 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4733 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4734 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4735 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4736 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4737 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4738 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4739 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4740 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4741 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4743 + ;;
4744 +esac
4745 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4746 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4747 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4748 + echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750 - echo "$ac_t""no" 1>&6
4751 + eval "$as_ac_Header=\$ac_header_preproc"
4753 +ac_res=`eval echo '${'$as_ac_Header'}'`
4754 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4755 +echo "${ECHO_T}$ac_res" >&6; }
4758 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
4759 + cat >>confdefs.h <<_ACEOF
4760 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4761 +_ACEOF
4765 done
4767 -echo $ac_n "checking whether to install <libelf.h>, <nlist.h> and <gelf.h>""... $ac_c" 1>&6
4768 -echo "configure:1319: checking whether to install <libelf.h>, <nlist.h> and <gelf.h>" >&5
4769 -# Check whether --enable-compat or --disable-compat was given.
4770 +{ echo "$as_me:$LINENO: checking whether to install <libelf.h>, <nlist.h> and <gelf.h>" >&5
4771 +echo $ECHO_N "checking whether to install <libelf.h>, <nlist.h> and <gelf.h>... $ECHO_C" >&6; }
4772 +# Check whether --enable-compat was given.
4773 if test "${enable_compat+set}" = set; then
4774 - enableval="$enable_compat"
4775 - DO_COMPAT="$enableval"
4776 + enableval=$enable_compat; DO_COMPAT="$enableval"
4777 else
4778 if test "$ac_cv_header_libelf_h$ac_cv_header_nlist_h$ac_cv_header_gelf_h" = yesyesyes
4779 then DO_COMPAT=no
4780 @@ -1327,345 +4081,2267 @@ else
4784 -echo "$ac_t""$DO_COMPAT" 1>&6
4785 +{ echo "$as_me:$LINENO: result: $DO_COMPAT" >&5
4786 +echo "${ECHO_T}$DO_COMPAT" >&6; }
4789 -echo $ac_n "checking for working const""... $ac_c" 1>&6
4790 -echo "configure:1335: checking for working const" >&5
4791 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4792 - echo $ac_n "(cached) $ac_c" 1>&6
4793 +{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4794 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4795 +if test "${ac_cv_c_const+set}" = set; then
4796 + echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798 - cat > conftest.$ac_ext <<EOF
4799 -#line 1340 "configure"
4800 -#include "confdefs.h"
4801 + cat >conftest.$ac_ext <<_ACEOF
4802 +/* confdefs.h. */
4803 +_ACEOF
4804 +cat confdefs.h >>conftest.$ac_ext
4805 +cat >>conftest.$ac_ext <<_ACEOF
4806 +/* end confdefs.h. */
4808 -int main() {
4809 +int
4810 +main ()
4812 +/* FIXME: Include the comments suggested by Paul. */
4813 +#ifndef __cplusplus
4814 + /* Ultrix mips cc rejects this. */
4815 + typedef int charset[2];
4816 + const charset cs;
4817 + /* SunOS 4.1.1 cc rejects this. */
4818 + char const *const *pcpcc;
4819 + char **ppc;
4820 + /* NEC SVR4.0.2 mips cc rejects this. */
4821 + struct point {int x, y;};
4822 + static struct point const zero = {0,0};
4823 + /* AIX XL C 1.02.0.0 rejects this.
4824 + It does not let you subtract one const X* pointer from another in
4825 + an arm of an if-expression whose if-part is not a constant
4826 + expression */
4827 + const char *g = "string";
4828 + pcpcc = &g + (g ? g-g : 0);
4829 + /* HPUX 7.0 cc rejects these. */
4830 + ++pcpcc;
4831 + ppc = (char**) pcpcc;
4832 + pcpcc = (char const *const *) ppc;
4833 + { /* SCO 3.2v4 cc rejects this. */
4834 + char *t;
4835 + char const *s = 0 ? (char *) 0 : (char const *) 0;
4837 -/* Ultrix mips cc rejects this. */
4838 -typedef int charset[2]; const charset x;
4839 -/* SunOS 4.1.1 cc rejects this. */
4840 -char const *const *ccp;
4841 -char **p;
4842 -/* NEC SVR4.0.2 mips cc rejects this. */
4843 -struct point {int x, y;};
4844 -static struct point const zero = {0,0};
4845 -/* AIX XL C 1.02.0.0 rejects this.
4846 - It does not let you subtract one const X* pointer from another in an arm
4847 - of an if-expression whose if-part is not a constant expression */
4848 -const char *g = "string";
4849 -ccp = &g + (g ? g-g : 0);
4850 -/* HPUX 7.0 cc rejects these. */
4851 -++ccp;
4852 -p = (char**) ccp;
4853 -ccp = (char const *const *) p;
4854 -{ /* SCO 3.2v4 cc rejects this. */
4855 - char *t;
4856 - char const *s = 0 ? (char *) 0 : (char const *) 0;
4857 + *t++ = 0;
4858 + if (s) return 0;
4860 + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4861 + int x[] = {25, 17};
4862 + const int *foo = &x[0];
4863 + ++foo;
4865 + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4866 + typedef const int *iptr;
4867 + iptr p = 0;
4868 + ++p;
4870 + { /* AIX XL C 1.02.0.0 rejects this saying
4871 + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4872 + struct s { int j; const int *ap[3]; };
4873 + struct s *b; b->j = 5;
4875 + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4876 + const int foo = 10;
4877 + if (!foo) return 0;
4879 + return !cs[0] && !zero.x;
4880 +#endif
4882 - *t++ = 0;
4884 -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4885 - int x[] = {25, 17};
4886 - const int *foo = &x[0];
4887 - ++foo;
4889 -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4890 - typedef const int *iptr;
4891 - iptr p = 0;
4892 - ++p;
4894 -{ /* AIX XL C 1.02.0.0 rejects this saying
4895 - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4896 - struct s { int j; const int *ap[3]; };
4897 - struct s *b; b->j = 5;
4899 -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4900 - const int foo = 10;
4902 + return 0;
4905 -; return 0; }
4906 -EOF
4907 -if { (eval echo configure:1389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4908 - rm -rf conftest*
4909 +_ACEOF
4910 +rm -f conftest.$ac_objext
4911 +if { (ac_try="$ac_compile"
4912 +case "(($ac_try" in
4913 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 + *) ac_try_echo=$ac_try;;
4915 +esac
4916 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 + (eval "$ac_compile") 2>conftest.er1
4918 + ac_status=$?
4919 + grep -v '^ *+' conftest.er1 >conftest.err
4920 + rm -f conftest.er1
4921 + cat conftest.err >&5
4922 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 + (exit $ac_status); } && {
4924 + test -z "$ac_c_werror_flag" ||
4925 + test ! -s conftest.err
4926 + } && test -s conftest.$ac_objext; then
4927 ac_cv_c_const=yes
4928 else
4929 - echo "configure: failed program was:" >&5
4930 - cat conftest.$ac_ext >&5
4931 - rm -rf conftest*
4932 - ac_cv_c_const=no
4934 -rm -f conftest*
4935 + echo "$as_me: failed program was:" >&5
4936 +sed 's/^/| /' conftest.$ac_ext >&5
4938 + ac_cv_c_const=no
4941 -echo "$ac_t""$ac_cv_c_const" 1>&6
4942 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 +{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4945 +echo "${ECHO_T}$ac_cv_c_const" >&6; }
4946 if test $ac_cv_c_const = no; then
4947 - cat >> confdefs.h <<\EOF
4948 -#define const
4949 -EOF
4951 +cat >>confdefs.h <<\_ACEOF
4952 +#define const
4953 +_ACEOF
4957 -echo $ac_n "checking for off_t""... $ac_c" 1>&6
4958 -echo "configure:1410: checking for off_t" >&5
4959 -if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4960 - echo $ac_n "(cached) $ac_c" 1>&6
4961 +{ echo "$as_me:$LINENO: checking for off_t" >&5
4962 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4963 +if test "${ac_cv_type_off_t+set}" = set; then
4964 + echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 - cat > conftest.$ac_ext <<EOF
4967 -#line 1415 "configure"
4968 -#include "confdefs.h"
4969 -#include <sys/types.h>
4970 -#if STDC_HEADERS
4971 -#include <stdlib.h>
4972 -#include <stddef.h>
4973 -#endif
4974 -EOF
4975 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4976 - egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4977 - rm -rf conftest*
4978 + cat >conftest.$ac_ext <<_ACEOF
4979 +/* confdefs.h. */
4980 +_ACEOF
4981 +cat confdefs.h >>conftest.$ac_ext
4982 +cat >>conftest.$ac_ext <<_ACEOF
4983 +/* end confdefs.h. */
4984 +$ac_includes_default
4985 +typedef off_t ac__type_new_;
4986 +int
4987 +main ()
4989 +if ((ac__type_new_ *) 0)
4990 + return 0;
4991 +if (sizeof (ac__type_new_))
4992 + return 0;
4994 + return 0;
4996 +_ACEOF
4997 +rm -f conftest.$ac_objext
4998 +if { (ac_try="$ac_compile"
4999 +case "(($ac_try" in
5000 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001 + *) ac_try_echo=$ac_try;;
5002 +esac
5003 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004 + (eval "$ac_compile") 2>conftest.er1
5005 + ac_status=$?
5006 + grep -v '^ *+' conftest.er1 >conftest.err
5007 + rm -f conftest.er1
5008 + cat conftest.err >&5
5009 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 + (exit $ac_status); } && {
5011 + test -z "$ac_c_werror_flag" ||
5012 + test ! -s conftest.err
5013 + } && test -s conftest.$ac_objext; then
5014 ac_cv_type_off_t=yes
5015 else
5016 - rm -rf conftest*
5017 - ac_cv_type_off_t=no
5018 + echo "$as_me: failed program was:" >&5
5019 +sed 's/^/| /' conftest.$ac_ext >&5
5021 + ac_cv_type_off_t=no
5023 -rm -f conftest*
5025 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 -echo "$ac_t""$ac_cv_type_off_t" 1>&6
5028 -if test $ac_cv_type_off_t = no; then
5029 - cat >> confdefs.h <<\EOF
5030 -#define off_t long
5031 -EOF
5032 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5033 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5034 +if test $ac_cv_type_off_t = yes; then
5036 +else
5038 +cat >>confdefs.h <<_ACEOF
5039 +#define off_t long int
5040 +_ACEOF
5044 -echo $ac_n "checking for size_t""... $ac_c" 1>&6
5045 -echo "configure:1443: checking for size_t" >&5
5046 -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5047 - echo $ac_n "(cached) $ac_c" 1>&6
5048 +{ echo "$as_me:$LINENO: checking for size_t" >&5
5049 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5050 +if test "${ac_cv_type_size_t+set}" = set; then
5051 + echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053 - cat > conftest.$ac_ext <<EOF
5054 -#line 1448 "configure"
5055 -#include "confdefs.h"
5056 -#include <sys/types.h>
5057 -#if STDC_HEADERS
5058 -#include <stdlib.h>
5059 -#include <stddef.h>
5060 -#endif
5061 -EOF
5062 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5063 - egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5064 - rm -rf conftest*
5065 + cat >conftest.$ac_ext <<_ACEOF
5066 +/* confdefs.h. */
5067 +_ACEOF
5068 +cat confdefs.h >>conftest.$ac_ext
5069 +cat >>conftest.$ac_ext <<_ACEOF
5070 +/* end confdefs.h. */
5071 +$ac_includes_default
5072 +typedef size_t ac__type_new_;
5073 +int
5074 +main ()
5076 +if ((ac__type_new_ *) 0)
5077 + return 0;
5078 +if (sizeof (ac__type_new_))
5079 + return 0;
5081 + return 0;
5083 +_ACEOF
5084 +rm -f conftest.$ac_objext
5085 +if { (ac_try="$ac_compile"
5086 +case "(($ac_try" in
5087 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 + *) ac_try_echo=$ac_try;;
5089 +esac
5090 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 + (eval "$ac_compile") 2>conftest.er1
5092 + ac_status=$?
5093 + grep -v '^ *+' conftest.er1 >conftest.err
5094 + rm -f conftest.er1
5095 + cat conftest.err >&5
5096 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 + (exit $ac_status); } && {
5098 + test -z "$ac_c_werror_flag" ||
5099 + test ! -s conftest.err
5100 + } && test -s conftest.$ac_objext; then
5101 ac_cv_type_size_t=yes
5102 else
5103 - rm -rf conftest*
5104 - ac_cv_type_size_t=no
5105 + echo "$as_me: failed program was:" >&5
5106 +sed 's/^/| /' conftest.$ac_ext >&5
5108 + ac_cv_type_size_t=no
5110 -rm -f conftest*
5112 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 -echo "$ac_t""$ac_cv_type_size_t" 1>&6
5115 -if test $ac_cv_type_size_t = no; then
5116 - cat >> confdefs.h <<\EOF
5117 -#define size_t unsigned
5118 -EOF
5119 +{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5120 +echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5121 +if test $ac_cv_type_size_t = yes; then
5123 +else
5125 +cat >>confdefs.h <<_ACEOF
5126 +#define size_t unsigned int
5127 +_ACEOF
5132 -echo $ac_n "checking size of short""... $ac_c" 1>&6
5133 -echo "configure:1477: checking size of short" >&5
5134 -if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
5135 - echo $ac_n "(cached) $ac_c" 1>&6
5136 +{ echo "$as_me:$LINENO: checking for short" >&5
5137 +echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5138 +if test "${ac_cv_type_short+set}" = set; then
5139 + echo $ECHO_N "(cached) $ECHO_C" >&6
5140 +else
5141 + cat >conftest.$ac_ext <<_ACEOF
5142 +/* confdefs.h. */
5143 +_ACEOF
5144 +cat confdefs.h >>conftest.$ac_ext
5145 +cat >>conftest.$ac_ext <<_ACEOF
5146 +/* end confdefs.h. */
5147 +$ac_includes_default
5148 +typedef short ac__type_new_;
5149 +int
5150 +main ()
5152 +if ((ac__type_new_ *) 0)
5153 + return 0;
5154 +if (sizeof (ac__type_new_))
5155 + return 0;
5157 + return 0;
5159 +_ACEOF
5160 +rm -f conftest.$ac_objext
5161 +if { (ac_try="$ac_compile"
5162 +case "(($ac_try" in
5163 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 + *) ac_try_echo=$ac_try;;
5165 +esac
5166 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 + (eval "$ac_compile") 2>conftest.er1
5168 + ac_status=$?
5169 + grep -v '^ *+' conftest.er1 >conftest.err
5170 + rm -f conftest.er1
5171 + cat conftest.err >&5
5172 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 + (exit $ac_status); } && {
5174 + test -z "$ac_c_werror_flag" ||
5175 + test ! -s conftest.err
5176 + } && test -s conftest.$ac_objext; then
5177 + ac_cv_type_short=yes
5178 +else
5179 + echo "$as_me: failed program was:" >&5
5180 +sed 's/^/| /' conftest.$ac_ext >&5
5182 + ac_cv_type_short=no
5185 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5187 +{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5188 +echo "${ECHO_T}$ac_cv_type_short" >&6; }
5190 +# The cast to long int works around a bug in the HP C Compiler
5191 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5192 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5193 +# This bug is HP SR number 8606223364.
5194 +{ echo "$as_me:$LINENO: checking size of short" >&5
5195 +echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5196 +if test "${ac_cv_sizeof_short+set}" = set; then
5197 + echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 if test "$cross_compiling" = yes; then
5200 - ac_cv_sizeof_short=2
5201 + # Depending upon the size, compute the lo and hi bounds.
5202 +cat >conftest.$ac_ext <<_ACEOF
5203 +/* confdefs.h. */
5204 +_ACEOF
5205 +cat confdefs.h >>conftest.$ac_ext
5206 +cat >>conftest.$ac_ext <<_ACEOF
5207 +/* end confdefs.h. */
5208 +$ac_includes_default
5209 + typedef short ac__type_sizeof_;
5210 +int
5211 +main ()
5213 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5214 +test_array [0] = 0
5217 + return 0;
5219 +_ACEOF
5220 +rm -f conftest.$ac_objext
5221 +if { (ac_try="$ac_compile"
5222 +case "(($ac_try" in
5223 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 + *) ac_try_echo=$ac_try;;
5225 +esac
5226 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5227 + (eval "$ac_compile") 2>conftest.er1
5228 + ac_status=$?
5229 + grep -v '^ *+' conftest.er1 >conftest.err
5230 + rm -f conftest.er1
5231 + cat conftest.err >&5
5232 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 + (exit $ac_status); } && {
5234 + test -z "$ac_c_werror_flag" ||
5235 + test ! -s conftest.err
5236 + } && test -s conftest.$ac_objext; then
5237 + ac_lo=0 ac_mid=0
5238 + while :; do
5239 + cat >conftest.$ac_ext <<_ACEOF
5240 +/* confdefs.h. */
5241 +_ACEOF
5242 +cat confdefs.h >>conftest.$ac_ext
5243 +cat >>conftest.$ac_ext <<_ACEOF
5244 +/* end confdefs.h. */
5245 +$ac_includes_default
5246 + typedef short ac__type_sizeof_;
5247 +int
5248 +main ()
5250 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5251 +test_array [0] = 0
5254 + return 0;
5256 +_ACEOF
5257 +rm -f conftest.$ac_objext
5258 +if { (ac_try="$ac_compile"
5259 +case "(($ac_try" in
5260 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 + *) ac_try_echo=$ac_try;;
5262 +esac
5263 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 + (eval "$ac_compile") 2>conftest.er1
5265 + ac_status=$?
5266 + grep -v '^ *+' conftest.er1 >conftest.err
5267 + rm -f conftest.er1
5268 + cat conftest.err >&5
5269 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 + (exit $ac_status); } && {
5271 + test -z "$ac_c_werror_flag" ||
5272 + test ! -s conftest.err
5273 + } && test -s conftest.$ac_objext; then
5274 + ac_hi=$ac_mid; break
5275 else
5276 - cat > conftest.$ac_ext <<EOF
5277 -#line 1485 "configure"
5278 -#include "confdefs.h"
5279 -#include <stdio.h>
5280 -main()
5281 + echo "$as_me: failed program was:" >&5
5282 +sed 's/^/| /' conftest.$ac_ext >&5
5284 + ac_lo=`expr $ac_mid + 1`
5285 + if test $ac_lo -le $ac_mid; then
5286 + ac_lo= ac_hi=
5287 + break
5288 + fi
5289 + ac_mid=`expr 2 '*' $ac_mid + 1`
5292 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 + done
5294 +else
5295 + echo "$as_me: failed program was:" >&5
5296 +sed 's/^/| /' conftest.$ac_ext >&5
5298 + cat >conftest.$ac_ext <<_ACEOF
5299 +/* confdefs.h. */
5300 +_ACEOF
5301 +cat confdefs.h >>conftest.$ac_ext
5302 +cat >>conftest.$ac_ext <<_ACEOF
5303 +/* end confdefs.h. */
5304 +$ac_includes_default
5305 + typedef short ac__type_sizeof_;
5306 +int
5307 +main ()
5309 - FILE *f=fopen("conftestval", "w");
5310 - if (!f) exit(1);
5311 - fprintf(f, "%d\n", sizeof(short));
5312 - exit(0);
5313 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5314 +test_array [0] = 0
5317 + return 0;
5319 -EOF
5320 -if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5321 -then
5322 - ac_cv_sizeof_short=`cat conftestval`
5323 +_ACEOF
5324 +rm -f conftest.$ac_objext
5325 +if { (ac_try="$ac_compile"
5326 +case "(($ac_try" in
5327 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 + *) ac_try_echo=$ac_try;;
5329 +esac
5330 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 + (eval "$ac_compile") 2>conftest.er1
5332 + ac_status=$?
5333 + grep -v '^ *+' conftest.er1 >conftest.err
5334 + rm -f conftest.er1
5335 + cat conftest.err >&5
5336 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 + (exit $ac_status); } && {
5338 + test -z "$ac_c_werror_flag" ||
5339 + test ! -s conftest.err
5340 + } && test -s conftest.$ac_objext; then
5341 + ac_hi=-1 ac_mid=-1
5342 + while :; do
5343 + cat >conftest.$ac_ext <<_ACEOF
5344 +/* confdefs.h. */
5345 +_ACEOF
5346 +cat confdefs.h >>conftest.$ac_ext
5347 +cat >>conftest.$ac_ext <<_ACEOF
5348 +/* end confdefs.h. */
5349 +$ac_includes_default
5350 + typedef short ac__type_sizeof_;
5351 +int
5352 +main ()
5354 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5355 +test_array [0] = 0
5358 + return 0;
5360 +_ACEOF
5361 +rm -f conftest.$ac_objext
5362 +if { (ac_try="$ac_compile"
5363 +case "(($ac_try" in
5364 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 + *) ac_try_echo=$ac_try;;
5366 +esac
5367 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 + (eval "$ac_compile") 2>conftest.er1
5369 + ac_status=$?
5370 + grep -v '^ *+' conftest.er1 >conftest.err
5371 + rm -f conftest.er1
5372 + cat conftest.err >&5
5373 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 + (exit $ac_status); } && {
5375 + test -z "$ac_c_werror_flag" ||
5376 + test ! -s conftest.err
5377 + } && test -s conftest.$ac_objext; then
5378 + ac_lo=$ac_mid; break
5379 else
5380 - echo "configure: failed program was:" >&5
5381 - cat conftest.$ac_ext >&5
5382 - rm -fr conftest*
5383 - ac_cv_sizeof_short=0
5384 + echo "$as_me: failed program was:" >&5
5385 +sed 's/^/| /' conftest.$ac_ext >&5
5387 + ac_hi=`expr '(' $ac_mid ')' - 1`
5388 + if test $ac_mid -le $ac_hi; then
5389 + ac_lo= ac_hi=
5390 + break
5391 + fi
5392 + ac_mid=`expr 2 '*' $ac_mid`
5394 -rm -fr conftest*
5396 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 + done
5398 +else
5399 + echo "$as_me: failed program was:" >&5
5400 +sed 's/^/| /' conftest.$ac_ext >&5
5402 + ac_lo= ac_hi=
5405 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 -echo "$ac_t""$ac_cv_sizeof_short" 1>&6
5408 -cat >> confdefs.h <<EOF
5410 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 +# Binary search between lo and hi bounds.
5412 +while test "x$ac_lo" != "x$ac_hi"; do
5413 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5414 + cat >conftest.$ac_ext <<_ACEOF
5415 +/* confdefs.h. */
5416 +_ACEOF
5417 +cat confdefs.h >>conftest.$ac_ext
5418 +cat >>conftest.$ac_ext <<_ACEOF
5419 +/* end confdefs.h. */
5420 +$ac_includes_default
5421 + typedef short ac__type_sizeof_;
5422 +int
5423 +main ()
5425 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5426 +test_array [0] = 0
5429 + return 0;
5431 +_ACEOF
5432 +rm -f conftest.$ac_objext
5433 +if { (ac_try="$ac_compile"
5434 +case "(($ac_try" in
5435 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 + *) ac_try_echo=$ac_try;;
5437 +esac
5438 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 + (eval "$ac_compile") 2>conftest.er1
5440 + ac_status=$?
5441 + grep -v '^ *+' conftest.er1 >conftest.err
5442 + rm -f conftest.er1
5443 + cat conftest.err >&5
5444 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 + (exit $ac_status); } && {
5446 + test -z "$ac_c_werror_flag" ||
5447 + test ! -s conftest.err
5448 + } && test -s conftest.$ac_objext; then
5449 + ac_hi=$ac_mid
5450 +else
5451 + echo "$as_me: failed program was:" >&5
5452 +sed 's/^/| /' conftest.$ac_ext >&5
5454 + ac_lo=`expr '(' $ac_mid ')' + 1`
5457 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 +done
5459 +case $ac_lo in
5460 +?*) ac_cv_sizeof_short=$ac_lo;;
5461 +'') if test "$ac_cv_type_short" = yes; then
5462 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5463 +See \`config.log' for more details." >&5
5464 +echo "$as_me: error: cannot compute sizeof (short)
5465 +See \`config.log' for more details." >&2;}
5466 + { (exit 77); exit 77; }; }
5467 + else
5468 + ac_cv_sizeof_short=0
5469 + fi ;;
5470 +esac
5471 +else
5472 + cat >conftest.$ac_ext <<_ACEOF
5473 +/* confdefs.h. */
5474 +_ACEOF
5475 +cat confdefs.h >>conftest.$ac_ext
5476 +cat >>conftest.$ac_ext <<_ACEOF
5477 +/* end confdefs.h. */
5478 +$ac_includes_default
5479 + typedef short ac__type_sizeof_;
5480 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5481 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5482 +#include <stdio.h>
5483 +#include <stdlib.h>
5484 +int
5485 +main ()
5488 + FILE *f = fopen ("conftest.val", "w");
5489 + if (! f)
5490 + return 1;
5491 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5493 + long int i = longval ();
5494 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
5495 + return 1;
5496 + fprintf (f, "%ld\n", i);
5498 + else
5500 + unsigned long int i = ulongval ();
5501 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
5502 + return 1;
5503 + fprintf (f, "%lu\n", i);
5505 + return ferror (f) || fclose (f) != 0;
5508 + return 0;
5510 +_ACEOF
5511 +rm -f conftest$ac_exeext
5512 +if { (ac_try="$ac_link"
5513 +case "(($ac_try" in
5514 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 + *) ac_try_echo=$ac_try;;
5516 +esac
5517 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 + (eval "$ac_link") 2>&5
5519 + ac_status=$?
5520 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5522 + { (case "(($ac_try" in
5523 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 + *) ac_try_echo=$ac_try;;
5525 +esac
5526 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 + (eval "$ac_try") 2>&5
5528 + ac_status=$?
5529 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 + (exit $ac_status); }; }; then
5531 + ac_cv_sizeof_short=`cat conftest.val`
5532 +else
5533 + echo "$as_me: program exited with status $ac_status" >&5
5534 +echo "$as_me: failed program was:" >&5
5535 +sed 's/^/| /' conftest.$ac_ext >&5
5537 +( exit $ac_status )
5538 +if test "$ac_cv_type_short" = yes; then
5539 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5540 +See \`config.log' for more details." >&5
5541 +echo "$as_me: error: cannot compute sizeof (short)
5542 +See \`config.log' for more details." >&2;}
5543 + { (exit 77); exit 77; }; }
5544 + else
5545 + ac_cv_sizeof_short=0
5546 + fi
5548 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5550 +rm -f conftest.val
5552 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5553 +echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5557 +cat >>confdefs.h <<_ACEOF
5558 #define SIZEOF_SHORT $ac_cv_sizeof_short
5559 -EOF
5560 +_ACEOF
5563 -echo $ac_n "checking size of int""... $ac_c" 1>&6
5564 -echo "configure:1516: checking size of int" >&5
5565 -if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
5566 - echo $ac_n "(cached) $ac_c" 1>&6
5567 +{ echo "$as_me:$LINENO: checking for int" >&5
5568 +echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5569 +if test "${ac_cv_type_int+set}" = set; then
5570 + echo $ECHO_N "(cached) $ECHO_C" >&6
5571 +else
5572 + cat >conftest.$ac_ext <<_ACEOF
5573 +/* confdefs.h. */
5574 +_ACEOF
5575 +cat confdefs.h >>conftest.$ac_ext
5576 +cat >>conftest.$ac_ext <<_ACEOF
5577 +/* end confdefs.h. */
5578 +$ac_includes_default
5579 +typedef int ac__type_new_;
5580 +int
5581 +main ()
5583 +if ((ac__type_new_ *) 0)
5584 + return 0;
5585 +if (sizeof (ac__type_new_))
5586 + return 0;
5588 + return 0;
5590 +_ACEOF
5591 +rm -f conftest.$ac_objext
5592 +if { (ac_try="$ac_compile"
5593 +case "(($ac_try" in
5594 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 + *) ac_try_echo=$ac_try;;
5596 +esac
5597 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 + (eval "$ac_compile") 2>conftest.er1
5599 + ac_status=$?
5600 + grep -v '^ *+' conftest.er1 >conftest.err
5601 + rm -f conftest.er1
5602 + cat conftest.err >&5
5603 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 + (exit $ac_status); } && {
5605 + test -z "$ac_c_werror_flag" ||
5606 + test ! -s conftest.err
5607 + } && test -s conftest.$ac_objext; then
5608 + ac_cv_type_int=yes
5609 +else
5610 + echo "$as_me: failed program was:" >&5
5611 +sed 's/^/| /' conftest.$ac_ext >&5
5613 + ac_cv_type_int=no
5616 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618 +{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5619 +echo "${ECHO_T}$ac_cv_type_int" >&6; }
5621 +# The cast to long int works around a bug in the HP C Compiler
5622 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5623 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5624 +# This bug is HP SR number 8606223364.
5625 +{ echo "$as_me:$LINENO: checking size of int" >&5
5626 +echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5627 +if test "${ac_cv_sizeof_int+set}" = set; then
5628 + echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 if test "$cross_compiling" = yes; then
5631 - ac_cv_sizeof_int=4
5632 + # Depending upon the size, compute the lo and hi bounds.
5633 +cat >conftest.$ac_ext <<_ACEOF
5634 +/* confdefs.h. */
5635 +_ACEOF
5636 +cat confdefs.h >>conftest.$ac_ext
5637 +cat >>conftest.$ac_ext <<_ACEOF
5638 +/* end confdefs.h. */
5639 +$ac_includes_default
5640 + typedef int ac__type_sizeof_;
5641 +int
5642 +main ()
5644 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5645 +test_array [0] = 0
5648 + return 0;
5650 +_ACEOF
5651 +rm -f conftest.$ac_objext
5652 +if { (ac_try="$ac_compile"
5653 +case "(($ac_try" in
5654 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 + *) ac_try_echo=$ac_try;;
5656 +esac
5657 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 + (eval "$ac_compile") 2>conftest.er1
5659 + ac_status=$?
5660 + grep -v '^ *+' conftest.er1 >conftest.err
5661 + rm -f conftest.er1
5662 + cat conftest.err >&5
5663 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 + (exit $ac_status); } && {
5665 + test -z "$ac_c_werror_flag" ||
5666 + test ! -s conftest.err
5667 + } && test -s conftest.$ac_objext; then
5668 + ac_lo=0 ac_mid=0
5669 + while :; do
5670 + cat >conftest.$ac_ext <<_ACEOF
5671 +/* confdefs.h. */
5672 +_ACEOF
5673 +cat confdefs.h >>conftest.$ac_ext
5674 +cat >>conftest.$ac_ext <<_ACEOF
5675 +/* end confdefs.h. */
5676 +$ac_includes_default
5677 + typedef int ac__type_sizeof_;
5678 +int
5679 +main ()
5681 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5682 +test_array [0] = 0
5685 + return 0;
5687 +_ACEOF
5688 +rm -f conftest.$ac_objext
5689 +if { (ac_try="$ac_compile"
5690 +case "(($ac_try" in
5691 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 + *) ac_try_echo=$ac_try;;
5693 +esac
5694 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 + (eval "$ac_compile") 2>conftest.er1
5696 + ac_status=$?
5697 + grep -v '^ *+' conftest.er1 >conftest.err
5698 + rm -f conftest.er1
5699 + cat conftest.err >&5
5700 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 + (exit $ac_status); } && {
5702 + test -z "$ac_c_werror_flag" ||
5703 + test ! -s conftest.err
5704 + } && test -s conftest.$ac_objext; then
5705 + ac_hi=$ac_mid; break
5706 else
5707 - cat > conftest.$ac_ext <<EOF
5708 -#line 1524 "configure"
5709 -#include "confdefs.h"
5710 -#include <stdio.h>
5711 -main()
5712 + echo "$as_me: failed program was:" >&5
5713 +sed 's/^/| /' conftest.$ac_ext >&5
5715 + ac_lo=`expr $ac_mid + 1`
5716 + if test $ac_lo -le $ac_mid; then
5717 + ac_lo= ac_hi=
5718 + break
5719 + fi
5720 + ac_mid=`expr 2 '*' $ac_mid + 1`
5723 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 + done
5725 +else
5726 + echo "$as_me: failed program was:" >&5
5727 +sed 's/^/| /' conftest.$ac_ext >&5
5729 + cat >conftest.$ac_ext <<_ACEOF
5730 +/* confdefs.h. */
5731 +_ACEOF
5732 +cat confdefs.h >>conftest.$ac_ext
5733 +cat >>conftest.$ac_ext <<_ACEOF
5734 +/* end confdefs.h. */
5735 +$ac_includes_default
5736 + typedef int ac__type_sizeof_;
5737 +int
5738 +main ()
5740 - FILE *f=fopen("conftestval", "w");
5741 - if (!f) exit(1);
5742 - fprintf(f, "%d\n", sizeof(int));
5743 - exit(0);
5744 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5745 +test_array [0] = 0
5748 + return 0;
5750 -EOF
5751 -if { (eval echo configure:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5752 -then
5753 - ac_cv_sizeof_int=`cat conftestval`
5754 +_ACEOF
5755 +rm -f conftest.$ac_objext
5756 +if { (ac_try="$ac_compile"
5757 +case "(($ac_try" in
5758 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 + *) ac_try_echo=$ac_try;;
5760 +esac
5761 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 + (eval "$ac_compile") 2>conftest.er1
5763 + ac_status=$?
5764 + grep -v '^ *+' conftest.er1 >conftest.err
5765 + rm -f conftest.er1
5766 + cat conftest.err >&5
5767 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 + (exit $ac_status); } && {
5769 + test -z "$ac_c_werror_flag" ||
5770 + test ! -s conftest.err
5771 + } && test -s conftest.$ac_objext; then
5772 + ac_hi=-1 ac_mid=-1
5773 + while :; do
5774 + cat >conftest.$ac_ext <<_ACEOF
5775 +/* confdefs.h. */
5776 +_ACEOF
5777 +cat confdefs.h >>conftest.$ac_ext
5778 +cat >>conftest.$ac_ext <<_ACEOF
5779 +/* end confdefs.h. */
5780 +$ac_includes_default
5781 + typedef int ac__type_sizeof_;
5782 +int
5783 +main ()
5785 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5786 +test_array [0] = 0
5789 + return 0;
5791 +_ACEOF
5792 +rm -f conftest.$ac_objext
5793 +if { (ac_try="$ac_compile"
5794 +case "(($ac_try" in
5795 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 + *) ac_try_echo=$ac_try;;
5797 +esac
5798 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 + (eval "$ac_compile") 2>conftest.er1
5800 + ac_status=$?
5801 + grep -v '^ *+' conftest.er1 >conftest.err
5802 + rm -f conftest.er1
5803 + cat conftest.err >&5
5804 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 + (exit $ac_status); } && {
5806 + test -z "$ac_c_werror_flag" ||
5807 + test ! -s conftest.err
5808 + } && test -s conftest.$ac_objext; then
5809 + ac_lo=$ac_mid; break
5810 else
5811 - echo "configure: failed program was:" >&5
5812 - cat conftest.$ac_ext >&5
5813 - rm -fr conftest*
5814 - ac_cv_sizeof_int=0
5815 + echo "$as_me: failed program was:" >&5
5816 +sed 's/^/| /' conftest.$ac_ext >&5
5818 + ac_hi=`expr '(' $ac_mid ')' - 1`
5819 + if test $ac_mid -le $ac_hi; then
5820 + ac_lo= ac_hi=
5821 + break
5822 + fi
5823 + ac_mid=`expr 2 '*' $ac_mid`
5825 -rm -fr conftest*
5827 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 + done
5829 +else
5830 + echo "$as_me: failed program was:" >&5
5831 +sed 's/^/| /' conftest.$ac_ext >&5
5833 + ac_lo= ac_hi=
5836 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 -echo "$ac_t""$ac_cv_sizeof_int" 1>&6
5839 -cat >> confdefs.h <<EOF
5841 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 +# Binary search between lo and hi bounds.
5843 +while test "x$ac_lo" != "x$ac_hi"; do
5844 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5845 + cat >conftest.$ac_ext <<_ACEOF
5846 +/* confdefs.h. */
5847 +_ACEOF
5848 +cat confdefs.h >>conftest.$ac_ext
5849 +cat >>conftest.$ac_ext <<_ACEOF
5850 +/* end confdefs.h. */
5851 +$ac_includes_default
5852 + typedef int ac__type_sizeof_;
5853 +int
5854 +main ()
5856 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5857 +test_array [0] = 0
5860 + return 0;
5862 +_ACEOF
5863 +rm -f conftest.$ac_objext
5864 +if { (ac_try="$ac_compile"
5865 +case "(($ac_try" in
5866 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 + *) ac_try_echo=$ac_try;;
5868 +esac
5869 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 + (eval "$ac_compile") 2>conftest.er1
5871 + ac_status=$?
5872 + grep -v '^ *+' conftest.er1 >conftest.err
5873 + rm -f conftest.er1
5874 + cat conftest.err >&5
5875 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 + (exit $ac_status); } && {
5877 + test -z "$ac_c_werror_flag" ||
5878 + test ! -s conftest.err
5879 + } && test -s conftest.$ac_objext; then
5880 + ac_hi=$ac_mid
5881 +else
5882 + echo "$as_me: failed program was:" >&5
5883 +sed 's/^/| /' conftest.$ac_ext >&5
5885 + ac_lo=`expr '(' $ac_mid ')' + 1`
5888 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 +done
5890 +case $ac_lo in
5891 +?*) ac_cv_sizeof_int=$ac_lo;;
5892 +'') if test "$ac_cv_type_int" = yes; then
5893 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5894 +See \`config.log' for more details." >&5
5895 +echo "$as_me: error: cannot compute sizeof (int)
5896 +See \`config.log' for more details." >&2;}
5897 + { (exit 77); exit 77; }; }
5898 + else
5899 + ac_cv_sizeof_int=0
5900 + fi ;;
5901 +esac
5902 +else
5903 + cat >conftest.$ac_ext <<_ACEOF
5904 +/* confdefs.h. */
5905 +_ACEOF
5906 +cat confdefs.h >>conftest.$ac_ext
5907 +cat >>conftest.$ac_ext <<_ACEOF
5908 +/* end confdefs.h. */
5909 +$ac_includes_default
5910 + typedef int ac__type_sizeof_;
5911 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5912 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5913 +#include <stdio.h>
5914 +#include <stdlib.h>
5915 +int
5916 +main ()
5919 + FILE *f = fopen ("conftest.val", "w");
5920 + if (! f)
5921 + return 1;
5922 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5924 + long int i = longval ();
5925 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
5926 + return 1;
5927 + fprintf (f, "%ld\n", i);
5929 + else
5931 + unsigned long int i = ulongval ();
5932 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
5933 + return 1;
5934 + fprintf (f, "%lu\n", i);
5936 + return ferror (f) || fclose (f) != 0;
5939 + return 0;
5941 +_ACEOF
5942 +rm -f conftest$ac_exeext
5943 +if { (ac_try="$ac_link"
5944 +case "(($ac_try" in
5945 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 + *) ac_try_echo=$ac_try;;
5947 +esac
5948 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 + (eval "$ac_link") 2>&5
5950 + ac_status=$?
5951 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5953 + { (case "(($ac_try" in
5954 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 + *) ac_try_echo=$ac_try;;
5956 +esac
5957 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 + (eval "$ac_try") 2>&5
5959 + ac_status=$?
5960 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 + (exit $ac_status); }; }; then
5962 + ac_cv_sizeof_int=`cat conftest.val`
5963 +else
5964 + echo "$as_me: program exited with status $ac_status" >&5
5965 +echo "$as_me: failed program was:" >&5
5966 +sed 's/^/| /' conftest.$ac_ext >&5
5968 +( exit $ac_status )
5969 +if test "$ac_cv_type_int" = yes; then
5970 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5971 +See \`config.log' for more details." >&5
5972 +echo "$as_me: error: cannot compute sizeof (int)
5973 +See \`config.log' for more details." >&2;}
5974 + { (exit 77); exit 77; }; }
5975 + else
5976 + ac_cv_sizeof_int=0
5977 + fi
5979 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5981 +rm -f conftest.val
5983 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5984 +echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5988 +cat >>confdefs.h <<_ACEOF
5989 #define SIZEOF_INT $ac_cv_sizeof_int
5990 -EOF
5991 +_ACEOF
5994 -echo $ac_n "checking size of long""... $ac_c" 1>&6
5995 -echo "configure:1555: checking size of long" >&5
5996 -if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
5997 - echo $ac_n "(cached) $ac_c" 1>&6
5998 +{ echo "$as_me:$LINENO: checking for long" >&5
5999 +echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6000 +if test "${ac_cv_type_long+set}" = set; then
6001 + echo $ECHO_N "(cached) $ECHO_C" >&6
6002 +else
6003 + cat >conftest.$ac_ext <<_ACEOF
6004 +/* confdefs.h. */
6005 +_ACEOF
6006 +cat confdefs.h >>conftest.$ac_ext
6007 +cat >>conftest.$ac_ext <<_ACEOF
6008 +/* end confdefs.h. */
6009 +$ac_includes_default
6010 +typedef long ac__type_new_;
6011 +int
6012 +main ()
6014 +if ((ac__type_new_ *) 0)
6015 + return 0;
6016 +if (sizeof (ac__type_new_))
6017 + return 0;
6019 + return 0;
6021 +_ACEOF
6022 +rm -f conftest.$ac_objext
6023 +if { (ac_try="$ac_compile"
6024 +case "(($ac_try" in
6025 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 + *) ac_try_echo=$ac_try;;
6027 +esac
6028 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 + (eval "$ac_compile") 2>conftest.er1
6030 + ac_status=$?
6031 + grep -v '^ *+' conftest.er1 >conftest.err
6032 + rm -f conftest.er1
6033 + cat conftest.err >&5
6034 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 + (exit $ac_status); } && {
6036 + test -z "$ac_c_werror_flag" ||
6037 + test ! -s conftest.err
6038 + } && test -s conftest.$ac_objext; then
6039 + ac_cv_type_long=yes
6040 +else
6041 + echo "$as_me: failed program was:" >&5
6042 +sed 's/^/| /' conftest.$ac_ext >&5
6044 + ac_cv_type_long=no
6047 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 +{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6050 +echo "${ECHO_T}$ac_cv_type_long" >&6; }
6052 +# The cast to long int works around a bug in the HP C Compiler
6053 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6054 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6055 +# This bug is HP SR number 8606223364.
6056 +{ echo "$as_me:$LINENO: checking size of long" >&5
6057 +echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6058 +if test "${ac_cv_sizeof_long+set}" = set; then
6059 + echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 if test "$cross_compiling" = yes; then
6062 - ac_cv_sizeof_long=4
6063 + # Depending upon the size, compute the lo and hi bounds.
6064 +cat >conftest.$ac_ext <<_ACEOF
6065 +/* confdefs.h. */
6066 +_ACEOF
6067 +cat confdefs.h >>conftest.$ac_ext
6068 +cat >>conftest.$ac_ext <<_ACEOF
6069 +/* end confdefs.h. */
6070 +$ac_includes_default
6071 + typedef long ac__type_sizeof_;
6072 +int
6073 +main ()
6075 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6076 +test_array [0] = 0
6079 + return 0;
6081 +_ACEOF
6082 +rm -f conftest.$ac_objext
6083 +if { (ac_try="$ac_compile"
6084 +case "(($ac_try" in
6085 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 + *) ac_try_echo=$ac_try;;
6087 +esac
6088 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 + (eval "$ac_compile") 2>conftest.er1
6090 + ac_status=$?
6091 + grep -v '^ *+' conftest.er1 >conftest.err
6092 + rm -f conftest.er1
6093 + cat conftest.err >&5
6094 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 + (exit $ac_status); } && {
6096 + test -z "$ac_c_werror_flag" ||
6097 + test ! -s conftest.err
6098 + } && test -s conftest.$ac_objext; then
6099 + ac_lo=0 ac_mid=0
6100 + while :; do
6101 + cat >conftest.$ac_ext <<_ACEOF
6102 +/* confdefs.h. */
6103 +_ACEOF
6104 +cat confdefs.h >>conftest.$ac_ext
6105 +cat >>conftest.$ac_ext <<_ACEOF
6106 +/* end confdefs.h. */
6107 +$ac_includes_default
6108 + typedef long ac__type_sizeof_;
6109 +int
6110 +main ()
6112 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6113 +test_array [0] = 0
6116 + return 0;
6118 +_ACEOF
6119 +rm -f conftest.$ac_objext
6120 +if { (ac_try="$ac_compile"
6121 +case "(($ac_try" in
6122 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 + *) ac_try_echo=$ac_try;;
6124 +esac
6125 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 + (eval "$ac_compile") 2>conftest.er1
6127 + ac_status=$?
6128 + grep -v '^ *+' conftest.er1 >conftest.err
6129 + rm -f conftest.er1
6130 + cat conftest.err >&5
6131 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 + (exit $ac_status); } && {
6133 + test -z "$ac_c_werror_flag" ||
6134 + test ! -s conftest.err
6135 + } && test -s conftest.$ac_objext; then
6136 + ac_hi=$ac_mid; break
6137 else
6138 - cat > conftest.$ac_ext <<EOF
6139 -#line 1563 "configure"
6140 -#include "confdefs.h"
6141 -#include <stdio.h>
6142 -main()
6143 + echo "$as_me: failed program was:" >&5
6144 +sed 's/^/| /' conftest.$ac_ext >&5
6146 + ac_lo=`expr $ac_mid + 1`
6147 + if test $ac_lo -le $ac_mid; then
6148 + ac_lo= ac_hi=
6149 + break
6150 + fi
6151 + ac_mid=`expr 2 '*' $ac_mid + 1`
6154 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 + done
6156 +else
6157 + echo "$as_me: failed program was:" >&5
6158 +sed 's/^/| /' conftest.$ac_ext >&5
6160 + cat >conftest.$ac_ext <<_ACEOF
6161 +/* confdefs.h. */
6162 +_ACEOF
6163 +cat confdefs.h >>conftest.$ac_ext
6164 +cat >>conftest.$ac_ext <<_ACEOF
6165 +/* end confdefs.h. */
6166 +$ac_includes_default
6167 + typedef long ac__type_sizeof_;
6168 +int
6169 +main ()
6171 - FILE *f=fopen("conftestval", "w");
6172 - if (!f) exit(1);
6173 - fprintf(f, "%d\n", sizeof(long));
6174 - exit(0);
6175 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6176 +test_array [0] = 0
6179 + return 0;
6181 -EOF
6182 -if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6183 -then
6184 - ac_cv_sizeof_long=`cat conftestval`
6185 +_ACEOF
6186 +rm -f conftest.$ac_objext
6187 +if { (ac_try="$ac_compile"
6188 +case "(($ac_try" in
6189 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 + *) ac_try_echo=$ac_try;;
6191 +esac
6192 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 + (eval "$ac_compile") 2>conftest.er1
6194 + ac_status=$?
6195 + grep -v '^ *+' conftest.er1 >conftest.err
6196 + rm -f conftest.er1
6197 + cat conftest.err >&5
6198 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 + (exit $ac_status); } && {
6200 + test -z "$ac_c_werror_flag" ||
6201 + test ! -s conftest.err
6202 + } && test -s conftest.$ac_objext; then
6203 + ac_hi=-1 ac_mid=-1
6204 + while :; do
6205 + cat >conftest.$ac_ext <<_ACEOF
6206 +/* confdefs.h. */
6207 +_ACEOF
6208 +cat confdefs.h >>conftest.$ac_ext
6209 +cat >>conftest.$ac_ext <<_ACEOF
6210 +/* end confdefs.h. */
6211 +$ac_includes_default
6212 + typedef long ac__type_sizeof_;
6213 +int
6214 +main ()
6216 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6217 +test_array [0] = 0
6220 + return 0;
6222 +_ACEOF
6223 +rm -f conftest.$ac_objext
6224 +if { (ac_try="$ac_compile"
6225 +case "(($ac_try" in
6226 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 + *) ac_try_echo=$ac_try;;
6228 +esac
6229 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 + (eval "$ac_compile") 2>conftest.er1
6231 + ac_status=$?
6232 + grep -v '^ *+' conftest.er1 >conftest.err
6233 + rm -f conftest.er1
6234 + cat conftest.err >&5
6235 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 + (exit $ac_status); } && {
6237 + test -z "$ac_c_werror_flag" ||
6238 + test ! -s conftest.err
6239 + } && test -s conftest.$ac_objext; then
6240 + ac_lo=$ac_mid; break
6241 else
6242 - echo "configure: failed program was:" >&5
6243 - cat conftest.$ac_ext >&5
6244 - rm -fr conftest*
6245 - ac_cv_sizeof_long=0
6246 + echo "$as_me: failed program was:" >&5
6247 +sed 's/^/| /' conftest.$ac_ext >&5
6249 + ac_hi=`expr '(' $ac_mid ')' - 1`
6250 + if test $ac_mid -le $ac_hi; then
6251 + ac_lo= ac_hi=
6252 + break
6253 + fi
6254 + ac_mid=`expr 2 '*' $ac_mid`
6256 -rm -fr conftest*
6258 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 + done
6260 +else
6261 + echo "$as_me: failed program was:" >&5
6262 +sed 's/^/| /' conftest.$ac_ext >&5
6264 + ac_lo= ac_hi=
6267 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 -echo "$ac_t""$ac_cv_sizeof_long" 1>&6
6270 -cat >> confdefs.h <<EOF
6272 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 +# Binary search between lo and hi bounds.
6274 +while test "x$ac_lo" != "x$ac_hi"; do
6275 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6276 + cat >conftest.$ac_ext <<_ACEOF
6277 +/* confdefs.h. */
6278 +_ACEOF
6279 +cat confdefs.h >>conftest.$ac_ext
6280 +cat >>conftest.$ac_ext <<_ACEOF
6281 +/* end confdefs.h. */
6282 +$ac_includes_default
6283 + typedef long ac__type_sizeof_;
6284 +int
6285 +main ()
6287 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6288 +test_array [0] = 0
6291 + return 0;
6293 +_ACEOF
6294 +rm -f conftest.$ac_objext
6295 +if { (ac_try="$ac_compile"
6296 +case "(($ac_try" in
6297 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 + *) ac_try_echo=$ac_try;;
6299 +esac
6300 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 + (eval "$ac_compile") 2>conftest.er1
6302 + ac_status=$?
6303 + grep -v '^ *+' conftest.er1 >conftest.err
6304 + rm -f conftest.er1
6305 + cat conftest.err >&5
6306 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 + (exit $ac_status); } && {
6308 + test -z "$ac_c_werror_flag" ||
6309 + test ! -s conftest.err
6310 + } && test -s conftest.$ac_objext; then
6311 + ac_hi=$ac_mid
6312 +else
6313 + echo "$as_me: failed program was:" >&5
6314 +sed 's/^/| /' conftest.$ac_ext >&5
6316 + ac_lo=`expr '(' $ac_mid ')' + 1`
6319 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320 +done
6321 +case $ac_lo in
6322 +?*) ac_cv_sizeof_long=$ac_lo;;
6323 +'') if test "$ac_cv_type_long" = yes; then
6324 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6325 +See \`config.log' for more details." >&5
6326 +echo "$as_me: error: cannot compute sizeof (long)
6327 +See \`config.log' for more details." >&2;}
6328 + { (exit 77); exit 77; }; }
6329 + else
6330 + ac_cv_sizeof_long=0
6331 + fi ;;
6332 +esac
6333 +else
6334 + cat >conftest.$ac_ext <<_ACEOF
6335 +/* confdefs.h. */
6336 +_ACEOF
6337 +cat confdefs.h >>conftest.$ac_ext
6338 +cat >>conftest.$ac_ext <<_ACEOF
6339 +/* end confdefs.h. */
6340 +$ac_includes_default
6341 + typedef long ac__type_sizeof_;
6342 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6343 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6344 +#include <stdio.h>
6345 +#include <stdlib.h>
6346 +int
6347 +main ()
6350 + FILE *f = fopen ("conftest.val", "w");
6351 + if (! f)
6352 + return 1;
6353 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6355 + long int i = longval ();
6356 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
6357 + return 1;
6358 + fprintf (f, "%ld\n", i);
6360 + else
6362 + unsigned long int i = ulongval ();
6363 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
6364 + return 1;
6365 + fprintf (f, "%lu\n", i);
6367 + return ferror (f) || fclose (f) != 0;
6370 + return 0;
6372 +_ACEOF
6373 +rm -f conftest$ac_exeext
6374 +if { (ac_try="$ac_link"
6375 +case "(($ac_try" in
6376 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 + *) ac_try_echo=$ac_try;;
6378 +esac
6379 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 + (eval "$ac_link") 2>&5
6381 + ac_status=$?
6382 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6384 + { (case "(($ac_try" in
6385 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 + *) ac_try_echo=$ac_try;;
6387 +esac
6388 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 + (eval "$ac_try") 2>&5
6390 + ac_status=$?
6391 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 + (exit $ac_status); }; }; then
6393 + ac_cv_sizeof_long=`cat conftest.val`
6394 +else
6395 + echo "$as_me: program exited with status $ac_status" >&5
6396 +echo "$as_me: failed program was:" >&5
6397 +sed 's/^/| /' conftest.$ac_ext >&5
6399 +( exit $ac_status )
6400 +if test "$ac_cv_type_long" = yes; then
6401 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6402 +See \`config.log' for more details." >&5
6403 +echo "$as_me: error: cannot compute sizeof (long)
6404 +See \`config.log' for more details." >&2;}
6405 + { (exit 77); exit 77; }; }
6406 + else
6407 + ac_cv_sizeof_long=0
6408 + fi
6410 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6412 +rm -f conftest.val
6414 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6415 +echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6419 +cat >>confdefs.h <<_ACEOF
6420 #define SIZEOF_LONG $ac_cv_sizeof_long
6421 -EOF
6422 +_ACEOF
6425 -echo $ac_n "checking size of long long""... $ac_c" 1>&6
6426 -echo "configure:1594: checking size of long long" >&5
6427 -if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6428 - echo $ac_n "(cached) $ac_c" 1>&6
6429 +{ echo "$as_me:$LINENO: checking for long long" >&5
6430 +echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6431 +if test "${ac_cv_type_long_long+set}" = set; then
6432 + echo $ECHO_N "(cached) $ECHO_C" >&6
6433 +else
6434 + cat >conftest.$ac_ext <<_ACEOF
6435 +/* confdefs.h. */
6436 +_ACEOF
6437 +cat confdefs.h >>conftest.$ac_ext
6438 +cat >>conftest.$ac_ext <<_ACEOF
6439 +/* end confdefs.h. */
6440 +$ac_includes_default
6441 +typedef long long ac__type_new_;
6442 +int
6443 +main ()
6445 +if ((ac__type_new_ *) 0)
6446 + return 0;
6447 +if (sizeof (ac__type_new_))
6448 + return 0;
6450 + return 0;
6452 +_ACEOF
6453 +rm -f conftest.$ac_objext
6454 +if { (ac_try="$ac_compile"
6455 +case "(($ac_try" in
6456 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 + *) ac_try_echo=$ac_try;;
6458 +esac
6459 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 + (eval "$ac_compile") 2>conftest.er1
6461 + ac_status=$?
6462 + grep -v '^ *+' conftest.er1 >conftest.err
6463 + rm -f conftest.er1
6464 + cat conftest.err >&5
6465 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 + (exit $ac_status); } && {
6467 + test -z "$ac_c_werror_flag" ||
6468 + test ! -s conftest.err
6469 + } && test -s conftest.$ac_objext; then
6470 + ac_cv_type_long_long=yes
6471 +else
6472 + echo "$as_me: failed program was:" >&5
6473 +sed 's/^/| /' conftest.$ac_ext >&5
6475 + ac_cv_type_long_long=no
6478 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 +{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6481 +echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6483 +# The cast to long int works around a bug in the HP C Compiler
6484 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6485 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6486 +# This bug is HP SR number 8606223364.
6487 +{ echo "$as_me:$LINENO: checking size of long long" >&5
6488 +echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6489 +if test "${ac_cv_sizeof_long_long+set}" = set; then
6490 + echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492 if test "$cross_compiling" = yes; then
6493 - ac_cv_sizeof_long_long=0
6494 + # Depending upon the size, compute the lo and hi bounds.
6495 +cat >conftest.$ac_ext <<_ACEOF
6496 +/* confdefs.h. */
6497 +_ACEOF
6498 +cat confdefs.h >>conftest.$ac_ext
6499 +cat >>conftest.$ac_ext <<_ACEOF
6500 +/* end confdefs.h. */
6501 +$ac_includes_default
6502 + typedef long long ac__type_sizeof_;
6503 +int
6504 +main ()
6506 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6507 +test_array [0] = 0
6510 + return 0;
6512 +_ACEOF
6513 +rm -f conftest.$ac_objext
6514 +if { (ac_try="$ac_compile"
6515 +case "(($ac_try" in
6516 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 + *) ac_try_echo=$ac_try;;
6518 +esac
6519 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 + (eval "$ac_compile") 2>conftest.er1
6521 + ac_status=$?
6522 + grep -v '^ *+' conftest.er1 >conftest.err
6523 + rm -f conftest.er1
6524 + cat conftest.err >&5
6525 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 + (exit $ac_status); } && {
6527 + test -z "$ac_c_werror_flag" ||
6528 + test ! -s conftest.err
6529 + } && test -s conftest.$ac_objext; then
6530 + ac_lo=0 ac_mid=0
6531 + while :; do
6532 + cat >conftest.$ac_ext <<_ACEOF
6533 +/* confdefs.h. */
6534 +_ACEOF
6535 +cat confdefs.h >>conftest.$ac_ext
6536 +cat >>conftest.$ac_ext <<_ACEOF
6537 +/* end confdefs.h. */
6538 +$ac_includes_default
6539 + typedef long long ac__type_sizeof_;
6540 +int
6541 +main ()
6543 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6544 +test_array [0] = 0
6547 + return 0;
6549 +_ACEOF
6550 +rm -f conftest.$ac_objext
6551 +if { (ac_try="$ac_compile"
6552 +case "(($ac_try" in
6553 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 + *) ac_try_echo=$ac_try;;
6555 +esac
6556 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 + (eval "$ac_compile") 2>conftest.er1
6558 + ac_status=$?
6559 + grep -v '^ *+' conftest.er1 >conftest.err
6560 + rm -f conftest.er1
6561 + cat conftest.err >&5
6562 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 + (exit $ac_status); } && {
6564 + test -z "$ac_c_werror_flag" ||
6565 + test ! -s conftest.err
6566 + } && test -s conftest.$ac_objext; then
6567 + ac_hi=$ac_mid; break
6568 else
6569 - cat > conftest.$ac_ext <<EOF
6570 -#line 1602 "configure"
6571 -#include "confdefs.h"
6572 -#include <stdio.h>
6573 -main()
6574 + echo "$as_me: failed program was:" >&5
6575 +sed 's/^/| /' conftest.$ac_ext >&5
6577 + ac_lo=`expr $ac_mid + 1`
6578 + if test $ac_lo -le $ac_mid; then
6579 + ac_lo= ac_hi=
6580 + break
6581 + fi
6582 + ac_mid=`expr 2 '*' $ac_mid + 1`
6585 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 + done
6587 +else
6588 + echo "$as_me: failed program was:" >&5
6589 +sed 's/^/| /' conftest.$ac_ext >&5
6591 + cat >conftest.$ac_ext <<_ACEOF
6592 +/* confdefs.h. */
6593 +_ACEOF
6594 +cat confdefs.h >>conftest.$ac_ext
6595 +cat >>conftest.$ac_ext <<_ACEOF
6596 +/* end confdefs.h. */
6597 +$ac_includes_default
6598 + typedef long long ac__type_sizeof_;
6599 +int
6600 +main ()
6602 - FILE *f=fopen("conftestval", "w");
6603 - if (!f) exit(1);
6604 - fprintf(f, "%d\n", sizeof(long long));
6605 - exit(0);
6606 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6607 +test_array [0] = 0
6610 + return 0;
6612 -EOF
6613 -if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6614 -then
6615 - ac_cv_sizeof_long_long=`cat conftestval`
6616 +_ACEOF
6617 +rm -f conftest.$ac_objext
6618 +if { (ac_try="$ac_compile"
6619 +case "(($ac_try" in
6620 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621 + *) ac_try_echo=$ac_try;;
6622 +esac
6623 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624 + (eval "$ac_compile") 2>conftest.er1
6625 + ac_status=$?
6626 + grep -v '^ *+' conftest.er1 >conftest.err
6627 + rm -f conftest.er1
6628 + cat conftest.err >&5
6629 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 + (exit $ac_status); } && {
6631 + test -z "$ac_c_werror_flag" ||
6632 + test ! -s conftest.err
6633 + } && test -s conftest.$ac_objext; then
6634 + ac_hi=-1 ac_mid=-1
6635 + while :; do
6636 + cat >conftest.$ac_ext <<_ACEOF
6637 +/* confdefs.h. */
6638 +_ACEOF
6639 +cat confdefs.h >>conftest.$ac_ext
6640 +cat >>conftest.$ac_ext <<_ACEOF
6641 +/* end confdefs.h. */
6642 +$ac_includes_default
6643 + typedef long long ac__type_sizeof_;
6644 +int
6645 +main ()
6647 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6648 +test_array [0] = 0
6651 + return 0;
6653 +_ACEOF
6654 +rm -f conftest.$ac_objext
6655 +if { (ac_try="$ac_compile"
6656 +case "(($ac_try" in
6657 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 + *) ac_try_echo=$ac_try;;
6659 +esac
6660 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 + (eval "$ac_compile") 2>conftest.er1
6662 + ac_status=$?
6663 + grep -v '^ *+' conftest.er1 >conftest.err
6664 + rm -f conftest.er1
6665 + cat conftest.err >&5
6666 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 + (exit $ac_status); } && {
6668 + test -z "$ac_c_werror_flag" ||
6669 + test ! -s conftest.err
6670 + } && test -s conftest.$ac_objext; then
6671 + ac_lo=$ac_mid; break
6672 else
6673 - echo "configure: failed program was:" >&5
6674 - cat conftest.$ac_ext >&5
6675 - rm -fr conftest*
6676 - ac_cv_sizeof_long_long=0
6677 + echo "$as_me: failed program was:" >&5
6678 +sed 's/^/| /' conftest.$ac_ext >&5
6680 + ac_hi=`expr '(' $ac_mid ')' - 1`
6681 + if test $ac_mid -le $ac_hi; then
6682 + ac_lo= ac_hi=
6683 + break
6684 + fi
6685 + ac_mid=`expr 2 '*' $ac_mid`
6687 -rm -fr conftest*
6689 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 + done
6691 +else
6692 + echo "$as_me: failed program was:" >&5
6693 +sed 's/^/| /' conftest.$ac_ext >&5
6695 + ac_lo= ac_hi=
6698 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700 -echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6701 -cat >> confdefs.h <<EOF
6703 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 +# Binary search between lo and hi bounds.
6705 +while test "x$ac_lo" != "x$ac_hi"; do
6706 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6707 + cat >conftest.$ac_ext <<_ACEOF
6708 +/* confdefs.h. */
6709 +_ACEOF
6710 +cat confdefs.h >>conftest.$ac_ext
6711 +cat >>conftest.$ac_ext <<_ACEOF
6712 +/* end confdefs.h. */
6713 +$ac_includes_default
6714 + typedef long long ac__type_sizeof_;
6715 +int
6716 +main ()
6718 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6719 +test_array [0] = 0
6722 + return 0;
6724 +_ACEOF
6725 +rm -f conftest.$ac_objext
6726 +if { (ac_try="$ac_compile"
6727 +case "(($ac_try" in
6728 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729 + *) ac_try_echo=$ac_try;;
6730 +esac
6731 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732 + (eval "$ac_compile") 2>conftest.er1
6733 + ac_status=$?
6734 + grep -v '^ *+' conftest.er1 >conftest.err
6735 + rm -f conftest.er1
6736 + cat conftest.err >&5
6737 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 + (exit $ac_status); } && {
6739 + test -z "$ac_c_werror_flag" ||
6740 + test ! -s conftest.err
6741 + } && test -s conftest.$ac_objext; then
6742 + ac_hi=$ac_mid
6743 +else
6744 + echo "$as_me: failed program was:" >&5
6745 +sed 's/^/| /' conftest.$ac_ext >&5
6747 + ac_lo=`expr '(' $ac_mid ')' + 1`
6750 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 +done
6752 +case $ac_lo in
6753 +?*) ac_cv_sizeof_long_long=$ac_lo;;
6754 +'') if test "$ac_cv_type_long_long" = yes; then
6755 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6756 +See \`config.log' for more details." >&5
6757 +echo "$as_me: error: cannot compute sizeof (long long)
6758 +See \`config.log' for more details." >&2;}
6759 + { (exit 77); exit 77; }; }
6760 + else
6761 + ac_cv_sizeof_long_long=0
6762 + fi ;;
6763 +esac
6764 +else
6765 + cat >conftest.$ac_ext <<_ACEOF
6766 +/* confdefs.h. */
6767 +_ACEOF
6768 +cat confdefs.h >>conftest.$ac_ext
6769 +cat >>conftest.$ac_ext <<_ACEOF
6770 +/* end confdefs.h. */
6771 +$ac_includes_default
6772 + typedef long long ac__type_sizeof_;
6773 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6774 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6775 +#include <stdio.h>
6776 +#include <stdlib.h>
6777 +int
6778 +main ()
6781 + FILE *f = fopen ("conftest.val", "w");
6782 + if (! f)
6783 + return 1;
6784 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6786 + long int i = longval ();
6787 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
6788 + return 1;
6789 + fprintf (f, "%ld\n", i);
6791 + else
6793 + unsigned long int i = ulongval ();
6794 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
6795 + return 1;
6796 + fprintf (f, "%lu\n", i);
6798 + return ferror (f) || fclose (f) != 0;
6801 + return 0;
6803 +_ACEOF
6804 +rm -f conftest$ac_exeext
6805 +if { (ac_try="$ac_link"
6806 +case "(($ac_try" in
6807 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 + *) ac_try_echo=$ac_try;;
6809 +esac
6810 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 + (eval "$ac_link") 2>&5
6812 + ac_status=$?
6813 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6815 + { (case "(($ac_try" in
6816 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 + *) ac_try_echo=$ac_try;;
6818 +esac
6819 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820 + (eval "$ac_try") 2>&5
6821 + ac_status=$?
6822 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 + (exit $ac_status); }; }; then
6824 + ac_cv_sizeof_long_long=`cat conftest.val`
6825 +else
6826 + echo "$as_me: program exited with status $ac_status" >&5
6827 +echo "$as_me: failed program was:" >&5
6828 +sed 's/^/| /' conftest.$ac_ext >&5
6830 +( exit $ac_status )
6831 +if test "$ac_cv_type_long_long" = yes; then
6832 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6833 +See \`config.log' for more details." >&5
6834 +echo "$as_me: error: cannot compute sizeof (long long)
6835 +See \`config.log' for more details." >&2;}
6836 + { (exit 77); exit 77; }; }
6837 + else
6838 + ac_cv_sizeof_long_long=0
6839 + fi
6841 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6843 +rm -f conftest.val
6845 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6846 +echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6850 +cat >>confdefs.h <<_ACEOF
6851 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6852 -EOF
6853 +_ACEOF
6856 # Windows port
6857 -echo $ac_n "checking size of __int64""... $ac_c" 1>&6
6858 -echo "configure:1634: checking size of __int64" >&5
6859 -if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
6860 - echo $ac_n "(cached) $ac_c" 1>&6
6861 +{ echo "$as_me:$LINENO: checking for __int64" >&5
6862 +echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6863 +if test "${ac_cv_type___int64+set}" = set; then
6864 + echo $ECHO_N "(cached) $ECHO_C" >&6
6865 +else
6866 + cat >conftest.$ac_ext <<_ACEOF
6867 +/* confdefs.h. */
6868 +_ACEOF
6869 +cat confdefs.h >>conftest.$ac_ext
6870 +cat >>conftest.$ac_ext <<_ACEOF
6871 +/* end confdefs.h. */
6872 +$ac_includes_default
6873 +typedef __int64 ac__type_new_;
6874 +int
6875 +main ()
6877 +if ((ac__type_new_ *) 0)
6878 + return 0;
6879 +if (sizeof (ac__type_new_))
6880 + return 0;
6882 + return 0;
6884 +_ACEOF
6885 +rm -f conftest.$ac_objext
6886 +if { (ac_try="$ac_compile"
6887 +case "(($ac_try" in
6888 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 + *) ac_try_echo=$ac_try;;
6890 +esac
6891 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 + (eval "$ac_compile") 2>conftest.er1
6893 + ac_status=$?
6894 + grep -v '^ *+' conftest.er1 >conftest.err
6895 + rm -f conftest.er1
6896 + cat conftest.err >&5
6897 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 + (exit $ac_status); } && {
6899 + test -z "$ac_c_werror_flag" ||
6900 + test ! -s conftest.err
6901 + } && test -s conftest.$ac_objext; then
6902 + ac_cv_type___int64=yes
6903 +else
6904 + echo "$as_me: failed program was:" >&5
6905 +sed 's/^/| /' conftest.$ac_ext >&5
6907 + ac_cv_type___int64=no
6910 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 +{ echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6913 +echo "${ECHO_T}$ac_cv_type___int64" >&6; }
6915 +# The cast to long int works around a bug in the HP C Compiler
6916 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6917 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6918 +# This bug is HP SR number 8606223364.
6919 +{ echo "$as_me:$LINENO: checking size of __int64" >&5
6920 +echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
6921 +if test "${ac_cv_sizeof___int64+set}" = set; then
6922 + echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 if test "$cross_compiling" = yes; then
6925 - ac_cv_sizeof___int64=0
6926 + # Depending upon the size, compute the lo and hi bounds.
6927 +cat >conftest.$ac_ext <<_ACEOF
6928 +/* confdefs.h. */
6929 +_ACEOF
6930 +cat confdefs.h >>conftest.$ac_ext
6931 +cat >>conftest.$ac_ext <<_ACEOF
6932 +/* end confdefs.h. */
6933 +$ac_includes_default
6934 + typedef __int64 ac__type_sizeof_;
6935 +int
6936 +main ()
6938 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6939 +test_array [0] = 0
6942 + return 0;
6944 +_ACEOF
6945 +rm -f conftest.$ac_objext
6946 +if { (ac_try="$ac_compile"
6947 +case "(($ac_try" in
6948 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949 + *) ac_try_echo=$ac_try;;
6950 +esac
6951 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952 + (eval "$ac_compile") 2>conftest.er1
6953 + ac_status=$?
6954 + grep -v '^ *+' conftest.er1 >conftest.err
6955 + rm -f conftest.er1
6956 + cat conftest.err >&5
6957 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 + (exit $ac_status); } && {
6959 + test -z "$ac_c_werror_flag" ||
6960 + test ! -s conftest.err
6961 + } && test -s conftest.$ac_objext; then
6962 + ac_lo=0 ac_mid=0
6963 + while :; do
6964 + cat >conftest.$ac_ext <<_ACEOF
6965 +/* confdefs.h. */
6966 +_ACEOF
6967 +cat confdefs.h >>conftest.$ac_ext
6968 +cat >>conftest.$ac_ext <<_ACEOF
6969 +/* end confdefs.h. */
6970 +$ac_includes_default
6971 + typedef __int64 ac__type_sizeof_;
6972 +int
6973 +main ()
6975 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6976 +test_array [0] = 0
6979 + return 0;
6981 +_ACEOF
6982 +rm -f conftest.$ac_objext
6983 +if { (ac_try="$ac_compile"
6984 +case "(($ac_try" in
6985 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 + *) ac_try_echo=$ac_try;;
6987 +esac
6988 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6989 + (eval "$ac_compile") 2>conftest.er1
6990 + ac_status=$?
6991 + grep -v '^ *+' conftest.er1 >conftest.err
6992 + rm -f conftest.er1
6993 + cat conftest.err >&5
6994 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 + (exit $ac_status); } && {
6996 + test -z "$ac_c_werror_flag" ||
6997 + test ! -s conftest.err
6998 + } && test -s conftest.$ac_objext; then
6999 + ac_hi=$ac_mid; break
7000 else
7001 - cat > conftest.$ac_ext <<EOF
7002 -#line 1642 "configure"
7003 -#include "confdefs.h"
7004 -#include <stdio.h>
7005 -main()
7006 + echo "$as_me: failed program was:" >&5
7007 +sed 's/^/| /' conftest.$ac_ext >&5
7009 + ac_lo=`expr $ac_mid + 1`
7010 + if test $ac_lo -le $ac_mid; then
7011 + ac_lo= ac_hi=
7012 + break
7013 + fi
7014 + ac_mid=`expr 2 '*' $ac_mid + 1`
7017 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 + done
7019 +else
7020 + echo "$as_me: failed program was:" >&5
7021 +sed 's/^/| /' conftest.$ac_ext >&5
7023 + cat >conftest.$ac_ext <<_ACEOF
7024 +/* confdefs.h. */
7025 +_ACEOF
7026 +cat confdefs.h >>conftest.$ac_ext
7027 +cat >>conftest.$ac_ext <<_ACEOF
7028 +/* end confdefs.h. */
7029 +$ac_includes_default
7030 + typedef __int64 ac__type_sizeof_;
7031 +int
7032 +main ()
7034 - FILE *f=fopen("conftestval", "w");
7035 - if (!f) exit(1);
7036 - fprintf(f, "%d\n", sizeof(__int64));
7037 - exit(0);
7038 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7039 +test_array [0] = 0
7042 + return 0;
7044 -EOF
7045 -if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7046 -then
7047 - ac_cv_sizeof___int64=`cat conftestval`
7048 +_ACEOF
7049 +rm -f conftest.$ac_objext
7050 +if { (ac_try="$ac_compile"
7051 +case "(($ac_try" in
7052 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 + *) ac_try_echo=$ac_try;;
7054 +esac
7055 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 + (eval "$ac_compile") 2>conftest.er1
7057 + ac_status=$?
7058 + grep -v '^ *+' conftest.er1 >conftest.err
7059 + rm -f conftest.er1
7060 + cat conftest.err >&5
7061 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 + (exit $ac_status); } && {
7063 + test -z "$ac_c_werror_flag" ||
7064 + test ! -s conftest.err
7065 + } && test -s conftest.$ac_objext; then
7066 + ac_hi=-1 ac_mid=-1
7067 + while :; do
7068 + cat >conftest.$ac_ext <<_ACEOF
7069 +/* confdefs.h. */
7070 +_ACEOF
7071 +cat confdefs.h >>conftest.$ac_ext
7072 +cat >>conftest.$ac_ext <<_ACEOF
7073 +/* end confdefs.h. */
7074 +$ac_includes_default
7075 + typedef __int64 ac__type_sizeof_;
7076 +int
7077 +main ()
7079 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7080 +test_array [0] = 0
7083 + return 0;
7085 +_ACEOF
7086 +rm -f conftest.$ac_objext
7087 +if { (ac_try="$ac_compile"
7088 +case "(($ac_try" in
7089 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 + *) ac_try_echo=$ac_try;;
7091 +esac
7092 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 + (eval "$ac_compile") 2>conftest.er1
7094 + ac_status=$?
7095 + grep -v '^ *+' conftest.er1 >conftest.err
7096 + rm -f conftest.er1
7097 + cat conftest.err >&5
7098 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 + (exit $ac_status); } && {
7100 + test -z "$ac_c_werror_flag" ||
7101 + test ! -s conftest.err
7102 + } && test -s conftest.$ac_objext; then
7103 + ac_lo=$ac_mid; break
7104 else
7105 - echo "configure: failed program was:" >&5
7106 - cat conftest.$ac_ext >&5
7107 - rm -fr conftest*
7108 - ac_cv_sizeof___int64=0
7109 + echo "$as_me: failed program was:" >&5
7110 +sed 's/^/| /' conftest.$ac_ext >&5
7112 + ac_hi=`expr '(' $ac_mid ')' - 1`
7113 + if test $ac_mid -le $ac_hi; then
7114 + ac_lo= ac_hi=
7115 + break
7116 + fi
7117 + ac_mid=`expr 2 '*' $ac_mid`
7119 -rm -fr conftest*
7121 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122 + done
7123 +else
7124 + echo "$as_me: failed program was:" >&5
7125 +sed 's/^/| /' conftest.$ac_ext >&5
7127 + ac_lo= ac_hi=
7130 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7132 -echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
7133 -cat >> confdefs.h <<EOF
7135 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 +# Binary search between lo and hi bounds.
7137 +while test "x$ac_lo" != "x$ac_hi"; do
7138 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7139 + cat >conftest.$ac_ext <<_ACEOF
7140 +/* confdefs.h. */
7141 +_ACEOF
7142 +cat confdefs.h >>conftest.$ac_ext
7143 +cat >>conftest.$ac_ext <<_ACEOF
7144 +/* end confdefs.h. */
7145 +$ac_includes_default
7146 + typedef __int64 ac__type_sizeof_;
7147 +int
7148 +main ()
7150 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7151 +test_array [0] = 0
7154 + return 0;
7156 +_ACEOF
7157 +rm -f conftest.$ac_objext
7158 +if { (ac_try="$ac_compile"
7159 +case "(($ac_try" in
7160 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 + *) ac_try_echo=$ac_try;;
7162 +esac
7163 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 + (eval "$ac_compile") 2>conftest.er1
7165 + ac_status=$?
7166 + grep -v '^ *+' conftest.er1 >conftest.err
7167 + rm -f conftest.er1
7168 + cat conftest.err >&5
7169 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 + (exit $ac_status); } && {
7171 + test -z "$ac_c_werror_flag" ||
7172 + test ! -s conftest.err
7173 + } && test -s conftest.$ac_objext; then
7174 + ac_hi=$ac_mid
7175 +else
7176 + echo "$as_me: failed program was:" >&5
7177 +sed 's/^/| /' conftest.$ac_ext >&5
7179 + ac_lo=`expr '(' $ac_mid ')' + 1`
7182 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 +done
7184 +case $ac_lo in
7185 +?*) ac_cv_sizeof___int64=$ac_lo;;
7186 +'') if test "$ac_cv_type___int64" = yes; then
7187 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
7188 +See \`config.log' for more details." >&5
7189 +echo "$as_me: error: cannot compute sizeof (__int64)
7190 +See \`config.log' for more details." >&2;}
7191 + { (exit 77); exit 77; }; }
7192 + else
7193 + ac_cv_sizeof___int64=0
7194 + fi ;;
7195 +esac
7196 +else
7197 + cat >conftest.$ac_ext <<_ACEOF
7198 +/* confdefs.h. */
7199 +_ACEOF
7200 +cat confdefs.h >>conftest.$ac_ext
7201 +cat >>conftest.$ac_ext <<_ACEOF
7202 +/* end confdefs.h. */
7203 +$ac_includes_default
7204 + typedef __int64 ac__type_sizeof_;
7205 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7206 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7207 +#include <stdio.h>
7208 +#include <stdlib.h>
7209 +int
7210 +main ()
7213 + FILE *f = fopen ("conftest.val", "w");
7214 + if (! f)
7215 + return 1;
7216 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7218 + long int i = longval ();
7219 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
7220 + return 1;
7221 + fprintf (f, "%ld\n", i);
7223 + else
7225 + unsigned long int i = ulongval ();
7226 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
7227 + return 1;
7228 + fprintf (f, "%lu\n", i);
7230 + return ferror (f) || fclose (f) != 0;
7233 + return 0;
7235 +_ACEOF
7236 +rm -f conftest$ac_exeext
7237 +if { (ac_try="$ac_link"
7238 +case "(($ac_try" in
7239 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 + *) ac_try_echo=$ac_try;;
7241 +esac
7242 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243 + (eval "$ac_link") 2>&5
7244 + ac_status=$?
7245 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7247 + { (case "(($ac_try" in
7248 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249 + *) ac_try_echo=$ac_try;;
7250 +esac
7251 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252 + (eval "$ac_try") 2>&5
7253 + ac_status=$?
7254 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 + (exit $ac_status); }; }; then
7256 + ac_cv_sizeof___int64=`cat conftest.val`
7257 +else
7258 + echo "$as_me: program exited with status $ac_status" >&5
7259 +echo "$as_me: failed program was:" >&5
7260 +sed 's/^/| /' conftest.$ac_ext >&5
7262 +( exit $ac_status )
7263 +if test "$ac_cv_type___int64" = yes; then
7264 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
7265 +See \`config.log' for more details." >&5
7266 +echo "$as_me: error: cannot compute sizeof (__int64)
7267 +See \`config.log' for more details." >&2;}
7268 + { (exit 77); exit 77; }; }
7269 + else
7270 + ac_cv_sizeof___int64=0
7271 + fi
7273 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7275 +rm -f conftest.val
7277 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7278 +echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
7282 +cat >>confdefs.h <<_ACEOF
7283 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7284 -EOF
7285 +_ACEOF
7289 @@ -1674,362 +6350,652 @@ if test "$ac_cv_header_elf_h" = yes \
7291 # Slowaris declares Elf32_Dyn in <link.h>.
7292 # QNX declares Elf32_Dyn in <sys/link.h>.
7293 - echo $ac_n "checking for struct Elf32_Dyn""... $ac_c" 1>&6
7294 -echo "configure:1679: checking for struct Elf32_Dyn" >&5
7295 -if eval "test \"`echo '$''{'libelf_cv_struct_elf32_dyn'+set}'`\" = set"; then
7296 - echo $ac_n "(cached) $ac_c" 1>&6
7297 + { echo "$as_me:$LINENO: checking for struct Elf32_Dyn" >&5
7298 +echo $ECHO_N "checking for struct Elf32_Dyn... $ECHO_C" >&6; }
7299 +if test "${libelf_cv_struct_elf32_dyn+set}" = set; then
7300 + echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7303 - cat > conftest.$ac_ext <<EOF
7304 -#line 1685 "configure"
7305 -#include "confdefs.h"
7307 + cat >conftest.$ac_ext <<_ACEOF
7308 +/* confdefs.h. */
7309 +_ACEOF
7310 +cat confdefs.h >>conftest.$ac_ext
7311 +cat >>conftest.$ac_ext <<_ACEOF
7312 +/* end confdefs.h. */
7313 #include __LIBELF_HEADER_ELF_H
7314 -int main() {
7315 +int
7316 +main ()
7318 Elf32_Dyn x
7319 -; return 0; }
7320 -EOF
7321 -if { (eval echo configure:1692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7322 - rm -rf conftest*
7324 + return 0;
7326 +_ACEOF
7327 +rm -f conftest.$ac_objext
7328 +if { (ac_try="$ac_compile"
7329 +case "(($ac_try" in
7330 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 + *) ac_try_echo=$ac_try;;
7332 +esac
7333 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7334 + (eval "$ac_compile") 2>conftest.er1
7335 + ac_status=$?
7336 + grep -v '^ *+' conftest.er1 >conftest.err
7337 + rm -f conftest.er1
7338 + cat conftest.err >&5
7339 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 + (exit $ac_status); } && {
7341 + test -z "$ac_c_werror_flag" ||
7342 + test ! -s conftest.err
7343 + } && test -s conftest.$ac_objext; then
7344 libelf_cv_struct_elf32_dyn=yes
7345 else
7346 - echo "configure: failed program was:" >&5
7347 - cat conftest.$ac_ext >&5
7348 - rm -rf conftest*
7349 - cat > conftest.$ac_ext <<EOF
7350 -#line 1700 "configure"
7351 -#include "confdefs.h"
7352 + echo "$as_me: failed program was:" >&5
7353 +sed 's/^/| /' conftest.$ac_ext >&5
7355 + cat >conftest.$ac_ext <<_ACEOF
7356 +/* confdefs.h. */
7357 +_ACEOF
7358 +cat confdefs.h >>conftest.$ac_ext
7359 +cat >>conftest.$ac_ext <<_ACEOF
7360 +/* end confdefs.h. */
7361 #include <link.h>
7362 -int main() {
7363 +int
7364 +main ()
7366 Elf32_Dyn x
7367 -; return 0; }
7368 -EOF
7369 -if { (eval echo configure:1707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7370 - rm -rf conftest*
7372 + return 0;
7374 +_ACEOF
7375 +rm -f conftest.$ac_objext
7376 +if { (ac_try="$ac_compile"
7377 +case "(($ac_try" in
7378 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 + *) ac_try_echo=$ac_try;;
7380 +esac
7381 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7382 + (eval "$ac_compile") 2>conftest.er1
7383 + ac_status=$?
7384 + grep -v '^ *+' conftest.er1 >conftest.err
7385 + rm -f conftest.er1
7386 + cat conftest.err >&5
7387 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 + (exit $ac_status); } && {
7389 + test -z "$ac_c_werror_flag" ||
7390 + test ! -s conftest.err
7391 + } && test -s conftest.$ac_objext; then
7392 libelf_cv_struct_elf32_dyn=link.h
7393 else
7394 - echo "configure: failed program was:" >&5
7395 - cat conftest.$ac_ext >&5
7396 - rm -rf conftest*
7397 - cat > conftest.$ac_ext <<EOF
7398 -#line 1715 "configure"
7399 -#include "confdefs.h"
7400 + echo "$as_me: failed program was:" >&5
7401 +sed 's/^/| /' conftest.$ac_ext >&5
7403 + cat >conftest.$ac_ext <<_ACEOF
7404 +/* confdefs.h. */
7405 +_ACEOF
7406 +cat confdefs.h >>conftest.$ac_ext
7407 +cat >>conftest.$ac_ext <<_ACEOF
7408 +/* end confdefs.h. */
7409 #include <sys/link.h>
7410 -int main() {
7411 +int
7412 +main ()
7414 Elf32_Dyn x
7415 -; return 0; }
7416 -EOF
7417 -if { (eval echo configure:1722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7418 - rm -rf conftest*
7420 + return 0;
7422 +_ACEOF
7423 +rm -f conftest.$ac_objext
7424 +if { (ac_try="$ac_compile"
7425 +case "(($ac_try" in
7426 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427 + *) ac_try_echo=$ac_try;;
7428 +esac
7429 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7430 + (eval "$ac_compile") 2>conftest.er1
7431 + ac_status=$?
7432 + grep -v '^ *+' conftest.er1 >conftest.err
7433 + rm -f conftest.er1
7434 + cat conftest.err >&5
7435 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 + (exit $ac_status); } && {
7437 + test -z "$ac_c_werror_flag" ||
7438 + test ! -s conftest.err
7439 + } && test -s conftest.$ac_objext; then
7440 libelf_cv_struct_elf32_dyn=sys/link.h
7441 else
7442 - echo "configure: failed program was:" >&5
7443 - cat conftest.$ac_ext >&5
7444 - rm -rf conftest*
7445 - libelf_cv_struct_elf32_dyn=no
7447 -rm -f conftest*
7448 + echo "$as_me: failed program was:" >&5
7449 +sed 's/^/| /' conftest.$ac_ext >&5
7451 + libelf_cv_struct_elf32_dyn=no
7453 -rm -f conftest*
7455 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 -rm -f conftest*
7459 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 -echo "$ac_t""$libelf_cv_struct_elf32_dyn" 1>&6
7463 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 +{ echo "$as_me:$LINENO: result: $libelf_cv_struct_elf32_dyn" >&5
7466 +echo "${ECHO_T}$libelf_cv_struct_elf32_dyn" >&6; }
7467 if test "$libelf_cv_struct_elf32_dyn" = link.h; then
7468 - cat >> confdefs.h <<\EOF
7469 + cat >>confdefs.h <<\_ACEOF
7470 #define __LIBELF_NEED_LINK_H 1
7471 -EOF
7472 +_ACEOF
7474 elif test "$libelf_cv_struct_elf32_dyn" = sys/link.h; then
7475 - cat >> confdefs.h <<\EOF
7476 + cat >>confdefs.h <<\_ACEOF
7477 #define __LIBELF_NEED_SYS_LINK_H 1
7478 -EOF
7479 +_ACEOF
7481 elif test "$libelf_cv_struct_elf32_dyn" = no; then
7482 - { echo "configure: error: no declaration for Elf32_Dyn" 1>&2; exit 1; }
7483 + { { echo "$as_me:$LINENO: error: no declaration for Elf32_Dyn" >&5
7484 +echo "$as_me: error: no declaration for Elf32_Dyn" >&2;}
7485 + { (exit 1); exit 1; }; }
7488 # Linux declares struct nlist in <elf.h>.
7489 - echo $ac_n "checking for struct nlist in elf.h""... $ac_c" 1>&6
7490 -echo "configure:1755: checking for struct nlist in elf.h" >&5
7491 -if eval "test \"`echo '$''{'libelf_cv_struct_nlist'+set}'`\" = set"; then
7492 - echo $ac_n "(cached) $ac_c" 1>&6
7493 + { echo "$as_me:$LINENO: checking for struct nlist in elf.h" >&5
7494 +echo $ECHO_N "checking for struct nlist in elf.h... $ECHO_C" >&6; }
7495 +if test "${libelf_cv_struct_nlist+set}" = set; then
7496 + echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7499 - cat > conftest.$ac_ext <<EOF
7500 -#line 1761 "configure"
7501 -#include "confdefs.h"
7503 + cat >conftest.$ac_ext <<_ACEOF
7504 +/* confdefs.h. */
7505 +_ACEOF
7506 +cat confdefs.h >>conftest.$ac_ext
7507 +cat >>conftest.$ac_ext <<_ACEOF
7508 +/* end confdefs.h. */
7509 #include __LIBELF_HEADER_ELF_H
7510 -int main() {
7511 +int
7512 +main ()
7514 struct nlist nl
7515 -; return 0; }
7516 -EOF
7517 -if { (eval echo configure:1768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7518 - rm -rf conftest*
7520 + return 0;
7522 +_ACEOF
7523 +rm -f conftest.$ac_objext
7524 +if { (ac_try="$ac_compile"
7525 +case "(($ac_try" in
7526 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 + *) ac_try_echo=$ac_try;;
7528 +esac
7529 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 + (eval "$ac_compile") 2>conftest.er1
7531 + ac_status=$?
7532 + grep -v '^ *+' conftest.er1 >conftest.err
7533 + rm -f conftest.er1
7534 + cat conftest.err >&5
7535 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 + (exit $ac_status); } && {
7537 + test -z "$ac_c_werror_flag" ||
7538 + test ! -s conftest.err
7539 + } && test -s conftest.$ac_objext; then
7540 libelf_cv_struct_nlist=yes
7541 else
7542 - echo "configure: failed program was:" >&5
7543 - cat conftest.$ac_ext >&5
7544 - rm -rf conftest*
7545 - libelf_cv_struct_nlist=no
7547 -rm -f conftest*
7548 + echo "$as_me: failed program was:" >&5
7549 +sed 's/^/| /' conftest.$ac_ext >&5
7551 + libelf_cv_struct_nlist=no
7554 -echo "$ac_t""$libelf_cv_struct_nlist" 1>&6
7555 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 +{ echo "$as_me:$LINENO: result: $libelf_cv_struct_nlist" >&5
7558 +echo "${ECHO_T}$libelf_cv_struct_nlist" >&6; }
7559 if test "$libelf_cv_struct_nlist" = yes; then
7560 - cat >> confdefs.h <<\EOF
7561 + cat >>confdefs.h <<\_ACEOF
7562 #define HAVE_STRUCT_NLIST_DECLARATION 1
7563 -EOF
7564 +_ACEOF
7568 # Check for 64-bit data types.
7569 - echo $ac_n "checking for struct Elf64_Ehdr""... $ac_c" 1>&6
7570 -echo "configure:1790: checking for struct Elf64_Ehdr" >&5
7571 -if eval "test \"`echo '$''{'libelf_cv_struct_elf64_ehdr'+set}'`\" = set"; then
7572 - echo $ac_n "(cached) $ac_c" 1>&6
7573 + { echo "$as_me:$LINENO: checking for struct Elf64_Ehdr" >&5
7574 +echo $ECHO_N "checking for struct Elf64_Ehdr... $ECHO_C" >&6; }
7575 +if test "${libelf_cv_struct_elf64_ehdr+set}" = set; then
7576 + echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578 - cat > conftest.$ac_ext <<EOF
7579 -#line 1795 "configure"
7580 -#include "confdefs.h"
7581 + cat >conftest.$ac_ext <<_ACEOF
7582 +/* confdefs.h. */
7583 +_ACEOF
7584 +cat confdefs.h >>conftest.$ac_ext
7585 +cat >>conftest.$ac_ext <<_ACEOF
7586 +/* end confdefs.h. */
7587 #include __LIBELF_HEADER_ELF_H
7588 -int main() {
7589 +int
7590 +main ()
7592 Elf64_Ehdr x
7593 -; return 0; }
7594 -EOF
7595 -if { (eval echo configure:1802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7596 - rm -rf conftest*
7598 + return 0;
7600 +_ACEOF
7601 +rm -f conftest.$ac_objext
7602 +if { (ac_try="$ac_compile"
7603 +case "(($ac_try" in
7604 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 + *) ac_try_echo=$ac_try;;
7606 +esac
7607 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608 + (eval "$ac_compile") 2>conftest.er1
7609 + ac_status=$?
7610 + grep -v '^ *+' conftest.er1 >conftest.err
7611 + rm -f conftest.er1
7612 + cat conftest.err >&5
7613 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 + (exit $ac_status); } && {
7615 + test -z "$ac_c_werror_flag" ||
7616 + test ! -s conftest.err
7617 + } && test -s conftest.$ac_objext; then
7618 libelf_cv_struct_elf64_ehdr=yes
7619 else
7620 - echo "configure: failed program was:" >&5
7621 - cat conftest.$ac_ext >&5
7622 - rm -rf conftest*
7623 - libelf_cv_struct_elf64_ehdr=no
7625 -rm -f conftest*
7626 + echo "$as_me: failed program was:" >&5
7627 +sed 's/^/| /' conftest.$ac_ext >&5
7629 + libelf_cv_struct_elf64_ehdr=no
7632 -echo "$ac_t""$libelf_cv_struct_elf64_ehdr" 1>&6
7633 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 +{ echo "$as_me:$LINENO: result: $libelf_cv_struct_elf64_ehdr" >&5
7636 +echo "${ECHO_T}$libelf_cv_struct_elf64_ehdr" >&6; }
7638 # Linux lacks typedefs for scalar ELF64_* types.
7639 - echo $ac_n "checking for Elf64_Addr""... $ac_c" 1>&6
7640 -echo "configure:1818: checking for Elf64_Addr" >&5
7641 -if eval "test \"`echo '$''{'libelf_cv_type_elf64_addr'+set}'`\" = set"; then
7642 - echo $ac_n "(cached) $ac_c" 1>&6
7643 + { echo "$as_me:$LINENO: checking for Elf64_Addr" >&5
7644 +echo $ECHO_N "checking for Elf64_Addr... $ECHO_C" >&6; }
7645 +if test "${libelf_cv_type_elf64_addr+set}" = set; then
7646 + echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648 - cat > conftest.$ac_ext <<EOF
7649 -#line 1823 "configure"
7650 -#include "confdefs.h"
7651 + cat >conftest.$ac_ext <<_ACEOF
7652 +/* confdefs.h. */
7653 +_ACEOF
7654 +cat confdefs.h >>conftest.$ac_ext
7655 +cat >>conftest.$ac_ext <<_ACEOF
7656 +/* end confdefs.h. */
7657 #include __LIBELF_HEADER_ELF_H
7658 -int main() {
7659 +int
7660 +main ()
7662 Elf64_Addr x
7663 -; return 0; }
7664 -EOF
7665 -if { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7666 - rm -rf conftest*
7668 + return 0;
7670 +_ACEOF
7671 +rm -f conftest.$ac_objext
7672 +if { (ac_try="$ac_compile"
7673 +case "(($ac_try" in
7674 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 + *) ac_try_echo=$ac_try;;
7676 +esac
7677 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7678 + (eval "$ac_compile") 2>conftest.er1
7679 + ac_status=$?
7680 + grep -v '^ *+' conftest.er1 >conftest.err
7681 + rm -f conftest.er1
7682 + cat conftest.err >&5
7683 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 + (exit $ac_status); } && {
7685 + test -z "$ac_c_werror_flag" ||
7686 + test ! -s conftest.err
7687 + } && test -s conftest.$ac_objext; then
7688 libelf_cv_type_elf64_addr=yes
7689 else
7690 - echo "configure: failed program was:" >&5
7691 - cat conftest.$ac_ext >&5
7692 - rm -rf conftest*
7693 - libelf_cv_type_elf64_addr=no
7695 -rm -f conftest*
7696 + echo "$as_me: failed program was:" >&5
7697 +sed 's/^/| /' conftest.$ac_ext >&5
7699 + libelf_cv_type_elf64_addr=no
7702 -echo "$ac_t""$libelf_cv_type_elf64_addr" 1>&6
7703 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705 +{ echo "$as_me:$LINENO: result: $libelf_cv_type_elf64_addr" >&5
7706 +echo "${ECHO_T}$libelf_cv_type_elf64_addr" >&6; }
7708 # IRIX' struct Elf64_Rel is slightly different. Ugh.
7709 - echo $ac_n "checking for struct Elf64_Rel""... $ac_c" 1>&6
7710 -echo "configure:1846: checking for struct Elf64_Rel" >&5
7711 -if eval "test \"`echo '$''{'libelf_cv_struct_elf64_rel'+set}'`\" = set"; then
7712 - echo $ac_n "(cached) $ac_c" 1>&6
7713 + { echo "$as_me:$LINENO: checking for struct Elf64_Rel" >&5
7714 +echo $ECHO_N "checking for struct Elf64_Rel... $ECHO_C" >&6; }
7715 +if test "${libelf_cv_struct_elf64_rel+set}" = set; then
7716 + echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 - cat > conftest.$ac_ext <<EOF
7719 -#line 1851 "configure"
7720 -#include "confdefs.h"
7721 + cat >conftest.$ac_ext <<_ACEOF
7722 +/* confdefs.h. */
7723 +_ACEOF
7724 +cat confdefs.h >>conftest.$ac_ext
7725 +cat >>conftest.$ac_ext <<_ACEOF
7726 +/* end confdefs.h. */
7727 #include __LIBELF_HEADER_ELF_H
7728 -int main() {
7729 +int
7730 +main ()
7732 Elf64_Rel x; x.r_info = 1
7733 -; return 0; }
7734 -EOF
7735 -if { (eval echo configure:1858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7736 - rm -rf conftest*
7738 + return 0;
7740 +_ACEOF
7741 +rm -f conftest.$ac_objext
7742 +if { (ac_try="$ac_compile"
7743 +case "(($ac_try" in
7744 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745 + *) ac_try_echo=$ac_try;;
7746 +esac
7747 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748 + (eval "$ac_compile") 2>conftest.er1
7749 + ac_status=$?
7750 + grep -v '^ *+' conftest.er1 >conftest.err
7751 + rm -f conftest.er1
7752 + cat conftest.err >&5
7753 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 + (exit $ac_status); } && {
7755 + test -z "$ac_c_werror_flag" ||
7756 + test ! -s conftest.err
7757 + } && test -s conftest.$ac_objext; then
7758 libelf_cv_struct_elf64_rel=yes
7759 else
7760 - echo "configure: failed program was:" >&5
7761 - cat conftest.$ac_ext >&5
7762 - rm -rf conftest*
7763 - cat > conftest.$ac_ext <<EOF
7764 -#line 1866 "configure"
7765 -#include "confdefs.h"
7766 + echo "$as_me: failed program was:" >&5
7767 +sed 's/^/| /' conftest.$ac_ext >&5
7769 + cat >conftest.$ac_ext <<_ACEOF
7770 +/* confdefs.h. */
7771 +_ACEOF
7772 +cat confdefs.h >>conftest.$ac_ext
7773 +cat >>conftest.$ac_ext <<_ACEOF
7774 +/* end confdefs.h. */
7775 #include __LIBELF_HEADER_ELF_H
7776 -int main() {
7777 +int
7778 +main ()
7780 Elf64_Rel x; x.r_sym = 1
7781 -; return 0; }
7782 -EOF
7783 -if { (eval echo configure:1873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7784 - rm -rf conftest*
7786 + return 0;
7788 +_ACEOF
7789 +rm -f conftest.$ac_objext
7790 +if { (ac_try="$ac_compile"
7791 +case "(($ac_try" in
7792 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 + *) ac_try_echo=$ac_try;;
7794 +esac
7795 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796 + (eval "$ac_compile") 2>conftest.er1
7797 + ac_status=$?
7798 + grep -v '^ *+' conftest.er1 >conftest.err
7799 + rm -f conftest.er1
7800 + cat conftest.err >&5
7801 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 + (exit $ac_status); } && {
7803 + test -z "$ac_c_werror_flag" ||
7804 + test ! -s conftest.err
7805 + } && test -s conftest.$ac_objext; then
7806 libelf_cv_struct_elf64_rel=irix
7807 else
7808 - echo "configure: failed program was:" >&5
7809 - cat conftest.$ac_ext >&5
7810 - rm -rf conftest*
7811 - libelf_cv_struct_elf64_rel=no
7813 -rm -f conftest*
7814 + echo "$as_me: failed program was:" >&5
7815 +sed 's/^/| /' conftest.$ac_ext >&5
7817 + libelf_cv_struct_elf64_rel=no
7819 -rm -f conftest*
7821 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824 -echo "$ac_t""$libelf_cv_struct_elf64_rel" 1>&6
7825 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 +{ echo "$as_me:$LINENO: result: $libelf_cv_struct_elf64_rel" >&5
7828 +echo "${ECHO_T}$libelf_cv_struct_elf64_rel" >&6; }
7830 + { echo "$as_me:$LINENO: checking for 64bit support" >&5
7831 +echo $ECHO_N "checking for 64bit support... $ECHO_C" >&6; }
7832 +if test "${libelf_64bit+set}" = set; then
7833 + echo $ECHO_N "(cached) $ECHO_C" >&6
7834 +else
7835 case "$libelf_cv_struct_elf64_ehdr:\
7836 $libelf_cv_type_elf64_addr:\
7837 $libelf_cv_struct_elf64_rel" in
7838 yes:yes:yes)
7839 libelf_64bit=yes;;
7840 yes:yes:irix)
7841 - cat >> confdefs.h <<\EOF
7842 -#define __LIBELF64_IRIX 1
7843 -EOF
7845 - libelf_64bit=yes;;
7846 + libelf_64bit=irix;;
7847 yes:no:yes)
7848 - cat >> confdefs.h <<\EOF
7849 -#define __LIBELF64_LINUX 1
7850 -EOF
7852 - libelf_64bit=yes;;
7853 + libelf_64bit=linux;;
7855 libelf_64bit=no;;
7856 esac
7859 +{ echo "$as_me:$LINENO: result: $libelf_64bit" >&5
7860 +echo "${ECHO_T}$libelf_64bit" >&6; }
7861 + case $libelf_64bit in
7862 + yes) ;;
7863 + linux) cat >>confdefs.h <<\_ACEOF
7864 +#define __LIBELF64_LINUX 1
7865 +_ACEOF
7866 + ;;
7867 + irix) cat >>confdefs.h <<\_ACEOF
7868 +#define __LIBELF64_IRIX 1
7869 +_ACEOF
7870 + ;;
7871 + esac
7873 # Check for symbol versioning definitions
7874 - echo $ac_n "checking for Elf32_Verdef""... $ac_c" 1>&6
7875 -echo "configure:1912: checking for Elf32_Verdef" >&5
7876 -if eval "test \"`echo '$''{'libelf_cv_verdef32'+set}'`\" = set"; then
7877 - echo $ac_n "(cached) $ac_c" 1>&6
7878 + { echo "$as_me:$LINENO: checking for Elf32_Verdef" >&5
7879 +echo $ECHO_N "checking for Elf32_Verdef... $ECHO_C" >&6; }
7880 +if test "${libelf_cv_verdef32+set}" = set; then
7881 + echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883 - cat > conftest.$ac_ext <<EOF
7884 -#line 1917 "configure"
7885 -#include "confdefs.h"
7886 + cat >conftest.$ac_ext <<_ACEOF
7887 +/* confdefs.h. */
7888 +_ACEOF
7889 +cat confdefs.h >>conftest.$ac_ext
7890 +cat >>conftest.$ac_ext <<_ACEOF
7891 +/* end confdefs.h. */
7892 #include __LIBELF_HEADER_ELF_H
7893 #if __LIBELF_NEED_LINK_H
7894 #include <link.h> /* Solaris wants this */
7895 #endif
7896 -int main() {
7897 +int
7898 +main ()
7900 struct {
7901 Elf32_Verdef vd;
7902 Elf32_Verdaux vda;
7903 Elf32_Verneed vn;
7904 Elf32_Vernaux vna;
7906 -; return 0; }
7907 -EOF
7908 -if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7909 - rm -rf conftest*
7911 + return 0;
7913 +_ACEOF
7914 +rm -f conftest.$ac_objext
7915 +if { (ac_try="$ac_compile"
7916 +case "(($ac_try" in
7917 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 + *) ac_try_echo=$ac_try;;
7919 +esac
7920 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 + (eval "$ac_compile") 2>conftest.er1
7922 + ac_status=$?
7923 + grep -v '^ *+' conftest.er1 >conftest.err
7924 + rm -f conftest.er1
7925 + cat conftest.err >&5
7926 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 + (exit $ac_status); } && {
7928 + test -z "$ac_c_werror_flag" ||
7929 + test ! -s conftest.err
7930 + } && test -s conftest.$ac_objext; then
7931 libelf_cv_verdef32=yes
7932 else
7933 - echo "configure: failed program was:" >&5
7934 - cat conftest.$ac_ext >&5
7935 - rm -rf conftest*
7936 - libelf_cv_verdef32=no
7938 -rm -f conftest*
7939 + echo "$as_me: failed program was:" >&5
7940 +sed 's/^/| /' conftest.$ac_ext >&5
7942 + libelf_cv_verdef32=no
7945 -echo "$ac_t""$libelf_cv_verdef32" 1>&6
7946 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948 +{ echo "$as_me:$LINENO: result: $libelf_cv_verdef32" >&5
7949 +echo "${ECHO_T}$libelf_cv_verdef32" >&6; }
7951 - echo $ac_n "checking for Elf64_Verdef""... $ac_c" 1>&6
7952 -echo "configure:1947: checking for Elf64_Verdef" >&5
7953 -if eval "test \"`echo '$''{'libelf_cv_verdef64'+set}'`\" = set"; then
7954 - echo $ac_n "(cached) $ac_c" 1>&6
7955 + { echo "$as_me:$LINENO: checking for Elf64_Verdef" >&5
7956 +echo $ECHO_N "checking for Elf64_Verdef... $ECHO_C" >&6; }
7957 +if test "${libelf_cv_verdef64+set}" = set; then
7958 + echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960 - cat > conftest.$ac_ext <<EOF
7961 -#line 1952 "configure"
7962 -#include "confdefs.h"
7963 + cat >conftest.$ac_ext <<_ACEOF
7964 +/* confdefs.h. */
7965 +_ACEOF
7966 +cat confdefs.h >>conftest.$ac_ext
7967 +cat >>conftest.$ac_ext <<_ACEOF
7968 +/* end confdefs.h. */
7969 #include __LIBELF_HEADER_ELF_H
7970 #if __LIBELF_NEED_LINK_H
7971 #include <link.h> /* Solaris wants this */
7972 #endif
7973 -int main() {
7974 +int
7975 +main ()
7977 struct {
7978 Elf64_Verdef vd;
7979 Elf64_Verdaux vda;
7980 Elf64_Verneed vn;
7981 Elf64_Vernaux vna;
7983 -; return 0; }
7984 -EOF
7985 -if { (eval echo configure:1967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7986 - rm -rf conftest*
7988 + return 0;
7990 +_ACEOF
7991 +rm -f conftest.$ac_objext
7992 +if { (ac_try="$ac_compile"
7993 +case "(($ac_try" in
7994 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7995 + *) ac_try_echo=$ac_try;;
7996 +esac
7997 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7998 + (eval "$ac_compile") 2>conftest.er1
7999 + ac_status=$?
8000 + grep -v '^ *+' conftest.er1 >conftest.err
8001 + rm -f conftest.er1
8002 + cat conftest.err >&5
8003 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 + (exit $ac_status); } && {
8005 + test -z "$ac_c_werror_flag" ||
8006 + test ! -s conftest.err
8007 + } && test -s conftest.$ac_objext; then
8008 libelf_cv_verdef64=yes
8009 else
8010 - echo "configure: failed program was:" >&5
8011 - cat conftest.$ac_ext >&5
8012 - rm -rf conftest*
8013 - libelf_cv_verdef64=no
8015 -rm -f conftest*
8016 + echo "$as_me: failed program was:" >&5
8017 +sed 's/^/| /' conftest.$ac_ext >&5
8019 + libelf_cv_verdef64=no
8022 -echo "$ac_t""$libelf_cv_verdef64" 1>&6
8023 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025 +{ echo "$as_me:$LINENO: result: $libelf_cv_verdef64" >&5
8026 +echo "${ECHO_T}$libelf_cv_verdef64" >&6; }
8028 - echo $ac_n "checking for SHT_SUNW_verdef""... $ac_c" 1>&6
8029 -echo "configure:1982: checking for SHT_SUNW_verdef" >&5
8030 -if eval "test \"`echo '$''{'libelf_cv_sun_verdef'+set}'`\" = set"; then
8031 - echo $ac_n "(cached) $ac_c" 1>&6
8032 + { echo "$as_me:$LINENO: checking for SHT_SUNW_verdef" >&5
8033 +echo $ECHO_N "checking for SHT_SUNW_verdef... $ECHO_C" >&6; }
8034 +if test "${libelf_cv_sun_verdef+set}" = set; then
8035 + echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037 - cat > conftest.$ac_ext <<EOF
8038 -#line 1987 "configure"
8039 -#include "confdefs.h"
8040 + cat >conftest.$ac_ext <<_ACEOF
8041 +/* confdefs.h. */
8042 +_ACEOF
8043 +cat confdefs.h >>conftest.$ac_ext
8044 +cat >>conftest.$ac_ext <<_ACEOF
8045 +/* end confdefs.h. */
8046 #include __LIBELF_HEADER_ELF_H
8047 -int main() {
8048 +int
8049 +main ()
8051 Elf32_Word x = SHT_SUNW_verdef + SHT_SUNW_verneed + SHT_SUNW_versym
8052 -; return 0; }
8053 -EOF
8054 -if { (eval echo configure:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8055 - rm -rf conftest*
8057 + return 0;
8059 +_ACEOF
8060 +rm -f conftest.$ac_objext
8061 +if { (ac_try="$ac_compile"
8062 +case "(($ac_try" in
8063 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 + *) ac_try_echo=$ac_try;;
8065 +esac
8066 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 + (eval "$ac_compile") 2>conftest.er1
8068 + ac_status=$?
8069 + grep -v '^ *+' conftest.er1 >conftest.err
8070 + rm -f conftest.er1
8071 + cat conftest.err >&5
8072 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 + (exit $ac_status); } && {
8074 + test -z "$ac_c_werror_flag" ||
8075 + test ! -s conftest.err
8076 + } && test -s conftest.$ac_objext; then
8077 libelf_cv_sun_verdef=yes
8078 else
8079 - echo "configure: failed program was:" >&5
8080 - cat conftest.$ac_ext >&5
8081 - rm -rf conftest*
8082 - libelf_cv_sun_verdef=no
8084 -rm -f conftest*
8085 + echo "$as_me: failed program was:" >&5
8086 +sed 's/^/| /' conftest.$ac_ext >&5
8088 + libelf_cv_sun_verdef=no
8091 -echo "$ac_t""$libelf_cv_sun_verdef" 1>&6
8092 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 +{ echo "$as_me:$LINENO: result: $libelf_cv_sun_verdef" >&5
8095 +echo "${ECHO_T}$libelf_cv_sun_verdef" >&6; }
8097 - echo $ac_n "checking for SHT_GNU_verdef""... $ac_c" 1>&6
8098 -echo "configure:2009: checking for SHT_GNU_verdef" >&5
8099 -if eval "test \"`echo '$''{'libelf_cv_gnu_verdef'+set}'`\" = set"; then
8100 - echo $ac_n "(cached) $ac_c" 1>&6
8101 + { echo "$as_me:$LINENO: checking for SHT_GNU_verdef" >&5
8102 +echo $ECHO_N "checking for SHT_GNU_verdef... $ECHO_C" >&6; }
8103 +if test "${libelf_cv_gnu_verdef+set}" = set; then
8104 + echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 - cat > conftest.$ac_ext <<EOF
8107 -#line 2014 "configure"
8108 -#include "confdefs.h"
8109 + cat >conftest.$ac_ext <<_ACEOF
8110 +/* confdefs.h. */
8111 +_ACEOF
8112 +cat confdefs.h >>conftest.$ac_ext
8113 +cat >>conftest.$ac_ext <<_ACEOF
8114 +/* end confdefs.h. */
8115 #include __LIBELF_HEADER_ELF_H
8116 -int main() {
8117 +int
8118 +main ()
8120 Elf32_Word x = SHT_GNU_verdef + SHT_GNU_verneed + SHT_GNU_versym
8121 -; return 0; }
8122 -EOF
8123 -if { (eval echo configure:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8124 - rm -rf conftest*
8126 + return 0;
8128 +_ACEOF
8129 +rm -f conftest.$ac_objext
8130 +if { (ac_try="$ac_compile"
8131 +case "(($ac_try" in
8132 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 + *) ac_try_echo=$ac_try;;
8134 +esac
8135 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 + (eval "$ac_compile") 2>conftest.er1
8137 + ac_status=$?
8138 + grep -v '^ *+' conftest.er1 >conftest.err
8139 + rm -f conftest.er1
8140 + cat conftest.err >&5
8141 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 + (exit $ac_status); } && {
8143 + test -z "$ac_c_werror_flag" ||
8144 + test ! -s conftest.err
8145 + } && test -s conftest.$ac_objext; then
8146 libelf_cv_gnu_verdef=yes
8147 else
8148 - echo "configure: failed program was:" >&5
8149 - cat conftest.$ac_ext >&5
8150 - rm -rf conftest*
8151 - libelf_cv_gnu_verdef=no
8153 -rm -f conftest*
8154 + echo "$as_me: failed program was:" >&5
8155 +sed 's/^/| /' conftest.$ac_ext >&5
8157 + libelf_cv_gnu_verdef=no
8160 -echo "$ac_t""$libelf_cv_gnu_verdef" 1>&6
8161 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163 +{ echo "$as_me:$LINENO: result: $libelf_cv_gnu_verdef" >&5
8164 +echo "${ECHO_T}$libelf_cv_gnu_verdef" >&6; }
8165 else
8166 # lib/elf_repl.h supports 64-bit
8167 libelf_64bit=yes
8168 @@ -2041,12 +7007,12 @@ else
8169 libelf_cv_gnu_verdef=yes
8172 -echo $ac_n "checking for 64-bit integer""... $ac_c" 1>&6
8173 -echo "configure:2046: checking for 64-bit integer" >&5
8174 -if eval "test \"`echo '$''{'libelf_cv_int64'+set}'`\" = set"; then
8175 - echo $ac_n "(cached) $ac_c" 1>&6
8176 +{ echo "$as_me:$LINENO: checking for 64-bit integer" >&5
8177 +echo $ECHO_N "checking for 64-bit integer... $ECHO_C" >&6; }
8178 +if test "${libelf_cv_int64+set}" = set; then
8179 + echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8183 if test "$ac_cv_sizeof_long" = 8; then
8184 libelf_cv_int64='long'
8185 elif test "$ac_cv_sizeof___int64" = 8; then
8186 @@ -2057,27 +7023,27 @@ else
8187 libelf_cv_int64=no
8191 -echo "$ac_t""$libelf_cv_int64" 1>&6
8192 +{ echo "$as_me:$LINENO: result: $libelf_cv_int64" >&5
8193 +echo "${ECHO_T}$libelf_cv_int64" >&6; }
8194 if test "$libelf_cv_int64" = no; then
8195 libelf_64bit=no
8196 else
8197 - cat >> confdefs.h <<EOF
8198 + cat >>confdefs.h <<_ACEOF
8199 #define __libelf_i64_t $libelf_cv_int64
8200 -EOF
8201 +_ACEOF
8203 - cat >> confdefs.h <<EOF
8204 + cat >>confdefs.h <<_ACEOF
8205 #define __libelf_u64_t unsigned $libelf_cv_int64
8206 -EOF
8207 +_ACEOF
8211 -echo $ac_n "checking for 32-bit integer""... $ac_c" 1>&6
8212 -echo "configure:2077: checking for 32-bit integer" >&5
8213 -if eval "test \"`echo '$''{'libelf_cv_int32'+set}'`\" = set"; then
8214 - echo $ac_n "(cached) $ac_c" 1>&6
8215 +{ echo "$as_me:$LINENO: checking for 32-bit integer" >&5
8216 +echo $ECHO_N "checking for 32-bit integer... $ECHO_C" >&6; }
8217 +if test "${libelf_cv_int32+set}" = set; then
8218 + echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8222 if test "$ac_cv_sizeof_int" = 4; then
8223 libelf_cv_int32='int'
8224 elif test "$ac_cv_sizeof_long" = 4; then
8225 @@ -2086,27 +7052,29 @@ else
8226 libelf_cv_int32=no
8230 -echo "$ac_t""$libelf_cv_int32" 1>&6
8231 +{ echo "$as_me:$LINENO: result: $libelf_cv_int32" >&5
8232 +echo "${ECHO_T}$libelf_cv_int32" >&6; }
8233 if test "$libelf_cv_int32" = no; then
8234 - { echo "configure: error: neither int nor long is 32-bit" 1>&2; exit 1; }
8235 + { { echo "$as_me:$LINENO: error: neither int nor long is 32-bit" >&5
8236 +echo "$as_me: error: neither int nor long is 32-bit" >&2;}
8237 + { (exit 1); exit 1; }; }
8238 else
8239 - cat >> confdefs.h <<EOF
8240 + cat >>confdefs.h <<_ACEOF
8241 #define __libelf_i32_t $libelf_cv_int32
8242 -EOF
8243 +_ACEOF
8245 - cat >> confdefs.h <<EOF
8246 + cat >>confdefs.h <<_ACEOF
8247 #define __libelf_u32_t unsigned $libelf_cv_int32
8248 -EOF
8249 +_ACEOF
8253 -echo $ac_n "checking for 16-bit integer""... $ac_c" 1>&6
8254 -echo "configure:2106: checking for 16-bit integer" >&5
8255 -if eval "test \"`echo '$''{'libelf_cv_int16'+set}'`\" = set"; then
8256 - echo $ac_n "(cached) $ac_c" 1>&6
8257 +{ echo "$as_me:$LINENO: checking for 16-bit integer" >&5
8258 +echo $ECHO_N "checking for 16-bit integer... $ECHO_C" >&6; }
8259 +if test "${libelf_cv_int16+set}" = set; then
8260 + echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8264 if test "$ac_cv_sizeof_short" = 2; then
8265 libelf_cv_int16='short'
8266 elif test "$ac_cv_sizeof_int" = 2; then
8267 @@ -2115,127 +7083,275 @@ else
8268 libelf_cv_int16=no
8272 -echo "$ac_t""$libelf_cv_int16" 1>&6
8273 +{ echo "$as_me:$LINENO: result: $libelf_cv_int16" >&5
8274 +echo "${ECHO_T}$libelf_cv_int16" >&6; }
8275 if test "$libelf_cv_int16" = no; then
8276 - { echo "configure: error: neither short nor int is 16-bit" 1>&2; exit 1; }
8277 + { { echo "$as_me:$LINENO: error: neither short nor int is 16-bit" >&5
8278 +echo "$as_me: error: neither short nor int is 16-bit" >&2;}
8279 + { (exit 1); exit 1; }; }
8280 else
8281 - cat >> confdefs.h <<EOF
8282 + cat >>confdefs.h <<_ACEOF
8283 #define __libelf_i16_t $libelf_cv_int16
8284 -EOF
8285 +_ACEOF
8287 - cat >> confdefs.h <<EOF
8288 + cat >>confdefs.h <<_ACEOF
8289 #define __libelf_u16_t unsigned $libelf_cv_int16
8290 -EOF
8291 +_ACEOF
8295 -for ac_hdr in unistd.h
8298 +for ac_header in stdlib.h unistd.h
8300 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8301 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8302 -echo "configure:2138: checking for $ac_hdr" >&5
8303 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8304 - echo $ac_n "(cached) $ac_c" 1>&6
8305 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8306 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8307 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
8308 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8309 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8310 + echo $ECHO_N "(cached) $ECHO_C" >&6
8312 +ac_res=`eval echo '${'$as_ac_Header'}'`
8313 + { echo "$as_me:$LINENO: result: $ac_res" >&5
8314 +echo "${ECHO_T}$ac_res" >&6; }
8315 else
8316 - cat > conftest.$ac_ext <<EOF
8317 -#line 2143 "configure"
8318 -#include "confdefs.h"
8319 -#include <$ac_hdr>
8320 -EOF
8321 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8322 -{ (eval echo configure:2148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8323 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8324 -if test -z "$ac_err"; then
8325 - rm -rf conftest*
8326 - eval "ac_cv_header_$ac_safe=yes"
8327 + # Is the header compilable?
8328 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8329 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8330 +cat >conftest.$ac_ext <<_ACEOF
8331 +/* confdefs.h. */
8332 +_ACEOF
8333 +cat confdefs.h >>conftest.$ac_ext
8334 +cat >>conftest.$ac_ext <<_ACEOF
8335 +/* end confdefs.h. */
8336 +$ac_includes_default
8337 +#include <$ac_header>
8338 +_ACEOF
8339 +rm -f conftest.$ac_objext
8340 +if { (ac_try="$ac_compile"
8341 +case "(($ac_try" in
8342 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 + *) ac_try_echo=$ac_try;;
8344 +esac
8345 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 + (eval "$ac_compile") 2>conftest.er1
8347 + ac_status=$?
8348 + grep -v '^ *+' conftest.er1 >conftest.err
8349 + rm -f conftest.er1
8350 + cat conftest.err >&5
8351 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 + (exit $ac_status); } && {
8353 + test -z "$ac_c_werror_flag" ||
8354 + test ! -s conftest.err
8355 + } && test -s conftest.$ac_objext; then
8356 + ac_header_compiler=yes
8357 else
8358 - echo "$ac_err" >&5
8359 - echo "configure: failed program was:" >&5
8360 - cat conftest.$ac_ext >&5
8361 - rm -rf conftest*
8362 - eval "ac_cv_header_$ac_safe=no"
8363 + echo "$as_me: failed program was:" >&5
8364 +sed 's/^/| /' conftest.$ac_ext >&5
8366 + ac_header_compiler=no
8368 -rm -f conftest*
8370 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8372 +echo "${ECHO_T}$ac_header_compiler" >&6; }
8374 +# Is the header present?
8375 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8376 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8377 +cat >conftest.$ac_ext <<_ACEOF
8378 +/* confdefs.h. */
8379 +_ACEOF
8380 +cat confdefs.h >>conftest.$ac_ext
8381 +cat >>conftest.$ac_ext <<_ACEOF
8382 +/* end confdefs.h. */
8383 +#include <$ac_header>
8384 +_ACEOF
8385 +if { (ac_try="$ac_cpp conftest.$ac_ext"
8386 +case "(($ac_try" in
8387 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 + *) ac_try_echo=$ac_try;;
8389 +esac
8390 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8392 + ac_status=$?
8393 + grep -v '^ *+' conftest.er1 >conftest.err
8394 + rm -f conftest.er1
8395 + cat conftest.err >&5
8396 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 + (exit $ac_status); } >/dev/null && {
8398 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8399 + test ! -s conftest.err
8400 + }; then
8401 + ac_header_preproc=yes
8402 +else
8403 + echo "$as_me: failed program was:" >&5
8404 +sed 's/^/| /' conftest.$ac_ext >&5
8406 + ac_header_preproc=no
8408 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8409 - echo "$ac_t""yes" 1>&6
8410 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8411 - cat >> confdefs.h <<EOF
8412 -#define $ac_tr_hdr 1
8413 -EOF
8416 +rm -f conftest.err conftest.$ac_ext
8417 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8418 +echo "${ECHO_T}$ac_header_preproc" >&6; }
8420 +# So? What about this header?
8421 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8422 + yes:no: )
8423 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8424 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8425 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8426 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8427 + ac_header_preproc=yes
8428 + ;;
8429 + no:yes:* )
8430 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8431 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8432 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8433 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8434 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8435 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8436 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8437 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8438 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8439 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8440 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8441 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8443 + ;;
8444 +esac
8445 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8446 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8447 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8448 + echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450 - echo "$ac_t""no" 1>&6
8451 + eval "$as_ac_Header=\$ac_header_preproc"
8453 +ac_res=`eval echo '${'$as_ac_Header'}'`
8454 + { echo "$as_me:$LINENO: result: $ac_res" >&5
8455 +echo "${ECHO_T}$ac_res" >&6; }
8458 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
8459 + cat >>confdefs.h <<_ACEOF
8460 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8461 +_ACEOF
8465 done
8468 for ac_func in getpagesize
8470 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8471 -echo "configure:2177: checking for $ac_func" >&5
8472 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8473 - echo $ac_n "(cached) $ac_c" 1>&6
8474 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8475 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8476 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8477 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8478 + echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480 - cat > conftest.$ac_ext <<EOF
8481 -#line 2182 "configure"
8482 -#include "confdefs.h"
8483 + cat >conftest.$ac_ext <<_ACEOF
8484 +/* confdefs.h. */
8485 +_ACEOF
8486 +cat confdefs.h >>conftest.$ac_ext
8487 +cat >>conftest.$ac_ext <<_ACEOF
8488 +/* end confdefs.h. */
8489 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8490 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
8491 +#define $ac_func innocuous_$ac_func
8493 /* System header to define __stub macros and hopefully few prototypes,
8494 - which can conflict with char $ac_func(); below. */
8495 -#include <assert.h>
8496 -/* Override any gcc2 internal prototype to avoid an error. */
8497 -/* We use char because int might match the return type of a gcc2
8498 - builtin and then its argument prototype would still apply. */
8499 -char $ac_func();
8500 + which can conflict with char $ac_func (); below.
8501 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8502 + <limits.h> exists even on freestanding compilers. */
8504 -int main() {
8505 +#ifdef __STDC__
8506 +# include <limits.h>
8507 +#else
8508 +# include <assert.h>
8509 +#endif
8511 +#undef $ac_func
8513 +/* Override any GCC internal prototype to avoid an error.
8514 + Use char because int might match the return type of a GCC
8515 + builtin and then its argument prototype would still apply. */
8516 +#ifdef __cplusplus
8517 +extern "C"
8518 +#endif
8519 +char $ac_func ();
8520 /* The GNU C library defines this for functions which it implements
8521 to always fail with ENOSYS. Some functions are actually named
8522 something starting with __ and the normal name is an alias. */
8523 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8524 +#if defined __stub_$ac_func || defined __stub___$ac_func
8525 choke me
8526 -#else
8527 -$ac_func();
8528 #endif
8530 -; return 0; }
8531 -EOF
8532 -if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8533 - rm -rf conftest*
8534 - eval "ac_cv_func_$ac_func=yes"
8535 +int
8536 +main ()
8538 +return $ac_func ();
8540 + return 0;
8542 +_ACEOF
8543 +rm -f conftest.$ac_objext conftest$ac_exeext
8544 +if { (ac_try="$ac_link"
8545 +case "(($ac_try" in
8546 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 + *) ac_try_echo=$ac_try;;
8548 +esac
8549 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 + (eval "$ac_link") 2>conftest.er1
8551 + ac_status=$?
8552 + grep -v '^ *+' conftest.er1 >conftest.err
8553 + rm -f conftest.er1
8554 + cat conftest.err >&5
8555 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 + (exit $ac_status); } && {
8557 + test -z "$ac_c_werror_flag" ||
8558 + test ! -s conftest.err
8559 + } && test -s conftest$ac_exeext &&
8560 + $as_test_x conftest$ac_exeext; then
8561 + eval "$as_ac_var=yes"
8562 else
8563 - echo "configure: failed program was:" >&5
8564 - cat conftest.$ac_ext >&5
8565 - rm -rf conftest*
8566 - eval "ac_cv_func_$ac_func=no"
8567 + echo "$as_me: failed program was:" >&5
8568 +sed 's/^/| /' conftest.$ac_ext >&5
8570 + eval "$as_ac_var=no"
8572 -rm -f conftest*
8574 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8575 + conftest$ac_exeext conftest.$ac_ext
8577 +ac_res=`eval echo '${'$as_ac_var'}'`
8578 + { echo "$as_me:$LINENO: result: $ac_res" >&5
8579 +echo "${ECHO_T}$ac_res" >&6; }
8580 +if test `eval echo '${'$as_ac_var'}'` = yes; then
8581 + cat >>confdefs.h <<_ACEOF
8582 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8583 +_ACEOF
8585 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8586 - echo "$ac_t""yes" 1>&6
8587 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8588 - cat >> confdefs.h <<EOF
8589 -#define $ac_tr_func 1
8590 -EOF
8592 -else
8593 - echo "$ac_t""no" 1>&6
8595 done
8597 -echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8598 -echo "configure:2230: checking for working mmap" >&5
8599 -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8600 - echo $ac_n "(cached) $ac_c" 1>&6
8601 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
8602 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
8603 +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8604 + echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606 if test "$cross_compiling" = yes; then
8607 ac_cv_func_mmap_fixed_mapped=no
8608 else
8609 - cat > conftest.$ac_ext <<EOF
8610 -#line 2238 "configure"
8611 -#include "confdefs.h"
8612 + cat >conftest.$ac_ext <<_ACEOF
8613 +/* confdefs.h. */
8614 +_ACEOF
8615 +cat confdefs.h >>conftest.$ac_ext
8616 +cat >>conftest.$ac_ext <<_ACEOF
8617 +/* end confdefs.h. */
8618 +$ac_includes_default
8619 +/* malloc might have been renamed as rpl_malloc. */
8620 +#undef malloc
8622 /* Thanks to Mike Haertel and Jim Avera for this test.
8623 Here is a matrix of mmap possibilities:
8624 @@ -2249,25 +7365,25 @@ else
8625 back from the file, nor mmap's back from the file at a different
8626 address. (There have been systems where private was not correctly
8627 implemented like the infamous i386 svr4.0, and systems where the
8628 - VM page cache was not coherent with the filesystem buffer cache
8629 + VM page cache was not coherent with the file system buffer cache
8630 like early versions of FreeBSD and possibly contemporary NetBSD.)
8631 For shared mappings, we should conversely verify that changes get
8632 - propogated back to all the places they're supposed to be.
8633 + propagated back to all the places they're supposed to be.
8635 Grep wants private fixed already mapped.
8636 The main things grep needs to know about mmap are:
8637 * does it exist and is it safe to write into the mmap'd area
8638 * how to use it (BSD variants) */
8639 -#include <sys/types.h>
8641 #include <fcntl.h>
8642 #include <sys/mman.h>
8644 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8645 +char *malloc ();
8646 +#endif
8648 /* This mess was copied from the GNU getpagesize.h. */
8649 #ifndef HAVE_GETPAGESIZE
8650 -# ifdef HAVE_UNISTD_H
8651 -# include <unistd.h>
8652 -# endif
8654 /* Assume that all systems that can run configure have sys/param.h. */
8655 # ifndef HAVE_SYS_PARAM_H
8656 # define HAVE_SYS_PARAM_H 1
8657 @@ -2303,229 +7419,328 @@ else
8659 #endif /* no HAVE_GETPAGESIZE */
8661 -#ifdef __cplusplus
8662 -extern "C" { void *malloc(unsigned); }
8663 -#else
8664 -char *malloc();
8665 -#endif
8668 -main()
8669 +main ()
8671 - char *data, *data2, *data3;
8672 - int i, pagesize;
8673 - int fd;
8674 + char *data, *data2, *data3;
8675 + int i, pagesize;
8676 + int fd;
8678 - pagesize = getpagesize();
8679 + pagesize = getpagesize ();
8681 - /*
8682 - * First, make a file with some known garbage in it.
8683 - */
8684 - data = malloc(pagesize);
8685 - if (!data)
8686 - exit(1);
8687 - for (i = 0; i < pagesize; ++i)
8688 - *(data + i) = rand();
8689 - umask(0);
8690 - fd = creat("conftestmmap", 0600);
8691 - if (fd < 0)
8692 - exit(1);
8693 - if (write(fd, data, pagesize) != pagesize)
8694 - exit(1);
8695 - close(fd);
8696 + /* First, make a file with some known garbage in it. */
8697 + data = (char *) malloc (pagesize);
8698 + if (!data)
8699 + return 1;
8700 + for (i = 0; i < pagesize; ++i)
8701 + *(data + i) = rand ();
8702 + umask (0);
8703 + fd = creat ("conftest.mmap", 0600);
8704 + if (fd < 0)
8705 + return 1;
8706 + if (write (fd, data, pagesize) != pagesize)
8707 + return 1;
8708 + close (fd);
8710 - /*
8711 - * Next, try to mmap the file at a fixed address which
8712 - * already has something else allocated at it. If we can,
8713 - * also make sure that we see the same garbage.
8714 - */
8715 - fd = open("conftestmmap", O_RDWR);
8716 - if (fd < 0)
8717 - exit(1);
8718 - data2 = malloc(2 * pagesize);
8719 - if (!data2)
8720 - exit(1);
8721 - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8722 - if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8723 - MAP_PRIVATE | MAP_FIXED, fd, 0L))
8724 - exit(1);
8725 - for (i = 0; i < pagesize; ++i)
8726 - if (*(data + i) != *(data2 + i))
8727 - exit(1);
8728 + /* Next, try to mmap the file at a fixed address which already has
8729 + something else allocated at it. If we can, also make sure that
8730 + we see the same garbage. */
8731 + fd = open ("conftest.mmap", O_RDWR);
8732 + if (fd < 0)
8733 + return 1;
8734 + data2 = (char *) malloc (2 * pagesize);
8735 + if (!data2)
8736 + return 1;
8737 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8738 + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8739 + MAP_PRIVATE | MAP_FIXED, fd, 0L))
8740 + return 1;
8741 + for (i = 0; i < pagesize; ++i)
8742 + if (*(data + i) != *(data2 + i))
8743 + return 1;
8745 - /*
8746 - * Finally, make sure that changes to the mapped area
8747 - * do not percolate back to the file as seen by read().
8748 - * (This is a bug on some variants of i386 svr4.0.)
8749 - */
8750 - for (i = 0; i < pagesize; ++i)
8751 - *(data2 + i) = *(data2 + i) + 1;
8752 - data3 = malloc(pagesize);
8753 - if (!data3)
8754 - exit(1);
8755 - if (read(fd, data3, pagesize) != pagesize)
8756 - exit(1);
8757 - for (i = 0; i < pagesize; ++i)
8758 - if (*(data + i) != *(data3 + i))
8759 - exit(1);
8760 - close(fd);
8761 - unlink("conftestmmap");
8762 - exit(0);
8763 + /* Finally, make sure that changes to the mapped area do not
8764 + percolate back to the file as seen by read(). (This is a bug on
8765 + some variants of i386 svr4.0.) */
8766 + for (i = 0; i < pagesize; ++i)
8767 + *(data2 + i) = *(data2 + i) + 1;
8768 + data3 = (char *) malloc (pagesize);
8769 + if (!data3)
8770 + return 1;
8771 + if (read (fd, data3, pagesize) != pagesize)
8772 + return 1;
8773 + for (i = 0; i < pagesize; ++i)
8774 + if (*(data + i) != *(data3 + i))
8775 + return 1;
8776 + close (fd);
8777 + return 0;
8780 -EOF
8781 -if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8782 -then
8783 +_ACEOF
8784 +rm -f conftest$ac_exeext
8785 +if { (ac_try="$ac_link"
8786 +case "(($ac_try" in
8787 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 + *) ac_try_echo=$ac_try;;
8789 +esac
8790 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 + (eval "$ac_link") 2>&5
8792 + ac_status=$?
8793 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8795 + { (case "(($ac_try" in
8796 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 + *) ac_try_echo=$ac_try;;
8798 +esac
8799 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800 + (eval "$ac_try") 2>&5
8801 + ac_status=$?
8802 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 + (exit $ac_status); }; }; then
8804 ac_cv_func_mmap_fixed_mapped=yes
8805 else
8806 - echo "configure: failed program was:" >&5
8807 - cat conftest.$ac_ext >&5
8808 - rm -fr conftest*
8809 - ac_cv_func_mmap_fixed_mapped=no
8810 + echo "$as_me: program exited with status $ac_status" >&5
8811 +echo "$as_me: failed program was:" >&5
8812 +sed 's/^/| /' conftest.$ac_ext >&5
8814 +( exit $ac_status )
8815 +ac_cv_func_mmap_fixed_mapped=no
8817 -rm -fr conftest*
8818 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8823 -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8825 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8826 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
8827 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8828 - cat >> confdefs.h <<\EOF
8830 +cat >>confdefs.h <<\_ACEOF
8831 #define HAVE_MMAP 1
8832 -EOF
8833 +_ACEOF
8836 +rm -f conftest.mmap
8842 for ac_func in ftruncate memcmp memcpy memmove
8844 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8845 -echo "configure:2403: checking for $ac_func" >&5
8846 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8847 - echo $ac_n "(cached) $ac_c" 1>&6
8848 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8849 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8850 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8851 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8852 + echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854 - cat > conftest.$ac_ext <<EOF
8855 -#line 2408 "configure"
8856 -#include "confdefs.h"
8857 + cat >conftest.$ac_ext <<_ACEOF
8858 +/* confdefs.h. */
8859 +_ACEOF
8860 +cat confdefs.h >>conftest.$ac_ext
8861 +cat >>conftest.$ac_ext <<_ACEOF
8862 +/* end confdefs.h. */
8863 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8864 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
8865 +#define $ac_func innocuous_$ac_func
8867 /* System header to define __stub macros and hopefully few prototypes,
8868 - which can conflict with char $ac_func(); below. */
8869 -#include <assert.h>
8870 -/* Override any gcc2 internal prototype to avoid an error. */
8871 -/* We use char because int might match the return type of a gcc2
8872 - builtin and then its argument prototype would still apply. */
8873 -char $ac_func();
8874 + which can conflict with char $ac_func (); below.
8875 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8876 + <limits.h> exists even on freestanding compilers. */
8878 -int main() {
8879 +#ifdef __STDC__
8880 +# include <limits.h>
8881 +#else
8882 +# include <assert.h>
8883 +#endif
8885 +#undef $ac_func
8887 +/* Override any GCC internal prototype to avoid an error.
8888 + Use char because int might match the return type of a GCC
8889 + builtin and then its argument prototype would still apply. */
8890 +#ifdef __cplusplus
8891 +extern "C"
8892 +#endif
8893 +char $ac_func ();
8894 /* The GNU C library defines this for functions which it implements
8895 to always fail with ENOSYS. Some functions are actually named
8896 something starting with __ and the normal name is an alias. */
8897 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8898 +#if defined __stub_$ac_func || defined __stub___$ac_func
8899 choke me
8900 -#else
8901 -$ac_func();
8902 #endif
8904 -; return 0; }
8905 -EOF
8906 -if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8907 - rm -rf conftest*
8908 - eval "ac_cv_func_$ac_func=yes"
8909 +int
8910 +main ()
8912 +return $ac_func ();
8914 + return 0;
8916 +_ACEOF
8917 +rm -f conftest.$ac_objext conftest$ac_exeext
8918 +if { (ac_try="$ac_link"
8919 +case "(($ac_try" in
8920 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 + *) ac_try_echo=$ac_try;;
8922 +esac
8923 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 + (eval "$ac_link") 2>conftest.er1
8925 + ac_status=$?
8926 + grep -v '^ *+' conftest.er1 >conftest.err
8927 + rm -f conftest.er1
8928 + cat conftest.err >&5
8929 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 + (exit $ac_status); } && {
8931 + test -z "$ac_c_werror_flag" ||
8932 + test ! -s conftest.err
8933 + } && test -s conftest$ac_exeext &&
8934 + $as_test_x conftest$ac_exeext; then
8935 + eval "$as_ac_var=yes"
8936 else
8937 - echo "configure: failed program was:" >&5
8938 - cat conftest.$ac_ext >&5
8939 - rm -rf conftest*
8940 - eval "ac_cv_func_$ac_func=no"
8941 + echo "$as_me: failed program was:" >&5
8942 +sed 's/^/| /' conftest.$ac_ext >&5
8944 + eval "$as_ac_var=no"
8946 -rm -f conftest*
8948 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8949 + conftest$ac_exeext conftest.$ac_ext
8951 +ac_res=`eval echo '${'$as_ac_var'}'`
8952 + { echo "$as_me:$LINENO: result: $ac_res" >&5
8953 +echo "${ECHO_T}$ac_res" >&6; }
8954 +if test `eval echo '${'$as_ac_var'}'` = yes; then
8955 + cat >>confdefs.h <<_ACEOF
8956 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8957 +_ACEOF
8959 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8960 - echo "$ac_t""yes" 1>&6
8961 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8962 - cat >> confdefs.h <<EOF
8963 -#define $ac_tr_func 1
8964 -EOF
8966 -else
8967 - echo "$ac_t""no" 1>&6
8969 done
8972 for ac_func in memset
8974 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8975 -echo "configure:2458: checking for $ac_func" >&5
8976 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8977 - echo $ac_n "(cached) $ac_c" 1>&6
8978 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8979 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8980 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8981 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8982 + echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984 - cat > conftest.$ac_ext <<EOF
8985 -#line 2463 "configure"
8986 -#include "confdefs.h"
8987 + cat >conftest.$ac_ext <<_ACEOF
8988 +/* confdefs.h. */
8989 +_ACEOF
8990 +cat confdefs.h >>conftest.$ac_ext
8991 +cat >>conftest.$ac_ext <<_ACEOF
8992 +/* end confdefs.h. */
8993 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8994 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
8995 +#define $ac_func innocuous_$ac_func
8997 /* System header to define __stub macros and hopefully few prototypes,
8998 - which can conflict with char $ac_func(); below. */
8999 -#include <assert.h>
9000 -/* Override any gcc2 internal prototype to avoid an error. */
9001 -/* We use char because int might match the return type of a gcc2
9002 - builtin and then its argument prototype would still apply. */
9003 -char $ac_func();
9004 + which can conflict with char $ac_func (); below.
9005 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9006 + <limits.h> exists even on freestanding compilers. */
9008 -int main() {
9009 +#ifdef __STDC__
9010 +# include <limits.h>
9011 +#else
9012 +# include <assert.h>
9013 +#endif
9015 +#undef $ac_func
9017 +/* Override any GCC internal prototype to avoid an error.
9018 + Use char because int might match the return type of a GCC
9019 + builtin and then its argument prototype would still apply. */
9020 +#ifdef __cplusplus
9021 +extern "C"
9022 +#endif
9023 +char $ac_func ();
9024 /* The GNU C library defines this for functions which it implements
9025 to always fail with ENOSYS. Some functions are actually named
9026 something starting with __ and the normal name is an alias. */
9027 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9028 +#if defined __stub_$ac_func || defined __stub___$ac_func
9029 choke me
9030 -#else
9031 -$ac_func();
9032 #endif
9034 -; return 0; }
9035 -EOF
9036 -if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9037 - rm -rf conftest*
9038 - eval "ac_cv_func_$ac_func=yes"
9039 +int
9040 +main ()
9042 +return $ac_func ();
9044 + return 0;
9046 +_ACEOF
9047 +rm -f conftest.$ac_objext conftest$ac_exeext
9048 +if { (ac_try="$ac_link"
9049 +case "(($ac_try" in
9050 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 + *) ac_try_echo=$ac_try;;
9052 +esac
9053 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 + (eval "$ac_link") 2>conftest.er1
9055 + ac_status=$?
9056 + grep -v '^ *+' conftest.er1 >conftest.err
9057 + rm -f conftest.er1
9058 + cat conftest.err >&5
9059 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 + (exit $ac_status); } && {
9061 + test -z "$ac_c_werror_flag" ||
9062 + test ! -s conftest.err
9063 + } && test -s conftest$ac_exeext &&
9064 + $as_test_x conftest$ac_exeext; then
9065 + eval "$as_ac_var=yes"
9066 else
9067 - echo "configure: failed program was:" >&5
9068 - cat conftest.$ac_ext >&5
9069 - rm -rf conftest*
9070 - eval "ac_cv_func_$ac_func=no"
9071 + echo "$as_me: failed program was:" >&5
9072 +sed 's/^/| /' conftest.$ac_ext >&5
9074 + eval "$as_ac_var=no"
9076 -rm -f conftest*
9078 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9079 + conftest$ac_exeext conftest.$ac_ext
9081 +ac_res=`eval echo '${'$as_ac_var'}'`
9082 + { echo "$as_me:$LINENO: result: $ac_res" >&5
9083 +echo "${ECHO_T}$ac_res" >&6; }
9084 +if test `eval echo '${'$as_ac_var'}'` = yes; then
9085 + cat >>confdefs.h <<_ACEOF
9086 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9087 +_ACEOF
9089 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9090 - echo "$ac_t""yes" 1>&6
9091 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9092 - cat >> confdefs.h <<EOF
9093 -#define $ac_tr_func 1
9094 -EOF
9096 else
9097 - echo "$ac_t""no" 1>&6
9098 -LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9099 + case " $LIBOBJS " in
9100 + *" $ac_func.$ac_objext "* ) ;;
9101 + *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9102 + ;;
9103 +esac
9106 done
9109 if test "$ac_cv_func_memset" = yes; then
9110 - cat >> confdefs.h <<\EOF
9111 + cat >>confdefs.h <<\_ACEOF
9112 #define HAVE_MEMSET 1
9113 -EOF
9114 +_ACEOF
9118 -echo $ac_n "checking whether overlapping arrays are copied correctly""... $ac_c" 1>&6
9119 -echo "configure:2520: checking whether overlapping arrays are copied correctly" >&5
9120 -if eval "test \"`echo '$''{'libelf_cv_working_memmove'+set}'`\" = set"; then
9121 - echo $ac_n "(cached) $ac_c" 1>&6
9122 +{ echo "$as_me:$LINENO: checking whether overlapping arrays are copied correctly" >&5
9123 +echo $ECHO_N "checking whether overlapping arrays are copied correctly... $ECHO_C" >&6; }
9124 +if test "${libelf_cv_working_memmove+set}" = set; then
9125 + echo $ECHO_N "(cached) $ECHO_C" >&6
9126 else
9127 if test "$cross_compiling" = yes; then
9128 libelf_cv_working_memmove='maybe not'
9129 else
9130 - cat > conftest.$ac_ext <<EOF
9131 -#line 2528 "configure"
9132 -#include "confdefs.h"
9133 + cat >conftest.$ac_ext <<_ACEOF
9134 +/* confdefs.h. */
9135 +_ACEOF
9136 +cat confdefs.h >>conftest.$ac_ext
9137 +cat >>conftest.$ac_ext <<_ACEOF
9138 +/* end confdefs.h. */
9139 #include "confdefs.h"
9140 #if HAVE_MEMMOVE
9141 extern void *memmove();
9142 @@ -2540,108 +7755,131 @@ main() {
9143 if (strcmp(buf, "0012345678")) exit(1);
9144 exit(0);
9146 -EOF
9147 -if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9148 -then
9149 +_ACEOF
9150 +rm -f conftest$ac_exeext
9151 +if { (ac_try="$ac_link"
9152 +case "(($ac_try" in
9153 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 + *) ac_try_echo=$ac_try;;
9155 +esac
9156 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157 + (eval "$ac_link") 2>&5
9158 + ac_status=$?
9159 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9161 + { (case "(($ac_try" in
9162 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 + *) ac_try_echo=$ac_try;;
9164 +esac
9165 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 + (eval "$ac_try") 2>&5
9167 + ac_status=$?
9168 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 + (exit $ac_status); }; }; then
9170 libelf_cv_working_memmove=yes
9171 else
9172 - echo "configure: failed program was:" >&5
9173 - cat conftest.$ac_ext >&5
9174 - rm -fr conftest*
9175 - libelf_cv_working_memmove=no
9176 + echo "$as_me: program exited with status $ac_status" >&5
9177 +echo "$as_me: failed program was:" >&5
9178 +sed 's/^/| /' conftest.$ac_ext >&5
9180 +( exit $ac_status )
9181 +libelf_cv_working_memmove=no
9183 -rm -fr conftest*
9184 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9189 -echo "$ac_t""$libelf_cv_working_memmove" 1>&6
9191 +{ echo "$as_me:$LINENO: result: $libelf_cv_working_memmove" >&5
9192 +echo "${ECHO_T}$libelf_cv_working_memmove" >&6; }
9193 if test "$libelf_cv_working_memmove" != yes; then
9194 - cat >> confdefs.h <<\EOF
9195 + cat >>confdefs.h <<\_ACEOF
9196 #define HAVE_BROKEN_MEMMOVE 1
9197 -EOF
9198 +_ACEOF
9202 -echo $ac_n "checking the coffee machine""... $ac_c" 1>&6
9203 -echo "configure:2568: checking the coffee machine" >&5
9204 -if eval "test \"`echo '$''{'mr_cv_coffee_machine'+set}'`\" = set"; then
9205 - echo $ac_n "(cached) $ac_c" 1>&6
9206 +{ echo "$as_me:$LINENO: checking the coffee machine" >&5
9207 +echo $ECHO_N "checking the coffee machine... $ECHO_C" >&6; }
9208 +if test "${mr_cv_coffee_machine+set}" = set; then
9209 + echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211 mr_cv_coffee_machine='empty - operator may not work as expected'
9213 +{ echo "$as_me:$LINENO: result: $mr_cv_coffee_machine" >&5
9214 +echo "${ECHO_T}$mr_cv_coffee_machine" >&6; }
9216 -echo "$ac_t""$mr_cv_coffee_machine" 1>&6
9218 -echo $ac_n "checking whether 64-bit ELF support is sufficient""... $ac_c" 1>&6
9219 -echo "configure:2578: checking whether 64-bit ELF support is sufficient" >&5
9220 -echo "$ac_t""$libelf_64bit" 1>&6
9221 -echo $ac_n "checking whether to include 64-bit support""... $ac_c" 1>&6
9222 -echo "configure:2581: checking whether to include 64-bit support" >&5
9223 +{ echo "$as_me:$LINENO: checking whether 64-bit ELF support is sufficient" >&5
9224 +echo $ECHO_N "checking whether 64-bit ELF support is sufficient... $ECHO_C" >&6; }
9225 +{ echo "$as_me:$LINENO: result: $libelf_64bit" >&5
9226 +echo "${ECHO_T}$libelf_64bit" >&6; }
9227 +{ echo "$as_me:$LINENO: checking whether to include 64-bit support" >&5
9228 +echo $ECHO_N "checking whether to include 64-bit support... $ECHO_C" >&6; }
9229 if test "$libelf_64bit" = no; then
9230 libelf_enable_64bit=no
9231 else
9232 - # Check whether --enable-elf64 or --disable-elf64 was given.
9233 + # Check whether --enable-elf64 was given.
9234 if test "${enable_elf64+set}" = set; then
9235 - enableval="$enable_elf64"
9236 - libelf_enable_64bit="$enableval"
9237 + enableval=$enable_elf64; libelf_enable_64bit="$enableval"
9238 else
9239 libelf_enable_64bit=yes
9243 -echo "$ac_t""$libelf_enable_64bit" 1>&6
9244 +{ echo "$as_me:$LINENO: result: $libelf_enable_64bit" >&5
9245 +echo "${ECHO_T}$libelf_enable_64bit" >&6; }
9246 if test "$libelf_enable_64bit" = yes; then
9247 - cat >> confdefs.h <<\EOF
9248 + cat >>confdefs.h <<\_ACEOF
9249 #define __LIBELF64 1
9250 -EOF
9251 +_ACEOF
9255 -echo $ac_n "checking whether versioning support is sufficient""... $ac_c" 1>&6
9256 -echo "configure:2603: checking whether versioning support is sufficient" >&5
9257 +{ echo "$as_me:$LINENO: checking whether versioning support is sufficient" >&5
9258 +echo $ECHO_N "checking whether versioning support is sufficient... $ECHO_C" >&6; }
9259 libelf_versioning=no
9260 case "$libelf_enable_64bit:$libelf_cv_verdef32:$libelf_cv_verdef64" in
9261 no:yes:* | yes:yes:yes)
9262 if test "$libelf_cv_sun_verdef" = yes; then
9263 - cat >> confdefs.h <<\EOF
9264 + cat >>confdefs.h <<\_ACEOF
9265 #define __LIBELF_SUN_SYMBOL_VERSIONS 1
9266 -EOF
9267 +_ACEOF
9269 libelf_versioning=yes
9270 elif test "$libelf_cv_gnu_verdef" = yes; then
9271 - cat >> confdefs.h <<\EOF
9272 + cat >>confdefs.h <<\_ACEOF
9273 #define __LIBELF_GNU_SYMBOL_VERSIONS 1
9274 -EOF
9275 +_ACEOF
9277 libelf_versioning=yes
9278 fi;;
9279 esac
9280 -echo "$ac_t""$libelf_versioning" 1>&6
9281 -echo $ac_n "checking whether to include versioning support""... $ac_c" 1>&6
9282 -echo "configure:2623: checking whether to include versioning support" >&5
9283 +{ echo "$as_me:$LINENO: result: $libelf_versioning" >&5
9284 +echo "${ECHO_T}$libelf_versioning" >&6; }
9285 +{ echo "$as_me:$LINENO: checking whether to include versioning support" >&5
9286 +echo $ECHO_N "checking whether to include versioning support... $ECHO_C" >&6; }
9287 if test "$libelf_versioning" = no; then
9288 libelf_enable_versioning=no
9289 else
9290 - # Check whether --enable-versioning or --disable-versioning was given.
9291 + # Check whether --enable-versioning was given.
9292 if test "${enable_versioning+set}" = set; then
9293 - enableval="$enable_versioning"
9294 - libelf_enable_versioning="$enableval"
9295 + enableval=$enable_versioning; libelf_enable_versioning="$enableval"
9296 else
9297 libelf_enable_versioning=yes
9301 -echo "$ac_t""$libelf_enable_versioning" 1>&6
9302 +{ echo "$as_me:$LINENO: result: $libelf_enable_versioning" >&5
9303 +echo "${ECHO_T}$libelf_enable_versioning" >&6; }
9304 if test "$libelf_enable_versioning" = yes; then
9305 - cat >> confdefs.h <<\EOF
9306 + cat >>confdefs.h <<\_ACEOF
9307 #define __LIBELF_SYMBOL_VERSIONS 1
9308 -EOF
9309 +_ACEOF
9317 # Needed for `make dist' even if NLS is disabled.
9318 GMOFILES=
9319 @@ -2652,292 +7890,412 @@ fi
9320 MSGFILES="$MSGFILES $mr_lang.msg"
9321 POFILES="$POFILES $mr_lang.po"
9322 done
9327 - echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
9328 -echo "configure:2661: checking whether NLS is requested" >&5
9329 - # Check whether --enable-nls or --disable-nls was given.
9333 + { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9334 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9335 + # Check whether --enable-nls was given.
9336 if test "${enable_nls+set}" = set; then
9337 - enableval="$enable_nls"
9338 - mr_enable_nls="$enableval"
9339 + enableval=$enable_nls; mr_enable_nls="$enableval"
9340 else
9341 mr_enable_nls=yes
9344 - echo "$ac_t""$mr_enable_nls" 1>&6
9345 + { echo "$as_me:$LINENO: result: $mr_enable_nls" >&5
9346 +echo "${ECHO_T}$mr_enable_nls" >&6; }
9348 CATOBJEXT=
9349 INSTOBJEXT=
9350 localedir=
9351 if test "$mr_enable_nls" = yes; then
9352 mr_PATH=`echo ":$PATH" | sed -e 's,:^:*openwin^:*,,g' -e 's,^:,,'`
9353 - echo $ac_n "checking for dgettext""... $ac_c" 1>&6
9354 -echo "configure:2678: checking for dgettext" >&5
9355 -if eval "test \"`echo '$''{'mr_cv_func_dgettext'+set}'`\" = set"; then
9356 - echo $ac_n "(cached) $ac_c" 1>&6
9357 + { echo "$as_me:$LINENO: checking for dgettext" >&5
9358 +echo $ECHO_N "checking for dgettext... $ECHO_C" >&6; }
9359 +if test "${mr_cv_func_dgettext+set}" = set; then
9360 + echo $ECHO_N "(cached) $ECHO_C" >&6
9361 else
9363 - cat > conftest.$ac_ext <<EOF
9364 -#line 2684 "configure"
9365 -#include "confdefs.h"
9367 + cat >conftest.$ac_ext <<_ACEOF
9368 +/* confdefs.h. */
9369 +_ACEOF
9370 +cat confdefs.h >>conftest.$ac_ext
9371 +cat >>conftest.$ac_ext <<_ACEOF
9372 +/* end confdefs.h. */
9373 #include <libintl.h>
9374 -int main() {
9375 +int
9376 +main ()
9378 char *s = dgettext("", ""); return 0
9379 -; return 0; }
9380 -EOF
9381 -if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9382 - rm -rf conftest*
9384 + return 0;
9386 +_ACEOF
9387 +rm -f conftest.$ac_objext conftest$ac_exeext
9388 +if { (ac_try="$ac_link"
9389 +case "(($ac_try" in
9390 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 + *) ac_try_echo=$ac_try;;
9392 +esac
9393 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9394 + (eval "$ac_link") 2>conftest.er1
9395 + ac_status=$?
9396 + grep -v '^ *+' conftest.er1 >conftest.err
9397 + rm -f conftest.er1
9398 + cat conftest.err >&5
9399 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 + (exit $ac_status); } && {
9401 + test -z "$ac_c_werror_flag" ||
9402 + test ! -s conftest.err
9403 + } && test -s conftest$ac_exeext &&
9404 + $as_test_x conftest$ac_exeext; then
9405 mr_cv_func_dgettext=yes
9406 else
9407 - echo "configure: failed program was:" >&5
9408 - cat conftest.$ac_ext >&5
9409 - rm -rf conftest*
9410 - mr_cv_func_dgettext=no
9412 -rm -f conftest*
9414 + echo "$as_me: failed program was:" >&5
9415 +sed 's/^/| /' conftest.$ac_ext >&5
9417 + mr_cv_func_dgettext=no
9420 -echo "$ac_t""$mr_cv_func_dgettext" 1>&6
9421 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9422 + conftest$ac_exeext conftest.$ac_ext
9425 +{ echo "$as_me:$LINENO: result: $mr_cv_func_dgettext" >&5
9426 +echo "${ECHO_T}$mr_cv_func_dgettext" >&6; }
9427 if test "$mr_cv_func_dgettext" = yes; then
9428 # Extract the first word of "msgfmt", so it can be a program name with args.
9429 set dummy msgfmt; ac_word=$2
9430 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9431 -echo "configure:2709: checking for $ac_word" >&5
9432 -if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
9433 - echo $ac_n "(cached) $ac_c" 1>&6
9434 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9435 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9436 +if test "${ac_cv_path_MSGFMT+set}" = set; then
9437 + echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439 - case "$MSGFMT" in
9440 - /*)
9441 + case $MSGFMT in
9442 + [\\/]* | ?:[\\/]*)
9443 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9445 - ?:/*)
9446 - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
9447 - ;;
9449 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9450 - ac_dummy="$mr_PATH"
9451 - for ac_dir in $ac_dummy; do
9452 - test -z "$ac_dir" && ac_dir=.
9453 - if test -f $ac_dir/$ac_word; then
9454 - ac_cv_path_MSGFMT="$ac_dir/$ac_word"
9455 - break
9456 - fi
9457 - done
9458 - IFS="$ac_save_ifs"
9459 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 +for as_dir in $mr_PATH
9462 + IFS=$as_save_IFS
9463 + test -z "$as_dir" && as_dir=.
9464 + for ac_exec_ext in '' $ac_executable_extensions; do
9465 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9466 + ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9467 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9468 + break 2
9469 + fi
9470 +done
9471 +done
9472 +IFS=$as_save_IFS
9474 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
9476 esac
9478 -MSGFMT="$ac_cv_path_MSGFMT"
9479 +MSGFMT=$ac_cv_path_MSGFMT
9480 if test -n "$MSGFMT"; then
9481 - echo "$ac_t""$MSGFMT" 1>&6
9482 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9483 +echo "${ECHO_T}$MSGFMT" >&6; }
9484 else
9485 - echo "$ac_t""no" 1>&6
9486 + { echo "$as_me:$LINENO: result: no" >&5
9487 +echo "${ECHO_T}no" >&6; }
9491 if test "$MSGFMT" != no; then
9492 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9493 set dummy gmsgfmt; ac_word=$2
9494 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9495 -echo "configure:2746: checking for $ac_word" >&5
9496 -if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
9497 - echo $ac_n "(cached) $ac_c" 1>&6
9498 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9499 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9500 +if test "${ac_cv_path_GMSGFMT+set}" = set; then
9501 + echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503 - case "$GMSGFMT" in
9504 - /*)
9505 + case $GMSGFMT in
9506 + [\\/]* | ?:[\\/]*)
9507 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9509 - ?:/*)
9510 - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
9511 - ;;
9513 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9514 - ac_dummy="$mr_PATH"
9515 - for ac_dir in $ac_dummy; do
9516 - test -z "$ac_dir" && ac_dir=.
9517 - if test -f $ac_dir/$ac_word; then
9518 - ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
9519 - break
9520 - fi
9521 - done
9522 - IFS="$ac_save_ifs"
9523 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524 +for as_dir in $mr_PATH
9526 + IFS=$as_save_IFS
9527 + test -z "$as_dir" && as_dir=.
9528 + for ac_exec_ext in '' $ac_executable_extensions; do
9529 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9530 + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9531 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 + break 2
9533 + fi
9534 +done
9535 +done
9536 +IFS=$as_save_IFS
9538 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9540 esac
9542 -GMSGFMT="$ac_cv_path_GMSGFMT"
9543 +GMSGFMT=$ac_cv_path_GMSGFMT
9544 if test -n "$GMSGFMT"; then
9545 - echo "$ac_t""$GMSGFMT" 1>&6
9546 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9547 +echo "${ECHO_T}$GMSGFMT" >&6; }
9548 else
9549 - echo "$ac_t""no" 1>&6
9550 + { echo "$as_me:$LINENO: result: no" >&5
9551 +echo "${ECHO_T}no" >&6; }
9555 # Extract the first word of "xgettext", so it can be a program name with args.
9556 set dummy xgettext; ac_word=$2
9557 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9558 -echo "configure:2782: checking for $ac_word" >&5
9559 -if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
9560 - echo $ac_n "(cached) $ac_c" 1>&6
9561 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9562 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9563 +if test "${ac_cv_path_XGETTEXT+set}" = set; then
9564 + echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 - case "$XGETTEXT" in
9567 - /*)
9568 + case $XGETTEXT in
9569 + [\\/]* | ?:[\\/]*)
9570 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9572 - ?:/*)
9573 - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a dos path.
9574 - ;;
9576 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9577 - ac_dummy="$mr_PATH"
9578 - for ac_dir in $ac_dummy; do
9579 - test -z "$ac_dir" && ac_dir=.
9580 - if test -f $ac_dir/$ac_word; then
9581 - ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9582 - break
9583 - fi
9584 - done
9585 - IFS="$ac_save_ifs"
9586 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 +for as_dir in $mr_PATH
9589 + IFS=$as_save_IFS
9590 + test -z "$as_dir" && as_dir=.
9591 + for ac_exec_ext in '' $ac_executable_extensions; do
9592 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9593 + ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
9594 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9595 + break 2
9596 + fi
9597 +done
9598 +done
9599 +IFS=$as_save_IFS
9601 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
9603 esac
9605 -XGETTEXT="$ac_cv_path_XGETTEXT"
9606 +XGETTEXT=$ac_cv_path_XGETTEXT
9607 if test -n "$XGETTEXT"; then
9608 - echo "$ac_t""$XGETTEXT" 1>&6
9609 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9610 +echo "${ECHO_T}$XGETTEXT" >&6; }
9611 else
9612 - echo "$ac_t""no" 1>&6
9613 + { echo "$as_me:$LINENO: result: no" >&5
9614 +echo "${ECHO_T}no" >&6; }
9618 # Extract the first word of "msgmerge", so it can be a program name with args.
9619 set dummy msgmerge; ac_word=$2
9620 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9621 -echo "configure:2818: checking for $ac_word" >&5
9622 -if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
9623 - echo $ac_n "(cached) $ac_c" 1>&6
9624 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9625 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9626 +if test "${ac_cv_path_MSGMERGE+set}" = set; then
9627 + echo $ECHO_N "(cached) $ECHO_C" >&6
9628 else
9629 - case "$MSGMERGE" in
9630 - /*)
9631 + case $MSGMERGE in
9632 + [\\/]* | ?:[\\/]*)
9633 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9635 - ?:/*)
9636 - ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a dos path.
9637 - ;;
9639 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9640 - ac_dummy="$mr_PATH"
9641 - for ac_dir in $ac_dummy; do
9642 - test -z "$ac_dir" && ac_dir=.
9643 - if test -f $ac_dir/$ac_word; then
9644 - ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
9645 - break
9646 - fi
9647 - done
9648 - IFS="$ac_save_ifs"
9649 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 +for as_dir in $mr_PATH
9652 + IFS=$as_save_IFS
9653 + test -z "$as_dir" && as_dir=.
9654 + for ac_exec_ext in '' $ac_executable_extensions; do
9655 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 + ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
9657 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 + break 2
9659 + fi
9660 +done
9661 +done
9662 +IFS=$as_save_IFS
9664 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="msgmerge"
9666 esac
9668 -MSGMERGE="$ac_cv_path_MSGMERGE"
9669 +MSGMERGE=$ac_cv_path_MSGMERGE
9670 if test -n "$MSGMERGE"; then
9671 - echo "$ac_t""$MSGMERGE" 1>&6
9672 + { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
9673 +echo "${ECHO_T}$MSGMERGE" >&6; }
9674 else
9675 - echo "$ac_t""no" 1>&6
9676 + { echo "$as_me:$LINENO: result: no" >&5
9677 +echo "${ECHO_T}no" >&6; }
9680 - echo $ac_n "checking for GNU gettext""... $ac_c" 1>&6
9681 -echo "configure:2852: checking for GNU gettext" >&5
9682 -if eval "test \"`echo '$''{'mr_cv_gnu_gettext'+set}'`\" = set"; then
9683 - echo $ac_n "(cached) $ac_c" 1>&6
9685 + { echo "$as_me:$LINENO: checking for GNU gettext" >&5
9686 +echo $ECHO_N "checking for GNU gettext... $ECHO_C" >&6; }
9687 +if test "${mr_cv_gnu_gettext+set}" = set; then
9688 + echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9691 - cat > conftest.$ac_ext <<EOF
9692 -#line 2858 "configure"
9693 -#include "confdefs.h"
9695 -int main() {
9696 + cat >conftest.$ac_ext <<_ACEOF
9697 +/* confdefs.h. */
9698 +_ACEOF
9699 +cat confdefs.h >>conftest.$ac_ext
9700 +cat >>conftest.$ac_ext <<_ACEOF
9701 +/* end confdefs.h. */
9703 +int
9704 +main ()
9706 extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr
9707 -; return 0; }
9708 -EOF
9709 -if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9710 - rm -rf conftest*
9712 + return 0;
9714 +_ACEOF
9715 +rm -f conftest.$ac_objext conftest$ac_exeext
9716 +if { (ac_try="$ac_link"
9717 +case "(($ac_try" in
9718 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 + *) ac_try_echo=$ac_try;;
9720 +esac
9721 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 + (eval "$ac_link") 2>conftest.er1
9723 + ac_status=$?
9724 + grep -v '^ *+' conftest.er1 >conftest.err
9725 + rm -f conftest.er1
9726 + cat conftest.err >&5
9727 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 + (exit $ac_status); } && {
9729 + test -z "$ac_c_werror_flag" ||
9730 + test ! -s conftest.err
9731 + } && test -s conftest$ac_exeext &&
9732 + $as_test_x conftest$ac_exeext; then
9733 mr_cv_gnu_gettext=yes
9734 else
9735 - echo "configure: failed program was:" >&5
9736 - cat conftest.$ac_ext >&5
9737 - rm -rf conftest*
9738 - mr_cv_gnu_gettext=no
9740 -rm -f conftest*
9742 + echo "$as_me: failed program was:" >&5
9743 +sed 's/^/| /' conftest.$ac_ext >&5
9745 + mr_cv_gnu_gettext=no
9748 -echo "$ac_t""$mr_cv_gnu_gettext" 1>&6
9749 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9750 + conftest$ac_exeext conftest.$ac_ext
9753 +{ echo "$as_me:$LINENO: result: $mr_cv_gnu_gettext" >&5
9754 +echo "${ECHO_T}$mr_cv_gnu_gettext" >&6; }
9755 if test "$mr_cv_gnu_gettext" = yes; then
9756 - echo $ac_n "checking for losing catgets-based GNU gettext""... $ac_c" 1>&6
9757 -echo "configure:2881: checking for losing catgets-based GNU gettext" >&5
9758 -if eval "test \"`echo '$''{'mr_cv_catgets_based_gettext'+set}'`\" = set"; then
9759 - echo $ac_n "(cached) $ac_c" 1>&6
9760 + { echo "$as_me:$LINENO: checking for losing catgets-based GNU gettext" >&5
9761 +echo $ECHO_N "checking for losing catgets-based GNU gettext... $ECHO_C" >&6; }
9762 +if test "${mr_cv_catgets_based_gettext+set}" = set; then
9763 + echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9766 - cat > conftest.$ac_ext <<EOF
9767 -#line 2887 "configure"
9768 -#include "confdefs.h"
9770 -int main() {
9771 + cat >conftest.$ac_ext <<_ACEOF
9772 +/* confdefs.h. */
9773 +_ACEOF
9774 +cat confdefs.h >>conftest.$ac_ext
9775 +cat >>conftest.$ac_ext <<_ACEOF
9776 +/* end confdefs.h. */
9778 +int
9779 +main ()
9781 extern int _msg_tbl_length; return _msg_tbl_length
9782 -; return 0; }
9783 -EOF
9784 -if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9785 - rm -rf conftest*
9787 + return 0;
9789 +_ACEOF
9790 +rm -f conftest.$ac_objext conftest$ac_exeext
9791 +if { (ac_try="$ac_link"
9792 +case "(($ac_try" in
9793 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 + *) ac_try_echo=$ac_try;;
9795 +esac
9796 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 + (eval "$ac_link") 2>conftest.er1
9798 + ac_status=$?
9799 + grep -v '^ *+' conftest.er1 >conftest.err
9800 + rm -f conftest.er1
9801 + cat conftest.err >&5
9802 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 + (exit $ac_status); } && {
9804 + test -z "$ac_c_werror_flag" ||
9805 + test ! -s conftest.err
9806 + } && test -s conftest$ac_exeext &&
9807 + $as_test_x conftest$ac_exeext; then
9808 mr_cv_catgets_based_gettext=yes
9809 else
9810 - echo "configure: failed program was:" >&5
9811 - cat conftest.$ac_ext >&5
9812 - rm -rf conftest*
9813 - mr_cv_catgets_based_gettext=no
9815 -rm -f conftest*
9817 + echo "$as_me: failed program was:" >&5
9818 +sed 's/^/| /' conftest.$ac_ext >&5
9820 + mr_cv_catgets_based_gettext=no
9823 -echo "$ac_t""$mr_cv_catgets_based_gettext" 1>&6
9824 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9825 + conftest$ac_exeext conftest.$ac_ext
9828 +{ echo "$as_me:$LINENO: result: $mr_cv_catgets_based_gettext" >&5
9829 +echo "${ECHO_T}$mr_cv_catgets_based_gettext" >&6; }
9830 if test "$mr_cv_catgets_based_gettext" = yes; then
9831 # This loses completely. Turn it off and use catgets.
9832 LIBS=`echo $LIBS | sed 's,-lintl,,g'`
9833 mr_cv_func_dgettext=no
9834 else
9835 # Is there a better test for this case?
9836 - echo $ac_n "checking for pure GNU gettext""... $ac_c" 1>&6
9837 -echo "configure:2915: checking for pure GNU gettext" >&5
9838 -if eval "test \"`echo '$''{'mr_cv_pure_gnu_gettext'+set}'`\" = set"; then
9839 - echo $ac_n "(cached) $ac_c" 1>&6
9840 + { echo "$as_me:$LINENO: checking for pure GNU gettext" >&5
9841 +echo $ECHO_N "checking for pure GNU gettext... $ECHO_C" >&6; }
9842 +if test "${mr_cv_pure_gnu_gettext+set}" = set; then
9843 + echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9846 - cat > conftest.$ac_ext <<EOF
9847 -#line 2921 "configure"
9848 -#include "confdefs.h"
9850 -int main() {
9851 + cat >conftest.$ac_ext <<_ACEOF
9852 +/* confdefs.h. */
9853 +_ACEOF
9854 +cat confdefs.h >>conftest.$ac_ext
9855 +cat >>conftest.$ac_ext <<_ACEOF
9856 +/* end confdefs.h. */
9858 +int
9859 +main ()
9861 extern int gettext(); return gettext()
9862 -; return 0; }
9863 -EOF
9864 -if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9865 - rm -rf conftest*
9867 + return 0;
9869 +_ACEOF
9870 +rm -f conftest.$ac_objext conftest$ac_exeext
9871 +if { (ac_try="$ac_link"
9872 +case "(($ac_try" in
9873 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 + *) ac_try_echo=$ac_try;;
9875 +esac
9876 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 + (eval "$ac_link") 2>conftest.er1
9878 + ac_status=$?
9879 + grep -v '^ *+' conftest.er1 >conftest.err
9880 + rm -f conftest.er1
9881 + cat conftest.err >&5
9882 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 + (exit $ac_status); } && {
9884 + test -z "$ac_c_werror_flag" ||
9885 + test ! -s conftest.err
9886 + } && test -s conftest$ac_exeext &&
9887 + $as_test_x conftest$ac_exeext; then
9888 mr_cv_pure_gnu_gettext=yes
9889 else
9890 - echo "configure: failed program was:" >&5
9891 - cat conftest.$ac_ext >&5
9892 - rm -rf conftest*
9893 - mr_cv_pure_gnu_gettext=no
9895 -rm -f conftest*
9897 + echo "$as_me: failed program was:" >&5
9898 +sed 's/^/| /' conftest.$ac_ext >&5
9900 + mr_cv_pure_gnu_gettext=no
9903 -echo "$ac_t""$mr_cv_pure_gnu_gettext" 1>&6
9904 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9905 + conftest$ac_exeext conftest.$ac_ext
9908 +{ echo "$as_me:$LINENO: result: $mr_cv_pure_gnu_gettext" >&5
9909 +echo "${ECHO_T}$mr_cv_pure_gnu_gettext" >&6; }
9910 if test "$mr_cv_pure_gnu_gettext" = yes; then
9911 CATOBJEXT=.gmo
9912 localedir='$(prefix)/share/locale'
9913 @@ -2959,172 +8317,213 @@ echo "$ac_t""$mr_cv_pure_gnu_gettext" 1>
9916 if test "$mr_cv_func_dgettext" = yes; then
9917 - cat >> confdefs.h <<\EOF
9918 + cat >>confdefs.h <<\_ACEOF
9919 #define HAVE_DGETTEXT 1
9920 -EOF
9921 +_ACEOF
9923 else
9924 - echo $ac_n "checking for catgets""... $ac_c" 1>&6
9925 -echo "configure:2969: checking for catgets" >&5
9926 -if eval "test \"`echo '$''{'mr_cv_func_catgets'+set}'`\" = set"; then
9927 - echo $ac_n "(cached) $ac_c" 1>&6
9928 + { echo "$as_me:$LINENO: checking for catgets" >&5
9929 +echo $ECHO_N "checking for catgets... $ECHO_C" >&6; }
9930 +if test "${mr_cv_func_catgets+set}" = set; then
9931 + echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9934 - cat > conftest.$ac_ext <<EOF
9935 -#line 2975 "configure"
9936 -#include "confdefs.h"
9938 + cat >conftest.$ac_ext <<_ACEOF
9939 +/* confdefs.h. */
9940 +_ACEOF
9941 +cat confdefs.h >>conftest.$ac_ext
9942 +cat >>conftest.$ac_ext <<_ACEOF
9943 +/* end confdefs.h. */
9944 #include <nl_types.h>
9945 -int main() {
9946 +int
9947 +main ()
9949 catgets(catopen("",0),0,0,"");return 0;
9950 -; return 0; }
9951 -EOF
9952 -if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9953 - rm -rf conftest*
9955 + return 0;
9957 +_ACEOF
9958 +rm -f conftest.$ac_objext conftest$ac_exeext
9959 +if { (ac_try="$ac_link"
9960 +case "(($ac_try" in
9961 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 + *) ac_try_echo=$ac_try;;
9963 +esac
9964 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 + (eval "$ac_link") 2>conftest.er1
9966 + ac_status=$?
9967 + grep -v '^ *+' conftest.er1 >conftest.err
9968 + rm -f conftest.er1
9969 + cat conftest.err >&5
9970 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 + (exit $ac_status); } && {
9972 + test -z "$ac_c_werror_flag" ||
9973 + test ! -s conftest.err
9974 + } && test -s conftest$ac_exeext &&
9975 + $as_test_x conftest$ac_exeext; then
9976 mr_cv_func_catgets=yes
9977 else
9978 - echo "configure: failed program was:" >&5
9979 - cat conftest.$ac_ext >&5
9980 - rm -rf conftest*
9981 - mr_cv_func_catgets=no
9983 -rm -f conftest*
9985 + echo "$as_me: failed program was:" >&5
9986 +sed 's/^/| /' conftest.$ac_ext >&5
9988 + mr_cv_func_catgets=no
9991 -echo "$ac_t""$mr_cv_func_catgets" 1>&6
9992 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9993 + conftest$ac_exeext conftest.$ac_ext
9996 +{ echo "$as_me:$LINENO: result: $mr_cv_func_catgets" >&5
9997 +echo "${ECHO_T}$mr_cv_func_catgets" >&6; }
9998 if test "$mr_cv_func_catgets" = yes; then
9999 # Extract the first word of "gencat", so it can be a program name with args.
10000 set dummy gencat; ac_word=$2
10001 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10002 -echo "configure:3000: checking for $ac_word" >&5
10003 -if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
10004 - echo $ac_n "(cached) $ac_c" 1>&6
10005 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10006 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10007 +if test "${ac_cv_path_GENCAT+set}" = set; then
10008 + echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010 - case "$GENCAT" in
10011 - /*)
10012 + case $GENCAT in
10013 + [\\/]* | ?:[\\/]*)
10014 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
10016 - ?:/*)
10017 - ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
10018 - ;;
10020 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10021 - ac_dummy="$mr_PATH"
10022 - for ac_dir in $ac_dummy; do
10023 - test -z "$ac_dir" && ac_dir=.
10024 - if test -f $ac_dir/$ac_word; then
10025 - ac_cv_path_GENCAT="$ac_dir/$ac_word"
10026 - break
10027 - fi
10028 - done
10029 - IFS="$ac_save_ifs"
10030 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 +for as_dir in $mr_PATH
10033 + IFS=$as_save_IFS
10034 + test -z "$as_dir" && as_dir=.
10035 + for ac_exec_ext in '' $ac_executable_extensions; do
10036 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10037 + ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
10038 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 + break 2
10040 + fi
10041 +done
10042 +done
10043 +IFS=$as_save_IFS
10045 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
10047 esac
10049 -GENCAT="$ac_cv_path_GENCAT"
10050 +GENCAT=$ac_cv_path_GENCAT
10051 if test -n "$GENCAT"; then
10052 - echo "$ac_t""$GENCAT" 1>&6
10053 + { echo "$as_me:$LINENO: result: $GENCAT" >&5
10054 +echo "${ECHO_T}$GENCAT" >&6; }
10055 else
10056 - echo "$ac_t""no" 1>&6
10057 + { echo "$as_me:$LINENO: result: no" >&5
10058 +echo "${ECHO_T}no" >&6; }
10062 if test "$GENCAT" != no; then
10063 - cat >> confdefs.h <<\EOF
10064 + cat >>confdefs.h <<\_ACEOF
10065 #define HAVE_CATGETS 1
10066 -EOF
10067 +_ACEOF
10069 # Extract the first word of "gmsgfmt msgfmt", so it can be a program name with args.
10070 set dummy gmsgfmt msgfmt; ac_word=$2
10071 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10072 -echo "configure:3041: checking for $ac_word" >&5
10073 -if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
10074 - echo $ac_n "(cached) $ac_c" 1>&6
10075 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10076 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10077 +if test "${ac_cv_path_GMSGFMT+set}" = set; then
10078 + echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080 - case "$GMSGFMT" in
10081 - /*)
10082 + case $GMSGFMT in
10083 + [\\/]* | ?:[\\/]*)
10084 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10086 - ?:/*)
10087 - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
10088 - ;;
10090 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10091 - ac_dummy="$mr_PATH"
10092 - for ac_dir in $ac_dummy; do
10093 - test -z "$ac_dir" && ac_dir=.
10094 - if test -f $ac_dir/$ac_word; then
10095 - ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
10096 - break
10097 - fi
10098 - done
10099 - IFS="$ac_save_ifs"
10100 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101 +for as_dir in $mr_PATH
10103 + IFS=$as_save_IFS
10104 + test -z "$as_dir" && as_dir=.
10105 + for ac_exec_ext in '' $ac_executable_extensions; do
10106 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10107 + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10108 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 + break 2
10110 + fi
10111 +done
10112 +done
10113 +IFS=$as_save_IFS
10115 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="msgfmt"
10117 esac
10119 -GMSGFMT="$ac_cv_path_GMSGFMT"
10120 +GMSGFMT=$ac_cv_path_GMSGFMT
10121 if test -n "$GMSGFMT"; then
10122 - echo "$ac_t""$GMSGFMT" 1>&6
10123 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10124 +echo "${ECHO_T}$GMSGFMT" >&6; }
10125 else
10126 - echo "$ac_t""no" 1>&6
10127 + { echo "$as_me:$LINENO: result: no" >&5
10128 +echo "${ECHO_T}no" >&6; }
10132 # Extract the first word of "xgettext", so it can be a program name with args.
10133 set dummy xgettext; ac_word=$2
10134 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10135 -echo "configure:3077: checking for $ac_word" >&5
10136 -if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
10137 - echo $ac_n "(cached) $ac_c" 1>&6
10138 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10139 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10140 +if test "${ac_cv_path_XGETTEXT+set}" = set; then
10141 + echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143 - case "$XGETTEXT" in
10144 - /*)
10145 + case $XGETTEXT in
10146 + [\\/]* | ?:[\\/]*)
10147 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10149 - ?:/*)
10150 - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a dos path.
10151 - ;;
10153 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10154 - ac_dummy="$mr_PATH"
10155 - for ac_dir in $ac_dummy; do
10156 - test -z "$ac_dir" && ac_dir=.
10157 - if test -f $ac_dir/$ac_word; then
10158 - ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10159 - break
10160 - fi
10161 - done
10162 - IFS="$ac_save_ifs"
10163 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 +for as_dir in $mr_PATH
10166 + IFS=$as_save_IFS
10167 + test -z "$as_dir" && as_dir=.
10168 + for ac_exec_ext in '' $ac_executable_extensions; do
10169 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10170 + ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
10171 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 + break 2
10173 + fi
10174 +done
10175 +done
10176 +IFS=$as_save_IFS
10178 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
10180 esac
10182 -XGETTEXT="$ac_cv_path_XGETTEXT"
10183 +XGETTEXT=$ac_cv_path_XGETTEXT
10184 if test -n "$XGETTEXT"; then
10185 - echo "$ac_t""$XGETTEXT" 1>&6
10186 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10187 +echo "${ECHO_T}$XGETTEXT" >&6; }
10188 else
10189 - echo "$ac_t""no" 1>&6
10190 + { echo "$as_me:$LINENO: result: no" >&5
10191 +echo "${ECHO_T}no" >&6; }
10195 CATOBJEXT=.cat
10196 INSTOBJEXT=.cat
10197 localedir='$(prefix)/lib/locale'
10199 else
10200 - echo "configure: warning: no NLS support, disabled" 1>&2
10201 + { echo "$as_me:$LINENO: WARNING: no NLS support, disabled" >&5
10202 +echo "$as_me: WARNING: no NLS support, disabled" >&2;}
10203 mr_enable_nls=no
10214 POSUB=
10215 CATALOGS=
10216 if test "$mr_enable_nls" = yes; then
10217 - echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
10218 -echo "configure:3128: checking for catalogs to be installed" >&5
10219 + { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10220 +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
10221 mr_linguas=
10222 for mr_lang in ${LINGUAS=$ALL_LINGUAS}; do
10223 case " $ALL_LINGUAS " in
10224 @@ -3134,84 +8533,166 @@ echo "configure:3128: checking for catal
10226 esac
10227 done
10228 - echo "$ac_t""$mr_linguas" 1>&6
10229 + { echo "$as_me:$LINENO: result: $mr_linguas" >&5
10230 +echo "${ECHO_T}$mr_linguas" >&6; }
10231 POSUB=po
10238 LIBINTL=
10239 -echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
10240 -echo "configure:3146: checking for gettext in -lintl" >&5
10241 -ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
10242 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10243 - echo $ac_n "(cached) $ac_c" 1>&6
10244 +{ echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
10245 +echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
10246 +if test "${ac_cv_lib_intl_gettext+set}" = set; then
10247 + echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10249 - ac_save_LIBS="$LIBS"
10250 + ac_check_lib_save_LIBS=$LIBS
10251 LIBS="-lintl $LIBS"
10252 -cat > conftest.$ac_ext <<EOF
10253 -#line 3154 "configure"
10254 -#include "confdefs.h"
10255 -/* Override any gcc2 internal prototype to avoid an error. */
10256 -/* We use char because int might match the return type of a gcc2
10257 - builtin and then its argument prototype would still apply. */
10258 -char gettext();
10259 +cat >conftest.$ac_ext <<_ACEOF
10260 +/* confdefs.h. */
10261 +_ACEOF
10262 +cat confdefs.h >>conftest.$ac_ext
10263 +cat >>conftest.$ac_ext <<_ACEOF
10264 +/* end confdefs.h. */
10266 -int main() {
10267 -gettext()
10268 -; return 0; }
10269 -EOF
10270 -if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10271 - rm -rf conftest*
10272 - eval "ac_cv_lib_$ac_lib_var=yes"
10273 +/* Override any GCC internal prototype to avoid an error.
10274 + Use char because int might match the return type of a GCC
10275 + builtin and then its argument prototype would still apply. */
10276 +#ifdef __cplusplus
10277 +extern "C"
10278 +#endif
10279 +char gettext ();
10280 +int
10281 +main ()
10283 +return gettext ();
10285 + return 0;
10287 +_ACEOF
10288 +rm -f conftest.$ac_objext conftest$ac_exeext
10289 +if { (ac_try="$ac_link"
10290 +case "(($ac_try" in
10291 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 + *) ac_try_echo=$ac_try;;
10293 +esac
10294 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 + (eval "$ac_link") 2>conftest.er1
10296 + ac_status=$?
10297 + grep -v '^ *+' conftest.er1 >conftest.err
10298 + rm -f conftest.er1
10299 + cat conftest.err >&5
10300 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 + (exit $ac_status); } && {
10302 + test -z "$ac_c_werror_flag" ||
10303 + test ! -s conftest.err
10304 + } && test -s conftest$ac_exeext &&
10305 + $as_test_x conftest$ac_exeext; then
10306 + ac_cv_lib_intl_gettext=yes
10307 else
10308 - echo "configure: failed program was:" >&5
10309 - cat conftest.$ac_ext >&5
10310 - rm -rf conftest*
10311 - eval "ac_cv_lib_$ac_lib_var=no"
10312 + echo "$as_me: failed program was:" >&5
10313 +sed 's/^/| /' conftest.$ac_ext >&5
10315 + ac_cv_lib_intl_gettext=no
10317 -rm -f conftest*
10318 -LIBS="$ac_save_LIBS"
10320 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10321 + conftest$ac_exeext conftest.$ac_ext
10322 +LIBS=$ac_check_lib_save_LIBS
10324 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10325 - echo "$ac_t""yes" 1>&6
10326 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
10327 +echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
10328 +if test $ac_cv_lib_intl_gettext = yes; then
10329 LIBINTL=-lintl
10330 -else
10331 - echo "$ac_t""no" 1>&6
10337 # Make sure we can run config.sub.
10338 -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
10339 -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
10340 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
10341 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
10342 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
10343 + { (exit 1); exit 1; }; }
10345 +{ echo "$as_me:$LINENO: checking build system type" >&5
10346 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
10347 +if test "${ac_cv_build+set}" = set; then
10348 + echo $ECHO_N "(cached) $ECHO_C" >&6
10349 +else
10350 + ac_build_alias=$build_alias
10351 +test "x$ac_build_alias" = x &&
10352 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
10353 +test "x$ac_build_alias" = x &&
10354 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
10355 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
10356 + { (exit 1); exit 1; }; }
10357 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
10358 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
10359 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
10360 + { (exit 1); exit 1; }; }
10363 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
10364 +echo "${ECHO_T}$ac_cv_build" >&6; }
10365 +case $ac_cv_build in
10366 +*-*-*) ;;
10367 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
10368 +echo "$as_me: error: invalid value of canonical build" >&2;}
10369 + { (exit 1); exit 1; }; };;
10370 +esac
10371 +build=$ac_cv_build
10372 +ac_save_IFS=$IFS; IFS='-'
10373 +set x $ac_cv_build
10374 +shift
10375 +build_cpu=$1
10376 +build_vendor=$2
10377 +shift; shift
10378 +# Remember, the first character of IFS is used to create $*,
10379 +# except with old shells:
10380 +build_os=$*
10381 +IFS=$ac_save_IFS
10382 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
10384 -echo $ac_n "checking host system type""... $ac_c" 1>&6
10385 -echo "configure:3194: checking host system type" >&5
10387 -host_alias=$host
10388 -case "$host_alias" in
10389 -NONE)
10390 - case $nonopt in
10391 - NONE)
10392 - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
10393 - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
10394 - fi ;;
10395 - *) host_alias=$nonopt ;;
10396 - esac ;;
10397 +{ echo "$as_me:$LINENO: checking host system type" >&5
10398 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
10399 +if test "${ac_cv_host+set}" = set; then
10400 + echo $ECHO_N "(cached) $ECHO_C" >&6
10401 +else
10402 + if test "x$host_alias" = x; then
10403 + ac_cv_host=$ac_cv_build
10404 +else
10405 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10406 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10407 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10408 + { (exit 1); exit 1; }; }
10412 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10413 +echo "${ECHO_T}$ac_cv_host" >&6; }
10414 +case $ac_cv_host in
10415 +*-*-*) ;;
10416 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10417 +echo "$as_me: error: invalid value of canonical host" >&2;}
10418 + { (exit 1); exit 1; }; };;
10419 esac
10420 +host=$ac_cv_host
10421 +ac_save_IFS=$IFS; IFS='-'
10422 +set x $ac_cv_host
10423 +shift
10424 +host_cpu=$1
10425 +host_vendor=$2
10426 +shift; shift
10427 +# Remember, the first character of IFS is used to create $*,
10428 +# except with old shells:
10429 +host_os=$*
10430 +IFS=$ac_save_IFS
10431 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10434 -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
10435 -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10436 -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10437 -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10438 -echo "$ac_t""$host" 1>&6
10442 PICFLAGS=
10443 SHLIB_SFX=
10444 SHLINK_SFX=
10445 @@ -3219,83 +8700,91 @@ echo "$ac_t""$host" 1>&6
10446 LINK_SHLIB=
10447 INSTALL_SHLIB=
10448 DEPSHLIBS=
10449 - echo $ac_n "checking whether to build a shared library""... $ac_c" 1>&6
10450 -echo "configure:3224: checking whether to build a shared library" >&5
10451 - # Check whether --enable-shared or --disable-shared was given.
10452 + { echo "$as_me:$LINENO: checking whether to build a shared library" >&5
10453 +echo $ECHO_N "checking whether to build a shared library... $ECHO_C" >&6; }
10454 + # Check whether --enable-shared was given.
10455 if test "${enable_shared+set}" = set; then
10456 - enableval="$enable_shared"
10457 - mr_enable_shared="$enableval"
10458 + enableval=$enable_shared; mr_enable_shared="$enableval"
10459 else
10460 mr_enable_shared=yes
10463 - echo "$ac_t""$mr_enable_shared" 1>&6
10464 + { echo "$as_me:$LINENO: result: $mr_enable_shared" >&5
10465 +echo "${ECHO_T}$mr_enable_shared" >&6; }
10466 if test "$mr_enable_shared" = yes; then
10467 - echo $ac_n "checking whether GNU naming conventions are requested""... $ac_c" 1>&6
10468 -echo "configure:3236: checking whether GNU naming conventions are requested" >&5
10469 - # Check whether --enable-gnu-names or --disable-gnu-names was given.
10470 + { echo "$as_me:$LINENO: checking whether GNU naming conventions are requested" >&5
10471 +echo $ECHO_N "checking whether GNU naming conventions are requested... $ECHO_C" >&6; }
10472 + # Check whether --enable-gnu-names was given.
10473 if test "${enable_gnu_names+set}" = set; then
10474 - enableval="$enable_gnu_names"
10475 - mr_enable_gnu_names="$enableval"
10476 + enableval=$enable_gnu_names; mr_enable_gnu_names="$enableval"
10477 else
10478 mr_enable_gnu_names=no
10481 - echo "$ac_t""$mr_enable_gnu_names" 1>&6
10484 + { echo "$as_me:$LINENO: result: $mr_enable_gnu_names" >&5
10485 +echo "${ECHO_T}$mr_enable_gnu_names" >&6; }
10488 # Extract the first word of "ld", so it can be a program name with args.
10489 set dummy ld; ac_word=$2
10490 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10491 -echo "configure:3251: checking for $ac_word" >&5
10492 -if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
10493 - echo $ac_n "(cached) $ac_c" 1>&6
10494 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10495 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10496 +if test "${ac_cv_path_LD+set}" = set; then
10497 + echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499 - case "$LD" in
10500 - /*)
10501 + case $LD in
10502 + [\\/]* | ?:[\\/]*)
10503 ac_cv_path_LD="$LD" # Let the user override the test with a path.
10505 - ?:/*)
10506 - ac_cv_path_LD="$LD" # Let the user override the test with a dos path.
10507 - ;;
10509 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10510 - ac_dummy="$PATH"
10511 - for ac_dir in $ac_dummy; do
10512 - test -z "$ac_dir" && ac_dir=.
10513 - if test -f $ac_dir/$ac_word; then
10514 - ac_cv_path_LD="$ac_dir/$ac_word"
10515 - break
10516 - fi
10517 - done
10518 - IFS="$ac_save_ifs"
10519 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520 +for as_dir in $PATH
10522 + IFS=$as_save_IFS
10523 + test -z "$as_dir" && as_dir=.
10524 + for ac_exec_ext in '' $ac_executable_extensions; do
10525 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526 + ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
10527 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 + break 2
10529 + fi
10530 +done
10531 +done
10532 +IFS=$as_save_IFS
10534 test -z "$ac_cv_path_LD" && ac_cv_path_LD="ld"
10536 esac
10538 -LD="$ac_cv_path_LD"
10539 +LD=$ac_cv_path_LD
10540 if test -n "$LD"; then
10541 - echo "$ac_t""$LD" 1>&6
10542 + { echo "$as_me:$LINENO: result: $LD" >&5
10543 +echo "${ECHO_T}$LD" >&6; }
10544 else
10545 - echo "$ac_t""no" 1>&6
10546 + { echo "$as_me:$LINENO: result: no" >&5
10547 +echo "${ECHO_T}no" >&6; }
10551 case "$host" in
10552 *-linux*|*-gnu*)
10553 if test "$GCC" = yes; then
10556 - echo $ac_n "checking for native ELF system""... $ac_c" 1>&6
10557 -echo "configure:3290: checking for native ELF system" >&5
10558 -if eval "test \"`echo '$''{'mr_cv_target_elf'+set}'`\" = set"; then
10559 - echo $ac_n "(cached) $ac_c" 1>&6
10562 + { echo "$as_me:$LINENO: checking for native ELF system" >&5
10563 +echo $ECHO_N "checking for native ELF system... $ECHO_C" >&6; }
10564 +if test "${mr_cv_target_elf+set}" = set; then
10565 + echo $ECHO_N "(cached) $ECHO_C" >&6
10566 else
10567 if test "$cross_compiling" = yes; then
10568 mr_cv_target_elf=no
10569 else
10570 - cat > conftest.$ac_ext <<EOF
10571 -#line 3298 "configure"
10572 -#include "confdefs.h"
10573 + cat >conftest.$ac_ext <<_ACEOF
10574 +/* confdefs.h. */
10575 +_ACEOF
10576 +cat confdefs.h >>conftest.$ac_ext
10577 +cat >>conftest.$ac_ext <<_ACEOF
10578 +/* end confdefs.h. */
10579 #include <stdio.h>
10581 main(int argc, char **argv) {
10582 @@ -3316,22 +8805,43 @@ main(int argc, char **argv) {
10584 exit(1);
10586 -EOF
10587 -if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10588 -then
10589 +_ACEOF
10590 +rm -f conftest$ac_exeext
10591 +if { (ac_try="$ac_link"
10592 +case "(($ac_try" in
10593 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 + *) ac_try_echo=$ac_try;;
10595 +esac
10596 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 + (eval "$ac_link") 2>&5
10598 + ac_status=$?
10599 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10601 + { (case "(($ac_try" in
10602 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 + *) ac_try_echo=$ac_try;;
10604 +esac
10605 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 + (eval "$ac_try") 2>&5
10607 + ac_status=$?
10608 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 + (exit $ac_status); }; }; then
10610 mr_cv_target_elf=yes
10611 else
10612 - echo "configure: failed program was:" >&5
10613 - cat conftest.$ac_ext >&5
10614 - rm -fr conftest*
10615 - mr_cv_target_elf=no
10616 + echo "$as_me: program exited with status $ac_status" >&5
10617 +echo "$as_me: failed program was:" >&5
10618 +sed 's/^/| /' conftest.$ac_ext >&5
10620 +( exit $ac_status )
10621 +mr_cv_target_elf=no
10623 -rm -fr conftest*
10624 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10629 -echo "$ac_t""$mr_cv_target_elf" 1>&6
10631 +{ echo "$as_me:$LINENO: result: $mr_cv_target_elf" >&5
10632 +echo "${ECHO_T}$mr_cv_target_elf" >&6; }
10633 if test "$mr_cv_target_elf" = yes; then
10634 PICFLAGS='-fPIC -DPIC'
10635 if test "$mr_enable_gnu_names" = yes
10636 @@ -3344,11 +8854,13 @@ echo "$ac_t""$mr_cv_target_elf" 1>&6
10637 INSTALL_SHLIB='$(INSTALL_PROGRAM)'
10638 DEPSHLIBS='-lc'
10639 else
10640 - echo "configure: warning: shared libraries not supported for $host" 1>&2
10641 + { echo "$as_me:$LINENO: WARNING: shared libraries not supported for $host" >&5
10642 +echo "$as_me: WARNING: shared libraries not supported for $host" >&2;}
10643 mr_enable_shared=no
10645 elif ${CC} -V 2>&1 | grep 'Intel(R) C++ Compiler' >/dev/null 2>&1; then
10646 - echo "configure: warning: Use --disable-shared if $CC fails to build the shared library" 1>&2
10647 + { echo "$as_me:$LINENO: WARNING: Use --disable-shared if $CC fails to build the shared library" >&5
10648 +echo "$as_me: WARNING: Use --disable-shared if $CC fails to build the shared library" >&2;}
10649 PICFLAGS='-fPIC -DPIC'
10650 if test "$mr_enable_gnu_names" = yes
10651 then SHLIB_SFX='-$(VERSION).so'
10652 @@ -3360,24 +8872,28 @@ echo "$ac_t""$mr_cv_target_elf" 1>&6
10653 INSTALL_SHLIB='$(INSTALL_PROGRAM)'
10654 DEPSHLIBS='-lc'
10655 else
10656 - echo "configure: warning: GNU CC required for building shared libraries" 1>&2
10657 + { echo "$as_me:$LINENO: WARNING: GNU CC required for building shared libraries" >&5
10658 +echo "$as_me: WARNING: GNU CC required for building shared libraries" >&2;}
10659 mr_enable_shared=no
10662 i386-pc-nto-qnx*)
10665 - echo $ac_n "checking for native ELF system""... $ac_c" 1>&6
10666 -echo "configure:3372: checking for native ELF system" >&5
10667 -if eval "test \"`echo '$''{'mr_cv_target_elf'+set}'`\" = set"; then
10668 - echo $ac_n "(cached) $ac_c" 1>&6
10671 + { echo "$as_me:$LINENO: checking for native ELF system" >&5
10672 +echo $ECHO_N "checking for native ELF system... $ECHO_C" >&6; }
10673 +if test "${mr_cv_target_elf+set}" = set; then
10674 + echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676 if test "$cross_compiling" = yes; then
10677 mr_cv_target_elf=no
10678 else
10679 - cat > conftest.$ac_ext <<EOF
10680 -#line 3380 "configure"
10681 -#include "confdefs.h"
10682 + cat >conftest.$ac_ext <<_ACEOF
10683 +/* confdefs.h. */
10684 +_ACEOF
10685 +cat confdefs.h >>conftest.$ac_ext
10686 +cat >>conftest.$ac_ext <<_ACEOF
10687 +/* end confdefs.h. */
10688 #include <stdio.h>
10690 main(int argc, char **argv) {
10691 @@ -3398,22 +8914,43 @@ main(int argc, char **argv) {
10693 exit(1);
10695 -EOF
10696 -if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10697 -then
10698 +_ACEOF
10699 +rm -f conftest$ac_exeext
10700 +if { (ac_try="$ac_link"
10701 +case "(($ac_try" in
10702 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 + *) ac_try_echo=$ac_try;;
10704 +esac
10705 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 + (eval "$ac_link") 2>&5
10707 + ac_status=$?
10708 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10710 + { (case "(($ac_try" in
10711 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 + *) ac_try_echo=$ac_try;;
10713 +esac
10714 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 + (eval "$ac_try") 2>&5
10716 + ac_status=$?
10717 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 + (exit $ac_status); }; }; then
10719 mr_cv_target_elf=yes
10720 else
10721 - echo "configure: failed program was:" >&5
10722 - cat conftest.$ac_ext >&5
10723 - rm -fr conftest*
10724 - mr_cv_target_elf=no
10725 + echo "$as_me: program exited with status $ac_status" >&5
10726 +echo "$as_me: failed program was:" >&5
10727 +sed 's/^/| /' conftest.$ac_ext >&5
10729 +( exit $ac_status )
10730 +mr_cv_target_elf=no
10732 -rm -fr conftest*
10733 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10738 -echo "$ac_t""$mr_cv_target_elf" 1>&6
10740 +{ echo "$as_me:$LINENO: result: $mr_cv_target_elf" >&5
10741 +echo "${ECHO_T}$mr_cv_target_elf" >&6; }
10742 if test "$mr_cv_target_elf" = yes; then
10743 PICFLAGS='-fPIC -DPIC'
10744 if test "$mr_enable_gnu_names" = yes
10745 @@ -3426,7 +8963,8 @@ echo "$ac_t""$mr_cv_target_elf" 1>&6
10746 INSTALL_SHLIB='$(INSTALL_PROGRAM)'
10747 DEPSHLIBS='-lc'
10748 else
10749 - echo "configure: warning: shared libraries not supported for $host" 1>&2
10750 + { echo "$as_me:$LINENO: WARNING: shared libraries not supported for $host" >&5
10751 +echo "$as_me: WARNING: shared libraries not supported for $host" >&2;}
10752 mr_enable_shared=no
10755 @@ -3446,465 +8984,1227 @@ echo "$ac_t""$mr_cv_target_elf" 1>&6
10756 INSTALL_SHLIB='$(INSTALL_PROGRAM)'
10759 - echo "configure: warning: shared libraries not supported for $host" 1>&2
10760 + { echo "$as_me:$LINENO: WARNING: shared libraries not supported for $host" >&5
10761 +echo "$as_me: WARNING: shared libraries not supported for $host" >&2;}
10762 mr_enable_shared=no
10764 esac
10765 else
10766 mr_enable_shared=no
10782 DO_SHLIB="$mr_enable_shared"
10786 -# Check whether --enable-extended-format or --disable-extended-format was given.
10788 +# Check whether --enable-extended-format was given.
10789 if test "${enable_extended_format+set}" = set; then
10790 - enableval="$enable_extended_format"
10791 - mr_enable_extended_format="$enableval"
10792 + enableval=$enable_extended_format; mr_enable_extended_format="$enableval"
10793 else
10794 mr_enable_extended_format=no
10797 if test "$mr_enable_extended_format" = yes; then
10798 - cat >> confdefs.h <<\EOF
10799 + cat >>confdefs.h <<\_ACEOF
10800 #define ENABLE_EXTENDED_FORMAT 1
10801 -EOF
10802 +_ACEOF
10806 -# Check whether --enable-sanity-checks or --disable-sanity-checks was given.
10807 +# Check whether --enable-sanity-checks was given.
10808 if test "${enable_sanity_checks+set}" = set; then
10809 - enableval="$enable_sanity_checks"
10810 - mr_enable_sanity_checks="$enableval"
10811 + enableval=$enable_sanity_checks; mr_enable_sanity_checks="$enableval"
10812 else
10813 mr_enable_sanity_checks=yes
10816 if test "$mr_enable_sanity_checks" = yes; then
10817 - cat >> confdefs.h <<\EOF
10818 + cat >>confdefs.h <<\_ACEOF
10819 #define ENABLE_SANITY_CHECKS 1
10820 -EOF
10821 +_ACEOF
10827 - # Check whether --enable-debug or --disable-debug was given.
10829 + # Check whether --enable-debug was given.
10830 if test "${enable_debug+set}" = set; then
10831 - enableval="$enable_debug"
10832 - mr_enable_debug="$enableval"
10833 + enableval=$enable_debug; mr_enable_debug="$enableval"
10834 else
10835 mr_enable_debug=no
10838 if test "$mr_enable_debug" = yes; then
10839 - cat >> confdefs.h <<\EOF
10840 + cat >>confdefs.h <<\_ACEOF
10841 #define ENABLE_DEBUG 1
10842 -EOF
10843 +_ACEOF
10848 -trap '' 1 2 15
10849 -cat > confcache <<\EOF
10850 +ac_config_files="$ac_config_files Makefile lib/Makefile po/Makefile libelf.pc"
10852 +ac_config_commands="$ac_config_commands default"
10854 +cat >confcache <<\_ACEOF
10855 # This file is a shell script that caches the results of configure
10856 # tests run on this system so they can be shared between configure
10857 -# scripts and configure runs. It is not useful on other systems.
10858 -# If it contains results you don't want to keep, you may remove or edit it.
10859 +# scripts and configure runs, see configure's option --config-cache.
10860 +# It is not useful on other systems. If it contains results you don't
10861 +# want to keep, you may remove or edit it.
10863 -# By default, configure uses ./config.cache as the cache file,
10864 -# creating it if it does not exist already. You can give configure
10865 -# the --cache-file=FILE option to use a different cache file; that is
10866 -# what configure does when it calls configure scripts in
10867 -# subdirectories, so they share the cache.
10868 -# Giving --cache-file=/dev/null disables caching, for debugging configure.
10869 -# config.status only pays attention to the cache file if you give it the
10870 -# --recheck option to rerun configure.
10871 +# config.status only pays attention to the cache file if you give it
10872 +# the --recheck option to rerun configure.
10874 -EOF
10875 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
10876 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
10877 +# following values.
10879 +_ACEOF
10881 # The following way of writing the cache mishandles newlines in values,
10882 # but we know of no workaround that is simple, portable, and efficient.
10883 -# So, don't put newlines in cache variables' values.
10884 +# So, we kill variables containing newlines.
10885 # Ultrix sh set writes to stderr and can't be redirected directly,
10886 # and sets the high bit in the cache file unless we assign to the vars.
10887 -(set) 2>&1 |
10888 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
10889 - *ac_space=\ *)
10890 - # `set' does not quote correctly, so add quotes (double-quote substitution
10891 - # turns \\\\ into \\, and sed turns \\ into \).
10892 - sed -n \
10893 - -e "s/'/'\\\\''/g" \
10894 - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10895 - ;;
10896 - *)
10897 - # `set' quotes correctly as required by POSIX, so do not add quotes.
10898 - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10899 - ;;
10900 - esac >> confcache
10901 -if cmp -s $cache_file confcache; then
10903 -else
10904 - if test -w $cache_file; then
10905 - echo "updating cache $cache_file"
10906 - cat confcache > $cache_file
10908 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10909 + eval ac_val=\$$ac_var
10910 + case $ac_val in #(
10911 + *${as_nl}*)
10912 + case $ac_var in #(
10913 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10914 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10915 + esac
10916 + case $ac_var in #(
10917 + _ | IFS | as_nl) ;; #(
10918 + *) $as_unset $ac_var ;;
10919 + esac ;;
10920 + esac
10921 + done
10923 + (set) 2>&1 |
10924 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
10925 + *${as_nl}ac_space=\ *)
10926 + # `set' does not quote correctly, so add quotes (double-quote
10927 + # substitution turns \\\\ into \\, and sed turns \\ into \).
10928 + sed -n \
10929 + "s/'/'\\\\''/g;
10930 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10931 + ;; #(
10932 + *)
10933 + # `set' quotes correctly as required by POSIX, so do not add quotes.
10934 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10935 + ;;
10936 + esac |
10937 + sort
10938 +) |
10939 + sed '
10940 + /^ac_cv_env_/b end
10941 + t clear
10942 + :clear
10943 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10944 + t end
10945 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10946 + :end' >>confcache
10947 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10948 + if test -w "$cache_file"; then
10949 + test "x$cache_file" != "x/dev/null" &&
10950 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10951 +echo "$as_me: updating cache $cache_file" >&6;}
10952 + cat confcache >$cache_file
10953 else
10954 - echo "not updating unwritable cache $cache_file"
10955 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10956 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10959 rm -f confcache
10961 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10964 # Let make expand exec_prefix.
10965 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10967 -# Any assignment to VPATH causes Sun make to only execute
10968 -# the first set of double-colon rules, so remove it if not needed.
10969 -# If there is a colon in the path, we need to keep it.
10970 -if test "x$srcdir" = x.; then
10971 - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10973 +DEFS=-DHAVE_CONFIG_H
10975 -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10976 +ac_libobjs=
10977 +ac_ltlibobjs=
10978 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10979 + # 1. Remove the extension, and $U if already installed.
10980 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10981 + ac_i=`echo "$ac_i" | sed "$ac_script"`
10982 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10983 + # will be set to the directory where LIBOBJS objects are built.
10984 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10985 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10986 +done
10987 +LIBOBJS=$ac_libobjs
10989 -DEFS=-DHAVE_CONFIG_H
10990 +LTLIBOBJS=$ac_ltlibobjs
10992 -# Without the "./", some shells look in PATH for config.status.
10993 -: ${CONFIG_STATUS=./config.status}
10995 -echo creating $CONFIG_STATUS
10996 -rm -f $CONFIG_STATUS
10997 -cat > $CONFIG_STATUS <<EOF
10998 -#! /bin/sh
10999 -# Generated automatically by configure.
11001 +: ${CONFIG_STATUS=./config.status}
11002 +ac_clean_files_save=$ac_clean_files
11003 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11004 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11005 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
11006 +cat >$CONFIG_STATUS <<_ACEOF
11007 +#! $SHELL
11008 +# Generated by $as_me.
11009 # Run this file to recreate the current configuration.
11010 -# This directory was configured as follows,
11011 -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11013 -# $0 $ac_configure_args
11015 # Compiler output produced by configure, useful for debugging
11016 -# configure, is in ./config.log if it exists.
11017 +# configure, is in config.log if it exists.
11019 -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11020 -for ac_option
11022 - case "\$ac_option" in
11023 - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11024 - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11025 - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11026 - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11027 - echo "$CONFIG_STATUS generated by autoconf version 2.13"
11028 - exit 0 ;;
11029 - -help | --help | --hel | --he | --h)
11030 - echo "\$ac_cs_usage"; exit 0 ;;
11031 - *) echo "\$ac_cs_usage"; exit 1 ;;
11032 - esac
11033 -done
11034 +debug=false
11035 +ac_cs_recheck=false
11036 +ac_cs_silent=false
11037 +SHELL=\${CONFIG_SHELL-$SHELL}
11038 +_ACEOF
11040 -ac_given_srcdir=$srcdir
11041 -ac_given_INSTALL="$INSTALL"
11042 +cat >>$CONFIG_STATUS <<\_ACEOF
11043 +## --------------------- ##
11044 +## M4sh Initialization. ##
11045 +## --------------------- ##
11047 -trap 'rm -fr `echo "Makefile lib/Makefile po/Makefile libelf.pc config.h lib/sys_elf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11048 -EOF
11049 -cat >> $CONFIG_STATUS <<EOF
11050 +# Be more Bourne compatible
11051 +DUALCASE=1; export DUALCASE # for MKS sh
11052 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11053 + emulate sh
11054 + NULLCMD=:
11055 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11056 + # is contrary to our usage. Disable this feature.
11057 + alias -g '${1+"$@"}'='"$@"'
11058 + setopt NO_GLOB_SUBST
11059 +else
11060 + case `(set -o) 2>/dev/null` in
11061 + *posix*) set -o posix ;;
11062 +esac
11064 -# Protect against being on the right side of a sed subst in config.status.
11065 -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11066 - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11067 -$ac_vpsub
11068 -$extrasub
11069 -s%@SHELL@%$SHELL%g
11070 -s%@CFLAGS@%$CFLAGS%g
11071 -s%@CPPFLAGS@%$CPPFLAGS%g
11072 -s%@CXXFLAGS@%$CXXFLAGS%g
11073 -s%@FFLAGS@%$FFLAGS%g
11074 -s%@DEFS@%$DEFS%g
11075 -s%@LDFLAGS@%$LDFLAGS%g
11076 -s%@LIBS@%$LIBS%g
11077 -s%@exec_prefix@%$exec_prefix%g
11078 -s%@prefix@%$prefix%g
11079 -s%@program_transform_name@%$program_transform_name%g
11080 -s%@bindir@%$bindir%g
11081 -s%@sbindir@%$sbindir%g
11082 -s%@libexecdir@%$libexecdir%g
11083 -s%@datadir@%$datadir%g
11084 -s%@sysconfdir@%$sysconfdir%g
11085 -s%@sharedstatedir@%$sharedstatedir%g
11086 -s%@localstatedir@%$localstatedir%g
11087 -s%@libdir@%$libdir%g
11088 -s%@includedir@%$includedir%g
11089 -s%@oldincludedir@%$oldincludedir%g
11090 -s%@infodir@%$infodir%g
11091 -s%@mandir@%$mandir%g
11092 -s%@PACKAGE@%$PACKAGE%g
11093 -s%@VERSION@%$VERSION%g
11094 -s%@MAINT@%$MAINT%g
11095 -s%@MAJOR@%$MAJOR%g
11096 -s%@SET_MAKE@%$SET_MAKE%g
11097 -s%@CC@%$CC%g
11098 -s%@CPP@%$CPP%g
11099 -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11100 -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11101 -s%@INSTALL_DATA@%$INSTALL_DATA%g
11102 -s%@RANLIB@%$RANLIB%g
11103 -s%@LN_S@%$LN_S%g
11104 -s%@DO_COMPAT@%$DO_COMPAT%g
11105 -s%@LIBOBJS@%$LIBOBJS%g
11106 -s%@GMOFILES@%$GMOFILES%g
11107 -s%@MSGFILES@%$MSGFILES%g
11108 -s%@POFILES@%$POFILES%g
11109 -s%@MSGFMT@%$MSGFMT%g
11110 -s%@GMSGFMT@%$GMSGFMT%g
11111 -s%@XGETTEXT@%$XGETTEXT%g
11112 -s%@MSGMERGE@%$MSGMERGE%g
11113 -s%@GENCAT@%$GENCAT%g
11114 -s%@CATOBJEXT@%$CATOBJEXT%g
11115 -s%@INSTOBJEXT@%$INSTOBJEXT%g
11116 -s%@localedir@%$localedir%g
11117 -s%@CATALOGS@%$CATALOGS%g
11118 -s%@POSUB@%$POSUB%g
11119 -s%@LIBINTL@%$LIBINTL%g
11120 -s%@host@%$host%g
11121 -s%@host_alias@%$host_alias%g
11122 -s%@host_cpu@%$host_cpu%g
11123 -s%@host_vendor@%$host_vendor%g
11124 -s%@host_os@%$host_os%g
11125 -s%@LD@%$LD%g
11126 -s%@PICFLAGS@%$PICFLAGS%g
11127 -s%@SHLIB_SFX@%$SHLIB_SFX%g
11128 -s%@SHLINK_SFX@%$SHLINK_SFX%g
11129 -s%@SONAME_SFX@%$SONAME_SFX%g
11130 -s%@LINK_SHLIB@%$LINK_SHLIB%g
11131 -s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
11132 -s%@DEPSHLIBS@%$DEPSHLIBS%g
11133 -s%@DO_SHLIB@%$DO_SHLIB%g
11136 -CEOF
11137 -EOF
11139 -cat >> $CONFIG_STATUS <<\EOF
11141 -# Split the substitutions into bite-sized pieces for seds with
11142 -# small command number limits, like on Digital OSF/1 and HP-UX.
11143 -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11144 -ac_file=1 # Number of current file.
11145 -ac_beg=1 # First line for current file.
11146 -ac_end=$ac_max_sed_cmds # Line after last line for current file.
11147 -ac_more_lines=:
11148 -ac_sed_cmds=""
11149 -while $ac_more_lines; do
11150 - if test $ac_beg -gt 1; then
11151 - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11153 +# PATH needs CR
11154 +# Avoid depending upon Character Ranges.
11155 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11156 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11157 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11158 +as_cr_digits='0123456789'
11159 +as_cr_alnum=$as_cr_Letters$as_cr_digits
11161 +# The user is always right.
11162 +if test "${PATH_SEPARATOR+set}" != set; then
11163 + echo "#! /bin/sh" >conf$$.sh
11164 + echo "exit 0" >>conf$$.sh
11165 + chmod +x conf$$.sh
11166 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11167 + PATH_SEPARATOR=';'
11168 else
11169 - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11170 + PATH_SEPARATOR=:
11172 - if test ! -s conftest.s$ac_file; then
11173 - ac_more_lines=false
11174 - rm -f conftest.s$ac_file
11175 + rm -f conf$$.sh
11178 +# Support unset when possible.
11179 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11180 + as_unset=unset
11181 +else
11182 + as_unset=false
11186 +# IFS
11187 +# We need space, tab and new line, in precisely that order. Quoting is
11188 +# there to prevent editors from complaining about space-tab.
11189 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11190 +# splitting by setting IFS to empty value.)
11191 +as_nl='
11193 +IFS=" "" $as_nl"
11195 +# Find who we are. Look in the path if we contain no directory separator.
11196 +case $0 in
11197 + *[\\/]* ) as_myself=$0 ;;
11198 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 +for as_dir in $PATH
11201 + IFS=$as_save_IFS
11202 + test -z "$as_dir" && as_dir=.
11203 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11204 +done
11205 +IFS=$as_save_IFS
11207 + ;;
11208 +esac
11209 +# We did not find ourselves, most probably we were run as `sh COMMAND'
11210 +# in which case we are not to be found in the path.
11211 +if test "x$as_myself" = x; then
11212 + as_myself=$0
11214 +if test ! -f "$as_myself"; then
11215 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11216 + { (exit 1); exit 1; }
11219 +# Work around bugs in pre-3.0 UWIN ksh.
11220 +for as_var in ENV MAIL MAILPATH
11221 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11222 +done
11223 +PS1='$ '
11224 +PS2='> '
11225 +PS4='+ '
11227 +# NLS nuisances.
11228 +for as_var in \
11229 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11230 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11231 + LC_TELEPHONE LC_TIME
11233 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11234 + eval $as_var=C; export $as_var
11235 else
11236 - if test -z "$ac_sed_cmds"; then
11237 - ac_sed_cmds="sed -f conftest.s$ac_file"
11238 - else
11239 - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11240 - fi
11241 - ac_file=`expr $ac_file + 1`
11242 - ac_beg=$ac_end
11243 - ac_end=`expr $ac_end + $ac_max_sed_cmds`
11244 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11246 done
11247 -if test -z "$ac_sed_cmds"; then
11248 - ac_sed_cmds=cat
11250 +# Required to use basename.
11251 +if expr a : '\(a\)' >/dev/null 2>&1 &&
11252 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
11253 + as_expr=expr
11254 +else
11255 + as_expr=false
11257 -EOF
11259 -cat >> $CONFIG_STATUS <<EOF
11260 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11261 + as_basename=basename
11262 +else
11263 + as_basename=false
11266 -CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile po/Makefile libelf.pc"}
11267 -EOF
11268 -cat >> $CONFIG_STATUS <<\EOF
11269 -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11270 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11271 - case "$ac_file" in
11272 - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11273 - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11274 - *) ac_file_in="${ac_file}.in" ;;
11275 - esac
11277 - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11278 +# Name of the executable.
11279 +as_me=`$as_basename -- "$0" ||
11280 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11281 + X"$0" : 'X\(//\)$' \| \
11282 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11283 +echo X/"$0" |
11284 + sed '/^.*\/\([^/][^/]*\)\/*$/{
11285 + s//\1/
11288 + /^X\/\(\/\/\)$/{
11289 + s//\1/
11292 + /^X\/\(\/\).*/{
11293 + s//\1/
11296 + s/.*/./; q'`
11298 - # Remove last slash and all that follows it. Not all systems have dirname.
11299 - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11300 - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11301 - # The file is in a subdirectory.
11302 - test ! -d "$ac_dir" && mkdir "$ac_dir"
11303 - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11304 - # A "../" for each directory in $ac_dir_suffix.
11305 - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11306 +# CDPATH.
11307 +$as_unset CDPATH
11311 + as_lineno_1=$LINENO
11312 + as_lineno_2=$LINENO
11313 + test "x$as_lineno_1" != "x$as_lineno_2" &&
11314 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11316 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11317 + # uniformly replaced by the line number. The first 'sed' inserts a
11318 + # line-number line after each line using $LINENO; the second 'sed'
11319 + # does the real work. The second script uses 'N' to pair each
11320 + # line-number line with the line containing $LINENO, and appends
11321 + # trailing '-' during substitution so that $LINENO is not a special
11322 + # case at line end.
11323 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11324 + # scripts with optimization help from Paolo Bonzini. Blame Lee
11325 + # E. McMahon (1931-1989) for sed's syntax. :-)
11326 + sed -n '
11328 + /[$]LINENO/=
11329 + ' <$as_myself |
11330 + sed '
11331 + s/[$]LINENO.*/&-/
11332 + t lineno
11334 + :lineno
11336 + :loop
11337 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11338 + t loop
11339 + s/-\n.*//
11340 + ' >$as_me.lineno &&
11341 + chmod +x "$as_me.lineno" ||
11342 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11343 + { (exit 1); exit 1; }; }
11345 + # Don't try to exec as it changes $[0], causing all sort of problems
11346 + # (the dirname of $[0] is not the place where we might find the
11347 + # original and so on. Autoconf is especially sensitive to this).
11348 + . "./$as_me.lineno"
11349 + # Exit status is that of the last command.
11350 + exit
11354 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11355 + as_dirname=dirname
11356 +else
11357 + as_dirname=false
11360 +ECHO_C= ECHO_N= ECHO_T=
11361 +case `echo -n x` in
11362 +-n*)
11363 + case `echo 'x\c'` in
11364 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11365 + *) ECHO_C='\c';;
11366 + esac;;
11368 + ECHO_N='-n';;
11369 +esac
11371 +if expr a : '\(a\)' >/dev/null 2>&1 &&
11372 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
11373 + as_expr=expr
11374 +else
11375 + as_expr=false
11378 +rm -f conf$$ conf$$.exe conf$$.file
11379 +if test -d conf$$.dir; then
11380 + rm -f conf$$.dir/conf$$.file
11381 +else
11382 + rm -f conf$$.dir
11383 + mkdir conf$$.dir
11385 +echo >conf$$.file
11386 +if ln -s conf$$.file conf$$ 2>/dev/null; then
11387 + as_ln_s='ln -s'
11388 + # ... but there are two gotchas:
11389 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11390 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11391 + # In both cases, we have to default to `cp -p'.
11392 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11393 + as_ln_s='cp -p'
11394 +elif ln conf$$.file conf$$ 2>/dev/null; then
11395 + as_ln_s=ln
11396 +else
11397 + as_ln_s='cp -p'
11399 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11400 +rmdir conf$$.dir 2>/dev/null
11402 +if mkdir -p . 2>/dev/null; then
11403 + as_mkdir_p=:
11404 +else
11405 + test -d ./-p && rmdir ./-p
11406 + as_mkdir_p=false
11409 +if test -x / >/dev/null 2>&1; then
11410 + as_test_x='test -x'
11411 +else
11412 + if ls -dL / >/dev/null 2>&1; then
11413 + as_ls_L_option=L
11414 else
11415 - ac_dir_suffix= ac_dots=
11416 + as_ls_L_option=
11418 + as_test_x='
11419 + eval sh -c '\''
11420 + if test -d "$1"; then
11421 + test -d "$1/.";
11422 + else
11423 + case $1 in
11424 + -*)set "./$1";;
11425 + esac;
11426 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11427 + ???[sx]*):;;*)false;;esac;fi
11428 + '\'' sh
11431 +as_executable_p=$as_test_x
11433 - case "$ac_given_srcdir" in
11434 - .) srcdir=.
11435 - if test -z "$ac_dots"; then top_srcdir=.
11436 - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11437 - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11438 - *) # Relative path.
11439 - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11440 - top_srcdir="$ac_dots$ac_given_srcdir" ;;
11441 +# Sed expression to map a string onto a valid CPP name.
11442 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11444 +# Sed expression to map a string onto a valid variable name.
11445 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11448 +exec 6>&1
11450 +# Save the log message, to keep $[0] and so on meaningful, and to
11451 +# report actual input values of CONFIG_FILES etc. instead of their
11452 +# values after options handling.
11453 +ac_log="
11454 +This file was extended by $as_me, which was
11455 +generated by GNU Autoconf 2.61. Invocation command line was
11457 + CONFIG_FILES = $CONFIG_FILES
11458 + CONFIG_HEADERS = $CONFIG_HEADERS
11459 + CONFIG_LINKS = $CONFIG_LINKS
11460 + CONFIG_COMMANDS = $CONFIG_COMMANDS
11461 + $ $0 $@
11463 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
11466 +_ACEOF
11468 +cat >>$CONFIG_STATUS <<_ACEOF
11469 +# Files that config.status was made for.
11470 +config_files="$ac_config_files"
11471 +config_headers="$ac_config_headers"
11472 +config_commands="$ac_config_commands"
11474 +_ACEOF
11476 +cat >>$CONFIG_STATUS <<\_ACEOF
11477 +ac_cs_usage="\
11478 +\`$as_me' instantiates files from templates according to the
11479 +current configuration.
11481 +Usage: $0 [OPTIONS] [FILE]...
11483 + -h, --help print this help, then exit
11484 + -V, --version print version number and configuration settings, then exit
11485 + -q, --quiet do not print progress messages
11486 + -d, --debug don't remove temporary files
11487 + --recheck update $as_me by reconfiguring in the same conditions
11488 + --file=FILE[:TEMPLATE]
11489 + instantiate the configuration file FILE
11490 + --header=FILE[:TEMPLATE]
11491 + instantiate the configuration header FILE
11493 +Configuration files:
11494 +$config_files
11496 +Configuration headers:
11497 +$config_headers
11499 +Configuration commands:
11500 +$config_commands
11502 +Report bugs to <bug-autoconf@gnu.org>."
11504 +_ACEOF
11505 +cat >>$CONFIG_STATUS <<_ACEOF
11506 +ac_cs_version="\\
11507 +config.status
11508 +configured by $0, generated by GNU Autoconf 2.61,
11509 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11511 +Copyright (C) 2006 Free Software Foundation, Inc.
11512 +This config.status script is free software; the Free Software Foundation
11513 +gives unlimited permission to copy, distribute and modify it."
11515 +ac_pwd='$ac_pwd'
11516 +srcdir='$srcdir'
11517 +INSTALL='$INSTALL'
11518 +_ACEOF
11520 +cat >>$CONFIG_STATUS <<\_ACEOF
11521 +# If no file are specified by the user, then we need to provide default
11522 +# value. By we need to know if files were specified by the user.
11523 +ac_need_defaults=:
11524 +while test $# != 0
11526 + case $1 in
11527 + --*=*)
11528 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
11529 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11530 + ac_shift=:
11531 + ;;
11532 + *)
11533 + ac_option=$1
11534 + ac_optarg=$2
11535 + ac_shift=shift
11536 + ;;
11537 esac
11539 - case "$ac_given_INSTALL" in
11540 - [/$]*) INSTALL="$ac_given_INSTALL" ;;
11541 - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11542 + case $ac_option in
11543 + # Handling of the options.
11544 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11545 + ac_cs_recheck=: ;;
11546 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11547 + echo "$ac_cs_version"; exit ;;
11548 + --debug | --debu | --deb | --de | --d | -d )
11549 + debug=: ;;
11550 + --file | --fil | --fi | --f )
11551 + $ac_shift
11552 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11553 + ac_need_defaults=false;;
11554 + --header | --heade | --head | --hea )
11555 + $ac_shift
11556 + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11557 + ac_need_defaults=false;;
11558 + --he | --h)
11559 + # Conflict between --help and --header
11560 + { echo "$as_me: error: ambiguous option: $1
11561 +Try \`$0 --help' for more information." >&2
11562 + { (exit 1); exit 1; }; };;
11563 + --help | --hel | -h )
11564 + echo "$ac_cs_usage"; exit ;;
11565 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11566 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
11567 + ac_cs_silent=: ;;
11569 + # This is an error.
11570 + -*) { echo "$as_me: error: unrecognized option: $1
11571 +Try \`$0 --help' for more information." >&2
11572 + { (exit 1); exit 1; }; } ;;
11574 + *) ac_config_targets="$ac_config_targets $1"
11575 + ac_need_defaults=false ;;
11577 esac
11578 + shift
11579 +done
11581 - echo creating "$ac_file"
11582 - rm -f "$ac_file"
11583 - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11584 - case "$ac_file" in
11585 - *Makefile*) ac_comsub="1i\\
11586 -# $configure_input" ;;
11587 - *) ac_comsub= ;;
11588 +ac_configure_extra_args=
11590 +if $ac_cs_silent; then
11591 + exec 6>/dev/null
11592 + ac_configure_extra_args="$ac_configure_extra_args --silent"
11595 +_ACEOF
11596 +cat >>$CONFIG_STATUS <<_ACEOF
11597 +if \$ac_cs_recheck; then
11598 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11599 + CONFIG_SHELL=$SHELL
11600 + export CONFIG_SHELL
11601 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11604 +_ACEOF
11605 +cat >>$CONFIG_STATUS <<\_ACEOF
11606 +exec 5>>config.log
11608 + echo
11609 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11610 +## Running $as_me. ##
11611 +_ASBOX
11612 + echo "$ac_log"
11613 +} >&5
11615 +_ACEOF
11616 +cat >>$CONFIG_STATUS <<_ACEOF
11617 +_ACEOF
11619 +cat >>$CONFIG_STATUS <<\_ACEOF
11621 +# Handling of arguments.
11622 +for ac_config_target in $ac_config_targets
11624 + case $ac_config_target in
11625 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11626 + "lib/sys_elf.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/sys_elf.h" ;;
11627 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11628 + "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11629 + "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11630 + "libelf.pc") CONFIG_FILES="$CONFIG_FILES libelf.pc" ;;
11631 + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11633 + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11634 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11635 + { (exit 1); exit 1; }; };;
11636 esac
11637 +done
11639 - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11640 - sed -e "$ac_comsub
11641 -s%@configure_input@%$configure_input%g
11642 -s%@srcdir@%$srcdir%g
11643 -s%@top_srcdir@%$top_srcdir%g
11644 -s%@INSTALL@%$INSTALL%g
11645 -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11646 -fi; done
11647 -rm -f conftest.s*
11649 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11650 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
11651 +# If the user did not use the arguments to specify the items to instantiate,
11652 +# then the envvar interface is used. Set only those that are not.
11653 +# We use the long form for the default assignment because of an extremely
11654 +# bizarre bug on SunOS 4.1.3.
11655 +if $ac_need_defaults; then
11656 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11657 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11658 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11661 +# Have a temporary directory for convenience. Make it in the build tree
11662 +# simply because there is no reason against having it here, and in addition,
11663 +# creating and moving files from /tmp can sometimes cause problems.
11664 +# Hook for its removal unless debugging.
11665 +# Note that there is a small window in which the directory will not be cleaned:
11666 +# after its creation but before its name has been assigned to `$tmp'.
11667 +$debug ||
11669 + tmp=
11670 + trap 'exit_status=$?
11671 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11672 +' 0
11673 + trap '{ (exit 1); exit 1; }' 1 2 13 15
11675 +# Create a (secure) tmp directory for tmp files.
11678 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11679 + test -n "$tmp" && test -d "$tmp"
11680 +} ||
11682 + tmp=./conf$$-$RANDOM
11683 + (umask 077 && mkdir "$tmp")
11684 +} ||
11686 + echo "$me: cannot create a temporary directory in ." >&2
11687 + { (exit 1); exit 1; }
11691 +# Set up the sed scripts for CONFIG_FILES section.
11693 -# ac_d sets the value in "#define NAME VALUE" lines.
11694 -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11695 -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11696 -ac_dC='\3'
11697 -ac_dD='%g'
11698 -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11699 -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11700 -ac_uB='\([ ]\)%\1#\2define\3'
11701 -ac_uC=' '
11702 -ac_uD='\4%g'
11703 -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11704 -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11705 -ac_eB='$%\1#\2define\3'
11706 -ac_eC=' '
11707 -ac_eD='%g'
11709 -if test "${CONFIG_HEADERS+set}" != set; then
11710 -EOF
11711 -cat >> $CONFIG_STATUS <<EOF
11712 - CONFIG_HEADERS="config.h lib/sys_elf.h"
11713 -EOF
11714 -cat >> $CONFIG_STATUS <<\EOF
11715 +# No need to generate the scripts if there are no CONFIG_FILES.
11716 +# This happens for instance when ./config.status config.h
11717 +if test -n "$CONFIG_FILES"; then
11719 +_ACEOF
11723 +ac_delim='%!_!# '
11724 +for ac_last_try in false false false false false :; do
11725 + cat >conf$$subs.sed <<_ACEOF
11726 +SHELL!$SHELL$ac_delim
11727 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11728 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11729 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11730 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11731 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11732 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11733 +exec_prefix!$exec_prefix$ac_delim
11734 +prefix!$prefix$ac_delim
11735 +program_transform_name!$program_transform_name$ac_delim
11736 +bindir!$bindir$ac_delim
11737 +sbindir!$sbindir$ac_delim
11738 +libexecdir!$libexecdir$ac_delim
11739 +datarootdir!$datarootdir$ac_delim
11740 +datadir!$datadir$ac_delim
11741 +sysconfdir!$sysconfdir$ac_delim
11742 +sharedstatedir!$sharedstatedir$ac_delim
11743 +localstatedir!$localstatedir$ac_delim
11744 +includedir!$includedir$ac_delim
11745 +oldincludedir!$oldincludedir$ac_delim
11746 +docdir!$docdir$ac_delim
11747 +infodir!$infodir$ac_delim
11748 +htmldir!$htmldir$ac_delim
11749 +dvidir!$dvidir$ac_delim
11750 +pdfdir!$pdfdir$ac_delim
11751 +psdir!$psdir$ac_delim
11752 +libdir!$libdir$ac_delim
11753 +localedir!$localedir$ac_delim
11754 +mandir!$mandir$ac_delim
11755 +DEFS!$DEFS$ac_delim
11756 +ECHO_C!$ECHO_C$ac_delim
11757 +ECHO_N!$ECHO_N$ac_delim
11758 +ECHO_T!$ECHO_T$ac_delim
11759 +LIBS!$LIBS$ac_delim
11760 +build_alias!$build_alias$ac_delim
11761 +host_alias!$host_alias$ac_delim
11762 +target_alias!$target_alias$ac_delim
11763 +PACKAGE!$PACKAGE$ac_delim
11764 +VERSION!$VERSION$ac_delim
11765 +MAINT!$MAINT$ac_delim
11766 +MAJOR!$MAJOR$ac_delim
11767 +SET_MAKE!$SET_MAKE$ac_delim
11768 +CC!$CC$ac_delim
11769 +CFLAGS!$CFLAGS$ac_delim
11770 +LDFLAGS!$LDFLAGS$ac_delim
11771 +CPPFLAGS!$CPPFLAGS$ac_delim
11772 +ac_ct_CC!$ac_ct_CC$ac_delim
11773 +EXEEXT!$EXEEXT$ac_delim
11774 +OBJEXT!$OBJEXT$ac_delim
11775 +CPP!$CPP$ac_delim
11776 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11777 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11778 +INSTALL_DATA!$INSTALL_DATA$ac_delim
11779 +RANLIB!$RANLIB$ac_delim
11780 +LN_S!$LN_S$ac_delim
11781 +GREP!$GREP$ac_delim
11782 +EGREP!$EGREP$ac_delim
11783 +DO_COMPAT!$DO_COMPAT$ac_delim
11784 +LIBOBJS!$LIBOBJS$ac_delim
11785 +GMOFILES!$GMOFILES$ac_delim
11786 +MSGFILES!$MSGFILES$ac_delim
11787 +POFILES!$POFILES$ac_delim
11788 +MSGFMT!$MSGFMT$ac_delim
11789 +GMSGFMT!$GMSGFMT$ac_delim
11790 +XGETTEXT!$XGETTEXT$ac_delim
11791 +MSGMERGE!$MSGMERGE$ac_delim
11792 +GENCAT!$GENCAT$ac_delim
11793 +CATOBJEXT!$CATOBJEXT$ac_delim
11794 +INSTOBJEXT!$INSTOBJEXT$ac_delim
11795 +CATALOGS!$CATALOGS$ac_delim
11796 +POSUB!$POSUB$ac_delim
11797 +LIBINTL!$LIBINTL$ac_delim
11798 +build!$build$ac_delim
11799 +build_cpu!$build_cpu$ac_delim
11800 +build_vendor!$build_vendor$ac_delim
11801 +build_os!$build_os$ac_delim
11802 +host!$host$ac_delim
11803 +host_cpu!$host_cpu$ac_delim
11804 +host_vendor!$host_vendor$ac_delim
11805 +host_os!$host_os$ac_delim
11806 +LD!$LD$ac_delim
11807 +PICFLAGS!$PICFLAGS$ac_delim
11808 +SHLIB_SFX!$SHLIB_SFX$ac_delim
11809 +SHLINK_SFX!$SHLINK_SFX$ac_delim
11810 +SONAME_SFX!$SONAME_SFX$ac_delim
11811 +LINK_SHLIB!$LINK_SHLIB$ac_delim
11812 +INSTALL_SHLIB!$INSTALL_SHLIB$ac_delim
11813 +DEPSHLIBS!$DEPSHLIBS$ac_delim
11814 +DO_SHLIB!$DO_SHLIB$ac_delim
11815 +LTLIBOBJS!$LTLIBOBJS$ac_delim
11816 +_ACEOF
11818 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
11819 + break
11820 + elif $ac_last_try; then
11821 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11822 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11823 + { (exit 1); exit 1; }; }
11824 + else
11825 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11826 + fi
11827 +done
11829 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11830 +if test -n "$ac_eof"; then
11831 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11832 + ac_eof=`expr $ac_eof + 1`
11834 -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11835 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11836 - case "$ac_file" in
11837 - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11838 - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11839 - *) ac_file_in="${ac_file}.in" ;;
11841 +cat >>$CONFIG_STATUS <<_ACEOF
11842 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11843 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11844 +_ACEOF
11845 +sed '
11846 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11847 +s/^/s,@/; s/!/@,|#_!!_#|/
11849 +t n
11850 +s/'"$ac_delim"'$/,g/; t
11851 +s/$/\\/; p
11852 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11853 +' >>$CONFIG_STATUS <conf$$subs.sed
11854 +rm -f conf$$subs.sed
11855 +cat >>$CONFIG_STATUS <<_ACEOF
11856 +:end
11857 +s/|#_!!_#|//g
11858 +CEOF$ac_eof
11859 +_ACEOF
11862 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
11863 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11864 +# trailing colons and then remove the whole line if VPATH becomes empty
11865 +# (actually we leave an empty line to preserve line numbers).
11866 +if test "x$srcdir" = x.; then
11867 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
11868 +s/:*\$(srcdir):*/:/
11869 +s/:*\${srcdir}:*/:/
11870 +s/:*@srcdir@:*/:/
11871 +s/^\([^=]*=[ ]*\):*/\1/
11872 +s/:*$//
11873 +s/^[^=]*=[ ]*$//
11877 +cat >>$CONFIG_STATUS <<\_ACEOF
11878 +fi # test -n "$CONFIG_FILES"
11881 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11883 + case $ac_tag in
11884 + :[FHLC]) ac_mode=$ac_tag; continue;;
11885 + esac
11886 + case $ac_mode$ac_tag in
11887 + :[FHL]*:*);;
11888 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11889 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11890 + { (exit 1); exit 1; }; };;
11891 + :[FH]-) ac_tag=-:-;;
11892 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11893 esac
11894 + ac_save_IFS=$IFS
11895 + IFS=:
11896 + set x $ac_tag
11897 + IFS=$ac_save_IFS
11898 + shift
11899 + ac_file=$1
11900 + shift
11902 - echo creating $ac_file
11903 + case $ac_mode in
11904 + :L) ac_source=$1;;
11905 + :[FH])
11906 + ac_file_inputs=
11907 + for ac_f
11908 + do
11909 + case $ac_f in
11910 + -) ac_f="$tmp/stdin";;
11911 + *) # Look for the file first in the build tree, then in the source tree
11912 + # (if the path is not absolute). The absolute path cannot be DOS-style,
11913 + # because $ac_f cannot contain `:'.
11914 + test -f "$ac_f" ||
11915 + case $ac_f in
11916 + [\\/$]*) false;;
11917 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11918 + esac ||
11919 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11920 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11921 + { (exit 1); exit 1; }; };;
11922 + esac
11923 + ac_file_inputs="$ac_file_inputs $ac_f"
11924 + done
11926 - rm -f conftest.frag conftest.in conftest.out
11927 - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11928 - cat $ac_file_inputs > conftest.in
11929 + # Let's still pretend it is `configure' which instantiates (i.e., don't
11930 + # use $as_me), people would be surprised to read:
11931 + # /* config.h. Generated by config.status. */
11932 + configure_input="Generated from "`IFS=:
11933 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11934 + if test x"$ac_file" != x-; then
11935 + configure_input="$ac_file. $configure_input"
11936 + { echo "$as_me:$LINENO: creating $ac_file" >&5
11937 +echo "$as_me: creating $ac_file" >&6;}
11938 + fi
11940 -EOF
11941 + case $ac_tag in
11942 + *:-:* | *:-) cat >"$tmp/stdin";;
11943 + esac
11944 + ;;
11945 + esac
11947 -# Transform confdefs.h into a sed script conftest.vals that substitutes
11948 -# the proper values into config.h.in to produce config.h. And first:
11949 -# Protect against being on the right side of a sed subst in config.status.
11950 -# Protect against being in an unquoted here document in config.status.
11951 -rm -f conftest.vals
11952 -cat > conftest.hdr <<\EOF
11953 -s/[\\&%]/\\&/g
11954 -s%[\\$`]%\\&%g
11955 -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11956 -s%ac_d%ac_u%gp
11957 -s%ac_u%ac_e%gp
11958 -EOF
11959 -sed -n -f conftest.hdr confdefs.h > conftest.vals
11960 -rm -f conftest.hdr
11961 + ac_dir=`$as_dirname -- "$ac_file" ||
11962 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11963 + X"$ac_file" : 'X\(//\)[^/]' \| \
11964 + X"$ac_file" : 'X\(//\)$' \| \
11965 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11966 +echo X"$ac_file" |
11967 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11968 + s//\1/
11971 + /^X\(\/\/\)[^/].*/{
11972 + s//\1/
11975 + /^X\(\/\/\)$/{
11976 + s//\1/
11979 + /^X\(\/\).*/{
11980 + s//\1/
11983 + s/.*/./; q'`
11984 + { as_dir="$ac_dir"
11985 + case $as_dir in #(
11986 + -*) as_dir=./$as_dir;;
11987 + esac
11988 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11989 + as_dirs=
11990 + while :; do
11991 + case $as_dir in #(
11992 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11993 + *) as_qdir=$as_dir;;
11994 + esac
11995 + as_dirs="'$as_qdir' $as_dirs"
11996 + as_dir=`$as_dirname -- "$as_dir" ||
11997 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11998 + X"$as_dir" : 'X\(//\)[^/]' \| \
11999 + X"$as_dir" : 'X\(//\)$' \| \
12000 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12001 +echo X"$as_dir" |
12002 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12003 + s//\1/
12006 + /^X\(\/\/\)[^/].*/{
12007 + s//\1/
12010 + /^X\(\/\/\)$/{
12011 + s//\1/
12014 + /^X\(\/\).*/{
12015 + s//\1/
12018 + s/.*/./; q'`
12019 + test -d "$as_dir" && break
12020 + done
12021 + test -z "$as_dirs" || eval "mkdir $as_dirs"
12022 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12023 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
12024 + { (exit 1); exit 1; }; }; }
12025 + ac_builddir=.
12027 -# This sed command replaces #undef with comments. This is necessary, for
12028 +case "$ac_dir" in
12029 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12031 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12032 + # A ".." for each directory in $ac_dir_suffix.
12033 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12034 + case $ac_top_builddir_sub in
12035 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12036 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12037 + esac ;;
12038 +esac
12039 +ac_abs_top_builddir=$ac_pwd
12040 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
12041 +# for backward compatibility:
12042 +ac_top_builddir=$ac_top_build_prefix
12044 +case $srcdir in
12045 + .) # We are building in place.
12046 + ac_srcdir=.
12047 + ac_top_srcdir=$ac_top_builddir_sub
12048 + ac_abs_top_srcdir=$ac_pwd ;;
12049 + [\\/]* | ?:[\\/]* ) # Absolute name.
12050 + ac_srcdir=$srcdir$ac_dir_suffix;
12051 + ac_top_srcdir=$srcdir
12052 + ac_abs_top_srcdir=$srcdir ;;
12053 + *) # Relative name.
12054 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12055 + ac_top_srcdir=$ac_top_build_prefix$srcdir
12056 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12057 +esac
12058 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12061 + case $ac_mode in
12062 + :F)
12064 + # CONFIG_FILE
12067 + case $INSTALL in
12068 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12069 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12070 + esac
12071 +_ACEOF
12073 +cat >>$CONFIG_STATUS <<\_ACEOF
12074 +# If the template does not know about datarootdir, expand it.
12075 +# FIXME: This hack should be removed a few years after 2.60.
12076 +ac_datarootdir_hack=; ac_datarootdir_seen=
12078 +case `sed -n '/datarootdir/ {
12082 +/@datadir@/p
12083 +/@docdir@/p
12084 +/@infodir@/p
12085 +/@localedir@/p
12086 +/@mandir@/p
12087 +' $ac_file_inputs` in
12088 +*datarootdir*) ac_datarootdir_seen=yes;;
12089 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12090 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12091 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12092 +_ACEOF
12093 +cat >>$CONFIG_STATUS <<_ACEOF
12094 + ac_datarootdir_hack='
12095 + s&@datadir@&$datadir&g
12096 + s&@docdir@&$docdir&g
12097 + s&@infodir@&$infodir&g
12098 + s&@localedir@&$localedir&g
12099 + s&@mandir@&$mandir&g
12100 + s&\\\${datarootdir}&$datarootdir&g' ;;
12101 +esac
12102 +_ACEOF
12104 +# Neutralize VPATH when `$srcdir' = `.'.
12105 +# Shell code in configure.ac might set extrasub.
12106 +# FIXME: do we really want to maintain this feature?
12107 +cat >>$CONFIG_STATUS <<_ACEOF
12108 + sed "$ac_vpsub
12109 +$extrasub
12110 +_ACEOF
12111 +cat >>$CONFIG_STATUS <<\_ACEOF
12113 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12114 +s&@configure_input@&$configure_input&;t t
12115 +s&@top_builddir@&$ac_top_builddir_sub&;t t
12116 +s&@srcdir@&$ac_srcdir&;t t
12117 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
12118 +s&@top_srcdir@&$ac_top_srcdir&;t t
12119 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12120 +s&@builddir@&$ac_builddir&;t t
12121 +s&@abs_builddir@&$ac_abs_builddir&;t t
12122 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12123 +s&@INSTALL@&$ac_INSTALL&;t t
12124 +$ac_datarootdir_hack
12125 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12127 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12128 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12129 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12130 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12131 +which seems to be undefined. Please make sure it is defined." >&5
12132 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12133 +which seems to be undefined. Please make sure it is defined." >&2;}
12135 + rm -f "$tmp/stdin"
12136 + case $ac_file in
12137 + -) cat "$tmp/out"; rm -f "$tmp/out";;
12138 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12139 + esac
12140 + ;;
12141 + :H)
12143 + # CONFIG_HEADER
12145 +_ACEOF
12147 +# Transform confdefs.h into a sed script `conftest.defines', that
12148 +# substitutes the proper values into config.h.in to produce config.h.
12149 +rm -f conftest.defines conftest.tail
12150 +# First, append a space to every undef/define line, to ease matching.
12151 +echo 's/$/ /' >conftest.defines
12152 +# Then, protect against being on the right side of a sed subst, or in
12153 +# an unquoted here document, in config.status. If some macros were
12154 +# called several times there might be several #defines for the same
12155 +# symbol, which is useless. But do not sort them, since the last
12156 +# AC_DEFINE must be honored.
12157 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12158 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12159 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
12160 +# PARAMS is the parameter list in the macro definition--in most cases, it's
12161 +# just an empty string.
12162 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12163 +ac_dB='\\)[ (].*,\\1define\\2'
12164 +ac_dC=' '
12165 +ac_dD=' ,'
12167 +uniq confdefs.h |
12168 + sed -n '
12169 + t rset
12170 + :rset
12171 + s/^[ ]*#[ ]*define[ ][ ]*//
12172 + t ok
12174 + :ok
12175 + s/[\\&,]/\\&/g
12176 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12177 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12178 + ' >>conftest.defines
12180 +# Remove the space that was appended to ease matching.
12181 +# Then replace #undef with comments. This is necessary, for
12182 # example, in the case of _POSIX_SOURCE, which is predefined and required
12183 # on some systems where configure will not decide to define it.
12184 -cat >> conftest.vals <<\EOF
12185 -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12186 -EOF
12187 +# (The regexp can be short, since the line contains either #define or #undef.)
12188 +echo 's/ $//
12189 +s,^[ #]*u.*,/* & */,' >>conftest.defines
12191 -# Break up conftest.vals because some shells have a limit on
12192 -# the size of here documents, and old seds have small limits too.
12193 +# Break up conftest.defines:
12194 +ac_max_sed_lines=50
12196 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12197 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12198 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12199 +# et cetera.
12200 +ac_in='$ac_file_inputs'
12201 +ac_out='"$tmp/out1"'
12202 +ac_nxt='"$tmp/out2"'
12204 -rm -f conftest.tail
12205 while :
12207 - ac_lines=`grep -c . conftest.vals`
12208 - # grep -c gives empty output for an empty file on some AIX systems.
12209 - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12210 - # Write a limited-size here document to conftest.frag.
12211 - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12212 - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12213 + # Write a here document:
12214 + cat >>$CONFIG_STATUS <<_ACEOF
12215 + # First, check the format of the line:
12216 + cat >"\$tmp/defines.sed" <<\\CEOF
12217 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12218 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12220 +:def
12221 +_ACEOF
12222 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12223 echo 'CEOF
12224 - sed -f conftest.frag conftest.in > conftest.out
12225 - rm -f conftest.in
12226 - mv conftest.out conftest.in
12227 -' >> $CONFIG_STATUS
12228 - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12229 - rm -f conftest.vals
12230 - mv conftest.tail conftest.vals
12231 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12232 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12233 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12234 + grep . conftest.tail >/dev/null || break
12235 + rm -f conftest.defines
12236 + mv conftest.tail conftest.defines
12237 done
12238 -rm -f conftest.vals
12239 +rm -f conftest.defines conftest.tail
12241 -cat >> $CONFIG_STATUS <<\EOF
12242 - rm -f conftest.frag conftest.h
12243 - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12244 - cat conftest.in >> conftest.h
12245 - rm -f conftest.in
12246 - if cmp -s $ac_file conftest.h 2>/dev/null; then
12247 - echo "$ac_file is unchanged"
12248 - rm -f conftest.h
12249 - else
12250 - # Remove last slash and all that follows it. Not all systems have dirname.
12251 - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12252 - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12253 - # The file is in a subdirectory.
12254 - test ! -d "$ac_dir" && mkdir "$ac_dir"
12255 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
12256 +cat >>$CONFIG_STATUS <<\_ACEOF
12257 + if test x"$ac_file" != x-; then
12258 + echo "/* $configure_input */" >"$tmp/config.h"
12259 + cat "$ac_result" >>"$tmp/config.h"
12260 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12261 + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12262 +echo "$as_me: $ac_file is unchanged" >&6;}
12263 + else
12264 + rm -f $ac_file
12265 + mv "$tmp/config.h" $ac_file
12267 - rm -f $ac_file
12268 - mv conftest.h $ac_file
12269 + else
12270 + echo "/* $configure_input */"
12271 + cat "$ac_result"
12273 -fi; done
12274 + rm -f "$tmp/out12"
12275 + ;;
12277 -EOF
12278 -cat >> $CONFIG_STATUS <<EOF
12279 + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12280 +echo "$as_me: executing $ac_file commands" >&6;}
12281 + ;;
12282 + esac
12284 -EOF
12285 -cat >> $CONFIG_STATUS <<\EOF
12286 -echo timestamp > stamp-h; echo timestamp > lib/stamp-h
12287 -exit 0
12288 -EOF
12290 + case $ac_file$ac_mode in
12291 + "default":C) echo timestamp > stamp-h; echo timestamp > lib/stamp-h ;;
12293 + esac
12294 +done # for ac_tag
12297 +{ (exit 0); exit 0; }
12298 +_ACEOF
12299 chmod +x $CONFIG_STATUS
12300 -rm -fr confdefs* $ac_clean_files
12301 -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
12302 +ac_clean_files=$ac_clean_files_save
12305 +# configure is writing to config.log, and then calls config.status.
12306 +# config.status does its own redirection, appending to config.log.
12307 +# Unfortunately, on DOS this fails, as config.log is still kept open
12308 +# by configure, so config.status won't be able to write to it; its
12309 +# output is simply discarded. So we exec the FD to /dev/null,
12310 +# effectively closing config.log, so it can be properly (re)opened and
12311 +# appended to by config.status. When coming back to configure, we
12312 +# need to make the FD available again.
12313 +if test "$no_create" != yes; then
12314 + ac_cs_success=:
12315 + ac_config_status_args=
12316 + test "$silent" = yes &&
12317 + ac_config_status_args="$ac_config_status_args --quiet"
12318 + exec 5>/dev/null
12319 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12320 + exec 5>>config.log
12321 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12322 + # would make configure fail if this is the last instruction.
12323 + $ac_cs_success || { (exit 1); exit 1; }
12327 # vi: set ts=8 sw=2 :
12328 diff -rdup libelf-0.8.10.orig/configure.in libelf-0.8.10/configure.in
12329 --- libelf-0.8.10.orig/configure.in 2007-09-07 14:07:59.000000000 +0200
12330 +++ libelf-0.8.10/configure.in 2007-09-20 10:31:42.000000000 +0200
12331 @@ -148,20 +148,25 @@ if test "$ac_cv_header_elf_h" = yes \
12332 [libelf_cv_struct_elf64_rel=irix],
12333 [libelf_cv_struct_elf64_rel=no])))
12335 - case "$libelf_cv_struct_elf64_ehdr:\
12336 + AC_CACHE_CHECK([for 64bit support], libelf_64bit,
12337 + [case "$libelf_cv_struct_elf64_ehdr:\
12338 $libelf_cv_type_elf64_addr:\
12339 $libelf_cv_struct_elf64_rel" in
12340 yes:yes:yes)
12341 libelf_64bit=yes;;
12342 yes:yes:irix)
12343 - AC_DEFINE(__LIBELF64_IRIX)
12344 - libelf_64bit=yes;;
12345 + libelf_64bit=irix;;
12346 yes:no:yes)
12347 - AC_DEFINE(__LIBELF64_LINUX)
12348 - libelf_64bit=yes;;
12349 + libelf_64bit=linux;;
12351 libelf_64bit=no;;
12352 esac
12353 + ])
12354 + case $libelf_64bit in
12355 + yes) ;;
12356 + linux) AC_DEFINE(__LIBELF64_LINUX) ;;
12357 + irix) AC_DEFINE(__LIBELF64_IRIX) ;;
12358 + esac
12360 # Check for symbol versioning definitions
12361 AC_CACHE_CHECK([for Elf32_Verdef], libelf_cv_verdef32,