Debian Codegraph @

configure

raw ◀ ▶
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for briquolo 0.5.7.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell [email protected] about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='briquolo'
576 PACKAGE_TARNAME='briquolo'
577 PACKAGE_VERSION='0.5.7'
578 PACKAGE_STRING='briquolo 0.5.7'
579 PACKAGE_BUGREPORT='[email protected]'
580
581 ac_unique_file="src/MenuJeu.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 target
664 target_cpu
665 target_vendor
666 target_os
667 INSTALL_PROGRAM
668 INSTALL_SCRIPT
669 INSTALL_DATA
670 CYGPATH_W
671 PACKAGE
672 VERSION
673 ACLOCAL
674 AUTOCONF
675 AUTOMAKE
676 AUTOHEADER
677 MAKEINFO
678 install_sh
679 STRIP
680 INSTALL_STRIP_PROGRAM
681 mkdir_p
682 AWK
683 SET_MAKE
684 am__leading_dot
685 AMTAR
686 am__tar
687 am__untar
688 CXX
689 CXXFLAGS
690 LDFLAGS
691 CPPFLAGS
692 ac_ct_CXX
693 EXEEXT
694 OBJEXT
695 DEPDIR
696 am__include
697 am__quote
698 AMDEP_TRUE
699 AMDEP_FALSE
700 AMDEPBACKSLASH
701 CXXDEPMODE
702 am__fastdepCXX_TRUE
703 am__fastdepCXX_FALSE
704 CC
705 CFLAGS
706 ac_ct_CC
707 CCDEPMODE
708 am__fastdepCC_TRUE
709 am__fastdepCC_FALSE
710 RANLIB
711 YACC
712 YFLAGS
713 ALLOCA
714 CPP
715 GREP
716 EGREP
717 LIBOBJS
718 freetypeconfig
719 pngconfig
720 SDL_CONFIG
721 SDL_CFLAGS
722 SDL_LIBS
723 MKINSTALLDIRS
724 USE_NLS
725 MSGFMT
726 GMSGFMT
727 XGETTEXT
728 MSGMERGE
729 GLIBC21
730 HAVE_POSIX_PRINTF
731 HAVE_ASPRINTF
732 HAVE_SNPRINTF
733 HAVE_WPRINTF
734 LIBICONV
735 LTLIBICONV
736 INTLBISON
737 BUILD_INCLUDED_LIBINTL
738 USE_INCLUDED_LIBINTL
739 CATOBJEXT
740 DATADIRNAME
741 INSTOBJEXT
742 GENCAT
743 INTLOBJS
744 INTL_LIBTOOL_SUFFIX_PREFIX
745 INTLLIBS
746 LIBINTL
747 LTLIBINTL
748 POSUB
749 XMKMF
750 LTLIBOBJS'
751 ac_subst_files=''
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
755 CXX
756 CXXFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
760 CCC
761 CC
762 CFLAGS
763 YACC
764 YFLAGS
765 CPP
766 XMKMF'
767
768
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
788
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
•803 runstatedir='${localstatedir}/run'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
815
816 ac_prev=
817 ac_dashdash=
818 for ac_option
819 do
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
825 fi
826
827 case $ac_option in
828 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *) ac_optarg=yes ;;
830 esac
831
832 # Accept the important Cygnus configure options, so we can diagnose typos.
833
834 case $ac_dashdash$ac_option in
835 --)
836 ac_dashdash=yes ;;
837
•838
839 -runstatedir | --runstatedir | --runstatedi | --runstated \
840 | --runstate | --runstat | --runsta | --runst \
841 | --runs | --run | --ru)
842 ac_prev=runstatedir ;;
843 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
844 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
845 | --runs=* | --run=* | --ru=*)
846 runstatedir=$ac_optarg ;;
847
848
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
853
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
858
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
865
866 --config-cache | -C)
867 cache_file=config.cache ;;
868
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
873
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
880
881 -disable-* | --disable-*)
882 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
885 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
886 { (exit 1); exit 1; }; }
887 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
888 eval enable_$ac_feature=no ;;
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
899
900 -enable-* | --enable-*)
901 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
904 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905 { (exit 1); exit 1; }; }
906 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
907 eval enable_$ac_feature=\$ac_optarg ;;
908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
928
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
933
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
963
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
980
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1001
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1037
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1068
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1073
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1078
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1085
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1096
1097 -with-* | --with-*)
1098 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid package name: $ac_package" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1104 eval with_$ac_package=\$ac_optarg ;;
1105
1106 -without-* | --without-*)
1107 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1113 eval with_$ac_package=no ;;
1114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
1133 -*) { echo "$as_me: error: unrecognized option: $ac_option
1134 Try \`$0 --help' for more information." >&2
1135 { (exit 1); exit 1; }; }
1136 ;;
1137
1138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1143 { (exit 1); exit 1; }; }
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
1149 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153 ;;
1154
1155 esac
1156 done
1157
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 { echo "$as_me: error: missing argument to $ac_option" >&2
1161 { (exit 1); exit 1; }; }
1162 fi
1163
1164 # Be sure to have absolute directory names.
1165 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166 datadir sysconfdir sharedstatedir localstatedir includedir \
1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168 libdir localedir mandir
1169 do
1170 eval ac_val=\$$ac_var
1171 case $ac_val in
1172 [\\/$]* | ?:[\\/]* ) continue;;
1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 esac
1175 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1176 { (exit 1); exit 1; }; }
1177 done
1178
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1182 build=$build_alias
1183 host=$host_alias
1184 target=$target_alias
1185
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1191 If a cross compiler is detected then cross compile mode will be used." >&2
1192 elif test "x$build_alias" != "x$host_alias"; then
1193 cross_compiling=yes
1194 fi
1195 fi
1196
1197 ac_tool_prefix=
1198 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199
1200 test "$silent" = yes && exec 6>/dev/null
1201
1202
1203 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204 ac_ls_di=`ls -di .` &&
1205 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206 { echo "$as_me: error: Working directory cannot be determined" >&2
1207 { (exit 1); exit 1; }; }
1208 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209 { echo "$as_me: error: pwd does not report name of working directory" >&2
1210 { (exit 1); exit 1; }; }
1211
1212
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$0" ||
1218 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$0" : 'X\(//\)[^/]' \| \
1220 X"$0" : 'X\(//\)$' \| \
1221 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 echo X"$0" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\).*/{
1236 s//\1/
1237 q
1238 }
1239 s/.*/./; q'`
1240 srcdir=$ac_confdir
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 srcdir=..
1243 fi
1244 else
1245 ac_srcdir_defaulted=no
1246 fi
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1250 { (exit 1); exit 1; }; }
1251 fi
1252 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 ac_abs_confdir=`(
1254 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1255 { (exit 1); exit 1; }; }
1256 pwd)`
1257 # When building in place, set srcdir=.
1258 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 srcdir=.
1260 fi
1261 # Remove unnecessary trailing slashes from srcdir.
1262 # Double slashes in file names in object file debugging info
1263 # mess up M-x gdb in Emacs.
1264 case $srcdir in
1265 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 esac
1267 for ac_var in $ac_precious_vars; do
1268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_env_${ac_var}_value=\$${ac_var}
1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272 done
1273
1274 #
1275 # Report the --help message.
1276 #
1277 if test "$ac_init_help" = "long"; then
1278 # Omit some internal or obsolete options to make the list less imposing.
1279 # This message is too long to be a string in the A/UX 3.1 sh.
1280 cat <<_ACEOF
1281 \`configure' configures briquolo 0.5.7 to adapt to many kinds of systems.
1282
1283 Usage: $0 [OPTION]... [VAR=VALUE]...
1284
1285 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286 VAR=VALUE. See below for descriptions of some of the useful variables.
1287
1288 Defaults for the options are specified in brackets.
1289
1290 Configuration:
1291 -h, --help display this help and exit
1292 --help=short display options specific to this package
1293 --help=recursive display the short help of all the included packages
1294 -V, --version display version information and exit
1295 -q, --quiet, --silent do not print \`checking...' messages
1296 --cache-file=FILE cache test results in FILE [disabled]
1297 -C, --config-cache alias for \`--cache-file=config.cache'
1298 -n, --no-create do not create output files
1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300
1301 Installation directories:
1302 --prefix=PREFIX install architecture-independent files in PREFIX
1303 [$ac_default_prefix]
1304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 [PREFIX]
1306
1307 By default, \`make install' will install all the files in
1308 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310 for instance \`--prefix=\$HOME'.
1311
1312 For better control, use the options below.
1313
1314 Fine tuning of the installation directories:
1315 --bindir=DIR user executables [EPREFIX/bin]
1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1317 --libexecdir=DIR program executables [EPREFIX/libexec]
1318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321 --libdir=DIR object code libraries [EPREFIX/lib]
1322 --includedir=DIR C header files [PREFIX/include]
1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1329 --docdir=DIR documentation root [DATAROOTDIR/doc/briquolo]
1330 --htmldir=DIR html documentation [DOCDIR]
1331 --dvidir=DIR dvi documentation [DOCDIR]
1332 --pdfdir=DIR pdf documentation [DOCDIR]
1333 --psdir=DIR ps documentation [DOCDIR]
1334 _ACEOF
1335
1336 cat <<\_ACEOF
1337
1338 Program names:
1339 --program-prefix=PREFIX prepend PREFIX to installed program names
1340 --program-suffix=SUFFIX append SUFFIX to installed program names
1341 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1342
1343 X features:
1344 --x-includes=DIR X include files are in DIR
1345 --x-libraries=DIR X library files are in DIR
1346
1347 System types:
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350 --target=TARGET configure for building compilers for TARGET [HOST]
1351 _ACEOF
1352 fi
1353
1354 if test -n "$ac_init_help"; then
1355 case $ac_init_help in
1356 short | recursive ) echo "Configuration of briquolo 0.5.7:";;
1357 esac
1358 cat <<\_ACEOF
1359
1360 Optional Features:
1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1363 --disable-dependency-tracking speeds up one-time build
1364 --enable-dependency-tracking do not reject slow dependency extractors
1365 --disable-sdltest Do not try to compile and run a test SDL program
1366 --disable-nls do not use Native Language Support
1367 --disable-rpath do not hardcode runtime library paths
1368 --enable-debug Enable debugging default=no
1369
1370 Optional Packages:
1371 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1372 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1373 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1374 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1375 --with-gnu-ld assume the C compiler uses GNU ld default=no
1376 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1377 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1378 --with-included-gettext use the GNU gettext library included here
1379 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1380 --without-libintl-prefix don't search for libintl in includedir and libdir
1381 --with-x use the X Window System
1382
1383 Some influential environment variables:
1384 CXX C++ compiler command
1385 CXXFLAGS C++ compiler flags
1386 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1387 nonstandard directory <lib dir>
1388 LIBS libraries to pass to the linker, e.g. -l<library>
1389 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1390 you have headers in a nonstandard directory <include dir>
1391 CC C compiler command
1392 CFLAGS C compiler flags
1393 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1394 the first program found out of: `bison -y', `byacc', `yacc'.
1395 YFLAGS The list of arguments that will be passed by default to $YACC.
1396 This script will default YFLAGS to the empty string to avoid a
1397 default value of `-d' given by some make applications.
1398 CPP C preprocessor
1399 XMKMF Path to xmkmf, Makefile generator for X Window System
1400
1401 Use these variables to override the choices made by `configure' or to help
1402 it to find libraries and programs with nonstandard names/locations.
1403
1404 Report bugs to <[email protected]>.
1405 _ACEOF
1406 ac_status=$?
1407 fi
1408
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412 test -d "$ac_dir" || continue
1413 ac_builddir=.
1414
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *)
1418 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1430
1431 case $srcdir in
1432 .) # We are building in place.
1433 ac_srcdir=.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 esac
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1455 else
1456 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1459 done
1460 fi
1461
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464 cat <<\_ACEOF
1465 briquolo configure 0.5.7
1466 generated by GNU Autoconf 2.61
1467
1468 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1469 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1472 _ACEOF
1473 exit
1474 fi
1475 cat >config.log <<_ACEOF
1476 This file contains any messages produced by compilers while
1477 running configure, to aid debugging if configure makes a mistake.
1478
1479 It was created by briquolo $as_me 0.5.7, which was
1480 generated by GNU Autoconf 2.61. Invocation command line was
1481
1482 $ $0 $@
1483
1484 _ACEOF
1485 exec 5>>config.log
1486 {
1487 cat <<_ASUNAME
1488 ## --------- ##
1489 ## Platform. ##
1490 ## --------- ##
1491
1492 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1493 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1494 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1495 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1496 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1497
1498 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1499 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1500
1501 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1502 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1503 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1504 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1505 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1506 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1507 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1508
1509 _ASUNAME
1510
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1513 do
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 echo "PATH: $as_dir"
1517 done
1518 IFS=$as_save_IFS
1519
1520 } >&5
1521
1522 cat >&5 <<_ACEOF
1523
1524
1525 ## ----------- ##
1526 ## Core tests. ##
1527 ## ----------- ##
1528
1529 _ACEOF
1530
1531
1532 # Keep a trace of the command line.
1533 # Strip out --no-create and --no-recursion so they do not pile up.
1534 # Strip out --silent because we don't want to record it for future runs.
1535 # Also quote any args containing shell meta-characters.
1536 # Make two passes to allow for proper duplicate-argument suppression.
1537 ac_configure_args=
1538 ac_configure_args0=
1539 ac_configure_args1=
1540 ac_must_keep_next=false
1541 for ac_pass in 1 2
1542 do
1543 for ac_arg
1544 do
1545 case $ac_arg in
1546 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1548 | -silent | --silent | --silen | --sile | --sil)
1549 continue ;;
1550 *\'*)
1551 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1552 esac
1553 case $ac_pass in
1554 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1555 2)
1556 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1557 if test $ac_must_keep_next = true; then
1558 ac_must_keep_next=false # Got value, back to normal.
1559 else
1560 case $ac_arg in
1561 *=* | --config-cache | -C | -disable-* | --disable-* \
1562 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1563 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1564 | -with-* | --with-* | -without-* | --without-* | --x)
1565 case "$ac_configure_args0 " in
1566 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1567 esac
1568 ;;
1569 -* ) ac_must_keep_next=true ;;
1570 esac
1571 fi
1572 ac_configure_args="$ac_configure_args '$ac_arg'"
1573 ;;
1574 esac
1575 done
1576 done
1577 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1578 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1579
1580 # When interrupted or exit'd, cleanup temporary files, and complete
1581 # config.log. We remove comments because anyway the quotes in there
1582 # would cause problems or look ugly.
1583 # WARNING: Use '\'' to represent an apostrophe within the trap.
1584 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1585 trap 'exit_status=$?
1586 # Save into config.log some information that might help in debugging.
1587 {
1588 echo
1589
1590 cat <<\_ASBOX
1591 ## ---------------- ##
1592 ## Cache variables. ##
1593 ## ---------------- ##
1594 _ASBOX
1595 echo
1596 # The following way of writing the cache mishandles newlines in values,
1597 (
1598 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1599 eval ac_val=\$$ac_var
1600 case $ac_val in #(
1601 *${as_nl}*)
1602 case $ac_var in #(
1603 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1604 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1605 esac
1606 case $ac_var in #(
1607 _ | IFS | as_nl) ;; #(
1608 *) $as_unset $ac_var ;;
1609 esac ;;
1610 esac
1611 done
1612 (set) 2>&1 |
1613 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1614 *${as_nl}ac_space=\ *)
1615 sed -n \
1616 "s/'\''/'\''\\\\'\'''\''/g;
1617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1618 ;; #(
1619 *)
1620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1621 ;;
1622 esac |
1623 sort
1624 )
1625 echo
1626
1627 cat <<\_ASBOX
1628 ## ----------------- ##
1629 ## Output variables. ##
1630 ## ----------------- ##
1631 _ASBOX
1632 echo
1633 for ac_var in $ac_subst_vars
1634 do
1635 eval ac_val=\$$ac_var
1636 case $ac_val in
1637 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1638 esac
1639 echo "$ac_var='\''$ac_val'\''"
1640 done | sort
1641 echo
1642
1643 if test -n "$ac_subst_files"; then
1644 cat <<\_ASBOX
1645 ## ------------------- ##
1646 ## File substitutions. ##
1647 ## ------------------- ##
1648 _ASBOX
1649 echo
1650 for ac_var in $ac_subst_files
1651 do
1652 eval ac_val=\$$ac_var
1653 case $ac_val in
1654 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655 esac
1656 echo "$ac_var='\''$ac_val'\''"
1657 done | sort
1658 echo
1659 fi
1660
1661 if test -s confdefs.h; then
1662 cat <<\_ASBOX
1663 ## ----------- ##
1664 ## confdefs.h. ##
1665 ## ----------- ##
1666 _ASBOX
1667 echo
1668 cat confdefs.h
1669 echo
1670 fi
1671 test "$ac_signal" != 0 &&
1672 echo "$as_me: caught signal $ac_signal"
1673 echo "$as_me: exit $exit_status"
1674 } >&5
1675 rm -f core *.core core.conftest.* &&
1676 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1677 exit $exit_status
1678 ' 0
1679 for ac_signal in 1 2 13 15; do
1680 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1681 done
1682 ac_signal=0
1683
1684 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1685 rm -f -r conftest* confdefs.h
1686
1687 # Predefined preprocessor variables.
1688
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_NAME "$PACKAGE_NAME"
1691 _ACEOF
1692
1693
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1696 _ACEOF
1697
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_STRING "$PACKAGE_STRING"
1706 _ACEOF
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1711 _ACEOF
1712
1713
1714 # Let the site file select an alternate cache file if it wants to.
1715 # Prefer explicitly selected file to automatically selected ones.
1716 if test -n "$CONFIG_SITE"; then
1717 set x "$CONFIG_SITE"
1718 elif test "x$prefix" != xNONE; then
1719 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1720 else
1721 set x "$ac_default_prefix/share/config.site" \
1722 "$ac_default_prefix/etc/config.site"
1723 fi
1724 shift
1725 for ac_site_file
1726 do
1727 if test -r "$ac_site_file"; then
1728 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1729 echo "$as_me: loading site script $ac_site_file" >&6;}
1730 sed 's/^/| /' "$ac_site_file" >&5
1731 . "$ac_site_file"
1732 fi
1733 done
1734
1735 if test -r "$cache_file"; then
1736 # Some versions of bash will fail to source /dev/null (special
1737 # files actually), so we avoid doing that.
1738 if test -f "$cache_file"; then
1739 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1740 echo "$as_me: loading cache $cache_file" >&6;}
1741 case $cache_file in
1742 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1743 *) . "./$cache_file";;
1744 esac
1745 fi
1746 else
1747 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1748 echo "$as_me: creating cache $cache_file" >&6;}
1749 >$cache_file
1750 fi
1751
1752 # Check that the precious variables saved in the cache have kept the same
1753 # value.
1754 ac_cache_corrupted=false
1755 for ac_var in $ac_precious_vars; do
1756 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1757 eval ac_new_set=\$ac_env_${ac_var}_set
1758 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1759 eval ac_new_val=\$ac_env_${ac_var}_value
1760 case $ac_old_set,$ac_new_set in
1761 set,)
1762 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1763 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1765 ,set)
1766 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1767 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1768 ac_cache_corrupted=: ;;
1769 ,);;
1770 *)
1771 if test "x$ac_old_val" != "x$ac_new_val"; then
1772 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1773 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1774 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1775 echo "$as_me: former value: $ac_old_val" >&2;}
1776 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1777 echo "$as_me: current value: $ac_new_val" >&2;}
1778 ac_cache_corrupted=:
1779 fi;;
1780 esac
1781 # Pass precious variables to config.status.
1782 if test "$ac_new_set" = set; then
1783 case $ac_new_val in
1784 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1785 *) ac_arg=$ac_var=$ac_new_val ;;
1786 esac
1787 case " $ac_configure_args " in
1788 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1789 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1790 esac
1791 fi
1792 done
1793 if $ac_cache_corrupted; then
1794 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1795 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1796 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1797 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1798 { (exit 1); exit 1; }; }
1799 fi
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825 ac_ext=c
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830
1831
1832
1833
1834 ac_config_headers="$ac_config_headers config.h"
1835
1836
1837 ac_aux_dir=
1838 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1839 if test -f "$ac_dir/install-sh"; then
1840 ac_aux_dir=$ac_dir
1841 ac_install_sh="$ac_aux_dir/install-sh -c"
1842 break
1843 elif test -f "$ac_dir/install.sh"; then
1844 ac_aux_dir=$ac_dir
1845 ac_install_sh="$ac_aux_dir/install.sh -c"
1846 break
1847 elif test -f "$ac_dir/shtool"; then
1848 ac_aux_dir=$ac_dir
1849 ac_install_sh="$ac_aux_dir/shtool install -c"
1850 break
1851 fi
1852 done
1853 if test -z "$ac_aux_dir"; then
1854 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1855 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1856 { (exit 1); exit 1; }; }
1857 fi
1858
1859 # These three variables are undocumented and unsupported,
1860 # and are intended to be withdrawn in a future Autoconf release.
1861 # They can cause serious problems if a builder's source tree is in a directory
1862 # whose full name contains unusual characters.
1863 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1864 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1865 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1866
1867
1868 # Make sure we can run config.sub.
1869 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1870 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1871 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1872 { (exit 1); exit 1; }; }
1873
1874 { echo "$as_me:$LINENO: checking build system type" >&5
1875 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1876 if test "${ac_cv_build+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 ac_build_alias=$build_alias
1880 test "x$ac_build_alias" = x &&
1881 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1882 test "x$ac_build_alias" = x &&
1883 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1884 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1885 { (exit 1); exit 1; }; }
1886 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1887 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1888 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1889 { (exit 1); exit 1; }; }
1890
1891 fi
1892 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1893 echo "${ECHO_T}$ac_cv_build" >&6; }
1894 case $ac_cv_build in
1895 *-*-*) ;;
1896 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1897 echo "$as_me: error: invalid value of canonical build" >&2;}
1898 { (exit 1); exit 1; }; };;
1899 esac
1900 build=$ac_cv_build
1901 ac_save_IFS=$IFS; IFS='-'
1902 set x $ac_cv_build
1903 shift
1904 build_cpu=$1
1905 build_vendor=$2
1906 shift; shift
1907 # Remember, the first character of IFS is used to create $*,
1908 # except with old shells:
1909 build_os=$*
1910 IFS=$ac_save_IFS
1911 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1912
1913
1914 { echo "$as_me:$LINENO: checking host system type" >&5
1915 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1916 if test "${ac_cv_host+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 if test "x$host_alias" = x; then
1920 ac_cv_host=$ac_cv_build
1921 else
1922 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1923 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1924 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1925 { (exit 1); exit 1; }; }
1926 fi
1927
1928 fi
1929 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1930 echo "${ECHO_T}$ac_cv_host" >&6; }
1931 case $ac_cv_host in
1932 *-*-*) ;;
1933 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1934 echo "$as_me: error: invalid value of canonical host" >&2;}
1935 { (exit 1); exit 1; }; };;
1936 esac
1937 host=$ac_cv_host
1938 ac_save_IFS=$IFS; IFS='-'
1939 set x $ac_cv_host
1940 shift
1941 host_cpu=$1
1942 host_vendor=$2
1943 shift; shift
1944 # Remember, the first character of IFS is used to create $*,
1945 # except with old shells:
1946 host_os=$*
1947 IFS=$ac_save_IFS
1948 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1949
1950
1951 { echo "$as_me:$LINENO: checking target system type" >&5
1952 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1953 if test "${ac_cv_target+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 if test "x$target_alias" = x; then
1957 ac_cv_target=$ac_cv_host
1958 else
1959 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1960 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1961 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1962 { (exit 1); exit 1; }; }
1963 fi
1964
1965 fi
1966 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1967 echo "${ECHO_T}$ac_cv_target" >&6; }
1968 case $ac_cv_target in
1969 *-*-*) ;;
1970 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1971 echo "$as_me: error: invalid value of canonical target" >&2;}
1972 { (exit 1); exit 1; }; };;
1973 esac
1974 target=$ac_cv_target
1975 ac_save_IFS=$IFS; IFS='-'
1976 set x $ac_cv_target
1977 shift
1978 target_cpu=$1
1979 target_vendor=$2
1980 shift; shift
1981 # Remember, the first character of IFS is used to create $*,
1982 # except with old shells:
1983 target_os=$*
1984 IFS=$ac_save_IFS
1985 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1986
1987
1988 # The aliases save the names the user supplied, while $host etc.
1989 # will get canonicalized.
1990 test -n "$target_alias" &&
1991 test "$program_prefix$program_suffix$program_transform_name" = \
1992 NONENONEs,x,x, &&
1993 program_prefix=${target_alias}-
1994
1995 am__api_version="1.9"
1996 # Find a good install program. We prefer a C program (faster),
1997 # so one script is as good as another. But avoid the broken or
1998 # incompatible versions:
1999 # SysV /etc/install, /usr/sbin/install
2000 # SunOS /usr/etc/install
2001 # IRIX /sbin/install
2002 # AIX /bin/install
2003 # AmigaOS /C/install, which installs bootblocks on floppy discs
2004 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2005 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2006 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2007 # OS/2's system install, which has a completely different semantic
2008 # ./install, which can be erroneously created by make from ./install.sh.
2009 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2010 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2011 if test -z "$INSTALL"; then
2012 if test "${ac_cv_path_install+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018 IFS=$as_save_IFS
2019 test -z "$as_dir" && as_dir=.
2020 # Account for people who put trailing slashes in PATH elements.
2021 case $as_dir/ in
2022 ./ | .// | /cC/* | \
2023 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2024 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2025 /usr/ucb/* ) ;;
2026 *)
2027 # OSF1 and SCO ODT 3.0 have their own names for install.
2028 # Don't use installbsd from OSF since it installs stuff as root
2029 # by default.
2030 for ac_prog in ginstall scoinst install; do
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2033 if test $ac_prog = install &&
2034 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2035 # AIX install. It has an incompatible calling convention.
2036 :
2037 elif test $ac_prog = install &&
2038 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2039 # program-specific install script used by HP pwplus--don't use.
2040 :
2041 else
2042 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2043 break 3
2044 fi
2045 fi
2046 done
2047 done
2048 ;;
2049 esac
2050 done
2051 IFS=$as_save_IFS
2052
2053
2054 fi
2055 if test "${ac_cv_path_install+set}" = set; then
2056 INSTALL=$ac_cv_path_install
2057 else
2058 # As a last resort, use the slow shell script. Don't cache a
2059 # value for INSTALL within a source directory, because that will
2060 # break other packages using the cache if that directory is
2061 # removed, or if the value is a relative name.
2062 INSTALL=$ac_install_sh
2063 fi
2064 fi
2065 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2066 echo "${ECHO_T}$INSTALL" >&6; }
2067
2068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2069 # It thinks the first close brace ends the variable substitution.
2070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2071
2072 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2073
2074 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2075
2076 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2077 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2078 # Just in case
2079 sleep 1
2080 echo timestamp > conftest.file
2081 # Do `set' in a subshell so we don't clobber the current shell's
2082 # arguments. Must try -L first in case configure is actually a
2083 # symlink; some systems play weird games with the mod time of symlinks
2084 # (eg FreeBSD returns the mod time of the symlink's containing
2085 # directory).
2086 if (
2087 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2088 if test "$*" = "X"; then
2089 # -L didn't work.
2090 set X `ls -t $srcdir/configure conftest.file`
2091 fi
2092 rm -f conftest.file
2093 if test "$*" != "X $srcdir/configure conftest.file" \
2094 && test "$*" != "X conftest.file $srcdir/configure"; then
2095
2096 # If neither matched, then we have a broken ls. This can happen
2097 # if, for instance, CONFIG_SHELL is bash and it inherits a
2098 # broken ls alias from the environment. This has actually
2099 # happened. Such a system could not be considered "sane".
2100 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2101 alias in your environment" >&5
2102 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2103 alias in your environment" >&2;}
2104 { (exit 1); exit 1; }; }
2105 fi
2106
2107 test "$2" = conftest.file
2108 )
2109 then
2110 # Ok.
2111 :
2112 else
2113 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2114 Check your system clock" >&5
2115 echo "$as_me: error: newly created file is older than distributed files!
2116 Check your system clock" >&2;}
2117 { (exit 1); exit 1; }; }
2118 fi
2119 { echo "$as_me:$LINENO: result: yes" >&5
2120 echo "${ECHO_T}yes" >&6; }
2121 test "$program_prefix" != NONE &&
2122 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2123 # Use a double $ so make ignores it.
2124 test "$program_suffix" != NONE &&
2125 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2126 # Double any \ or $. echo might interpret backslashes.
2127 # By default was `s,x,x', remove it if useless.
2128 cat <<\_ACEOF >conftest.sed
2129 s/[\\$]/&&/g;s/;s,x,x,$//
2130 _ACEOF
2131 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2132 rm -f conftest.sed
2133
2134 # expand $ac_aux_dir to an absolute path
2135 am_aux_dir=`cd $ac_aux_dir && pwd`
2136
2137 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2138 # Use eval to expand $SHELL
2139 if eval "$MISSING --run true"; then
2140 am_missing_run="$MISSING --run "
2141 else
2142 am_missing_run=
2143 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2144 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2145 fi
2146
2147 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2148 # We used to keeping the `.' as first argument, in order to
2149 # allow $(mkdir_p) to be used without argument. As in
2150 # $(mkdir_p) $(somedir)
2151 # where $(somedir) is conditionally defined. However this is wrong
2152 # for two reasons:
2153 # 1. if the package is installed by a user who cannot write `.'
2154 # make install will fail,
2155 # 2. the above comment should most certainly read
2156 # $(mkdir_p) $(DESTDIR)$(somedir)
2157 # so it does not work when $(somedir) is undefined and
2158 # $(DESTDIR) is not.
2159 # To support the latter case, we have to write
2160 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2161 # so the `.' trick is pointless.
2162 mkdir_p='mkdir -p --'
2163 else
2164 # On NextStep and OpenStep, the `mkdir' command does not
2165 # recognize any option. It will interpret all options as
2166 # directories to create, and then abort because `.' already
2167 # exists.
2168 for d in ./-p ./--version;
2169 do
2170 test -d $d && rmdir $d
2171 done
2172 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2173 if test -f "$ac_aux_dir/mkinstalldirs"; then
2174 mkdir_p='$(mkinstalldirs)'
2175 else
2176 mkdir_p='$(install_sh) -d'
2177 fi
2178 fi
2179
2180 for ac_prog in gawk mawk nawk awk
2181 do
2182 # Extract the first word of "$ac_prog", so it can be a program name with args.
2183 set dummy $ac_prog; ac_word=$2
2184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2186 if test "${ac_cv_prog_AWK+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189 if test -n "$AWK"; then
2190 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2191 else
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2199 ac_cv_prog_AWK="$ac_prog"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 break 2
2202 fi
2203 done
2204 done
2205 IFS=$as_save_IFS
2206
2207 fi
2208 fi
2209 AWK=$ac_cv_prog_AWK
2210 if test -n "$AWK"; then
2211 { echo "$as_me:$LINENO: result: $AWK" >&5
2212 echo "${ECHO_T}$AWK" >&6; }
2213 else
2214 { echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6; }
2216 fi
2217
2218
2219 test -n "$AWK" && break
2220 done
2221
2222 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2223 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2224 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2225 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228 cat >conftest.make <<\_ACEOF
2229 SHELL = /bin/sh
2230 all:
2231 @echo '@@@%%%=$(MAKE)=@@@%%%'
2232 _ACEOF
2233 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2234 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2235 *@@@%%%=?*=@@@%%%*)
2236 eval ac_cv_prog_make_${ac_make}_set=yes;;
2237 *)
2238 eval ac_cv_prog_make_${ac_make}_set=no;;
2239 esac
2240 rm -f conftest.make
2241 fi
2242 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2243 { echo "$as_me:$LINENO: result: yes" >&5
2244 echo "${ECHO_T}yes" >&6; }
2245 SET_MAKE=
2246 else
2247 { echo "$as_me:$LINENO: result: no" >&5
2248 echo "${ECHO_T}no" >&6; }
2249 SET_MAKE="MAKE=${MAKE-make}"
2250 fi
2251
2252 rm -rf .tst 2>/dev/null
2253 mkdir .tst 2>/dev/null
2254 if test -d .tst; then
2255 am__leading_dot=.
2256 else
2257 am__leading_dot=_
2258 fi
2259 rmdir .tst 2>/dev/null
2260
2261 # test to see if srcdir already configured
2262 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2263 test -f $srcdir/config.status; then
2264 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2265 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2266 { (exit 1); exit 1; }; }
2267 fi
2268
2269 # test whether we have cygpath
2270 if test -z "$CYGPATH_W"; then
2271 if (cygpath --version) >/dev/null 2>/dev/null; then
2272 CYGPATH_W='cygpath -w'
2273 else
2274 CYGPATH_W=echo
2275 fi
2276 fi
2277
2278
2279 # Define the identity of the package.
2280 PACKAGE='briquolo'
2281 VERSION='0.5.7'
2282
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE "$PACKAGE"
2286 _ACEOF
2287
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define VERSION "$VERSION"
2291 _ACEOF
2292
2293 # Some tools Automake needs.
2294
2295 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2296
2297
2298 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2299
2300
2301 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2302
2303
2304 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2305
2306
2307 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2308
2309 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2310
2311 # Installed binaries are usually stripped using `strip' when the user
2312 # run `make install-strip'. However `strip' might not be the right
2313 # tool to use in cross-compilation environments, therefore Automake
2314 # will honor the `STRIP' environment variable to overrule this program.
2315 if test "$cross_compiling" != no; then
2316 if test -n "$ac_tool_prefix"; then
2317 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2318 set dummy ${ac_tool_prefix}strip; ac_word=$2
2319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321 if test "${ac_cv_prog_STRIP+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 if test -n "$STRIP"; then
2325 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 break 2
2337 fi
2338 done
2339 done
2340 IFS=$as_save_IFS
2341
2342 fi
2343 fi
2344 STRIP=$ac_cv_prog_STRIP
2345 if test -n "$STRIP"; then
2346 { echo "$as_me:$LINENO: result: $STRIP" >&5
2347 echo "${ECHO_T}$STRIP" >&6; }
2348 else
2349 { echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6; }
2351 fi
2352
2353
2354 fi
2355 if test -z "$ac_cv_prog_STRIP"; then
2356 ac_ct_STRIP=$STRIP
2357 # Extract the first word of "strip", so it can be a program name with args.
2358 set dummy strip; ac_word=$2
2359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2361 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364 if test -n "$ac_ct_STRIP"; then
2365 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_ac_ct_STRIP="strip"
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 break 2
2377 fi
2378 done
2379 done
2380 IFS=$as_save_IFS
2381
2382 fi
2383 fi
2384 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2385 if test -n "$ac_ct_STRIP"; then
2386 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2387 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2388 else
2389 { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2391 fi
2392
2393 if test "x$ac_ct_STRIP" = x; then
2394 STRIP=":"
2395 else
2396 case $cross_compiling:$ac_tool_warned in
2397 yes:)
2398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet. If you think this
2400 configuration is useful to you, please write to [email protected]." >&5
2401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to [email protected]." >&2;}
2404 ac_tool_warned=yes ;;
2405 esac
2406 STRIP=$ac_ct_STRIP
2407 fi
2408 else
2409 STRIP="$ac_cv_prog_STRIP"
2410 fi
2411
2412 fi
2413 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2414
2415 # We need awk for the "check" target. The system "awk" is bad on
2416 # some platforms.
2417 # Always define AMTAR for backward compatibility.
2418
2419 AMTAR=${AMTAR-"${am_missing_run}tar"}
2420
2421 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2422
2423
2424
2425
2426
2427
2428 # Checks for programs.
2429 ac_ext=cpp
2430 ac_cpp='$CXXCPP $CPPFLAGS'
2431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2434 if test -z "$CXX"; then
2435 if test -n "$CCC"; then
2436 CXX=$CCC
2437 else
2438 if test -n "$ac_tool_prefix"; then
2439 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2440 do
2441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2445 if test "${ac_cv_prog_CXX+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448 if test -n "$CXX"; then
2449 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2461 fi
2462 done
2463 done
2464 IFS=$as_save_IFS
2465
2466 fi
2467 fi
2468 CXX=$ac_cv_prog_CXX
2469 if test -n "$CXX"; then
2470 { echo "$as_me:$LINENO: result: $CXX" >&5
2471 echo "${ECHO_T}$CXX" >&6; }
2472 else
2473 { echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6; }
2475 fi
2476
2477
2478 test -n "$CXX" && break
2479 done
2480 fi
2481 if test -z "$CXX"; then
2482 ac_ct_CXX=$CXX
2483 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2484 do
2485 # Extract the first word of "$ac_prog", so it can be a program name with args.
2486 set dummy $ac_prog; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492 if test -n "$ac_ct_CXX"; then
2493 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_ac_ct_CXX="$ac_prog"
2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2505 fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2513 if test -n "$ac_ct_CXX"; then
2514 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2515 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2516 else
2517 { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2519 fi
2520
2521
2522 test -n "$ac_ct_CXX" && break
2523 done
2524
2525 if test "x$ac_ct_CXX" = x; then
2526 CXX="g++"
2527 else
2528 case $cross_compiling:$ac_tool_warned in
2529 yes:)
2530 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2531 whose name does not start with the host triplet. If you think this
2532 configuration is useful to you, please write to [email protected]." >&5
2533 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2534 whose name does not start with the host triplet. If you think this
2535 configuration is useful to you, please write to [email protected]." >&2;}
2536 ac_tool_warned=yes ;;
2537 esac
2538 CXX=$ac_ct_CXX
2539 fi
2540 fi
2541
2542 fi
2543 fi
2544 # Provide some information about the compiler.
2545 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2546 ac_compiler=`set X $ac_compile; echo $2`
2547 { (ac_try="$ac_compiler --version >&5"
2548 case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2551 esac
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_compiler --version >&5") 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }
2557 { (ac_try="$ac_compiler -v >&5"
2558 case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561 esac
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_compiler -v >&5") 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }
2567 { (ac_try="$ac_compiler -V >&5"
2568 case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2571 esac
2572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573 (eval "$ac_compiler -V >&5") 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }
2577
2578 cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h. */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2584
2585 int
2586 main ()
2587 {
2588
2589 ;
2590 return 0;
2591 }
2592 _ACEOF
2593 ac_clean_files_save=$ac_clean_files
2594 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2595 # Try to create an executable without -o first, disregard a.out.
2596 # It will help us diagnose broken compilers, and finding out an intuition
2597 # of exeext.
2598 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2599 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2600 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2601 #
2602 # List of possible output files, starting from the most likely.
2603 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2604 # only as a last resort. b.out is created by i960 compilers.
2605 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2606 #
2607 # The IRIX 6 linker writes into existing files which may not be
2608 # executable, retaining their permissions. Remove them first so a
2609 # subsequent execution test works.
2610 ac_rmfiles=
2611 for ac_file in $ac_files
2612 do
2613 case $ac_file in
2614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2615 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2616 esac
2617 done
2618 rm -f $ac_rmfiles
2619
2620 if { (ac_try="$ac_link_default"
2621 case "(($ac_try" in
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2624 esac
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626 (eval "$ac_link_default") 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; then
2630 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2631 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2632 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2633 # so that the user can short-circuit this test for compilers unknown to
2634 # Autoconf.
2635 for ac_file in $ac_files ''
2636 do
2637 test -f "$ac_file" || continue
2638 case $ac_file in
2639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2640 ;;
2641 [ab].out )
2642 # We found the default executable, but exeext='' is most
2643 # certainly right.
2644 break;;
2645 *.* )
2646 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2647 then :; else
2648 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2649 fi
2650 # We set ac_cv_exeext here because the later test for it is not
2651 # safe: cross compilers may not add the suffix if given an `-o'
2652 # argument, so we may need to know it at that point already.
2653 # Even if this section looks crufty: it has the advantage of
2654 # actually working.
2655 break;;
2656 * )
2657 break;;
2658 esac
2659 done
2660 test "$ac_cv_exeext" = no && ac_cv_exeext=
2661
2662 else
2663 ac_file=''
2664 fi
2665
2666 { echo "$as_me:$LINENO: result: $ac_file" >&5
2667 echo "${ECHO_T}$ac_file" >&6; }
2668 if test -z "$ac_file"; then
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2673 See \`config.log' for more details." >&5
2674 echo "$as_me: error: C++ compiler cannot create executables
2675 See \`config.log' for more details." >&2;}
2676 { (exit 77); exit 77; }; }
2677 fi
2678
2679 ac_exeext=$ac_cv_exeext
2680
2681 # Check that the compiler produces executables we can run. If not, either
2682 # the compiler is broken, or we cross compile.
2683 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2684 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2685 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2686 # If not cross compiling, check that we can run a simple program.
2687 if test "$cross_compiling" != yes; then
2688 if { ac_try='./$ac_file'
2689 { (case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_try") 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 cross_compiling=no
2699 else
2700 if test "$cross_compiling" = maybe; then
2701 cross_compiling=yes
2702 else
2703 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2704 If you meant to cross compile, use \`--host'.
2705 See \`config.log' for more details." >&5
2706 echo "$as_me: error: cannot run C++ compiled programs.
2707 If you meant to cross compile, use \`--host'.
2708 See \`config.log' for more details." >&2;}
2709 { (exit 1); exit 1; }; }
2710 fi
2711 fi
2712 fi
2713 { echo "$as_me:$LINENO: result: yes" >&5
2714 echo "${ECHO_T}yes" >&6; }
2715
2716 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2717 ac_clean_files=$ac_clean_files_save
2718 # Check that the compiler produces executables we can run. If not, either
2719 # the compiler is broken, or we cross compile.
2720 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2721 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2722 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2723 echo "${ECHO_T}$cross_compiling" >&6; }
2724
2725 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2726 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2727 if { (ac_try="$ac_link"
2728 case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_link") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; then
2737 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2738 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2739 # work properly (i.e., refer to `conftest.exe'), while it won't with
2740 # `rm'.
2741 for ac_file in conftest.exe conftest conftest.*; do
2742 test -f "$ac_file" || continue
2743 case $ac_file in
2744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2745 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2746 break;;
2747 * ) break;;
2748 esac
2749 done
2750 else
2751 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2752 See \`config.log' for more details." >&5
2753 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2754 See \`config.log' for more details." >&2;}
2755 { (exit 1); exit 1; }; }
2756 fi
2757
2758 rm -f conftest$ac_cv_exeext
2759 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2760 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2761
2762 rm -f conftest.$ac_ext
2763 EXEEXT=$ac_cv_exeext
2764 ac_exeext=$EXEEXT
2765 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2766 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2767 if test "${ac_cv_objext+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2776
2777 int
2778 main ()
2779 {
2780
2781 ;
2782 return 0;
2783 }
2784 _ACEOF
2785 rm -f conftest.o conftest.obj
2786 if { (ac_try="$ac_compile"
2787 case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compile") 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; then
2796 for ac_file in conftest.o conftest.obj conftest.*; do
2797 test -f "$ac_file" || continue;
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2800 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2801 break;;
2802 esac
2803 done
2804 else
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2809 See \`config.log' for more details." >&5
2810 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2811 See \`config.log' for more details." >&2;}
2812 { (exit 1); exit 1; }; }
2813 fi
2814
2815 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2816 fi
2817 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2818 echo "${ECHO_T}$ac_cv_objext" >&6; }
2819 OBJEXT=$ac_cv_objext
2820 ac_objext=$OBJEXT
2821 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2822 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2823 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826 cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h. */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2832
2833 int
2834 main ()
2835 {
2836 #ifndef __GNUC__
2837 choke me
2838 #endif
2839
2840 ;
2841 return 0;
2842 }
2843 _ACEOF
2844 rm -f conftest.$ac_objext
2845 if { (ac_try="$ac_compile"
2846 case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_compile") 2>conftest.er1
2852 ac_status=$?
2853 grep -v '^ *+' conftest.er1 >conftest.err
2854 rm -f conftest.er1
2855 cat conftest.err >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } && {
2858 test -z "$ac_cxx_werror_flag" ||
2859 test ! -s conftest.err
2860 } && test -s conftest.$ac_objext; then
2861 ac_compiler_gnu=yes
2862 else
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866 ac_compiler_gnu=no
2867 fi
2868
2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2871
2872 fi
2873 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2874 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2875 GXX=`test $ac_compiler_gnu = yes && echo yes`
2876 ac_test_CXXFLAGS=${CXXFLAGS+set}
2877 ac_save_CXXFLAGS=$CXXFLAGS
2878 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2879 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2880 if test "${ac_cv_prog_cxx_g+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2884 ac_cxx_werror_flag=yes
2885 ac_cv_prog_cxx_g=no
2886 CXXFLAGS="-g"
2887 cat >conftest.$ac_ext <<_ACEOF
2888 /* confdefs.h. */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2893
2894 int
2895 main ()
2896 {
2897
2898 ;
2899 return 0;
2900 }
2901 _ACEOF
2902 rm -f conftest.$ac_objext
2903 if { (ac_try="$ac_compile"
2904 case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compile") 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } && {
2916 test -z "$ac_cxx_werror_flag" ||
2917 test ! -s conftest.err
2918 } && test -s conftest.$ac_objext; then
2919 ac_cv_prog_cxx_g=yes
2920 else
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 CXXFLAGS=""
2925 cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h. */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2931
2932 int
2933 main ()
2934 {
2935
2936 ;
2937 return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (ac_try="$ac_compile"
2942 case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>conftest.er1
2948 ac_status=$?
2949 grep -v '^ *+' conftest.er1 >conftest.err
2950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } && {
2954 test -z "$ac_cxx_werror_flag" ||
2955 test ! -s conftest.err
2956 } && test -s conftest.$ac_objext; then
2957 :
2958 else
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2961
2962 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2963 CXXFLAGS="-g"
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970
2971 int
2972 main ()
2973 {
2974
2975 ;
2976 return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } && {
2993 test -z "$ac_cxx_werror_flag" ||
2994 test ! -s conftest.err
2995 } && test -s conftest.$ac_objext; then
2996 ac_cv_prog_cxx_g=yes
2997 else
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001
3002 fi
3003
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 fi
3006
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 fi
3009
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3012 fi
3013 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3014 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3015 if test "$ac_test_CXXFLAGS" = set; then
3016 CXXFLAGS=$ac_save_CXXFLAGS
3017 elif test $ac_cv_prog_cxx_g = yes; then
3018 if test "$GXX" = yes; then
3019 CXXFLAGS="-g -O2"
3020 else
3021 CXXFLAGS="-g"
3022 fi
3023 else
3024 if test "$GXX" = yes; then
3025 CXXFLAGS="-O2"
3026 else
3027 CXXFLAGS=
3028 fi
3029 fi
3030 ac_ext=c
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 DEPDIR="${am__leading_dot}deps"
3036
3037 ac_config_commands="$ac_config_commands depfiles"
3038
3039
3040 am_make=${MAKE-make}
3041 cat > confinc << 'END'
3042 am__doit:
3043 @echo done
3044 .PHONY: am__doit
3045 END
3046 # If we don't find an include directive, just comment out the code.
3047 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3048 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3049 am__include="#"
3050 am__quote=
3051 _am_result=none
3052 # First try GNU make style include.
3053 echo "include confinc" > confmf
3054 # We grep out `Entering directory' and `Leaving directory'
3055 # messages which can occur if `w' ends up in MAKEFLAGS.
3056 # In particular we don't look at `^make:' because GNU make might
3057 # be invoked under some other name (usually "gmake"), in which
3058 # case it prints its new name instead of `make'.
3059 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3060 am__include=include
3061 am__quote=
3062 _am_result=GNU
3063 fi
3064 # Now try BSD make style include.
3065 if test "$am__include" = "#"; then
3066 echo '.include "confinc"' > confmf
3067 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3068 am__include=.include
3069 am__quote="\""
3070 _am_result=BSD
3071 fi
3072 fi
3073
3074
3075 { echo "$as_me:$LINENO: result: $_am_result" >&5
3076 echo "${ECHO_T}$_am_result" >&6; }
3077 rm -f confinc confmf
3078
3079 # Check whether --enable-dependency-tracking was given.
3080 if test "${enable_dependency_tracking+set}" = set; then
3081 enableval=$enable_dependency_tracking;
3082 fi
3083
3084 if test "x$enable_dependency_tracking" != xno; then
3085 am_depcomp="$ac_aux_dir/depcomp"
3086 AMDEPBACKSLASH='\'
3087 fi
3088
3089
3090 if test "x$enable_dependency_tracking" != xno; then
3091 AMDEP_TRUE=
3092 AMDEP_FALSE='#'
3093 else
3094 AMDEP_TRUE='#'
3095 AMDEP_FALSE=
3096 fi
3097
3098
3099
3100
3101 depcc="$CXX" am_compiler_list=
3102
3103 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3104 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3105 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3109 # We make a subdir and do the tests there. Otherwise we can end up
3110 # making bogus files that we don't know about and never remove. For
3111 # instance it was reported that on HP-UX the gcc test will end up
3112 # making a dummy file named `D' -- because `-MD' means `put the output
3113 # in D'.
3114 mkdir conftest.dir
3115 # Copy depcomp to subdir because otherwise we won't find it if we're
3116 # using a relative directory.
3117 cp "$am_depcomp" conftest.dir
3118 cd conftest.dir
3119 # We will build objects and dependencies in a subdirectory because
3120 # it helps to detect inapplicable dependency modes. For instance
3121 # both Tru64's cc and ICC support -MD to output dependencies as a
3122 # side effect of compilation, but ICC will put the dependencies in
3123 # the current directory while Tru64 will put them in the object
3124 # directory.
3125 mkdir sub
3126
3127 am_cv_CXX_dependencies_compiler_type=none
3128 if test "$am_compiler_list" = ""; then
3129 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3130 fi
3131 for depmode in $am_compiler_list; do
3132 # Setup a source with many dependencies, because some compilers
3133 # like to wrap large dependency lists on column 80 (with \), and
3134 # we should not choose a depcomp mode which is confused by this.
3135 #
3136 # We need to recreate these files for each test, as the compiler may
3137 # overwrite some of them when testing with obscure command lines.
3138 # This happens at least with the AIX C compiler.
3139 : > sub/conftest.c
3140 for i in 1 2 3 4 5 6; do
3141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3143 # Solaris 8's {/usr,}/bin/sh.
3144 touch sub/conftst$i.h
3145 done
3146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3147
3148 case $depmode in
3149 nosideeffect)
3150 # after this tag, mechanisms are not by side-effect, so they'll
3151 # only be used when explicitly requested
3152 if test "x$enable_dependency_tracking" = xyes; then
3153 continue
3154 else
3155 break
3156 fi
3157 ;;
3158 none) break ;;
3159 esac
3160 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3161 # mode. It turns out that the SunPro C++ compiler does not properly
3162 # handle `-M -o', and we need to detect this.
3163 if depmode=$depmode \
3164 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3166 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3167 >/dev/null 2>conftest.err &&
3168 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3169 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3170 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3171 # icc doesn't choke on unknown options, it will just issue warnings
3172 # or remarks (even with -Werror). So we grep stderr for any message
3173 # that says an option was ignored or not supported.
3174 # When given -MP, icc 7.0 and 7.1 complain thusly:
3175 # icc: Command line warning: ignoring option '-M'; no argument required
3176 # The diagnosis changed in icc 8.0:
3177 # icc: Command line remark: option '-MP' not supported
3178 if (grep 'ignoring option' conftest.err ||
3179 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3180 am_cv_CXX_dependencies_compiler_type=$depmode
3181 break
3182 fi
3183 fi
3184 done
3185
3186 cd ..
3187 rm -rf conftest.dir
3188 else
3189 am_cv_CXX_dependencies_compiler_type=none
3190 fi
3191
3192 fi
3193 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3194 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3195 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3196
3197
3198
3199 if
3200 test "x$enable_dependency_tracking" != xno \
3201 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3202 am__fastdepCXX_TRUE=
3203 am__fastdepCXX_FALSE='#'
3204 else
3205 am__fastdepCXX_TRUE='#'
3206 am__fastdepCXX_FALSE=
3207 fi
3208
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 if test -n "$ac_tool_prefix"; then
3216 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3220 if test "${ac_cv_prog_CC+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223 if test -n "$CC"; then
3224 ac_cv_prog_CC="$CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3236 fi
3237 done
3238 done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 CC=$ac_cv_prog_CC
3244 if test -n "$CC"; then
3245 { echo "$as_me:$LINENO: result: $CC" >&5
3246 echo "${ECHO_T}$CC" >&6; }
3247 else
3248 { echo "$as_me:$LINENO: result: no" >&5
3249 echo "${ECHO_T}no" >&6; }
3250 fi
3251
3252
3253 fi
3254 if test -z "$ac_cv_prog_CC"; then
3255 ac_ct_CC=$CC
3256 # Extract the first word of "gcc", so it can be a program name with args.
3257 set dummy gcc; ac_word=$2
3258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 if test -n "$ac_ct_CC"; then
3264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_ac_ct_CC="gcc"
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284 if test -n "$ac_ct_CC"; then
3285 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3286 echo "${ECHO_T}$ac_ct_CC" >&6; }
3287 else
3288 { echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6; }
3290 fi
3291
3292 if test "x$ac_ct_CC" = x; then
3293 CC=""
3294 else
3295 case $cross_compiling:$ac_tool_warned in
3296 yes:)
3297 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3298 whose name does not start with the host triplet. If you think this
3299 configuration is useful to you, please write to [email protected]." >&5
3300 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3301 whose name does not start with the host triplet. If you think this
3302 configuration is useful to you, please write to [email protected]." >&2;}
3303 ac_tool_warned=yes ;;
3304 esac
3305 CC=$ac_ct_CC
3306 fi
3307 else
3308 CC="$ac_cv_prog_CC"
3309 fi
3310
3311 if test -z "$CC"; then
3312 if test -n "$ac_tool_prefix"; then
3313 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3314 set dummy ${ac_tool_prefix}cc; ac_word=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_prog_CC+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330 ac_cv_prog_CC="${ac_tool_prefix}cc"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334 done
3335 done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 CC=$ac_cv_prog_CC
3341 if test -n "$CC"; then
3342 { echo "$as_me:$LINENO: result: $CC" >&5
3343 echo "${ECHO_T}$CC" >&6; }
3344 else
3345 { echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6; }
3347 fi
3348
3349
3350 fi
3351 fi
3352 if test -z "$CC"; then
3353 # Extract the first word of "cc", so it can be a program name with args.
3354 set dummy cc; ac_word=$2
3355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3357 if test "${ac_cv_prog_CC+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
3362 else
3363 ac_prog_rejected=no
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3371 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3372 ac_prog_rejected=yes
3373 continue
3374 fi
3375 ac_cv_prog_CC="cc"
3376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2
3378 fi
3379 done
3380 done
3381 IFS=$as_save_IFS
3382
3383 if test $ac_prog_rejected = yes; then
3384 # We found a bogon in the path, so make sure we never use it.
3385 set dummy $ac_cv_prog_CC
3386 shift
3387 if test $# != 0; then
3388 # We chose a different compiler from the bogus one.
3389 # However, it has the same basename, so the bogon will be chosen
3390 # first if we set CC to just the basename; use the full file name.
3391 shift
3392 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3393 fi
3394 fi
3395 fi
3396 fi
3397 CC=$ac_cv_prog_CC
3398 if test -n "$CC"; then
3399 { echo "$as_me:$LINENO: result: $CC" >&5
3400 echo "${ECHO_T}$CC" >&6; }
3401 else
3402 { echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6; }
3404 fi
3405
3406
3407 fi
3408 if test -z "$CC"; then
3409 if test -n "$ac_tool_prefix"; then
3410 for ac_prog in cl.exe
3411 do
3412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3413 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3416 if test "${ac_cv_prog_CC+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419 if test -n "$CC"; then
3420 ac_cv_prog_CC="$CC" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3429 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433 done
3434 done
3435 IFS=$as_save_IFS
3436
3437 fi
3438 fi
3439 CC=$ac_cv_prog_CC
3440 if test -n "$CC"; then
3441 { echo "$as_me:$LINENO: result: $CC" >&5
3442 echo "${ECHO_T}$CC" >&6; }
3443 else
3444 { echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6; }
3446 fi
3447
3448
3449 test -n "$CC" && break
3450 done
3451 fi
3452 if test -z "$CC"; then
3453 ac_ct_CC=$CC
3454 for ac_prog in cl.exe
3455 do
3456 # Extract the first word of "$ac_prog", so it can be a program name with args.
3457 set dummy $ac_prog; ac_word=$2
3458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 if test -n "$ac_ct_CC"; then
3464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_ac_ct_CC="$ac_prog"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477 done
3478 done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3484 if test -n "$ac_ct_CC"; then
3485 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3486 echo "${ECHO_T}$ac_ct_CC" >&6; }
3487 else
3488 { echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6; }
3490 fi
3491
3492
3493 test -n "$ac_ct_CC" && break
3494 done
3495
3496 if test "x$ac_ct_CC" = x; then
3497 CC=""
3498 else
3499 case $cross_compiling:$ac_tool_warned in
3500 yes:)
3501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3502 whose name does not start with the host triplet. If you think this
3503 configuration is useful to you, please write to [email protected]." >&5
3504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3505 whose name does not start with the host triplet. If you think this
3506 configuration is useful to you, please write to [email protected]." >&2;}
3507 ac_tool_warned=yes ;;
3508 esac
3509 CC=$ac_ct_CC
3510 fi
3511 fi
3512
3513 fi
3514
3515
3516 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3517 See \`config.log' for more details." >&5
3518 echo "$as_me: error: no acceptable C compiler found in \$PATH
3519 See \`config.log' for more details." >&2;}
3520 { (exit 1); exit 1; }; }
3521
3522 # Provide some information about the compiler.
3523 echo "$as_me:$LINENO: checking for C compiler version" >&5
3524 ac_compiler=`set X $ac_compile; echo $2`
3525 { (ac_try="$ac_compiler --version >&5"
3526 case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_compiler --version >&5") 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }
3535 { (ac_try="$ac_compiler -v >&5"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_compiler -v >&5") 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }
3545 { (ac_try="$ac_compiler -V >&5"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_compiler -V >&5") 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }
3555
3556 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3557 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3558 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h. */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571 #ifndef __GNUC__
3572 choke me
3573 #endif
3574
3575 ;
3576 return 0;
3577 }
3578 _ACEOF
3579 rm -f conftest.$ac_objext
3580 if { (ac_try="$ac_compile"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_compile") 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } && {
3593 test -z "$ac_c_werror_flag" ||
3594 test ! -s conftest.err
3595 } && test -s conftest.$ac_objext; then
3596 ac_compiler_gnu=yes
3597 else
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3600
3601 ac_compiler_gnu=no
3602 fi
3603
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3606
3607 fi
3608 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3609 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3610 GCC=`test $ac_compiler_gnu = yes && echo yes`
3611 ac_test_CFLAGS=${CFLAGS+set}
3612 ac_save_CFLAGS=$CFLAGS
3613 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3614 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3615 if test "${ac_cv_prog_cc_g+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618 ac_save_c_werror_flag=$ac_c_werror_flag
3619 ac_c_werror_flag=yes
3620 ac_cv_prog_cc_g=no
3621 CFLAGS="-g"
3622 cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h. */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3628
3629 int
3630 main ()
3631 {
3632
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 rm -f conftest.$ac_objext
3638 if { (ac_try="$ac_compile"
3639 case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642 esac
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_compile") 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } && {
3651 test -z "$ac_c_werror_flag" ||
3652 test ! -s conftest.err
3653 } && test -s conftest.$ac_objext; then
3654 ac_cv_prog_cc_g=yes
3655 else
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3658
3659 CFLAGS=""
3660 cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h. */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666
3667 int
3668 main ()
3669 {
3670
3671 ;
3672 return 0;
3673 }
3674 _ACEOF
3675 rm -f conftest.$ac_objext
3676 if { (ac_try="$ac_compile"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_compile") 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } && {
3689 test -z "$ac_c_werror_flag" ||
3690 test ! -s conftest.err
3691 } && test -s conftest.$ac_objext; then
3692 :
3693 else
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 ac_c_werror_flag=$ac_save_c_werror_flag
3698 CFLAGS="-g"
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705
3706 int
3707 main ()
3708 {
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (ac_try="$ac_compile"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721 (eval "$ac_compile") 2>conftest.er1
3722 ac_status=$?
3723 grep -v '^ *+' conftest.er1 >conftest.err
3724 rm -f conftest.er1
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } && {
3728 test -z "$ac_c_werror_flag" ||
3729 test ! -s conftest.err
3730 } && test -s conftest.$ac_objext; then
3731 ac_cv_prog_cc_g=yes
3732 else
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736
3737 fi
3738
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 fi
3741
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 fi
3744
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_c_werror_flag=$ac_save_c_werror_flag
3747 fi
3748 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3749 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3750 if test "$ac_test_CFLAGS" = set; then
3751 CFLAGS=$ac_save_CFLAGS
3752 elif test $ac_cv_prog_cc_g = yes; then
3753 if test "$GCC" = yes; then
3754 CFLAGS="-g -O2"
3755 else
3756 CFLAGS="-g"
3757 fi
3758 else
3759 if test "$GCC" = yes; then
3760 CFLAGS="-O2"
3761 else
3762 CFLAGS=
3763 fi
3764 fi
3765 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3766 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3767 if test "${ac_cv_prog_cc_c89+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770 ac_cv_prog_cc_c89=no
3771 ac_save_CC=$CC
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 #include <stdarg.h>
3779 #include <stdio.h>
3780 #include <sys/types.h>
3781 #include <sys/stat.h>
3782 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3783 struct buf { int x; };
3784 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3785 static char *e (p, i)
3786 char **p;
3787 int i;
3788 {
3789 return p[i];
3790 }
3791 static char *f (char * (*g) (char **, int), char **p, ...)
3792 {
3793 char *s;
3794 va_list v;
3795 va_start (v,p);
3796 s = g (p, va_arg (v,int));
3797 va_end (v);
3798 return s;
3799 }
3800
3801 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3802 function prototypes and stuff, but not '\xHH' hex character constants.
3803 These don't provoke an error unfortunately, instead are silently treated
3804 as 'x'. The following induces an error, until -std is added to get
3805 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3806 array size at least. It's necessary to write '\x00'==0 to get something
3807 that's true only with -std. */
3808 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3809
3810 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3811 inside strings and character constants. */
3812 #define FOO(x) 'x'
3813 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3814
3815 int test (int i, double x);
3816 struct s1 {int (*f) (int a);};
3817 struct s2 {int (*f) (double a);};
3818 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3819 int argc;
3820 char **argv;
3821 int
3822 main ()
3823 {
3824 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3825 ;
3826 return 0;
3827 }
3828 _ACEOF
3829 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3830 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3831 do
3832 CC="$ac_save_CC $ac_arg"
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3835 case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } && {
3847 test -z "$ac_c_werror_flag" ||
3848 test ! -s conftest.err
3849 } && test -s conftest.$ac_objext; then
3850 ac_cv_prog_cc_c89=$ac_arg
3851 else
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855
3856 fi
3857
3858 rm -f core conftest.err conftest.$ac_objext
3859 test "x$ac_cv_prog_cc_c89" != "xno" && break
3860 done
3861 rm -f conftest.$ac_ext
3862 CC=$ac_save_CC
3863
3864 fi
3865 # AC_CACHE_VAL
3866 case "x$ac_cv_prog_cc_c89" in
3867 x)
3868 { echo "$as_me:$LINENO: result: none needed" >&5
3869 echo "${ECHO_T}none needed" >&6; } ;;
3870 xno)
3871 { echo "$as_me:$LINENO: result: unsupported" >&5
3872 echo "${ECHO_T}unsupported" >&6; } ;;
3873 *)
3874 CC="$CC $ac_cv_prog_cc_c89"
3875 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3876 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3877 esac
3878
3879
3880 ac_ext=c
3881 ac_cpp='$CPP $CPPFLAGS'
3882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885
3886 depcc="$CC" am_compiler_list=
3887
3888 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3889 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3890 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3894 # We make a subdir and do the tests there. Otherwise we can end up
3895 # making bogus files that we don't know about and never remove. For
3896 # instance it was reported that on HP-UX the gcc test will end up
3897 # making a dummy file named `D' -- because `-MD' means `put the output
3898 # in D'.
3899 mkdir conftest.dir
3900 # Copy depcomp to subdir because otherwise we won't find it if we're
3901 # using a relative directory.
3902 cp "$am_depcomp" conftest.dir
3903 cd conftest.dir
3904 # We will build objects and dependencies in a subdirectory because
3905 # it helps to detect inapplicable dependency modes. For instance
3906 # both Tru64's cc and ICC support -MD to output dependencies as a
3907 # side effect of compilation, but ICC will put the dependencies in
3908 # the current directory while Tru64 will put them in the object
3909 # directory.
3910 mkdir sub
3911
3912 am_cv_CC_dependencies_compiler_type=none
3913 if test "$am_compiler_list" = ""; then
3914 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3915 fi
3916 for depmode in $am_compiler_list; do
3917 # Setup a source with many dependencies, because some compilers
3918 # like to wrap large dependency lists on column 80 (with \), and
3919 # we should not choose a depcomp mode which is confused by this.
3920 #
3921 # We need to recreate these files for each test, as the compiler may
3922 # overwrite some of them when testing with obscure command lines.
3923 # This happens at least with the AIX C compiler.
3924 : > sub/conftest.c
3925 for i in 1 2 3 4 5 6; do
3926 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3927 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3928 # Solaris 8's {/usr,}/bin/sh.
3929 touch sub/conftst$i.h
3930 done
3931 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3932
3933 case $depmode in
3934 nosideeffect)
3935 # after this tag, mechanisms are not by side-effect, so they'll
3936 # only be used when explicitly requested
3937 if test "x$enable_dependency_tracking" = xyes; then
3938 continue
3939 else
3940 break
3941 fi
3942 ;;
3943 none) break ;;
3944 esac
3945 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3946 # mode. It turns out that the SunPro C++ compiler does not properly
3947 # handle `-M -o', and we need to detect this.
3948 if depmode=$depmode \
3949 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3950 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3951 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3952 >/dev/null 2>conftest.err &&
3953 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3954 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3955 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3956 # icc doesn't choke on unknown options, it will just issue warnings
3957 # or remarks (even with -Werror). So we grep stderr for any message
3958 # that says an option was ignored or not supported.
3959 # When given -MP, icc 7.0 and 7.1 complain thusly:
3960 # icc: Command line warning: ignoring option '-M'; no argument required
3961 # The diagnosis changed in icc 8.0:
3962 # icc: Command line remark: option '-MP' not supported
3963 if (grep 'ignoring option' conftest.err ||
3964 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3965 am_cv_CC_dependencies_compiler_type=$depmode
3966 break
3967 fi
3968 fi
3969 done
3970
3971 cd ..
3972 rm -rf conftest.dir
3973 else
3974 am_cv_CC_dependencies_compiler_type=none
3975 fi
3976
3977 fi
3978 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3979 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3980 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3981
3982
3983
3984 if
3985 test "x$enable_dependency_tracking" != xno \
3986 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3987 am__fastdepCC_TRUE=
3988 am__fastdepCC_FALSE='#'
3989 else
3990 am__fastdepCC_TRUE='#'
3991 am__fastdepCC_FALSE=
3992 fi
3993
3994
3995 # Find a good install program. We prefer a C program (faster),
3996 # so one script is as good as another. But avoid the broken or
3997 # incompatible versions:
3998 # SysV /etc/install, /usr/sbin/install
3999 # SunOS /usr/etc/install
4000 # IRIX /sbin/install
4001 # AIX /bin/install
4002 # AmigaOS /C/install, which installs bootblocks on floppy discs
4003 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4004 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4005 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4006 # OS/2's system install, which has a completely different semantic
4007 # ./install, which can be erroneously created by make from ./install.sh.
4008 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4009 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4010 if test -z "$INSTALL"; then
4011 if test "${ac_cv_path_install+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 # Account for people who put trailing slashes in PATH elements.
4020 case $as_dir/ in
4021 ./ | .// | /cC/* | \
4022 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4023 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4024 /usr/ucb/* ) ;;
4025 *)
4026 # OSF1 and SCO ODT 3.0 have their own names for install.
4027 # Don't use installbsd from OSF since it installs stuff as root
4028 # by default.
4029 for ac_prog in ginstall scoinst install; do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4032 if test $ac_prog = install &&
4033 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4034 # AIX install. It has an incompatible calling convention.
4035 :
4036 elif test $ac_prog = install &&
4037 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4038 # program-specific install script used by HP pwplus--don't use.
4039 :
4040 else
4041 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4042 break 3
4043 fi
4044 fi
4045 done
4046 done
4047 ;;
4048 esac
4049 done
4050 IFS=$as_save_IFS
4051
4052
4053 fi
4054 if test "${ac_cv_path_install+set}" = set; then
4055 INSTALL=$ac_cv_path_install
4056 else
4057 # As a last resort, use the slow shell script. Don't cache a
4058 # value for INSTALL within a source directory, because that will
4059 # break other packages using the cache if that directory is
4060 # removed, or if the value is a relative name.
4061 INSTALL=$ac_install_sh
4062 fi
4063 fi
4064 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4065 echo "${ECHO_T}$INSTALL" >&6; }
4066
4067 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4068 # It thinks the first close brace ends the variable substitution.
4069 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4070
4071 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4072
4073 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4074
4075 if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4080 if test "${ac_cv_prog_RANLIB+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083 if test -n "$RANLIB"; then
4084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4096 fi
4097 done
4098 done
4099 IFS=$as_save_IFS
4100
4101 fi
4102 fi
4103 RANLIB=$ac_cv_prog_RANLIB
4104 if test -n "$RANLIB"; then
4105 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4106 echo "${ECHO_T}$RANLIB" >&6; }
4107 else
4108 { echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6; }
4110 fi
4111
4112
4113 fi
4114 if test -z "$ac_cv_prog_RANLIB"; then
4115 ac_ct_RANLIB=$RANLIB
4116 # Extract the first word of "ranlib", so it can be a program name with args.
4117 set dummy ranlib; ac_word=$2
4118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4120 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123 if test -n "$ac_ct_RANLIB"; then
4124 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 ac_cv_prog_ac_ct_RANLIB="ranlib"
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4136 fi
4137 done
4138 done
4139 IFS=$as_save_IFS
4140
4141 fi
4142 fi
4143 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4144 if test -n "$ac_ct_RANLIB"; then
4145 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4146 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4147 else
4148 { echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6; }
4150 fi
4151
4152 if test "x$ac_ct_RANLIB" = x; then
4153 RANLIB=":"
4154 else
4155 case $cross_compiling:$ac_tool_warned in
4156 yes:)
4157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4158 whose name does not start with the host triplet. If you think this
4159 configuration is useful to you, please write to [email protected]." >&5
4160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4161 whose name does not start with the host triplet. If you think this
4162 configuration is useful to you, please write to [email protected]." >&2;}
4163 ac_tool_warned=yes ;;
4164 esac
4165 RANLIB=$ac_ct_RANLIB
4166 fi
4167 else
4168 RANLIB="$ac_cv_prog_RANLIB"
4169 fi
4170
4171 for ac_prog in 'bison -y' byacc
4172 do
4173 # Extract the first word of "$ac_prog", so it can be a program name with args.
4174 set dummy $ac_prog; ac_word=$2
4175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4177 if test "${ac_cv_prog_YACC+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 if test -n "$YACC"; then
4181 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4185 do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4190 ac_cv_prog_YACC="$ac_prog"
4191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 break 2
4193 fi
4194 done
4195 done
4196 IFS=$as_save_IFS
4197
4198 fi
4199 fi
4200 YACC=$ac_cv_prog_YACC
4201 if test -n "$YACC"; then
4202 { echo "$as_me:$LINENO: result: $YACC" >&5
4203 echo "${ECHO_T}$YACC" >&6; }
4204 else
4205 { echo "$as_me:$LINENO: result: no" >&5
4206 echo "${ECHO_T}no" >&6; }
4207 fi
4208
4209
4210 test -n "$YACC" && break
4211 done
4212 test -n "$YACC" || YACC="yacc"
4213
4214
4215 # Checks for header files.
4216
4217 ac_ext=c
4218 ac_cpp='$CPP $CPPFLAGS'
4219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4223 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4224 # On Suns, sometimes $CPP names a directory.
4225 if test -n "$CPP" && test -d "$CPP"; then
4226 CPP=
4227 fi
4228 if test -z "$CPP"; then
4229 if test "${ac_cv_prog_CPP+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 # Double quotes because CPP needs to be expanded
4233 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4234 do
4235 ac_preproc_ok=false
4236 for ac_c_preproc_warn_flag in '' yes
4237 do
4238 # Use a header file that comes with gcc, so configuring glibc
4239 # with a fresh cross-compiler works.
4240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4241 # <limits.h> exists even on freestanding compilers.
4242 # On the NeXT, cc -E runs the code through the compiler's parser,
4243 # not just through cpp. "Syntax error" is here to catch this case.
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 #ifdef __STDC__
4251 # include <limits.h>
4252 #else
4253 # include <assert.h>
4254 #endif
4255 Syntax error
4256 _ACEOF
4257 if { (ac_try="$ac_cpp conftest.$ac_ext"
4258 case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } >/dev/null && {
4270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4271 test ! -s conftest.err
4272 }; then
4273 :
4274 else
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278 # Broken: fails on valid input.
4279 continue
4280 fi
4281
4282 rm -f conftest.err conftest.$ac_ext
4283
4284 # OK, works on sane cases. Now check whether nonexistent headers
4285 # can be detected and how.
4286 cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h. */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4292 #include <ac_nonexistent.h>
4293 _ACEOF
4294 if { (ac_try="$ac_cpp conftest.$ac_ext"
4295 case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } >/dev/null && {
4307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4308 test ! -s conftest.err
4309 }; then
4310 # Broken: success on invalid input.
4311 continue
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 # Passes both tests.
4317 ac_preproc_ok=:
4318 break
4319 fi
4320
4321 rm -f conftest.err conftest.$ac_ext
4322
4323 done
4324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4325 rm -f conftest.err conftest.$ac_ext
4326 if $ac_preproc_ok; then
4327 break
4328 fi
4329
4330 done
4331 ac_cv_prog_CPP=$CPP
4332
4333 fi
4334 CPP=$ac_cv_prog_CPP
4335 else
4336 ac_cv_prog_CPP=$CPP
4337 fi
4338 { echo "$as_me:$LINENO: result: $CPP" >&5
4339 echo "${ECHO_T}$CPP" >&6; }
4340 ac_preproc_ok=false
4341 for ac_c_preproc_warn_flag in '' yes
4342 do
4343 # Use a header file that comes with gcc, so configuring glibc
4344 # with a fresh cross-compiler works.
4345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4346 # <limits.h> exists even on freestanding compilers.
4347 # On the NeXT, cc -E runs the code through the compiler's parser,
4348 # not just through cpp. "Syntax error" is here to catch this case.
4349 cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h. */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 #ifdef __STDC__
4356 # include <limits.h>
4357 #else
4358 # include <assert.h>
4359 #endif
4360 Syntax error
4361 _ACEOF
4362 if { (ac_try="$ac_cpp conftest.$ac_ext"
4363 case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366 esac
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4369 ac_status=$?
4370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } >/dev/null && {
4375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4376 test ! -s conftest.err
4377 }; then
4378 :
4379 else
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4382
4383 # Broken: fails on valid input.
4384 continue
4385 fi
4386
4387 rm -f conftest.err conftest.$ac_ext
4388
4389 # OK, works on sane cases. Now check whether nonexistent headers
4390 # can be detected and how.
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h. */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 #include <ac_nonexistent.h>
4398 _ACEOF
4399 if { (ac_try="$ac_cpp conftest.$ac_ext"
4400 case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403 esac
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4406 ac_status=$?
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } >/dev/null && {
4412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4413 test ! -s conftest.err
4414 }; then
4415 # Broken: success on invalid input.
4416 continue
4417 else
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4420
4421 # Passes both tests.
4422 ac_preproc_ok=:
4423 break
4424 fi
4425
4426 rm -f conftest.err conftest.$ac_ext
4427
4428 done
4429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4430 rm -f conftest.err conftest.$ac_ext
4431 if $ac_preproc_ok; then
4432 :
4433 else
4434 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4435 See \`config.log' for more details." >&5
4436 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4437 See \`config.log' for more details." >&2;}
4438 { (exit 1); exit 1; }; }
4439 fi
4440
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446
4447
4448 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4449 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4450 if test "${ac_cv_path_GREP+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453 # Extract the first word of "grep ggrep" to use in msg output
4454 if test -z "$GREP"; then
4455 set dummy grep ggrep; ac_prog_name=$2
4456 if test "${ac_cv_path_GREP+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 ac_path_GREP_found=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_prog in grep ggrep; do
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4469 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4470 # Check for GNU ac_path_GREP and select it if it is found.
4471 # Check for GNU $ac_path_GREP
4472 case `"$ac_path_GREP" --version 2>&1` in
4473 *GNU*)
4474 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4475 *)
4476 ac_count=0
4477 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4478 while :
4479 do
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 echo 'GREP' >> "conftest.nl"
4484 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486 ac_count=`expr $ac_count + 1`
4487 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_GREP="$ac_path_GREP"
4490 ac_path_GREP_max=$ac_count
4491 fi
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4494 done
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496 esac
4497
4498
4499 $ac_path_GREP_found && break 3
4500 done
4501 done
4502
4503 done
4504 IFS=$as_save_IFS
4505
4506
4507 fi
4508
4509 GREP="$ac_cv_path_GREP"
4510 if test -z "$GREP"; then
4511 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4512 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4513 { (exit 1); exit 1; }; }
4514 fi
4515
4516 else
4517 ac_cv_path_GREP=$GREP
4518 fi
4519
4520
4521 fi
4522 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4523 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4524 GREP="$ac_cv_path_GREP"
4525
4526
4527 { echo "$as_me:$LINENO: checking for egrep" >&5
4528 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4529 if test "${ac_cv_path_EGREP+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4533 then ac_cv_path_EGREP="$GREP -E"
4534 else
4535 # Extract the first word of "egrep" to use in msg output
4536 if test -z "$EGREP"; then
4537 set dummy egrep; ac_prog_name=$2
4538 if test "${ac_cv_path_EGREP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 ac_path_EGREP_found=false
4542 # Loop through the user's path and test for each of PROGNAME-LIST
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4545 do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_prog in egrep; do
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4551 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4552 # Check for GNU ac_path_EGREP and select it if it is found.
4553 # Check for GNU $ac_path_EGREP
4554 case `"$ac_path_EGREP" --version 2>&1` in
4555 *GNU*)
4556 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4557 *)
4558 ac_count=0
4559 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4560 while :
4561 do
4562 cat "conftest.in" "conftest.in" >"conftest.tmp"
4563 mv "conftest.tmp" "conftest.in"
4564 cp "conftest.in" "conftest.nl"
4565 echo 'EGREP' >> "conftest.nl"
4566 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4567 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4568 ac_count=`expr $ac_count + 1`
4569 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4570 # Best one so far, save it but keep looking for a better one
4571 ac_cv_path_EGREP="$ac_path_EGREP"
4572 ac_path_EGREP_max=$ac_count
4573 fi
4574 # 10*(2^10) chars as input seems more than enough
4575 test $ac_count -gt 10 && break
4576 done
4577 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4578 esac
4579
4580
4581 $ac_path_EGREP_found && break 3
4582 done
4583 done
4584
4585 done
4586 IFS=$as_save_IFS
4587
4588
4589 fi
4590
4591 EGREP="$ac_cv_path_EGREP"
4592 if test -z "$EGREP"; then
4593 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4594 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4595 { (exit 1); exit 1; }; }
4596 fi
4597
4598 else
4599 ac_cv_path_EGREP=$EGREP
4600 fi
4601
4602
4603 fi
4604 fi
4605 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4606 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4607 EGREP="$ac_cv_path_EGREP"
4608
4609
4610 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4611 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4612 if test "${ac_cv_header_stdc+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h. */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4621 #include <stdlib.h>
4622 #include <stdarg.h>
4623 #include <string.h>
4624 #include <float.h>
4625
4626 int
4627 main ()
4628 {
4629
4630 ;
4631 return 0;
4632 }
4633 _ACEOF
4634 rm -f conftest.$ac_objext
4635 if { (ac_try="$ac_compile"
4636 case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639 esac
4640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641 (eval "$ac_compile") 2>conftest.er1
4642 ac_status=$?
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && {
4648 test -z "$ac_c_werror_flag" ||
4649 test ! -s conftest.err
4650 } && test -s conftest.$ac_objext; then
4651 ac_cv_header_stdc=yes
4652 else
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4655
4656 ac_cv_header_stdc=no
4657 fi
4658
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660
4661 if test $ac_cv_header_stdc = yes; then
4662 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 #include <string.h>
4670
4671 _ACEOF
4672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4673 $EGREP "memchr" >/dev/null 2>&1; then
4674 :
4675 else
4676 ac_cv_header_stdc=no
4677 fi
4678 rm -f conftest*
4679
4680 fi
4681
4682 if test $ac_cv_header_stdc = yes; then
4683 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 #include <stdlib.h>
4691
4692 _ACEOF
4693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4694 $EGREP "free" >/dev/null 2>&1; then
4695 :
4696 else
4697 ac_cv_header_stdc=no
4698 fi
4699 rm -f conftest*
4700
4701 fi
4702
4703 if test $ac_cv_header_stdc = yes; then
4704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4705 if test "$cross_compiling" = yes; then
4706 :
4707 else
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 #include <ctype.h>
4715 #include <stdlib.h>
4716 #if ((' ' & 0x0FF) == 0x020)
4717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4719 #else
4720 # define ISLOWER(c) \
4721 (('a' <= (c) && (c) <= 'i') \
4722 || ('j' <= (c) && (c) <= 'r') \
4723 || ('s' <= (c) && (c) <= 'z'))
4724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4725 #endif
4726
4727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4728 int
4729 main ()
4730 {
4731 int i;
4732 for (i = 0; i < 256; i++)
4733 if (XOR (islower (i), ISLOWER (i))
4734 || toupper (i) != TOUPPER (i))
4735 return 2;
4736 return 0;
4737 }
4738 _ACEOF
4739 rm -f conftest$ac_exeext
4740 if { (ac_try="$ac_link"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_link") 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4750 { (case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4753 esac
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755 (eval "$ac_try") 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 :
4760 else
4761 echo "$as_me: program exited with status $ac_status" >&5
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 ( exit $ac_status )
4766 ac_cv_header_stdc=no
4767 fi
4768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4769 fi
4770
4771
4772 fi
4773 fi
4774 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4775 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4776 if test $ac_cv_header_stdc = yes; then
4777
4778 cat >>confdefs.h <<\_ACEOF
4779 #define STDC_HEADERS 1
4780 _ACEOF
4781
4782 fi
4783
4784 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4795 inttypes.h stdint.h unistd.h
4796 do
4797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803 cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h. */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4809 $ac_includes_default
4810
4811 #include <$ac_header>
4812 _ACEOF
4813 rm -f conftest.$ac_objext
4814 if { (ac_try="$ac_compile"
4815 case "(($ac_try" in
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4818 esac
4819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4820 (eval "$ac_compile") 2>conftest.er1
4821 ac_status=$?
4822 grep -v '^ *+' conftest.er1 >conftest.err
4823 rm -f conftest.er1
4824 cat conftest.err >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } && {
4827 test -z "$ac_c_werror_flag" ||
4828 test ! -s conftest.err
4829 } && test -s conftest.$ac_objext; then
4830 eval "$as_ac_Header=yes"
4831 else
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835 eval "$as_ac_Header=no"
4836 fi
4837
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 fi
4840 ac_res=`eval echo '${'$as_ac_Header'}'`
4841 { echo "$as_me:$LINENO: result: $ac_res" >&5
4842 echo "${ECHO_T}$ac_res" >&6; }
4843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4844 cat >>confdefs.h <<_ACEOF
4845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4846 _ACEOF
4847
4848 fi
4849
4850 done
4851
4852
4853 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4854 # for constant arguments. Useless!
4855 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
4856 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
4857 if test "${ac_cv_working_alloca_h+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <alloca.h>
4867 int
4868 main ()
4869 {
4870 char *p = (char *) alloca (2 * sizeof (int));
4871 if (p) return 0;
4872 ;
4873 return 0;
4874 }
4875 _ACEOF
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877 if { (ac_try="$ac_link"
4878 case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881 esac
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_link") 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } && {
4890 test -z "$ac_c_werror_flag" ||
4891 test ! -s conftest.err
4892 } && test -s conftest$ac_exeext &&
4893 $as_test_x conftest$ac_exeext; then
4894 ac_cv_working_alloca_h=yes
4895 else
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899 ac_cv_working_alloca_h=no
4900 fi
4901
4902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4903 conftest$ac_exeext conftest.$ac_ext
4904 fi
4905 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4906 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
4907 if test $ac_cv_working_alloca_h = yes; then
4908
4909 cat >>confdefs.h <<\_ACEOF
4910 #define HAVE_ALLOCA_H 1
4911 _ACEOF
4912
4913 fi
4914
4915 { echo "$as_me:$LINENO: checking for alloca" >&5
4916 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
4917 if test "${ac_cv_func_alloca_works+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4926 #ifdef __GNUC__
4927 # define alloca __builtin_alloca
4928 #else
4929 # ifdef _MSC_VER
4930 # include <malloc.h>
4931 # define alloca _alloca
4932 # else
4933 # ifdef HAVE_ALLOCA_H
4934 # include <alloca.h>
4935 # else
4936 # ifdef _AIX
4937 #pragma alloca
4938 # else
4939 # ifndef alloca /* predefined by HP cc +Olibcalls */
4940 char *alloca ();
4941 # endif
4942 # endif
4943 # endif
4944 # endif
4945 #endif
4946
4947 int
4948 main ()
4949 {
4950 char *p = (char *) alloca (1);
4951 if (p) return 0;
4952 ;
4953 return 0;
4954 }
4955 _ACEOF
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (ac_try="$ac_link"
4958 case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_link") 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } && {
4970 test -z "$ac_c_werror_flag" ||
4971 test ! -s conftest.err
4972 } && test -s conftest$ac_exeext &&
4973 $as_test_x conftest$ac_exeext; then
4974 ac_cv_func_alloca_works=yes
4975 else
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 ac_cv_func_alloca_works=no
4980 fi
4981
4982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4983 conftest$ac_exeext conftest.$ac_ext
4984 fi
4985 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4986 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
4987
4988 if test $ac_cv_func_alloca_works = yes; then
4989
4990 cat >>confdefs.h <<\_ACEOF
4991 #define HAVE_ALLOCA 1
4992 _ACEOF
4993
4994 else
4995 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4996 # that cause trouble. Some versions do not even contain alloca or
4997 # contain a buggy version. If you still want to use their alloca,
4998 # use ar to extract alloca.o from them instead of compiling alloca.c.
4999
5000 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5001
5002 cat >>confdefs.h <<\_ACEOF
5003 #define C_ALLOCA 1
5004 _ACEOF
5005
5006
5007 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5008 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5009 if test "${ac_cv_os_cray+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #if defined CRAY && ! defined CRAY2
5019 webecray
5020 #else
5021 wenotbecray
5022 #endif
5023
5024 _ACEOF
5025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026 $EGREP "webecray" >/dev/null 2>&1; then
5027 ac_cv_os_cray=yes
5028 else
5029 ac_cv_os_cray=no
5030 fi
5031 rm -f conftest*
5032
5033 fi
5034 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5035 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5036 if test $ac_cv_os_cray = yes; then
5037 for ac_func in _getb67 GETB67 getb67; do
5038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5052 #define $ac_func innocuous_$ac_func
5053
5054 /* System header to define __stub macros and hopefully few prototypes,
5055 which can conflict with char $ac_func (); below.
5056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 <limits.h> exists even on freestanding compilers. */
5058
5059 #ifdef __STDC__
5060 # include <limits.h>
5061 #else
5062 # include <assert.h>
5063 #endif
5064
5065 #undef $ac_func
5066
5067 /* Override any GCC internal prototype to avoid an error.
5068 Use char because int might match the return type of a GCC
5069 builtin and then its argument prototype would still apply. */
5070 #ifdef __cplusplus
5071 extern "C"
5072 #endif
5073 char $ac_func ();
5074 /* The GNU C library defines this for functions which it implements
5075 to always fail with ENOSYS. Some functions are actually named
5076 something starting with __ and the normal name is an alias. */
5077 #if defined __stub_$ac_func || defined __stub___$ac_func
5078 choke me
5079 #endif
5080
5081 int
5082 main ()
5083 {
5084 return $ac_func ();
5085 ;
5086 return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext conftest$ac_exeext
5090 if { (ac_try="$ac_link"
5091 case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094 esac
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_link") 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } && {
5103 test -z "$ac_c_werror_flag" ||
5104 test ! -s conftest.err
5105 } && test -s conftest$ac_exeext &&
5106 $as_test_x conftest$ac_exeext; then
5107 eval "$as_ac_var=yes"
5108 else
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 eval "$as_ac_var=no"
5113 fi
5114
5115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5116 conftest$ac_exeext conftest.$ac_ext
5117 fi
5118 ac_res=`eval echo '${'$as_ac_var'}'`
5119 { echo "$as_me:$LINENO: result: $ac_res" >&5
5120 echo "${ECHO_T}$ac_res" >&6; }
5121 if test `eval echo '${'$as_ac_var'}'` = yes; then
5122
5123 cat >>confdefs.h <<_ACEOF
5124 #define CRAY_STACKSEG_END $ac_func
5125 _ACEOF
5126
5127 break
5128 fi
5129
5130 done
5131 fi
5132
5133 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5134 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5135 if test "${ac_cv_c_stack_direction+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 if test "$cross_compiling" = yes; then
5139 ac_cv_c_stack_direction=0
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 int
5149 find_stack_direction ()
5150 {
5151 static char *addr = 0;
5152 auto char dummy;
5153 if (addr == 0)
5154 {
5155 addr = &dummy;
5156 return find_stack_direction ();
5157 }
5158 else
5159 return (&dummy > addr) ? 1 : -1;
5160 }
5161
5162 int
5163 main ()
5164 {
5165 return find_stack_direction () < 0;
5166 }
5167 _ACEOF
5168 rm -f conftest$ac_exeext
5169 if { (ac_try="$ac_link"
5170 case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173 esac
5174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175 (eval "$ac_link") 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5179 { (case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182 esac
5183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184 (eval "$ac_try") 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; }; then
5188 ac_cv_c_stack_direction=1
5189 else
5190 echo "$as_me: program exited with status $ac_status" >&5
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5193
5194 ( exit $ac_status )
5195 ac_cv_c_stack_direction=-1
5196 fi
5197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5198 fi
5199
5200
5201 fi
5202 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5203 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5204
5205 cat >>confdefs.h <<_ACEOF
5206 #define STACK_DIRECTION $ac_cv_c_stack_direction
5207 _ACEOF
5208
5209
5210 fi
5211
5212
5213
5214
5215
5216
5217 ac_header_dirent=no
5218 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5219 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5220 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5221 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h. */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 #include <sys/types.h>
5232 #include <$ac_hdr>
5233
5234 int
5235 main ()
5236 {
5237 if ((DIR *) 0)
5238 return 0;
5239 ;
5240 return 0;
5241 }
5242 _ACEOF
5243 rm -f conftest.$ac_objext
5244 if { (ac_try="$ac_compile"
5245 case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248 esac
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compile") 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && {
5257 test -z "$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest.$ac_objext; then
5260 eval "$as_ac_Header=yes"
5261 else
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265 eval "$as_ac_Header=no"
5266 fi
5267
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 fi
5270 ac_res=`eval echo '${'$as_ac_Header'}'`
5271 { echo "$as_me:$LINENO: result: $ac_res" >&5
5272 echo "${ECHO_T}$ac_res" >&6; }
5273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5274 cat >>confdefs.h <<_ACEOF
5275 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5276 _ACEOF
5277
5278 ac_header_dirent=$ac_hdr; break
5279 fi
5280
5281 done
5282 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5283 if test $ac_header_dirent = dirent.h; then
5284 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5285 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5286 if test "${ac_cv_search_opendir+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 ac_func_search_save_LIBS=$LIBS
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296
5297 /* Override any GCC internal prototype to avoid an error.
5298 Use char because int might match the return type of a GCC
5299 builtin and then its argument prototype would still apply. */
5300 #ifdef __cplusplus
5301 extern "C"
5302 #endif
5303 char opendir ();
5304 int
5305 main ()
5306 {
5307 return opendir ();
5308 ;
5309 return 0;
5310 }
5311 _ACEOF
5312 for ac_lib in '' dir; do
5313 if test -z "$ac_lib"; then
5314 ac_res="none required"
5315 else
5316 ac_res=-l$ac_lib
5317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5318 fi
5319 rm -f conftest.$ac_objext conftest$ac_exeext
5320 if { (ac_try="$ac_link"
5321 case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324 esac
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_link") 2>conftest.er1
5327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } && {
5333 test -z "$ac_c_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest$ac_exeext &&
5336 $as_test_x conftest$ac_exeext; then
5337 ac_cv_search_opendir=$ac_res
5338 else
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342
5343 fi
5344
5345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5346 conftest$ac_exeext
5347 if test "${ac_cv_search_opendir+set}" = set; then
5348 break
5349 fi
5350 done
5351 if test "${ac_cv_search_opendir+set}" = set; then
5352 :
5353 else
5354 ac_cv_search_opendir=no
5355 fi
5356 rm conftest.$ac_ext
5357 LIBS=$ac_func_search_save_LIBS
5358 fi
5359 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5360 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5361 ac_res=$ac_cv_search_opendir
5362 if test "$ac_res" != no; then
5363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5364
5365 fi
5366
5367 else
5368 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5369 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5370 if test "${ac_cv_search_opendir+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373 ac_func_search_save_LIBS=$LIBS
5374 cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h. */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380
5381 /* Override any GCC internal prototype to avoid an error.
5382 Use char because int might match the return type of a GCC
5383 builtin and then its argument prototype would still apply. */
5384 #ifdef __cplusplus
5385 extern "C"
5386 #endif
5387 char opendir ();
5388 int
5389 main ()
5390 {
5391 return opendir ();
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 for ac_lib in '' x; do
5397 if test -z "$ac_lib"; then
5398 ac_res="none required"
5399 else
5400 ac_res=-l$ac_lib
5401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5402 fi
5403 rm -f conftest.$ac_objext conftest$ac_exeext
5404 if { (ac_try="$ac_link"
5405 case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5408 esac
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_link") 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } && {
5417 test -z "$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 } && test -s conftest$ac_exeext &&
5420 $as_test_x conftest$ac_exeext; then
5421 ac_cv_search_opendir=$ac_res
5422 else
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426
5427 fi
5428
5429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5430 conftest$ac_exeext
5431 if test "${ac_cv_search_opendir+set}" = set; then
5432 break
5433 fi
5434 done
5435 if test "${ac_cv_search_opendir+set}" = set; then
5436 :
5437 else
5438 ac_cv_search_opendir=no
5439 fi
5440 rm conftest.$ac_ext
5441 LIBS=$ac_func_search_save_LIBS
5442 fi
5443 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5444 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5445 ac_res=$ac_cv_search_opendir
5446 if test "$ac_res" != no; then
5447 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5448
5449 fi
5450
5451 fi
5452
5453 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5454 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5455 if test "${ac_cv_header_stdc+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 #include <stdlib.h>
5465 #include <stdarg.h>
5466 #include <string.h>
5467 #include <float.h>
5468
5469 int
5470 main ()
5471 {
5472
5473 ;
5474 return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext
5478 if { (ac_try="$ac_compile"
5479 case "(($ac_try" in
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5482 esac
5483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484 (eval "$ac_compile") 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } && {
5491 test -z "$ac_c_werror_flag" ||
5492 test ! -s conftest.err
5493 } && test -s conftest.$ac_objext; then
5494 ac_cv_header_stdc=yes
5495 else
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5498
5499 ac_cv_header_stdc=no
5500 fi
5501
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503
5504 if test $ac_cv_header_stdc = yes; then
5505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5506 cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h. */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #include <string.h>
5513
5514 _ACEOF
5515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5516 $EGREP "memchr" >/dev/null 2>&1; then
5517 :
5518 else
5519 ac_cv_header_stdc=no
5520 fi
5521 rm -f conftest*
5522
5523 fi
5524
5525 if test $ac_cv_header_stdc = yes; then
5526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 #include <stdlib.h>
5534
5535 _ACEOF
5536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5537 $EGREP "free" >/dev/null 2>&1; then
5538 :
5539 else
5540 ac_cv_header_stdc=no
5541 fi
5542 rm -f conftest*
5543
5544 fi
5545
5546 if test $ac_cv_header_stdc = yes; then
5547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5548 if test "$cross_compiling" = yes; then
5549 :
5550 else
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 #include <ctype.h>
5558 #include <stdlib.h>
5559 #if ((' ' & 0x0FF) == 0x020)
5560 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5561 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5562 #else
5563 # define ISLOWER(c) \
5564 (('a' <= (c) && (c) <= 'i') \
5565 || ('j' <= (c) && (c) <= 'r') \
5566 || ('s' <= (c) && (c) <= 'z'))
5567 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5568 #endif
5569
5570 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5571 int
5572 main ()
5573 {
5574 int i;
5575 for (i = 0; i < 256; i++)
5576 if (XOR (islower (i), ISLOWER (i))
5577 || toupper (i) != TOUPPER (i))
5578 return 2;
5579 return 0;
5580 }
5581 _ACEOF
5582 rm -f conftest$ac_exeext
5583 if { (ac_try="$ac_link"
5584 case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_link") 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 :
5603 else
5604 echo "$as_me: program exited with status $ac_status" >&5
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 ( exit $ac_status )
5609 ac_cv_header_stdc=no
5610 fi
5611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5612 fi
5613
5614
5615 fi
5616 fi
5617 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5618 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5619 if test $ac_cv_header_stdc = yes; then
5620
5621 cat >>confdefs.h <<\_ACEOF
5622 #define STDC_HEADERS 1
5623 _ACEOF
5624
5625 fi
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642 for ac_header in argz.h fcntl.h langinfo.h libintl.h limits.h locale.h malloc.h stddef.h stdio_ext.h stdlib.h string.h strings.h sys/param.h sys/timeb.h unistd.h
5643 do
5644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 fi
5651 ac_res=`eval echo '${'$as_ac_Header'}'`
5652 { echo "$as_me:$LINENO: result: $ac_res" >&5
5653 echo "${ECHO_T}$ac_res" >&6; }
5654 else
5655 # Is the header compilable?
5656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5658 cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h. */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 $ac_includes_default
5665 #include <$ac_header>
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5669 case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest.$ac_objext; then
5684 ac_header_compiler=yes
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689 ac_header_compiler=no
5690 fi
5691
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5694 echo "${ECHO_T}$ac_header_compiler" >&6; }
5695
5696 # Is the header present?
5697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5699 cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h. */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #include <$ac_header>
5706 _ACEOF
5707 if { (ac_try="$ac_cpp conftest.$ac_ext"
5708 case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } >/dev/null && {
5720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5721 test ! -s conftest.err
5722 }; then
5723 ac_header_preproc=yes
5724 else
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5727
5728 ac_header_preproc=no
5729 fi
5730
5731 rm -f conftest.err conftest.$ac_ext
5732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5733 echo "${ECHO_T}$ac_header_preproc" >&6; }
5734
5735 # So? What about this header?
5736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5737 yes:no: )
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5742 ac_header_preproc=yes
5743 ;;
5744 no:yes:* )
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5757 ( cat <<\_ASBOX
5758 ## --------------------------------------- ##
5759 ## Report this to [email protected] ##
5760 ## --------------------------------------- ##
5761 _ASBOX
5762 ) | sed "s/^/$as_me: WARNING: /" >&2
5763 ;;
5764 esac
5765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770 eval "$as_ac_Header=\$ac_header_preproc"
5771 fi
5772 ac_res=`eval echo '${'$as_ac_Header'}'`
5773 { echo "$as_me:$LINENO: result: $ac_res" >&5
5774 echo "${ECHO_T}$ac_res" >&6; }
5775
5776 fi
5777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5778 cat >>confdefs.h <<_ACEOF
5779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5780 _ACEOF
5781
5782 fi
5783
5784 done
5785
5786
5787 # Checks for typedefs, structures, and compiler characteristics.
5788 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
5789 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
5790 if test "${ac_cv_header_stdbool_h+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799
5800 #include <stdbool.h>
5801 #ifndef bool
5802 "error: bool is not defined"
5803 #endif
5804 #ifndef false
5805 "error: false is not defined"
5806 #endif
5807 #if false
5808 "error: false is not 0"
5809 #endif
5810 #ifndef true
5811 "error: true is not defined"
5812 #endif
5813 #if true != 1
5814 "error: true is not 1"
5815 #endif
5816 #ifndef __bool_true_false_are_defined
5817 "error: __bool_true_false_are_defined is not defined"
5818 #endif
5819
5820 struct s { _Bool s: 1; _Bool t; } s;
5821
5822 char a[true == 1 ? 1 : -1];
5823 char b[false == 0 ? 1 : -1];
5824 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5825 char d[(bool) 0.5 == true ? 1 : -1];
5826 bool e = &s;
5827 char f[(_Bool) 0.0 == false ? 1 : -1];
5828 char g[true];
5829 char h[sizeof (_Bool)];
5830 char i[sizeof s.t];
5831 enum { j = false, k = true, l = false * true, m = true * 256 };
5832 _Bool n[m];
5833 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5834 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5835 # if defined __xlc__ || defined __GNUC__
5836 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
5837 reported by James Lemley on 2005-10-05; see
5838 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
5839 This test is not quite right, since xlc is allowed to
5840 reject this program, as the initializer for xlcbug is
5841 not one of the forms that C requires support for.
5842 However, doing the test right would require a runtime
5843 test, and that would make cross-compilation harder.
5844 Let us hope that IBM fixes the xlc bug, and also adds
5845 support for this kind of constant expression. In the
5846 meantime, this test will reject xlc, which is OK, since
5847 our stdbool.h substitute should suffice. We also test
5848 this with GCC, where it should work, to detect more
5849 quickly whether someone messes up the test in the
5850 future. */
5851 char digs[] = "0123456789";
5852 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
5853 # endif
5854 /* Catch a bug in an HP-UX C compiler. See
5855 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5856 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5857 */
5858 _Bool q = true;
5859 _Bool *pq = &q;
5860
5861 int
5862 main ()
5863 {
5864
5865 *pq |= q;
5866 *pq |= ! q;
5867 /* Refer to every declared value, to avoid compiler optimizations. */
5868 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5869 + !m + !n + !o + !p + !q + !pq);
5870
5871 ;
5872 return 0;
5873 }
5874 _ACEOF
5875 rm -f conftest.$ac_objext
5876 if { (ac_try="$ac_compile"
5877 case "(($ac_try" in
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5880 esac
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_compile") 2>conftest.er1
5883 ac_status=$?
5884 grep -v '^ *+' conftest.er1 >conftest.err
5885 rm -f conftest.er1
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } && {
5889 test -z "$ac_c_werror_flag" ||
5890 test ! -s conftest.err
5891 } && test -s conftest.$ac_objext; then
5892 ac_cv_header_stdbool_h=yes
5893 else
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 ac_cv_header_stdbool_h=no
5898 fi
5899
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 fi
5902 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5903 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
5904 { echo "$as_me:$LINENO: checking for _Bool" >&5
5905 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
5906 if test "${ac_cv_type__Bool+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 $ac_includes_default
5916 typedef _Bool ac__type_new_;
5917 int
5918 main ()
5919 {
5920 if ((ac__type_new_ *) 0)
5921 return 0;
5922 if (sizeof (ac__type_new_))
5923 return 0;
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (ac_try="$ac_compile"
5930 case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_compile") 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && {
5942 test -z "$ac_c_werror_flag" ||
5943 test ! -s conftest.err
5944 } && test -s conftest.$ac_objext; then
5945 ac_cv_type__Bool=yes
5946 else
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 ac_cv_type__Bool=no
5951 fi
5952
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 fi
5955 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5956 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
5957 if test $ac_cv_type__Bool = yes; then
5958
5959 cat >>confdefs.h <<_ACEOF
5960 #define HAVE__BOOL 1
5961 _ACEOF
5962
5963
5964 fi
5965
5966 if test $ac_cv_header_stdbool_h = yes; then
5967
5968 cat >>confdefs.h <<\_ACEOF
5969 #define HAVE_STDBOOL_H 1
5970 _ACEOF
5971
5972 fi
5973
5974 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5975 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5976 if test "${ac_cv_c_const+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985
5986 int
5987 main ()
5988 {
5989 /* FIXME: Include the comments suggested by Paul. */
5990 #ifndef __cplusplus
5991 /* Ultrix mips cc rejects this. */
5992 typedef int charset[2];
5993 const charset cs;
5994 /* SunOS 4.1.1 cc rejects this. */
5995 char const *const *pcpcc;
5996 char **ppc;
5997 /* NEC SVR4.0.2 mips cc rejects this. */
5998 struct point {int x, y;};
5999 static struct point const zero = {0,0};
6000 /* AIX XL C 1.02.0.0 rejects this.
6001 It does not let you subtract one const X* pointer from another in
6002 an arm of an if-expression whose if-part is not a constant
6003 expression */
6004 const char *g = "string";
6005 pcpcc = &g + (g ? g-g : 0);
6006 /* HPUX 7.0 cc rejects these. */
6007 ++pcpcc;
6008 ppc = (char**) pcpcc;
6009 pcpcc = (char const *const *) ppc;
6010 { /* SCO 3.2v4 cc rejects this. */
6011 char *t;
6012 char const *s = 0 ? (char *) 0 : (char const *) 0;
6013
6014 *t++ = 0;
6015 if (s) return 0;
6016 }
6017 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6018 int x[] = {25, 17};
6019 const int *foo = &x[0];
6020 ++foo;
6021 }
6022 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6023 typedef const int *iptr;
6024 iptr p = 0;
6025 ++p;
6026 }
6027 { /* AIX XL C 1.02.0.0 rejects this saying
6028 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6029 struct s { int j; const int *ap[3]; };
6030 struct s *b; b->j = 5;
6031 }
6032 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6033 const int foo = 10;
6034 if (!foo) return 0;
6035 }
6036 return !cs[0] && !zero.x;
6037 #endif
6038
6039 ;
6040 return 0;
6041 }
6042 _ACEOF
6043 rm -f conftest.$ac_objext
6044 if { (ac_try="$ac_compile"
6045 case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compile") 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } && {
6057 test -z "$ac_c_werror_flag" ||
6058 test ! -s conftest.err
6059 } && test -s conftest.$ac_objext; then
6060 ac_cv_c_const=yes
6061 else
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065 ac_cv_c_const=no
6066 fi
6067
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 fi
6070 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6071 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6072 if test $ac_cv_c_const = no; then
6073
6074 cat >>confdefs.h <<\_ACEOF
6075 #define const
6076 _ACEOF
6077
6078 fi
6079
6080 { echo "$as_me:$LINENO: checking for inline" >&5
6081 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6082 if test "${ac_cv_c_inline+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085 ac_cv_c_inline=no
6086 for ac_kw in inline __inline__ __inline; do
6087 cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h. */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 #ifndef __cplusplus
6094 typedef int foo_t;
6095 static $ac_kw foo_t static_foo () {return 0; }
6096 $ac_kw foo_t foo () {return 0; }
6097 #endif
6098
6099 _ACEOF
6100 rm -f conftest.$ac_objext
6101 if { (ac_try="$ac_compile"
6102 case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6105 esac
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_compile") 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } && {
6114 test -z "$ac_c_werror_flag" ||
6115 test ! -s conftest.err
6116 } && test -s conftest.$ac_objext; then
6117 ac_cv_c_inline=$ac_kw
6118 else
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122
6123 fi
6124
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 test "$ac_cv_c_inline" != no && break
6127 done
6128
6129 fi
6130 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6131 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6132
6133
6134 case $ac_cv_c_inline in
6135 inline | yes) ;;
6136 *)
6137 case $ac_cv_c_inline in
6138 no) ac_val=;;
6139 *) ac_val=$ac_cv_c_inline;;
6140 esac
6141 cat >>confdefs.h <<_ACEOF
6142 #ifndef __cplusplus
6143 #define inline $ac_val
6144 #endif
6145 _ACEOF
6146 ;;
6147 esac
6148
6149 { echo "$as_me:$LINENO: checking for size_t" >&5
6150 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6151 if test "${ac_cv_type_size_t+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154 cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h. */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 $ac_includes_default
6161 typedef size_t ac__type_new_;
6162 int
6163 main ()
6164 {
6165 if ((ac__type_new_ *) 0)
6166 return 0;
6167 if (sizeof (ac__type_new_))
6168 return 0;
6169 ;
6170 return 0;
6171 }
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (ac_try="$ac_compile"
6175 case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6178 esac
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_compile") 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.$ac_objext; then
6190 ac_cv_type_size_t=yes
6191 else
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195 ac_cv_type_size_t=no
6196 fi
6197
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 fi
6200 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6201 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6202 if test $ac_cv_type_size_t = yes; then
6203 :
6204 else
6205
6206 cat >>confdefs.h <<_ACEOF
6207 #define size_t unsigned int
6208 _ACEOF
6209
6210 fi
6211
6212 { echo "$as_me:$LINENO: checking for working volatile" >&5
6213 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
6214 if test "${ac_cv_c_volatile+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217 cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h. */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223
6224 int
6225 main ()
6226 {
6227
6228 volatile int x;
6229 int * volatile y = (int *) 0;
6230 return !x && !y;
6231 ;
6232 return 0;
6233 }
6234 _ACEOF
6235 rm -f conftest.$ac_objext
6236 if { (ac_try="$ac_compile"
6237 case "(($ac_try" in
6238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239 *) ac_try_echo=$ac_try;;
6240 esac
6241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6242 (eval "$ac_compile") 2>conftest.er1
6243 ac_status=$?
6244 grep -v '^ *+' conftest.er1 >conftest.err
6245 rm -f conftest.er1
6246 cat conftest.err >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } && {
6249 test -z "$ac_c_werror_flag" ||
6250 test ! -s conftest.err
6251 } && test -s conftest.$ac_objext; then
6252 ac_cv_c_volatile=yes
6253 else
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 ac_cv_c_volatile=no
6258 fi
6259
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 fi
6262 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6263 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
6264 if test $ac_cv_c_volatile = no; then
6265
6266 cat >>confdefs.h <<\_ACEOF
6267 #define volatile
6268 _ACEOF
6269
6270 fi
6271
6272
6273 # Checks for library functions.
6274
6275
6276 for ac_header in stdlib.h
6277 do
6278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 fi
6285 ac_res=`eval echo '${'$as_ac_Header'}'`
6286 { echo "$as_me:$LINENO: result: $ac_res" >&5
6287 echo "${ECHO_T}$ac_res" >&6; }
6288 else
6289 # Is the header compilable?
6290 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6292 cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h. */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 $ac_includes_default
6299 #include <$ac_header>
6300 _ACEOF
6301 rm -f conftest.$ac_objext
6302 if { (ac_try="$ac_compile"
6303 case "(($ac_try" in
6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305 *) ac_try_echo=$ac_try;;
6306 esac
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308 (eval "$ac_compile") 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } && {
6315 test -z "$ac_c_werror_flag" ||
6316 test ! -s conftest.err
6317 } && test -s conftest.$ac_objext; then
6318 ac_header_compiler=yes
6319 else
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6322
6323 ac_header_compiler=no
6324 fi
6325
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6328 echo "${ECHO_T}$ac_header_compiler" >&6; }
6329
6330 # Is the header present?
6331 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 #include <$ac_header>
6340 _ACEOF
6341 if { (ac_try="$ac_cpp conftest.$ac_ext"
6342 case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345 esac
6346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } >/dev/null && {
6354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6355 test ! -s conftest.err
6356 }; then
6357 ac_header_preproc=yes
6358 else
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6361
6362 ac_header_preproc=no
6363 fi
6364
6365 rm -f conftest.err conftest.$ac_ext
6366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6367 echo "${ECHO_T}$ac_header_preproc" >&6; }
6368
6369 # So? What about this header?
6370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6371 yes:no: )
6372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6376 ac_header_preproc=yes
6377 ;;
6378 no:yes:* )
6379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6391 ( cat <<\_ASBOX
6392 ## --------------------------------------- ##
6393 ## Report this to [email protected] ##
6394 ## --------------------------------------- ##
6395 _ASBOX
6396 ) | sed "s/^/$as_me: WARNING: /" >&2
6397 ;;
6398 esac
6399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404 eval "$as_ac_Header=\$ac_header_preproc"
6405 fi
6406 ac_res=`eval echo '${'$as_ac_Header'}'`
6407 { echo "$as_me:$LINENO: result: $ac_res" >&5
6408 echo "${ECHO_T}$ac_res" >&6; }
6409
6410 fi
6411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6412 cat >>confdefs.h <<_ACEOF
6413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6414 _ACEOF
6415
6416 fi
6417
6418 done
6419
6420 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6421 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
6422 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 if test "$cross_compiling" = yes; then
6426 ac_cv_func_malloc_0_nonnull=no
6427 else
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h. */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6435 # include <stdlib.h>
6436 #else
6437 char *malloc ();
6438 #endif
6439
6440 int
6441 main ()
6442 {
6443 return ! malloc (0);
6444 ;
6445 return 0;
6446 }
6447 _ACEOF
6448 rm -f conftest$ac_exeext
6449 if { (ac_try="$ac_link"
6450 case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453 esac
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_link") 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6459 { (case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_try") 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 ac_cv_func_malloc_0_nonnull=yes
6469 else
6470 echo "$as_me: program exited with status $ac_status" >&5
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6473
6474 ( exit $ac_status )
6475 ac_cv_func_malloc_0_nonnull=no
6476 fi
6477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6478 fi
6479
6480
6481 fi
6482 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6483 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
6484 if test $ac_cv_func_malloc_0_nonnull = yes; then
6485
6486 cat >>confdefs.h <<\_ACEOF
6487 #define HAVE_MALLOC 1
6488 _ACEOF
6489
6490 else
6491 cat >>confdefs.h <<\_ACEOF
6492 #define HAVE_MALLOC 0
6493 _ACEOF
6494
6495 case " $LIBOBJS " in
6496 *" malloc.$ac_objext "* ) ;;
6497 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6498 ;;
6499 esac
6500
6501
6502 cat >>confdefs.h <<\_ACEOF
6503 #define malloc rpl_malloc
6504 _ACEOF
6505
6506 fi
6507
6508
6509
6510
6511
6512 for ac_header in stdlib.h unistd.h
6513 do
6514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 fi
6521 ac_res=`eval echo '${'$as_ac_Header'}'`
6522 { echo "$as_me:$LINENO: result: $ac_res" >&5
6523 echo "${ECHO_T}$ac_res" >&6; }
6524 else
6525 # Is the header compilable?
6526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h. */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
6535 #include <$ac_header>
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6539 case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542 esac
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.$ac_objext; then
6554 ac_header_compiler=yes
6555 else
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6558
6559 ac_header_compiler=no
6560 fi
6561
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6564 echo "${ECHO_T}$ac_header_compiler" >&6; }
6565
6566 # Is the header present?
6567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 #include <$ac_header>
6576 _ACEOF
6577 if { (ac_try="$ac_cpp conftest.$ac_ext"
6578 case "(($ac_try" in
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6581 esac
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6584 ac_status=$?
6585 grep -v '^ *+' conftest.er1 >conftest.err
6586 rm -f conftest.er1
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } >/dev/null && {
6590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 }; then
6593 ac_header_preproc=yes
6594 else
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 ac_header_preproc=no
6599 fi
6600
6601 rm -f conftest.err conftest.$ac_ext
6602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6603 echo "${ECHO_T}$ac_header_preproc" >&6; }
6604
6605 # So? What about this header?
6606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6607 yes:no: )
6608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6612 ac_header_preproc=yes
6613 ;;
6614 no:yes:* )
6615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6627 ( cat <<\_ASBOX
6628 ## --------------------------------------- ##
6629 ## Report this to [email protected] ##
6630 ## --------------------------------------- ##
6631 _ASBOX
6632 ) | sed "s/^/$as_me: WARNING: /" >&2
6633 ;;
6634 esac
6635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640 eval "$as_ac_Header=\$ac_header_preproc"
6641 fi
6642 ac_res=`eval echo '${'$as_ac_Header'}'`
6643 { echo "$as_me:$LINENO: result: $ac_res" >&5
6644 echo "${ECHO_T}$ac_res" >&6; }
6645
6646 fi
6647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6648 cat >>confdefs.h <<_ACEOF
6649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6650 _ACEOF
6651
6652 fi
6653
6654 done
6655
6656
6657 for ac_func in getpagesize
6658 do
6659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665 cat >conftest.$ac_ext <<_ACEOF
6666 /* confdefs.h. */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6673 #define $ac_func innocuous_$ac_func
6674
6675 /* System header to define __stub macros and hopefully few prototypes,
6676 which can conflict with char $ac_func (); below.
6677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678 <limits.h> exists even on freestanding compilers. */
6679
6680 #ifdef __STDC__
6681 # include <limits.h>
6682 #else
6683 # include <assert.h>
6684 #endif
6685
6686 #undef $ac_func
6687
6688 /* Override any GCC internal prototype to avoid an error.
6689 Use char because int might match the return type of a GCC
6690 builtin and then its argument prototype would still apply. */
6691 #ifdef __cplusplus
6692 extern "C"
6693 #endif
6694 char $ac_func ();
6695 /* The GNU C library defines this for functions which it implements
6696 to always fail with ENOSYS. Some functions are actually named
6697 something starting with __ and the normal name is an alias. */
6698 #if defined __stub_$ac_func || defined __stub___$ac_func
6699 choke me
6700 #endif
6701
6702 int
6703 main ()
6704 {
6705 return $ac_func ();
6706 ;
6707 return 0;
6708 }
6709 _ACEOF
6710 rm -f conftest.$ac_objext conftest$ac_exeext
6711 if { (ac_try="$ac_link"
6712 case "(($ac_try" in
6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6714 *) ac_try_echo=$ac_try;;
6715 esac
6716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6717 (eval "$ac_link") 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && {
6724 test -z "$ac_c_werror_flag" ||
6725 test ! -s conftest.err
6726 } && test -s conftest$ac_exeext &&
6727 $as_test_x conftest$ac_exeext; then
6728 eval "$as_ac_var=yes"
6729 else
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 eval "$as_ac_var=no"
6734 fi
6735
6736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6737 conftest$ac_exeext conftest.$ac_ext
6738 fi
6739 ac_res=`eval echo '${'$as_ac_var'}'`
6740 { echo "$as_me:$LINENO: result: $ac_res" >&5
6741 echo "${ECHO_T}$ac_res" >&6; }
6742 if test `eval echo '${'$as_ac_var'}'` = yes; then
6743 cat >>confdefs.h <<_ACEOF
6744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6745 _ACEOF
6746
6747 fi
6748 done
6749
6750 { echo "$as_me:$LINENO: checking for working mmap" >&5
6751 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6752 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755 if test "$cross_compiling" = yes; then
6756 ac_cv_func_mmap_fixed_mapped=no
6757 else
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 $ac_includes_default
6765 /* malloc might have been renamed as rpl_malloc. */
6766 #undef malloc
6767
6768 /* Thanks to Mike Haertel and Jim Avera for this test.
6769 Here is a matrix of mmap possibilities:
6770 mmap private not fixed
6771 mmap private fixed at somewhere currently unmapped
6772 mmap private fixed at somewhere already mapped
6773 mmap shared not fixed
6774 mmap shared fixed at somewhere currently unmapped
6775 mmap shared fixed at somewhere already mapped
6776 For private mappings, we should verify that changes cannot be read()
6777 back from the file, nor mmap's back from the file at a different
6778 address. (There have been systems where private was not correctly
6779 implemented like the infamous i386 svr4.0, and systems where the
6780 VM page cache was not coherent with the file system buffer cache
6781 like early versions of FreeBSD and possibly contemporary NetBSD.)
6782 For shared mappings, we should conversely verify that changes get
6783 propagated back to all the places they're supposed to be.
6784
6785 Grep wants private fixed already mapped.
6786 The main things grep needs to know about mmap are:
6787 * does it exist and is it safe to write into the mmap'd area
6788 * how to use it (BSD variants) */
6789
6790 #include <fcntl.h>
6791 #include <sys/mman.h>
6792
6793 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6794 char *malloc ();
6795 #endif
6796
6797 /* This mess was copied from the GNU getpagesize.h. */
6798 #ifndef HAVE_GETPAGESIZE
6799 /* Assume that all systems that can run configure have sys/param.h. */
6800 # ifndef HAVE_SYS_PARAM_H
6801 # define HAVE_SYS_PARAM_H 1
6802 # endif
6803
6804 # ifdef _SC_PAGESIZE
6805 # define getpagesize() sysconf(_SC_PAGESIZE)
6806 # else /* no _SC_PAGESIZE */
6807 # ifdef HAVE_SYS_PARAM_H
6808 # include <sys/param.h>
6809 # ifdef EXEC_PAGESIZE
6810 # define getpagesize() EXEC_PAGESIZE
6811 # else /* no EXEC_PAGESIZE */
6812 # ifdef NBPG
6813 # define getpagesize() NBPG * CLSIZE
6814 # ifndef CLSIZE
6815 # define CLSIZE 1
6816 # endif /* no CLSIZE */
6817 # else /* no NBPG */
6818 # ifdef NBPC
6819 # define getpagesize() NBPC
6820 # else /* no NBPC */
6821 # ifdef PAGESIZE
6822 # define getpagesize() PAGESIZE
6823 # endif /* PAGESIZE */
6824 # endif /* no NBPC */
6825 # endif /* no NBPG */
6826 # endif /* no EXEC_PAGESIZE */
6827 # else /* no HAVE_SYS_PARAM_H */
6828 # define getpagesize() 8192 /* punt totally */
6829 # endif /* no HAVE_SYS_PARAM_H */
6830 # endif /* no _SC_PAGESIZE */
6831
6832 #endif /* no HAVE_GETPAGESIZE */
6833
6834 int
6835 main ()
6836 {
6837 char *data, *data2, *data3;
6838 int i, pagesize;
6839 int fd;
6840
6841 pagesize = getpagesize ();
6842
6843 /* First, make a file with some known garbage in it. */
6844 data = (char *) malloc (pagesize);
6845 if (!data)
6846 return 1;
6847 for (i = 0; i < pagesize; ++i)
6848 *(data + i) = rand ();
6849 umask (0);
6850 fd = creat ("conftest.mmap", 0600);
6851 if (fd < 0)
6852 return 1;
6853 if (write (fd, data, pagesize) != pagesize)
6854 return 1;
6855 close (fd);
6856
6857 /* Next, try to mmap the file at a fixed address which already has
6858 something else allocated at it. If we can, also make sure that
6859 we see the same garbage. */
6860 fd = open ("conftest.mmap", O_RDWR);
6861 if (fd < 0)
6862 return 1;
6863 data2 = (char *) malloc (2 * pagesize);
6864 if (!data2)
6865 return 1;
6866 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6867 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6868 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6869 return 1;
6870 for (i = 0; i < pagesize; ++i)
6871 if (*(data + i) != *(data2 + i))
6872 return 1;
6873
6874 /* Finally, make sure that changes to the mapped area do not
6875 percolate back to the file as seen by read(). (This is a bug on
6876 some variants of i386 svr4.0.) */
6877 for (i = 0; i < pagesize; ++i)
6878 *(data2 + i) = *(data2 + i) + 1;
6879 data3 = (char *) malloc (pagesize);
6880 if (!data3)
6881 return 1;
6882 if (read (fd, data3, pagesize) != pagesize)
6883 return 1;
6884 for (i = 0; i < pagesize; ++i)
6885 if (*(data + i) != *(data3 + i))
6886 return 1;
6887 close (fd);
6888 return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest$ac_exeext
6892 if { (ac_try="$ac_link"
6893 case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896 esac
6897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6898 (eval "$ac_link") 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6902 { (case "(($ac_try" in
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6905 esac
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_try") 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 ac_cv_func_mmap_fixed_mapped=yes
6912 else
6913 echo "$as_me: program exited with status $ac_status" >&5
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917 ( exit $ac_status )
6918 ac_cv_func_mmap_fixed_mapped=no
6919 fi
6920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6921 fi
6922
6923
6924 fi
6925 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6926 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6927 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6928
6929 cat >>confdefs.h <<\_ACEOF
6930 #define HAVE_MMAP 1
6931 _ACEOF
6932
6933 fi
6934 rm -f conftest.mmap
6935
6936
6937 for ac_header in stdlib.h
6938 do
6939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 fi
6946 ac_res=`eval echo '${'$as_ac_Header'}'`
6947 { echo "$as_me:$LINENO: result: $ac_res" >&5
6948 echo "${ECHO_T}$ac_res" >&6; }
6949 else
6950 # Is the header compilable?
6951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6953 cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h. */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6959 $ac_includes_default
6960 #include <$ac_header>
6961 _ACEOF
6962 rm -f conftest.$ac_objext
6963 if { (ac_try="$ac_compile"
6964 case "(($ac_try" in
6965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966 *) ac_try_echo=$ac_try;;
6967 esac
6968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969 (eval "$ac_compile") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && {
6976 test -z "$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6978 } && test -s conftest.$ac_objext; then
6979 ac_header_compiler=yes
6980 else
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6983
6984 ac_header_compiler=no
6985 fi
6986
6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6989 echo "${ECHO_T}$ac_header_compiler" >&6; }
6990
6991 # Is the header present?
6992 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 #include <$ac_header>
7001 _ACEOF
7002 if { (ac_try="$ac_cpp conftest.$ac_ext"
7003 case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006 esac
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7009 ac_status=$?
7010 grep -v '^ *+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } >/dev/null && {
7015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7016 test ! -s conftest.err
7017 }; then
7018 ac_header_preproc=yes
7019 else
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7022
7023 ac_header_preproc=no
7024 fi
7025
7026 rm -f conftest.err conftest.$ac_ext
7027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7028 echo "${ECHO_T}$ac_header_preproc" >&6; }
7029
7030 # So? What about this header?
7031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7032 yes:no: )
7033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7037 ac_header_preproc=yes
7038 ;;
7039 no:yes:* )
7040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7047 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7052 ( cat <<\_ASBOX
7053 ## --------------------------------------- ##
7054 ## Report this to [email protected] ##
7055 ## --------------------------------------- ##
7056 _ASBOX
7057 ) | sed "s/^/$as_me: WARNING: /" >&2
7058 ;;
7059 esac
7060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 eval "$as_ac_Header=\$ac_header_preproc"
7066 fi
7067 ac_res=`eval echo '${'$as_ac_Header'}'`
7068 { echo "$as_me:$LINENO: result: $ac_res" >&5
7069 echo "${ECHO_T}$ac_res" >&6; }
7070
7071 fi
7072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7073 cat >>confdefs.h <<_ACEOF
7074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7075 _ACEOF
7076
7077 fi
7078
7079 done
7080
7081 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
7082 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
7083 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 if test "$cross_compiling" = yes; then
7087 ac_cv_func_realloc_0_nonnull=no
7088 else
7089 cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7096 # include <stdlib.h>
7097 #else
7098 char *realloc ();
7099 #endif
7100
7101 int
7102 main ()
7103 {
7104 return ! realloc (0, 0);
7105 ;
7106 return 0;
7107 }
7108 _ACEOF
7109 rm -f conftest$ac_exeext
7110 if { (ac_try="$ac_link"
7111 case "(($ac_try" in
7112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7114 esac
7115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7116 (eval "$ac_link") 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7120 { (case "(($ac_try" in
7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122 *) ac_try_echo=$ac_try;;
7123 esac
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125 (eval "$ac_try") 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_func_realloc_0_nonnull=yes
7130 else
7131 echo "$as_me: program exited with status $ac_status" >&5
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135 ( exit $ac_status )
7136 ac_cv_func_realloc_0_nonnull=no
7137 fi
7138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7139 fi
7140
7141
7142 fi
7143 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
7144 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
7145 if test $ac_cv_func_realloc_0_nonnull = yes; then
7146
7147 cat >>confdefs.h <<\_ACEOF
7148 #define HAVE_REALLOC 1
7149 _ACEOF
7150
7151 else
7152 cat >>confdefs.h <<\_ACEOF
7153 #define HAVE_REALLOC 0
7154 _ACEOF
7155
7156 case " $LIBOBJS " in
7157 *" realloc.$ac_objext "* ) ;;
7158 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
7159 ;;
7160 esac
7161
7162
7163 cat >>confdefs.h <<\_ACEOF
7164 #define realloc rpl_realloc
7165 _ACEOF
7166
7167 fi
7168
7169
7170
7171 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7172 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
7173 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176 rm -f conftest.sym conftest.file
7177 echo >conftest.file
7178 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7179 if test "$cross_compiling" = yes; then
7180 ac_cv_func_lstat_dereferences_slashed_symlink=no
7181 else
7182 cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h. */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 $ac_includes_default
7189 int
7190 main ()
7191 {
7192 struct stat sbuf;
7193 /* Linux will dereference the symlink and fail.
7194 That is better in the sense that it means we will not
7195 have to compile and use the lstat wrapper. */
7196 return lstat ("conftest.sym/", &sbuf) == 0;
7197 ;
7198 return 0;
7199 }
7200 _ACEOF
7201 rm -f conftest$ac_exeext
7202 if { (ac_try="$ac_link"
7203 case "(($ac_try" in
7204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7205 *) ac_try_echo=$ac_try;;
7206 esac
7207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_link") 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7212 { (case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215 esac
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_try") 2>&5
7218 ac_status=$?
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; }; then
7221 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7222 else
7223 echo "$as_me: program exited with status $ac_status" >&5
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7226
7227 ( exit $ac_status )
7228 ac_cv_func_lstat_dereferences_slashed_symlink=no
7229 fi
7230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7231 fi
7232
7233
7234 else
7235 # If the `ln -s' command failed, then we probably don't even
7236 # have an lstat function.
7237 ac_cv_func_lstat_dereferences_slashed_symlink=no
7238 fi
7239 rm -f conftest.sym conftest.file
7240
7241 fi
7242 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7243 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7244
7245 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7246
7247 cat >>confdefs.h <<_ACEOF
7248 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7249 _ACEOF
7250
7251
7252 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7253 case " $LIBOBJS " in
7254 *" lstat.$ac_objext "* ) ;;
7255 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7256 ;;
7257 esac
7258
7259 fi
7260
7261 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7262 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
7263 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266 if test "$cross_compiling" = yes; then
7267 ac_cv_func_stat_empty_string_bug=yes
7268 else
7269 cat >conftest.$ac_ext <<_ACEOF
7270 /* confdefs.h. */
7271 _ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7275 $ac_includes_default
7276 int
7277 main ()
7278 {
7279 struct stat sbuf;
7280 return stat ("", &sbuf) == 0;
7281 ;
7282 return 0;
7283 }
7284 _ACEOF
7285 rm -f conftest$ac_exeext
7286 if { (ac_try="$ac_link"
7287 case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_link") 2>&5
7293 ac_status=$?
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7296 { (case "(($ac_try" in
7297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7298 *) ac_try_echo=$ac_try;;
7299 esac
7300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7301 (eval "$ac_try") 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_cv_func_stat_empty_string_bug=no
7306 else
7307 echo "$as_me: program exited with status $ac_status" >&5
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311 ( exit $ac_status )
7312 ac_cv_func_stat_empty_string_bug=yes
7313 fi
7314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7315 fi
7316
7317
7318 fi
7319 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7320 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
7321 if test $ac_cv_func_stat_empty_string_bug = yes; then
7322 case " $LIBOBJS " in
7323 *" stat.$ac_objext "* ) ;;
7324 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7325 ;;
7326 esac
7327
7328
7329 cat >>confdefs.h <<_ACEOF
7330 #define HAVE_STAT_EMPTY_STRING_BUG 1
7331 _ACEOF
7332
7333 fi
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353 for ac_func in __argz_count __argz_next __argz_stringify getcwd mempcpy mkdir munmap nl_langinfo pow setlocale sqrt stpcpy strcasecmp strchr strcspn strdup strstr strtoul
7354 do
7355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361 cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h. */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7369 #define $ac_func innocuous_$ac_func
7370
7371 /* System header to define __stub macros and hopefully few prototypes,
7372 which can conflict with char $ac_func (); below.
7373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7374 <limits.h> exists even on freestanding compilers. */
7375
7376 #ifdef __STDC__
7377 # include <limits.h>
7378 #else
7379 # include <assert.h>
7380 #endif
7381
7382 #undef $ac_func
7383
7384 /* Override any GCC internal prototype to avoid an error.
7385 Use char because int might match the return type of a GCC
7386 builtin and then its argument prototype would still apply. */
7387 #ifdef __cplusplus
7388 extern "C"
7389 #endif
7390 char $ac_func ();
7391 /* The GNU C library defines this for functions which it implements
7392 to always fail with ENOSYS. Some functions are actually named
7393 something starting with __ and the normal name is an alias. */
7394 #if defined __stub_$ac_func || defined __stub___$ac_func
7395 choke me
7396 #endif
7397
7398 int
7399 main ()
7400 {
7401 return $ac_func ();
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 rm -f conftest.$ac_objext conftest$ac_exeext
7407 if { (ac_try="$ac_link"
7408 case "(($ac_try" in
7409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7411 esac
7412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7413 (eval "$ac_link") 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } && {
7420 test -z "$ac_c_werror_flag" ||
7421 test ! -s conftest.err
7422 } && test -s conftest$ac_exeext &&
7423 $as_test_x conftest$ac_exeext; then
7424 eval "$as_ac_var=yes"
7425 else
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7428
7429 eval "$as_ac_var=no"
7430 fi
7431
7432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7433 conftest$ac_exeext conftest.$ac_ext
7434 fi
7435 ac_res=`eval echo '${'$as_ac_var'}'`
7436 { echo "$as_me:$LINENO: result: $ac_res" >&5
7437 echo "${ECHO_T}$ac_res" >&6; }
7438 if test `eval echo '${'$as_ac_var'}'` = yes; then
7439 cat >>confdefs.h <<_ACEOF
7440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7441 _ACEOF
7442
7443 fi
7444 done
7445
7446
7447
7448 # Extract the first word of "freetype-config", so it can be a program name with args.
7449 set dummy freetype-config; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_path_freetypeconfig+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455 case $freetypeconfig in
7456 [\\/]* | ?:[\\/]*)
7457 ac_cv_path_freetypeconfig="$freetypeconfig" # Let the user override the test with a path.
7458 ;;
7459 *)
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 as_dummy="$prefix/bin:$PATH"
7462 for as_dir in $as_dummy
7463 do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_path_freetypeconfig="$as_dir/$ac_word$ac_exec_ext"
7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472 done
7473 done
7474 IFS=$as_save_IFS
7475
7476 ;;
7477 esac
7478 fi
7479 freetypeconfig=$ac_cv_path_freetypeconfig
7480 if test -n "$freetypeconfig"; then
7481 { echo "$as_me:$LINENO: result: $freetypeconfig" >&5
7482 echo "${ECHO_T}$freetypeconfig" >&6; }
7483 else
7484 { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7486 fi
7487
7488
7489 if test "x$freetypeconfig" = "x"
7490 then
7491 echo "freetype-config not found"
7492 else
7493 echo "freetype-config found"
7494 CXXFLAGS="$CXXFLAGS `$freetypeconfig --cflags`"
7495 LIBS="$LIBS `$freetypeconfig --libs`"
7496 fi
7497
7498 # Extract the first word of "libpng-config", so it can be a program name with args.
7499 set dummy libpng-config; ac_word=$2
7500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502 if test "${ac_cv_path_pngconfig+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505 case $pngconfig in
7506 [\\/]* | ?:[\\/]*)
7507 ac_cv_path_pngconfig="$pngconfig" # Let the user override the test with a path.
7508 ;;
7509 *)
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 as_dummy="$prefix/bin:$PATH"
7512 for as_dir in $as_dummy
7513 do
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_path_pngconfig="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 break 2
7521 fi
7522 done
7523 done
7524 IFS=$as_save_IFS
7525
7526 ;;
7527 esac
7528 fi
7529 pngconfig=$ac_cv_path_pngconfig
7530 if test -n "$pngconfig"; then
7531 { echo "$as_me:$LINENO: result: $pngconfig" >&5
7532 echo "${ECHO_T}$pngconfig" >&6; }
7533 else
7534 { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7536 fi
7537
7538
7539 if test "x$pngconfig" = "x"
7540 then
7541 echo "libpng-config not found. We search for libpng manually"
7542
7543 { echo "$as_me:$LINENO: checking for png_access_version_number in -lpng" >&5
7544 echo $ECHO_N "checking for png_access_version_number in -lpng... $ECHO_C" >&6; }
7545 if test "${ac_cv_lib_png_png_access_version_number+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 ac_check_lib_save_LIBS=$LIBS
7549 LIBS="-lpng -lm -lz $LIBS"
7550 cat >conftest.$ac_ext <<_ACEOF
7551 /* confdefs.h. */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7556
7557 /* Override any GCC internal prototype to avoid an error.
7558 Use char because int might match the return type of a GCC
7559 builtin and then its argument prototype would still apply. */
7560 #ifdef __cplusplus
7561 extern "C"
7562 #endif
7563 char png_access_version_number ();
7564 int
7565 main ()
7566 {
7567 return png_access_version_number ();
7568 ;
7569 return 0;
7570 }
7571 _ACEOF
7572 rm -f conftest.$ac_objext conftest$ac_exeext
7573 if { (ac_try="$ac_link"
7574 case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7577 esac
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_link") 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest$ac_exeext &&
7589 $as_test_x conftest$ac_exeext; then
7590 ac_cv_lib_png_png_access_version_number=yes
7591 else
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7594
7595 ac_cv_lib_png_png_access_version_number=no
7596 fi
7597
7598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7599 conftest$ac_exeext conftest.$ac_ext
7600 LIBS=$ac_check_lib_save_LIBS
7601 fi
7602 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_access_version_number" >&5
7603 echo "${ECHO_T}$ac_cv_lib_png_png_access_version_number" >&6; }
7604 if test $ac_cv_lib_png_png_access_version_number = yes; then
7605 cat >>confdefs.h <<_ACEOF
7606 #define HAVE_LIBPNG 1
7607 _ACEOF
7608
7609 LIBS="-lpng $LIBS"
7610
7611 else
7612 { { echo "$as_me:$LINENO: error: *** You need libpng" >&5
7613 echo "$as_me: error: *** You need libpng" >&2;}
7614 { (exit 1); exit 1; }; }
7615 fi
7616
7617 LIBS="$LIBS -lpng -lz"
7618 else
7619 CXXFLAGS="$CXXFLAGS `$pngconfig --cppflags` `libpng-config --cflags`"
7620 LIBS="$LIBS `$pngconfig --ldflags` `$pngconfig --libs`"
7621 fi
7622
7623
7624 SDL_VERSION=1.2.4
7625
7626 # Check whether --with-sdl-prefix was given.
7627 if test "${with_sdl_prefix+set}" = set; then
7628 withval=$with_sdl_prefix; sdl_prefix="$withval"
7629 else
7630 sdl_prefix=""
7631 fi
7632
7633
7634 # Check whether --with-sdl-exec-prefix was given.
7635 if test "${with_sdl_exec_prefix+set}" = set; then
7636 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7637 else
7638 sdl_exec_prefix=""
7639 fi
7640
7641 # Check whether --enable-sdltest was given.
7642 if test "${enable_sdltest+set}" = set; then
7643 enableval=$enable_sdltest;
7644 else
7645 enable_sdltest=yes
7646 fi
7647
7648
7649 if test x$sdl_exec_prefix != x ; then
7650 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
7651 if test x${SDL_CONFIG+set} != xset ; then
7652 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7653 fi
7654 fi
7655 if test x$sdl_prefix != x ; then
7656 sdl_args="$sdl_args --prefix=$sdl_prefix"
7657 if test x${SDL_CONFIG+set} != xset ; then
7658 SDL_CONFIG=$sdl_prefix/bin/sdl-config
7659 fi
7660 fi
7661
7662 if test "x$prefix" != xNONE; then
7663 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7664 fi
7665 # Extract the first word of "sdl-config", so it can be a program name with args.
7666 set dummy sdl-config; ac_word=$2
7667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672 case $SDL_CONFIG in
7673 [\\/]* | ?:[\\/]*)
7674 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7675 ;;
7676 *)
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688 done
7689 done
7690 IFS=$as_save_IFS
7691
7692 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7693 ;;
7694 esac
7695 fi
7696 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7697 if test -n "$SDL_CONFIG"; then
7698 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
7699 echo "${ECHO_T}$SDL_CONFIG" >&6; }
7700 else
7701 { echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6; }
7703 fi
7704
7705
7706 min_sdl_version=$SDL_VERSION
7707 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
7708 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
7709 no_sdl=""
7710 if test "$SDL_CONFIG" = "no" ; then
7711 no_sdl=yes
7712 else
7713 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
7714 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
7715
7716 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
7717 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7718 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
7719 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7720 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
7721 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7722 if test "x$enable_sdltest" = "xyes" ; then
7723 ac_save_CFLAGS="$CFLAGS"
7724 ac_save_CXXFLAGS="$CXXFLAGS"
7725 ac_save_LIBS="$LIBS"
7726 CFLAGS="$CFLAGS $SDL_CFLAGS"
7727 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7728 LIBS="$LIBS $SDL_LIBS"
7729 rm -f conf.sdltest
7730 if test "$cross_compiling" = yes; then
7731 echo $ac_n "cross compiling; assumed OK... $ac_c"
7732 else
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739
7740 #include <stdio.h>
7741 #include <stdlib.h>
7742 #include <string.h>
7743 #include "SDL.h"
7744
7745 char*
7746 my_strdup (char *str)
7747 {
7748 char *new_str;
7749
7750 if (str)
7751 {
7752 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
7753 strcpy (new_str, str);
7754 }
7755 else
7756 new_str = NULL;
7757
7758 return new_str;
7759 }
7760
7761 int main (int argc, char *argv[])
7762 {
7763 int major, minor, micro;
7764 char *tmp_version;
7765
7766 /* This hangs on some systems (?)
7767 system ("touch conf.sdltest");
7768 */
7769 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
7770
7771 /* HP/UX 9 (%@#!) writes to sscanf strings */
7772 tmp_version = my_strdup("$min_sdl_version");
7773 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7774 printf("%s, bad version string\n", "$min_sdl_version");
7775 exit(1);
7776 }
7777
7778 if (($sdl_major_version > major) ||
7779 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
7780 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
7781 {
7782 return 0;
7783 }
7784 else
7785 {
7786 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
7787 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
7788 printf("*** best to upgrade to the required version.\n");
7789 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
7790 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
7791 printf("*** config.cache before re-running configure\n");
7792 return 1;
7793 }
7794 }
7795
7796
7797 _ACEOF
7798 rm -f conftest$ac_exeext
7799 if { (ac_try="$ac_link"
7800 case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803 esac
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_link") 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7809 { (case "(($ac_try" in
7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7812 esac
7813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814 (eval "$ac_try") 2>&5
7815 ac_status=$?
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7818 :
7819 else
7820 echo "$as_me: program exited with status $ac_status" >&5
7821 echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7823
7824 ( exit $ac_status )
7825 no_sdl=yes
7826 fi
7827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7828 fi
7829
7830
7831 CFLAGS="$ac_save_CFLAGS"
7832 CXXFLAGS="$ac_save_CXXFLAGS"
7833 LIBS="$ac_save_LIBS"
7834 fi
7835 fi
7836 if test "x$no_sdl" = x ; then
7837 { echo "$as_me:$LINENO: result: yes" >&5
7838 echo "${ECHO_T}yes" >&6; }
7839 :
7840 else
7841 { echo "$as_me:$LINENO: result: no" >&5
7842 echo "${ECHO_T}no" >&6; }
7843 if test "$SDL_CONFIG" = "no" ; then
7844 echo "*** The sdl-config script installed by SDL could not be found"
7845 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
7846 echo "*** your path, or set the SDL_CONFIG environment variable to the"
7847 echo "*** full path to sdl-config."
7848 else
7849 if test -f conf.sdltest ; then
7850 :
7851 else
7852 echo "*** Could not run SDL test program, checking why..."
7853 CFLAGS="$CFLAGS $SDL_CFLAGS"
7854 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7855 LIBS="$LIBS $SDL_LIBS"
7856 cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h. */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862
7863 #include <stdio.h>
7864 #include "SDL.h"
7865
7866 int main(int argc, char *argv[])
7867 { return 0; }
7868 #undef main
7869 #define main K_and_R_C_main
7870
7871 int
7872 main ()
7873 {
7874 return 0;
7875 ;
7876 return 0;
7877 }
7878 _ACEOF
7879 rm -f conftest.$ac_objext conftest$ac_exeext
7880 if { (ac_try="$ac_link"
7881 case "(($ac_try" in
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7884 esac
7885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7886 (eval "$ac_link") 2>conftest.er1
7887 ac_status=$?
7888 grep -v '^ *+' conftest.er1 >conftest.err
7889 rm -f conftest.er1
7890 cat conftest.err >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } && {
7893 test -z "$ac_c_werror_flag" ||
7894 test ! -s conftest.err
7895 } && test -s conftest$ac_exeext &&
7896 $as_test_x conftest$ac_exeext; then
7897 echo "*** The test program compiled, but did not run. This usually means"
7898 echo "*** that the run-time linker is not finding SDL or finding the wrong"
7899 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
7900 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7901 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7902 echo "*** is required on your system"
7903 echo "***"
7904 echo "*** If you have an old version installed, it is best to remove it, although"
7905 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7906 else
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 echo "*** The test program failed to compile or link. See the file config.log for the"
7911 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
7912 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
7913 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
7914 fi
7915
7916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7917 conftest$ac_exeext conftest.$ac_ext
7918 CFLAGS="$ac_save_CFLAGS"
7919 CXXFLAGS="$ac_save_CXXFLAGS"
7920 LIBS="$ac_save_LIBS"
7921 fi
7922 fi
7923 SDL_CFLAGS=""
7924 SDL_LIBS=""
7925 { { echo "$as_me:$LINENO: error: *** You need libSDL >= $SDL_VERSION " >&5
7926 echo "$as_me: error: *** You need libSDL >= $SDL_VERSION " >&2;}
7927 { (exit 1); exit 1; }; }
7928 fi
7929
7930
7931 rm -f conf.sdltest
7932
7933 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7934 LIBS="$LIBS $SDL_LIBS"
7935
7936
7937 MKINSTALLDIRS=
7938 if test -n "$ac_aux_dir"; then
7939 case "$ac_aux_dir" in
7940 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7941 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7942 esac
7943 fi
7944 if test -z "$MKINSTALLDIRS"; then
7945 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7946 fi
7947
7948
7949
7950 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7951 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
7952 # Check whether --enable-nls was given.
7953 if test "${enable_nls+set}" = set; then
7954 enableval=$enable_nls; USE_NLS=$enableval
7955 else
7956 USE_NLS=yes
7957 fi
7958
7959 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7960 echo "${ECHO_T}$USE_NLS" >&6; }
7961
7962
7963
7964
7965
7966
7967 # Prepare PATH_SEPARATOR.
7968 # The user is always right.
7969 if test "${PATH_SEPARATOR+set}" != set; then
7970 echo "#! /bin/sh" >conf$$.sh
7971 echo "exit 0" >>conf$$.sh
7972 chmod +x conf$$.sh
7973 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7974 PATH_SEPARATOR=';'
7975 else
7976 PATH_SEPARATOR=:
7977 fi
7978 rm -f conf$$.sh
7979 fi
7980
7981 # Find out how to test for executable files. Don't use a zero-byte file,
7982 # as systems may use methods other than mode bits to determine executability.
7983 cat >conf$$.file <<_ASEOF
7984 #! /bin/sh
7985 exit 0
7986 _ASEOF
7987 chmod +x conf$$.file
7988 if test -x conf$$.file >/dev/null 2>&1; then
7989 ac_executable_p="test -x"
7990 else
7991 ac_executable_p="test -f"
7992 fi
7993 rm -f conf$$.file
7994
7995 # Extract the first word of "msgfmt", so it can be a program name with args.
7996 set dummy msgfmt; ac_word=$2
7997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7999 if test "${ac_cv_path_MSGFMT+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002 case "$MSGFMT" in
8003 [\\/]* | ?:[\\/]*)
8004 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8005 ;;
8006 *)
8007 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8008 for ac_dir in $PATH; do
8009 IFS="$ac_save_IFS"
8010 test -z "$ac_dir" && ac_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8013 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
8014 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8015 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8016 break 2
8017 fi
8018 fi
8019 done
8020 done
8021 IFS="$ac_save_IFS"
8022 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8023 ;;
8024 esac
8025 fi
8026 MSGFMT="$ac_cv_path_MSGFMT"
8027 if test "$MSGFMT" != ":"; then
8028 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8029 echo "${ECHO_T}$MSGFMT" >&6; }
8030 else
8031 { echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6; }
8033 fi
8034
8035 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8036 set dummy gmsgfmt; ac_word=$2
8037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8039 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042 case $GMSGFMT in
8043 [\\/]* | ?:[\\/]*)
8044 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8045 ;;
8046 *)
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8049 do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058 done
8059 done
8060 IFS=$as_save_IFS
8061
8062 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8063 ;;
8064 esac
8065 fi
8066 GMSGFMT=$ac_cv_path_GMSGFMT
8067 if test -n "$GMSGFMT"; then
8068 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8069 echo "${ECHO_T}$GMSGFMT" >&6; }
8070 else
8071 { echo "$as_me:$LINENO: result: no" >&5
8072 echo "${ECHO_T}no" >&6; }
8073 fi
8074
8075
8076
8077
8078 # Prepare PATH_SEPARATOR.
8079 # The user is always right.
8080 if test "${PATH_SEPARATOR+set}" != set; then
8081 echo "#! /bin/sh" >conf$$.sh
8082 echo "exit 0" >>conf$$.sh
8083 chmod +x conf$$.sh
8084 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8085 PATH_SEPARATOR=';'
8086 else
8087 PATH_SEPARATOR=:
8088 fi
8089 rm -f conf$$.sh
8090 fi
8091
8092 # Find out how to test for executable files. Don't use a zero-byte file,
8093 # as systems may use methods other than mode bits to determine executability.
8094 cat >conf$$.file <<_ASEOF
8095 #! /bin/sh
8096 exit 0
8097 _ASEOF
8098 chmod +x conf$$.file
8099 if test -x conf$$.file >/dev/null 2>&1; then
8100 ac_executable_p="test -x"
8101 else
8102 ac_executable_p="test -f"
8103 fi
8104 rm -f conf$$.file
8105
8106 # Extract the first word of "xgettext", so it can be a program name with args.
8107 set dummy xgettext; ac_word=$2
8108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8110 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113 case "$XGETTEXT" in
8114 [\\/]* | ?:[\\/]*)
8115 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8116 ;;
8117 *)
8118 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8119 for ac_dir in $PATH; do
8120 IFS="$ac_save_IFS"
8121 test -z "$ac_dir" && ac_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8124 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8125 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8126 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8127 break 2
8128 fi
8129 fi
8130 done
8131 done
8132 IFS="$ac_save_IFS"
8133 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8134 ;;
8135 esac
8136 fi
8137 XGETTEXT="$ac_cv_path_XGETTEXT"
8138 if test "$XGETTEXT" != ":"; then
8139 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8140 echo "${ECHO_T}$XGETTEXT" >&6; }
8141 else
8142 { echo "$as_me:$LINENO: result: no" >&5
8143 echo "${ECHO_T}no" >&6; }
8144 fi
8145
8146 rm -f messages.po
8147
8148
8149 # Prepare PATH_SEPARATOR.
8150 # The user is always right.
8151 if test "${PATH_SEPARATOR+set}" != set; then
8152 echo "#! /bin/sh" >conf$$.sh
8153 echo "exit 0" >>conf$$.sh
8154 chmod +x conf$$.sh
8155 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8156 PATH_SEPARATOR=';'
8157 else
8158 PATH_SEPARATOR=:
8159 fi
8160 rm -f conf$$.sh
8161 fi
8162
8163 # Find out how to test for executable files. Don't use a zero-byte file,
8164 # as systems may use methods other than mode bits to determine executability.
8165 cat >conf$$.file <<_ASEOF
8166 #! /bin/sh
8167 exit 0
8168 _ASEOF
8169 chmod +x conf$$.file
8170 if test -x conf$$.file >/dev/null 2>&1; then
8171 ac_executable_p="test -x"
8172 else
8173 ac_executable_p="test -f"
8174 fi
8175 rm -f conf$$.file
8176
8177 # Extract the first word of "msgmerge", so it can be a program name with args.
8178 set dummy msgmerge; ac_word=$2
8179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8181 if test "${ac_cv_path_MSGMERGE+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184 case "$MSGMERGE" in
8185 [\\/]* | ?:[\\/]*)
8186 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8187 ;;
8188 *)
8189 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8190 for ac_dir in $PATH; do
8191 IFS="$ac_save_IFS"
8192 test -z "$ac_dir" && ac_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8195 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
8196 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8197 break 2
8198 fi
8199 fi
8200 done
8201 done
8202 IFS="$ac_save_IFS"
8203 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8204 ;;
8205 esac
8206 fi
8207 MSGMERGE="$ac_cv_path_MSGMERGE"
8208 if test "$MSGMERGE" != ":"; then
8209 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
8210 echo "${ECHO_T}$MSGMERGE" >&6; }
8211 else
8212 { echo "$as_me:$LINENO: result: no" >&5
8213 echo "${ECHO_T}no" >&6; }
8214 fi
8215
8216
8217 if test "$GMSGFMT" != ":"; then
8218 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
8219 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8220 : ;
8221 else
8222 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
8223 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
8224 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
8225 GMSGFMT=":"
8226 fi
8227 fi
8228
8229 if test "$XGETTEXT" != ":"; then
8230 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8231 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8232 : ;
8233 else
8234 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8235 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
8236 XGETTEXT=":"
8237 fi
8238 rm -f messages.po
8239 fi
8240
8241 ac_config_commands="$ac_config_commands default-1"
8242
8243
8244
8245 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
8246 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
8247 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250 ac_check_lib_save_LIBS=$LIBS
8251 LIBS="-lcposix $LIBS"
8252 cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h. */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8258
8259 /* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
8262 #ifdef __cplusplus
8263 extern "C"
8264 #endif
8265 char strerror ();
8266 int
8267 main ()
8268 {
8269 return strerror ();
8270 ;
8271 return 0;
8272 }
8273 _ACEOF
8274 rm -f conftest.$ac_objext conftest$ac_exeext
8275 if { (ac_try="$ac_link"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_link") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest$ac_exeext &&
8291 $as_test_x conftest$ac_exeext; then
8292 ac_cv_lib_cposix_strerror=yes
8293 else
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8296
8297 ac_cv_lib_cposix_strerror=no
8298 fi
8299
8300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8301 conftest$ac_exeext conftest.$ac_ext
8302 LIBS=$ac_check_lib_save_LIBS
8303 fi
8304 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8305 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8306 if test $ac_cv_lib_cposix_strerror = yes; then
8307 LIBS="$LIBS -lcposix"
8308 fi
8309
8310
8311
8312
8313 { echo "$as_me:$LINENO: checking for signed" >&5
8314 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8315 if test "${bh_cv_c_signed+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h. */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324
8325 int
8326 main ()
8327 {
8328 signed char x;
8329 ;
8330 return 0;
8331 }
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8335 case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_compile") 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } && {
8347 test -z "$ac_c_werror_flag" ||
8348 test ! -s conftest.err
8349 } && test -s conftest.$ac_objext; then
8350 bh_cv_c_signed=yes
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8354
8355 bh_cv_c_signed=no
8356 fi
8357
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 fi
8360 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8361 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8362 if test $bh_cv_c_signed = no; then
8363
8364 cat >>confdefs.h <<\_ACEOF
8365 #define signed
8366 _ACEOF
8367
8368 fi
8369
8370 { echo "$as_me:$LINENO: checking for off_t" >&5
8371 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8372 if test "${ac_cv_type_off_t+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h. */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 $ac_includes_default
8382 typedef off_t ac__type_new_;
8383 int
8384 main ()
8385 {
8386 if ((ac__type_new_ *) 0)
8387 return 0;
8388 if (sizeof (ac__type_new_))
8389 return 0;
8390 ;
8391 return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8396 case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399 esac
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_compile") 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_c_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest.$ac_objext; then
8411 ac_cv_type_off_t=yes
8412 else
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 ac_cv_type_off_t=no
8417 fi
8418
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 fi
8421 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8422 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8423 if test $ac_cv_type_off_t = yes; then
8424 :
8425 else
8426
8427 cat >>confdefs.h <<_ACEOF
8428 #define off_t long int
8429 _ACEOF
8430
8431 fi
8432
8433
8434 { echo "$as_me:$LINENO: checking for long long" >&5
8435 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8436 if test "${ac_cv_type_long_long+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h. */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 long long ll = 1LL; int i = 63;
8446 int
8447 main ()
8448 {
8449 long long llmax = (long long) -1;
8450 return ll << i | ll >> i | llmax / ll | llmax % ll;
8451 ;
8452 return 0;
8453 }
8454 _ACEOF
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (ac_try="$ac_link"
8457 case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8460 esac
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_link") 2>conftest.er1
8463 ac_status=$?
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && {
8469 test -z "$ac_c_werror_flag" ||
8470 test ! -s conftest.err
8471 } && test -s conftest$ac_exeext &&
8472 $as_test_x conftest$ac_exeext; then
8473 ac_cv_type_long_long=yes
8474 else
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8477
8478 ac_cv_type_long_long=no
8479 fi
8480
8481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8482 conftest$ac_exeext conftest.$ac_ext
8483 fi
8484 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8485 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8486 if test $ac_cv_type_long_long = yes; then
8487
8488 cat >>confdefs.h <<\_ACEOF
8489 #define HAVE_LONG_LONG 1
8490 _ACEOF
8491
8492 fi
8493
8494
8495 { echo "$as_me:$LINENO: checking for long double" >&5
8496 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8497 if test "${gt_cv_c_long_double+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500 if test "$GCC" = yes; then
8501 gt_cv_c_long_double=yes
8502 else
8503 cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h. */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8509
8510 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8511 long double foo = 0.0;
8512 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8513 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8514
8515 int
8516 main ()
8517 {
8518
8519 ;
8520 return 0;
8521 }
8522 _ACEOF
8523 rm -f conftest.$ac_objext
8524 if { (ac_try="$ac_compile"
8525 case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528 esac
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_compile") 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_c_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest.$ac_objext; then
8540 gt_cv_c_long_double=yes
8541 else
8542 echo "$as_me: failed program was:" >&5
8543 sed 's/^/| /' conftest.$ac_ext >&5
8544
8545 gt_cv_c_long_double=no
8546 fi
8547
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 fi
8550 fi
8551 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8552 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8553 if test $gt_cv_c_long_double = yes; then
8554
8555 cat >>confdefs.h <<\_ACEOF
8556 #define HAVE_LONG_DOUBLE 1
8557 _ACEOF
8558
8559 fi
8560
8561
8562 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8563 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8564 if test "${gt_cv_c_wchar_t+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h. */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 #include <stddef.h>
8574 wchar_t foo = (wchar_t)'\0';
8575 int
8576 main ()
8577 {
8578
8579 ;
8580 return 0;
8581 }
8582 _ACEOF
8583 rm -f conftest.$ac_objext
8584 if { (ac_try="$ac_compile"
8585 case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8588 esac
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_compile") 2>conftest.er1
8591 ac_status=$?
8592 grep -v '^ *+' conftest.er1 >conftest.err
8593 rm -f conftest.er1
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } && {
8597 test -z "$ac_c_werror_flag" ||
8598 test ! -s conftest.err
8599 } && test -s conftest.$ac_objext; then
8600 gt_cv_c_wchar_t=yes
8601 else
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8604
8605 gt_cv_c_wchar_t=no
8606 fi
8607
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 fi
8610 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8611 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8612 if test $gt_cv_c_wchar_t = yes; then
8613
8614 cat >>confdefs.h <<\_ACEOF
8615 #define HAVE_WCHAR_T 1
8616 _ACEOF
8617
8618 fi
8619
8620
8621 { echo "$as_me:$LINENO: checking for wint_t" >&5
8622 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8623 if test "${gt_cv_c_wint_t+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626 cat >conftest.$ac_ext <<_ACEOF
8627 /* confdefs.h. */
8628 _ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8632 #include <wchar.h>
8633 wint_t foo = (wchar_t)'\0';
8634 int
8635 main ()
8636 {
8637
8638 ;
8639 return 0;
8640 }
8641 _ACEOF
8642 rm -f conftest.$ac_objext
8643 if { (ac_try="$ac_compile"
8644 case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8647 esac
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_compile") 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } && {
8656 test -z "$ac_c_werror_flag" ||
8657 test ! -s conftest.err
8658 } && test -s conftest.$ac_objext; then
8659 gt_cv_c_wint_t=yes
8660 else
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8663
8664 gt_cv_c_wint_t=no
8665 fi
8666
8667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 fi
8669 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8670 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8671 if test $gt_cv_c_wint_t = yes; then
8672
8673 cat >>confdefs.h <<\_ACEOF
8674 #define HAVE_WINT_T 1
8675 _ACEOF
8676
8677 fi
8678
8679
8680 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8681 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8682 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685 cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h. */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8691 #include <sys/types.h>
8692 #include <inttypes.h>
8693 int
8694 main ()
8695 {
8696 uintmax_t i = (uintmax_t) -1;
8697 ;
8698 return 0;
8699 }
8700 _ACEOF
8701 rm -f conftest.$ac_objext
8702 if { (ac_try="$ac_compile"
8703 case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_compile") 2>conftest.er1
8709 ac_status=$?
8710 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } && {
8715 test -z "$ac_c_werror_flag" ||
8716 test ! -s conftest.err
8717 } && test -s conftest.$ac_objext; then
8718 jm_ac_cv_header_inttypes_h=yes
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723 jm_ac_cv_header_inttypes_h=no
8724 fi
8725
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 fi
8728 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8729 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
8730 if test $jm_ac_cv_header_inttypes_h = yes; then
8731
8732 cat >>confdefs.h <<_ACEOF
8733 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8734 _ACEOF
8735
8736 fi
8737
8738
8739 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8740 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8741 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 #include <sys/types.h>
8751 #include <stdint.h>
8752 int
8753 main ()
8754 {
8755 uintmax_t i = (uintmax_t) -1;
8756 ;
8757 return 0;
8758 }
8759 _ACEOF
8760 rm -f conftest.$ac_objext
8761 if { (ac_try="$ac_compile"
8762 case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8765 esac
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_compile") 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } && {
8774 test -z "$ac_c_werror_flag" ||
8775 test ! -s conftest.err
8776 } && test -s conftest.$ac_objext; then
8777 jm_ac_cv_header_stdint_h=yes
8778 else
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782 jm_ac_cv_header_stdint_h=no
8783 fi
8784
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786 fi
8787 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8788 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
8789 if test $jm_ac_cv_header_stdint_h = yes; then
8790
8791 cat >>confdefs.h <<_ACEOF
8792 #define HAVE_STDINT_H_WITH_UINTMAX 1
8793 _ACEOF
8794
8795 fi
8796
8797
8798
8799
8800 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8801 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8802 if test "${gt_cv_c_intmax_t+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805 cat >conftest.$ac_ext <<_ACEOF
8806 /* confdefs.h. */
8807 _ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8811
8812 #include <stddef.h>
8813 #include <stdlib.h>
8814 #if HAVE_STDINT_H_WITH_UINTMAX
8815 #include <stdint.h>
8816 #endif
8817 #if HAVE_INTTYPES_H_WITH_UINTMAX
8818 #include <inttypes.h>
8819 #endif
8820
8821 int
8822 main ()
8823 {
8824 intmax_t x = -1;
8825 ;
8826 return 0;
8827 }
8828 _ACEOF
8829 rm -f conftest.$ac_objext
8830 if { (ac_try="$ac_compile"
8831 case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8834 esac
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836 (eval "$ac_compile") 2>conftest.er1
8837 ac_status=$?
8838 grep -v '^ *+' conftest.er1 >conftest.err
8839 rm -f conftest.er1
8840 cat conftest.err >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } && {
8843 test -z "$ac_c_werror_flag" ||
8844 test ! -s conftest.err
8845 } && test -s conftest.$ac_objext; then
8846 gt_cv_c_intmax_t=yes
8847 else
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8850
8851 gt_cv_c_intmax_t=no
8852 fi
8853
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 fi
8856 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8857 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8858 if test $gt_cv_c_intmax_t = yes; then
8859
8860 cat >>confdefs.h <<\_ACEOF
8861 #define HAVE_INTMAX_T 1
8862 _ACEOF
8863
8864 fi
8865
8866
8867
8868 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8869 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8870 if test "${gt_cv_func_printf_posix+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873
8874 if test "$cross_compiling" = yes; then
8875
8876 cat >conftest.$ac_ext <<_ACEOF
8877 /* confdefs.h. */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8882
8883 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8884 notposix
8885 #endif
8886
8887 _ACEOF
8888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8889 $EGREP "notposix" >/dev/null 2>&1; then
8890 gt_cv_func_printf_posix="guessing no"
8891 else
8892 gt_cv_func_printf_posix="guessing yes"
8893 fi
8894 rm -f conftest*
8895
8896
8897 else
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904
8905 #include <stdio.h>
8906 #include <string.h>
8907 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8908 dollar expansion (possibly an autoconf bug). */
8909 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8910 static char buf[100];
8911 int main ()
8912 {
8913 sprintf (buf, format, 33, 55);
8914 return (strcmp (buf, "55 33") != 0);
8915 }
8916 _ACEOF
8917 rm -f 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>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8928 { (case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931 esac
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_try") 2>&5
8934 ac_status=$?
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; }; then
8937 gt_cv_func_printf_posix=yes
8938 else
8939 echo "$as_me: program exited with status $ac_status" >&5
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 ( exit $ac_status )
8944 gt_cv_func_printf_posix=no
8945 fi
8946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8947 fi
8948
8949
8950
8951 fi
8952 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8953 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8954 case $gt_cv_func_printf_posix in
8955 *yes)
8956
8957 cat >>confdefs.h <<\_ACEOF
8958 #define HAVE_POSIX_PRINTF 1
8959 _ACEOF
8960
8961 ;;
8962 esac
8963
8964
8965 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8966 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
8967 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970 cat >conftest.$ac_ext <<_ACEOF
8971 /* confdefs.h. */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8976
8977 #include <features.h>
8978 #ifdef __GNU_LIBRARY__
8979 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8980 Lucky GNU user
8981 #endif
8982 #endif
8983
8984 _ACEOF
8985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8986 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8987 ac_cv_gnu_library_2_1=yes
8988 else
8989 ac_cv_gnu_library_2_1=no
8990 fi
8991 rm -f conftest*
8992
8993
8994
8995 fi
8996 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8997 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
8998
8999 GLIBC21="$ac_cv_gnu_library_2_1"
9000
9001
9002
9003
9004 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9005 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9006 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9008 else
9009
9010 if test "$cross_compiling" = yes; then
9011
9012 # Guess based on the CPU.
9013 case "$host_cpu" in
9014 alpha* | i3456786 | m68k | s390*)
9015 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9016 *)
9017 gt_cv_int_divbyzero_sigfpe="guessing no";;
9018 esac
9019
9020 else
9021 cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h. */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027
9028 #include <stdlib.h>
9029 #include <signal.h>
9030
9031 static void
9032 #ifdef __cplusplus
9033 sigfpe_handler (int sig)
9034 #else
9035 sigfpe_handler (sig) int sig;
9036 #endif
9037 {
9038 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9039 exit (sig != SIGFPE);
9040 }
9041
9042 int x = 1;
9043 int y = 0;
9044 int z;
9045 int nan;
9046
9047 int main ()
9048 {
9049 signal (SIGFPE, sigfpe_handler);
9050 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9051 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9052 signal (SIGTRAP, sigfpe_handler);
9053 #endif
9054 /* Linux/SPARC yields signal SIGILL. */
9055 #if defined (__sparc__) && defined (__linux__)
9056 signal (SIGILL, sigfpe_handler);
9057 #endif
9058
9059 z = x / y;
9060 nan = y / y;
9061 exit (1);
9062 }
9063
9064 _ACEOF
9065 rm -f conftest$ac_exeext
9066 if { (ac_try="$ac_link"
9067 case "(($ac_try" in
9068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069 *) ac_try_echo=$ac_try;;
9070 esac
9071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072 (eval "$ac_link") 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9076 { (case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9079 esac
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_try") 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 gt_cv_int_divbyzero_sigfpe=yes
9086 else
9087 echo "$as_me: program exited with status $ac_status" >&5
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9090
9091 ( exit $ac_status )
9092 gt_cv_int_divbyzero_sigfpe=no
9093 fi
9094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9095 fi
9096
9097
9098
9099 fi
9100 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9101 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9102 case "$gt_cv_int_divbyzero_sigfpe" in
9103 *yes) value=1;;
9104 *) value=0;;
9105 esac
9106
9107 cat >>confdefs.h <<_ACEOF
9108 #define INTDIV0_RAISES_SIGFPE $value
9109 _ACEOF
9110
9111
9112
9113 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9114 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9115 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h. */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 unsigned long long ull = 1ULL; int i = 63;
9125 int
9126 main ()
9127 {
9128 unsigned long long ullmax = (unsigned long long) -1;
9129 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9130 ;
9131 return 0;
9132 }
9133 _ACEOF
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (ac_try="$ac_link"
9136 case "(($ac_try" in
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9139 esac
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_link") 2>conftest.er1
9142 ac_status=$?
9143 grep -v '^ *+' conftest.er1 >conftest.err
9144 rm -f conftest.er1
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } && {
9148 test -z "$ac_c_werror_flag" ||
9149 test ! -s conftest.err
9150 } && test -s conftest$ac_exeext &&
9151 $as_test_x conftest$ac_exeext; then
9152 ac_cv_type_unsigned_long_long=yes
9153 else
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9156
9157 ac_cv_type_unsigned_long_long=no
9158 fi
9159
9160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9161 conftest$ac_exeext conftest.$ac_ext
9162 fi
9163 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9164 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9165 if test $ac_cv_type_unsigned_long_long = yes; then
9166
9167 cat >>confdefs.h <<\_ACEOF
9168 #define HAVE_UNSIGNED_LONG_LONG 1
9169 _ACEOF
9170
9171 fi
9172
9173
9174
9175
9176 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
9177
9178 test $ac_cv_type_unsigned_long_long = yes \
9179 && ac_type='unsigned long long' \
9180 || ac_type='unsigned long'
9181
9182 cat >>confdefs.h <<_ACEOF
9183 #define uintmax_t $ac_type
9184 _ACEOF
9185
9186 else
9187
9188 cat >>confdefs.h <<\_ACEOF
9189 #define HAVE_UINTMAX_T 1
9190 _ACEOF
9191
9192 fi
9193
9194
9195 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9196 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9197 if test "${gt_cv_header_inttypes_h+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200
9201 cat >conftest.$ac_ext <<_ACEOF
9202 /* confdefs.h. */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9207 #include <sys/types.h>
9208 #include <inttypes.h>
9209 int
9210 main ()
9211 {
9212
9213 ;
9214 return 0;
9215 }
9216 _ACEOF
9217 rm -f conftest.$ac_objext
9218 if { (ac_try="$ac_compile"
9219 case "(($ac_try" in
9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9222 esac
9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224 (eval "$ac_compile") 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } && {
9231 test -z "$ac_c_werror_flag" ||
9232 test ! -s conftest.err
9233 } && test -s conftest.$ac_objext; then
9234 gt_cv_header_inttypes_h=yes
9235 else
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9238
9239 gt_cv_header_inttypes_h=no
9240 fi
9241
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243
9244 fi
9245 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9246 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
9247 if test $gt_cv_header_inttypes_h = yes; then
9248
9249 cat >>confdefs.h <<_ACEOF
9250 #define HAVE_INTTYPES_H 1
9251 _ACEOF
9252
9253 fi
9254
9255
9256
9257 if test $gt_cv_header_inttypes_h = yes; then
9258 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9259 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
9260 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 #include <inttypes.h>
9271 #ifdef PRId32
9272 char *p = PRId32;
9273 #endif
9274
9275 int
9276 main ()
9277 {
9278
9279 ;
9280 return 0;
9281 }
9282 _ACEOF
9283 rm -f conftest.$ac_objext
9284 if { (ac_try="$ac_compile"
9285 case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9288 esac
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_compile") 2>conftest.er1
9291 ac_status=$?
9292 grep -v '^ *+' conftest.er1 >conftest.err
9293 rm -f conftest.er1
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } && {
9297 test -z "$ac_c_werror_flag" ||
9298 test ! -s conftest.err
9299 } && test -s conftest.$ac_objext; then
9300 gt_cv_inttypes_pri_broken=no
9301 else
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9304
9305 gt_cv_inttypes_pri_broken=yes
9306 fi
9307
9308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309
9310 fi
9311 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9312 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
9313 fi
9314 if test "$gt_cv_inttypes_pri_broken" = yes; then
9315
9316 cat >>confdefs.h <<_ACEOF
9317 #define PRI_MACROS_BROKEN 1
9318 _ACEOF
9319
9320 fi
9321
9322
9323
9324 for ac_header in stdint.h
9325 do
9326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 fi
9333 ac_res=`eval echo '${'$as_ac_Header'}'`
9334 { echo "$as_me:$LINENO: result: $ac_res" >&5
9335 echo "${ECHO_T}$ac_res" >&6; }
9336 else
9337 # Is the header compilable?
9338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 $ac_includes_default
9347 #include <$ac_header>
9348 _ACEOF
9349 rm -f conftest.$ac_objext
9350 if { (ac_try="$ac_compile"
9351 case "(($ac_try" in
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9354 esac
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_compile") 2>conftest.er1
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && {
9363 test -z "$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 } && test -s conftest.$ac_objext; then
9366 ac_header_compiler=yes
9367 else
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371 ac_header_compiler=no
9372 fi
9373
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9376 echo "${ECHO_T}$ac_header_compiler" >&6; }
9377
9378 # Is the header present?
9379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9381 cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h. */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 #include <$ac_header>
9388 _ACEOF
9389 if { (ac_try="$ac_cpp conftest.$ac_ext"
9390 case "(($ac_try" in
9391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9393 esac
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } >/dev/null && {
9402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9404 }; then
9405 ac_header_preproc=yes
9406 else
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410 ac_header_preproc=no
9411 fi
9412
9413 rm -f conftest.err conftest.$ac_ext
9414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9415 echo "${ECHO_T}$ac_header_preproc" >&6; }
9416
9417 # So? What about this header?
9418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9419 yes:no: )
9420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9424 ac_header_preproc=yes
9425 ;;
9426 no:yes:* )
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9439 ( cat <<\_ASBOX
9440 ## --------------------------------------- ##
9441 ## Report this to [email protected] ##
9442 ## --------------------------------------- ##
9443 _ASBOX
9444 ) | sed "s/^/$as_me: WARNING: /" >&2
9445 ;;
9446 esac
9447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452 eval "$as_ac_Header=\$ac_header_preproc"
9453 fi
9454 ac_res=`eval echo '${'$as_ac_Header'}'`
9455 { echo "$as_me:$LINENO: result: $ac_res" >&5
9456 echo "${ECHO_T}$ac_res" >&6; }
9457
9458 fi
9459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9460 cat >>confdefs.h <<_ACEOF
9461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9462 _ACEOF
9463
9464 fi
9465
9466 done
9467
9468 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9469 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
9470 result=
9471 cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h. */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9477
9478 #include <limits.h>
9479 #if HAVE_STDINT_H
9480 #include <stdint.h>
9481 #endif
9482 #ifdef SIZE_MAX
9483 Found it
9484 #endif
9485
9486 _ACEOF
9487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9488 $EGREP "Found it" >/dev/null 2>&1; then
9489 result=yes
9490 fi
9491 rm -f conftest*
9492
9493 if test -z "$result"; then
9494 if test "$cross_compiling" = yes; then
9495 # Depending upon the size, compute the lo and hi bounds.
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h. */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 #include <stddef.h>
9503 int
9504 main ()
9505 {
9506 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9507 test_array [0] = 0
9508
9509 ;
9510 return 0;
9511 }
9512 _ACEOF
9513 rm -f conftest.$ac_objext
9514 if { (ac_try="$ac_compile"
9515 case "(($ac_try" in
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9518 esac
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520 (eval "$ac_compile") 2>conftest.er1
9521 ac_status=$?
9522 grep -v '^ *+' conftest.er1 >conftest.err
9523 rm -f conftest.er1
9524 cat conftest.err >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && {
9527 test -z "$ac_c_werror_flag" ||
9528 test ! -s conftest.err
9529 } && test -s conftest.$ac_objext; then
9530 ac_lo=0 ac_mid=0
9531 while :; do
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h. */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 #include <stddef.h>
9539 int
9540 main ()
9541 {
9542 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9543 test_array [0] = 0
9544
9545 ;
9546 return 0;
9547 }
9548 _ACEOF
9549 rm -f conftest.$ac_objext
9550 if { (ac_try="$ac_compile"
9551 case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_compile") 2>conftest.er1
9557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } && {
9563 test -z "$ac_c_werror_flag" ||
9564 test ! -s conftest.err
9565 } && test -s conftest.$ac_objext; then
9566 ac_hi=$ac_mid; break
9567 else
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9570
9571 ac_lo=`expr $ac_mid + 1`
9572 if test $ac_lo -le $ac_mid; then
9573 ac_lo= ac_hi=
9574 break
9575 fi
9576 ac_mid=`expr 2 '*' $ac_mid + 1`
9577 fi
9578
9579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580 done
9581 else
9582 echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9584
9585 cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h. */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9591 #include <stddef.h>
9592 int
9593 main ()
9594 {
9595 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9596 test_array [0] = 0
9597
9598 ;
9599 return 0;
9600 }
9601 _ACEOF
9602 rm -f conftest.$ac_objext
9603 if { (ac_try="$ac_compile"
9604 case "(($ac_try" in
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9607 esac
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_compile") 2>conftest.er1
9610 ac_status=$?
9611 grep -v '^ *+' conftest.er1 >conftest.err
9612 rm -f conftest.er1
9613 cat conftest.err >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } && {
9616 test -z "$ac_c_werror_flag" ||
9617 test ! -s conftest.err
9618 } && test -s conftest.$ac_objext; then
9619 ac_hi=-1 ac_mid=-1
9620 while :; do
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 #include <stddef.h>
9628 int
9629 main ()
9630 {
9631 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9632 test_array [0] = 0
9633
9634 ;
9635 return 0;
9636 }
9637 _ACEOF
9638 rm -f conftest.$ac_objext
9639 if { (ac_try="$ac_compile"
9640 case "(($ac_try" in
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9643 esac
9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_compile") 2>conftest.er1
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && {
9652 test -z "$ac_c_werror_flag" ||
9653 test ! -s conftest.err
9654 } && test -s conftest.$ac_objext; then
9655 ac_lo=$ac_mid; break
9656 else
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9659
9660 ac_hi=`expr '(' $ac_mid ')' - 1`
9661 if test $ac_mid -le $ac_hi; then
9662 ac_lo= ac_hi=
9663 break
9664 fi
9665 ac_mid=`expr 2 '*' $ac_mid`
9666 fi
9667
9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9669 done
9670 else
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9673
9674 ac_lo= ac_hi=
9675 fi
9676
9677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9678 fi
9679
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 # Binary search between lo and hi bounds.
9682 while test "x$ac_lo" != "x$ac_hi"; do
9683 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9684 cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h. */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 #include <stddef.h>
9691 int
9692 main ()
9693 {
9694 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9695 test_array [0] = 0
9696
9697 ;
9698 return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext
9702 if { (ac_try="$ac_compile"
9703 case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9706 esac
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_compile") 2>conftest.er1
9709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } && {
9715 test -z "$ac_c_werror_flag" ||
9716 test ! -s conftest.err
9717 } && test -s conftest.$ac_objext; then
9718 ac_hi=$ac_mid
9719 else
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9722
9723 ac_lo=`expr '(' $ac_mid ')' + 1`
9724 fi
9725
9726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727 done
9728 case $ac_lo in
9729 ?*) res_hi=$ac_lo;;
9730 '') result=? ;;
9731 esac
9732 else
9733 cat >conftest.$ac_ext <<_ACEOF
9734 /* confdefs.h. */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739 #include <stddef.h>
9740 static long int longval () { return ~(size_t)0 / 10; }
9741 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
9742 #include <stdio.h>
9743 #include <stdlib.h>
9744 int
9745 main ()
9746 {
9747
9748 FILE *f = fopen ("conftest.val", "w");
9749 if (! f)
9750 return 1;
9751 if ((~(size_t)0 / 10) < 0)
9752 {
9753 long int i = longval ();
9754 if (i != (~(size_t)0 / 10))
9755 return 1;
9756 fprintf (f, "%ld\n", i);
9757 }
9758 else
9759 {
9760 unsigned long int i = ulongval ();
9761 if (i != (~(size_t)0 / 10))
9762 return 1;
9763 fprintf (f, "%lu\n", i);
9764 }
9765 return ferror (f) || fclose (f) != 0;
9766
9767 ;
9768 return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest$ac_exeext
9772 if { (ac_try="$ac_link"
9773 case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_link") 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9782 { (case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_try") 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9791 res_hi=`cat conftest.val`
9792 else
9793 echo "$as_me: program exited with status $ac_status" >&5
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9796
9797 ( exit $ac_status )
9798 result=?
9799 fi
9800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9801 fi
9802 rm -f conftest.val
9803
9804 if test "$cross_compiling" = yes; then
9805 # Depending upon the size, compute the lo and hi bounds.
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h. */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 #include <stddef.h>
9813 int
9814 main ()
9815 {
9816 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9817 test_array [0] = 0
9818
9819 ;
9820 return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext
9824 if { (ac_try="$ac_compile"
9825 case "(($ac_try" in
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9828 esac
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_compile") 2>conftest.er1
9831 ac_status=$?
9832 grep -v '^ *+' conftest.er1 >conftest.err
9833 rm -f conftest.er1
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } && {
9837 test -z "$ac_c_werror_flag" ||
9838 test ! -s conftest.err
9839 } && test -s conftest.$ac_objext; then
9840 ac_lo=0 ac_mid=0
9841 while :; do
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h. */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 #include <stddef.h>
9849 int
9850 main ()
9851 {
9852 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9853 test_array [0] = 0
9854
9855 ;
9856 return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest.$ac_objext
9860 if { (ac_try="$ac_compile"
9861 case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_compile") 2>conftest.er1
9867 ac_status=$?
9868 grep -v '^ *+' conftest.er1 >conftest.err
9869 rm -f conftest.er1
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } && {
9873 test -z "$ac_c_werror_flag" ||
9874 test ! -s conftest.err
9875 } && test -s conftest.$ac_objext; then
9876 ac_hi=$ac_mid; break
9877 else
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 ac_lo=`expr $ac_mid + 1`
9882 if test $ac_lo -le $ac_mid; then
9883 ac_lo= ac_hi=
9884 break
9885 fi
9886 ac_mid=`expr 2 '*' $ac_mid + 1`
9887 fi
9888
9889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890 done
9891 else
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9894
9895 cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h. */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9901 #include <stddef.h>
9902 int
9903 main ()
9904 {
9905 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9906 test_array [0] = 0
9907
9908 ;
9909 return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext
9913 if { (ac_try="$ac_compile"
9914 case "(($ac_try" in
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9917 esac
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_compile") 2>conftest.er1
9920 ac_status=$?
9921 grep -v '^ *+' conftest.er1 >conftest.err
9922 rm -f conftest.er1
9923 cat conftest.err >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } && {
9926 test -z "$ac_c_werror_flag" ||
9927 test ! -s conftest.err
9928 } && test -s conftest.$ac_objext; then
9929 ac_hi=-1 ac_mid=-1
9930 while :; do
9931 cat >conftest.$ac_ext <<_ACEOF
9932 /* confdefs.h. */
9933 _ACEOF
9934 cat confdefs.h >>conftest.$ac_ext
9935 cat >>conftest.$ac_ext <<_ACEOF
9936 /* end confdefs.h. */
9937 #include <stddef.h>
9938 int
9939 main ()
9940 {
9941 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9942 test_array [0] = 0
9943
9944 ;
9945 return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext
9949 if { (ac_try="$ac_compile"
9950 case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_compile") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest.$ac_objext; then
9965 ac_lo=$ac_mid; break
9966 else
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9969
9970 ac_hi=`expr '(' $ac_mid ')' - 1`
9971 if test $ac_mid -le $ac_hi; then
9972 ac_lo= ac_hi=
9973 break
9974 fi
9975 ac_mid=`expr 2 '*' $ac_mid`
9976 fi
9977
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 done
9980 else
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 ac_lo= ac_hi=
9985 fi
9986
9987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9988 fi
9989
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991 # Binary search between lo and hi bounds.
9992 while test "x$ac_lo" != "x$ac_hi"; do
9993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h. */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 #include <stddef.h>
10001 int
10002 main ()
10003 {
10004 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10005 test_array [0] = 0
10006
10007 ;
10008 return 0;
10009 }
10010 _ACEOF
10011 rm -f conftest.$ac_objext
10012 if { (ac_try="$ac_compile"
10013 case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10016 esac
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_compile") 2>conftest.er1
10019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && {
10025 test -z "$ac_c_werror_flag" ||
10026 test ! -s conftest.err
10027 } && test -s conftest.$ac_objext; then
10028 ac_hi=$ac_mid
10029 else
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10032
10033 ac_lo=`expr '(' $ac_mid ')' + 1`
10034 fi
10035
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10037 done
10038 case $ac_lo in
10039 ?*) res_lo=$ac_lo;;
10040 '') result=? ;;
10041 esac
10042 else
10043 cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h. */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 #include <stddef.h>
10050 static long int longval () { return ~(size_t)0 % 10; }
10051 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10052 #include <stdio.h>
10053 #include <stdlib.h>
10054 int
10055 main ()
10056 {
10057
10058 FILE *f = fopen ("conftest.val", "w");
10059 if (! f)
10060 return 1;
10061 if ((~(size_t)0 % 10) < 0)
10062 {
10063 long int i = longval ();
10064 if (i != (~(size_t)0 % 10))
10065 return 1;
10066 fprintf (f, "%ld\n", i);
10067 }
10068 else
10069 {
10070 unsigned long int i = ulongval ();
10071 if (i != (~(size_t)0 % 10))
10072 return 1;
10073 fprintf (f, "%lu\n", i);
10074 }
10075 return ferror (f) || fclose (f) != 0;
10076
10077 ;
10078 return 0;
10079 }
10080 _ACEOF
10081 rm -f conftest$ac_exeext
10082 if { (ac_try="$ac_link"
10083 case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10086 esac
10087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088 (eval "$ac_link") 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10092 { (case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10095 esac
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_try") 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 res_lo=`cat conftest.val`
10102 else
10103 echo "$as_me: program exited with status $ac_status" >&5
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107 ( exit $ac_status )
10108 result=?
10109 fi
10110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10111 fi
10112 rm -f conftest.val
10113
10114 if test "$cross_compiling" = yes; then
10115 # Depending upon the size, compute the lo and hi bounds.
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h. */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 #include <stddef.h>
10123 int
10124 main ()
10125 {
10126 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10127 test_array [0] = 0
10128
10129 ;
10130 return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest.$ac_objext
10134 if { (ac_try="$ac_compile"
10135 case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_compile") 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_c_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest.$ac_objext; then
10150 ac_lo=0 ac_mid=0
10151 while :; do
10152 cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h. */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 #include <stddef.h>
10159 int
10160 main ()
10161 {
10162 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10163 test_array [0] = 0
10164
10165 ;
10166 return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (ac_try="$ac_compile"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
10186 ac_hi=$ac_mid; break
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191 ac_lo=`expr $ac_mid + 1`
10192 if test $ac_lo -le $ac_mid; then
10193 ac_lo= ac_hi=
10194 break
10195 fi
10196 ac_mid=`expr 2 '*' $ac_mid + 1`
10197 fi
10198
10199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10200 done
10201 else
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10204
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 #include <stddef.h>
10212 int
10213 main ()
10214 {
10215 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10216 test_array [0] = 0
10217
10218 ;
10219 return 0;
10220 }
10221 _ACEOF
10222 rm -f conftest.$ac_objext
10223 if { (ac_try="$ac_compile"
10224 case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10227 esac
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_compile") 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && {
10236 test -z "$ac_c_werror_flag" ||
10237 test ! -s conftest.err
10238 } && test -s conftest.$ac_objext; then
10239 ac_hi=-1 ac_mid=-1
10240 while :; do
10241 cat >conftest.$ac_ext <<_ACEOF
10242 /* confdefs.h. */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10247 #include <stddef.h>
10248 int
10249 main ()
10250 {
10251 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10252 test_array [0] = 0
10253
10254 ;
10255 return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext
10259 if { (ac_try="$ac_compile"
10260 case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_compile") 2>conftest.er1
10266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && {
10272 test -z "$ac_c_werror_flag" ||
10273 test ! -s conftest.err
10274 } && test -s conftest.$ac_objext; then
10275 ac_lo=$ac_mid; break
10276 else
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10279
10280 ac_hi=`expr '(' $ac_mid ')' - 1`
10281 if test $ac_mid -le $ac_hi; then
10282 ac_lo= ac_hi=
10283 break
10284 fi
10285 ac_mid=`expr 2 '*' $ac_mid`
10286 fi
10287
10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289 done
10290 else
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10293
10294 ac_lo= ac_hi=
10295 fi
10296
10297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 fi
10299
10300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301 # Binary search between lo and hi bounds.
10302 while test "x$ac_lo" != "x$ac_hi"; do
10303 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h. */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 #include <stddef.h>
10311 int
10312 main ()
10313 {
10314 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10315 test_array [0] = 0
10316
10317 ;
10318 return 0;
10319 }
10320 _ACEOF
10321 rm -f conftest.$ac_objext
10322 if { (ac_try="$ac_compile"
10323 case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10326 esac
10327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328 (eval "$ac_compile") 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } && {
10335 test -z "$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10337 } && test -s conftest.$ac_objext; then
10338 ac_hi=$ac_mid
10339 else
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10342
10343 ac_lo=`expr '(' $ac_mid ')' + 1`
10344 fi
10345
10346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347 done
10348 case $ac_lo in
10349 ?*) fits_in_uint=$ac_lo;;
10350 '') result=? ;;
10351 esac
10352 else
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 #include <stddef.h>
10360 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10361 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10362 #include <stdio.h>
10363 #include <stdlib.h>
10364 int
10365 main ()
10366 {
10367
10368 FILE *f = fopen ("conftest.val", "w");
10369 if (! f)
10370 return 1;
10371 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10372 {
10373 long int i = longval ();
10374 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10375 return 1;
10376 fprintf (f, "%ld\n", i);
10377 }
10378 else
10379 {
10380 unsigned long int i = ulongval ();
10381 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10382 return 1;
10383 fprintf (f, "%lu\n", i);
10384 }
10385 return ferror (f) || fclose (f) != 0;
10386
10387 ;
10388 return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_link") 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10402 { (case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405 esac
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_try") 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10411 fits_in_uint=`cat conftest.val`
10412 else
10413 echo "$as_me: program exited with status $ac_status" >&5
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10416
10417 ( exit $ac_status )
10418 result=?
10419 fi
10420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10421 fi
10422 rm -f conftest.val
10423
10424 if test "$fits_in_uint" = 1; then
10425 cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h. */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 #include <stddef.h>
10432 extern size_t foo;
10433 extern unsigned long foo;
10434
10435 int
10436 main ()
10437 {
10438
10439 ;
10440 return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext
10444 if { (ac_try="$ac_compile"
10445 case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_compile") 2>conftest.er1
10451 ac_status=$?
10452 grep -v '^ *+' conftest.er1 >conftest.err
10453 rm -f conftest.er1
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && {
10457 test -z "$ac_c_werror_flag" ||
10458 test ! -s conftest.err
10459 } && test -s conftest.$ac_objext; then
10460 fits_in_uint=0
10461 else
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10464
10465
10466 fi
10467
10468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469 fi
10470 if test -z "$result"; then
10471 if test "$fits_in_uint" = 1; then
10472 result="$res_hi$res_lo"U
10473 else
10474 result="$res_hi$res_lo"UL
10475 fi
10476 else
10477 result='~(size_t)0'
10478 fi
10479 fi
10480 { echo "$as_me:$LINENO: result: $result" >&5
10481 echo "${ECHO_T}$result" >&6; }
10482 if test "$result" != yes; then
10483
10484 cat >>confdefs.h <<_ACEOF
10485 #define SIZE_MAX $result
10486 _ACEOF
10487
10488 fi
10489
10490
10491
10492
10493 for ac_header in stdint.h
10494 do
10495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 fi
10502 ac_res=`eval echo '${'$as_ac_Header'}'`
10503 { echo "$as_me:$LINENO: result: $ac_res" >&5
10504 echo "${ECHO_T}$ac_res" >&6; }
10505 else
10506 # Is the header compilable?
10507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10509 cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h. */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 $ac_includes_default
10516 #include <$ac_header>
10517 _ACEOF
10518 rm -f conftest.$ac_objext
10519 if { (ac_try="$ac_compile"
10520 case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_compile") 2>conftest.er1
10526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && {
10532 test -z "$ac_c_werror_flag" ||
10533 test ! -s conftest.err
10534 } && test -s conftest.$ac_objext; then
10535 ac_header_compiler=yes
10536 else
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540 ac_header_compiler=no
10541 fi
10542
10543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10545 echo "${ECHO_T}$ac_header_compiler" >&6; }
10546
10547 # Is the header present?
10548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10550 cat >conftest.$ac_ext <<_ACEOF
10551 /* confdefs.h. */
10552 _ACEOF
10553 cat confdefs.h >>conftest.$ac_ext
10554 cat >>conftest.$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10556 #include <$ac_header>
10557 _ACEOF
10558 if { (ac_try="$ac_cpp conftest.$ac_ext"
10559 case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10562 esac
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10565 ac_status=$?
10566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } >/dev/null && {
10571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10572 test ! -s conftest.err
10573 }; then
10574 ac_header_preproc=yes
10575 else
10576 echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10578
10579 ac_header_preproc=no
10580 fi
10581
10582 rm -f conftest.err conftest.$ac_ext
10583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10584 echo "${ECHO_T}$ac_header_preproc" >&6; }
10585
10586 # So? What about this header?
10587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10588 yes:no: )
10589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10593 ac_header_preproc=yes
10594 ;;
10595 no:yes:* )
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10608 ( cat <<\_ASBOX
10609 ## --------------------------------------- ##
10610 ## Report this to [email protected] ##
10611 ## --------------------------------------- ##
10612 _ASBOX
10613 ) | sed "s/^/$as_me: WARNING: /" >&2
10614 ;;
10615 esac
10616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10620 else
10621 eval "$as_ac_Header=\$ac_header_preproc"
10622 fi
10623 ac_res=`eval echo '${'$as_ac_Header'}'`
10624 { echo "$as_me:$LINENO: result: $ac_res" >&5
10625 echo "${ECHO_T}$ac_res" >&6; }
10626
10627 fi
10628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10629 cat >>confdefs.h <<_ACEOF
10630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10631 _ACEOF
10632
10633 fi
10634
10635 done
10636
10637
10638
10639 if test "X$prefix" = "XNONE"; then
10640 acl_final_prefix="$ac_default_prefix"
10641 else
10642 acl_final_prefix="$prefix"
10643 fi
10644 if test "X$exec_prefix" = "XNONE"; then
10645 acl_final_exec_prefix='${prefix}'
10646 else
10647 acl_final_exec_prefix="$exec_prefix"
10648 fi
10649 acl_save_prefix="$prefix"
10650 prefix="$acl_final_prefix"
10651 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10652 prefix="$acl_save_prefix"
10653
10654
10655 # Check whether --with-gnu-ld was given.
10656 if test "${with_gnu_ld+set}" = set; then
10657 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10658 else
10659 with_gnu_ld=no
10660 fi
10661
10662 # Prepare PATH_SEPARATOR.
10663 # The user is always right.
10664 if test "${PATH_SEPARATOR+set}" != set; then
10665 echo "#! /bin/sh" >conf$$.sh
10666 echo "exit 0" >>conf$$.sh
10667 chmod +x conf$$.sh
10668 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10669 PATH_SEPARATOR=';'
10670 else
10671 PATH_SEPARATOR=:
10672 fi
10673 rm -f conf$$.sh
10674 fi
10675 ac_prog=ld
10676 if test "$GCC" = yes; then
10677 # Check if gcc -print-prog-name=ld gives a path.
10678 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10679 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
10680 case $host in
10681 *-*-mingw*)
10682 # gcc leaves a trailing carriage return which upsets mingw
10683 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10684 *)
10685 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10686 esac
10687 case $ac_prog in
10688 # Accept absolute paths.
10689 [\\/]* | [A-Za-z]:[\\/]*)
10690 re_direlt='/[^/][^/]*/\.\./'
10691 # Canonicalize the path of ld
10692 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10693 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10694 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10695 done
10696 test -z "$LD" && LD="$ac_prog"
10697 ;;
10698 "")
10699 # If it fails, then pretend we aren't using GCC.
10700 ac_prog=ld
10701 ;;
10702 *)
10703 # If it is relative, then search for the first ld in PATH.
10704 with_gnu_ld=unknown
10705 ;;
10706 esac
10707 elif test "$with_gnu_ld" = yes; then
10708 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10709 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10710 else
10711 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10712 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10713 fi
10714 if test "${acl_cv_path_LD+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 else
10717 if test -z "$LD"; then
10718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10719 for ac_dir in $PATH; do
10720 test -z "$ac_dir" && ac_dir=.
10721 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10722 acl_cv_path_LD="$ac_dir/$ac_prog"
10723 # Check to see if the program is GNU ld. I'd rather use --version,
10724 # but apparently some GNU ld's only accept -v.
10725 # Break only if it was the GNU/non-GNU ld that we prefer.
10726 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10727 *GNU* | *'with BFD'*)
10728 test "$with_gnu_ld" != no && break ;;
10729 *)
10730 test "$with_gnu_ld" != yes && break ;;
10731 esac
10732 fi
10733 done
10734 IFS="$ac_save_ifs"
10735 else
10736 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10737 fi
10738 fi
10739
10740 LD="$acl_cv_path_LD"
10741 if test -n "$LD"; then
10742 { echo "$as_me:$LINENO: result: $LD" >&5
10743 echo "${ECHO_T}$LD" >&6; }
10744 else
10745 { echo "$as_me:$LINENO: result: no" >&5
10746 echo "${ECHO_T}no" >&6; }
10747 fi
10748 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10749 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10750 { (exit 1); exit 1; }; }
10751 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10752 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10753 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10757 case `$LD -v 2>&1 </dev/null` in
10758 *GNU* | *'with BFD'*)
10759 acl_cv_prog_gnu_ld=yes ;;
10760 *)
10761 acl_cv_prog_gnu_ld=no ;;
10762 esac
10763 fi
10764 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10765 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
10766 with_gnu_ld=$acl_cv_prog_gnu_ld
10767
10768
10769
10770 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10771 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
10772 if test "${acl_cv_rpath+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775
10776 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10777 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10778 . ./conftest.sh
10779 rm -f ./conftest.sh
10780 acl_cv_rpath=done
10781
10782 fi
10783 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10784 echo "${ECHO_T}$acl_cv_rpath" >&6; }
10785 wl="$acl_cv_wl"
10786 libext="$acl_cv_libext"
10787 shlibext="$acl_cv_shlibext"
10788 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10789 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10790 hardcode_direct="$acl_cv_hardcode_direct"
10791 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10792 # Check whether --enable-rpath was given.
10793 if test "${enable_rpath+set}" = set; then
10794 enableval=$enable_rpath; :
10795 else
10796 enable_rpath=yes
10797 fi
10798
10799
10800
10801
10802
10803
10804
10805
10806 use_additional=yes
10807
10808 acl_save_prefix="$prefix"
10809 prefix="$acl_final_prefix"
10810 acl_save_exec_prefix="$exec_prefix"
10811 exec_prefix="$acl_final_exec_prefix"
10812
10813 eval additional_includedir=\"$includedir\"
10814 eval additional_libdir=\"$libdir\"
10815
10816 exec_prefix="$acl_save_exec_prefix"
10817 prefix="$acl_save_prefix"
10818
10819
10820 # Check whether --with-libiconv-prefix was given.
10821 if test "${with_libiconv_prefix+set}" = set; then
10822 withval=$with_libiconv_prefix;
10823 if test "X$withval" = "Xno"; then
10824 use_additional=no
10825 else
10826 if test "X$withval" = "X"; then
10827
10828 acl_save_prefix="$prefix"
10829 prefix="$acl_final_prefix"
10830 acl_save_exec_prefix="$exec_prefix"
10831 exec_prefix="$acl_final_exec_prefix"
10832
10833 eval additional_includedir=\"$includedir\"
10834 eval additional_libdir=\"$libdir\"
10835
10836 exec_prefix="$acl_save_exec_prefix"
10837 prefix="$acl_save_prefix"
10838
10839 else
10840 additional_includedir="$withval/include"
10841 additional_libdir="$withval/lib"
10842 fi
10843 fi
10844
10845 fi
10846
10847 LIBICONV=
10848 LTLIBICONV=
10849 INCICONV=
10850 rpathdirs=
10851 ltrpathdirs=
10852 names_already_handled=
10853 names_next_round='iconv '
10854 while test -n "$names_next_round"; do
10855 names_this_round="$names_next_round"
10856 names_next_round=
10857 for name in $names_this_round; do
10858 already_handled=
10859 for n in $names_already_handled; do
10860 if test "$n" = "$name"; then
10861 already_handled=yes
10862 break
10863 fi
10864 done
10865 if test -z "$already_handled"; then
10866 names_already_handled="$names_already_handled $name"
10867 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10868 eval value=\"\$HAVE_LIB$uppername\"
10869 if test -n "$value"; then
10870 if test "$value" = yes; then
10871 eval value=\"\$LIB$uppername\"
10872 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10873 eval value=\"\$LTLIB$uppername\"
10874 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10875 else
10876 :
10877 fi
10878 else
10879 found_dir=
10880 found_la=
10881 found_so=
10882 found_a=
10883 if test $use_additional = yes; then
10884 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10885 found_dir="$additional_libdir"
10886 found_so="$additional_libdir/lib$name.$shlibext"
10887 if test -f "$additional_libdir/lib$name.la"; then
10888 found_la="$additional_libdir/lib$name.la"
10889 fi
10890 else
10891 if test -f "$additional_libdir/lib$name.$libext"; then
10892 found_dir="$additional_libdir"
10893 found_a="$additional_libdir/lib$name.$libext"
10894 if test -f "$additional_libdir/lib$name.la"; then
10895 found_la="$additional_libdir/lib$name.la"
10896 fi
10897 fi
10898 fi
10899 fi
10900 if test "X$found_dir" = "X"; then
10901 for x in $LDFLAGS $LTLIBICONV; do
10902
10903 acl_save_prefix="$prefix"
10904 prefix="$acl_final_prefix"
10905 acl_save_exec_prefix="$exec_prefix"
10906 exec_prefix="$acl_final_exec_prefix"
10907 eval x=\"$x\"
10908 exec_prefix="$acl_save_exec_prefix"
10909 prefix="$acl_save_prefix"
10910
10911 case "$x" in
10912 -L*)
10913 dir=`echo "X$x" | sed -e 's/^X-L//'`
10914 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10915 found_dir="$dir"
10916 found_so="$dir/lib$name.$shlibext"
10917 if test -f "$dir/lib$name.la"; then
10918 found_la="$dir/lib$name.la"
10919 fi
10920 else
10921 if test -f "$dir/lib$name.$libext"; then
10922 found_dir="$dir"
10923 found_a="$dir/lib$name.$libext"
10924 if test -f "$dir/lib$name.la"; then
10925 found_la="$dir/lib$name.la"
10926 fi
10927 fi
10928 fi
10929 ;;
10930 esac
10931 if test "X$found_dir" != "X"; then
10932 break
10933 fi
10934 done
10935 fi
10936 if test "X$found_dir" != "X"; then
10937 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10938 if test "X$found_so" != "X"; then
10939 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10940 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10941 else
10942 haveit=
10943 for x in $ltrpathdirs; do
10944 if test "X$x" = "X$found_dir"; then
10945 haveit=yes
10946 break
10947 fi
10948 done
10949 if test -z "$haveit"; then
10950 ltrpathdirs="$ltrpathdirs $found_dir"
10951 fi
10952 if test "$hardcode_direct" = yes; then
10953 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10954 else
10955 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10956 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10957 haveit=
10958 for x in $rpathdirs; do
10959 if test "X$x" = "X$found_dir"; then
10960 haveit=yes
10961 break
10962 fi
10963 done
10964 if test -z "$haveit"; then
10965 rpathdirs="$rpathdirs $found_dir"
10966 fi
10967 else
10968 haveit=
10969 for x in $LDFLAGS $LIBICONV; do
10970
10971 acl_save_prefix="$prefix"
10972 prefix="$acl_final_prefix"
10973 acl_save_exec_prefix="$exec_prefix"
10974 exec_prefix="$acl_final_exec_prefix"
10975 eval x=\"$x\"
10976 exec_prefix="$acl_save_exec_prefix"
10977 prefix="$acl_save_prefix"
10978
10979 if test "X$x" = "X-L$found_dir"; then
10980 haveit=yes
10981 break
10982 fi
10983 done
10984 if test -z "$haveit"; then
10985 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10986 fi
10987 if test "$hardcode_minus_L" != no; then
10988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10989 else
10990 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10991 fi
10992 fi
10993 fi
10994 fi
10995 else
10996 if test "X$found_a" != "X"; then
10997 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10998 else
10999 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11000 fi
11001 fi
11002 additional_includedir=
11003 case "$found_dir" in
11004 */lib | */lib/)
11005 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11006 additional_includedir="$basedir/include"
11007 ;;
11008 esac
11009 if test "X$additional_includedir" != "X"; then
11010 if test "X$additional_includedir" != "X/usr/include"; then
11011 haveit=
11012 if test "X$additional_includedir" = "X/usr/local/include"; then
11013 if test -n "$GCC"; then
11014 case $host_os in
11015 linux*) haveit=yes;;
11016 esac
11017 fi
11018 fi
11019 if test -z "$haveit"; then
11020 for x in $CPPFLAGS $INCICONV; do
11021
11022 acl_save_prefix="$prefix"
11023 prefix="$acl_final_prefix"
11024 acl_save_exec_prefix="$exec_prefix"
11025 exec_prefix="$acl_final_exec_prefix"
11026 eval x=\"$x\"
11027 exec_prefix="$acl_save_exec_prefix"
11028 prefix="$acl_save_prefix"
11029
11030 if test "X$x" = "X-I$additional_includedir"; then
11031 haveit=yes
11032 break
11033 fi
11034 done
11035 if test -z "$haveit"; then
11036 if test -d "$additional_includedir"; then
11037 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11038 fi
11039 fi
11040 fi
11041 fi
11042 fi
11043 if test -n "$found_la"; then
11044 save_libdir="$libdir"
11045 case "$found_la" in
11046 */* | *\\*) . "$found_la" ;;
11047 *) . "./$found_la" ;;
11048 esac
11049 libdir="$save_libdir"
11050 for dep in $dependency_libs; do
11051 case "$dep" in
11052 -L*)
11053 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11054 if test "X$additional_libdir" != "X/usr/lib"; then
11055 haveit=
11056 if test "X$additional_libdir" = "X/usr/local/lib"; then
11057 if test -n "$GCC"; then
11058 case $host_os in
11059 linux*) haveit=yes;;
11060 esac
11061 fi
11062 fi
11063 if test -z "$haveit"; then
11064 haveit=
11065 for x in $LDFLAGS $LIBICONV; do
11066
11067 acl_save_prefix="$prefix"
11068 prefix="$acl_final_prefix"
11069 acl_save_exec_prefix="$exec_prefix"
11070 exec_prefix="$acl_final_exec_prefix"
11071 eval x=\"$x\"
11072 exec_prefix="$acl_save_exec_prefix"
11073 prefix="$acl_save_prefix"
11074
11075 if test "X$x" = "X-L$additional_libdir"; then
11076 haveit=yes
11077 break
11078 fi
11079 done
11080 if test -z "$haveit"; then
11081 if test -d "$additional_libdir"; then
11082 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11083 fi
11084 fi
11085 haveit=
11086 for x in $LDFLAGS $LTLIBICONV; do
11087
11088 acl_save_prefix="$prefix"
11089 prefix="$acl_final_prefix"
11090 acl_save_exec_prefix="$exec_prefix"
11091 exec_prefix="$acl_final_exec_prefix"
11092 eval x=\"$x\"
11093 exec_prefix="$acl_save_exec_prefix"
11094 prefix="$acl_save_prefix"
11095
11096 if test "X$x" = "X-L$additional_libdir"; then
11097 haveit=yes
11098 break
11099 fi
11100 done
11101 if test -z "$haveit"; then
11102 if test -d "$additional_libdir"; then
11103 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11104 fi
11105 fi
11106 fi
11107 fi
11108 ;;
11109 -R*)
11110 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11111 if test "$enable_rpath" != no; then
11112 haveit=
11113 for x in $rpathdirs; do
11114 if test "X$x" = "X$dir"; then
11115 haveit=yes
11116 break
11117 fi
11118 done
11119 if test -z "$haveit"; then
11120 rpathdirs="$rpathdirs $dir"
11121 fi
11122 haveit=
11123 for x in $ltrpathdirs; do
11124 if test "X$x" = "X$dir"; then
11125 haveit=yes
11126 break
11127 fi
11128 done
11129 if test -z "$haveit"; then
11130 ltrpathdirs="$ltrpathdirs $dir"
11131 fi
11132 fi
11133 ;;
11134 -l*)
11135 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11136 ;;
11137 *.la)
11138 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11139 ;;
11140 *)
11141 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11142 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11143 ;;
11144 esac
11145 done
11146 fi
11147 else
11148 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11149 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11150 fi
11151 fi
11152 fi
11153 done
11154 done
11155 if test "X$rpathdirs" != "X"; then
11156 if test -n "$hardcode_libdir_separator"; then
11157 alldirs=
11158 for found_dir in $rpathdirs; do
11159 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11160 done
11161 acl_save_libdir="$libdir"
11162 libdir="$alldirs"
11163 eval flag=\"$hardcode_libdir_flag_spec\"
11164 libdir="$acl_save_libdir"
11165 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11166 else
11167 for found_dir in $rpathdirs; do
11168 acl_save_libdir="$libdir"
11169 libdir="$found_dir"
11170 eval flag=\"$hardcode_libdir_flag_spec\"
11171 libdir="$acl_save_libdir"
11172 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11173 done
11174 fi
11175 fi
11176 if test "X$ltrpathdirs" != "X"; then
11177 for found_dir in $ltrpathdirs; do
11178 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11179 done
11180 fi
11181
11182
11183
11184
11185
11186
11187
11188
11189 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11190 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11191 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h. */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 $ac_includes_default
11201 typedef ptrdiff_t ac__type_new_;
11202 int
11203 main ()
11204 {
11205 if ((ac__type_new_ *) 0)
11206 return 0;
11207 if (sizeof (ac__type_new_))
11208 return 0;
11209 ;
11210 return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest.$ac_objext
11214 if { (ac_try="$ac_compile"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_compile") 2>conftest.er1
11221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } && {
11227 test -z "$ac_c_werror_flag" ||
11228 test ! -s conftest.err
11229 } && test -s conftest.$ac_objext; then
11230 ac_cv_type_ptrdiff_t=yes
11231 else
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235 ac_cv_type_ptrdiff_t=no
11236 fi
11237
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 fi
11240 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11241 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11242 if test $ac_cv_type_ptrdiff_t = yes; then
11243 :
11244 else
11245
11246 cat >>confdefs.h <<\_ACEOF
11247 #define ptrdiff_t long
11248 _ACEOF
11249
11250
11251 fi
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11264 stdlib.h string.h unistd.h sys/param.h
11265 do
11266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 fi
11273 ac_res=`eval echo '${'$as_ac_Header'}'`
11274 { echo "$as_me:$LINENO: result: $ac_res" >&5
11275 echo "${ECHO_T}$ac_res" >&6; }
11276 else
11277 # Is the header compilable?
11278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h. */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 $ac_includes_default
11287 #include <$ac_header>
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (ac_try="$ac_compile"
11291 case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_compile") 2>conftest.er1
11297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } && {
11303 test -z "$ac_c_werror_flag" ||
11304 test ! -s conftest.err
11305 } && test -s conftest.$ac_objext; then
11306 ac_header_compiler=yes
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11310
11311 ac_header_compiler=no
11312 fi
11313
11314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11316 echo "${ECHO_T}$ac_header_compiler" >&6; }
11317
11318 # Is the header present?
11319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h. */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 #include <$ac_header>
11328 _ACEOF
11329 if { (ac_try="$ac_cpp conftest.$ac_ext"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11336 ac_status=$?
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } >/dev/null && {
11342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11344 }; then
11345 ac_header_preproc=yes
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 ac_header_preproc=no
11351 fi
11352
11353 rm -f conftest.err conftest.$ac_ext
11354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11355 echo "${ECHO_T}$ac_header_preproc" >&6; }
11356
11357 # So? What about this header?
11358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11359 yes:no: )
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11364 ac_header_preproc=yes
11365 ;;
11366 no:yes:* )
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11379 ( cat <<\_ASBOX
11380 ## --------------------------------------- ##
11381 ## Report this to [email protected] ##
11382 ## --------------------------------------- ##
11383 _ASBOX
11384 ) | sed "s/^/$as_me: WARNING: /" >&2
11385 ;;
11386 esac
11387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 else
11392 eval "$as_ac_Header=\$ac_header_preproc"
11393 fi
11394 ac_res=`eval echo '${'$as_ac_Header'}'`
11395 { echo "$as_me:$LINENO: result: $ac_res" >&5
11396 echo "${ECHO_T}$ac_res" >&6; }
11397
11398 fi
11399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11400 cat >>confdefs.h <<_ACEOF
11401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11402 _ACEOF
11403
11404 fi
11405
11406 done
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11432 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11433 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11434 __fsetlocking
11435 do
11436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442 cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h. */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11450 #define $ac_func innocuous_$ac_func
11451
11452 /* System header to define __stub macros and hopefully few prototypes,
11453 which can conflict with char $ac_func (); below.
11454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11455 <limits.h> exists even on freestanding compilers. */
11456
11457 #ifdef __STDC__
11458 # include <limits.h>
11459 #else
11460 # include <assert.h>
11461 #endif
11462
11463 #undef $ac_func
11464
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 char $ac_func ();
11472 /* The GNU C library defines this for functions which it implements
11473 to always fail with ENOSYS. Some functions are actually named
11474 something starting with __ and the normal name is an alias. */
11475 #if defined __stub_$ac_func || defined __stub___$ac_func
11476 choke me
11477 #endif
11478
11479 int
11480 main ()
11481 {
11482 return $ac_func ();
11483 ;
11484 return 0;
11485 }
11486 _ACEOF
11487 rm -f conftest.$ac_objext conftest$ac_exeext
11488 if { (ac_try="$ac_link"
11489 case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_link") 2>conftest.er1
11495 ac_status=$?
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } && {
11501 test -z "$ac_c_werror_flag" ||
11502 test ! -s conftest.err
11503 } && test -s conftest$ac_exeext &&
11504 $as_test_x conftest$ac_exeext; then
11505 eval "$as_ac_var=yes"
11506 else
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11509
11510 eval "$as_ac_var=no"
11511 fi
11512
11513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11514 conftest$ac_exeext conftest.$ac_ext
11515 fi
11516 ac_res=`eval echo '${'$as_ac_var'}'`
11517 { echo "$as_me:$LINENO: result: $ac_res" >&5
11518 echo "${ECHO_T}$ac_res" >&6; }
11519 if test `eval echo '${'$as_ac_var'}'` = yes; then
11520 cat >>confdefs.h <<_ACEOF
11521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11522 _ACEOF
11523
11524 fi
11525 done
11526
11527
11528
11529 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11530 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11531 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534 cat >conftest.$ac_ext <<_ACEOF
11535 /* confdefs.h. */
11536 _ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11540 #include <stdio.h>
11541 int
11542 main ()
11543 {
11544
11545 #ifndef _snprintf
11546 char *p = (char *) _snprintf;
11547 #endif
11548
11549 ;
11550 return 0;
11551 }
11552 _ACEOF
11553 rm -f conftest.$ac_objext
11554 if { (ac_try="$ac_compile"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_compile") 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } && {
11567 test -z "$ac_c_werror_flag" ||
11568 test ! -s conftest.err
11569 } && test -s conftest.$ac_objext; then
11570 ac_cv_have_decl__snprintf=yes
11571 else
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575 ac_cv_have_decl__snprintf=no
11576 fi
11577
11578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579 fi
11580 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11581 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11582 if test $ac_cv_have_decl__snprintf = yes; then
11583 gt_value=1
11584 else
11585 gt_value=0
11586 fi
11587
11588 cat >>confdefs.h <<_ACEOF
11589 #define HAVE_DECL__SNPRINTF $gt_value
11590 _ACEOF
11591
11592
11593
11594 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11595 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11596 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599 cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h. */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 #include <stdio.h>
11606 int
11607 main ()
11608 {
11609
11610 #ifndef _snwprintf
11611 char *p = (char *) _snwprintf;
11612 #endif
11613
11614 ;
11615 return 0;
11616 }
11617 _ACEOF
11618 rm -f conftest.$ac_objext
11619 if { (ac_try="$ac_compile"
11620 case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11623 esac
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_compile") 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && {
11632 test -z "$ac_c_werror_flag" ||
11633 test ! -s conftest.err
11634 } && test -s conftest.$ac_objext; then
11635 ac_cv_have_decl__snwprintf=yes
11636 else
11637 echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11639
11640 ac_cv_have_decl__snwprintf=no
11641 fi
11642
11643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11644 fi
11645 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11646 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11647 if test $ac_cv_have_decl__snwprintf = yes; then
11648 gt_value=1
11649 else
11650 gt_value=0
11651 fi
11652
11653 cat >>confdefs.h <<_ACEOF
11654 #define HAVE_DECL__SNWPRINTF $gt_value
11655 _ACEOF
11656
11657
11658
11659
11660 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11661 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11662 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665 cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h. */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <stdio.h>
11672 int
11673 main ()
11674 {
11675
11676 #ifndef feof_unlocked
11677 char *p = (char *) feof_unlocked;
11678 #endif
11679
11680 ;
11681 return 0;
11682 }
11683 _ACEOF
11684 rm -f conftest.$ac_objext
11685 if { (ac_try="$ac_compile"
11686 case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_compile") 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest.$ac_objext; then
11701 ac_cv_have_decl_feof_unlocked=yes
11702 else
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 ac_cv_have_decl_feof_unlocked=no
11707 fi
11708
11709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11710 fi
11711 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11712 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11713 if test $ac_cv_have_decl_feof_unlocked = yes; then
11714 gt_value=1
11715 else
11716 gt_value=0
11717 fi
11718
11719 cat >>confdefs.h <<_ACEOF
11720 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11721 _ACEOF
11722
11723
11724
11725 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11726 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11727 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730 cat >conftest.$ac_ext <<_ACEOF
11731 /* confdefs.h. */
11732 _ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 #include <stdio.h>
11737 int
11738 main ()
11739 {
11740
11741 #ifndef fgets_unlocked
11742 char *p = (char *) fgets_unlocked;
11743 #endif
11744
11745 ;
11746 return 0;
11747 }
11748 _ACEOF
11749 rm -f conftest.$ac_objext
11750 if { (ac_try="$ac_compile"
11751 case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11754 esac
11755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756 (eval "$ac_compile") 2>conftest.er1
11757 ac_status=$?
11758 grep -v '^ *+' conftest.er1 >conftest.err
11759 rm -f conftest.er1
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } && {
11763 test -z "$ac_c_werror_flag" ||
11764 test ! -s conftest.err
11765 } && test -s conftest.$ac_objext; then
11766 ac_cv_have_decl_fgets_unlocked=yes
11767 else
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 ac_cv_have_decl_fgets_unlocked=no
11772 fi
11773
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775 fi
11776 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11777 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11778 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11779 gt_value=1
11780 else
11781 gt_value=0
11782 fi
11783
11784 cat >>confdefs.h <<_ACEOF
11785 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11786 _ACEOF
11787
11788
11789
11790 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11791 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11792 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795 cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h. */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 #include <stdio.h>
11802 int
11803 main ()
11804 {
11805
11806 #ifndef getc_unlocked
11807 char *p = (char *) getc_unlocked;
11808 #endif
11809
11810 ;
11811 return 0;
11812 }
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (ac_try="$ac_compile"
11816 case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_compile") 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } && {
11828 test -z "$ac_c_werror_flag" ||
11829 test ! -s conftest.err
11830 } && test -s conftest.$ac_objext; then
11831 ac_cv_have_decl_getc_unlocked=yes
11832 else
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836 ac_cv_have_decl_getc_unlocked=no
11837 fi
11838
11839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11840 fi
11841 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11842 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
11843 if test $ac_cv_have_decl_getc_unlocked = yes; then
11844 gt_value=1
11845 else
11846 gt_value=0
11847 fi
11848
11849 cat >>confdefs.h <<_ACEOF
11850 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11851 _ACEOF
11852
11853
11854
11855 case $gt_cv_func_printf_posix in
11856 *yes) HAVE_POSIX_PRINTF=1 ;;
11857 *) HAVE_POSIX_PRINTF=0 ;;
11858 esac
11859
11860 if test "$ac_cv_func_asprintf" = yes; then
11861 HAVE_ASPRINTF=1
11862 else
11863 HAVE_ASPRINTF=0
11864 fi
11865
11866 if test "$ac_cv_func_snprintf" = yes; then
11867 HAVE_SNPRINTF=1
11868 else
11869 HAVE_SNPRINTF=0
11870 fi
11871
11872 if test "$ac_cv_func_wprintf" = yes; then
11873 HAVE_WPRINTF=1
11874 else
11875 HAVE_WPRINTF=0
11876 fi
11877
11878
11879
11880
11881
11882
11883
11884 am_save_CPPFLAGS="$CPPFLAGS"
11885
11886 for element in $INCICONV; do
11887 haveit=
11888 for x in $CPPFLAGS; do
11889
11890 acl_save_prefix="$prefix"
11891 prefix="$acl_final_prefix"
11892 acl_save_exec_prefix="$exec_prefix"
11893 exec_prefix="$acl_final_exec_prefix"
11894 eval x=\"$x\"
11895 exec_prefix="$acl_save_exec_prefix"
11896 prefix="$acl_save_prefix"
11897
11898 if test "X$x" = "X$element"; then
11899 haveit=yes
11900 break
11901 fi
11902 done
11903 if test -z "$haveit"; then
11904 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11905 fi
11906 done
11907
11908
11909 { echo "$as_me:$LINENO: checking for iconv" >&5
11910 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
11911 if test "${am_cv_func_iconv+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914
11915 am_cv_func_iconv="no, consider installing GNU libiconv"
11916 am_cv_lib_iconv=no
11917 cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h. */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 #include <stdlib.h>
11924 #include <iconv.h>
11925 int
11926 main ()
11927 {
11928 iconv_t cd = iconv_open("","");
11929 iconv(cd,NULL,NULL,NULL,NULL);
11930 iconv_close(cd);
11931 ;
11932 return 0;
11933 }
11934 _ACEOF
11935 rm -f conftest.$ac_objext conftest$ac_exeext
11936 if { (ac_try="$ac_link"
11937 case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940 esac
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_link") 2>conftest.er1
11943 ac_status=$?
11944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } && {
11949 test -z "$ac_c_werror_flag" ||
11950 test ! -s conftest.err
11951 } && test -s conftest$ac_exeext &&
11952 $as_test_x conftest$ac_exeext; then
11953 am_cv_func_iconv=yes
11954 else
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11957
11958
11959 fi
11960
11961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11962 conftest$ac_exeext conftest.$ac_ext
11963 if test "$am_cv_func_iconv" != yes; then
11964 am_save_LIBS="$LIBS"
11965 LIBS="$LIBS $LIBICONV"
11966 cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h. */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 #include <stdlib.h>
11973 #include <iconv.h>
11974 int
11975 main ()
11976 {
11977 iconv_t cd = iconv_open("","");
11978 iconv(cd,NULL,NULL,NULL,NULL);
11979 iconv_close(cd);
11980 ;
11981 return 0;
11982 }
11983 _ACEOF
11984 rm -f conftest.$ac_objext conftest$ac_exeext
11985 if { (ac_try="$ac_link"
11986 case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_link") 2>conftest.er1
11992 ac_status=$?
11993 grep -v '^ *+' conftest.er1 >conftest.err
11994 rm -f conftest.er1
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } && {
11998 test -z "$ac_c_werror_flag" ||
11999 test ! -s conftest.err
12000 } && test -s conftest$ac_exeext &&
12001 $as_test_x conftest$ac_exeext; then
12002 am_cv_lib_iconv=yes
12003 am_cv_func_iconv=yes
12004 else
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008
12009 fi
12010
12011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12012 conftest$ac_exeext conftest.$ac_ext
12013 LIBS="$am_save_LIBS"
12014 fi
12015
12016 fi
12017 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12018 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12019 if test "$am_cv_func_iconv" = yes; then
12020
12021 cat >>confdefs.h <<\_ACEOF
12022 #define HAVE_ICONV 1
12023 _ACEOF
12024
12025 fi
12026 if test "$am_cv_lib_iconv" = yes; then
12027 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12028 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12029 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12030 echo "${ECHO_T}$LIBICONV" >&6; }
12031 else
12032 CPPFLAGS="$am_save_CPPFLAGS"
12033 LIBICONV=
12034 LTLIBICONV=
12035 fi
12036
12037
12038
12039 if test "$am_cv_func_iconv" = yes; then
12040 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12041 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12042 if test "${am_cv_proto_iconv+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052
12053 #include <stdlib.h>
12054 #include <iconv.h>
12055 extern
12056 #ifdef __cplusplus
12057 "C"
12058 #endif
12059 #if defined(__STDC__) || defined(__cplusplus)
12060 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12061 #else
12062 size_t iconv();
12063 #endif
12064
12065 int
12066 main ()
12067 {
12068
12069 ;
12070 return 0;
12071 }
12072 _ACEOF
12073 rm -f conftest.$ac_objext
12074 if { (ac_try="$ac_compile"
12075 case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12078 esac
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_compile") 2>conftest.er1
12081 ac_status=$?
12082 grep -v '^ *+' conftest.er1 >conftest.err
12083 rm -f conftest.er1
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } && {
12087 test -z "$ac_c_werror_flag" ||
12088 test ! -s conftest.err
12089 } && test -s conftest.$ac_objext; then
12090 am_cv_proto_iconv_arg1=""
12091 else
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12094
12095 am_cv_proto_iconv_arg1="const"
12096 fi
12097
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12100 fi
12101
12102 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12103 { echo "$as_me:$LINENO: result: ${ac_t:-
12104 }$am_cv_proto_iconv" >&5
12105 echo "${ECHO_T}${ac_t:-
12106 }$am_cv_proto_iconv" >&6; }
12107
12108 cat >>confdefs.h <<_ACEOF
12109 #define ICONV_CONST $am_cv_proto_iconv_arg1
12110 _ACEOF
12111
12112 fi
12113
12114
12115 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12116 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12117 if test "${am_cv_langinfo_codeset+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120 cat >conftest.$ac_ext <<_ACEOF
12121 /* confdefs.h. */
12122 _ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h. */
12126 #include <langinfo.h>
12127 int
12128 main ()
12129 {
12130 char* cs = nl_langinfo(CODESET);
12131 ;
12132 return 0;
12133 }
12134 _ACEOF
12135 rm -f conftest.$ac_objext conftest$ac_exeext
12136 if { (ac_try="$ac_link"
12137 case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_link") 2>conftest.er1
12143 ac_status=$?
12144 grep -v '^ *+' conftest.er1 >conftest.err
12145 rm -f conftest.er1
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } && {
12149 test -z "$ac_c_werror_flag" ||
12150 test ! -s conftest.err
12151 } && test -s conftest$ac_exeext &&
12152 $as_test_x conftest$ac_exeext; then
12153 am_cv_langinfo_codeset=yes
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12157
12158 am_cv_langinfo_codeset=no
12159 fi
12160
12161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12162 conftest$ac_exeext conftest.$ac_ext
12163
12164 fi
12165 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12166 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12167 if test $am_cv_langinfo_codeset = yes; then
12168
12169 cat >>confdefs.h <<\_ACEOF
12170 #define HAVE_LANGINFO_CODESET 1
12171 _ACEOF
12172
12173 fi
12174
12175 if test $ac_cv_header_locale_h = yes; then
12176
12177 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12178 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12179 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h. */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 #include <locale.h>
12189 int
12190 main ()
12191 {
12192 return LC_MESSAGES
12193 ;
12194 return 0;
12195 }
12196 _ACEOF
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (ac_try="$ac_link"
12199 case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_link") 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } && {
12211 test -z "$ac_c_werror_flag" ||
12212 test ! -s conftest.err
12213 } && test -s conftest$ac_exeext &&
12214 $as_test_x conftest$ac_exeext; then
12215 am_cv_val_LC_MESSAGES=yes
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12219
12220 am_cv_val_LC_MESSAGES=no
12221 fi
12222
12223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12224 conftest$ac_exeext conftest.$ac_ext
12225 fi
12226 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12227 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
12228 if test $am_cv_val_LC_MESSAGES = yes; then
12229
12230 cat >>confdefs.h <<\_ACEOF
12231 #define HAVE_LC_MESSAGES 1
12232 _ACEOF
12233
12234 fi
12235
12236 fi
12237
12238 for ac_prog in bison
12239 do
12240 # Extract the first word of "$ac_prog", so it can be a program name with args.
12241 set dummy $ac_prog; ac_word=$2
12242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12244 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247 if test -n "$INTLBISON"; then
12248 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12249 else
12250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251 for as_dir in $PATH
12252 do
12253 IFS=$as_save_IFS
12254 test -z "$as_dir" && as_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12257 ac_cv_prog_INTLBISON="$ac_prog"
12258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 break 2
12260 fi
12261 done
12262 done
12263 IFS=$as_save_IFS
12264
12265 fi
12266 fi
12267 INTLBISON=$ac_cv_prog_INTLBISON
12268 if test -n "$INTLBISON"; then
12269 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12270 echo "${ECHO_T}$INTLBISON" >&6; }
12271 else
12272 { echo "$as_me:$LINENO: result: no" >&5
12273 echo "${ECHO_T}no" >&6; }
12274 fi
12275
12276
12277 test -n "$INTLBISON" && break
12278 done
12279
12280 if test -z "$INTLBISON"; then
12281 ac_verc_fail=yes
12282 else
12283 { echo "$as_me:$LINENO: checking version of bison" >&5
12284 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12285 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12286 case $ac_prog_version in
12287 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12288 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12289 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12290 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12291 esac
12292 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12293 echo "${ECHO_T}$ac_prog_version" >&6; }
12294 fi
12295 if test $ac_verc_fail = yes; then
12296 INTLBISON=:
12297 fi
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12315 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12316 # Check whether --enable-nls was given.
12317 if test "${enable_nls+set}" = set; then
12318 enableval=$enable_nls; USE_NLS=$enableval
12319 else
12320 USE_NLS=yes
12321 fi
12322
12323 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12324 echo "${ECHO_T}$USE_NLS" >&6; }
12325
12326
12327
12328
12329 BUILD_INCLUDED_LIBINTL=no
12330 USE_INCLUDED_LIBINTL=no
12331
12332 LIBINTL=
12333 LTLIBINTL=
12334 POSUB=
12335
12336 if test "$USE_NLS" = "yes"; then
12337 gt_use_preinstalled_gnugettext=no
12338
12339 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12340 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12341
12342 # Check whether --with-included-gettext was given.
12343 if test "${with_included_gettext+set}" = set; then
12344 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12345 else
12346 nls_cv_force_use_gnu_gettext=no
12347 fi
12348
12349 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12350 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12351
12352 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12353 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12354
12355
12356
12357
12358
12359
12360 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12361 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12362 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365 cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h. */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 #include <libintl.h>
12372 extern int _nl_msg_cat_cntr;
12373 extern int *_nl_domain_bindings;
12374 int
12375 main ()
12376 {
12377 bindtextdomain ("", "");
12378 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12379 ;
12380 return 0;
12381 }
12382 _ACEOF
12383 rm -f conftest.$ac_objext conftest$ac_exeext
12384 if { (ac_try="$ac_link"
12385 case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12388 esac
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_link") 2>conftest.er1
12391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } && {
12397 test -z "$ac_c_werror_flag" ||
12398 test ! -s conftest.err
12399 } && test -s conftest$ac_exeext &&
12400 $as_test_x conftest$ac_exeext; then
12401 gt_cv_func_gnugettext1_libc=yes
12402 else
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406 gt_cv_func_gnugettext1_libc=no
12407 fi
12408
12409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12410 conftest$ac_exeext conftest.$ac_ext
12411 fi
12412 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12413 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12414
12415 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12416
12417
12418
12419 use_additional=yes
12420
12421 acl_save_prefix="$prefix"
12422 prefix="$acl_final_prefix"
12423 acl_save_exec_prefix="$exec_prefix"
12424 exec_prefix="$acl_final_exec_prefix"
12425
12426 eval additional_includedir=\"$includedir\"
12427 eval additional_libdir=\"$libdir\"
12428
12429 exec_prefix="$acl_save_exec_prefix"
12430 prefix="$acl_save_prefix"
12431
12432
12433 # Check whether --with-libintl-prefix was given.
12434 if test "${with_libintl_prefix+set}" = set; then
12435 withval=$with_libintl_prefix;
12436 if test "X$withval" = "Xno"; then
12437 use_additional=no
12438 else
12439 if test "X$withval" = "X"; then
12440
12441 acl_save_prefix="$prefix"
12442 prefix="$acl_final_prefix"
12443 acl_save_exec_prefix="$exec_prefix"
12444 exec_prefix="$acl_final_exec_prefix"
12445
12446 eval additional_includedir=\"$includedir\"
12447 eval additional_libdir=\"$libdir\"
12448
12449 exec_prefix="$acl_save_exec_prefix"
12450 prefix="$acl_save_prefix"
12451
12452 else
12453 additional_includedir="$withval/include"
12454 additional_libdir="$withval/lib"
12455 fi
12456 fi
12457
12458 fi
12459
12460 LIBINTL=
12461 LTLIBINTL=
12462 INCINTL=
12463 rpathdirs=
12464 ltrpathdirs=
12465 names_already_handled=
12466 names_next_round='intl '
12467 while test -n "$names_next_round"; do
12468 names_this_round="$names_next_round"
12469 names_next_round=
12470 for name in $names_this_round; do
12471 already_handled=
12472 for n in $names_already_handled; do
12473 if test "$n" = "$name"; then
12474 already_handled=yes
12475 break
12476 fi
12477 done
12478 if test -z "$already_handled"; then
12479 names_already_handled="$names_already_handled $name"
12480 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12481 eval value=\"\$HAVE_LIB$uppername\"
12482 if test -n "$value"; then
12483 if test "$value" = yes; then
12484 eval value=\"\$LIB$uppername\"
12485 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12486 eval value=\"\$LTLIB$uppername\"
12487 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12488 else
12489 :
12490 fi
12491 else
12492 found_dir=
12493 found_la=
12494 found_so=
12495 found_a=
12496 if test $use_additional = yes; then
12497 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12498 found_dir="$additional_libdir"
12499 found_so="$additional_libdir/lib$name.$shlibext"
12500 if test -f "$additional_libdir/lib$name.la"; then
12501 found_la="$additional_libdir/lib$name.la"
12502 fi
12503 else
12504 if test -f "$additional_libdir/lib$name.$libext"; then
12505 found_dir="$additional_libdir"
12506 found_a="$additional_libdir/lib$name.$libext"
12507 if test -f "$additional_libdir/lib$name.la"; then
12508 found_la="$additional_libdir/lib$name.la"
12509 fi
12510 fi
12511 fi
12512 fi
12513 if test "X$found_dir" = "X"; then
12514 for x in $LDFLAGS $LTLIBINTL; do
12515
12516 acl_save_prefix="$prefix"
12517 prefix="$acl_final_prefix"
12518 acl_save_exec_prefix="$exec_prefix"
12519 exec_prefix="$acl_final_exec_prefix"
12520 eval x=\"$x\"
12521 exec_prefix="$acl_save_exec_prefix"
12522 prefix="$acl_save_prefix"
12523
12524 case "$x" in
12525 -L*)
12526 dir=`echo "X$x" | sed -e 's/^X-L//'`
12527 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12528 found_dir="$dir"
12529 found_so="$dir/lib$name.$shlibext"
12530 if test -f "$dir/lib$name.la"; then
12531 found_la="$dir/lib$name.la"
12532 fi
12533 else
12534 if test -f "$dir/lib$name.$libext"; then
12535 found_dir="$dir"
12536 found_a="$dir/lib$name.$libext"
12537 if test -f "$dir/lib$name.la"; then
12538 found_la="$dir/lib$name.la"
12539 fi
12540 fi
12541 fi
12542 ;;
12543 esac
12544 if test "X$found_dir" != "X"; then
12545 break
12546 fi
12547 done
12548 fi
12549 if test "X$found_dir" != "X"; then
12550 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12551 if test "X$found_so" != "X"; then
12552 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12553 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12554 else
12555 haveit=
12556 for x in $ltrpathdirs; do
12557 if test "X$x" = "X$found_dir"; then
12558 haveit=yes
12559 break
12560 fi
12561 done
12562 if test -z "$haveit"; then
12563 ltrpathdirs="$ltrpathdirs $found_dir"
12564 fi
12565 if test "$hardcode_direct" = yes; then
12566 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12567 else
12568 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12569 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12570 haveit=
12571 for x in $rpathdirs; do
12572 if test "X$x" = "X$found_dir"; then
12573 haveit=yes
12574 break
12575 fi
12576 done
12577 if test -z "$haveit"; then
12578 rpathdirs="$rpathdirs $found_dir"
12579 fi
12580 else
12581 haveit=
12582 for x in $LDFLAGS $LIBINTL; do
12583
12584 acl_save_prefix="$prefix"
12585 prefix="$acl_final_prefix"
12586 acl_save_exec_prefix="$exec_prefix"
12587 exec_prefix="$acl_final_exec_prefix"
12588 eval x=\"$x\"
12589 exec_prefix="$acl_save_exec_prefix"
12590 prefix="$acl_save_prefix"
12591
12592 if test "X$x" = "X-L$found_dir"; then
12593 haveit=yes
12594 break
12595 fi
12596 done
12597 if test -z "$haveit"; then
12598 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12599 fi
12600 if test "$hardcode_minus_L" != no; then
12601 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12602 else
12603 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12604 fi
12605 fi
12606 fi
12607 fi
12608 else
12609 if test "X$found_a" != "X"; then
12610 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12611 else
12612 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12613 fi
12614 fi
12615 additional_includedir=
12616 case "$found_dir" in
12617 */lib | */lib/)
12618 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12619 additional_includedir="$basedir/include"
12620 ;;
12621 esac
12622 if test "X$additional_includedir" != "X"; then
12623 if test "X$additional_includedir" != "X/usr/include"; then
12624 haveit=
12625 if test "X$additional_includedir" = "X/usr/local/include"; then
12626 if test -n "$GCC"; then
12627 case $host_os in
12628 linux*) haveit=yes;;
12629 esac
12630 fi
12631 fi
12632 if test -z "$haveit"; then
12633 for x in $CPPFLAGS $INCINTL; do
12634
12635 acl_save_prefix="$prefix"
12636 prefix="$acl_final_prefix"
12637 acl_save_exec_prefix="$exec_prefix"
12638 exec_prefix="$acl_final_exec_prefix"
12639 eval x=\"$x\"
12640 exec_prefix="$acl_save_exec_prefix"
12641 prefix="$acl_save_prefix"
12642
12643 if test "X$x" = "X-I$additional_includedir"; then
12644 haveit=yes
12645 break
12646 fi
12647 done
12648 if test -z "$haveit"; then
12649 if test -d "$additional_includedir"; then
12650 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12651 fi
12652 fi
12653 fi
12654 fi
12655 fi
12656 if test -n "$found_la"; then
12657 save_libdir="$libdir"
12658 case "$found_la" in
12659 */* | *\\*) . "$found_la" ;;
12660 *) . "./$found_la" ;;
12661 esac
12662 libdir="$save_libdir"
12663 for dep in $dependency_libs; do
12664 case "$dep" in
12665 -L*)
12666 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12667 if test "X$additional_libdir" != "X/usr/lib"; then
12668 haveit=
12669 if test "X$additional_libdir" = "X/usr/local/lib"; then
12670 if test -n "$GCC"; then
12671 case $host_os in
12672 linux*) haveit=yes;;
12673 esac
12674 fi
12675 fi
12676 if test -z "$haveit"; then
12677 haveit=
12678 for x in $LDFLAGS $LIBINTL; do
12679
12680 acl_save_prefix="$prefix"
12681 prefix="$acl_final_prefix"
12682 acl_save_exec_prefix="$exec_prefix"
12683 exec_prefix="$acl_final_exec_prefix"
12684 eval x=\"$x\"
12685 exec_prefix="$acl_save_exec_prefix"
12686 prefix="$acl_save_prefix"
12687
12688 if test "X$x" = "X-L$additional_libdir"; then
12689 haveit=yes
12690 break
12691 fi
12692 done
12693 if test -z "$haveit"; then
12694 if test -d "$additional_libdir"; then
12695 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12696 fi
12697 fi
12698 haveit=
12699 for x in $LDFLAGS $LTLIBINTL; do
12700
12701 acl_save_prefix="$prefix"
12702 prefix="$acl_final_prefix"
12703 acl_save_exec_prefix="$exec_prefix"
12704 exec_prefix="$acl_final_exec_prefix"
12705 eval x=\"$x\"
12706 exec_prefix="$acl_save_exec_prefix"
12707 prefix="$acl_save_prefix"
12708
12709 if test "X$x" = "X-L$additional_libdir"; then
12710 haveit=yes
12711 break
12712 fi
12713 done
12714 if test -z "$haveit"; then
12715 if test -d "$additional_libdir"; then
12716 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12717 fi
12718 fi
12719 fi
12720 fi
12721 ;;
12722 -R*)
12723 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12724 if test "$enable_rpath" != no; then
12725 haveit=
12726 for x in $rpathdirs; do
12727 if test "X$x" = "X$dir"; then
12728 haveit=yes
12729 break
12730 fi
12731 done
12732 if test -z "$haveit"; then
12733 rpathdirs="$rpathdirs $dir"
12734 fi
12735 haveit=
12736 for x in $ltrpathdirs; do
12737 if test "X$x" = "X$dir"; then
12738 haveit=yes
12739 break
12740 fi
12741 done
12742 if test -z "$haveit"; then
12743 ltrpathdirs="$ltrpathdirs $dir"
12744 fi
12745 fi
12746 ;;
12747 -l*)
12748 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12749 ;;
12750 *.la)
12751 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12752 ;;
12753 *)
12754 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12755 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12756 ;;
12757 esac
12758 done
12759 fi
12760 else
12761 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12762 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12763 fi
12764 fi
12765 fi
12766 done
12767 done
12768 if test "X$rpathdirs" != "X"; then
12769 if test -n "$hardcode_libdir_separator"; then
12770 alldirs=
12771 for found_dir in $rpathdirs; do
12772 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12773 done
12774 acl_save_libdir="$libdir"
12775 libdir="$alldirs"
12776 eval flag=\"$hardcode_libdir_flag_spec\"
12777 libdir="$acl_save_libdir"
12778 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12779 else
12780 for found_dir in $rpathdirs; do
12781 acl_save_libdir="$libdir"
12782 libdir="$found_dir"
12783 eval flag=\"$hardcode_libdir_flag_spec\"
12784 libdir="$acl_save_libdir"
12785 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12786 done
12787 fi
12788 fi
12789 if test "X$ltrpathdirs" != "X"; then
12790 for found_dir in $ltrpathdirs; do
12791 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12792 done
12793 fi
12794
12795 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12796 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
12797 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 else
12800 gt_save_CPPFLAGS="$CPPFLAGS"
12801 CPPFLAGS="$CPPFLAGS $INCINTL"
12802 gt_save_LIBS="$LIBS"
12803 LIBS="$LIBS $LIBINTL"
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h. */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 #include <libintl.h>
12811 extern int _nl_msg_cat_cntr;
12812 extern
12813 #ifdef __cplusplus
12814 "C"
12815 #endif
12816 const char *_nl_expand_alias ();
12817 int
12818 main ()
12819 {
12820 bindtextdomain ("", "");
12821 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12822 ;
12823 return 0;
12824 }
12825 _ACEOF
12826 rm -f conftest.$ac_objext conftest$ac_exeext
12827 if { (ac_try="$ac_link"
12828 case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_link") 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } && {
12840 test -z "$ac_c_werror_flag" ||
12841 test ! -s conftest.err
12842 } && test -s conftest$ac_exeext &&
12843 $as_test_x conftest$ac_exeext; then
12844 gt_cv_func_gnugettext1_libintl=yes
12845 else
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12848
12849 gt_cv_func_gnugettext1_libintl=no
12850 fi
12851
12852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12853 conftest$ac_exeext conftest.$ac_ext
12854 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12855 LIBS="$LIBS $LIBICONV"
12856 cat >conftest.$ac_ext <<_ACEOF
12857 /* confdefs.h. */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12862 #include <libintl.h>
12863 extern int _nl_msg_cat_cntr;
12864 extern
12865 #ifdef __cplusplus
12866 "C"
12867 #endif
12868 const char *_nl_expand_alias ();
12869 int
12870 main ()
12871 {
12872 bindtextdomain ("", "");
12873 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12874 ;
12875 return 0;
12876 }
12877 _ACEOF
12878 rm -f conftest.$ac_objext conftest$ac_exeext
12879 if { (ac_try="$ac_link"
12880 case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12883 esac
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_link") 2>conftest.er1
12886 ac_status=$?
12887 grep -v '^ *+' conftest.er1 >conftest.err
12888 rm -f conftest.er1
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } && {
12892 test -z "$ac_c_werror_flag" ||
12893 test ! -s conftest.err
12894 } && test -s conftest$ac_exeext &&
12895 $as_test_x conftest$ac_exeext; then
12896 LIBINTL="$LIBINTL $LIBICONV"
12897 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12898 gt_cv_func_gnugettext1_libintl=yes
12899
12900 else
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12903
12904
12905 fi
12906
12907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12908 conftest$ac_exeext conftest.$ac_ext
12909 fi
12910 CPPFLAGS="$gt_save_CPPFLAGS"
12911 LIBS="$gt_save_LIBS"
12912 fi
12913 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12914 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
12915 fi
12916
12917 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12918 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12919 && test "$PACKAGE" != gettext-runtime \
12920 && test "$PACKAGE" != gettext-tools; }; then
12921 gt_use_preinstalled_gnugettext=yes
12922 else
12923 LIBINTL=
12924 LTLIBINTL=
12925 INCINTL=
12926 fi
12927
12928
12929 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12930 nls_cv_use_gnu_gettext=yes
12931 fi
12932 fi
12933
12934 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12935 BUILD_INCLUDED_LIBINTL=yes
12936 USE_INCLUDED_LIBINTL=yes
12937 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12938 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12939 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12940 fi
12941
12942 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12943 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12944 CATOBJEXT=.gmo
12945 fi
12946
12947
12948 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12949 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12950
12951 cat >>confdefs.h <<\_ACEOF
12952 #define ENABLE_NLS 1
12953 _ACEOF
12954
12955 else
12956 USE_NLS=no
12957 fi
12958 fi
12959
12960 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
12961 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
12962 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12963 echo "${ECHO_T}$USE_NLS" >&6; }
12964 if test "$USE_NLS" = "yes"; then
12965 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12966 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
12967 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12968 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12969 gt_source="external libintl"
12970 else
12971 gt_source="libc"
12972 fi
12973 else
12974 gt_source="included intl directory"
12975 fi
12976 { echo "$as_me:$LINENO: result: $gt_source" >&5
12977 echo "${ECHO_T}$gt_source" >&6; }
12978 fi
12979
12980 if test "$USE_NLS" = "yes"; then
12981
12982 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12983 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12984 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
12985 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
12986 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
12987 echo "${ECHO_T}$LIBINTL" >&6; }
12988
12989 for element in $INCINTL; do
12990 haveit=
12991 for x in $CPPFLAGS; do
12992
12993 acl_save_prefix="$prefix"
12994 prefix="$acl_final_prefix"
12995 acl_save_exec_prefix="$exec_prefix"
12996 exec_prefix="$acl_final_exec_prefix"
12997 eval x=\"$x\"
12998 exec_prefix="$acl_save_exec_prefix"
12999 prefix="$acl_save_prefix"
13000
13001 if test "X$x" = "X$element"; then
13002 haveit=yes
13003 break
13004 fi
13005 done
13006 if test -z "$haveit"; then
13007 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13008 fi
13009 done
13010
13011 fi
13012
13013
13014 cat >>confdefs.h <<\_ACEOF
13015 #define HAVE_GETTEXT 1
13016 _ACEOF
13017
13018
13019 cat >>confdefs.h <<\_ACEOF
13020 #define HAVE_DCGETTEXT 1
13021 _ACEOF
13022
13023 fi
13024
13025 POSUB=po
13026 fi
13027
13028
13029 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13030 BUILD_INCLUDED_LIBINTL=yes
13031 fi
13032
13033
13034
13035
13036
13037 nls_cv_header_intl=
13038 nls_cv_header_libgt=
13039
13040 DATADIRNAME=share
13041
13042
13043 INSTOBJEXT=.mo
13044
13045
13046 GENCAT=gencat
13047
13048
13049 if test "$USE_INCLUDED_LIBINTL" = yes; then
13050 INTLOBJS="\$(GETTOBJS)"
13051 fi
13052
13053
13054 INTL_LIBTOOL_SUFFIX_PREFIX=
13055
13056
13057
13058 INTLLIBS="$LIBINTL"
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071 am_save_CPPFLAGS="$CPPFLAGS"
13072
13073 for element in $INCICONV; do
13074 haveit=
13075 for x in $CPPFLAGS; do
13076
13077 acl_save_prefix="$prefix"
13078 prefix="$acl_final_prefix"
13079 acl_save_exec_prefix="$exec_prefix"
13080 exec_prefix="$acl_final_exec_prefix"
13081 eval x=\"$x\"
13082 exec_prefix="$acl_save_exec_prefix"
13083 prefix="$acl_save_prefix"
13084
13085 if test "X$x" = "X$element"; then
13086 haveit=yes
13087 break
13088 fi
13089 done
13090 if test -z "$haveit"; then
13091 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13092 fi
13093 done
13094
13095
13096 { echo "$as_me:$LINENO: checking for iconv" >&5
13097 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13098 if test "${am_cv_func_iconv+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 else
13101
13102 am_cv_func_iconv="no, consider installing GNU libiconv"
13103 am_cv_lib_iconv=no
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h. */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13110 #include <stdlib.h>
13111 #include <iconv.h>
13112 int
13113 main ()
13114 {
13115 iconv_t cd = iconv_open("","");
13116 iconv(cd,NULL,NULL,NULL,NULL);
13117 iconv_close(cd);
13118 ;
13119 return 0;
13120 }
13121 _ACEOF
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127 esac
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_link") 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } && {
13136 test -z "$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 } && test -s conftest$ac_exeext &&
13139 $as_test_x conftest$ac_exeext; then
13140 am_cv_func_iconv=yes
13141 else
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13144
13145
13146 fi
13147
13148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13149 conftest$ac_exeext conftest.$ac_ext
13150 if test "$am_cv_func_iconv" != yes; then
13151 am_save_LIBS="$LIBS"
13152 LIBS="$LIBS $LIBICONV"
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 #include <stdlib.h>
13160 #include <iconv.h>
13161 int
13162 main ()
13163 {
13164 iconv_t cd = iconv_open("","");
13165 iconv(cd,NULL,NULL,NULL,NULL);
13166 iconv_close(cd);
13167 ;
13168 return 0;
13169 }
13170 _ACEOF
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176 esac
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_link") 2>conftest.er1
13179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest$ac_exeext &&
13188 $as_test_x conftest$ac_exeext; then
13189 am_cv_lib_iconv=yes
13190 am_cv_func_iconv=yes
13191 else
13192 echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13194
13195
13196 fi
13197
13198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13199 conftest$ac_exeext conftest.$ac_ext
13200 LIBS="$am_save_LIBS"
13201 fi
13202
13203 fi
13204 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13205 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13206 if test "$am_cv_func_iconv" = yes; then
13207
13208 cat >>confdefs.h <<\_ACEOF
13209 #define HAVE_ICONV 1
13210 _ACEOF
13211
13212 fi
13213 if test "$am_cv_lib_iconv" = yes; then
13214 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13215 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13216 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13217 echo "${ECHO_T}$LIBICONV" >&6; }
13218 else
13219 CPPFLAGS="$am_save_CPPFLAGS"
13220 LIBICONV=
13221 LTLIBICONV=
13222 fi
13223
13224
13225
13226 if test "$am_cv_func_iconv" = yes; then
13227 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13228 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13229 if test "${am_cv_proto_iconv+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13231 else
13232
13233 cat >conftest.$ac_ext <<_ACEOF
13234 /* confdefs.h. */
13235 _ACEOF
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239
13240 #include <stdlib.h>
13241 #include <iconv.h>
13242 extern
13243 #ifdef __cplusplus
13244 "C"
13245 #endif
13246 #if defined(__STDC__) || defined(__cplusplus)
13247 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13248 #else
13249 size_t iconv();
13250 #endif
13251
13252 int
13253 main ()
13254 {
13255
13256 ;
13257 return 0;
13258 }
13259 _ACEOF
13260 rm -f conftest.$ac_objext
13261 if { (ac_try="$ac_compile"
13262 case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13265 esac
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267 (eval "$ac_compile") 2>conftest.er1
13268 ac_status=$?
13269 grep -v '^ *+' conftest.er1 >conftest.err
13270 rm -f conftest.er1
13271 cat conftest.err >&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } && {
13274 test -z "$ac_c_werror_flag" ||
13275 test ! -s conftest.err
13276 } && test -s conftest.$ac_objext; then
13277 am_cv_proto_iconv_arg1=""
13278 else
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13281
13282 am_cv_proto_iconv_arg1="const"
13283 fi
13284
13285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13287 fi
13288
13289 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13290 { echo "$as_me:$LINENO: result: ${ac_t:-
13291 }$am_cv_proto_iconv" >&5
13292 echo "${ECHO_T}${ac_t:-
13293 }$am_cv_proto_iconv" >&6; }
13294
13295 cat >>confdefs.h <<_ACEOF
13296 #define ICONV_CONST $am_cv_proto_iconv_arg1
13297 _ACEOF
13298
13299 fi
13300
13301 LIBS="$LIBS $INTLLIBS $LIBICONV"
13302 if test "x$prefix" = "xNONE"
13303 then
13304 LOCALEDIR=$ac_default_prefix/share/locale
13305 else
13306 LOCALEDIR=$prefix/share/locale
13307 fi
13308
13309 cat >>confdefs.h <<_ACEOF
13310 #define LOCALEDIR "$LOCALEDIR"
13311 _ACEOF
13312
13313
13314 #check host OS
13315 { echo "$as_me:$LINENO: checking host OS" >&5
13316 echo $ECHO_N "checking host OS... $ECHO_C" >&6; }
13317 case "${host}" in
13318 *-*-cygwin* | *-*-mingw32* )
13319 LIB_GL=opengl32
13320 LIB_GLU=glu32
13321 PROGRAM_EXT=".exe"
13322 { echo "$as_me:$LINENO: result: Host OS is Win32" >&5
13323 echo "${ECHO_T}Host OS is Win32" >&6; }
13324 LIBS="-l$LIB_GL -l$LIB_GLU $LIBS"
13325 LIBS="-lSDL_mixer $LIBS"
13326 LIBS="-lSDL_ttf $LIBS"
13327 LIBS="$LIBS -lwinmm"
13328 ;;
13329 *)
13330 { echo "$as_me:$LINENO: checking for X" >&5
13331 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
13332
13333
13334 # Check whether --with-x was given.
13335 if test "${with_x+set}" = set; then
13336 withval=$with_x;
13337 fi
13338
13339 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13340 if test "x$with_x" = xno; then
13341 # The user explicitly disabled X.
13342 have_x=disabled
13343 else
13344 case $x_includes,$x_libraries in #(
13345 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
13346 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
13347 { (exit 1); exit 1; }; };; #(
13348 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351 # One or both of the vars are not set, and there is no cached value.
13352 ac_x_includes=no ac_x_libraries=no
13353 rm -f -r conftest.dir
13354 if mkdir conftest.dir; then
13355 cd conftest.dir
13356 cat >Imakefile <<'_ACEOF'
13357 incroot:
13358 @echo incroot='${INCROOT}'
13359 usrlibdir:
13360 @echo usrlibdir='${USRLIBDIR}'
13361 libdir:
13362 @echo libdir='${LIBDIR}'
13363 _ACEOF
13364 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13365 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13366 for ac_var in incroot usrlibdir libdir; do
13367 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13368 done
13369 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13370 for ac_extension in a so sl; do
13371 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13372 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13373 ac_im_usrlibdir=$ac_im_libdir; break
13374 fi
13375 done
13376 # Screen out bogus values from the imake configuration. They are
13377 # bogus both because they are the default anyway, and because
13378 # using them would break gcc on systems where it needs fixed includes.
13379 case $ac_im_incroot in
13380 /usr/include) ac_x_includes= ;;
13381 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13382 esac
13383 case $ac_im_usrlibdir in
13384 /usr/lib | /lib) ;;
13385 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13386 esac
13387 fi
13388 cd ..
13389 rm -f -r conftest.dir
13390 fi
13391
13392 # Standard set of common directories for X headers.
13393 # Check X11 before X11Rn because it is often a symlink to the current release.
13394 ac_x_header_dirs='
13395 /usr/X11/include
13396 /usr/X11R6/include
13397 /usr/X11R5/include
13398 /usr/X11R4/include
13399
13400 /usr/include/X11
13401 /usr/include/X11R6
13402 /usr/include/X11R5
13403 /usr/include/X11R4
13404
13405 /usr/local/X11/include
13406 /usr/local/X11R6/include
13407 /usr/local/X11R5/include
13408 /usr/local/X11R4/include
13409
13410 /usr/local/include/X11
13411 /usr/local/include/X11R6
13412 /usr/local/include/X11R5
13413 /usr/local/include/X11R4
13414
13415 /usr/X386/include
13416 /usr/x386/include
13417 /usr/XFree86/include/X11
13418
13419 /usr/include
13420 /usr/local/include
13421 /usr/unsupported/include
13422 /usr/athena/include
13423 /usr/local/x11r5/include
13424 /usr/lpp/Xamples/include
13425
13426 /usr/openwin/include
13427 /usr/openwin/share/include'
13428
13429 if test "$ac_x_includes" = no; then
13430 # Guess where to find include files, by looking for Xlib.h.
13431 # First, try using that file with no special directory specified.
13432 cat >conftest.$ac_ext <<_ACEOF
13433 /* confdefs.h. */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 #include <X11/Xlib.h>
13439 _ACEOF
13440 if { (ac_try="$ac_cpp conftest.$ac_ext"
13441 case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13444 esac
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13447 ac_status=$?
13448 grep -v '^ *+' conftest.er1 >conftest.err
13449 rm -f conftest.er1
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } >/dev/null && {
13453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13454 test ! -s conftest.err
13455 }; then
13456 # We can compile using X headers with no special include directory.
13457 ac_x_includes=
13458 else
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462 for ac_dir in $ac_x_header_dirs; do
13463 if test -r "$ac_dir/X11/Xlib.h"; then
13464 ac_x_includes=$ac_dir
13465 break
13466 fi
13467 done
13468 fi
13469
13470 rm -f conftest.err conftest.$ac_ext
13471 fi # $ac_x_includes = no
13472
13473 if test "$ac_x_libraries" = no; then
13474 # Check for the libraries.
13475 # See if we find them without any special options.
13476 # Don't add to $LIBS permanently.
13477 ac_save_LIBS=$LIBS
13478 LIBS="-lX11 $LIBS"
13479 cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h. */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 #include <X11/Xlib.h>
13486 int
13487 main ()
13488 {
13489 XrmInitialize ()
13490 ;
13491 return 0;
13492 }
13493 _ACEOF
13494 rm -f conftest.$ac_objext conftest$ac_exeext
13495 if { (ac_try="$ac_link"
13496 case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13499 esac
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 (eval "$ac_link") 2>conftest.er1
13502 ac_status=$?
13503 grep -v '^ *+' conftest.er1 >conftest.err
13504 rm -f conftest.er1
13505 cat conftest.err >&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } && {
13508 test -z "$ac_c_werror_flag" ||
13509 test ! -s conftest.err
13510 } && test -s conftest$ac_exeext &&
13511 $as_test_x conftest$ac_exeext; then
13512 LIBS=$ac_save_LIBS
13513 # We can link X programs with no special library path.
13514 ac_x_libraries=
13515 else
13516 echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13518
13519 LIBS=$ac_save_LIBS
13520 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13521 do
13522 # Don't even attempt the hair of trying to link an X program!
13523 for ac_extension in a so sl; do
13524 if test -r "$ac_dir/libX11.$ac_extension"; then
13525 ac_x_libraries=$ac_dir
13526 break 2
13527 fi
13528 done
13529 done
13530 fi
13531
13532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13533 conftest$ac_exeext conftest.$ac_ext
13534 fi # $ac_x_libraries = no
13535
13536 case $ac_x_includes,$ac_x_libraries in #(
13537 no,* | *,no | *\'*)
13538 # Didn't find X, or a directory has "'" in its name.
13539 ac_cv_have_x="have_x=no";; #(
13540 *)
13541 # Record where we found X for the cache.
13542 ac_cv_have_x="have_x=yes\
13543 ac_x_includes='$ac_x_includes'\
13544 ac_x_libraries='$ac_x_libraries'"
13545 esac
13546 fi
13547 ;; #(
13548 *) have_x=yes;;
13549 esac
13550 eval "$ac_cv_have_x"
13551 fi # $with_x != no
13552
13553 if test "$have_x" != yes; then
13554 { echo "$as_me:$LINENO: result: $have_x" >&5
13555 echo "${ECHO_T}$have_x" >&6; }
13556 no_x=yes
13557 else
13558 # If each of the values was on the command line, it overrides each guess.
13559 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13560 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13561 # Update the cache value to reflect the command line values.
13562 ac_cv_have_x="have_x=yes\
13563 ac_x_includes='$x_includes'\
13564 ac_x_libraries='$x_libraries'"
13565 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
13566 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
13567 fi
13568
13569 if test "x$x_includes" != "x"
13570 then
13571 CPPFLAGS="$CPPFLAGS -I$x_includes"
13572 fi
13573
13574 if test "x$x_libraries" != "x"
13575 then
13576 LIBS="$LIBS -L$x_libraries"
13577 fi
13578
13579 LIB_GL=GL
13580 LIB_GLU=GLU
13581 PROGRAM_EXT=
13582 { echo "$as_me:$LINENO: result: Host OS is not Win32" >&5
13583 echo "${ECHO_T}Host OS is not Win32" >&6; }
13584
13585 as_ac_Lib=`echo "ac_cv_lib_$LIB_GL''_glVertex3f" | $as_tr_sh`
13586 { echo "$as_me:$LINENO: checking for glVertex3f in -l$LIB_GL" >&5
13587 echo $ECHO_N "checking for glVertex3f in -l$LIB_GL... $ECHO_C" >&6; }
13588 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 else
13591 ac_check_lib_save_LIBS=$LIBS
13592 LIBS="-l$LIB_GL $LIBS"
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h. */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599
13600 /* Override any GCC internal prototype to avoid an error.
13601 Use char because int might match the return type of a GCC
13602 builtin and then its argument prototype would still apply. */
13603 #ifdef __cplusplus
13604 extern "C"
13605 #endif
13606 char glVertex3f ();
13607 int
13608 main ()
13609 {
13610 return glVertex3f ();
13611 ;
13612 return 0;
13613 }
13614 _ACEOF
13615 rm -f conftest.$ac_objext conftest$ac_exeext
13616 if { (ac_try="$ac_link"
13617 case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_link") 2>conftest.er1
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } && {
13629 test -z "$ac_c_werror_flag" ||
13630 test ! -s conftest.err
13631 } && test -s conftest$ac_exeext &&
13632 $as_test_x conftest$ac_exeext; then
13633 eval "$as_ac_Lib=yes"
13634 else
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 eval "$as_ac_Lib=no"
13639 fi
13640
13641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13642 conftest$ac_exeext conftest.$ac_ext
13643 LIBS=$ac_check_lib_save_LIBS
13644 fi
13645 ac_res=`eval echo '${'$as_ac_Lib'}'`
13646 { echo "$as_me:$LINENO: result: $ac_res" >&5
13647 echo "${ECHO_T}$ac_res" >&6; }
13648 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13649 cat >>confdefs.h <<_ACEOF
13650 #define `echo "HAVE_LIB$LIB_GL" | $as_tr_cpp` 1
13651 _ACEOF
13652
13653 LIBS="-l$LIB_GL $LIBS"
13654
13655 else
13656 { { echo "$as_me:$LINENO: error: *** You need OpenGL" >&5
13657 echo "$as_me: error: *** You need OpenGL" >&2;}
13658 { (exit 1); exit 1; }; }
13659 fi
13660
13661
13662
13663 as_ac_Lib=`echo "ac_cv_lib_$LIB_GLU''_gluLookAt" | $as_tr_sh`
13664 { echo "$as_me:$LINENO: checking for gluLookAt in -l$LIB_GLU" >&5
13665 echo $ECHO_N "checking for gluLookAt in -l$LIB_GLU... $ECHO_C" >&6; }
13666 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-l$LIB_GLU -lm $LIBS"
13671 cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h. */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13681 #ifdef __cplusplus
13682 extern "C"
13683 #endif
13684 char gluLookAt ();
13685 int
13686 main ()
13687 {
13688 return gluLookAt ();
13689 ;
13690 return 0;
13691 }
13692 _ACEOF
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (ac_try="$ac_link"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13698 esac
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_link") 2>conftest.er1
13701 ac_status=$?
13702 grep -v '^ *+' conftest.er1 >conftest.err
13703 rm -f conftest.er1
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } && {
13707 test -z "$ac_c_werror_flag" ||
13708 test ! -s conftest.err
13709 } && test -s conftest$ac_exeext &&
13710 $as_test_x conftest$ac_exeext; then
13711 eval "$as_ac_Lib=yes"
13712 else
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 eval "$as_ac_Lib=no"
13717 fi
13718
13719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13722 fi
13723 ac_res=`eval echo '${'$as_ac_Lib'}'`
13724 { echo "$as_me:$LINENO: result: $ac_res" >&5
13725 echo "${ECHO_T}$ac_res" >&6; }
13726 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13727 cat >>confdefs.h <<_ACEOF
13728 #define `echo "HAVE_LIB$LIB_GLU" | $as_tr_cpp` 1
13729 _ACEOF
13730
13731 LIBS="-l$LIB_GLU $LIBS"
13732
13733 else
13734 { { echo "$as_me:$LINENO: error: *** You need Glu" >&5
13735 echo "$as_me: error: *** You need Glu" >&2;}
13736 { (exit 1); exit 1; }; }
13737 fi
13738
13739
13740
13741 { echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
13742 echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6; }
13743 if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 else
13746 ac_check_lib_save_LIBS=$LIBS
13747 LIBS="-lSDL_mixer $LIBS"
13748 cat >conftest.$ac_ext <<_ACEOF
13749 /* confdefs.h. */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13754
13755 /* Override any GCC internal prototype to avoid an error.
13756 Use char because int might match the return type of a GCC
13757 builtin and then its argument prototype would still apply. */
13758 #ifdef __cplusplus
13759 extern "C"
13760 #endif
13761 char Mix_OpenAudio ();
13762 int
13763 main ()
13764 {
13765 return Mix_OpenAudio ();
13766 ;
13767 return 0;
13768 }
13769 _ACEOF
13770 rm -f conftest.$ac_objext conftest$ac_exeext
13771 if { (ac_try="$ac_link"
13772 case "(($ac_try" in
13773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774 *) ac_try_echo=$ac_try;;
13775 esac
13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777 (eval "$ac_link") 2>conftest.er1
13778 ac_status=$?
13779 grep -v '^ *+' conftest.er1 >conftest.err
13780 rm -f conftest.er1
13781 cat conftest.err >&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } && {
13784 test -z "$ac_c_werror_flag" ||
13785 test ! -s conftest.err
13786 } && test -s conftest$ac_exeext &&
13787 $as_test_x conftest$ac_exeext; then
13788 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
13789 else
13790 echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13792
13793 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
13794 fi
13795
13796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13797 conftest$ac_exeext conftest.$ac_ext
13798 LIBS=$ac_check_lib_save_LIBS
13799 fi
13800 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
13801 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
13802 if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then
13803 cat >>confdefs.h <<_ACEOF
13804 #define HAVE_LIBSDL_MIXER 1
13805 _ACEOF
13806
13807 LIBS="-lSDL_mixer $LIBS"
13808
13809 else
13810 { { echo "$as_me:$LINENO: error: SDL-mixer" >&5
13811 echo "$as_me: error: SDL-mixer" >&2;}
13812 { (exit 1); exit 1; }; }
13813 fi
13814
13815 LIBS="$LIBS -lSDL_mixer"
13816
13817
13818 { echo "$as_me:$LINENO: checking for TTF_Init in -lSDL_ttf" >&5
13819 echo $ECHO_N "checking for TTF_Init in -lSDL_ttf... $ECHO_C" >&6; }
13820 if test "${ac_cv_lib_SDL_ttf_TTF_Init+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823 ac_check_lib_save_LIBS=$LIBS
13824 LIBS="-lSDL_ttf $LIBS"
13825 cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h. */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831
13832 /* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
13835 #ifdef __cplusplus
13836 extern "C"
13837 #endif
13838 char TTF_Init ();
13839 int
13840 main ()
13841 {
13842 return TTF_Init ();
13843 ;
13844 return 0;
13845 }
13846 _ACEOF
13847 rm -f conftest.$ac_objext conftest$ac_exeext
13848 if { (ac_try="$ac_link"
13849 case "(($ac_try" in
13850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13852 esac
13853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13854 (eval "$ac_link") 2>conftest.er1
13855 ac_status=$?
13856 grep -v '^ *+' conftest.er1 >conftest.err
13857 rm -f conftest.er1
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } && {
13861 test -z "$ac_c_werror_flag" ||
13862 test ! -s conftest.err
13863 } && test -s conftest$ac_exeext &&
13864 $as_test_x conftest$ac_exeext; then
13865 ac_cv_lib_SDL_ttf_TTF_Init=yes
13866 else
13867 echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13869
13870 ac_cv_lib_SDL_ttf_TTF_Init=no
13871 fi
13872
13873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13874 conftest$ac_exeext conftest.$ac_ext
13875 LIBS=$ac_check_lib_save_LIBS
13876 fi
13877 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_Init" >&5
13878 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_Init" >&6; }
13879 if test $ac_cv_lib_SDL_ttf_TTF_Init = yes; then
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_LIBSDL_TTF 1
13882 _ACEOF
13883
13884 LIBS="-lSDL_ttf $LIBS"
13885
13886 else
13887 { { echo "$as_me:$LINENO: error: SDL_ttf" >&5
13888 echo "$as_me: error: SDL_ttf" >&2;}
13889 { (exit 1); exit 1; }; }
13890 fi
13891
13892 LIBS="$LIBS -lSDL_ttf"
13893 esac
13894
13895
13896 # Check whether --enable-debug was given.
13897 if test "${enable_debug+set}" = set; then
13898 enableval=$enable_debug; mogl_debug=1
13899 else
13900 mogl_debug=0
13901 fi
13902
13903 if test $mogl_debug -eq 1
13904 then
13905 CXXFLAGS="-Wall -g $CXXFLAGS"
13906 else
13907 CXXFLAGS="-Wall $CXXFLAGS"
13908 fi
13909
13910 CPPFLAGS="-DDATADIR_BRIQUOLO=\\\"$datadir/$PACKAGE\\\" $CPPFLAGS"
13911
13912 ac_config_files="$ac_config_files po/Makefile.in m4/Makefile intl/Makefile Makefile desktop/Makefile data/Makefile data/data/Makefile data/tableau/Makefile data/tableau/old/Makefile data/tableau/new/Makefile src/MOGL/Makefile src/Makefile"
13913
13914 cat >confcache <<\_ACEOF
13915 # This file is a shell script that caches the results of configure
13916 # tests run on this system so they can be shared between configure
13917 # scripts and configure runs, see configure's option --config-cache.
13918 # It is not useful on other systems. If it contains results you don't
13919 # want to keep, you may remove or edit it.
13920 #
13921 # config.status only pays attention to the cache file if you give it
13922 # the --recheck option to rerun configure.
13923 #
13924 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13925 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13926 # following values.
13927
13928 _ACEOF
13929
13930 # The following way of writing the cache mishandles newlines in values,
13931 # but we know of no workaround that is simple, portable, and efficient.
13932 # So, we kill variables containing newlines.
13933 # Ultrix sh set writes to stderr and can't be redirected directly,
13934 # and sets the high bit in the cache file unless we assign to the vars.
13935 (
13936 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13937 eval ac_val=\$$ac_var
13938 case $ac_val in #(
13939 *${as_nl}*)
13940 case $ac_var in #(
13941 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13942 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13943 esac
13944 case $ac_var in #(
13945 _ | IFS | as_nl) ;; #(
13946 *) $as_unset $ac_var ;;
13947 esac ;;
13948 esac
13949 done
13950
13951 (set) 2>&1 |
13952 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13953 *${as_nl}ac_space=\ *)
13954 # `set' does not quote correctly, so add quotes (double-quote
13955 # substitution turns \\\\ into \\, and sed turns \\ into \).
13956 sed -n \
13957 "s/'/'\\\\''/g;
13958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13959 ;; #(
13960 *)
13961 # `set' quotes correctly as required by POSIX, so do not add quotes.
13962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13963 ;;
13964 esac |
13965 sort
13966 ) |
13967 sed '
13968 /^ac_cv_env_/b end
13969 t clear
13970 :clear
13971 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13972 t end
13973 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13974 :end' >>confcache
13975 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13976 if test -w "$cache_file"; then
13977 test "x$cache_file" != "x/dev/null" &&
13978 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13979 echo "$as_me: updating cache $cache_file" >&6;}
13980 cat confcache >$cache_file
13981 else
13982 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13983 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13984 fi
13985 fi
13986 rm -f confcache
13987
13988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13989 # Let make expand exec_prefix.
13990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13991
13992 DEFS=-DHAVE_CONFIG_H
13993
13994 ac_libobjs=
13995 ac_ltlibobjs=
13996 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13997 # 1. Remove the extension, and $U if already installed.
13998 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13999 ac_i=`echo "$ac_i" | sed "$ac_script"`
14000 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14001 # will be set to the directory where LIBOBJS objects are built.
14002 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14003 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14004 done
14005 LIBOBJS=$ac_libobjs
14006
14007 LTLIBOBJS=$ac_ltlibobjs
14008
14009
14010 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14011 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14012 Usually this means the macro was only invoked conditionally." >&5
14013 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14014 Usually this means the macro was only invoked conditionally." >&2;}
14015 { (exit 1); exit 1; }; }
14016 fi
14017 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14018 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
14019 Usually this means the macro was only invoked conditionally." >&5
14020 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
14021 Usually this means the macro was only invoked conditionally." >&2;}
14022 { (exit 1); exit 1; }; }
14023 fi
14024 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14025 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14026 Usually this means the macro was only invoked conditionally." >&5
14027 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14028 Usually this means the macro was only invoked conditionally." >&2;}
14029 { (exit 1); exit 1; }; }
14030 fi
14031
14032 : ${CONFIG_STATUS=./config.status}
14033 ac_clean_files_save=$ac_clean_files
14034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14035 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14036 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14037 cat >$CONFIG_STATUS <<_ACEOF
14038 #! $SHELL
14039 # Generated by $as_me.
14040 # Run this file to recreate the current configuration.
14041 # Compiler output produced by configure, useful for debugging
14042 # configure, is in config.log if it exists.
14043
14044 debug=false
14045 ac_cs_recheck=false
14046 ac_cs_silent=false
14047 SHELL=\${CONFIG_SHELL-$SHELL}
14048 _ACEOF
14049
14050 cat >>$CONFIG_STATUS <<\_ACEOF
14051 ## --------------------- ##
14052 ## M4sh Initialization. ##
14053 ## --------------------- ##
14054
14055 # Be more Bourne compatible
14056 DUALCASE=1; export DUALCASE # for MKS sh
14057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14058 emulate sh
14059 NULLCMD=:
14060 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14061 # is contrary to our usage. Disable this feature.
14062 alias -g '${1+"$@"}'='"$@"'
14063 setopt NO_GLOB_SUBST
14064 else
14065 case `(set -o) 2>/dev/null` in
14066 *posix*) set -o posix ;;
14067 esac
14068
14069 fi
14070
14071
14072
14073
14074 # PATH needs CR
14075 # Avoid depending upon Character Ranges.
14076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14079 as_cr_digits='0123456789'
14080 as_cr_alnum=$as_cr_Letters$as_cr_digits
14081
14082 # The user is always right.
14083 if test "${PATH_SEPARATOR+set}" != set; then
14084 echo "#! /bin/sh" >conf$$.sh
14085 echo "exit 0" >>conf$$.sh
14086 chmod +x conf$$.sh
14087 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14088 PATH_SEPARATOR=';'
14089 else
14090 PATH_SEPARATOR=:
14091 fi
14092 rm -f conf$$.sh
14093 fi
14094
14095 # Support unset when possible.
14096 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14097 as_unset=unset
14098 else
14099 as_unset=false
14100 fi
14101
14102
14103 # IFS
14104 # We need space, tab and new line, in precisely that order. Quoting is
14105 # there to prevent editors from complaining about space-tab.
14106 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14107 # splitting by setting IFS to empty value.)
14108 as_nl='
14109 '
14110 IFS=" "" $as_nl"
14111
14112 # Find who we are. Look in the path if we contain no directory separator.
14113 case $0 in
14114 *[\\/]* ) as_myself=$0 ;;
14115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in $PATH
14117 do
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
14120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14121 done
14122 IFS=$as_save_IFS
14123
14124 ;;
14125 esac
14126 # We did not find ourselves, most probably we were run as `sh COMMAND'
14127 # in which case we are not to be found in the path.
14128 if test "x$as_myself" = x; then
14129 as_myself=$0
14130 fi
14131 if test ! -f "$as_myself"; then
14132 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14133 { (exit 1); exit 1; }
14134 fi
14135
14136 # Work around bugs in pre-3.0 UWIN ksh.
14137 for as_var in ENV MAIL MAILPATH
14138 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14139 done
14140 PS1='$ '
14141 PS2='> '
14142 PS4='+ '
14143
14144 # NLS nuisances.
14145 for as_var in \
14146 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14147 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14148 LC_TELEPHONE LC_TIME
14149 do
14150 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14151 eval $as_var=C; export $as_var
14152 else
14153 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14154 fi
14155 done
14156
14157 # Required to use basename.
14158 if expr a : '\(a\)' >/dev/null 2>&1 &&
14159 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14160 as_expr=expr
14161 else
14162 as_expr=false
14163 fi
14164
14165 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14166 as_basename=basename
14167 else
14168 as_basename=false
14169 fi
14170
14171
14172 # Name of the executable.
14173 as_me=`$as_basename -- "$0" ||
14174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14175 X"$0" : 'X\(//\)$' \| \
14176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14177 echo X/"$0" |
14178 sed '/^.*\/\([^/][^/]*\)\/*$/{
14179 s//\1/
14180 q
14181 }
14182 /^X\/\(\/\/\)$/{
14183 s//\1/
14184 q
14185 }
14186 /^X\/\(\/\).*/{
14187 s//\1/
14188 q
14189 }
14190 s/.*/./; q'`
14191
14192 # CDPATH.
14193 $as_unset CDPATH
14194
14195
14196
14197 as_lineno_1=$LINENO
14198 as_lineno_2=$LINENO
14199 test "x$as_lineno_1" != "x$as_lineno_2" &&
14200 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14201
14202 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14203 # uniformly replaced by the line number. The first 'sed' inserts a
14204 # line-number line after each line using $LINENO; the second 'sed'
14205 # does the real work. The second script uses 'N' to pair each
14206 # line-number line with the line containing $LINENO, and appends
14207 # trailing '-' during substitution so that $LINENO is not a special
14208 # case at line end.
14209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14210 # scripts with optimization help from Paolo Bonzini. Blame Lee
14211 # E. McMahon (1931-1989) for sed's syntax. :-)
14212 sed -n '
14213 p
14214 /[$]LINENO/=
14215 ' <$as_myself |
14216 sed '
14217 s/[$]LINENO.*/&-/
14218 t lineno
14219 b
14220 :lineno
14221 N
14222 :loop
14223 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14224 t loop
14225 s/-\n.*//
14226 ' >$as_me.lineno &&
14227 chmod +x "$as_me.lineno" ||
14228 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14229 { (exit 1); exit 1; }; }
14230
14231 # Don't try to exec as it changes $[0], causing all sort of problems
14232 # (the dirname of $[0] is not the place where we might find the
14233 # original and so on. Autoconf is especially sensitive to this).
14234 . "./$as_me.lineno"
14235 # Exit status is that of the last command.
14236 exit
14237 }
14238
14239
14240 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14241 as_dirname=dirname
14242 else
14243 as_dirname=false
14244 fi
14245
14246 ECHO_C= ECHO_N= ECHO_T=
14247 case `echo -n x` in
14248 -n*)
14249 case `echo 'x\c'` in
14250 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14251 *) ECHO_C='\c';;
14252 esac;;
14253 *)
14254 ECHO_N='-n';;
14255 esac
14256
14257 if expr a : '\(a\)' >/dev/null 2>&1 &&
14258 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14259 as_expr=expr
14260 else
14261 as_expr=false
14262 fi
14263
14264 rm -f conf$$ conf$$.exe conf$$.file
14265 if test -d conf$$.dir; then
14266 rm -f conf$$.dir/conf$$.file
14267 else
14268 rm -f conf$$.dir
14269 mkdir conf$$.dir
14270 fi
14271 echo >conf$$.file
14272 if ln -s conf$$.file conf$$ 2>/dev/null; then
14273 as_ln_s='ln -s'
14274 # ... but there are two gotchas:
14275 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14276 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14277 # In both cases, we have to default to `cp -p'.
14278 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14279 as_ln_s='cp -p'
14280 elif ln conf$$.file conf$$ 2>/dev/null; then
14281 as_ln_s=ln
14282 else
14283 as_ln_s='cp -p'
14284 fi
14285 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14286 rmdir conf$$.dir 2>/dev/null
14287
14288 if mkdir -p . 2>/dev/null; then
14289 as_mkdir_p=:
14290 else
14291 test -d ./-p && rmdir ./-p
14292 as_mkdir_p=false
14293 fi
14294
14295 if test -x / >/dev/null 2>&1; then
14296 as_test_x='test -x'
14297 else
14298 if ls -dL / >/dev/null 2>&1; then
14299 as_ls_L_option=L
14300 else
14301 as_ls_L_option=
14302 fi
14303 as_test_x='
14304 eval sh -c '\''
14305 if test -d "$1"; then
14306 test -d "$1/.";
14307 else
14308 case $1 in
14309 -*)set "./$1";;
14310 esac;
14311 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14312 ???[sx]*):;;*)false;;esac;fi
14313 '\'' sh
14314 '
14315 fi
14316 as_executable_p=$as_test_x
14317
14318 # Sed expression to map a string onto a valid CPP name.
14319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14320
14321 # Sed expression to map a string onto a valid variable name.
14322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14323
14324
14325 exec 6>&1
14326
14327 # Save the log message, to keep $[0] and so on meaningful, and to
14328 # report actual input values of CONFIG_FILES etc. instead of their
14329 # values after options handling.
14330 ac_log="
14331 This file was extended by briquolo $as_me 0.5.7, which was
14332 generated by GNU Autoconf 2.61. Invocation command line was
14333
14334 CONFIG_FILES = $CONFIG_FILES
14335 CONFIG_HEADERS = $CONFIG_HEADERS
14336 CONFIG_LINKS = $CONFIG_LINKS
14337 CONFIG_COMMANDS = $CONFIG_COMMANDS
14338 $ $0 $@
14339
14340 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14341 "
14342
14343 _ACEOF
14344
14345 cat >>$CONFIG_STATUS <<_ACEOF
14346 # Files that config.status was made for.
14347 config_files="$ac_config_files"
14348 config_headers="$ac_config_headers"
14349 config_commands="$ac_config_commands"
14350
14351 _ACEOF
14352
14353 cat >>$CONFIG_STATUS <<\_ACEOF
14354 ac_cs_usage="\
14355 \`$as_me' instantiates files from templates according to the
14356 current configuration.
14357
14358 Usage: $0 [OPTIONS] [FILE]...
14359
14360 -h, --help print this help, then exit
14361 -V, --version print version number and configuration settings, then exit
14362 -q, --quiet do not print progress messages
14363 -d, --debug don't remove temporary files
14364 --recheck update $as_me by reconfiguring in the same conditions
14365 --file=FILE[:TEMPLATE]
14366 instantiate the configuration file FILE
14367 --header=FILE[:TEMPLATE]
14368 instantiate the configuration header FILE
14369
14370 Configuration files:
14371 $config_files
14372
14373 Configuration headers:
14374 $config_headers
14375
14376 Configuration commands:
14377 $config_commands
14378
14379 Report bugs to <[email protected]>."
14380
14381 _ACEOF
14382 cat >>$CONFIG_STATUS <<_ACEOF
14383 ac_cs_version="\\
14384 briquolo config.status 0.5.7
14385 configured by $0, generated by GNU Autoconf 2.61,
14386 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14387
14388 Copyright (C) 2006 Free Software Foundation, Inc.
14389 This config.status script is free software; the Free Software Foundation
14390 gives unlimited permission to copy, distribute and modify it."
14391
14392 ac_pwd='$ac_pwd'
14393 srcdir='$srcdir'
14394 INSTALL='$INSTALL'
14395 _ACEOF
14396
14397 cat >>$CONFIG_STATUS <<\_ACEOF
14398 # If no file are specified by the user, then we need to provide default
14399 # value. By we need to know if files were specified by the user.
14400 ac_need_defaults=:
14401 while test $# != 0
14402 do
14403 case $1 in
14404 --*=*)
14405 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14406 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14407 ac_shift=:
14408 ;;
14409 *)
14410 ac_option=$1
14411 ac_optarg=$2
14412 ac_shift=shift
14413 ;;
14414 esac
14415
14416 case $ac_option in
14417 # Handling of the options.
14418 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14419 ac_cs_recheck=: ;;
14420 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14421 echo "$ac_cs_version"; exit ;;
14422 --debug | --debu | --deb | --de | --d | -d )
14423 debug=: ;;
14424 --file | --fil | --fi | --f )
14425 $ac_shift
14426 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14427 ac_need_defaults=false;;
14428 --header | --heade | --head | --hea )
14429 $ac_shift
14430 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14431 ac_need_defaults=false;;
14432 --he | --h)
14433 # Conflict between --help and --header
14434 { echo "$as_me: error: ambiguous option: $1
14435 Try \`$0 --help' for more information." >&2
14436 { (exit 1); exit 1; }; };;
14437 --help | --hel | -h )
14438 echo "$ac_cs_usage"; exit ;;
14439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14441 ac_cs_silent=: ;;
14442
14443 # This is an error.
14444 -*) { echo "$as_me: error: unrecognized option: $1
14445 Try \`$0 --help' for more information." >&2
14446 { (exit 1); exit 1; }; } ;;
14447
14448 *) ac_config_targets="$ac_config_targets $1"
14449 ac_need_defaults=false ;;
14450
14451 esac
14452 shift
14453 done
14454
14455 ac_configure_extra_args=
14456
14457 if $ac_cs_silent; then
14458 exec 6>/dev/null
14459 ac_configure_extra_args="$ac_configure_extra_args --silent"
14460 fi
14461
14462 _ACEOF
14463 cat >>$CONFIG_STATUS <<_ACEOF
14464 if \$ac_cs_recheck; then
14465 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14466 CONFIG_SHELL=$SHELL
14467 export CONFIG_SHELL
14468 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14469 fi
14470
14471 _ACEOF
14472 cat >>$CONFIG_STATUS <<\_ACEOF
14473 exec 5>>config.log
14474 {
14475 echo
14476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14477 ## Running $as_me. ##
14478 _ASBOX
14479 echo "$ac_log"
14480 } >&5
14481
14482 _ACEOF
14483 cat >>$CONFIG_STATUS <<_ACEOF
14484 #
14485 # INIT-COMMANDS
14486 #
14487 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14488 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14489 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14490 # from automake.
14491 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14492 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14493 LINGUAS="${LINGUAS-%UNSET%}"
14494
14495
14496 _ACEOF
14497
14498 cat >>$CONFIG_STATUS <<\_ACEOF
14499
14500 # Handling of arguments.
14501 for ac_config_target in $ac_config_targets
14502 do
14503 case $ac_config_target in
14504 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14505 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14506 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14507 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14508 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14509 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
14510 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14511 "desktop/Makefile") CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;;
14512 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
14513 "data/data/Makefile") CONFIG_FILES="$CONFIG_FILES data/data/Makefile" ;;
14514 "data/tableau/Makefile") CONFIG_FILES="$CONFIG_FILES data/tableau/Makefile" ;;
14515 "data/tableau/old/Makefile") CONFIG_FILES="$CONFIG_FILES data/tableau/old/Makefile" ;;
14516 "data/tableau/new/Makefile") CONFIG_FILES="$CONFIG_FILES data/tableau/new/Makefile" ;;
14517 "src/MOGL/Makefile") CONFIG_FILES="$CONFIG_FILES src/MOGL/Makefile" ;;
14518 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14519
14520 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14521 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14522 { (exit 1); exit 1; }; };;
14523 esac
14524 done
14525
14526
14527 # If the user did not use the arguments to specify the items to instantiate,
14528 # then the envvar interface is used. Set only those that are not.
14529 # We use the long form for the default assignment because of an extremely
14530 # bizarre bug on SunOS 4.1.3.
14531 if $ac_need_defaults; then
14532 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14533 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14534 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14535 fi
14536
14537 # Have a temporary directory for convenience. Make it in the build tree
14538 # simply because there is no reason against having it here, and in addition,
14539 # creating and moving files from /tmp can sometimes cause problems.
14540 # Hook for its removal unless debugging.
14541 # Note that there is a small window in which the directory will not be cleaned:
14542 # after its creation but before its name has been assigned to `$tmp'.
14543 $debug ||
14544 {
14545 tmp=
14546 trap 'exit_status=$?
14547 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14548 ' 0
14549 trap '{ (exit 1); exit 1; }' 1 2 13 15
14550 }
14551 # Create a (secure) tmp directory for tmp files.
14552
14553 {
14554 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14555 test -n "$tmp" && test -d "$tmp"
14556 } ||
14557 {
14558 tmp=./conf$$-$RANDOM
14559 (umask 077 && mkdir "$tmp")
14560 } ||
14561 {
14562 echo "$me: cannot create a temporary directory in ." >&2
14563 { (exit 1); exit 1; }
14564 }
14565
14566 #
14567 # Set up the sed scripts for CONFIG_FILES section.
14568 #
14569
14570 # No need to generate the scripts if there are no CONFIG_FILES.
14571 # This happens for instance when ./config.status config.h
14572 if test -n "$CONFIG_FILES"; then
14573
14574 _ACEOF
14575
14576
14577
14578 ac_delim='%!_!# '
14579 for ac_last_try in false false false false false :; do
14580 cat >conf$$subs.sed <<_ACEOF
14581 SHELL!$SHELL$ac_delim
14582 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14583 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14584 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14585 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14586 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14587 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14588 exec_prefix!$exec_prefix$ac_delim
14589 prefix!$prefix$ac_delim
14590 program_transform_name!$program_transform_name$ac_delim
14591 bindir!$bindir$ac_delim
14592 sbindir!$sbindir$ac_delim
14593 libexecdir!$libexecdir$ac_delim
14594 datarootdir!$datarootdir$ac_delim
14595 datadir!$datadir$ac_delim
14596 sysconfdir!$sysconfdir$ac_delim
14597 sharedstatedir!$sharedstatedir$ac_delim
14598 localstatedir!$localstatedir$ac_delim
14599 includedir!$includedir$ac_delim
14600 oldincludedir!$oldincludedir$ac_delim
14601 docdir!$docdir$ac_delim
14602 infodir!$infodir$ac_delim
14603 htmldir!$htmldir$ac_delim
14604 dvidir!$dvidir$ac_delim
14605 pdfdir!$pdfdir$ac_delim
14606 psdir!$psdir$ac_delim
14607 libdir!$libdir$ac_delim
14608 localedir!$localedir$ac_delim
14609 mandir!$mandir$ac_delim
14610 DEFS!$DEFS$ac_delim
14611 ECHO_C!$ECHO_C$ac_delim
14612 ECHO_N!$ECHO_N$ac_delim
14613 ECHO_T!$ECHO_T$ac_delim
14614 LIBS!$LIBS$ac_delim
14615 build_alias!$build_alias$ac_delim
14616 host_alias!$host_alias$ac_delim
14617 target_alias!$target_alias$ac_delim
14618 build!$build$ac_delim
14619 build_cpu!$build_cpu$ac_delim
14620 build_vendor!$build_vendor$ac_delim
14621 build_os!$build_os$ac_delim
14622 host!$host$ac_delim
14623 host_cpu!$host_cpu$ac_delim
14624 host_vendor!$host_vendor$ac_delim
14625 host_os!$host_os$ac_delim
14626 target!$target$ac_delim
14627 target_cpu!$target_cpu$ac_delim
14628 target_vendor!$target_vendor$ac_delim
14629 target_os!$target_os$ac_delim
14630 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14631 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14632 INSTALL_DATA!$INSTALL_DATA$ac_delim
14633 CYGPATH_W!$CYGPATH_W$ac_delim
14634 PACKAGE!$PACKAGE$ac_delim
14635 VERSION!$VERSION$ac_delim
14636 ACLOCAL!$ACLOCAL$ac_delim
14637 AUTOCONF!$AUTOCONF$ac_delim
14638 AUTOMAKE!$AUTOMAKE$ac_delim
14639 AUTOHEADER!$AUTOHEADER$ac_delim
14640 MAKEINFO!$MAKEINFO$ac_delim
14641 install_sh!$install_sh$ac_delim
14642 STRIP!$STRIP$ac_delim
14643 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14644 mkdir_p!$mkdir_p$ac_delim
14645 AWK!$AWK$ac_delim
14646 SET_MAKE!$SET_MAKE$ac_delim
14647 am__leading_dot!$am__leading_dot$ac_delim
14648 AMTAR!$AMTAR$ac_delim
14649 am__tar!$am__tar$ac_delim
14650 am__untar!$am__untar$ac_delim
14651 CXX!$CXX$ac_delim
14652 CXXFLAGS!$CXXFLAGS$ac_delim
14653 LDFLAGS!$LDFLAGS$ac_delim
14654 CPPFLAGS!$CPPFLAGS$ac_delim
14655 ac_ct_CXX!$ac_ct_CXX$ac_delim
14656 EXEEXT!$EXEEXT$ac_delim
14657 OBJEXT!$OBJEXT$ac_delim
14658 DEPDIR!$DEPDIR$ac_delim
14659 am__include!$am__include$ac_delim
14660 am__quote!$am__quote$ac_delim
14661 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14662 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14663 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14664 CXXDEPMODE!$CXXDEPMODE$ac_delim
14665 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
14666 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
14667 CC!$CC$ac_delim
14668 CFLAGS!$CFLAGS$ac_delim
14669 ac_ct_CC!$ac_ct_CC$ac_delim
14670 CCDEPMODE!$CCDEPMODE$ac_delim
14671 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14672 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14673 RANLIB!$RANLIB$ac_delim
14674 YACC!$YACC$ac_delim
14675 YFLAGS!$YFLAGS$ac_delim
14676 ALLOCA!$ALLOCA$ac_delim
14677 CPP!$CPP$ac_delim
14678 _ACEOF
14679
14680 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14681 break
14682 elif $ac_last_try; then
14683 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14684 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14685 { (exit 1); exit 1; }; }
14686 else
14687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14688 fi
14689 done
14690
14691 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14692 if test -n "$ac_eof"; then
14693 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14694 ac_eof=`expr $ac_eof + 1`
14695 fi
14696
14697 cat >>$CONFIG_STATUS <<_ACEOF
14698 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14700 _ACEOF
14701 sed '
14702 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14703 s/^/s,@/; s/!/@,|#_!!_#|/
14704 :n
14705 t n
14706 s/'"$ac_delim"'$/,g/; t
14707 s/$/\\/; p
14708 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14709 ' >>$CONFIG_STATUS <conf$$subs.sed
14710 rm -f conf$$subs.sed
14711 cat >>$CONFIG_STATUS <<_ACEOF
14712 CEOF$ac_eof
14713 _ACEOF
14714
14715
14716 ac_delim='%!_!# '
14717 for ac_last_try in false false false false false :; do
14718 cat >conf$$subs.sed <<_ACEOF
14719 GREP!$GREP$ac_delim
14720 EGREP!$EGREP$ac_delim
14721 LIBOBJS!$LIBOBJS$ac_delim
14722 freetypeconfig!$freetypeconfig$ac_delim
14723 pngconfig!$pngconfig$ac_delim
14724 SDL_CONFIG!$SDL_CONFIG$ac_delim
14725 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
14726 SDL_LIBS!$SDL_LIBS$ac_delim
14727 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
14728 USE_NLS!$USE_NLS$ac_delim
14729 MSGFMT!$MSGFMT$ac_delim
14730 GMSGFMT!$GMSGFMT$ac_delim
14731 XGETTEXT!$XGETTEXT$ac_delim
14732 MSGMERGE!$MSGMERGE$ac_delim
14733 GLIBC21!$GLIBC21$ac_delim
14734 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
14735 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
14736 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
14737 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
14738 LIBICONV!$LIBICONV$ac_delim
14739 LTLIBICONV!$LTLIBICONV$ac_delim
14740 INTLBISON!$INTLBISON$ac_delim
14741 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
14742 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
14743 CATOBJEXT!$CATOBJEXT$ac_delim
14744 DATADIRNAME!$DATADIRNAME$ac_delim
14745 INSTOBJEXT!$INSTOBJEXT$ac_delim
14746 GENCAT!$GENCAT$ac_delim
14747 INTLOBJS!$INTLOBJS$ac_delim
14748 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
14749 INTLLIBS!$INTLLIBS$ac_delim
14750 LIBINTL!$LIBINTL$ac_delim
14751 LTLIBINTL!$LTLIBINTL$ac_delim
14752 POSUB!$POSUB$ac_delim
14753 XMKMF!$XMKMF$ac_delim
14754 LTLIBOBJS!$LTLIBOBJS$ac_delim
14755 _ACEOF
14756
14757 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
14758 break
14759 elif $ac_last_try; then
14760 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14761 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14762 { (exit 1); exit 1; }; }
14763 else
14764 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14765 fi
14766 done
14767
14768 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14769 if test -n "$ac_eof"; then
14770 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14771 ac_eof=`expr $ac_eof + 1`
14772 fi
14773
14774 cat >>$CONFIG_STATUS <<_ACEOF
14775 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14777 _ACEOF
14778 sed '
14779 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14780 s/^/s,@/; s/!/@,|#_!!_#|/
14781 :n
14782 t n
14783 s/'"$ac_delim"'$/,g/; t
14784 s/$/\\/; p
14785 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14786 ' >>$CONFIG_STATUS <conf$$subs.sed
14787 rm -f conf$$subs.sed
14788 cat >>$CONFIG_STATUS <<_ACEOF
14789 :end
14790 s/|#_!!_#|//g
14791 CEOF$ac_eof
14792 _ACEOF
14793
14794
14795 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14796 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14797 # trailing colons and then remove the whole line if VPATH becomes empty
14798 # (actually we leave an empty line to preserve line numbers).
14799 if test "x$srcdir" = x.; then
14800 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14801 s/:*\$(srcdir):*/:/
14802 s/:*\${srcdir}:*/:/
14803 s/:*@srcdir@:*/:/
14804 s/^\([^=]*=[ ]*\):*/\1/
14805 s/:*$//
14806 s/^[^=]*=[ ]*$//
14807 }'
14808 fi
14809
14810 cat >>$CONFIG_STATUS <<\_ACEOF
14811 fi # test -n "$CONFIG_FILES"
14812
14813
14814 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14815 do
14816 case $ac_tag in
14817 :[FHLC]) ac_mode=$ac_tag; continue;;
14818 esac
14819 case $ac_mode$ac_tag in
14820 :[FHL]*:*);;
14821 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14822 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14823 { (exit 1); exit 1; }; };;
14824 :[FH]-) ac_tag=-:-;;
14825 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14826 esac
14827 ac_save_IFS=$IFS
14828 IFS=:
14829 set x $ac_tag
14830 IFS=$ac_save_IFS
14831 shift
14832 ac_file=$1
14833 shift
14834
14835 case $ac_mode in
14836 :L) ac_source=$1;;
14837 :[FH])
14838 ac_file_inputs=
14839 for ac_f
14840 do
14841 case $ac_f in
14842 -) ac_f="$tmp/stdin";;
14843 *) # Look for the file first in the build tree, then in the source tree
14844 # (if the path is not absolute). The absolute path cannot be DOS-style,
14845 # because $ac_f cannot contain `:'.
14846 test -f "$ac_f" ||
14847 case $ac_f in
14848 [\\/$]*) false;;
14849 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14850 esac ||
14851 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14852 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14853 { (exit 1); exit 1; }; };;
14854 esac
14855 ac_file_inputs="$ac_file_inputs $ac_f"
14856 done
14857
14858 # Let's still pretend it is `configure' which instantiates (i.e., don't
14859 # use $as_me), people would be surprised to read:
14860 # /* config.h. Generated by config.status. */
14861 configure_input="Generated from "`IFS=:
14862 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14863 if test x"$ac_file" != x-; then
14864 configure_input="$ac_file. $configure_input"
14865 { echo "$as_me:$LINENO: creating $ac_file" >&5
14866 echo "$as_me: creating $ac_file" >&6;}
14867 fi
14868
14869 case $ac_tag in
14870 *:-:* | *:-) cat >"$tmp/stdin";;
14871 esac
14872 ;;
14873 esac
14874
14875 ac_dir=`$as_dirname -- "$ac_file" ||
14876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14877 X"$ac_file" : 'X\(//\)[^/]' \| \
14878 X"$ac_file" : 'X\(//\)$' \| \
14879 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14880 echo X"$ac_file" |
14881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14882 s//\1/
14883 q
14884 }
14885 /^X\(\/\/\)[^/].*/{
14886 s//\1/
14887 q
14888 }
14889 /^X\(\/\/\)$/{
14890 s//\1/
14891 q
14892 }
14893 /^X\(\/\).*/{
14894 s//\1/
14895 q
14896 }
14897 s/.*/./; q'`
14898 { as_dir="$ac_dir"
14899 case $as_dir in #(
14900 -*) as_dir=./$as_dir;;
14901 esac
14902 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14903 as_dirs=
14904 while :; do
14905 case $as_dir in #(
14906 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14907 *) as_qdir=$as_dir;;
14908 esac
14909 as_dirs="'$as_qdir' $as_dirs"
14910 as_dir=`$as_dirname -- "$as_dir" ||
14911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14912 X"$as_dir" : 'X\(//\)[^/]' \| \
14913 X"$as_dir" : 'X\(//\)$' \| \
14914 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14915 echo X"$as_dir" |
14916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14917 s//\1/
14918 q
14919 }
14920 /^X\(\/\/\)[^/].*/{
14921 s//\1/
14922 q
14923 }
14924 /^X\(\/\/\)$/{
14925 s//\1/
14926 q
14927 }
14928 /^X\(\/\).*/{
14929 s//\1/
14930 q
14931 }
14932 s/.*/./; q'`
14933 test -d "$as_dir" && break
14934 done
14935 test -z "$as_dirs" || eval "mkdir $as_dirs"
14936 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14937 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14938 { (exit 1); exit 1; }; }; }
14939 ac_builddir=.
14940
14941 case "$ac_dir" in
14942 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14943 *)
14944 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14945 # A ".." for each directory in $ac_dir_suffix.
14946 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14947 case $ac_top_builddir_sub in
14948 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14949 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14950 esac ;;
14951 esac
14952 ac_abs_top_builddir=$ac_pwd
14953 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14954 # for backward compatibility:
14955 ac_top_builddir=$ac_top_build_prefix
14956
14957 case $srcdir in
14958 .) # We are building in place.
14959 ac_srcdir=.
14960 ac_top_srcdir=$ac_top_builddir_sub
14961 ac_abs_top_srcdir=$ac_pwd ;;
14962 [\\/]* | ?:[\\/]* ) # Absolute name.
14963 ac_srcdir=$srcdir$ac_dir_suffix;
14964 ac_top_srcdir=$srcdir
14965 ac_abs_top_srcdir=$srcdir ;;
14966 *) # Relative name.
14967 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14968 ac_top_srcdir=$ac_top_build_prefix$srcdir
14969 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14970 esac
14971 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14972
14973
14974 case $ac_mode in
14975 :F)
14976 #
14977 # CONFIG_FILE
14978 #
14979
14980 case $INSTALL in
14981 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14982 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14983 esac
14984 _ACEOF
14985
14986 cat >>$CONFIG_STATUS <<\_ACEOF
14987 # If the template does not know about datarootdir, expand it.
14988 # FIXME: This hack should be removed a few years after 2.60.
14989 ac_datarootdir_hack=; ac_datarootdir_seen=
14990
14991 case `sed -n '/datarootdir/ {
14992 p
14993 q
14994 }
14995 /@datadir@/p
14996 /@docdir@/p
14997 /@infodir@/p
14998 /@localedir@/p
14999 /@mandir@/p
15000 ' $ac_file_inputs` in
15001 *datarootdir*) ac_datarootdir_seen=yes;;
15002 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15003 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15004 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15005 _ACEOF
15006 cat >>$CONFIG_STATUS <<_ACEOF
15007 ac_datarootdir_hack='
15008 s&@datadir@&$datadir&g
15009 s&@docdir@&$docdir&g
15010 s&@infodir@&$infodir&g
15011 s&@localedir@&$localedir&g
15012 s&@mandir@&$mandir&g
15013 s&\\\${datarootdir}&$datarootdir&g' ;;
15014 esac
15015 _ACEOF
15016
15017 # Neutralize VPATH when `$srcdir' = `.'.
15018 # Shell code in configure.ac might set extrasub.
15019 # FIXME: do we really want to maintain this feature?
15020 cat >>$CONFIG_STATUS <<_ACEOF
15021 sed "$ac_vpsub
15022 $extrasub
15023 _ACEOF
15024 cat >>$CONFIG_STATUS <<\_ACEOF
15025 :t
15026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15027 s&@configure_input@&$configure_input&;t t
15028 s&@top_builddir@&$ac_top_builddir_sub&;t t
15029 s&@srcdir@&$ac_srcdir&;t t
15030 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15031 s&@top_srcdir@&$ac_top_srcdir&;t t
15032 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15033 s&@builddir@&$ac_builddir&;t t
15034 s&@abs_builddir@&$ac_abs_builddir&;t t
15035 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15036 s&@INSTALL@&$ac_INSTALL&;t t
15037 $ac_datarootdir_hack
15038 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15039
15040 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15041 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15042 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15043 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15044 which seems to be undefined. Please make sure it is defined." >&5
15045 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15046 which seems to be undefined. Please make sure it is defined." >&2;}
15047
15048 rm -f "$tmp/stdin"
15049 case $ac_file in
15050 -) cat "$tmp/out"; rm -f "$tmp/out";;
15051 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15052 esac
15053 ;;
15054 :H)
15055 #
15056 # CONFIG_HEADER
15057 #
15058 _ACEOF
15059
15060 # Transform confdefs.h into a sed script `conftest.defines', that
15061 # substitutes the proper values into config.h.in to produce config.h.
15062 rm -f conftest.defines conftest.tail
15063 # First, append a space to every undef/define line, to ease matching.
15064 echo 's/$/ /' >conftest.defines
15065 # Then, protect against being on the right side of a sed subst, or in
15066 # an unquoted here document, in config.status. If some macros were
15067 # called several times there might be several #defines for the same
15068 # symbol, which is useless. But do not sort them, since the last
15069 # AC_DEFINE must be honored.
15070 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15071 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15072 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15073 # PARAMS is the parameter list in the macro definition--in most cases, it's
15074 # just an empty string.
15075 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15076 ac_dB='\\)[ (].*,\\1define\\2'
15077 ac_dC=' '
15078 ac_dD=' ,'
15079
15080 uniq confdefs.h |
15081 sed -n '
15082 t rset
15083 :rset
15084 s/^[ ]*#[ ]*define[ ][ ]*//
15085 t ok
15086 d
15087 :ok
15088 s/[\\&,]/\\&/g
15089 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15090 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15091 ' >>conftest.defines
15092
15093 # Remove the space that was appended to ease matching.
15094 # Then replace #undef with comments. This is necessary, for
15095 # example, in the case of _POSIX_SOURCE, which is predefined and required
15096 # on some systems where configure will not decide to define it.
15097 # (The regexp can be short, since the line contains either #define or #undef.)
15098 echo 's/ $//
15099 s,^[ #]*u.*,/* & */,' >>conftest.defines
15100
15101 # Break up conftest.defines:
15102 ac_max_sed_lines=50
15103
15104 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15105 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15106 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15107 # et cetera.
15108 ac_in='$ac_file_inputs'
15109 ac_out='"$tmp/out1"'
15110 ac_nxt='"$tmp/out2"'
15111
15112 while :
15113 do
15114 # Write a here document:
15115 cat >>$CONFIG_STATUS <<_ACEOF
15116 # First, check the format of the line:
15117 cat >"\$tmp/defines.sed" <<\\CEOF
15118 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15119 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15120 b
15121 :def
15122 _ACEOF
15123 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15124 echo 'CEOF
15125 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15126 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15127 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15128 grep . conftest.tail >/dev/null || break
15129 rm -f conftest.defines
15130 mv conftest.tail conftest.defines
15131 done
15132 rm -f conftest.defines conftest.tail
15133
15134 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15135 cat >>$CONFIG_STATUS <<\_ACEOF
15136 if test x"$ac_file" != x-; then
15137 echo "/* $configure_input */" >"$tmp/config.h"
15138 cat "$ac_result" >>"$tmp/config.h"
15139 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15140 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15141 echo "$as_me: $ac_file is unchanged" >&6;}
15142 else
15143 rm -f $ac_file
15144 mv "$tmp/config.h" $ac_file
15145 fi
15146 else
15147 echo "/* $configure_input */"
15148 cat "$ac_result"
15149 fi
15150 rm -f "$tmp/out12"
15151 # Compute $ac_file's index in $config_headers.
15152 _am_stamp_count=1
15153 for _am_header in $config_headers :; do
15154 case $_am_header in
15155 $ac_file | $ac_file:* )
15156 break ;;
15157 * )
15158 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15159 esac
15160 done
15161 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
15162 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15163 X$ac_file : 'X\(//\)[^/]' \| \
15164 X$ac_file : 'X\(//\)$' \| \
15165 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
15166 echo X$ac_file |
15167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15168 s//\1/
15169 q
15170 }
15171 /^X\(\/\/\)[^/].*/{
15172 s//\1/
15173 q
15174 }
15175 /^X\(\/\/\)$/{
15176 s//\1/
15177 q
15178 }
15179 /^X\(\/\).*/{
15180 s//\1/
15181 q
15182 }
15183 s/.*/./; q'`/stamp-h$_am_stamp_count
15184 ;;
15185
15186 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15187 echo "$as_me: executing $ac_file commands" >&6;}
15188 ;;
15189 esac
15190
15191
15192 case $ac_file$ac_mode in
15193 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15194 # Strip MF so we end up with the name of the file.
15195 mf=`echo "$mf" | sed -e 's/:.*$//'`
15196 # Check whether this is an Automake generated Makefile or not.
15197 # We used to match only the files named `Makefile.in', but
15198 # some people rename them; so instead we look at the file content.
15199 # Grep'ing the first line is not enough: some people post-process
15200 # each Makefile.in and add a new line on top of each file to say so.
15201 # So let's grep whole file.
15202 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15203 dirpart=`$as_dirname -- "$mf" ||
15204 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15205 X"$mf" : 'X\(//\)[^/]' \| \
15206 X"$mf" : 'X\(//\)$' \| \
15207 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15208 echo X"$mf" |
15209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15210 s//\1/
15211 q
15212 }
15213 /^X\(\/\/\)[^/].*/{
15214 s//\1/
15215 q
15216 }
15217 /^X\(\/\/\)$/{
15218 s//\1/
15219 q
15220 }
15221 /^X\(\/\).*/{
15222 s//\1/
15223 q
15224 }
15225 s/.*/./; q'`
15226 else
15227 continue
15228 fi
15229 # Extract the definition of DEPDIR, am__include, and am__quote
15230 # from the Makefile without running `make'.
15231 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15232 test -z "$DEPDIR" && continue
15233 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15234 test -z "am__include" && continue
15235 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15236 # When using ansi2knr, U may be empty or an underscore; expand it
15237 U=`sed -n 's/^U = //p' < "$mf"`
15238 # Find all dependency output files, they are included files with
15239 # $(DEPDIR) in their names. We invoke sed twice because it is the
15240 # simplest approach to changing $(DEPDIR) to its actual value in the
15241 # expansion.
15242 for file in `sed -n "
15243 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15244 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15245 # Make sure the directory exists.
15246 test -f "$dirpart/$file" && continue
15247 fdir=`$as_dirname -- "$file" ||
15248 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15249 X"$file" : 'X\(//\)[^/]' \| \
15250 X"$file" : 'X\(//\)$' \| \
15251 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15252 echo X"$file" |
15253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15254 s//\1/
15255 q
15256 }
15257 /^X\(\/\/\)[^/].*/{
15258 s//\1/
15259 q
15260 }
15261 /^X\(\/\/\)$/{
15262 s//\1/
15263 q
15264 }
15265 /^X\(\/\).*/{
15266 s//\1/
15267 q
15268 }
15269 s/.*/./; q'`
15270 { as_dir=$dirpart/$fdir
15271 case $as_dir in #(
15272 -*) as_dir=./$as_dir;;
15273 esac
15274 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15275 as_dirs=
15276 while :; do
15277 case $as_dir in #(
15278 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15279 *) as_qdir=$as_dir;;
15280 esac
15281 as_dirs="'$as_qdir' $as_dirs"
15282 as_dir=`$as_dirname -- "$as_dir" ||
15283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15284 X"$as_dir" : 'X\(//\)[^/]' \| \
15285 X"$as_dir" : 'X\(//\)$' \| \
15286 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15287 echo X"$as_dir" |
15288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15289 s//\1/
15290 q
15291 }
15292 /^X\(\/\/\)[^/].*/{
15293 s//\1/
15294 q
15295 }
15296 /^X\(\/\/\)$/{
15297 s//\1/
15298 q
15299 }
15300 /^X\(\/\).*/{
15301 s//\1/
15302 q
15303 }
15304 s/.*/./; q'`
15305 test -d "$as_dir" && break
15306 done
15307 test -z "$as_dirs" || eval "mkdir $as_dirs"
15308 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15309 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15310 { (exit 1); exit 1; }; }; }
15311 # echo "creating $dirpart/$file"
15312 echo '# dummy' > "$dirpart/$file"
15313 done
15314 done
15315 ;;
15316 "default-1":C)
15317 for ac_file in $CONFIG_FILES; do
15318 # Support "outfile[:infile[:infile...]]"
15319 case "$ac_file" in
15320 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15321 esac
15322 # PO directories have a Makefile.in generated from Makefile.in.in.
15323 case "$ac_file" in */Makefile.in)
15324 # Adjust a relative srcdir.
15325 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15326 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15327 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15328 # In autoconf-2.13 it is called $ac_given_srcdir.
15329 # In autoconf-2.50 it is called $srcdir.
15330 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15331 case "$ac_given_srcdir" in
15332 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15333 /*) top_srcdir="$ac_given_srcdir" ;;
15334 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15335 esac
15336 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15337 rm -f "$ac_dir/POTFILES"
15338 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15339 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15340 POMAKEFILEDEPS="POTFILES.in"
15341 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15342 # on $ac_dir but don't depend on user-specified configuration
15343 # parameters.
15344 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15345 # The LINGUAS file contains the set of available languages.
15346 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15347 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15348 fi
15349 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15350 # Hide the ALL_LINGUAS assigment from automake.
15351 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15352 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15353 else
15354 # The set of available languages was given in configure.in.
15355 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15356 fi
15357 # Compute POFILES
15358 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15359 # Compute UPDATEPOFILES
15360 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15361 # Compute DUMMYPOFILES
15362 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15363 # Compute GMOFILES
15364 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15365 case "$ac_given_srcdir" in
15366 .) srcdirpre= ;;
15367 *) srcdirpre='$(srcdir)/' ;;
15368 esac
15369 POFILES=
15370 UPDATEPOFILES=
15371 DUMMYPOFILES=
15372 GMOFILES=
15373 for lang in $ALL_LINGUAS; do
15374 POFILES="$POFILES $srcdirpre$lang.po"
15375 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15376 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15377 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15378 done
15379 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15380 # environment variable.
15381 INST_LINGUAS=
15382 if test -n "$ALL_LINGUAS"; then
15383 for presentlang in $ALL_LINGUAS; do
15384 useit=no
15385 if test "%UNSET%" != "$LINGUAS"; then
15386 desiredlanguages="$LINGUAS"
15387 else
15388 desiredlanguages="$ALL_LINGUAS"
15389 fi
15390 for desiredlang in $desiredlanguages; do
15391 # Use the presentlang catalog if desiredlang is
15392 # a. equal to presentlang, or
15393 # b. a variant of presentlang (because in this case,
15394 # presentlang can be used as a fallback for messages
15395 # which are not translated in the desiredlang catalog).
15396 case "$desiredlang" in
15397 "$presentlang"*) useit=yes;;
15398 esac
15399 done
15400 if test $useit = yes; then
15401 INST_LINGUAS="$INST_LINGUAS $presentlang"
15402 fi
15403 done
15404 fi
15405 CATALOGS=
15406 if test -n "$INST_LINGUAS"; then
15407 for lang in $INST_LINGUAS; do
15408 CATALOGS="$CATALOGS $lang.gmo"
15409 done
15410 fi
15411 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15412 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15413 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15414 if test -f "$f"; then
15415 case "$f" in
15416 *.orig | *.bak | *~) ;;
15417 *) cat "$f" >> "$ac_dir/Makefile" ;;
15418 esac
15419 fi
15420 done
15421 fi
15422 ;;
15423 esac
15424 done ;;
15425
15426 esac
15427 done # for ac_tag
15428
15429
15430 { (exit 0); exit 0; }
15431 _ACEOF
15432 chmod +x $CONFIG_STATUS
15433 ac_clean_files=$ac_clean_files_save
15434
15435
15436 # configure is writing to config.log, and then calls config.status.
15437 # config.status does its own redirection, appending to config.log.
15438 # Unfortunately, on DOS this fails, as config.log is still kept open
15439 # by configure, so config.status won't be able to write to it; its
15440 # output is simply discarded. So we exec the FD to /dev/null,
15441 # effectively closing config.log, so it can be properly (re)opened and
15442 # appended to by config.status. When coming back to configure, we
15443 # need to make the FD available again.
15444 if test "$no_create" != yes; then
15445 ac_cs_success=:
15446 ac_config_status_args=
15447 test "$silent" = yes &&
15448 ac_config_status_args="$ac_config_status_args --quiet"
15449 exec 5>/dev/null
15450 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15451 exec 5>>config.log
15452 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15453 # would make configure fail if this is the last instruction.
15454 $ac_cs_success || { (exit 1); exit 1; }
15455 fi
15456