64bit compatibility fixes
[swftools.git] / configure
blob2f5b9d2f78dbc818ea0a5cac5dfefe418ef00ee4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="src/"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='SHELL
639 PATH_SEPARATOR
640 PACKAGE_NAME
641 PACKAGE_TARNAME
642 PACKAGE_VERSION
643 PACKAGE_STRING
644 PACKAGE_BUGREPORT
645 exec_prefix
646 prefix
647 program_transform_name
648 bindir
649 sbindir
650 libexecdir
651 datarootdir
652 datadir
653 sysconfdir
654 sharedstatedir
655 localstatedir
656 includedir
657 oldincludedir
658 docdir
659 infodir
660 htmldir
661 dvidir
662 pdfdir
663 psdir
664 libdir
665 localedir
666 mandir
667 DEFS
668 ECHO_C
669 ECHO_N
670 ECHO_T
671 LIBS
672 build_alias
673 host_alias
674 target_alias
675 build
676 build_cpu
677 build_vendor
678 build_os
679 host
680 host_cpu
681 host_vendor
682 host_os
683 SHARED
685 CFLAGS
686 LDFLAGS
687 CPPFLAGS
688 ac_ct_CC
689 EXEEXT
690 OBJEXT
692 CXXFLAGS
693 ac_ct_CXX
695 RANLIB
696 SET_MAKE
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 LN_S
701 UNCOMPRESS
702 PKG_CONFIG
703 AREXT
705 SLEXT
706 CXXLIBS
707 STRIP
708 target
709 target_cpu
710 target_vendor
711 target_os
712 WORDS_BIGENDIAN
713 SYSTEM_BACKTICKS
714 GREP
715 EGREP
716 PACKAGE
717 VERSION
718 HAVE_UNISTD_H
719 FREETYPE_CONFIG
720 DEVICE_OPENGL
721 lame_in_source
722 LIBART_CFLAGS
723 LIBART_LIBS
724 art_in_source
725 POPPLER_CFLAGS
726 POPPLER_LIBS
727 CXXCPP
728 xpdf_in_source
729 splash_in_source
730 AVIFILE_CONFIG
731 VIDEO_LIBS
732 VIDEO_CFLAGS
733 USE_GZIP
734 PYTHON_LIB
735 PYTHON_INCLUDES
736 HAVE_PYTHON_IMAGING
737 PDF2SWF
738 LIBPDF
739 JPEG2SWF
740 GIF2SWF
741 PNG2SWF
742 LIBOBJS
743 LTLIBOBJS'
744 ac_subst_files=''
745 ac_user_opts='
746 enable_option_checking
747 enable_checkmem
748 enable_debug
749 enable_profiling
750 enable_warnings
751 enable_optimizations
752 enable_lame
753 with_external_libart
754 with_poppler
756 ac_precious_vars='build_alias
757 host_alias
758 target_alias
760 CFLAGS
761 LDFLAGS
762 LIBS
763 CPPFLAGS
765 CXXFLAGS
768 PKG_CONFIG
769 LIBART_CFLAGS
770 LIBART_LIBS
771 POPPLER_CFLAGS
772 POPPLER_LIBS
773 CXXCPP'
776 # Initialize some variables set by options.
777 ac_init_help=
778 ac_init_version=false
779 ac_unrecognized_opts=
780 ac_unrecognized_sep=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
783 cache_file=/dev/null
784 exec_prefix=NONE
785 no_create=
786 no_recursion=
787 prefix=NONE
788 program_prefix=NONE
789 program_suffix=NONE
790 program_transform_name=s,x,x,
791 silent=
792 site=
793 srcdir=
794 verbose=
795 x_includes=NONE
796 x_libraries=NONE
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE}'
815 infodir='${datarootdir}/info'
816 htmldir='${docdir}'
817 dvidir='${docdir}'
818 pdfdir='${docdir}'
819 psdir='${docdir}'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
824 ac_prev=
825 ac_dashdash=
826 for ac_option
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
831 ac_prev=
832 continue
835 case $ac_option in
836 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 *) ac_optarg=yes ;;
838 esac
840 # Accept the important Cygnus configure options, so we can diagnose typos.
842 case $ac_dashdash$ac_option in
844 ac_dashdash=yes ;;
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 ac_prev=bindir ;;
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849 bindir=$ac_optarg ;;
851 -build | --build | --buil | --bui | --bu)
852 ac_prev=build_alias ;;
853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854 build_alias=$ac_optarg ;;
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861 cache_file=$ac_optarg ;;
863 --config-cache | -C)
864 cache_file=config.cache ;;
866 -datadir | --datadir | --datadi | --datad)
867 ac_prev=datadir ;;
868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 datadir=$ac_optarg ;;
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
878 -disable-* | --disable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
883 { (exit 1); exit 1; }; }
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=no ;;
895 -docdir | --docdir | --docdi | --doc | --do)
896 ac_prev=docdir ;;
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898 docdir=$ac_optarg ;;
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 ac_prev=dvidir ;;
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903 dvidir=$ac_optarg ;;
905 -enable-* | --enable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
910 { (exit 1); exit 1; }; }
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1110 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=\$ac_optarg ;;
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1132 { (exit 1); exit 1; }; }
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=no ;;
1144 --x)
1145 # Obsolete; use --with-x.
1146 with_x=yes ;;
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1162 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1163 Try \`$0 --help' for more information." >&2
1164 { (exit 1); exit 1; }; }
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1171 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1172 { (exit 1); exit 1; }; }
1173 eval $ac_envvar=\$ac_optarg
1174 export $ac_envvar ;;
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184 esac
1185 done
1187 if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1190 { (exit 1); exit 1; }; }
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1197 { (exit 1); exit 1; }; } ;;
1198 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 esac
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
1216 case $ac_val in
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 esac
1220 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1221 { (exit 1); exit 1; }; }
1222 done
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1236 If a cross compiler is detected then cross compile mode will be used." >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245 test "$silent" = yes && exec 6>/dev/null
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1252 { (exit 1); exit 1; }; }
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1255 { (exit 1); exit 1; }; }
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1276 /^X\(\/\/\)$/{
1277 s//\1/
1280 /^X\(\/\).*/{
1281 s//\1/
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1289 else
1290 ac_srcdir_defaulted=no
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1295 { (exit 1); exit 1; }; }
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1300 { (exit 1); exit 1; }; }
1301 pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326 \`configure' configures this package to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1335 Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379 _ACEOF
1381 cat <<\_ACEOF
1383 Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392 _ACEOF
1395 if test -n "$ac_init_help"; then
1397 cat <<\_ACEOF
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-checkmem turn on ccmalloc debugging
1404 --enable-debug turn on debugging
1405 --enable-profiling turn on profiling
1406 --enable-warnings turn on compiler warnings
1407 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1408 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1410 Optional Packages:
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --with-external-libart use external libart library (currently broken)
1414 --with-poppler use poppler instead of internal xpdf (currently broken)
1416 Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1424 CXX C++ compiler command
1425 CXXFLAGS C++ compiler flags
1426 CPP C preprocessor
1427 PKG_CONFIG path to pkg-config utility
1428 LIBART_CFLAGS
1429 C compiler flags for LIBART, overriding pkg-config
1430 LIBART_LIBS linker flags for LIBART, overriding pkg-config
1431 POPPLER_CFLAGS
1432 C compiler flags for POPPLER, overriding pkg-config
1433 POPPLER_LIBS
1434 linker flags for POPPLER, overriding pkg-config
1435 CXXCPP C++ preprocessor
1437 Use these variables to override the choices made by `configure' or to help
1438 it to find libraries and programs with nonstandard names/locations.
1440 _ACEOF
1441 ac_status=$?
1444 if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447 test -d "$ac_dir" ||
1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 continue
1450 ac_builddir=.
1452 case "$ac_dir" in
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 esac ;;
1462 esac
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1468 case $srcdir in
1469 .) # We are building in place.
1470 ac_srcdir=.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1477 *) # Relative name.
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 esac
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1492 else
1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 fi || ac_status=$?
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1496 done
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1501 cat <<\_ACEOF
1502 configure
1503 generated by GNU Autoconf 2.62
1505 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1506 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1509 _ACEOF
1510 exit
1512 cat >config.log <<_ACEOF
1513 This file contains any messages produced by compilers while
1514 running configure, to aid debugging if configure makes a mistake.
1516 It was created by $as_me, which was
1517 generated by GNU Autoconf 2.62. Invocation command line was
1519 $ $0 $@
1521 _ACEOF
1522 exec 5>>config.log
1524 cat <<_ASUNAME
1525 ## --------- ##
1526 ## Platform. ##
1527 ## --------- ##
1529 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1530 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1531 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1532 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1533 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1535 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1536 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1538 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1539 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1540 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1541 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1542 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1543 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1544 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1546 _ASUNAME
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1551 IFS=$as_save_IFS
1552 test -z "$as_dir" && as_dir=.
1553 $as_echo "PATH: $as_dir"
1554 done
1555 IFS=$as_save_IFS
1557 } >&5
1559 cat >&5 <<_ACEOF
1562 ## ----------- ##
1563 ## Core tests. ##
1564 ## ----------- ##
1566 _ACEOF
1569 # Keep a trace of the command line.
1570 # Strip out --no-create and --no-recursion so they do not pile up.
1571 # Strip out --silent because we don't want to record it for future runs.
1572 # Also quote any args containing shell meta-characters.
1573 # Make two passes to allow for proper duplicate-argument suppression.
1574 ac_configure_args=
1575 ac_configure_args0=
1576 ac_configure_args1=
1577 ac_must_keep_next=false
1578 for ac_pass in 1 2
1580 for ac_arg
1582 case $ac_arg in
1583 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1585 | -silent | --silent | --silen | --sile | --sil)
1586 continue ;;
1587 *\'*)
1588 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1589 esac
1590 case $ac_pass in
1591 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1593 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1594 if test $ac_must_keep_next = true; then
1595 ac_must_keep_next=false # Got value, back to normal.
1596 else
1597 case $ac_arg in
1598 *=* | --config-cache | -C | -disable-* | --disable-* \
1599 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1600 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1601 | -with-* | --with-* | -without-* | --without-* | --x)
1602 case "$ac_configure_args0 " in
1603 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1604 esac
1606 -* ) ac_must_keep_next=true ;;
1607 esac
1609 ac_configure_args="$ac_configure_args '$ac_arg'"
1611 esac
1612 done
1613 done
1614 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1615 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1617 # When interrupted or exit'd, cleanup temporary files, and complete
1618 # config.log. We remove comments because anyway the quotes in there
1619 # would cause problems or look ugly.
1620 # WARNING: Use '\'' to represent an apostrophe within the trap.
1621 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1622 trap 'exit_status=$?
1623 # Save into config.log some information that might help in debugging.
1625 echo
1627 cat <<\_ASBOX
1628 ## ---------------- ##
1629 ## Cache variables. ##
1630 ## ---------------- ##
1631 _ASBOX
1632 echo
1633 # The following way of writing the cache mishandles newlines in values,
1635 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1636 eval ac_val=\$$ac_var
1637 case $ac_val in #(
1638 *${as_nl}*)
1639 case $ac_var in #(
1640 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1641 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1642 esac
1643 case $ac_var in #(
1644 _ | IFS | as_nl) ;; #(
1645 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1646 *) $as_unset $ac_var ;;
1647 esac ;;
1648 esac
1649 done
1650 (set) 2>&1 |
1651 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1652 *${as_nl}ac_space=\ *)
1653 sed -n \
1654 "s/'\''/'\''\\\\'\'''\''/g;
1655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1656 ;; #(
1658 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1660 esac |
1661 sort
1663 echo
1665 cat <<\_ASBOX
1666 ## ----------------- ##
1667 ## Output variables. ##
1668 ## ----------------- ##
1669 _ASBOX
1670 echo
1671 for ac_var in $ac_subst_vars
1673 eval ac_val=\$$ac_var
1674 case $ac_val in
1675 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1676 esac
1677 $as_echo "$ac_var='\''$ac_val'\''"
1678 done | sort
1679 echo
1681 if test -n "$ac_subst_files"; then
1682 cat <<\_ASBOX
1683 ## ------------------- ##
1684 ## File substitutions. ##
1685 ## ------------------- ##
1686 _ASBOX
1687 echo
1688 for ac_var in $ac_subst_files
1690 eval ac_val=\$$ac_var
1691 case $ac_val in
1692 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1693 esac
1694 $as_echo "$ac_var='\''$ac_val'\''"
1695 done | sort
1696 echo
1699 if test -s confdefs.h; then
1700 cat <<\_ASBOX
1701 ## ----------- ##
1702 ## confdefs.h. ##
1703 ## ----------- ##
1704 _ASBOX
1705 echo
1706 cat confdefs.h
1707 echo
1709 test "$ac_signal" != 0 &&
1710 $as_echo "$as_me: caught signal $ac_signal"
1711 $as_echo "$as_me: exit $exit_status"
1712 } >&5
1713 rm -f core *.core core.conftest.* &&
1714 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1715 exit $exit_status
1717 for ac_signal in 1 2 13 15; do
1718 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1719 done
1720 ac_signal=0
1722 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1723 rm -f -r conftest* confdefs.h
1725 # Predefined preprocessor variables.
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_NAME "$PACKAGE_NAME"
1729 _ACEOF
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1734 _ACEOF
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1739 _ACEOF
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_STRING "$PACKAGE_STRING"
1744 _ACEOF
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1749 _ACEOF
1752 # Let the site file select an alternate cache file if it wants to.
1753 # Prefer an explicitly selected file to automatically selected ones.
1754 ac_site_file1=NONE
1755 ac_site_file2=NONE
1756 if test -n "$CONFIG_SITE"; then
1757 ac_site_file1=$CONFIG_SITE
1758 elif test "x$prefix" != xNONE; then
1759 ac_site_file1=$prefix/share/config.site
1760 ac_site_file2=$prefix/etc/config.site
1761 else
1762 ac_site_file1=$ac_default_prefix/share/config.site
1763 ac_site_file2=$ac_default_prefix/etc/config.site
1765 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1767 test "x$ac_site_file" = xNONE && continue
1768 if test -r "$ac_site_file"; then
1769 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1770 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1771 sed 's/^/| /' "$ac_site_file" >&5
1772 . "$ac_site_file"
1774 done
1776 if test -r "$cache_file"; then
1777 # Some versions of bash will fail to source /dev/null (special
1778 # files actually), so we avoid doing that.
1779 if test -f "$cache_file"; then
1780 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1781 $as_echo "$as_me: loading cache $cache_file" >&6;}
1782 case $cache_file in
1783 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1784 *) . "./$cache_file";;
1785 esac
1787 else
1788 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1789 $as_echo "$as_me: creating cache $cache_file" >&6;}
1790 >$cache_file
1793 # Check that the precious variables saved in the cache have kept the same
1794 # value.
1795 ac_cache_corrupted=false
1796 for ac_var in $ac_precious_vars; do
1797 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1798 eval ac_new_set=\$ac_env_${ac_var}_set
1799 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1800 eval ac_new_val=\$ac_env_${ac_var}_value
1801 case $ac_old_set,$ac_new_set in
1802 set,)
1803 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1804 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1805 ac_cache_corrupted=: ;;
1806 ,set)
1807 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1808 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1809 ac_cache_corrupted=: ;;
1810 ,);;
1812 if test "x$ac_old_val" != "x$ac_new_val"; then
1813 # differences in whitespace do not lead to failure.
1814 ac_old_val_w=`echo x $ac_old_val`
1815 ac_new_val_w=`echo x $ac_new_val`
1816 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1817 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1818 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1819 ac_cache_corrupted=:
1820 else
1821 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1822 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1823 eval $ac_var=\$ac_old_val
1825 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1826 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1827 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1828 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1829 fi;;
1830 esac
1831 # Pass precious variables to config.status.
1832 if test "$ac_new_set" = set; then
1833 case $ac_new_val in
1834 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1835 *) ac_arg=$ac_var=$ac_new_val ;;
1836 esac
1837 case " $ac_configure_args " in
1838 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1839 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1840 esac
1842 done
1843 if $ac_cache_corrupted; then
1844 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1845 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1846 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1847 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1848 { (exit 1); exit 1; }; }
1867 ac_ext=c
1868 ac_cpp='$CPP $CPPFLAGS'
1869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 # Check whether --enable-checkmem was given.
1877 if test "${enable_checkmem+set}" = set; then
1878 enableval=$enable_checkmem; CHECKMEM=true
1881 # Check whether --enable-debug was given.
1882 if test "${enable_debug+set}" = set; then
1883 enableval=$enable_debug; DEBUG=true
1886 # Check whether --enable-profiling was given.
1887 if test "${enable_profiling+set}" = set; then
1888 enableval=$enable_profiling; PROFILING=true
1891 # Check whether --enable-warnings was given.
1892 if test "${enable_warnings+set}" = set; then
1893 enableval=$enable_warnings; ENABLE_WARNINGS=true
1896 # Check whether --enable-optimizations was given.
1897 if test "${enable_optimizations+set}" = set; then
1898 enableval=$enable_optimizations; OPTIMIZE=true
1901 # Check whether --enable-lame was given.
1902 if test "${enable_lame+set}" = set; then
1903 enableval=$enable_lame; DISABLE_LAME=true
1907 # Check whether --with-external-libart was given.
1908 if test "${with_external_libart+set}" = set; then
1909 withval=$with_external_libart; EXTERNAL_LIBART=true
1913 # Check whether --with-poppler was given.
1914 if test "${with_poppler+set}" = set; then
1915 withval=$with_poppler; USE_POPPLER=true
1919 PACKAGE=swftools
1920 VERSION=2008-09-22-1956
1923 # ------------------------------------------------------------------
1925 if test "x${srcdir}" != "x."; then
1926 echo "--srcdir is not supported"
1927 exit 1
1930 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1931 if test "x$ENABLE_WARNINGS" '!=' "x";then
1932 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1935 if test "x$CHECKMEM" '!=' "x";then
1936 DEBUG=yes
1938 if test "x$PROFILING" '!=' "x";then
1939 DEBUG=yes
1941 if test "x$DEBUG" '!=' "x";then
1942 if test "x$PROFILING" = "x";then
1943 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1944 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1945 LDFLAGS="-g $LIBS"
1946 else
1947 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1948 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1949 LDFLAGS="-g -pg $LIBS"
1951 else if test "x$OPTIMIZE" '!=' "x"; then
1952 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1953 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1954 else
1955 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1956 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1960 CFLAGS="-fPIC $CFLAGS"
1961 CXXFLAGS="-fPIC $CFLAGS"
1963 #OLDGCC=1
1964 #if test "x$OLDGCC" '!=' "x";then
1965 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1966 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1967 # CFLAGS="$CFLAGS -ansi -pendantic"
1968 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1971 export PACKAGE VERSION CFLAGS CXXFLAGS
1974 ac_aux_dir=
1975 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1976 if test -f "$ac_dir/install-sh"; then
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/install-sh -c"
1979 break
1980 elif test -f "$ac_dir/install.sh"; then
1981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/install.sh -c"
1983 break
1984 elif test -f "$ac_dir/shtool"; then
1985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/shtool install -c"
1987 break
1989 done
1990 if test -z "$ac_aux_dir"; then
1991 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1992 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1993 { (exit 1); exit 1; }; }
1996 # These three variables are undocumented and unsupported,
1997 # and are intended to be withdrawn in a future Autoconf release.
1998 # They can cause serious problems if a builder's source tree is in a directory
1999 # whose full name contains unusual characters.
2000 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2001 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2002 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2005 # Make sure we can run config.sub.
2006 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2007 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2008 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2009 { (exit 1); exit 1; }; }
2011 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2012 $as_echo_n "checking build system type... " >&6; }
2013 if test "${ac_cv_build+set}" = set; then
2014 $as_echo_n "(cached) " >&6
2015 else
2016 ac_build_alias=$build_alias
2017 test "x$ac_build_alias" = x &&
2018 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2019 test "x$ac_build_alias" = x &&
2020 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2021 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2022 { (exit 1); exit 1; }; }
2023 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2024 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2025 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2026 { (exit 1); exit 1; }; }
2029 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2030 $as_echo "$ac_cv_build" >&6; }
2031 case $ac_cv_build in
2032 *-*-*) ;;
2033 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2034 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2035 { (exit 1); exit 1; }; };;
2036 esac
2037 build=$ac_cv_build
2038 ac_save_IFS=$IFS; IFS='-'
2039 set x $ac_cv_build
2040 shift
2041 build_cpu=$1
2042 build_vendor=$2
2043 shift; shift
2044 # Remember, the first character of IFS is used to create $*,
2045 # except with old shells:
2046 build_os=$*
2047 IFS=$ac_save_IFS
2048 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2051 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2052 $as_echo_n "checking host system type... " >&6; }
2053 if test "${ac_cv_host+set}" = set; then
2054 $as_echo_n "(cached) " >&6
2055 else
2056 if test "x$host_alias" = x; then
2057 ac_cv_host=$ac_cv_build
2058 else
2059 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2060 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2061 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2062 { (exit 1); exit 1; }; }
2066 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2067 $as_echo "$ac_cv_host" >&6; }
2068 case $ac_cv_host in
2069 *-*-*) ;;
2070 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2071 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2072 { (exit 1); exit 1; }; };;
2073 esac
2074 host=$ac_cv_host
2075 ac_save_IFS=$IFS; IFS='-'
2076 set x $ac_cv_host
2077 shift
2078 host_cpu=$1
2079 host_vendor=$2
2080 shift; shift
2081 # Remember, the first character of IFS is used to create $*,
2082 # except with old shells:
2083 host_os=$*
2084 IFS=$ac_save_IFS
2085 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2089 SHARED="-shared"
2090 MACOSX=
2091 case $host_os in
2092 *darwin* )
2093 MACOSX=yes
2094 CFLAGS="$CFLAGS"
2095 CXXFLAGS="$CXXFLAGS -fno-rtti"
2096 SHARED="-bundle"
2097 # Use fink packages if available.
2098 #if test -d /sw/include && test -d /sw/lib; then
2099 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2100 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2103 esac
2107 ac_ext=c
2108 ac_cpp='$CPP $CPPFLAGS'
2109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112 if test -n "$ac_tool_prefix"; then
2113 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2114 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 $as_echo_n "checking for $ac_word... " >&6; }
2117 if test "${ac_cv_prog_CC+set}" = set; then
2118 $as_echo_n "(cached) " >&6
2119 else
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test.
2122 else
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 break 2
2134 done
2135 done
2136 IFS=$as_save_IFS
2140 CC=$ac_cv_prog_CC
2141 if test -n "$CC"; then
2142 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2143 $as_echo "$CC" >&6; }
2144 else
2145 { $as_echo "$as_me:$LINENO: result: no" >&5
2146 $as_echo "no" >&6; }
2151 if test -z "$ac_cv_prog_CC"; then
2152 ac_ct_CC=$CC
2153 # Extract the first word of "gcc", so it can be a program name with args.
2154 set dummy gcc; ac_word=$2
2155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 $as_echo_n "checking for $ac_word... " >&6; }
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 $as_echo_n "(cached) " >&6
2159 else
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_ac_ct_CC="gcc"
2171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2174 done
2175 done
2176 IFS=$as_save_IFS
2180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181 if test -n "$ac_ct_CC"; then
2182 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183 $as_echo "$ac_ct_CC" >&6; }
2184 else
2185 { $as_echo "$as_me:$LINENO: result: no" >&5
2186 $as_echo "no" >&6; }
2189 if test "x$ac_ct_CC" = x; then
2190 CC=""
2191 else
2192 case $cross_compiling:$ac_tool_warned in
2193 yes:)
2194 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2195 whose name does not start with the host triplet. If you think this
2196 configuration is useful to you, please write to autoconf@gnu.org." >&5
2197 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2198 whose name does not start with the host triplet. If you think this
2199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2200 ac_tool_warned=yes ;;
2201 esac
2202 CC=$ac_ct_CC
2204 else
2205 CC="$ac_cv_prog_CC"
2208 if test -z "$CC"; then
2209 if test -n "$ac_tool_prefix"; then
2210 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2211 set dummy ${ac_tool_prefix}cc; ac_word=$2
2212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 $as_echo_n "checking for $ac_word... " >&6; }
2214 if test "${ac_cv_prog_CC+set}" = set; then
2215 $as_echo_n "(cached) " >&6
2216 else
2217 if test -n "$CC"; then
2218 ac_cv_prog_CC="$CC" # Let the user override the test.
2219 else
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2223 IFS=$as_save_IFS
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2227 ac_cv_prog_CC="${ac_tool_prefix}cc"
2228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 break 2
2231 done
2232 done
2233 IFS=$as_save_IFS
2237 CC=$ac_cv_prog_CC
2238 if test -n "$CC"; then
2239 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2240 $as_echo "$CC" >&6; }
2241 else
2242 { $as_echo "$as_me:$LINENO: result: no" >&5
2243 $as_echo "no" >&6; }
2249 if test -z "$CC"; then
2250 # Extract the first word of "cc", so it can be a program name with args.
2251 set dummy cc; ac_word=$2
2252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 $as_echo_n "checking for $ac_word... " >&6; }
2254 if test "${ac_cv_prog_CC+set}" = set; then
2255 $as_echo_n "(cached) " >&6
2256 else
2257 if test -n "$CC"; then
2258 ac_cv_prog_CC="$CC" # Let the user override the test.
2259 else
2260 ac_prog_rejected=no
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2264 IFS=$as_save_IFS
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2268 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2269 ac_prog_rejected=yes
2270 continue
2272 ac_cv_prog_CC="cc"
2273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2276 done
2277 done
2278 IFS=$as_save_IFS
2280 if test $ac_prog_rejected = yes; then
2281 # We found a bogon in the path, so make sure we never use it.
2282 set dummy $ac_cv_prog_CC
2283 shift
2284 if test $# != 0; then
2285 # We chose a different compiler from the bogus one.
2286 # However, it has the same basename, so the bogon will be chosen
2287 # first if we set CC to just the basename; use the full file name.
2288 shift
2289 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2294 CC=$ac_cv_prog_CC
2295 if test -n "$CC"; then
2296 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2297 $as_echo "$CC" >&6; }
2298 else
2299 { $as_echo "$as_me:$LINENO: result: no" >&5
2300 $as_echo "no" >&6; }
2305 if test -z "$CC"; then
2306 if test -n "$ac_tool_prefix"; then
2307 for ac_prog in cl.exe
2309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if test "${ac_cv_prog_CC+set}" = set; then
2314 $as_echo_n "(cached) " >&6
2315 else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2330 done
2331 done
2332 IFS=$as_save_IFS
2336 CC=$ac_cv_prog_CC
2337 if test -n "$CC"; then
2338 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2339 $as_echo "$CC" >&6; }
2340 else
2341 { $as_echo "$as_me:$LINENO: result: no" >&5
2342 $as_echo "no" >&6; }
2346 test -n "$CC" && break
2347 done
2349 if test -z "$CC"; then
2350 ac_ct_CC=$CC
2351 for ac_prog in cl.exe
2353 # Extract the first word of "$ac_prog", so it can be a program name with args.
2354 set dummy $ac_prog; ac_word=$2
2355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 $as_echo_n "checking for $ac_word... " >&6; }
2357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2358 $as_echo_n "(cached) " >&6
2359 else
2360 if test -n "$ac_ct_CC"; then
2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_ac_ct_CC="$ac_prog"
2371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2374 done
2375 done
2376 IFS=$as_save_IFS
2380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2381 if test -n "$ac_ct_CC"; then
2382 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2383 $as_echo "$ac_ct_CC" >&6; }
2384 else
2385 { $as_echo "$as_me:$LINENO: result: no" >&5
2386 $as_echo "no" >&6; }
2390 test -n "$ac_ct_CC" && break
2391 done
2393 if test "x$ac_ct_CC" = x; then
2394 CC=""
2395 else
2396 case $cross_compiling:$ac_tool_warned in
2397 yes:)
2398 { $as_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 autoconf@gnu.org." >&5
2401 $as_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 autoconf@gnu.org." >&2;}
2404 ac_tool_warned=yes ;;
2405 esac
2406 CC=$ac_ct_CC
2413 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&5
2415 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2416 See \`config.log' for more details." >&2;}
2417 { (exit 1); exit 1; }; }
2419 # Provide some information about the compiler.
2420 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2421 set X $ac_compile
2422 ac_compiler=$2
2423 { (ac_try="$ac_compiler --version >&5"
2424 case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2427 esac
2428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2429 $as_echo "$ac_try_echo") >&5
2430 (eval "$ac_compiler --version >&5") 2>&5
2431 ac_status=$?
2432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }
2434 { (ac_try="$ac_compiler -v >&5"
2435 case "(($ac_try" in
2436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437 *) ac_try_echo=$ac_try;;
2438 esac
2439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2440 $as_echo "$ac_try_echo") >&5
2441 (eval "$ac_compiler -v >&5") 2>&5
2442 ac_status=$?
2443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }
2445 { (ac_try="$ac_compiler -V >&5"
2446 case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449 esac
2450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2451 $as_echo "$ac_try_echo") >&5
2452 (eval "$ac_compiler -V >&5") 2>&5
2453 ac_status=$?
2454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }
2457 cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h. */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2465 main ()
2469 return 0;
2471 _ACEOF
2472 ac_clean_files_save=$ac_clean_files
2473 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2474 # Try to create an executable without -o first, disregard a.out.
2475 # It will help us diagnose broken compilers, and finding out an intuition
2476 # of exeext.
2477 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2478 $as_echo_n "checking for C compiler default output file name... " >&6; }
2479 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2481 # The possible output files:
2482 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2484 ac_rmfiles=
2485 for ac_file in $ac_files
2487 case $ac_file in
2488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2489 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2490 esac
2491 done
2492 rm -f $ac_rmfiles
2494 if { (ac_try="$ac_link_default"
2495 case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498 esac
2499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2500 $as_echo "$ac_try_echo") >&5
2501 (eval "$ac_link_default") 2>&5
2502 ac_status=$?
2503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; then
2505 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2506 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2507 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2508 # so that the user can short-circuit this test for compilers unknown to
2509 # Autoconf.
2510 for ac_file in $ac_files ''
2512 test -f "$ac_file" || continue
2513 case $ac_file in
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2516 [ab].out )
2517 # We found the default executable, but exeext='' is most
2518 # certainly right.
2519 break;;
2520 *.* )
2521 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2522 then :; else
2523 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2525 # We set ac_cv_exeext here because the later test for it is not
2526 # safe: cross compilers may not add the suffix if given an `-o'
2527 # argument, so we may need to know it at that point already.
2528 # Even if this section looks crufty: it has the advantage of
2529 # actually working.
2530 break;;
2532 break;;
2533 esac
2534 done
2535 test "$ac_cv_exeext" = no && ac_cv_exeext=
2537 else
2538 ac_file=''
2541 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2542 $as_echo "$ac_file" >&6; }
2543 if test -z "$ac_file"; then
2544 $as_echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2547 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2548 See \`config.log' for more details." >&5
2549 $as_echo "$as_me: error: C compiler cannot create executables
2550 See \`config.log' for more details." >&2;}
2551 { (exit 77); exit 77; }; }
2554 ac_exeext=$ac_cv_exeext
2556 # Check that the compiler produces executables we can run. If not, either
2557 # the compiler is broken, or we cross compile.
2558 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2559 $as_echo_n "checking whether the C compiler works... " >&6; }
2560 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2561 # If not cross compiling, check that we can run a simple program.
2562 if test "$cross_compiling" != yes; then
2563 if { ac_try='./$ac_file'
2564 { (case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2569 $as_echo "$ac_try_echo") >&5
2570 (eval "$ac_try") 2>&5
2571 ac_status=$?
2572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 cross_compiling=no
2575 else
2576 if test "$cross_compiling" = maybe; then
2577 cross_compiling=yes
2578 else
2579 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2580 If you meant to cross compile, use \`--host'.
2581 See \`config.log' for more details." >&5
2582 $as_echo "$as_me: error: cannot run C compiled programs.
2583 If you meant to cross compile, use \`--host'.
2584 See \`config.log' for more details." >&2;}
2585 { (exit 1); exit 1; }; }
2589 { $as_echo "$as_me:$LINENO: result: yes" >&5
2590 $as_echo "yes" >&6; }
2592 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2593 ac_clean_files=$ac_clean_files_save
2594 # Check that the compiler produces executables we can run. If not, either
2595 # the compiler is broken, or we cross compile.
2596 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2597 $as_echo_n "checking whether we are cross compiling... " >&6; }
2598 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2599 $as_echo "$cross_compiling" >&6; }
2601 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2602 $as_echo_n "checking for suffix of executables... " >&6; }
2603 if { (ac_try="$ac_link"
2604 case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2607 esac
2608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2609 $as_echo "$ac_try_echo") >&5
2610 (eval "$ac_link") 2>&5
2611 ac_status=$?
2612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; then
2614 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2615 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2616 # work properly (i.e., refer to `conftest.exe'), while it won't with
2617 # `rm'.
2618 for ac_file in conftest.exe conftest conftest.*; do
2619 test -f "$ac_file" || continue
2620 case $ac_file in
2621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2623 break;;
2624 * ) break;;
2625 esac
2626 done
2627 else
2628 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2629 See \`config.log' for more details." >&5
2630 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2631 See \`config.log' for more details." >&2;}
2632 { (exit 1); exit 1; }; }
2635 rm -f conftest$ac_cv_exeext
2636 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2637 $as_echo "$ac_cv_exeext" >&6; }
2639 rm -f conftest.$ac_ext
2640 EXEEXT=$ac_cv_exeext
2641 ac_exeext=$EXEEXT
2642 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2643 $as_echo_n "checking for suffix of object files... " >&6; }
2644 if test "${ac_cv_objext+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2646 else
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h. */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2655 main ()
2659 return 0;
2661 _ACEOF
2662 rm -f conftest.o conftest.obj
2663 if { (ac_try="$ac_compile"
2664 case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667 esac
2668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2669 $as_echo "$ac_try_echo") >&5
2670 (eval "$ac_compile") 2>&5
2671 ac_status=$?
2672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; then
2674 for ac_file in conftest.o conftest.obj conftest.*; do
2675 test -f "$ac_file" || continue;
2676 case $ac_file in
2677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2678 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2679 break;;
2680 esac
2681 done
2682 else
2683 $as_echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2686 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details." >&5
2688 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2689 See \`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2695 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2696 $as_echo "$ac_cv_objext" >&6; }
2697 OBJEXT=$ac_cv_objext
2698 ac_objext=$OBJEXT
2699 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2700 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2701 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2702 $as_echo_n "(cached) " >&6
2703 else
2704 cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h. */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2712 main ()
2714 #ifndef __GNUC__
2715 choke me
2716 #endif
2719 return 0;
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (ac_try="$ac_compile"
2724 case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727 esac
2728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2729 $as_echo "$ac_try_echo") >&5
2730 (eval "$ac_compile") 2>conftest.er1
2731 ac_status=$?
2732 grep -v '^ *+' conftest.er1 >conftest.err
2733 rm -f conftest.er1
2734 cat conftest.err >&5
2735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } && {
2737 test -z "$ac_c_werror_flag" ||
2738 test ! -s conftest.err
2739 } && test -s conftest.$ac_objext; then
2740 ac_compiler_gnu=yes
2741 else
2742 $as_echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2745 ac_compiler_gnu=no
2748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2752 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2753 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2754 if test $ac_compiler_gnu = yes; then
2755 GCC=yes
2756 else
2757 GCC=
2759 ac_test_CFLAGS=${CFLAGS+set}
2760 ac_save_CFLAGS=$CFLAGS
2761 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2762 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2763 if test "${ac_cv_prog_cc_g+set}" = set; then
2764 $as_echo_n "(cached) " >&6
2765 else
2766 ac_save_c_werror_flag=$ac_c_werror_flag
2767 ac_c_werror_flag=yes
2768 ac_cv_prog_cc_g=no
2769 CFLAGS="-g"
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. */
2778 main ()
2782 return 0;
2784 _ACEOF
2785 rm -f conftest.$ac_objext
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2792 $as_echo "$ac_try_echo") >&5
2793 (eval "$ac_compile") 2>conftest.er1
2794 ac_status=$?
2795 grep -v '^ *+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
2797 cat conftest.err >&5
2798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } && {
2800 test -z "$ac_c_werror_flag" ||
2801 test ! -s conftest.err
2802 } && test -s conftest.$ac_objext; then
2803 ac_cv_prog_cc_g=yes
2804 else
2805 $as_echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2808 CFLAGS=""
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2817 main ()
2821 return 0;
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (ac_try="$ac_compile"
2826 case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2831 $as_echo "$ac_try_echo") >&5
2832 (eval "$ac_compile") 2>conftest.er1
2833 ac_status=$?
2834 grep -v '^ *+' conftest.er1 >conftest.err
2835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } && {
2839 test -z "$ac_c_werror_flag" ||
2840 test ! -s conftest.err
2841 } && test -s conftest.$ac_objext; then
2843 else
2844 $as_echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2847 ac_c_werror_flag=$ac_save_c_werror_flag
2848 CFLAGS="-g"
2849 cat >conftest.$ac_ext <<_ACEOF
2850 /* confdefs.h. */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2857 main ()
2861 return 0;
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (ac_try="$ac_compile"
2866 case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869 esac
2870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2871 $as_echo "$ac_try_echo") >&5
2872 (eval "$ac_compile") 2>conftest.er1
2873 ac_status=$?
2874 grep -v '^ *+' conftest.er1 >conftest.err
2875 rm -f conftest.er1
2876 cat conftest.err >&5
2877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } && {
2879 test -z "$ac_c_werror_flag" ||
2880 test ! -s conftest.err
2881 } && test -s conftest.$ac_objext; then
2882 ac_cv_prog_cc_g=yes
2883 else
2884 $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 ac_c_werror_flag=$ac_save_c_werror_flag
2899 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2900 $as_echo "$ac_cv_prog_cc_g" >&6; }
2901 if test "$ac_test_CFLAGS" = set; then
2902 CFLAGS=$ac_save_CFLAGS
2903 elif test $ac_cv_prog_cc_g = yes; then
2904 if test "$GCC" = yes; then
2905 CFLAGS="-g -O2"
2906 else
2907 CFLAGS="-g"
2909 else
2910 if test "$GCC" = yes; then
2911 CFLAGS="-O2"
2912 else
2913 CFLAGS=
2916 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2917 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2918 if test "${ac_cv_prog_cc_c89+set}" = set; then
2919 $as_echo_n "(cached) " >&6
2920 else
2921 ac_cv_prog_cc_c89=no
2922 ac_save_CC=$CC
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2929 #include <stdarg.h>
2930 #include <stdio.h>
2931 #include <sys/types.h>
2932 #include <sys/stat.h>
2933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2934 struct buf { int x; };
2935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2936 static char *e (p, i)
2937 char **p;
2938 int i;
2940 return p[i];
2942 static char *f (char * (*g) (char **, int), char **p, ...)
2944 char *s;
2945 va_list v;
2946 va_start (v,p);
2947 s = g (p, va_arg (v,int));
2948 va_end (v);
2949 return s;
2952 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2953 function prototypes and stuff, but not '\xHH' hex character constants.
2954 These don't provoke an error unfortunately, instead are silently treated
2955 as 'x'. The following induces an error, until -std is added to get
2956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2957 array size at least. It's necessary to write '\x00'==0 to get something
2958 that's true only with -std. */
2959 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2961 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2962 inside strings and character constants. */
2963 #define FOO(x) 'x'
2964 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2966 int test (int i, double x);
2967 struct s1 {int (*f) (int a);};
2968 struct s2 {int (*f) (double a);};
2969 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2970 int argc;
2971 char **argv;
2973 main ()
2975 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2977 return 0;
2979 _ACEOF
2980 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2981 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2983 CC="$ac_save_CC $ac_arg"
2984 rm -f conftest.$ac_objext
2985 if { (ac_try="$ac_compile"
2986 case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2991 $as_echo "$ac_try_echo") >&5
2992 (eval "$ac_compile") 2>conftest.er1
2993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } && {
2999 test -z "$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3001 } && test -s conftest.$ac_objext; then
3002 ac_cv_prog_cc_c89=$ac_arg
3003 else
3004 $as_echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3010 rm -f core conftest.err conftest.$ac_objext
3011 test "x$ac_cv_prog_cc_c89" != "xno" && break
3012 done
3013 rm -f conftest.$ac_ext
3014 CC=$ac_save_CC
3017 # AC_CACHE_VAL
3018 case "x$ac_cv_prog_cc_c89" in
3020 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3021 $as_echo "none needed" >&6; } ;;
3022 xno)
3023 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3024 $as_echo "unsupported" >&6; } ;;
3026 CC="$CC $ac_cv_prog_cc_c89"
3027 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3028 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3029 esac
3032 ac_ext=c
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 ac_ext=cpp
3039 ac_cpp='$CXXCPP $CPPFLAGS'
3040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3043 if test -z "$CXX"; then
3044 if test -n "$CCC"; then
3045 CXX=$CCC
3046 else
3047 if test -n "$ac_tool_prefix"; then
3048 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if test "${ac_cv_prog_CXX+set}" = set; then
3055 $as_echo_n "(cached) " >&6
3056 else
3057 if test -n "$CXX"; then
3058 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3068 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
3071 done
3072 done
3073 IFS=$as_save_IFS
3077 CXX=$ac_cv_prog_CXX
3078 if test -n "$CXX"; then
3079 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3080 $as_echo "$CXX" >&6; }
3081 else
3082 { $as_echo "$as_me:$LINENO: result: no" >&5
3083 $as_echo "no" >&6; }
3087 test -n "$CXX" && break
3088 done
3090 if test -z "$CXX"; then
3091 ac_ct_CXX=$CXX
3092 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3094 # Extract the first word of "$ac_prog", so it can be a program name with args.
3095 set dummy $ac_prog; ac_word=$2
3096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test -n "$ac_ct_CXX"; then
3102 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_ac_ct_CXX="$ac_prog"
3112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3115 done
3116 done
3117 IFS=$as_save_IFS
3121 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3122 if test -n "$ac_ct_CXX"; then
3123 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3124 $as_echo "$ac_ct_CXX" >&6; }
3125 else
3126 { $as_echo "$as_me:$LINENO: result: no" >&5
3127 $as_echo "no" >&6; }
3131 test -n "$ac_ct_CXX" && break
3132 done
3134 if test "x$ac_ct_CXX" = x; then
3135 CXX="g++"
3136 else
3137 case $cross_compiling:$ac_tool_warned in
3138 yes:)
3139 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3140 whose name does not start with the host triplet. If you think this
3141 configuration is useful to you, please write to autoconf@gnu.org." >&5
3142 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3143 whose name does not start with the host triplet. If you think this
3144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3145 ac_tool_warned=yes ;;
3146 esac
3147 CXX=$ac_ct_CXX
3153 # Provide some information about the compiler.
3154 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3155 set X $ac_compile
3156 ac_compiler=$2
3157 { (ac_try="$ac_compiler --version >&5"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3163 $as_echo "$ac_try_echo") >&5
3164 (eval "$ac_compiler --version >&5") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }
3168 { (ac_try="$ac_compiler -v >&5"
3169 case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172 esac
3173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3174 $as_echo "$ac_try_echo") >&5
3175 (eval "$ac_compiler -v >&5") 2>&5
3176 ac_status=$?
3177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }
3179 { (ac_try="$ac_compiler -V >&5"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3185 $as_echo "$ac_try_echo") >&5
3186 (eval "$ac_compiler -V >&5") 2>&5
3187 ac_status=$?
3188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3191 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3193 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3194 $as_echo_n "(cached) " >&6
3195 else
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3204 main ()
3206 #ifndef __GNUC__
3207 choke me
3208 #endif
3211 return 0;
3213 _ACEOF
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3216 case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3221 $as_echo "$ac_try_echo") >&5
3222 (eval "$ac_compile") 2>conftest.er1
3223 ac_status=$?
3224 grep -v '^ *+' conftest.er1 >conftest.err
3225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } && {
3229 test -z "$ac_cxx_werror_flag" ||
3230 test ! -s conftest.err
3231 } && test -s conftest.$ac_objext; then
3232 ac_compiler_gnu=yes
3233 else
3234 $as_echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 ac_compiler_gnu=no
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3244 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3245 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3246 if test $ac_compiler_gnu = yes; then
3247 GXX=yes
3248 else
3249 GXX=
3251 ac_test_CXXFLAGS=${CXXFLAGS+set}
3252 ac_save_CXXFLAGS=$CXXFLAGS
3253 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3254 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3255 if test "${ac_cv_prog_cxx_g+set}" = set; then
3256 $as_echo_n "(cached) " >&6
3257 else
3258 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3259 ac_cxx_werror_flag=yes
3260 ac_cv_prog_cxx_g=no
3261 CXXFLAGS="-g"
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h. */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3270 main ()
3274 return 0;
3276 _ACEOF
3277 rm -f conftest.$ac_objext
3278 if { (ac_try="$ac_compile"
3279 case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3284 $as_echo "$ac_try_echo") >&5
3285 (eval "$ac_compile") 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } && {
3292 test -z "$ac_cxx_werror_flag" ||
3293 test ! -s conftest.err
3294 } && test -s conftest.$ac_objext; then
3295 ac_cv_prog_cxx_g=yes
3296 else
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 CXXFLAGS=""
3301 cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h. */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3309 main ()
3313 return 0;
3315 _ACEOF
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323 $as_echo "$ac_try_echo") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } && {
3331 test -z "$ac_cxx_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
3335 else
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3340 CXXFLAGS="-g"
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3349 main ()
3353 return 0;
3355 _ACEOF
3356 rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compile") 2>conftest.er1
3365 ac_status=$?
3366 grep -v '^ *+' conftest.er1 >conftest.err
3367 rm -f conftest.er1
3368 cat conftest.err >&5
3369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } && {
3371 test -z "$ac_cxx_werror_flag" ||
3372 test ! -s conftest.err
3373 } && test -s conftest.$ac_objext; then
3374 ac_cv_prog_cxx_g=yes
3375 else
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3391 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3392 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3393 if test "$ac_test_CXXFLAGS" = set; then
3394 CXXFLAGS=$ac_save_CXXFLAGS
3395 elif test $ac_cv_prog_cxx_g = yes; then
3396 if test "$GXX" = yes; then
3397 CXXFLAGS="-g -O2"
3398 else
3399 CXXFLAGS="-g"
3401 else
3402 if test "$GXX" = yes; then
3403 CXXFLAGS="-O2"
3404 else
3405 CXXFLAGS=
3408 ac_ext=c
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3418 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3420 cat > conftest.c << EOF
3421 #include <stdlib.h>
3422 #include <stdio.h>
3424 int main (int argc, char*argv)
3426 int a,b;
3427 b=3;
3428 int c;
3429 c=4;
3430 return 0;
3434 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3435 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3436 { $as_echo "$as_me:$LINENO: result: yes" >&5
3437 $as_echo "yes" >&6; }
3438 GCC_IS_OK=true
3439 export GCC_IS_OK
3440 else
3441 echo "configure: failed program was:" >&5
3442 cat conftest.c >&5
3443 { $as_echo "$as_me:$LINENO: result: no" >&5
3444 $as_echo "no" >&6; }
3446 rm -f conftest*
3449 if test "x$GCC_IS_OK" '=' "x";then
3450 echo "***************************************************"
3451 echo "* Your gcc is too old to compile this!"
3452 echo "* "
3453 echo "* The last version compilable by this compiler is "
3454 echo "* swftools 0.7.0, which you can download from "
3455 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3456 echo "* ."
3457 echo "* Newer versions require at least gcc 3.0.0 "
3458 echo "***************************************************"
3459 exit 1
3462 if test "x$CHECKMEM" '!=' "x";then
3463 CC="ccmalloc $CC"
3464 CXX="ccmalloc $CXX"
3465 #echo running again
3466 #unset ac_cv_prog_CC
3467 #unset ac_cv_prog_CXX
3468 #AC_PROG_CC
3469 #AC_PROG_CXX
3471 ac_ext=c
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3477 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3478 # On Suns, sometimes $CPP names a directory.
3479 if test -n "$CPP" && test -d "$CPP"; then
3480 CPP=
3482 if test -z "$CPP"; then
3483 if test "${ac_cv_prog_CPP+set}" = set; then
3484 $as_echo_n "(cached) " >&6
3485 else
3486 # Double quotes because CPP needs to be expanded
3487 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3489 ac_preproc_ok=false
3490 for ac_c_preproc_warn_flag in '' yes
3492 # Use a header file that comes with gcc, so configuring glibc
3493 # with a fresh cross-compiler works.
3494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3495 # <limits.h> exists even on freestanding compilers.
3496 # On the NeXT, cc -E runs the code through the compiler's parser,
3497 # not just through cpp. "Syntax error" is here to catch this case.
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h. */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 #ifdef __STDC__
3505 # include <limits.h>
3506 #else
3507 # include <assert.h>
3508 #endif
3509 Syntax error
3510 _ACEOF
3511 if { (ac_try="$ac_cpp conftest.$ac_ext"
3512 case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3517 $as_echo "$ac_try_echo") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null && {
3525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 }; then
3529 else
3530 $as_echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 # Broken: fails on valid input.
3534 continue
3537 rm -f conftest.err conftest.$ac_ext
3539 # OK, works on sane cases. Now check whether nonexistent headers
3540 # can be detected and how.
3541 cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h. */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <ac_nonexistent.h>
3548 _ACEOF
3549 if { (ac_try="$ac_cpp conftest.$ac_ext"
3550 case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553 esac
3554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3555 $as_echo "$ac_try_echo") >&5
3556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } >/dev/null && {
3563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 }; then
3566 # Broken: success on invalid input.
3567 continue
3568 else
3569 $as_echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3572 # Passes both tests.
3573 ac_preproc_ok=:
3574 break
3577 rm -f conftest.err conftest.$ac_ext
3579 done
3580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3581 rm -f conftest.err conftest.$ac_ext
3582 if $ac_preproc_ok; then
3583 break
3586 done
3587 ac_cv_prog_CPP=$CPP
3590 CPP=$ac_cv_prog_CPP
3591 else
3592 ac_cv_prog_CPP=$CPP
3594 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3595 $as_echo "$CPP" >&6; }
3596 ac_preproc_ok=false
3597 for ac_c_preproc_warn_flag in '' yes
3599 # Use a header file that comes with gcc, so configuring glibc
3600 # with a fresh cross-compiler works.
3601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3602 # <limits.h> exists even on freestanding compilers.
3603 # On the NeXT, cc -E runs the code through the compiler's parser,
3604 # not just through cpp. "Syntax error" is here to catch this case.
3605 cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h. */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 #ifdef __STDC__
3612 # include <limits.h>
3613 #else
3614 # include <assert.h>
3615 #endif
3616 Syntax error
3617 _ACEOF
3618 if { (ac_try="$ac_cpp conftest.$ac_ext"
3619 case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev/null && {
3632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3634 }; then
3636 else
3637 $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 # Broken: fails on valid input.
3641 continue
3644 rm -f conftest.err conftest.$ac_ext
3646 # OK, works on sane cases. Now check whether nonexistent headers
3647 # can be detected and how.
3648 cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h. */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 #include <ac_nonexistent.h>
3655 _ACEOF
3656 if { (ac_try="$ac_cpp conftest.$ac_ext"
3657 case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3662 $as_echo "$ac_try_echo") >&5
3663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3664 ac_status=$?
3665 grep -v '^ *+' conftest.er1 >conftest.err
3666 rm -f conftest.er1
3667 cat conftest.err >&5
3668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } >/dev/null && {
3670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3671 test ! -s conftest.err
3672 }; then
3673 # Broken: success on invalid input.
3674 continue
3675 else
3676 $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 # Passes both tests.
3680 ac_preproc_ok=:
3681 break
3684 rm -f conftest.err conftest.$ac_ext
3686 done
3687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3688 rm -f conftest.err conftest.$ac_ext
3689 if $ac_preproc_ok; then
3691 else
3692 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3693 See \`config.log' for more details." >&5
3694 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3695 See \`config.log' for more details." >&2;}
3696 { (exit 1); exit 1; }; }
3699 ac_ext=c
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 if test -n "$ac_tool_prefix"; then
3707 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3708 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_RANLIB+set}" = set; then
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$RANLIB"; then
3715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 break 2
3728 done
3729 done
3730 IFS=$as_save_IFS
3734 RANLIB=$ac_cv_prog_RANLIB
3735 if test -n "$RANLIB"; then
3736 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3737 $as_echo "$RANLIB" >&6; }
3738 else
3739 { $as_echo "$as_me:$LINENO: result: no" >&5
3740 $as_echo "no" >&6; }
3745 if test -z "$ac_cv_prog_RANLIB"; then
3746 ac_ct_RANLIB=$RANLIB
3747 # Extract the first word of "ranlib", so it can be a program name with args.
3748 set dummy ranlib; ac_word=$2
3749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -n "$ac_ct_RANLIB"; then
3755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_ac_ct_RANLIB="ranlib"
3765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3768 done
3769 done
3770 IFS=$as_save_IFS
3774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3775 if test -n "$ac_ct_RANLIB"; then
3776 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3777 $as_echo "$ac_ct_RANLIB" >&6; }
3778 else
3779 { $as_echo "$as_me:$LINENO: result: no" >&5
3780 $as_echo "no" >&6; }
3783 if test "x$ac_ct_RANLIB" = x; then
3784 RANLIB=":"
3785 else
3786 case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3789 whose name does not start with the host triplet. If you think this
3790 configuration is useful to you, please write to autoconf@gnu.org." >&5
3791 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3792 whose name does not start with the host triplet. If you think this
3793 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3794 ac_tool_warned=yes ;;
3795 esac
3796 RANLIB=$ac_ct_RANLIB
3798 else
3799 RANLIB="$ac_cv_prog_RANLIB"
3802 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3803 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3804 set x ${MAKE-make}
3805 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3806 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3807 $as_echo_n "(cached) " >&6
3808 else
3809 cat >conftest.make <<\_ACEOF
3810 SHELL = /bin/sh
3811 all:
3812 @echo '@@@%%%=$(MAKE)=@@@%%%'
3813 _ACEOF
3814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3815 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3816 *@@@%%%=?*=@@@%%%*)
3817 eval ac_cv_prog_make_${ac_make}_set=yes;;
3819 eval ac_cv_prog_make_${ac_make}_set=no;;
3820 esac
3821 rm -f conftest.make
3823 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3824 { $as_echo "$as_me:$LINENO: result: yes" >&5
3825 $as_echo "yes" >&6; }
3826 SET_MAKE=
3827 else
3828 { $as_echo "$as_me:$LINENO: result: no" >&5
3829 $as_echo "no" >&6; }
3830 SET_MAKE="MAKE=${MAKE-make}"
3833 # Find a good install program. We prefer a C program (faster),
3834 # so one script is as good as another. But avoid the broken or
3835 # incompatible versions:
3836 # SysV /etc/install, /usr/sbin/install
3837 # SunOS /usr/etc/install
3838 # IRIX /sbin/install
3839 # AIX /bin/install
3840 # AmigaOS /C/install, which installs bootblocks on floppy discs
3841 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3842 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3843 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3844 # OS/2's system install, which has a completely different semantic
3845 # ./install, which can be erroneously created by make from ./install.sh.
3846 # Reject install programs that cannot install multiple files.
3847 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3848 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3849 if test -z "$INSTALL"; then
3850 if test "${ac_cv_path_install+set}" = set; then
3851 $as_echo_n "(cached) " >&6
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 # Account for people who put trailing slashes in PATH elements.
3859 case $as_dir/ in
3860 ./ | .// | /cC/* | \
3861 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3862 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3863 /usr/ucb/* ) ;;
3865 # OSF1 and SCO ODT 3.0 have their own names for install.
3866 # Don't use installbsd from OSF since it installs stuff as root
3867 # by default.
3868 for ac_prog in ginstall scoinst install; do
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3871 if test $ac_prog = install &&
3872 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3873 # AIX install. It has an incompatible calling convention.
3875 elif test $ac_prog = install &&
3876 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3877 # program-specific install script used by HP pwplus--don't use.
3879 else
3880 rm -rf conftest.one conftest.two conftest.dir
3881 echo one > conftest.one
3882 echo two > conftest.two
3883 mkdir conftest.dir
3884 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3885 test -s conftest.one && test -s conftest.two &&
3886 test -s conftest.dir/conftest.one &&
3887 test -s conftest.dir/conftest.two
3888 then
3889 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3890 break 3
3894 done
3895 done
3897 esac
3899 done
3900 IFS=$as_save_IFS
3902 rm -rf conftest.one conftest.two conftest.dir
3905 if test "${ac_cv_path_install+set}" = set; then
3906 INSTALL=$ac_cv_path_install
3907 else
3908 # As a last resort, use the slow shell script. Don't cache a
3909 # value for INSTALL within a source directory, because that will
3910 # break other packages using the cache if that directory is
3911 # removed, or if the value is a relative name.
3912 INSTALL=$ac_install_sh
3915 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3916 $as_echo "$INSTALL" >&6; }
3918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3919 # It thinks the first close brace ends the variable substitution.
3920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3924 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3926 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3927 $as_echo_n "checking whether ln -s works... " >&6; }
3928 LN_S=$as_ln_s
3929 if test "$LN_S" = "ln -s"; then
3930 { $as_echo "$as_me:$LINENO: result: yes" >&5
3931 $as_echo "yes" >&6; }
3932 else
3933 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3934 $as_echo "no, using $LN_S" >&6; }
3937 for ac_prog in gzip uncompress compress
3939 # Extract the first word of "$ac_prog", so it can be a program name with args.
3940 set dummy $ac_prog; ac_word=$2
3941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -n "$UNCOMPRESS"; then
3947 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_UNCOMPRESS="$ac_prog"
3957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3960 done
3961 done
3962 IFS=$as_save_IFS
3966 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3967 if test -n "$UNCOMPRESS"; then
3968 { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3969 $as_echo "$UNCOMPRESS" >&6; }
3970 else
3971 { $as_echo "$as_me:$LINENO: result: no" >&5
3972 $as_echo "no" >&6; }
3976 test -n "$UNCOMPRESS" && break
3977 done
3982 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3985 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3989 $as_echo_n "(cached) " >&6
3990 else
3991 case $PKG_CONFIG in
3992 [\\/]* | ?:[\\/]*)
3993 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4003 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4007 done
4008 done
4009 IFS=$as_save_IFS
4012 esac
4014 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4015 if test -n "$PKG_CONFIG"; then
4016 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4017 $as_echo "$PKG_CONFIG" >&6; }
4018 else
4019 { $as_echo "$as_me:$LINENO: result: no" >&5
4020 $as_echo "no" >&6; }
4025 if test -z "$ac_cv_path_PKG_CONFIG"; then
4026 ac_pt_PKG_CONFIG=$PKG_CONFIG
4027 # Extract the first word of "pkg-config", so it can be a program name with args.
4028 set dummy pkg-config; ac_word=$2
4029 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4032 $as_echo_n "(cached) " >&6
4033 else
4034 case $ac_pt_PKG_CONFIG in
4035 [\\/]* | ?:[\\/]*)
4036 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4050 done
4051 done
4052 IFS=$as_save_IFS
4055 esac
4057 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4058 if test -n "$ac_pt_PKG_CONFIG"; then
4059 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4060 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4061 else
4062 { $as_echo "$as_me:$LINENO: result: no" >&5
4063 $as_echo "no" >&6; }
4066 if test "x$ac_pt_PKG_CONFIG" = x; then
4067 PKG_CONFIG=""
4068 else
4069 case $cross_compiling:$ac_tool_warned in
4070 yes:)
4071 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4072 whose name does not start with the host triplet. If you think this
4073 configuration is useful to you, please write to autoconf@gnu.org." >&5
4074 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4075 whose name does not start with the host triplet. If you think this
4076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4077 ac_tool_warned=yes ;;
4078 esac
4079 PKG_CONFIG=$ac_pt_PKG_CONFIG
4081 else
4082 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4086 if test -n "$PKG_CONFIG"; then
4087 _pkg_min_version=0.9.0
4088 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4089 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4090 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4091 { $as_echo "$as_me:$LINENO: result: yes" >&5
4092 $as_echo "yes" >&6; }
4093 else
4094 { $as_echo "$as_me:$LINENO: result: no" >&5
4095 $as_echo "no" >&6; }
4096 PKG_CONFIG=""
4101 OBJEXT="o"
4102 AREXT=".a"
4103 CXXLIBS="-lstdc++"
4107 if test "x$EXEEXT" = "x.exe";then
4108 OBJEXT="obj"
4109 AREXT=".lib"
4110 CXXLIBS=""
4116 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4117 $as_echo_n "checking host system type... " >&6; }
4118 if test "${ac_cv_host+set}" = set; then
4119 $as_echo_n "(cached) " >&6
4120 else
4121 if test "x$host_alias" = x; then
4122 ac_cv_host=$ac_cv_build
4123 else
4124 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4125 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4126 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4127 { (exit 1); exit 1; }; }
4131 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4132 $as_echo "$ac_cv_host" >&6; }
4133 case $ac_cv_host in
4134 *-*-*) ;;
4135 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4136 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4137 { (exit 1); exit 1; }; };;
4138 esac
4139 host=$ac_cv_host
4140 ac_save_IFS=$IFS; IFS='-'
4141 set x $ac_cv_host
4142 shift
4143 host_cpu=$1
4144 host_vendor=$2
4145 shift; shift
4146 # Remember, the first character of IFS is used to create $*,
4147 # except with old shells:
4148 host_os=$*
4149 IFS=$ac_save_IFS
4150 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4155 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4156 $as_echo_n "checking for target system... " >&6; }
4157 CYGWIN=
4158 MINGW=
4159 case $host_os in
4160 *cygwin* ) CYGWIN=yes;;
4161 *mingw* ) MINGW=yes;;
4162 esac
4164 AR=ar
4165 if test "x$MINGW" = "xyes"; then
4166 #fix for the debian distribution of mingw
4167 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4168 AR="/usr/i586-mingw32msvc/bin/ar"
4170 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4171 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4173 #fix for the gentoo distribution of mingw
4174 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4175 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4177 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4178 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4180 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4181 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4187 if test "x${CYGWIN}" = "xyes"; then
4189 cat >>confdefs.h <<\_ACEOF
4190 #define CYGWIN 1
4191 _ACEOF
4193 { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4194 $as_echo "cygwin" >&6; }
4195 else
4196 if test "x${MINGW}" = "xyes"; then
4198 cat >>confdefs.h <<\_ACEOF
4199 #define MINGW 1
4200 _ACEOF
4202 WIN32=1
4204 cat >>confdefs.h <<\_ACEOF
4205 #define WIN32 1
4206 _ACEOF
4208 LIBS="$LIBS -lws2_32 -lgdi32"
4209 { $as_echo "$as_me:$LINENO: result: mingw" >&5
4210 $as_echo "mingw" >&6; }
4211 else
4212 LINUX=1
4213 export LINUX
4215 cat >>confdefs.h <<\_ACEOF
4216 #define LINUX 1
4217 _ACEOF
4219 { $as_echo "$as_me:$LINENO: result: " >&5
4220 $as_echo "" >&6; }
4225 SLEXT="so"
4226 if test "x${MINGW}" != "xyes"; then
4227 # no mingW
4229 cat >>confdefs.h <<\_ACEOF
4230 #define O_BINARY 0
4231 _ACEOF
4233 else
4234 # mingW
4235 SLEXT="dll"
4236 CXXLIBS=""
4238 export SLEXT
4242 # The following tries to make use of includes and libraries in
4243 # /usr/local, too. Notice: A -I/usr/local/include might break
4244 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4245 # especially on systems which link /usr/local to /usr, so it has yet
4246 # to be seen how useful this is.
4247 if test -d /usr/local/lib; then
4248 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4250 if test -d /usr/local/include; then
4251 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4252 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4253 echo > /dev/null
4255 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4256 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4257 # and $prefix/include, which should be included in our search paths for libraries
4258 # and includes.
4259 LDFLAGS="$LDFLAGS -L${libdir}"
4260 CPPFLAGS="$CPPFLAGS -I${includedir}"
4261 # TODO- test whether gcc still works after this
4264 #Mac OS:
4265 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4268 # this must be done after (I believe) AC_PROG_MAKE_SET
4269 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4270 STRIP="@echo debug enabled, not stripping "
4271 export STRIP
4277 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4278 $as_echo_n "checking for sin in -lm... " >&6; }
4279 if test "${ac_cv_lib_m_sin+set}" = set; then
4280 $as_echo_n "(cached) " >&6
4281 else
4282 ac_check_lib_save_LIBS=$LIBS
4283 LIBS="-lm $LIBS"
4284 cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h. */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4291 /* Override any GCC internal prototype to avoid an error.
4292 Use char because int might match the return type of a GCC
4293 builtin and then its argument prototype would still apply. */
4294 #ifdef __cplusplus
4295 extern "C"
4296 #endif
4297 char sin ();
4299 main ()
4301 return sin ();
4303 return 0;
4305 _ACEOF
4306 rm -f conftest.$ac_objext conftest$ac_exeext
4307 if { (ac_try="$ac_link"
4308 case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311 esac
4312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4313 $as_echo "$ac_try_echo") >&5
4314 (eval "$ac_link") 2>conftest.er1
4315 ac_status=$?
4316 grep -v '^ *+' conftest.er1 >conftest.err
4317 rm -f conftest.er1
4318 cat conftest.err >&5
4319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } && {
4321 test -z "$ac_c_werror_flag" ||
4322 test ! -s conftest.err
4323 } && test -s conftest$ac_exeext && {
4324 test "$cross_compiling" = yes ||
4325 $as_test_x conftest$ac_exeext
4326 }; then
4327 ac_cv_lib_m_sin=yes
4328 else
4329 $as_echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 ac_cv_lib_m_sin=no
4335 rm -rf conftest.dSYM
4336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4337 conftest$ac_exeext conftest.$ac_ext
4338 LIBS=$ac_check_lib_save_LIBS
4340 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4341 $as_echo "$ac_cv_lib_m_sin" >&6; }
4342 if test $ac_cv_lib_m_sin = yes; then
4343 cat >>confdefs.h <<_ACEOF
4344 #define HAVE_LIBM 1
4345 _ACEOF
4347 LIBS="-lm $LIBS"
4349 else
4350 echo "Error: Math library not found.";
4351 exit;
4356 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4357 $as_echo_n "checking for deflate in -lz... " >&6; }
4358 if test "${ac_cv_lib_z_deflate+set}" = set; then
4359 $as_echo_n "(cached) " >&6
4360 else
4361 ac_check_lib_save_LIBS=$LIBS
4362 LIBS="-lz $LIBS"
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h. */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4370 /* Override any GCC internal prototype to avoid an error.
4371 Use char because int might match the return type of a GCC
4372 builtin and then its argument prototype would still apply. */
4373 #ifdef __cplusplus
4374 extern "C"
4375 #endif
4376 char deflate ();
4378 main ()
4380 return deflate ();
4382 return 0;
4384 _ACEOF
4385 rm -f conftest.$ac_objext conftest$ac_exeext
4386 if { (ac_try="$ac_link"
4387 case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4392 $as_echo "$ac_try_echo") >&5
4393 (eval "$ac_link") 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && {
4400 test -z "$ac_c_werror_flag" ||
4401 test ! -s conftest.err
4402 } && test -s conftest$ac_exeext && {
4403 test "$cross_compiling" = yes ||
4404 $as_test_x conftest$ac_exeext
4405 }; then
4406 ac_cv_lib_z_deflate=yes
4407 else
4408 $as_echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 ac_cv_lib_z_deflate=no
4414 rm -rf conftest.dSYM
4415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4416 conftest$ac_exeext conftest.$ac_ext
4417 LIBS=$ac_check_lib_save_LIBS
4419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4420 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4421 if test $ac_cv_lib_z_deflate = yes; then
4422 cat >>confdefs.h <<_ACEOF
4423 #define HAVE_LIBZ 1
4424 _ACEOF
4426 LIBS="-lz $LIBS"
4428 else
4429 ZLIBMISSING=true
4433 if test "x$ZLIBMISSING" = "xtrue";then
4434 echo
4435 echo "ERROR:"
4436 echo "You need zlib to compile swftools"
4437 echo
4438 exit
4442 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4443 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4444 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4445 $as_echo_n "(cached) " >&6
4446 else
4447 ac_check_lib_save_LIBS=$LIBS
4448 LIBS="-ljpeg $LIBS"
4449 cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h. */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4456 /* Override any GCC internal prototype to avoid an error.
4457 Use char because int might match the return type of a GCC
4458 builtin and then its argument prototype would still apply. */
4459 #ifdef __cplusplus
4460 extern "C"
4461 #endif
4462 char jpeg_write_raw_data ();
4464 main ()
4466 return jpeg_write_raw_data ();
4468 return 0;
4470 _ACEOF
4471 rm -f conftest.$ac_objext conftest$ac_exeext
4472 if { (ac_try="$ac_link"
4473 case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4478 $as_echo "$ac_try_echo") >&5
4479 (eval "$ac_link") 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && {
4486 test -z "$ac_c_werror_flag" ||
4487 test ! -s conftest.err
4488 } && test -s conftest$ac_exeext && {
4489 test "$cross_compiling" = yes ||
4490 $as_test_x conftest$ac_exeext
4491 }; then
4492 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4493 else
4494 $as_echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4500 rm -rf conftest.dSYM
4501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4502 conftest$ac_exeext conftest.$ac_ext
4503 LIBS=$ac_check_lib_save_LIBS
4505 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4506 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4507 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4508 cat >>confdefs.h <<_ACEOF
4509 #define HAVE_LIBJPEG 1
4510 _ACEOF
4512 LIBS="-ljpeg $LIBS"
4514 else
4515 JPEGLIBMISSING=true
4519 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4520 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4521 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4522 $as_echo_n "(cached) " >&6
4523 else
4524 ac_check_lib_save_LIBS=$LIBS
4525 LIBS="-lungif $LIBS"
4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h. */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4533 /* Override any GCC internal prototype to avoid an error.
4534 Use char because int might match the return type of a GCC
4535 builtin and then its argument prototype would still apply. */
4536 #ifdef __cplusplus
4537 extern "C"
4538 #endif
4539 char DGifOpen ();
4541 main ()
4543 return DGifOpen ();
4545 return 0;
4547 _ACEOF
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (ac_try="$ac_link"
4550 case "(($ac_try" in
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4553 esac
4554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4555 $as_echo "$ac_try_echo") >&5
4556 (eval "$ac_link") 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } && {
4563 test -z "$ac_c_werror_flag" ||
4564 test ! -s conftest.err
4565 } && test -s conftest$ac_exeext && {
4566 test "$cross_compiling" = yes ||
4567 $as_test_x conftest$ac_exeext
4568 }; then
4569 ac_cv_lib_ungif_DGifOpen=yes
4570 else
4571 $as_echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 ac_cv_lib_ungif_DGifOpen=no
4577 rm -rf conftest.dSYM
4578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4579 conftest$ac_exeext conftest.$ac_ext
4580 LIBS=$ac_check_lib_save_LIBS
4582 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4583 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4584 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4585 cat >>confdefs.h <<_ACEOF
4586 #define HAVE_LIBUNGIF 1
4587 _ACEOF
4589 LIBS="-lungif $LIBS"
4591 else
4592 UNGIFMISSING=true
4595 if test "$UNGIFMISSING";then
4596 UNGIFMISSING=
4598 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4599 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4600 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4601 $as_echo_n "(cached) " >&6
4602 else
4603 ac_check_lib_save_LIBS=$LIBS
4604 LIBS="-lgif $LIBS"
4605 cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h. */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4612 /* Override any GCC internal prototype to avoid an error.
4613 Use char because int might match the return type of a GCC
4614 builtin and then its argument prototype would still apply. */
4615 #ifdef __cplusplus
4616 extern "C"
4617 #endif
4618 char DGifOpen ();
4620 main ()
4622 return DGifOpen ();
4624 return 0;
4626 _ACEOF
4627 rm -f conftest.$ac_objext conftest$ac_exeext
4628 if { (ac_try="$ac_link"
4629 case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632 esac
4633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_link") 2>conftest.er1
4636 ac_status=$?
4637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest$ac_exeext && {
4645 test "$cross_compiling" = yes ||
4646 $as_test_x conftest$ac_exeext
4647 }; then
4648 ac_cv_lib_gif_DGifOpen=yes
4649 else
4650 $as_echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 ac_cv_lib_gif_DGifOpen=no
4656 rm -rf conftest.dSYM
4657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4658 conftest$ac_exeext conftest.$ac_ext
4659 LIBS=$ac_check_lib_save_LIBS
4661 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4662 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4663 if test $ac_cv_lib_gif_DGifOpen = yes; then
4664 cat >>confdefs.h <<_ACEOF
4665 #define HAVE_LIBGIF 1
4666 _ACEOF
4668 LIBS="-lgif $LIBS"
4670 else
4671 UNGIFMISSING=true
4677 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4678 $as_echo_n "checking for byte order... " >&6; }
4679 if test "$cross_compiling" = yes; then
4680 CROSSCOMPILE=1
4681 else
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4689 int main (int argc, char *argv[])
4691 int i = 1;
4692 return *(char*)&i;
4695 _ACEOF
4696 rm -f conftest$ac_exeext
4697 if { (ac_try="$ac_link"
4698 case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4701 esac
4702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4703 $as_echo "$ac_try_echo") >&5
4704 (eval "$ac_link") 2>&5
4705 ac_status=$?
4706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4708 { (case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711 esac
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714 (eval "$ac_try") 2>&5
4715 ac_status=$?
4716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 BIGENDIAN=1
4719 else
4720 $as_echo "$as_me: program exited with status $ac_status" >&5
4721 $as_echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4724 ( exit $ac_status )
4725 LITTLEENDIAN=1
4727 rm -rf conftest.dSYM
4728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4732 export CROSSCOMPILE
4734 if test "x${CROSSCOMPILE}" = "x1"; then
4735 { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4736 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4737 { $as_echo "$as_me:$LINENO: checking target system type" >&5
4738 $as_echo_n "checking target system type... " >&6; }
4739 if test "${ac_cv_target+set}" = set; then
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test "x$target_alias" = x; then
4743 ac_cv_target=$ac_cv_host
4744 else
4745 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4746 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4747 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4748 { (exit 1); exit 1; }; }
4752 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4753 $as_echo "$ac_cv_target" >&6; }
4754 case $ac_cv_target in
4755 *-*-*) ;;
4756 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4757 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4758 { (exit 1); exit 1; }; };;
4759 esac
4760 target=$ac_cv_target
4761 ac_save_IFS=$IFS; IFS='-'
4762 set x $ac_cv_target
4763 shift
4764 target_cpu=$1
4765 target_vendor=$2
4766 shift; shift
4767 # Remember, the first character of IFS is used to create $*,
4768 # except with old shells:
4769 target_os=$*
4770 IFS=$ac_save_IFS
4771 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4774 # The aliases save the names the user supplied, while $host etc.
4775 # will get canonicalized.
4776 test -n "$target_alias" &&
4777 test "$program_prefix$program_suffix$program_transform_name" = \
4778 NONENONEs,x,x, &&
4779 program_prefix=${target_alias}-
4780 { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4781 $as_echo_n "checking for byte order, try 2... " >&6; }
4782 case "${target}" in
4783 *86* | *-pc-* )
4784 LITTLEENDIAN=1
4786 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4787 BIGENDIAN=1
4789 esac
4792 export LITTLEENDIAN
4793 if test "x${LITTLEENDIAN}" = "x1"; then
4794 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4795 $as_echo "little endian" >&6; }
4796 BYTEORDERCHECKOK=1
4798 export BIGENDIAN
4799 if test "x${BIGENDIAN}" = "x1"; then
4800 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4801 $as_echo "big endian" >&6; }
4802 BYTEORDERCHECKOK=1
4803 WORDS_BIGENDIAN=1
4804 export WORDS_BIGENDIAN
4806 cat >>confdefs.h <<\_ACEOF
4807 #define WORDS_BIGENDIAN 1
4808 _ACEOF
4811 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4812 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4813 $as_echo "unknown" >&6; }
4814 echo Byte order could not determined.
4815 exit 1
4820 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4821 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4822 if test "$cross_compiling" = yes; then
4823 CROSSCOMPILE=1
4824 else
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4832 #include "stdlib.h"
4833 int main (int argc, char*argv[])
4835 return system("test `touch config.tmp2`");
4838 _ACEOF
4839 rm -f conftest$ac_exeext
4840 if { (ac_try="$ac_link"
4841 case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844 esac
4845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4846 $as_echo "$ac_try_echo") >&5
4847 (eval "$ac_link") 2>&5
4848 ac_status=$?
4849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4851 { (case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_try") 2>&5
4858 ac_status=$?
4859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4861 OK=OK
4862 else
4863 $as_echo "$as_me: program exited with status $ac_status" >&5
4864 $as_echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4868 rm -rf conftest.dSYM
4869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4874 if test "x${OK}" = "xOK";then
4875 test -f config.tmp2 || OK=
4878 if test "x${CROSSCOMPILE}" = "x1";then
4879 OK=no;
4881 if test "x${OK}" = "xOK";then
4882 rm -f config.tmp2
4883 { $as_echo "$as_me:$LINENO: result: yes" >&5
4884 $as_echo "yes" >&6; }
4885 SYSTEM_BACKTICKS=1
4886 export SYSTEM_BACKTICKS
4888 cat >>confdefs.h <<\_ACEOF
4889 #define SYSTEM_BACKTICKS 1
4890 _ACEOF
4892 else
4893 { $as_echo "$as_me:$LINENO: result: no" >&5
4894 $as_echo "no" >&6; }
4899 test "$program_prefix" != NONE &&
4900 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4901 # Use a double $ so make ignores it.
4902 test "$program_suffix" != NONE &&
4903 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4904 # Double any \ or $.
4905 # By default was `s,x,x', remove it if useless.
4906 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4907 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4910 ac_config_headers="$ac_config_headers config.h"
4917 ac_header_dirent=no
4918 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4919 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4920 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4921 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4923 $as_echo_n "(cached) " >&6
4924 else
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 #include <sys/types.h>
4932 #include <$ac_hdr>
4935 main ()
4937 if ((DIR *) 0)
4938 return 0;
4940 return 0;
4942 _ACEOF
4943 rm -f conftest.$ac_objext
4944 if { (ac_try="$ac_compile"
4945 case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948 esac
4949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4950 $as_echo "$ac_try_echo") >&5
4951 (eval "$ac_compile") 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } && {
4958 test -z "$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4960 } && test -s conftest.$ac_objext; then
4961 eval "$as_ac_Header=yes"
4962 else
4963 $as_echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4966 eval "$as_ac_Header=no"
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 ac_res=`eval 'as_val=${'$as_ac_Header'}
4972 $as_echo "$as_val"'`
4973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4974 $as_echo "$ac_res" >&6; }
4975 if test `eval 'as_val=${'$as_ac_Header'}
4976 $as_echo "$as_val"'` = yes; then
4977 cat >>confdefs.h <<_ACEOF
4978 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4979 _ACEOF
4981 ac_header_dirent=$ac_hdr; break
4984 done
4985 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4986 if test $ac_header_dirent = dirent.h; then
4987 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4988 $as_echo_n "checking for library containing opendir... " >&6; }
4989 if test "${ac_cv_search_opendir+set}" = set; then
4990 $as_echo_n "(cached) " >&6
4991 else
4992 ac_func_search_save_LIBS=$LIBS
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
5000 /* Override any GCC internal prototype to avoid an error.
5001 Use char because int might match the return type of a GCC
5002 builtin and then its argument prototype would still apply. */
5003 #ifdef __cplusplus
5004 extern "C"
5005 #endif
5006 char opendir ();
5008 main ()
5010 return opendir ();
5012 return 0;
5014 _ACEOF
5015 for ac_lib in '' dir; do
5016 if test -z "$ac_lib"; then
5017 ac_res="none required"
5018 else
5019 ac_res=-l$ac_lib
5020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5022 rm -f conftest.$ac_objext conftest$ac_exeext
5023 if { (ac_try="$ac_link"
5024 case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027 esac
5028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5029 $as_echo "$ac_try_echo") >&5
5030 (eval "$ac_link") 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && {
5037 test -z "$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 } && test -s conftest$ac_exeext && {
5040 test "$cross_compiling" = yes ||
5041 $as_test_x conftest$ac_exeext
5042 }; then
5043 ac_cv_search_opendir=$ac_res
5044 else
5045 $as_echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5051 rm -rf conftest.dSYM
5052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5053 conftest$ac_exeext
5054 if test "${ac_cv_search_opendir+set}" = set; then
5055 break
5057 done
5058 if test "${ac_cv_search_opendir+set}" = set; then
5060 else
5061 ac_cv_search_opendir=no
5063 rm conftest.$ac_ext
5064 LIBS=$ac_func_search_save_LIBS
5066 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5067 $as_echo "$ac_cv_search_opendir" >&6; }
5068 ac_res=$ac_cv_search_opendir
5069 if test "$ac_res" != no; then
5070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5074 else
5075 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5076 $as_echo_n "checking for library containing opendir... " >&6; }
5077 if test "${ac_cv_search_opendir+set}" = set; then
5078 $as_echo_n "(cached) " >&6
5079 else
5080 ac_func_search_save_LIBS=$LIBS
5081 cat >conftest.$ac_ext <<_ACEOF
5082 /* confdefs.h. */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5088 /* Override any GCC internal prototype to avoid an error.
5089 Use char because int might match the return type of a GCC
5090 builtin and then its argument prototype would still apply. */
5091 #ifdef __cplusplus
5092 extern "C"
5093 #endif
5094 char opendir ();
5096 main ()
5098 return opendir ();
5100 return 0;
5102 _ACEOF
5103 for ac_lib in '' x; do
5104 if test -z "$ac_lib"; then
5105 ac_res="none required"
5106 else
5107 ac_res=-l$ac_lib
5108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5110 rm -f conftest.$ac_objext conftest$ac_exeext
5111 if { (ac_try="$ac_link"
5112 case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5117 $as_echo "$ac_try_echo") >&5
5118 (eval "$ac_link") 2>conftest.er1
5119 ac_status=$?
5120 grep -v '^ *+' conftest.er1 >conftest.err
5121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } && {
5125 test -z "$ac_c_werror_flag" ||
5126 test ! -s conftest.err
5127 } && test -s conftest$ac_exeext && {
5128 test "$cross_compiling" = yes ||
5129 $as_test_x conftest$ac_exeext
5130 }; then
5131 ac_cv_search_opendir=$ac_res
5132 else
5133 $as_echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5139 rm -rf conftest.dSYM
5140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5141 conftest$ac_exeext
5142 if test "${ac_cv_search_opendir+set}" = set; then
5143 break
5145 done
5146 if test "${ac_cv_search_opendir+set}" = set; then
5148 else
5149 ac_cv_search_opendir=no
5151 rm conftest.$ac_ext
5152 LIBS=$ac_func_search_save_LIBS
5154 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5155 $as_echo "$ac_cv_search_opendir" >&6; }
5156 ac_res=$ac_cv_search_opendir
5157 if test "$ac_res" != no; then
5158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5165 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5166 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5167 if test "${ac_cv_path_GREP+set}" = set; then
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -z "$GREP"; then
5171 ac_path_GREP_found=false
5172 # Loop through the user's path and test for each of PROGNAME-LIST
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_prog in grep ggrep; do
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5181 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5182 # Check for GNU ac_path_GREP and select it if it is found.
5183 # Check for GNU $ac_path_GREP
5184 case `"$ac_path_GREP" --version 2>&1` in
5185 *GNU*)
5186 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5188 ac_count=0
5189 $as_echo_n 0123456789 >"conftest.in"
5190 while :
5192 cat "conftest.in" "conftest.in" >"conftest.tmp"
5193 mv "conftest.tmp" "conftest.in"
5194 cp "conftest.in" "conftest.nl"
5195 $as_echo 'GREP' >> "conftest.nl"
5196 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5198 ac_count=`expr $ac_count + 1`
5199 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5200 # Best one so far, save it but keep looking for a better one
5201 ac_cv_path_GREP="$ac_path_GREP"
5202 ac_path_GREP_max=$ac_count
5204 # 10*(2^10) chars as input seems more than enough
5205 test $ac_count -gt 10 && break
5206 done
5207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5208 esac
5210 $ac_path_GREP_found && break 3
5211 done
5212 done
5213 done
5214 IFS=$as_save_IFS
5215 if test -z "$ac_cv_path_GREP"; then
5216 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5217 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5218 { (exit 1); exit 1; }; }
5220 else
5221 ac_cv_path_GREP=$GREP
5225 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5226 $as_echo "$ac_cv_path_GREP" >&6; }
5227 GREP="$ac_cv_path_GREP"
5230 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5231 $as_echo_n "checking for egrep... " >&6; }
5232 if test "${ac_cv_path_EGREP+set}" = set; then
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5236 then ac_cv_path_EGREP="$GREP -E"
5237 else
5238 if test -z "$EGREP"; then
5239 ac_path_EGREP_found=false
5240 # Loop through the user's path and test for each of PROGNAME-LIST
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_prog in egrep; do
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5249 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5250 # Check for GNU ac_path_EGREP and select it if it is found.
5251 # Check for GNU $ac_path_EGREP
5252 case `"$ac_path_EGREP" --version 2>&1` in
5253 *GNU*)
5254 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5256 ac_count=0
5257 $as_echo_n 0123456789 >"conftest.in"
5258 while :
5260 cat "conftest.in" "conftest.in" >"conftest.tmp"
5261 mv "conftest.tmp" "conftest.in"
5262 cp "conftest.in" "conftest.nl"
5263 $as_echo 'EGREP' >> "conftest.nl"
5264 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5266 ac_count=`expr $ac_count + 1`
5267 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5268 # Best one so far, save it but keep looking for a better one
5269 ac_cv_path_EGREP="$ac_path_EGREP"
5270 ac_path_EGREP_max=$ac_count
5272 # 10*(2^10) chars as input seems more than enough
5273 test $ac_count -gt 10 && break
5274 done
5275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5276 esac
5278 $ac_path_EGREP_found && break 3
5279 done
5280 done
5281 done
5282 IFS=$as_save_IFS
5283 if test -z "$ac_cv_path_EGREP"; then
5284 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5285 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5286 { (exit 1); exit 1; }; }
5288 else
5289 ac_cv_path_EGREP=$EGREP
5294 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5295 $as_echo "$ac_cv_path_EGREP" >&6; }
5296 EGREP="$ac_cv_path_EGREP"
5299 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5300 $as_echo_n "checking for ANSI C header files... " >&6; }
5301 if test "${ac_cv_header_stdc+set}" = set; then
5302 $as_echo_n "(cached) " >&6
5303 else
5304 cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h. */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 #include <stdlib.h>
5311 #include <stdarg.h>
5312 #include <string.h>
5313 #include <float.h>
5316 main ()
5320 return 0;
5322 _ACEOF
5323 rm -f conftest.$ac_objext
5324 if { (ac_try="$ac_compile"
5325 case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328 esac
5329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5330 $as_echo "$ac_try_echo") >&5
5331 (eval "$ac_compile") 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } && {
5338 test -z "$ac_c_werror_flag" ||
5339 test ! -s conftest.err
5340 } && test -s conftest.$ac_objext; then
5341 ac_cv_header_stdc=yes
5342 else
5343 $as_echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 ac_cv_header_stdc=no
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 if test $ac_cv_header_stdc = yes; then
5352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #include <string.h>
5361 _ACEOF
5362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363 $EGREP "memchr" >/dev/null 2>&1; then
5365 else
5366 ac_cv_header_stdc=no
5368 rm -f conftest*
5372 if test $ac_cv_header_stdc = yes; then
5373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 #include <stdlib.h>
5382 _ACEOF
5383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5384 $EGREP "free" >/dev/null 2>&1; then
5386 else
5387 ac_cv_header_stdc=no
5389 rm -f conftest*
5393 if test $ac_cv_header_stdc = yes; then
5394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5395 if test "$cross_compiling" = yes; then
5397 else
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h. */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 #include <ctype.h>
5405 #include <stdlib.h>
5406 #if ((' ' & 0x0FF) == 0x020)
5407 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5408 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5409 #else
5410 # define ISLOWER(c) \
5411 (('a' <= (c) && (c) <= 'i') \
5412 || ('j' <= (c) && (c) <= 'r') \
5413 || ('s' <= (c) && (c) <= 'z'))
5414 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5415 #endif
5417 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5419 main ()
5421 int i;
5422 for (i = 0; i < 256; i++)
5423 if (XOR (islower (i), ISLOWER (i))
5424 || toupper (i) != TOUPPER (i))
5425 return 2;
5426 return 0;
5428 _ACEOF
5429 rm -f conftest$ac_exeext
5430 if { (ac_try="$ac_link"
5431 case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434 esac
5435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5436 $as_echo "$ac_try_echo") >&5
5437 (eval "$ac_link") 2>&5
5438 ac_status=$?
5439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5441 { (case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5446 $as_echo "$ac_try_echo") >&5
5447 (eval "$ac_try") 2>&5
5448 ac_status=$?
5449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5452 else
5453 $as_echo "$as_me: program exited with status $ac_status" >&5
5454 $as_echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ( exit $ac_status )
5458 ac_cv_header_stdc=no
5460 rm -rf conftest.dSYM
5461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5468 $as_echo "$ac_cv_header_stdc" >&6; }
5469 if test $ac_cv_header_stdc = yes; then
5471 cat >>confdefs.h <<\_ACEOF
5472 #define STDC_HEADERS 1
5473 _ACEOF
5478 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5488 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5489 inttypes.h stdint.h unistd.h
5491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5492 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5493 $as_echo_n "checking for $ac_header... " >&6; }
5494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5495 $as_echo_n "(cached) " >&6
5496 else
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5505 #include <$ac_header>
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (ac_try="$ac_compile"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5514 $as_echo "$ac_try_echo") >&5
5515 (eval "$ac_compile") 2>conftest.er1
5516 ac_status=$?
5517 grep -v '^ *+' conftest.er1 >conftest.err
5518 rm -f conftest.er1
5519 cat conftest.err >&5
5520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } && {
5522 test -z "$ac_c_werror_flag" ||
5523 test ! -s conftest.err
5524 } && test -s conftest.$ac_objext; then
5525 eval "$as_ac_Header=yes"
5526 else
5527 $as_echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 eval "$as_ac_Header=no"
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 ac_res=`eval 'as_val=${'$as_ac_Header'}
5536 $as_echo "$as_val"'`
5537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5538 $as_echo "$ac_res" >&6; }
5539 if test `eval 'as_val=${'$as_ac_Header'}
5540 $as_echo "$as_val"'` = yes; then
5541 cat >>confdefs.h <<_ACEOF
5542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5543 _ACEOF
5547 done
5569 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h
5571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5573 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5574 $as_echo_n "checking for $ac_header... " >&6; }
5575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5576 $as_echo_n "(cached) " >&6
5578 ac_res=`eval 'as_val=${'$as_ac_Header'}
5579 $as_echo "$as_val"'`
5580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5581 $as_echo "$ac_res" >&6; }
5582 else
5583 # Is the header compilable?
5584 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5585 $as_echo_n "checking $ac_header usability... " >&6; }
5586 cat >conftest.$ac_ext <<_ACEOF
5587 /* confdefs.h. */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5592 $ac_includes_default
5593 #include <$ac_header>
5594 _ACEOF
5595 rm -f conftest.$ac_objext
5596 if { (ac_try="$ac_compile"
5597 case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5602 $as_echo "$ac_try_echo") >&5
5603 (eval "$ac_compile") 2>conftest.er1
5604 ac_status=$?
5605 grep -v '^ *+' conftest.er1 >conftest.err
5606 rm -f conftest.er1
5607 cat conftest.err >&5
5608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } && {
5610 test -z "$ac_c_werror_flag" ||
5611 test ! -s conftest.err
5612 } && test -s conftest.$ac_objext; then
5613 ac_header_compiler=yes
5614 else
5615 $as_echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5618 ac_header_compiler=no
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5623 $as_echo "$ac_header_compiler" >&6; }
5625 # Is the header present?
5626 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5627 $as_echo_n "checking $ac_header presence... " >&6; }
5628 cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h. */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634 #include <$ac_header>
5635 _ACEOF
5636 if { (ac_try="$ac_cpp conftest.$ac_ext"
5637 case "(($ac_try" in
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5640 esac
5641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5642 $as_echo "$ac_try_echo") >&5
5643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } >/dev/null && {
5650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5651 test ! -s conftest.err
5652 }; then
5653 ac_header_preproc=yes
5654 else
5655 $as_echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 ac_header_preproc=no
5661 rm -f conftest.err conftest.$ac_ext
5662 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5663 $as_echo "$ac_header_preproc" >&6; }
5665 # So? What about this header?
5666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5667 yes:no: )
5668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5669 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5671 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5672 ac_header_preproc=yes
5674 no:yes:* )
5675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5676 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5678 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5680 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5682 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5684 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5686 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5689 esac
5690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5691 $as_echo_n "checking for $ac_header... " >&6; }
5692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5693 $as_echo_n "(cached) " >&6
5694 else
5695 eval "$as_ac_Header=\$ac_header_preproc"
5697 ac_res=`eval 'as_val=${'$as_ac_Header'}
5698 $as_echo "$as_val"'`
5699 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5700 $as_echo "$ac_res" >&6; }
5703 if test `eval 'as_val=${'$as_ac_Header'}
5704 $as_echo "$as_val"'` = yes; then
5705 cat >>confdefs.h <<_ACEOF
5706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5707 _ACEOF
5711 done
5715 cat >>confdefs.h <<_ACEOF
5716 #define PACKAGE "$PACKAGE"
5717 _ACEOF
5720 cat >>confdefs.h <<_ACEOF
5721 #define VERSION "$VERSION"
5722 _ACEOF
5730 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5731 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5732 if test "${ac_cv_c_const+set}" = set; then
5733 $as_echo_n "(cached) " >&6
5734 else
5735 cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h. */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5743 main ()
5745 /* FIXME: Include the comments suggested by Paul. */
5746 #ifndef __cplusplus
5747 /* Ultrix mips cc rejects this. */
5748 typedef int charset[2];
5749 const charset cs;
5750 /* SunOS 4.1.1 cc rejects this. */
5751 char const *const *pcpcc;
5752 char **ppc;
5753 /* NEC SVR4.0.2 mips cc rejects this. */
5754 struct point {int x, y;};
5755 static struct point const zero = {0,0};
5756 /* AIX XL C 1.02.0.0 rejects this.
5757 It does not let you subtract one const X* pointer from another in
5758 an arm of an if-expression whose if-part is not a constant
5759 expression */
5760 const char *g = "string";
5761 pcpcc = &g + (g ? g-g : 0);
5762 /* HPUX 7.0 cc rejects these. */
5763 ++pcpcc;
5764 ppc = (char**) pcpcc;
5765 pcpcc = (char const *const *) ppc;
5766 { /* SCO 3.2v4 cc rejects this. */
5767 char *t;
5768 char const *s = 0 ? (char *) 0 : (char const *) 0;
5770 *t++ = 0;
5771 if (s) return 0;
5773 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5774 int x[] = {25, 17};
5775 const int *foo = &x[0];
5776 ++foo;
5778 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5779 typedef const int *iptr;
5780 iptr p = 0;
5781 ++p;
5783 { /* AIX XL C 1.02.0.0 rejects this saying
5784 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5785 struct s { int j; const int *ap[3]; };
5786 struct s *b; b->j = 5;
5788 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5789 const int foo = 10;
5790 if (!foo) return 0;
5792 return !cs[0] && !zero.x;
5793 #endif
5796 return 0;
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (ac_try="$ac_compile"
5801 case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804 esac
5805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5806 $as_echo "$ac_try_echo") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5817 ac_cv_c_const=yes
5818 else
5819 $as_echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5822 ac_cv_c_const=no
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5828 $as_echo "$ac_cv_c_const" >&6; }
5829 if test $ac_cv_c_const = no; then
5831 cat >>confdefs.h <<\_ACEOF
5832 #define const /**/
5833 _ACEOF
5837 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5838 $as_echo_n "checking for inline... " >&6; }
5839 if test "${ac_cv_c_inline+set}" = set; then
5840 $as_echo_n "(cached) " >&6
5841 else
5842 ac_cv_c_inline=no
5843 for ac_kw in inline __inline__ __inline; do
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 #ifndef __cplusplus
5851 typedef int foo_t;
5852 static $ac_kw foo_t static_foo () {return 0; }
5853 $ac_kw foo_t foo () {return 0; }
5854 #endif
5856 _ACEOF
5857 rm -f conftest.$ac_objext
5858 if { (ac_try="$ac_compile"
5859 case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862 esac
5863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5864 $as_echo "$ac_try_echo") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest.$ac_objext; then
5875 ac_cv_c_inline=$ac_kw
5876 else
5877 $as_echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 test "$ac_cv_c_inline" != no && break
5885 done
5888 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5889 $as_echo "$ac_cv_c_inline" >&6; }
5892 case $ac_cv_c_inline in
5893 inline | yes) ;;
5895 case $ac_cv_c_inline in
5896 no) ac_val=;;
5897 *) ac_val=$ac_cv_c_inline;;
5898 esac
5899 cat >>confdefs.h <<_ACEOF
5900 #ifndef __cplusplus
5901 #define inline $ac_val
5902 #endif
5903 _ACEOF
5905 esac
5907 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5908 $as_echo_n "checking for off_t... " >&6; }
5909 if test "${ac_cv_type_off_t+set}" = set; then
5910 $as_echo_n "(cached) " >&6
5911 else
5912 ac_cv_type_off_t=no
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 $ac_includes_default
5921 main ()
5923 if (sizeof (off_t))
5924 return 0;
5926 return 0;
5928 _ACEOF
5929 rm -f conftest.$ac_objext
5930 if { (ac_try="$ac_compile"
5931 case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934 esac
5935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936 $as_echo "$ac_try_echo") >&5
5937 (eval "$ac_compile") 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest.$ac_objext; then
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5955 main ()
5957 if (sizeof ((off_t)))
5958 return 0;
5960 return 0;
5962 _ACEOF
5963 rm -f conftest.$ac_objext
5964 if { (ac_try="$ac_compile"
5965 case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968 esac
5969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5970 $as_echo "$ac_try_echo") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } && {
5978 test -z "$ac_c_werror_flag" ||
5979 test ! -s conftest.err
5980 } && test -s conftest.$ac_objext; then
5982 else
5983 $as_echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 ac_cv_type_off_t=yes
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 else
5991 $as_echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6000 $as_echo "$ac_cv_type_off_t" >&6; }
6001 if test $ac_cv_type_off_t = yes; then
6003 else
6005 cat >>confdefs.h <<_ACEOF
6006 #define off_t long int
6007 _ACEOF
6011 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6012 $as_echo_n "checking for size_t... " >&6; }
6013 if test "${ac_cv_type_size_t+set}" = set; then
6014 $as_echo_n "(cached) " >&6
6015 else
6016 ac_cv_type_size_t=no
6017 cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h. */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 $ac_includes_default
6025 main ()
6027 if (sizeof (size_t))
6028 return 0;
6030 return 0;
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6035 case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038 esac
6039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6040 $as_echo "$ac_try_echo") >&5
6041 (eval "$ac_compile") 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } && {
6048 test -z "$ac_c_werror_flag" ||
6049 test ! -s conftest.err
6050 } && test -s conftest.$ac_objext; then
6051 cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h. */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 $ac_includes_default
6059 main ()
6061 if (sizeof ((size_t)))
6062 return 0;
6064 return 0;
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (ac_try="$ac_compile"
6069 case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072 esac
6073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6074 $as_echo "$ac_try_echo") >&5
6075 (eval "$ac_compile") 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && {
6082 test -z "$ac_c_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest.$ac_objext; then
6086 else
6087 $as_echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_cv_type_size_t=yes
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 else
6095 $as_echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6104 $as_echo "$ac_cv_type_size_t" >&6; }
6105 if test $ac_cv_type_size_t = yes; then
6107 else
6109 cat >>confdefs.h <<_ACEOF
6110 #define size_t unsigned int
6111 _ACEOF
6115 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6116 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6117 if test "${ac_cv_struct_tm+set}" = set; then
6118 $as_echo_n "(cached) " >&6
6119 else
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 #include <sys/types.h>
6127 #include <time.h>
6130 main ()
6132 struct tm tm;
6133 int *p = &tm.tm_sec;
6134 return !p;
6136 return 0;
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (ac_try="$ac_compile"
6141 case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144 esac
6145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6146 $as_echo "$ac_try_echo") >&5
6147 (eval "$ac_compile") 2>conftest.er1
6148 ac_status=$?
6149 grep -v '^ *+' conftest.er1 >conftest.err
6150 rm -f conftest.er1
6151 cat conftest.err >&5
6152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } && {
6154 test -z "$ac_c_werror_flag" ||
6155 test ! -s conftest.err
6156 } && test -s conftest.$ac_objext; then
6157 ac_cv_struct_tm=time.h
6158 else
6159 $as_echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6162 ac_cv_struct_tm=sys/time.h
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6168 $as_echo "$ac_cv_struct_tm" >&6; }
6169 if test $ac_cv_struct_tm = sys/time.h; then
6171 cat >>confdefs.h <<\_ACEOF
6172 #define TM_IN_SYS_TIME 1
6173 _ACEOF
6177 { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6178 $as_echo_n "checking for boolean... " >&6; }
6179 if test "${ac_cv_type_boolean+set}" = set; then
6180 $as_echo_n "(cached) " >&6
6181 else
6182 ac_cv_type_boolean=no
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 $ac_includes_default
6191 main ()
6193 if (sizeof (boolean))
6194 return 0;
6196 return 0;
6198 _ACEOF
6199 rm -f conftest.$ac_objext
6200 if { (ac_try="$ac_compile"
6201 case "(($ac_try" in
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6204 esac
6205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6206 $as_echo "$ac_try_echo") >&5
6207 (eval "$ac_compile") 2>conftest.er1
6208 ac_status=$?
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } && {
6214 test -z "$ac_c_werror_flag" ||
6215 test ! -s conftest.err
6216 } && test -s conftest.$ac_objext; then
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 $ac_includes_default
6225 main ()
6227 if (sizeof ((boolean)))
6228 return 0;
6230 return 0;
6232 _ACEOF
6233 rm -f conftest.$ac_objext
6234 if { (ac_try="$ac_compile"
6235 case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6238 esac
6239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6240 $as_echo "$ac_try_echo") >&5
6241 (eval "$ac_compile") 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } && {
6248 test -z "$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 } && test -s conftest.$ac_objext; then
6252 else
6253 $as_echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_cv_type_boolean=yes
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 else
6261 $as_echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6270 $as_echo "$ac_cv_type_boolean" >&6; }
6271 if test $ac_cv_type_boolean = yes; then
6273 else
6275 cat >>confdefs.h <<_ACEOF
6276 #define boolean int
6277 _ACEOF
6280 #needed for jpeglib
6296 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6299 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6300 $as_echo_n "checking for $ac_func... " >&6; }
6301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6302 $as_echo_n "(cached) " >&6
6303 else
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6312 #define $ac_func innocuous_$ac_func
6314 /* System header to define __stub macros and hopefully few prototypes,
6315 which can conflict with char $ac_func (); below.
6316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6317 <limits.h> exists even on freestanding compilers. */
6319 #ifdef __STDC__
6320 # include <limits.h>
6321 #else
6322 # include <assert.h>
6323 #endif
6325 #undef $ac_func
6327 /* Override any GCC internal prototype to avoid an error.
6328 Use char because int might match the return type of a GCC
6329 builtin and then its argument prototype would still apply. */
6330 #ifdef __cplusplus
6331 extern "C"
6332 #endif
6333 char $ac_func ();
6334 /* The GNU C library defines this for functions which it implements
6335 to always fail with ENOSYS. Some functions are actually named
6336 something starting with __ and the normal name is an alias. */
6337 #if defined __stub_$ac_func || defined __stub___$ac_func
6338 choke me
6339 #endif
6342 main ()
6344 return $ac_func ();
6346 return 0;
6348 _ACEOF
6349 rm -f conftest.$ac_objext conftest$ac_exeext
6350 if { (ac_try="$ac_link"
6351 case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354 esac
6355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6356 $as_echo "$ac_try_echo") >&5
6357 (eval "$ac_link") 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && {
6364 test -z "$ac_c_werror_flag" ||
6365 test ! -s conftest.err
6366 } && test -s conftest$ac_exeext && {
6367 test "$cross_compiling" = yes ||
6368 $as_test_x conftest$ac_exeext
6369 }; then
6370 eval "$as_ac_var=yes"
6371 else
6372 $as_echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 eval "$as_ac_var=no"
6378 rm -rf conftest.dSYM
6379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6380 conftest$ac_exeext conftest.$ac_ext
6382 ac_res=`eval 'as_val=${'$as_ac_var'}
6383 $as_echo "$as_val"'`
6384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6385 $as_echo "$ac_res" >&6; }
6386 if test `eval 'as_val=${'$as_ac_var'}
6387 $as_echo "$as_val"'` = yes; then
6388 cat >>confdefs.h <<_ACEOF
6389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6390 _ACEOF
6393 done
6396 # The cast to long int works around a bug in the HP C Compiler
6397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6399 # This bug is HP SR number 8606223364.
6400 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6401 $as_echo_n "checking size of signed char... " >&6; }
6402 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test "$cross_compiling" = yes; then
6406 # Depending upon the size, compute the lo and hi bounds.
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 $ac_includes_default
6415 main ()
6417 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
6418 test_array [0] = 0
6421 return 0;
6423 _ACEOF
6424 rm -f conftest.$ac_objext
6425 if { (ac_try="$ac_compile"
6426 case "(($ac_try" in
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6429 esac
6430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6431 $as_echo "$ac_try_echo") >&5
6432 (eval "$ac_compile") 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && {
6439 test -z "$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 } && test -s conftest.$ac_objext; then
6442 ac_lo=0 ac_mid=0
6443 while :; do
6444 cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h. */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 $ac_includes_default
6452 main ()
6454 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6455 test_array [0] = 0
6458 return 0;
6460 _ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (ac_try="$ac_compile"
6463 case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466 esac
6467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6468 $as_echo "$ac_try_echo") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } && {
6476 test -z "$ac_c_werror_flag" ||
6477 test ! -s conftest.err
6478 } && test -s conftest.$ac_objext; then
6479 ac_hi=$ac_mid; break
6480 else
6481 $as_echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 ac_lo=`expr $ac_mid + 1`
6485 if test $ac_lo -le $ac_mid; then
6486 ac_lo= ac_hi=
6487 break
6489 ac_mid=`expr 2 '*' $ac_mid + 1`
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 done
6494 else
6495 $as_echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h. */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 $ac_includes_default
6506 main ()
6508 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6509 test_array [0] = 0
6512 return 0;
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6517 case "(($ac_try" in
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6520 esac
6521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6522 $as_echo "$ac_try_echo") >&5
6523 (eval "$ac_compile") 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } && {
6530 test -z "$ac_c_werror_flag" ||
6531 test ! -s conftest.err
6532 } && test -s conftest.$ac_objext; then
6533 ac_hi=-1 ac_mid=-1
6534 while :; do
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6543 main ()
6545 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6546 test_array [0] = 0
6549 return 0;
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559 $as_echo "$ac_try_echo") >&5
6560 (eval "$ac_compile") 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest.$ac_objext; then
6570 ac_lo=$ac_mid; break
6571 else
6572 $as_echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 ac_hi=`expr '(' $ac_mid ')' - 1`
6576 if test $ac_mid -le $ac_hi; then
6577 ac_lo= ac_hi=
6578 break
6580 ac_mid=`expr 2 '*' $ac_mid`
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 done
6585 else
6586 $as_echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6589 ac_lo= ac_hi=
6592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 # Binary search between lo and hi bounds.
6597 while test "x$ac_lo" != "x$ac_hi"; do
6598 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6599 cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h. */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 $ac_includes_default
6607 main ()
6609 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6610 test_array [0] = 0
6613 return 0;
6615 _ACEOF
6616 rm -f conftest.$ac_objext
6617 if { (ac_try="$ac_compile"
6618 case "(($ac_try" in
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6621 esac
6622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6623 $as_echo "$ac_try_echo") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && {
6631 test -z "$ac_c_werror_flag" ||
6632 test ! -s conftest.err
6633 } && test -s conftest.$ac_objext; then
6634 ac_hi=$ac_mid
6635 else
6636 $as_echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 ac_lo=`expr '(' $ac_mid ')' + 1`
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 done
6644 case $ac_lo in
6645 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6646 '') if test "$ac_cv_type_signed_char" = yes; then
6647 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6648 See \`config.log' for more details." >&5
6649 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6650 See \`config.log' for more details." >&2;}
6651 { (exit 77); exit 77; }; }
6652 else
6653 ac_cv_sizeof_signed_char=0
6654 fi ;;
6655 esac
6656 else
6657 cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h. */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 $ac_includes_default
6664 static long int longval () { return (long int) (sizeof (signed char)); }
6665 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6666 #include <stdio.h>
6667 #include <stdlib.h>
6669 main ()
6672 FILE *f = fopen ("conftest.val", "w");
6673 if (! f)
6674 return 1;
6675 if (((long int) (sizeof (signed char))) < 0)
6677 long int i = longval ();
6678 if (i != ((long int) (sizeof (signed char))))
6679 return 1;
6680 fprintf (f, "%ld", i);
6682 else
6684 unsigned long int i = ulongval ();
6685 if (i != ((long int) (sizeof (signed char))))
6686 return 1;
6687 fprintf (f, "%lu", i);
6689 /* Do not output a trailing newline, as this causes \r\n confusion
6690 on some platforms. */
6691 return ferror (f) || fclose (f) != 0;
6694 return 0;
6696 _ACEOF
6697 rm -f conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6699 case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702 esac
6703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6704 $as_echo "$ac_try_echo") >&5
6705 (eval "$ac_link") 2>&5
6706 ac_status=$?
6707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6709 { (case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_try") 2>&5
6716 ac_status=$?
6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_sizeof_signed_char=`cat conftest.val`
6720 else
6721 $as_echo "$as_me: program exited with status $ac_status" >&5
6722 $as_echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6725 ( exit $ac_status )
6726 if test "$ac_cv_type_signed_char" = yes; then
6727 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6728 See \`config.log' for more details." >&5
6729 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6730 See \`config.log' for more details." >&2;}
6731 { (exit 77); exit 77; }; }
6732 else
6733 ac_cv_sizeof_signed_char=0
6736 rm -rf conftest.dSYM
6737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6739 rm -f conftest.val
6741 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6742 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6746 cat >>confdefs.h <<_ACEOF
6747 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6748 _ACEOF
6751 # The cast to long int works around a bug in the HP C Compiler
6752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6754 # This bug is HP SR number 8606223364.
6755 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6756 $as_echo_n "checking size of signed short... " >&6; }
6757 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6758 $as_echo_n "(cached) " >&6
6759 else
6760 if test "$cross_compiling" = yes; then
6761 # Depending upon the size, compute the lo and hi bounds.
6762 cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h. */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 $ac_includes_default
6770 main ()
6772 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6773 test_array [0] = 0
6776 return 0;
6778 _ACEOF
6779 rm -f conftest.$ac_objext
6780 if { (ac_try="$ac_compile"
6781 case "(($ac_try" in
6782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6783 *) ac_try_echo=$ac_try;;
6784 esac
6785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6786 $as_echo "$ac_try_echo") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6788 ac_status=$?
6789 grep -v '^ *+' conftest.er1 >conftest.err
6790 rm -f conftest.er1
6791 cat conftest.err >&5
6792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.$ac_objext; then
6797 ac_lo=0 ac_mid=0
6798 while :; do
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 $ac_includes_default
6807 main ()
6809 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6810 test_array [0] = 0
6813 return 0;
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (ac_try="$ac_compile"
6818 case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821 esac
6822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6823 $as_echo "$ac_try_echo") >&5
6824 (eval "$ac_compile") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest.$ac_objext; then
6834 ac_hi=$ac_mid; break
6835 else
6836 $as_echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_lo=`expr $ac_mid + 1`
6840 if test $ac_lo -le $ac_mid; then
6841 ac_lo= ac_hi=
6842 break
6844 ac_mid=`expr 2 '*' $ac_mid + 1`
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 done
6849 else
6850 $as_echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h. */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 $ac_includes_default
6861 main ()
6863 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6864 test_array [0] = 0
6867 return 0;
6869 _ACEOF
6870 rm -f conftest.$ac_objext
6871 if { (ac_try="$ac_compile"
6872 case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875 esac
6876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6877 $as_echo "$ac_try_echo") >&5
6878 (eval "$ac_compile") 2>conftest.er1
6879 ac_status=$?
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
6882 cat conftest.err >&5
6883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && {
6885 test -z "$ac_c_werror_flag" ||
6886 test ! -s conftest.err
6887 } && test -s conftest.$ac_objext; then
6888 ac_hi=-1 ac_mid=-1
6889 while :; do
6890 cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h. */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 $ac_includes_default
6898 main ()
6900 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6901 test_array [0] = 0
6904 return 0;
6906 _ACEOF
6907 rm -f conftest.$ac_objext
6908 if { (ac_try="$ac_compile"
6909 case "(($ac_try" in
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6912 esac
6913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6914 $as_echo "$ac_try_echo") >&5
6915 (eval "$ac_compile") 2>conftest.er1
6916 ac_status=$?
6917 grep -v '^ *+' conftest.er1 >conftest.err
6918 rm -f conftest.er1
6919 cat conftest.err >&5
6920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } && {
6922 test -z "$ac_c_werror_flag" ||
6923 test ! -s conftest.err
6924 } && test -s conftest.$ac_objext; then
6925 ac_lo=$ac_mid; break
6926 else
6927 $as_echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 ac_hi=`expr '(' $ac_mid ')' - 1`
6931 if test $ac_mid -le $ac_hi; then
6932 ac_lo= ac_hi=
6933 break
6935 ac_mid=`expr 2 '*' $ac_mid`
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 done
6940 else
6941 $as_echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6944 ac_lo= ac_hi=
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6951 # Binary search between lo and hi bounds.
6952 while test "x$ac_lo" != "x$ac_hi"; do
6953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 $ac_includes_default
6962 main ()
6964 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6965 test_array [0] = 0
6968 return 0;
6970 _ACEOF
6971 rm -f conftest.$ac_objext
6972 if { (ac_try="$ac_compile"
6973 case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976 esac
6977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6978 $as_echo "$ac_try_echo") >&5
6979 (eval "$ac_compile") 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && {
6986 test -z "$ac_c_werror_flag" ||
6987 test ! -s conftest.err
6988 } && test -s conftest.$ac_objext; then
6989 ac_hi=$ac_mid
6990 else
6991 $as_echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 ac_lo=`expr '(' $ac_mid ')' + 1`
6997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998 done
6999 case $ac_lo in
7000 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
7001 '') if test "$ac_cv_type_signed_short" = yes; then
7002 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7003 See \`config.log' for more details." >&5
7004 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7005 See \`config.log' for more details." >&2;}
7006 { (exit 77); exit 77; }; }
7007 else
7008 ac_cv_sizeof_signed_short=0
7009 fi ;;
7010 esac
7011 else
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h. */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7019 static long int longval () { return (long int) (sizeof (signed short)); }
7020 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
7021 #include <stdio.h>
7022 #include <stdlib.h>
7024 main ()
7027 FILE *f = fopen ("conftest.val", "w");
7028 if (! f)
7029 return 1;
7030 if (((long int) (sizeof (signed short))) < 0)
7032 long int i = longval ();
7033 if (i != ((long int) (sizeof (signed short))))
7034 return 1;
7035 fprintf (f, "%ld", i);
7037 else
7039 unsigned long int i = ulongval ();
7040 if (i != ((long int) (sizeof (signed short))))
7041 return 1;
7042 fprintf (f, "%lu", i);
7044 /* Do not output a trailing newline, as this causes \r\n confusion
7045 on some platforms. */
7046 return ferror (f) || fclose (f) != 0;
7049 return 0;
7051 _ACEOF
7052 rm -f conftest$ac_exeext
7053 if { (ac_try="$ac_link"
7054 case "(($ac_try" in
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7057 esac
7058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7059 $as_echo "$ac_try_echo") >&5
7060 (eval "$ac_link") 2>&5
7061 ac_status=$?
7062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7064 { (case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7067 esac
7068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7069 $as_echo "$ac_try_echo") >&5
7070 (eval "$ac_try") 2>&5
7071 ac_status=$?
7072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_cv_sizeof_signed_short=`cat conftest.val`
7075 else
7076 $as_echo "$as_me: program exited with status $ac_status" >&5
7077 $as_echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 ( exit $ac_status )
7081 if test "$ac_cv_type_signed_short" = yes; then
7082 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7083 See \`config.log' for more details." >&5
7084 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7085 See \`config.log' for more details." >&2;}
7086 { (exit 77); exit 77; }; }
7087 else
7088 ac_cv_sizeof_signed_short=0
7091 rm -rf conftest.dSYM
7092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7094 rm -f conftest.val
7096 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
7097 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
7101 cat >>confdefs.h <<_ACEOF
7102 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
7103 _ACEOF
7106 # The cast to long int works around a bug in the HP C Compiler
7107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7109 # This bug is HP SR number 8606223364.
7110 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
7111 $as_echo_n "checking size of signed... " >&6; }
7112 if test "${ac_cv_sizeof_signed+set}" = set; then
7113 $as_echo_n "(cached) " >&6
7114 else
7115 if test "$cross_compiling" = yes; then
7116 # Depending upon the size, compute the lo and hi bounds.
7117 cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h. */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 $ac_includes_default
7125 main ()
7127 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
7128 test_array [0] = 0
7131 return 0;
7133 _ACEOF
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
7136 case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7139 esac
7140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7141 $as_echo "$ac_try_echo") >&5
7142 (eval "$ac_compile") 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.$ac_objext; then
7152 ac_lo=0 ac_mid=0
7153 while :; do
7154 cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h. */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 $ac_includes_default
7162 main ()
7164 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7165 test_array [0] = 0
7168 return 0;
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7173 case "(($ac_try" in
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7176 esac
7177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7178 $as_echo "$ac_try_echo") >&5
7179 (eval "$ac_compile") 2>conftest.er1
7180 ac_status=$?
7181 grep -v '^ *+' conftest.er1 >conftest.err
7182 rm -f conftest.er1
7183 cat conftest.err >&5
7184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } && {
7186 test -z "$ac_c_werror_flag" ||
7187 test ! -s conftest.err
7188 } && test -s conftest.$ac_objext; then
7189 ac_hi=$ac_mid; break
7190 else
7191 $as_echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7194 ac_lo=`expr $ac_mid + 1`
7195 if test $ac_lo -le $ac_mid; then
7196 ac_lo= ac_hi=
7197 break
7199 ac_mid=`expr 2 '*' $ac_mid + 1`
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7203 done
7204 else
7205 $as_echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 cat >conftest.$ac_ext <<_ACEOF
7209 /* confdefs.h. */
7210 _ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h. */
7214 $ac_includes_default
7216 main ()
7218 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7219 test_array [0] = 0
7222 return 0;
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (ac_try="$ac_compile"
7227 case "(($ac_try" in
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7230 esac
7231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7232 $as_echo "$ac_try_echo") >&5
7233 (eval "$ac_compile") 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest.$ac_objext; then
7243 ac_hi=-1 ac_mid=-1
7244 while :; do
7245 cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h. */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 $ac_includes_default
7253 main ()
7255 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7256 test_array [0] = 0
7259 return 0;
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7264 case "(($ac_try" in
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7267 esac
7268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269 $as_echo "$ac_try_echo") >&5
7270 (eval "$ac_compile") 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } && {
7277 test -z "$ac_c_werror_flag" ||
7278 test ! -s conftest.err
7279 } && test -s conftest.$ac_objext; then
7280 ac_lo=$ac_mid; break
7281 else
7282 $as_echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 ac_hi=`expr '(' $ac_mid ')' - 1`
7286 if test $ac_mid -le $ac_hi; then
7287 ac_lo= ac_hi=
7288 break
7290 ac_mid=`expr 2 '*' $ac_mid`
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 done
7295 else
7296 $as_echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 ac_lo= ac_hi=
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 # Binary search between lo and hi bounds.
7307 while test "x$ac_lo" != "x$ac_hi"; do
7308 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h. */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 $ac_includes_default
7317 main ()
7319 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7320 test_array [0] = 0
7323 return 0;
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (ac_try="$ac_compile"
7328 case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7331 esac
7332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7333 $as_echo "$ac_try_echo") >&5
7334 (eval "$ac_compile") 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
7339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } && {
7341 test -z "$ac_c_werror_flag" ||
7342 test ! -s conftest.err
7343 } && test -s conftest.$ac_objext; then
7344 ac_hi=$ac_mid
7345 else
7346 $as_echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 ac_lo=`expr '(' $ac_mid ')' + 1`
7352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 done
7354 case $ac_lo in
7355 ?*) ac_cv_sizeof_signed=$ac_lo;;
7356 '') if test "$ac_cv_type_signed" = yes; then
7357 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7358 See \`config.log' for more details." >&5
7359 $as_echo "$as_me: error: cannot compute sizeof (signed)
7360 See \`config.log' for more details." >&2;}
7361 { (exit 77); exit 77; }; }
7362 else
7363 ac_cv_sizeof_signed=0
7364 fi ;;
7365 esac
7366 else
7367 cat >conftest.$ac_ext <<_ACEOF
7368 /* confdefs.h. */
7369 _ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7374 static long int longval () { return (long int) (sizeof (signed)); }
7375 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7376 #include <stdio.h>
7377 #include <stdlib.h>
7379 main ()
7382 FILE *f = fopen ("conftest.val", "w");
7383 if (! f)
7384 return 1;
7385 if (((long int) (sizeof (signed))) < 0)
7387 long int i = longval ();
7388 if (i != ((long int) (sizeof (signed))))
7389 return 1;
7390 fprintf (f, "%ld", i);
7392 else
7394 unsigned long int i = ulongval ();
7395 if (i != ((long int) (sizeof (signed))))
7396 return 1;
7397 fprintf (f, "%lu", i);
7399 /* Do not output a trailing newline, as this causes \r\n confusion
7400 on some platforms. */
7401 return ferror (f) || fclose (f) != 0;
7404 return 0;
7406 _ACEOF
7407 rm -f conftest$ac_exeext
7408 if { (ac_try="$ac_link"
7409 case "(($ac_try" in
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7412 esac
7413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7414 $as_echo "$ac_try_echo") >&5
7415 (eval "$ac_link") 2>&5
7416 ac_status=$?
7417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7419 { (case "(($ac_try" in
7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7422 esac
7423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7424 $as_echo "$ac_try_echo") >&5
7425 (eval "$ac_try") 2>&5
7426 ac_status=$?
7427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; }; then
7429 ac_cv_sizeof_signed=`cat conftest.val`
7430 else
7431 $as_echo "$as_me: program exited with status $ac_status" >&5
7432 $as_echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ( exit $ac_status )
7436 if test "$ac_cv_type_signed" = yes; then
7437 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7438 See \`config.log' for more details." >&5
7439 $as_echo "$as_me: error: cannot compute sizeof (signed)
7440 See \`config.log' for more details." >&2;}
7441 { (exit 77); exit 77; }; }
7442 else
7443 ac_cv_sizeof_signed=0
7446 rm -rf conftest.dSYM
7447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7449 rm -f conftest.val
7451 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7452 $as_echo "$ac_cv_sizeof_signed" >&6; }
7456 cat >>confdefs.h <<_ACEOF
7457 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7458 _ACEOF
7461 # The cast to long int works around a bug in the HP C Compiler
7462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7464 # This bug is HP SR number 8606223364.
7465 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7466 $as_echo_n "checking size of signed long long... " >&6; }
7467 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7468 $as_echo_n "(cached) " >&6
7469 else
7470 if test "$cross_compiling" = yes; then
7471 # Depending upon the size, compute the lo and hi bounds.
7472 cat >conftest.$ac_ext <<_ACEOF
7473 /* confdefs.h. */
7474 _ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 $ac_includes_default
7480 main ()
7482 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7483 test_array [0] = 0
7486 return 0;
7488 _ACEOF
7489 rm -f conftest.$ac_objext
7490 if { (ac_try="$ac_compile"
7491 case "(($ac_try" in
7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7494 esac
7495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7496 $as_echo "$ac_try_echo") >&5
7497 (eval "$ac_compile") 2>conftest.er1
7498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } && {
7504 test -z "$ac_c_werror_flag" ||
7505 test ! -s conftest.err
7506 } && test -s conftest.$ac_objext; then
7507 ac_lo=0 ac_mid=0
7508 while :; do
7509 cat >conftest.$ac_ext <<_ACEOF
7510 /* confdefs.h. */
7511 _ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h. */
7515 $ac_includes_default
7517 main ()
7519 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7520 test_array [0] = 0
7523 return 0;
7525 _ACEOF
7526 rm -f conftest.$ac_objext
7527 if { (ac_try="$ac_compile"
7528 case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531 esac
7532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7533 $as_echo "$ac_try_echo") >&5
7534 (eval "$ac_compile") 2>conftest.er1
7535 ac_status=$?
7536 grep -v '^ *+' conftest.er1 >conftest.err
7537 rm -f conftest.er1
7538 cat conftest.err >&5
7539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } && {
7541 test -z "$ac_c_werror_flag" ||
7542 test ! -s conftest.err
7543 } && test -s conftest.$ac_objext; then
7544 ac_hi=$ac_mid; break
7545 else
7546 $as_echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7549 ac_lo=`expr $ac_mid + 1`
7550 if test $ac_lo -le $ac_mid; then
7551 ac_lo= ac_hi=
7552 break
7554 ac_mid=`expr 2 '*' $ac_mid + 1`
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 done
7559 else
7560 $as_echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 $ac_includes_default
7571 main ()
7573 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7574 test_array [0] = 0
7577 return 0;
7579 _ACEOF
7580 rm -f conftest.$ac_objext
7581 if { (ac_try="$ac_compile"
7582 case "(($ac_try" in
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7585 esac
7586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7587 $as_echo "$ac_try_echo") >&5
7588 (eval "$ac_compile") 2>conftest.er1
7589 ac_status=$?
7590 grep -v '^ *+' conftest.er1 >conftest.err
7591 rm -f conftest.er1
7592 cat conftest.err >&5
7593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && {
7595 test -z "$ac_c_werror_flag" ||
7596 test ! -s conftest.err
7597 } && test -s conftest.$ac_objext; then
7598 ac_hi=-1 ac_mid=-1
7599 while :; do
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h. */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 $ac_includes_default
7608 main ()
7610 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7611 test_array [0] = 0
7614 return 0;
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7619 case "(($ac_try" in
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7622 esac
7623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7624 $as_echo "$ac_try_echo") >&5
7625 (eval "$ac_compile") 2>conftest.er1
7626 ac_status=$?
7627 grep -v '^ *+' conftest.er1 >conftest.err
7628 rm -f conftest.er1
7629 cat conftest.err >&5
7630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } && {
7632 test -z "$ac_c_werror_flag" ||
7633 test ! -s conftest.err
7634 } && test -s conftest.$ac_objext; then
7635 ac_lo=$ac_mid; break
7636 else
7637 $as_echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 ac_hi=`expr '(' $ac_mid ')' - 1`
7641 if test $ac_mid -le $ac_hi; then
7642 ac_lo= ac_hi=
7643 break
7645 ac_mid=`expr 2 '*' $ac_mid`
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 done
7650 else
7651 $as_echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7654 ac_lo= ac_hi=
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 # Binary search between lo and hi bounds.
7662 while test "x$ac_lo" != "x$ac_hi"; do
7663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7664 cat >conftest.$ac_ext <<_ACEOF
7665 /* confdefs.h. */
7666 _ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7670 $ac_includes_default
7672 main ()
7674 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7675 test_array [0] = 0
7678 return 0;
7680 _ACEOF
7681 rm -f conftest.$ac_objext
7682 if { (ac_try="$ac_compile"
7683 case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7686 esac
7687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688 $as_echo "$ac_try_echo") >&5
7689 (eval "$ac_compile") 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
7699 ac_hi=$ac_mid
7700 else
7701 $as_echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 ac_lo=`expr '(' $ac_mid ')' + 1`
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708 done
7709 case $ac_lo in
7710 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7711 '') if test "$ac_cv_type_signed_long_long" = yes; then
7712 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7713 See \`config.log' for more details." >&5
7714 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7715 See \`config.log' for more details." >&2;}
7716 { (exit 77); exit 77; }; }
7717 else
7718 ac_cv_sizeof_signed_long_long=0
7719 fi ;;
7720 esac
7721 else
7722 cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h. */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7728 $ac_includes_default
7729 static long int longval () { return (long int) (sizeof (signed long long)); }
7730 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7731 #include <stdio.h>
7732 #include <stdlib.h>
7734 main ()
7737 FILE *f = fopen ("conftest.val", "w");
7738 if (! f)
7739 return 1;
7740 if (((long int) (sizeof (signed long long))) < 0)
7742 long int i = longval ();
7743 if (i != ((long int) (sizeof (signed long long))))
7744 return 1;
7745 fprintf (f, "%ld", i);
7747 else
7749 unsigned long int i = ulongval ();
7750 if (i != ((long int) (sizeof (signed long long))))
7751 return 1;
7752 fprintf (f, "%lu", i);
7754 /* Do not output a trailing newline, as this causes \r\n confusion
7755 on some platforms. */
7756 return ferror (f) || fclose (f) != 0;
7759 return 0;
7761 _ACEOF
7762 rm -f conftest$ac_exeext
7763 if { (ac_try="$ac_link"
7764 case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7767 esac
7768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7769 $as_echo "$ac_try_echo") >&5
7770 (eval "$ac_link") 2>&5
7771 ac_status=$?
7772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7774 { (case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777 esac
7778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7779 $as_echo "$ac_try_echo") >&5
7780 (eval "$ac_try") 2>&5
7781 ac_status=$?
7782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; }; then
7784 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7785 else
7786 $as_echo "$as_me: program exited with status $ac_status" >&5
7787 $as_echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ( exit $ac_status )
7791 if test "$ac_cv_type_signed_long_long" = yes; then
7792 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7793 See \`config.log' for more details." >&5
7794 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7795 See \`config.log' for more details." >&2;}
7796 { (exit 77); exit 77; }; }
7797 else
7798 ac_cv_sizeof_signed_long_long=0
7801 rm -rf conftest.dSYM
7802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7804 rm -f conftest.val
7806 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7807 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7811 cat >>confdefs.h <<_ACEOF
7812 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7813 _ACEOF
7816 # The cast to long int works around a bug in the HP C Compiler
7817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7819 # This bug is HP SR number 8606223364.
7820 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7821 $as_echo_n "checking size of void*... " >&6; }
7822 if test "${ac_cv_sizeof_voidp+set}" = set; then
7823 $as_echo_n "(cached) " >&6
7824 else
7825 if test "$cross_compiling" = yes; then
7826 # Depending upon the size, compute the lo and hi bounds.
7827 cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h. */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 $ac_includes_default
7835 main ()
7837 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7838 test_array [0] = 0
7841 return 0;
7843 _ACEOF
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7846 case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849 esac
7850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7851 $as_echo "$ac_try_echo") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 ac_lo=0 ac_mid=0
7863 while :; do
7864 cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h. */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7872 main ()
7874 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7875 test_array [0] = 0
7878 return 0;
7880 _ACEOF
7881 rm -f conftest.$ac_objext
7882 if { (ac_try="$ac_compile"
7883 case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7886 esac
7887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7888 $as_echo "$ac_try_echo") >&5
7889 (eval "$ac_compile") 2>conftest.er1
7890 ac_status=$?
7891 grep -v '^ *+' conftest.er1 >conftest.err
7892 rm -f conftest.er1
7893 cat conftest.err >&5
7894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } && {
7896 test -z "$ac_c_werror_flag" ||
7897 test ! -s conftest.err
7898 } && test -s conftest.$ac_objext; then
7899 ac_hi=$ac_mid; break
7900 else
7901 $as_echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 ac_lo=`expr $ac_mid + 1`
7905 if test $ac_lo -le $ac_mid; then
7906 ac_lo= ac_hi=
7907 break
7909 ac_mid=`expr 2 '*' $ac_mid + 1`
7912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913 done
7914 else
7915 $as_echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h. */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7924 $ac_includes_default
7926 main ()
7928 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7929 test_array [0] = 0
7932 return 0;
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (ac_try="$ac_compile"
7937 case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940 esac
7941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7953 ac_hi=-1 ac_mid=-1
7954 while :; do
7955 cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h. */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 $ac_includes_default
7963 main ()
7965 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
7966 test_array [0] = 0
7969 return 0;
7971 _ACEOF
7972 rm -f conftest.$ac_objext
7973 if { (ac_try="$ac_compile"
7974 case "(($ac_try" in
7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7977 esac
7978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7979 $as_echo "$ac_try_echo") >&5
7980 (eval "$ac_compile") 2>conftest.er1
7981 ac_status=$?
7982 grep -v '^ *+' conftest.er1 >conftest.err
7983 rm -f conftest.er1
7984 cat conftest.err >&5
7985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest.$ac_objext; then
7990 ac_lo=$ac_mid; break
7991 else
7992 $as_echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ac_hi=`expr '(' $ac_mid ')' - 1`
7996 if test $ac_mid -le $ac_hi; then
7997 ac_lo= ac_hi=
7998 break
8000 ac_mid=`expr 2 '*' $ac_mid`
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 done
8005 else
8006 $as_echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 ac_lo= ac_hi=
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016 # Binary search between lo and hi bounds.
8017 while test "x$ac_lo" != "x$ac_hi"; do
8018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8019 cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h. */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 $ac_includes_default
8027 main ()
8029 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
8030 test_array [0] = 0
8033 return 0;
8035 _ACEOF
8036 rm -f conftest.$ac_objext
8037 if { (ac_try="$ac_compile"
8038 case "(($ac_try" in
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8041 esac
8042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8043 $as_echo "$ac_try_echo") >&5
8044 (eval "$ac_compile") 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest.$ac_objext; then
8054 ac_hi=$ac_mid
8055 else
8056 $as_echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 ac_lo=`expr '(' $ac_mid ')' + 1`
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 done
8064 case $ac_lo in
8065 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8066 '') if test "$ac_cv_type_voidp" = yes; then
8067 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8068 See \`config.log' for more details." >&5
8069 $as_echo "$as_me: error: cannot compute sizeof (void*)
8070 See \`config.log' for more details." >&2;}
8071 { (exit 77); exit 77; }; }
8072 else
8073 ac_cv_sizeof_voidp=0
8074 fi ;;
8075 esac
8076 else
8077 cat >conftest.$ac_ext <<_ACEOF
8078 /* confdefs.h. */
8079 _ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 $ac_includes_default
8084 static long int longval () { return (long int) (sizeof (void*)); }
8085 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
8086 #include <stdio.h>
8087 #include <stdlib.h>
8089 main ()
8092 FILE *f = fopen ("conftest.val", "w");
8093 if (! f)
8094 return 1;
8095 if (((long int) (sizeof (void*))) < 0)
8097 long int i = longval ();
8098 if (i != ((long int) (sizeof (void*))))
8099 return 1;
8100 fprintf (f, "%ld", i);
8102 else
8104 unsigned long int i = ulongval ();
8105 if (i != ((long int) (sizeof (void*))))
8106 return 1;
8107 fprintf (f, "%lu", i);
8109 /* Do not output a trailing newline, as this causes \r\n confusion
8110 on some platforms. */
8111 return ferror (f) || fclose (f) != 0;
8114 return 0;
8116 _ACEOF
8117 rm -f conftest$ac_exeext
8118 if { (ac_try="$ac_link"
8119 case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8122 esac
8123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8124 $as_echo "$ac_try_echo") >&5
8125 (eval "$ac_link") 2>&5
8126 ac_status=$?
8127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132 esac
8133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8134 $as_echo "$ac_try_echo") >&5
8135 (eval "$ac_try") 2>&5
8136 ac_status=$?
8137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_cv_sizeof_voidp=`cat conftest.val`
8140 else
8141 $as_echo "$as_me: program exited with status $ac_status" >&5
8142 $as_echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 ( exit $ac_status )
8146 if test "$ac_cv_type_voidp" = yes; then
8147 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8148 See \`config.log' for more details." >&5
8149 $as_echo "$as_me: error: cannot compute sizeof (void*)
8150 See \`config.log' for more details." >&2;}
8151 { (exit 77); exit 77; }; }
8152 else
8153 ac_cv_sizeof_voidp=0
8156 rm -rf conftest.dSYM
8157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8159 rm -f conftest.val
8161 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8162 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8166 cat >>confdefs.h <<_ACEOF
8167 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8168 _ACEOF
8174 # Extract the first word of "freetype-config", so it can be a program name with args.
8175 set dummy freetype-config; ac_word=$2
8176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8177 $as_echo_n "checking for $ac_word... " >&6; }
8178 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8179 $as_echo_n "(cached) " >&6
8180 else
8181 case $FREETYPE_CONFIG in
8182 [\\/]* | ?:[\\/]*)
8183 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8188 for as_dir in $as_dummy
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8194 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8198 done
8199 done
8200 IFS=$as_save_IFS
8203 esac
8205 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8206 if test -n "$FREETYPE_CONFIG"; then
8207 { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8208 $as_echo "$FREETYPE_CONFIG" >&6; }
8209 else
8210 { $as_echo "$as_me:$LINENO: result: no" >&5
8211 $as_echo "no" >&6; }
8216 OLDCPPFLAGS="${CPPFLAGS}"
8217 OLDLIBS="${LIBS}"
8218 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8219 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8220 else if test -d /usr/include/freetype2; then
8221 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8222 else if test -d /usr/local/include/freetype2; then
8223 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8228 if test "x${FREETYPE_CONFIG}" '=' "x";then
8229 # if we didn't find the freetype-config program, we won't
8230 # know where the libs are expected to be. So just blindly
8231 # try to link against them.
8232 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8233 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8234 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8235 $as_echo_n "(cached) " >&6
8236 else
8237 ac_check_lib_save_LIBS=$LIBS
8238 LIBS="-lfreetype $LIBS"
8239 cat >conftest.$ac_ext <<_ACEOF
8240 /* confdefs.h. */
8241 _ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8246 /* Override any GCC internal prototype to avoid an error.
8247 Use char because int might match the return type of a GCC
8248 builtin and then its argument prototype would still apply. */
8249 #ifdef __cplusplus
8250 extern "C"
8251 #endif
8252 char FT_Init_FreeType ();
8254 main ()
8256 return FT_Init_FreeType ();
8258 return 0;
8260 _ACEOF
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8263 case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266 esac
8267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8268 $as_echo "$ac_try_echo") >&5
8269 (eval "$ac_link") 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest$ac_exeext && {
8279 test "$cross_compiling" = yes ||
8280 $as_test_x conftest$ac_exeext
8281 }; then
8282 ac_cv_lib_freetype_FT_Init_FreeType=yes
8283 else
8284 $as_echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8287 ac_cv_lib_freetype_FT_Init_FreeType=no
8290 rm -rf conftest.dSYM
8291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8292 conftest$ac_exeext conftest.$ac_ext
8293 LIBS=$ac_check_lib_save_LIBS
8295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8296 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8297 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8298 HAVE_LIB_FREETYPE=1
8304 for ac_header in ft2build.h
8306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8309 $as_echo_n "checking for $ac_header... " >&6; }
8310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8311 $as_echo_n "(cached) " >&6
8313 ac_res=`eval 'as_val=${'$as_ac_Header'}
8314 $as_echo "$as_val"'`
8315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8316 $as_echo "$ac_res" >&6; }
8317 else
8318 # Is the header compilable?
8319 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8320 $as_echo_n "checking $ac_header usability... " >&6; }
8321 cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h. */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 $ac_includes_default
8328 #include <$ac_header>
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8332 case "(($ac_try" in
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8335 esac
8336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8337 $as_echo "$ac_try_echo") >&5
8338 (eval "$ac_compile") 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } && {
8345 test -z "$ac_c_werror_flag" ||
8346 test ! -s conftest.err
8347 } && test -s conftest.$ac_objext; then
8348 ac_header_compiler=yes
8349 else
8350 $as_echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8353 ac_header_compiler=no
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8358 $as_echo "$ac_header_compiler" >&6; }
8360 # Is the header present?
8361 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8362 $as_echo_n "checking $ac_header presence... " >&6; }
8363 cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h. */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 #include <$ac_header>
8370 _ACEOF
8371 if { (ac_try="$ac_cpp conftest.$ac_ext"
8372 case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375 esac
8376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8377 $as_echo "$ac_try_echo") >&5
8378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } >/dev/null && {
8385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8386 test ! -s conftest.err
8387 }; then
8388 ac_header_preproc=yes
8389 else
8390 $as_echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_header_preproc=no
8396 rm -f conftest.err conftest.$ac_ext
8397 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8398 $as_echo "$ac_header_preproc" >&6; }
8400 # So? What about this header?
8401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8402 yes:no: )
8403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8404 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8406 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8407 ac_header_preproc=yes
8409 no:yes:* )
8410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8411 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8413 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8415 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8417 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8421 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8424 esac
8425 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8426 $as_echo_n "checking for $ac_header... " >&6; }
8427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8428 $as_echo_n "(cached) " >&6
8429 else
8430 eval "$as_ac_Header=\$ac_header_preproc"
8432 ac_res=`eval 'as_val=${'$as_ac_Header'}
8433 $as_echo "$as_val"'`
8434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8435 $as_echo "$ac_res" >&6; }
8438 if test `eval 'as_val=${'$as_ac_Header'}
8439 $as_echo "$as_val"'` = yes; then
8440 cat >>confdefs.h <<_ACEOF
8441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8442 _ACEOF
8443 HAVE_FT2BUILD_H=1
8446 done
8448 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8450 for ac_header in freetype/freetype.h
8452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8454 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8455 $as_echo_n "checking for $ac_header... " >&6; }
8456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8457 $as_echo_n "(cached) " >&6
8459 ac_res=`eval 'as_val=${'$as_ac_Header'}
8460 $as_echo "$as_val"'`
8461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8462 $as_echo "$ac_res" >&6; }
8463 else
8464 # Is the header compilable?
8465 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8466 $as_echo_n "checking $ac_header usability... " >&6; }
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h. */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 #include <$ac_header>
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8478 case "(($ac_try" in
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8481 esac
8482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8483 $as_echo "$ac_try_echo") >&5
8484 (eval "$ac_compile") 2>conftest.er1
8485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && {
8491 test -z "$ac_c_werror_flag" ||
8492 test ! -s conftest.err
8493 } && test -s conftest.$ac_objext; then
8494 ac_header_compiler=yes
8495 else
8496 $as_echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_header_compiler=no
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8504 $as_echo "$ac_header_compiler" >&6; }
8506 # Is the header present?
8507 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8508 $as_echo_n "checking $ac_header presence... " >&6; }
8509 cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h. */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8515 #include <$ac_header>
8516 _ACEOF
8517 if { (ac_try="$ac_cpp conftest.$ac_ext"
8518 case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8521 esac
8522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8523 $as_echo "$ac_try_echo") >&5
8524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } >/dev/null && {
8531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8532 test ! -s conftest.err
8533 }; then
8534 ac_header_preproc=yes
8535 else
8536 $as_echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_header_preproc=no
8542 rm -f conftest.err conftest.$ac_ext
8543 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8544 $as_echo "$ac_header_preproc" >&6; }
8546 # So? What about this header?
8547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8548 yes:no: )
8549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8550 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8553 ac_header_preproc=yes
8555 no:yes:* )
8556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8557 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8559 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8561 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8563 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8567 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8570 esac
8571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8572 $as_echo_n "checking for $ac_header... " >&6; }
8573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8574 $as_echo_n "(cached) " >&6
8575 else
8576 eval "$as_ac_Header=\$ac_header_preproc"
8578 ac_res=`eval 'as_val=${'$as_ac_Header'}
8579 $as_echo "$as_val"'`
8580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8581 $as_echo "$ac_res" >&6; }
8584 if test `eval 'as_val=${'$as_ac_Header'}
8585 $as_echo "$as_val"'` = yes; then
8586 cat >>confdefs.h <<_ACEOF
8587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8588 _ACEOF
8589 HAVE_FREETYPE_FREETYPE_H=1
8592 done
8596 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8597 "x${FREETYPE_CONFIG}" '!=' "x";then
8598 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8599 HAVE_FREETYPE=1
8601 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8602 HAVE_FREETYPE=1
8606 if test "x${HAVE_FREETYPE}" = "x1"; then
8607 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8608 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8609 else
8610 LIBS="$LIBS -lfreetype"
8613 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8614 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8617 { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8618 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8620 cat > conftest.c << EOF
8621 $HAVE_FT2BUILD_H_DEFINE
8623 #ifdef HAVE_FT2BUILD_H
8624 #include <ft2build.h>
8625 #include FT_FREETYPE_H
8626 #include FT_GLYPH_H
8627 #include FT_SIZES_H
8628 #include FT_SFNT_NAMES_H
8629 #include FT_TRUETYPE_IDS_H
8630 #include FT_OUTLINE_H
8631 #else
8632 #include <freetype/freetype.h>
8633 #include <freetype/ftglyph.h>
8634 #include <freetype/ftsizes.h>
8635 #include <freetype/ftsnames.h>
8636 #include <freetype/ttnameid.h>
8637 #include <freetype/ftoutln.h>
8638 #endif
8640 int main()
8642 FT_Library ftlibrary;
8643 FT_Face face;
8644 FT_Error error;
8645 FT_ULong charcode;
8646 FT_UInt gindex;
8647 FT_Glyph glyph;
8648 FT_BBox bbox;
8649 FT_Matrix matrix;
8650 FT_UInt i;
8651 char* name = 0;
8652 char italic, bold;
8654 FT_Init_FreeType(&ftlibrary);
8655 FT_New_Face(ftlibrary, "filename", 0, &face);
8656 i = face->num_glyphs - 1;
8657 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8658 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8659 FT_Get_Postscript_Name(face);
8660 FT_Get_Char_Index(face, 33);
8661 FT_Get_First_Char(face, &i);
8662 FT_Get_Next_Char(face, 33, &i);
8663 if(FT_HAS_GLYPH_NAMES(face)) {
8664 FT_Get_Glyph_Name(face, 33, name, 127);
8666 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8667 FT_Get_Glyph(face->glyph, &glyph);
8668 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8669 FT_Done_Glyph(glyph);
8670 FT_Done_Face(face);
8671 FT_Done_FreeType(ftlibrary);
8672 return 0;
8676 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8677 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8678 { $as_echo "$as_me:$LINENO: result: yes" >&5
8679 $as_echo "yes" >&6; }
8681 cat >>confdefs.h <<\_ACEOF
8682 #define HAVE_FREETYPE 1
8683 _ACEOF
8686 cat >>confdefs.h <<\_ACEOF
8687 #define HAVE_FREETYPE_FREETYPE_H 1
8688 _ACEOF
8691 cat >>confdefs.h <<\_ACEOF
8692 #define USE_FREETYPE 1
8693 _ACEOF
8694 # for ttf2tp1
8695 else
8696 echo "configure: failed program was:" >&5
8697 cat conftest.c >&5
8698 HAVE_FREETYPE=0
8699 { $as_echo "$as_me:$LINENO: result: no" >&5
8700 $as_echo "no" >&6; }
8702 rm -f conftest*
8705 # if the above didn't work out, reset all changes to the compiler variables.
8706 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8707 CPPFLAGS=$OLDCPPFLAGS
8708 LIBS=$OLDLIBS
8713 OLDCPPFLAGS="${CPPFLAGS}"
8714 OLDLIBS="${LIBS}"
8716 if test -d /usr/include/fontconfig; then
8717 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8720 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8721 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8722 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8723 $as_echo_n "(cached) " >&6
8724 else
8725 ac_check_lib_save_LIBS=$LIBS
8726 LIBS="-lfontconfig $LIBS"
8727 cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h. */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8734 /* Override any GCC internal prototype to avoid an error.
8735 Use char because int might match the return type of a GCC
8736 builtin and then its argument prototype would still apply. */
8737 #ifdef __cplusplus
8738 extern "C"
8739 #endif
8740 char FcInit ();
8742 main ()
8744 return FcInit ();
8746 return 0;
8748 _ACEOF
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (ac_try="$ac_link"
8751 case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8754 esac
8755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8756 $as_echo "$ac_try_echo") >&5
8757 (eval "$ac_link") 2>conftest.er1
8758 ac_status=$?
8759 grep -v '^ *+' conftest.er1 >conftest.err
8760 rm -f conftest.er1
8761 cat conftest.err >&5
8762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest$ac_exeext && {
8767 test "$cross_compiling" = yes ||
8768 $as_test_x conftest$ac_exeext
8769 }; then
8770 ac_cv_lib_fontconfig_FcInit=yes
8771 else
8772 $as_echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 ac_cv_lib_fontconfig_FcInit=no
8778 rm -rf conftest.dSYM
8779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8780 conftest$ac_exeext conftest.$ac_ext
8781 LIBS=$ac_check_lib_save_LIBS
8783 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8784 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8785 if test $ac_cv_lib_fontconfig_FcInit = yes; then
8786 HAVE_LIB_FONTCONFIG=1
8790 for ac_header in fontconfig.h
8792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8795 $as_echo_n "checking for $ac_header... " >&6; }
8796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8797 $as_echo_n "(cached) " >&6
8799 ac_res=`eval 'as_val=${'$as_ac_Header'}
8800 $as_echo "$as_val"'`
8801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8802 $as_echo "$ac_res" >&6; }
8803 else
8804 # Is the header compilable?
8805 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8806 $as_echo_n "checking $ac_header usability... " >&6; }
8807 cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h. */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 #include <$ac_header>
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (ac_try="$ac_compile"
8818 case "(($ac_try" in
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8821 esac
8822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8823 $as_echo "$ac_try_echo") >&5
8824 (eval "$ac_compile") 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } && {
8831 test -z "$ac_c_werror_flag" ||
8832 test ! -s conftest.err
8833 } && test -s conftest.$ac_objext; then
8834 ac_header_compiler=yes
8835 else
8836 $as_echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8839 ac_header_compiler=no
8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8844 $as_echo "$ac_header_compiler" >&6; }
8846 # Is the header present?
8847 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8848 $as_echo_n "checking $ac_header presence... " >&6; }
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 #include <$ac_header>
8856 _ACEOF
8857 if { (ac_try="$ac_cpp conftest.$ac_ext"
8858 case "(($ac_try" in
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8861 esac
8862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8863 $as_echo "$ac_try_echo") >&5
8864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8865 ac_status=$?
8866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
8869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } >/dev/null && {
8871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8872 test ! -s conftest.err
8873 }; then
8874 ac_header_preproc=yes
8875 else
8876 $as_echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_header_preproc=no
8882 rm -f conftest.err conftest.$ac_ext
8883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8884 $as_echo "$ac_header_preproc" >&6; }
8886 # So? What about this header?
8887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8888 yes:no: )
8889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8890 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8893 ac_header_preproc=yes
8895 no:yes:* )
8896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8897 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8899 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8901 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8903 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8907 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8910 esac
8911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8912 $as_echo_n "checking for $ac_header... " >&6; }
8913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8914 $as_echo_n "(cached) " >&6
8915 else
8916 eval "$as_ac_Header=\$ac_header_preproc"
8918 ac_res=`eval 'as_val=${'$as_ac_Header'}
8919 $as_echo "$as_val"'`
8920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8921 $as_echo "$ac_res" >&6; }
8924 if test `eval 'as_val=${'$as_ac_Header'}
8925 $as_echo "$as_val"'` = yes; then
8926 cat >>confdefs.h <<_ACEOF
8927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8928 _ACEOF
8929 HAVE_FONTCONFIG_H=1
8932 done
8935 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8936 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8937 HAVE_FONTCONFIG=1
8941 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8942 LIBS="$LIBS -lfontconfig"
8943 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8944 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8946 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8947 #move freetype library to the end of libraries, otherwise fontconfig
8948 #won't compile.
8949 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8952 cat > conftest.c << EOF
8953 #include <string.h>
8954 #include <fontconfig.h>
8956 int main()
8958 FcPattern *pattern, *match;
8959 FcResult result;
8960 FcChar8 *v;
8961 char*s1="abc",*s2="ABC";
8962 strcasecmp(s1,s2);
8963 FcInit();
8964 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8965 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8966 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8968 FcConfig*c = FcConfigCreate();
8969 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8970 FcConfigBuildFonts(c);
8971 FcConfigSetCurrent(c);
8973 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
8974 FcFontSetDestroy(set);
8976 FcConfigSubstitute(0, pattern, FcMatchPattern);
8977 FcDefaultSubstitute(pattern);
8978 match = FcFontMatch(0, pattern, &result);
8979 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8980 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8981 FcPatternPrint(pattern);
8982 FcPatternDestroy(pattern);
8983 FcPatternDestroy(match);
8984 FcFini();
8985 return 0;
8989 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8990 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8991 { $as_echo "$as_me:$LINENO: result: yes" >&5
8992 $as_echo "yes" >&6; }
8994 cat >>confdefs.h <<\_ACEOF
8995 #define HAVE_FONTCONFIG 1
8996 _ACEOF
8998 else
8999 echo "configure: failed program was:" >&5
9000 cat conftest.c >&5
9001 HAVE_FONTCONFIG=0
9002 { $as_echo "$as_me:$LINENO: result: no" >&5
9003 $as_echo "no" >&6; }
9005 rm -f conftest*
9008 # if the above didn't work out, reset all changes to the compiler variables.
9009 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
9010 CPPFLAGS=$OLDCPPFLAGS
9011 LIBS=$OLDLIBS
9016 OLDCPPFLAGS="${CPPFLAGS}"
9017 OLDLIBS="${LIBS}"
9020 { $as_echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
9021 $as_echo_n "checking for glBegin in -lGL... " >&6; }
9022 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
9023 $as_echo_n "(cached) " >&6
9024 else
9025 ac_check_lib_save_LIBS=$LIBS
9026 LIBS="-lGL $LIBS"
9027 cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h. */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9034 /* Override any GCC internal prototype to avoid an error.
9035 Use char because int might match the return type of a GCC
9036 builtin and then its argument prototype would still apply. */
9037 #ifdef __cplusplus
9038 extern "C"
9039 #endif
9040 char glBegin ();
9042 main ()
9044 return glBegin ();
9046 return 0;
9048 _ACEOF
9049 rm -f conftest.$ac_objext conftest$ac_exeext
9050 if { (ac_try="$ac_link"
9051 case "(($ac_try" in
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9054 esac
9055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9056 $as_echo "$ac_try_echo") >&5
9057 (eval "$ac_link") 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } && {
9064 test -z "$ac_c_werror_flag" ||
9065 test ! -s conftest.err
9066 } && test -s conftest$ac_exeext && {
9067 test "$cross_compiling" = yes ||
9068 $as_test_x conftest$ac_exeext
9069 }; then
9070 ac_cv_lib_GL_glBegin=yes
9071 else
9072 $as_echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9075 ac_cv_lib_GL_glBegin=no
9078 rm -rf conftest.dSYM
9079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9080 conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9083 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
9084 $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
9085 if test $ac_cv_lib_GL_glBegin = yes; then
9086 cat >>confdefs.h <<_ACEOF
9087 #define HAVE_LIBGL 1
9088 _ACEOF
9090 LIBS="-lGL $LIBS"
9095 { $as_echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
9096 $as_echo_n "checking for gluBeginSurface in -lGLU... " >&6; }
9097 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
9098 $as_echo_n "(cached) " >&6
9099 else
9100 ac_check_lib_save_LIBS=$LIBS
9101 LIBS="-lGLU $LIBS"
9102 cat >conftest.$ac_ext <<_ACEOF
9103 /* confdefs.h. */
9104 _ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h. */
9109 /* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 char gluBeginSurface ();
9117 main ()
9119 return gluBeginSurface ();
9121 return 0;
9123 _ACEOF
9124 rm -f conftest.$ac_objext conftest$ac_exeext
9125 if { (ac_try="$ac_link"
9126 case "(($ac_try" in
9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9129 esac
9130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9131 $as_echo "$ac_try_echo") >&5
9132 (eval "$ac_link") 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } && {
9139 test -z "$ac_c_werror_flag" ||
9140 test ! -s conftest.err
9141 } && test -s conftest$ac_exeext && {
9142 test "$cross_compiling" = yes ||
9143 $as_test_x conftest$ac_exeext
9144 }; then
9145 ac_cv_lib_GLU_gluBeginSurface=yes
9146 else
9147 $as_echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 ac_cv_lib_GLU_gluBeginSurface=no
9153 rm -rf conftest.dSYM
9154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9155 conftest$ac_exeext conftest.$ac_ext
9156 LIBS=$ac_check_lib_save_LIBS
9158 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
9159 $as_echo "$ac_cv_lib_GLU_gluBeginSurface" >&6; }
9160 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
9161 cat >>confdefs.h <<_ACEOF
9162 #define HAVE_LIBGLU 1
9163 _ACEOF
9165 LIBS="-lGLU $LIBS"
9170 { $as_echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
9171 $as_echo_n "checking for glutInit in -lglut... " >&6; }
9172 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
9173 $as_echo_n "(cached) " >&6
9174 else
9175 ac_check_lib_save_LIBS=$LIBS
9176 LIBS="-lglut $LIBS"
9177 cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h. */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9184 /* Override any GCC internal prototype to avoid an error.
9185 Use char because int might match the return type of a GCC
9186 builtin and then its argument prototype would still apply. */
9187 #ifdef __cplusplus
9188 extern "C"
9189 #endif
9190 char glutInit ();
9192 main ()
9194 return glutInit ();
9196 return 0;
9198 _ACEOF
9199 rm -f conftest.$ac_objext conftest$ac_exeext
9200 if { (ac_try="$ac_link"
9201 case "(($ac_try" in
9202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203 *) ac_try_echo=$ac_try;;
9204 esac
9205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9206 $as_echo "$ac_try_echo") >&5
9207 (eval "$ac_link") 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest$ac_exeext && {
9217 test "$cross_compiling" = yes ||
9218 $as_test_x conftest$ac_exeext
9219 }; then
9220 ac_cv_lib_glut_glutInit=yes
9221 else
9222 $as_echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9225 ac_cv_lib_glut_glutInit=no
9228 rm -rf conftest.dSYM
9229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9230 conftest$ac_exeext conftest.$ac_ext
9231 LIBS=$ac_check_lib_save_LIBS
9233 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9234 $as_echo "$ac_cv_lib_glut_glutInit" >&6; }
9235 if test $ac_cv_lib_glut_glutInit = yes; then
9236 cat >>confdefs.h <<_ACEOF
9237 #define HAVE_LIBGLUT 1
9238 _ACEOF
9240 LIBS="-lglut $LIBS"
9246 for ac_header in GL/gl.h GL/glut.h
9248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9251 $as_echo_n "checking for $ac_header... " >&6; }
9252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9253 $as_echo_n "(cached) " >&6
9255 ac_res=`eval 'as_val=${'$as_ac_Header'}
9256 $as_echo "$as_val"'`
9257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9258 $as_echo "$ac_res" >&6; }
9259 else
9260 # Is the header compilable?
9261 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9262 $as_echo_n "checking $ac_header usability... " >&6; }
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h. */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 $ac_includes_default
9270 #include <$ac_header>
9271 _ACEOF
9272 rm -f conftest.$ac_objext
9273 if { (ac_try="$ac_compile"
9274 case "(($ac_try" in
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9277 esac
9278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9279 $as_echo "$ac_try_echo") >&5
9280 (eval "$ac_compile") 2>conftest.er1
9281 ac_status=$?
9282 grep -v '^ *+' conftest.er1 >conftest.err
9283 rm -f conftest.er1
9284 cat conftest.err >&5
9285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } && {
9287 test -z "$ac_c_werror_flag" ||
9288 test ! -s conftest.err
9289 } && test -s conftest.$ac_objext; then
9290 ac_header_compiler=yes
9291 else
9292 $as_echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_header_compiler=no
9298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9299 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9300 $as_echo "$ac_header_compiler" >&6; }
9302 # Is the header present?
9303 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9304 $as_echo_n "checking $ac_header presence... " >&6; }
9305 cat >conftest.$ac_ext <<_ACEOF
9306 /* confdefs.h. */
9307 _ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9311 #include <$ac_header>
9312 _ACEOF
9313 if { (ac_try="$ac_cpp conftest.$ac_ext"
9314 case "(($ac_try" in
9315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316 *) ac_try_echo=$ac_try;;
9317 esac
9318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9319 $as_echo "$ac_try_echo") >&5
9320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } >/dev/null && {
9327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9328 test ! -s conftest.err
9329 }; then
9330 ac_header_preproc=yes
9331 else
9332 $as_echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_header_preproc=no
9338 rm -f conftest.err conftest.$ac_ext
9339 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9340 $as_echo "$ac_header_preproc" >&6; }
9342 # So? What about this header?
9343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9344 yes:no: )
9345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9346 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9349 ac_header_preproc=yes
9351 no:yes:* )
9352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9353 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9355 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9357 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9359 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9363 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9366 esac
9367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9368 $as_echo_n "checking for $ac_header... " >&6; }
9369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9370 $as_echo_n "(cached) " >&6
9371 else
9372 eval "$as_ac_Header=\$ac_header_preproc"
9374 ac_res=`eval 'as_val=${'$as_ac_Header'}
9375 $as_echo "$as_val"'`
9376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9377 $as_echo "$ac_res" >&6; }
9380 if test `eval 'as_val=${'$as_ac_Header'}
9381 $as_echo "$as_val"'` = yes; then
9382 cat >>confdefs.h <<_ACEOF
9383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9384 _ACEOF
9388 done
9391 cat > conftest.c << EOF
9392 #include <GL/gl.h>
9393 #include <GL/glu.h>
9394 #include <GL/glut.h>
9396 int main(int argc, char*argv)
9398 glutInit(&argc, argv);
9399 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9400 glutInitWindowSize(320,200);
9401 glutInitWindowPosition(0,0);
9402 glutCreateWindow("main");
9403 glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9404 glShadeModel(GL_SMOOTH);
9405 glEnable (GL_LINE_SMOOTH);
9406 glEnable (GL_POLYGON_SMOOTH);
9407 glEnable (GL_BLEND);
9408 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9409 glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9410 glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9414 { $as_echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9415 $as_echo_n "checking whether we can compile the opengl test program... " >&6; }
9417 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9418 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9419 { $as_echo "$as_me:$LINENO: result: yes" >&5
9420 $as_echo "yes" >&6; }
9421 HAVE_OPENGL=1
9423 cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_OPENGL 1
9425 _ACEOF
9427 else
9428 echo "configure: failed program was:" >&5
9429 cat conftest.c >&5
9430 HAVE_OPENGL=
9431 { $as_echo "$as_me:$LINENO: result: no" >&5
9432 $as_echo "no" >&6; }
9434 rm -f conftest*
9436 # if the above didn't work out, reset all changes to the compiler variables.
9437 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9438 CPPFLAGS=$OLDCPPFLAGS
9439 LIBS=$OLDLIBS
9442 if test "$HAVE_OPENGL";then
9443 DEVICE_OPENGL='devices/opengl.$(O)'
9447 lame_in_source=
9448 lame_makefile=
9449 if test "x${DISABLE_LAME}" = "xtrue"; then
9450 echo "*" Disabling lame support...
9451 else
9452 # old lame code at lib/lame
9453 if test -f lib/lame/Makefile.in; then
9454 lame_in_source='$(lame_objects)'
9455 lame_makefile="lib/lame/Makefile"
9456 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9458 cat >>confdefs.h <<\_ACEOF
9459 #define HAVE_LAME 1
9460 _ACEOF
9462 else
9463 if test -d /usr/include/lame; then
9464 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9465 else
9466 if test -d /usr/local/include/lame; then
9467 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9471 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9472 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9473 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9474 $as_echo_n "(cached) " >&6
9475 else
9476 ac_check_lib_save_LIBS=$LIBS
9477 LIBS="-lmp3lame $LIBS"
9478 cat >conftest.$ac_ext <<_ACEOF
9479 /* confdefs.h. */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9485 /* Override any GCC internal prototype to avoid an error.
9486 Use char because int might match the return type of a GCC
9487 builtin and then its argument prototype would still apply. */
9488 #ifdef __cplusplus
9489 extern "C"
9490 #endif
9491 char lame_init ();
9493 main ()
9495 return lame_init ();
9497 return 0;
9499 _ACEOF
9500 rm -f conftest.$ac_objext conftest$ac_exeext
9501 if { (ac_try="$ac_link"
9502 case "(($ac_try" in
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9505 esac
9506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9507 $as_echo "$ac_try_echo") >&5
9508 (eval "$ac_link") 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest$ac_exeext && {
9518 test "$cross_compiling" = yes ||
9519 $as_test_x conftest$ac_exeext
9520 }; then
9521 ac_cv_lib_mp3lame_lame_init=yes
9522 else
9523 $as_echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 ac_cv_lib_mp3lame_lame_init=no
9529 rm -rf conftest.dSYM
9530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9531 conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_lib_save_LIBS
9534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9535 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9536 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_LIBMP3LAME 1
9539 _ACEOF
9541 LIBS="-lmp3lame $LIBS"
9543 else
9544 NO_LIBMP3LAME=1
9547 HASLAMEHEADER=
9549 for ac_header in lame.h
9551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9553 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9554 $as_echo_n "checking for $ac_header... " >&6; }
9555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9556 $as_echo_n "(cached) " >&6
9558 ac_res=`eval 'as_val=${'$as_ac_Header'}
9559 $as_echo "$as_val"'`
9560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9561 $as_echo "$ac_res" >&6; }
9562 else
9563 # Is the header compilable?
9564 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9565 $as_echo_n "checking $ac_header usability... " >&6; }
9566 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 $ac_includes_default
9573 #include <$ac_header>
9574 _ACEOF
9575 rm -f conftest.$ac_objext
9576 if { (ac_try="$ac_compile"
9577 case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580 esac
9581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9582 $as_echo "$ac_try_echo") >&5
9583 (eval "$ac_compile") 2>conftest.er1
9584 ac_status=$?
9585 grep -v '^ *+' conftest.er1 >conftest.err
9586 rm -f conftest.er1
9587 cat conftest.err >&5
9588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } && {
9590 test -z "$ac_c_werror_flag" ||
9591 test ! -s conftest.err
9592 } && test -s conftest.$ac_objext; then
9593 ac_header_compiler=yes
9594 else
9595 $as_echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 ac_header_compiler=no
9601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9603 $as_echo "$ac_header_compiler" >&6; }
9605 # Is the header present?
9606 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9607 $as_echo_n "checking $ac_header presence... " >&6; }
9608 cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h. */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614 #include <$ac_header>
9615 _ACEOF
9616 if { (ac_try="$ac_cpp conftest.$ac_ext"
9617 case "(($ac_try" in
9618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619 *) ac_try_echo=$ac_try;;
9620 esac
9621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9622 $as_echo "$ac_try_echo") >&5
9623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } >/dev/null && {
9630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9631 test ! -s conftest.err
9632 }; then
9633 ac_header_preproc=yes
9634 else
9635 $as_echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 ac_header_preproc=no
9641 rm -f conftest.err conftest.$ac_ext
9642 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9643 $as_echo "$ac_header_preproc" >&6; }
9645 # So? What about this header?
9646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9647 yes:no: )
9648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9649 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9652 ac_header_preproc=yes
9654 no:yes:* )
9655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9656 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9658 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9660 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9662 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9666 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9669 esac
9670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9671 $as_echo_n "checking for $ac_header... " >&6; }
9672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9673 $as_echo_n "(cached) " >&6
9674 else
9675 eval "$as_ac_Header=\$ac_header_preproc"
9677 ac_res=`eval 'as_val=${'$as_ac_Header'}
9678 $as_echo "$as_val"'`
9679 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9680 $as_echo "$ac_res" >&6; }
9683 if test `eval 'as_val=${'$as_ac_Header'}
9684 $as_echo "$as_val"'` = yes; then
9685 cat >>confdefs.h <<_ACEOF
9686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9687 _ACEOF
9688 HASLAMEHEADER=1
9691 done
9693 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9694 cat >>confdefs.h <<\_ACEOF
9695 #define HAVE_LAME 1
9696 _ACEOF
9703 art_in_source='$(art_objects)'
9705 cat >>confdefs.h <<\_ACEOF
9706 #define INTERNAL_LIBART 1
9707 _ACEOF
9710 if test "x$EXTERNAL_LIBART" = "xtrue"; then
9711 art_in_source=
9713 pkg_failed=no
9714 { $as_echo "$as_me:$LINENO: checking for LIBART" >&5
9715 $as_echo_n "checking for LIBART... " >&6; }
9717 if test -n "$LIBART_CFLAGS"; then
9718 pkg_cv_LIBART_CFLAGS="$LIBART_CFLAGS"
9719 elif test -n "$PKG_CONFIG"; then
9720 if test -n "$PKG_CONFIG" && \
9721 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libart-2.0\"") >&5
9722 ($PKG_CONFIG --exists --print-errors "libart-2.0") 2>&5
9723 ac_status=$?
9724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; then
9726 pkg_cv_LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0" 2>/dev/null`
9727 else
9728 pkg_failed=yes
9730 else
9731 pkg_failed=untried
9733 if test -n "$LIBART_LIBS"; then
9734 pkg_cv_LIBART_LIBS="$LIBART_LIBS"
9735 elif test -n "$PKG_CONFIG"; then
9736 if test -n "$PKG_CONFIG" && \
9737 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libart-2.0\"") >&5
9738 ($PKG_CONFIG --exists --print-errors "libart-2.0") 2>&5
9739 ac_status=$?
9740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; then
9742 pkg_cv_LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0" 2>/dev/null`
9743 else
9744 pkg_failed=yes
9746 else
9747 pkg_failed=untried
9752 if test $pkg_failed = yes; then
9754 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9755 _pkg_short_errors_supported=yes
9756 else
9757 _pkg_short_errors_supported=no
9759 if test $_pkg_short_errors_supported = yes; then
9760 LIBART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libart-2.0" 2>&1`
9761 else
9762 LIBART_PKG_ERRORS=`$PKG_CONFIG --print-errors "libart-2.0" 2>&1`
9764 # Put the nasty error message in config.log where it belongs
9765 echo "$LIBART_PKG_ERRORS" >&5
9767 { $as_echo "$as_me:$LINENO: result: no" >&5
9768 $as_echo "no" >&6; }
9769 libart_pkgconfig_libart=no
9770 elif test $pkg_failed = untried; then
9771 libart_pkgconfig_libart=no
9772 else
9773 LIBART_CFLAGS=$pkg_cv_LIBART_CFLAGS
9774 LIBART_LIBS=$pkg_cv_LIBART_LIBS
9775 { $as_echo "$as_me:$LINENO: result: yes" >&5
9776 $as_echo "yes" >&6; }
9779 if test "x$libart_pkgconfig_libart" = "xno"; then
9781 for ac_header in libart_lgpl/libart.h
9783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9786 $as_echo_n "checking for $ac_header... " >&6; }
9787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9788 $as_echo_n "(cached) " >&6
9790 ac_res=`eval 'as_val=${'$as_ac_Header'}
9791 $as_echo "$as_val"'`
9792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9793 $as_echo "$ac_res" >&6; }
9794 else
9795 # Is the header compilable?
9796 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9797 $as_echo_n "checking $ac_header usability... " >&6; }
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 $ac_includes_default
9805 #include <$ac_header>
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (ac_try="$ac_compile"
9809 case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9812 esac
9813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9814 $as_echo "$ac_try_echo") >&5
9815 (eval "$ac_compile") 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && {
9822 test -z "$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9824 } && test -s conftest.$ac_objext; then
9825 ac_header_compiler=yes
9826 else
9827 $as_echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_header_compiler=no
9833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9835 $as_echo "$ac_header_compiler" >&6; }
9837 # Is the header present?
9838 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9839 $as_echo_n "checking $ac_header presence... " >&6; }
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h. */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 #include <$ac_header>
9847 _ACEOF
9848 if { (ac_try="$ac_cpp conftest.$ac_ext"
9849 case "(($ac_try" in
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9852 esac
9853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9854 $as_echo "$ac_try_echo") >&5
9855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } >/dev/null && {
9862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 }; then
9865 ac_header_preproc=yes
9866 else
9867 $as_echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_header_preproc=no
9873 rm -f conftest.err conftest.$ac_ext
9874 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9875 $as_echo "$ac_header_preproc" >&6; }
9877 # So? What about this header?
9878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9879 yes:no: )
9880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9881 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9884 ac_header_preproc=yes
9886 no:yes:* )
9887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9888 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9890 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9892 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9894 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9898 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9901 esac
9902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9903 $as_echo_n "checking for $ac_header... " >&6; }
9904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9905 $as_echo_n "(cached) " >&6
9906 else
9907 eval "$as_ac_Header=\$ac_header_preproc"
9909 ac_res=`eval 'as_val=${'$as_ac_Header'}
9910 $as_echo "$as_val"'`
9911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9912 $as_echo "$ac_res" >&6; }
9915 if test `eval 'as_val=${'$as_ac_Header'}
9916 $as_echo "$as_val"'` = yes; then
9917 cat >>confdefs.h <<_ACEOF
9918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9919 _ACEOF
9922 { $as_echo "$as_me:$LINENO: checking for art_new in -lart_lgpl_2" >&5
9923 $as_echo_n "checking for art_new in -lart_lgpl_2... " >&6; }
9924 if test "${ac_cv_lib_art_lgpl_2_art_new+set}" = set; then
9925 $as_echo_n "(cached) " >&6
9926 else
9927 ac_check_lib_save_LIBS=$LIBS
9928 LIBS="-lart_lgpl_2 $LIBS"
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h. */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9936 /* Override any GCC internal prototype to avoid an error.
9937 Use char because int might match the return type of a GCC
9938 builtin and then its argument prototype would still apply. */
9939 #ifdef __cplusplus
9940 extern "C"
9941 #endif
9942 char art_new ();
9944 main ()
9946 return art_new ();
9948 return 0;
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9953 case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956 esac
9957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9958 $as_echo "$ac_try_echo") >&5
9959 (eval "$ac_link") 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest$ac_exeext && {
9969 test "$cross_compiling" = yes ||
9970 $as_test_x conftest$ac_exeext
9971 }; then
9972 ac_cv_lib_art_lgpl_2_art_new=yes
9973 else
9974 $as_echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 ac_cv_lib_art_lgpl_2_art_new=no
9980 rm -rf conftest.dSYM
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9985 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_art_new" >&5
9986 $as_echo "$ac_cv_lib_art_lgpl_2_art_new" >&6; }
9987 if test $ac_cv_lib_art_lgpl_2_art_new = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define HAVE_LIBART_LGPL_2 1
9990 _ACEOF
9992 LIBS="-lart_lgpl_2 $LIBS"
9997 else
9998 { { $as_echo "$as_me:$LINENO: error: No libart library found. This library is required." >&5
9999 $as_echo "$as_me: error: No libart library found. This library is required." >&2;}
10000 { (exit 1); exit 1; }; }
10003 done
10005 else
10006 CPPFLAGS="$CPPFLAGS $LIBART_CFLAGS"
10007 cat >>confdefs.h <<\_ACEOF
10008 #define INTERNAL_LIBART 0
10009 _ACEOF
10011 LIBS="$LIBS $LIBART_LIBS"
10016 xpdf_in_source='$(xpdf_objects)'
10017 splash_in_source='$(splash_objects)'
10019 if test "x$USE_POPPLER" = "xtrue"; then
10020 xpdf_in_source=
10021 splash_in_source=
10023 cat >>confdefs.h <<\_ACEOF
10024 #define HAVE_POPPLER 1
10025 _ACEOF
10028 pkg_failed=no
10029 { $as_echo "$as_me:$LINENO: checking for POPPLER" >&5
10030 $as_echo_n "checking for POPPLER... " >&6; }
10032 if test -n "$POPPLER_CFLAGS"; then
10033 pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
10034 elif test -n "$PKG_CONFIG"; then
10035 if test -n "$PKG_CONFIG" && \
10036 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\"") >&5
10037 ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
10038 ac_status=$?
10039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; then
10041 pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler poppler-splash" 2>/dev/null`
10042 else
10043 pkg_failed=yes
10045 else
10046 pkg_failed=untried
10048 if test -n "$POPPLER_LIBS"; then
10049 pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
10050 elif test -n "$PKG_CONFIG"; then
10051 if test -n "$PKG_CONFIG" && \
10052 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\"") >&5
10053 ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
10054 ac_status=$?
10055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; then
10057 pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler poppler-splash" 2>/dev/null`
10058 else
10059 pkg_failed=yes
10061 else
10062 pkg_failed=untried
10067 if test $pkg_failed = yes; then
10069 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10070 _pkg_short_errors_supported=yes
10071 else
10072 _pkg_short_errors_supported=no
10074 if test $_pkg_short_errors_supported = yes; then
10075 POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "poppler poppler-splash" 2>&1`
10076 else
10077 POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors "poppler poppler-splash" 2>&1`
10079 # Put the nasty error message in config.log where it belongs
10080 echo "$POPPLER_PKG_ERRORS" >&5
10082 { $as_echo "$as_me:$LINENO: result: no" >&5
10083 $as_echo "no" >&6; }
10084 poppler_pkgconfig=no
10085 elif test $pkg_failed = untried; then
10086 poppler_pkgconfig=no
10087 else
10088 POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
10089 POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
10090 { $as_echo "$as_me:$LINENO: result: yes" >&5
10091 $as_echo "yes" >&6; }
10094 if test "x$poppler_pkgconfig" = "xno"; then
10095 ac_ext=cpp
10096 ac_cpp='$CXXCPP $CPPFLAGS'
10097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10102 ac_ext=cpp
10103 ac_cpp='$CXXCPP $CPPFLAGS'
10104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10107 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10108 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10109 if test -z "$CXXCPP"; then
10110 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10111 $as_echo_n "(cached) " >&6
10112 else
10113 # Double quotes because CXXCPP needs to be expanded
10114 for CXXCPP in "$CXX -E" "/lib/cpp"
10116 ac_preproc_ok=false
10117 for ac_cxx_preproc_warn_flag in '' yes
10119 # Use a header file that comes with gcc, so configuring glibc
10120 # with a fresh cross-compiler works.
10121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10122 # <limits.h> exists even on freestanding compilers.
10123 # On the NeXT, cc -E runs the code through the compiler's parser,
10124 # not just through cpp. "Syntax error" is here to catch this case.
10125 cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h. */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 #ifdef __STDC__
10132 # include <limits.h>
10133 #else
10134 # include <assert.h>
10135 #endif
10136 Syntax error
10137 _ACEOF
10138 if { (ac_try="$ac_cpp conftest.$ac_ext"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142 esac
10143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10144 $as_echo "$ac_try_echo") >&5
10145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10146 ac_status=$?
10147 grep -v '^ *+' conftest.er1 >conftest.err
10148 rm -f conftest.er1
10149 cat conftest.err >&5
10150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } >/dev/null && {
10152 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10153 test ! -s conftest.err
10154 }; then
10156 else
10157 $as_echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 # Broken: fails on valid input.
10161 continue
10164 rm -f conftest.err conftest.$ac_ext
10166 # OK, works on sane cases. Now check whether nonexistent headers
10167 # can be detected and how.
10168 cat >conftest.$ac_ext <<_ACEOF
10169 /* confdefs.h. */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 #include <ac_nonexistent.h>
10175 _ACEOF
10176 if { (ac_try="$ac_cpp conftest.$ac_ext"
10177 case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10180 esac
10181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10182 $as_echo "$ac_try_echo") >&5
10183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10184 ac_status=$?
10185 grep -v '^ *+' conftest.er1 >conftest.err
10186 rm -f conftest.er1
10187 cat conftest.err >&5
10188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } >/dev/null && {
10190 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10191 test ! -s conftest.err
10192 }; then
10193 # Broken: success on invalid input.
10194 continue
10195 else
10196 $as_echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 # Passes both tests.
10200 ac_preproc_ok=:
10201 break
10204 rm -f conftest.err conftest.$ac_ext
10206 done
10207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10208 rm -f conftest.err conftest.$ac_ext
10209 if $ac_preproc_ok; then
10210 break
10213 done
10214 ac_cv_prog_CXXCPP=$CXXCPP
10217 CXXCPP=$ac_cv_prog_CXXCPP
10218 else
10219 ac_cv_prog_CXXCPP=$CXXCPP
10221 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10222 $as_echo "$CXXCPP" >&6; }
10223 ac_preproc_ok=false
10224 for ac_cxx_preproc_warn_flag in '' yes
10226 # Use a header file that comes with gcc, so configuring glibc
10227 # with a fresh cross-compiler works.
10228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10229 # <limits.h> exists even on freestanding compilers.
10230 # On the NeXT, cc -E runs the code through the compiler's parser,
10231 # not just through cpp. "Syntax error" is here to catch this case.
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 #ifdef __STDC__
10239 # include <limits.h>
10240 #else
10241 # include <assert.h>
10242 #endif
10243 Syntax error
10244 _ACEOF
10245 if { (ac_try="$ac_cpp conftest.$ac_ext"
10246 case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10249 esac
10250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10251 $as_echo "$ac_try_echo") >&5
10252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10253 ac_status=$?
10254 grep -v '^ *+' conftest.er1 >conftest.err
10255 rm -f conftest.er1
10256 cat conftest.err >&5
10257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } >/dev/null && {
10259 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10260 test ! -s conftest.err
10261 }; then
10263 else
10264 $as_echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 # Broken: fails on valid input.
10268 continue
10271 rm -f conftest.err conftest.$ac_ext
10273 # OK, works on sane cases. Now check whether nonexistent headers
10274 # can be detected and how.
10275 cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h. */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 #include <ac_nonexistent.h>
10282 _ACEOF
10283 if { (ac_try="$ac_cpp conftest.$ac_ext"
10284 case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10287 esac
10288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10289 $as_echo "$ac_try_echo") >&5
10290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } >/dev/null && {
10297 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10298 test ! -s conftest.err
10299 }; then
10300 # Broken: success on invalid input.
10301 continue
10302 else
10303 $as_echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 # Passes both tests.
10307 ac_preproc_ok=:
10308 break
10311 rm -f conftest.err conftest.$ac_ext
10313 done
10314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10315 rm -f conftest.err conftest.$ac_ext
10316 if $ac_preproc_ok; then
10318 else
10319 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10320 See \`config.log' for more details." >&5
10321 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10322 See \`config.log' for more details." >&2;}
10323 { (exit 1); exit 1; }; }
10326 ac_ext=cpp
10327 ac_cpp='$CXXCPP $CPPFLAGS'
10328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10334 for ac_header in OutputDev.h
10336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10338 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10339 $as_echo_n "checking for $ac_header... " >&6; }
10340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10341 $as_echo_n "(cached) " >&6
10343 ac_res=`eval 'as_val=${'$as_ac_Header'}
10344 $as_echo "$as_val"'`
10345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10346 $as_echo "$ac_res" >&6; }
10347 else
10348 # Is the header compilable?
10349 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10350 $as_echo_n "checking $ac_header usability... " >&6; }
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h. */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 #include <$ac_header>
10359 _ACEOF
10360 rm -f conftest.$ac_objext
10361 if { (ac_try="$ac_compile"
10362 case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10365 esac
10366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10367 $as_echo "$ac_try_echo") >&5
10368 (eval "$ac_compile") 2>conftest.er1
10369 ac_status=$?
10370 grep -v '^ *+' conftest.er1 >conftest.err
10371 rm -f conftest.er1
10372 cat conftest.err >&5
10373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } && {
10375 test -z "$ac_cxx_werror_flag" ||
10376 test ! -s conftest.err
10377 } && test -s conftest.$ac_objext; then
10378 ac_header_compiler=yes
10379 else
10380 $as_echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 ac_header_compiler=no
10386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10387 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10388 $as_echo "$ac_header_compiler" >&6; }
10390 # Is the header present?
10391 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10392 $as_echo_n "checking $ac_header presence... " >&6; }
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h. */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 #include <$ac_header>
10400 _ACEOF
10401 if { (ac_try="$ac_cpp conftest.$ac_ext"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405 esac
10406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10407 $as_echo "$ac_try_echo") >&5
10408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } >/dev/null && {
10415 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10416 test ! -s conftest.err
10417 }; then
10418 ac_header_preproc=yes
10419 else
10420 $as_echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ac_header_preproc=no
10426 rm -f conftest.err conftest.$ac_ext
10427 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10428 $as_echo "$ac_header_preproc" >&6; }
10430 # So? What about this header?
10431 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10432 yes:no: )
10433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10434 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10436 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10437 ac_header_preproc=yes
10439 no:yes:* )
10440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10441 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10443 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10445 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10447 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10449 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10451 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10454 esac
10455 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10456 $as_echo_n "checking for $ac_header... " >&6; }
10457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10458 $as_echo_n "(cached) " >&6
10459 else
10460 eval "$as_ac_Header=\$ac_header_preproc"
10462 ac_res=`eval 'as_val=${'$as_ac_Header'}
10463 $as_echo "$as_val"'`
10464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10465 $as_echo "$ac_res" >&6; }
10468 if test `eval 'as_val=${'$as_ac_Header'}
10469 $as_echo "$as_val"'` = yes; then
10470 cat >>confdefs.h <<_ACEOF
10471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10472 _ACEOF
10475 { $as_echo "$as_me:$LINENO: checking for main in -lpoppler" >&5
10476 $as_echo_n "checking for main in -lpoppler... " >&6; }
10477 if test "${ac_cv_lib_poppler_main+set}" = set; then
10478 $as_echo_n "(cached) " >&6
10479 else
10480 ac_check_lib_save_LIBS=$LIBS
10481 LIBS="-lpoppler $LIBS"
10482 cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h. */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10491 main ()
10493 return main ();
10495 return 0;
10497 _ACEOF
10498 rm -f conftest.$ac_objext conftest$ac_exeext
10499 if { (ac_try="$ac_link"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10503 esac
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506 (eval "$ac_link") 2>conftest.er1
10507 ac_status=$?
10508 grep -v '^ *+' conftest.er1 >conftest.err
10509 rm -f conftest.er1
10510 cat conftest.err >&5
10511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } && {
10513 test -z "$ac_cxx_werror_flag" ||
10514 test ! -s conftest.err
10515 } && test -s conftest$ac_exeext && {
10516 test "$cross_compiling" = yes ||
10517 $as_test_x conftest$ac_exeext
10518 }; then
10519 ac_cv_lib_poppler_main=yes
10520 else
10521 $as_echo "$as_me: failed program was:" >&5
10522 sed 's/^/| /' conftest.$ac_ext >&5
10524 ac_cv_lib_poppler_main=no
10527 rm -rf conftest.dSYM
10528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10529 conftest$ac_exeext conftest.$ac_ext
10530 LIBS=$ac_check_lib_save_LIBS
10532 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_poppler_main" >&5
10533 $as_echo "$ac_cv_lib_poppler_main" >&6; }
10534 if test $ac_cv_lib_poppler_main = yes; then
10535 cat >>confdefs.h <<_ACEOF
10536 #define HAVE_LIBPOPPLER 1
10537 _ACEOF
10539 LIBS="-lpoppler $LIBS"
10544 else
10545 { { $as_echo "$as_me:$LINENO: error: No poppler library found. This library is required." >&5
10546 $as_echo "$as_me: error: No poppler library found. This library is required." >&2;}
10547 { (exit 1); exit 1; }; }
10550 done
10552 ac_ext=c
10553 ac_cpp='$CPP $CPPFLAGS'
10554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10558 else
10559 CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
10560 cat >>confdefs.h <<\_ACEOF
10561 #define HAVE_POPPLER 1
10562 _ACEOF
10564 LIBS="$LIBS $POPPLER_LIBS"
10570 # ------------------------------------------------------------------
10574 for ac_prog in avifile-config
10576 # Extract the first word of "$ac_prog", so it can be a program name with args.
10577 set dummy $ac_prog; ac_word=$2
10578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10579 $as_echo_n "checking for $ac_word... " >&6; }
10580 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10581 $as_echo_n "(cached) " >&6
10582 else
10583 if test -n "$AVIFILE_CONFIG"; then
10584 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10585 else
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10593 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10597 done
10598 done
10599 IFS=$as_save_IFS
10603 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10604 if test -n "$AVIFILE_CONFIG"; then
10605 { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10606 $as_echo "$AVIFILE_CONFIG" >&6; }
10607 else
10608 { $as_echo "$as_me:$LINENO: result: no" >&5
10609 $as_echo "no" >&6; }
10613 test -n "$AVIFILE_CONFIG" && break
10614 done
10617 if test "x$AVIFILE_CONFIG" '!=' "x";then
10618 OLDCPPFLAGS="$CPPFLAGS"
10619 # temporarily add avifile paths to CPPFLAGS...
10620 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10623 for ac_header in avifile/version.h version.h
10625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10627 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10628 $as_echo_n "checking for $ac_header... " >&6; }
10629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10630 $as_echo_n "(cached) " >&6
10632 ac_res=`eval 'as_val=${'$as_ac_Header'}
10633 $as_echo "$as_val"'`
10634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10635 $as_echo "$ac_res" >&6; }
10636 else
10637 # Is the header compilable?
10638 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10639 $as_echo_n "checking $ac_header usability... " >&6; }
10640 cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h. */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646 $ac_includes_default
10647 #include <$ac_header>
10648 _ACEOF
10649 rm -f conftest.$ac_objext
10650 if { (ac_try="$ac_compile"
10651 case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654 esac
10655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10656 $as_echo "$ac_try_echo") >&5
10657 (eval "$ac_compile") 2>conftest.er1
10658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
10662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } && {
10664 test -z "$ac_c_werror_flag" ||
10665 test ! -s conftest.err
10666 } && test -s conftest.$ac_objext; then
10667 ac_header_compiler=yes
10668 else
10669 $as_echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10672 ac_header_compiler=no
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10677 $as_echo "$ac_header_compiler" >&6; }
10679 # Is the header present?
10680 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10681 $as_echo_n "checking $ac_header presence... " >&6; }
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h. */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 #include <$ac_header>
10689 _ACEOF
10690 if { (ac_try="$ac_cpp conftest.$ac_ext"
10691 case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694 esac
10695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10696 $as_echo "$ac_try_echo") >&5
10697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } >/dev/null && {
10704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 }; then
10707 ac_header_preproc=yes
10708 else
10709 $as_echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ac_header_preproc=no
10715 rm -f conftest.err conftest.$ac_ext
10716 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10717 $as_echo "$ac_header_preproc" >&6; }
10719 # So? What about this header?
10720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10721 yes:no: )
10722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10723 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10725 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10726 ac_header_preproc=yes
10728 no:yes:* )
10729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10730 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10732 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10734 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10736 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10738 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10740 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10743 esac
10744 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10745 $as_echo_n "checking for $ac_header... " >&6; }
10746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10747 $as_echo_n "(cached) " >&6
10748 else
10749 eval "$as_ac_Header=\$ac_header_preproc"
10751 ac_res=`eval 'as_val=${'$as_ac_Header'}
10752 $as_echo "$as_val"'`
10753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10754 $as_echo "$ac_res" >&6; }
10757 if test `eval 'as_val=${'$as_ac_Header'}
10758 $as_echo "$as_val"'` = yes; then
10759 cat >>confdefs.h <<_ACEOF
10760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10761 _ACEOF
10765 done
10767 # ... and reset
10768 CPPFLAGS="$OLDCPPFLAGS"
10771 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10772 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
10774 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10775 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10777 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10778 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10781 cat > conftest.cpp << EOF
10783 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10784 // so we have to introduce them this way
10785 $HAVE_VERSION_H_DEFINE
10786 $HAVE_AVIFILE_VERSION_H_DEFINE
10788 #ifdef HAVE_VERSION_H
10789 #include <version.h>
10790 #endif
10791 #ifdef HAVE_AVIFILE_VERSION_H
10792 #include <avifile/version.h>
10793 #endif
10795 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10796 #include <avifile.h>
10797 #include <aviplay.h>
10798 #include <avm_fourcc.h>
10799 #include <avm_creators.h>
10800 #include <StreamInfo.h>
10801 #define VERSION6
10802 #else
10803 #include <avifile.h>
10804 #include <aviplay.h>
10805 #include <aviutil.h>
10806 #define Width width
10807 #define Height height
10808 #define Data data
10809 #define Bpp bpp
10810 #endif
10812 void test()
10814 IAviReadFile* player;
10815 IAviReadStream* astream;
10816 IAviReadStream* vstream;
10817 player = CreateIAviReadFile(0);
10818 astream = player->GetStream(0, AviStream::Audio);
10819 vstream = player->GetStream(0, AviStream::Video);
10820 vstream -> StartStreaming();
10821 astream -> StartStreaming();
10822 #ifndef VERSION6
10823 MainAVIHeader head;
10824 player->GetFileHeader(&head);
10825 head.dwMicroSecPerFrame;
10826 head.dwTotalFrames;
10827 head.dwStreams;
10828 head.dwWidth;
10829 head.dwHeight;
10830 head.dwMicroSecPerFrame;
10831 astream->GetEndPos(),
10832 astream->GetEndTime());
10833 player->StreamCount();
10834 #else
10835 StreamInfo*audioinfo;
10836 StreamInfo*videoinfo;
10837 audioinfo = astream->GetStreamInfo();
10838 videoinfo = vstream->GetStreamInfo();
10839 videoinfo->GetVideoWidth();
10840 videoinfo->GetVideoHeight();
10841 audioinfo->GetAudioSamplesPerSec();
10842 videoinfo->GetFps();
10843 #endif
10844 CImage*img = vstream->GetFrame();
10845 img->ToRGB();
10846 img->Data();
10847 img->Bpp();
10848 img->Width();
10849 img->Height();
10850 WAVEFORMATEX wave;
10851 astream->GetAudioFormatInfo(&wave,0);
10852 uint_t a,b;
10853 astream->ReadFrames(0,0,0,a,b);
10855 int main (int argc, char*argv)
10857 return 0;
10861 if test "x$AVIFILE_CONFIG" '!=' "x";then
10862 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
10863 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
10864 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
10865 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10866 { $as_echo "$as_me:$LINENO: result: yes" >&5
10867 $as_echo "yes" >&6; }
10868 AVIFILE=true
10869 export AVIFILE
10871 cat >>confdefs.h <<\_ACEOF
10872 #define AVIFILE true
10873 _ACEOF
10875 else
10876 echo "configure: failed program was:" >&5
10877 cat conftest.cpp >&5
10878 { $as_echo "$as_me:$LINENO: result: no" >&5
10879 $as_echo "no" >&6; }
10881 else
10882 { $as_echo "$as_me:$LINENO: result: no" >&5
10883 $as_echo "no" >&6; }
10885 rm -f conftest*
10887 if test "x${AVIFILE}" = "xtrue"; then
10888 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
10889 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
10891 cat >>confdefs.h <<\_ACEOF
10892 #define HAVE_AVIFILE 1
10893 _ACEOF
10897 if test "x${WIN32}" != "x"; then
10898 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
10899 #if test "x${AVIFIL32}" != "x"; then
10900 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
10902 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
10903 AVIFIL32=true
10908 # ------------------------------------------------------------------
10910 if test "x${UNCOMPRESS}" = "xgzip"; then
10912 cat >>confdefs.h <<\_ACEOF
10913 #define USE_GZIP 1
10914 _ACEOF
10919 # ------------------------------------------------------------------
10922 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
10923 $as_echo_n "checking for Python.h... " >&6; }
10925 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
10926 PY_VERSION=unknown
10927 else
10928 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
10929 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
10931 # iterate through version 2.2 to 2.6
10932 for v in 2 3 4 5 6; do
10933 # Linux
10934 if test -f "/usr/include/python2.$v/Python.h";then
10935 PY_VERSION=2.$v
10936 PYTHON_LIB="-lpython$PY_VERSION"
10937 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
10938 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
10939 HAVE_PYTHON_IMAGING_LIB=1
10940 else
10941 PYTHON_LIB2="$PYTHON_LIB"
10943 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
10944 # Mac OS X
10945 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
10946 PY_VERSION=2.$v
10947 PYTHON_LIB="-framework Python"
10948 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
10949 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
10950 HAVE_PYTHON_IMAGING_LIB=1
10951 else
10952 PYTHON_LIB2="$PYTHON_LIB"
10954 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
10955 # Mac OS X [Fink]:
10956 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
10957 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
10958 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
10959 ")" \
10960 -a -f "/sw/include/python2.$v/Python.h"; then
10961 PY_VERSION=2.$v
10962 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10963 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
10964 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10965 HAVE_PYTHON_IMAGING_LIB=1
10966 else
10967 PYTHON_LIB2="$PYTHON_LIB"
10969 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
10971 done
10974 if test "x$PY_VERSION" "!=" "x"; then
10975 { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
10976 $as_echo "$PY_VERSION" >&6; }
10977 export PYTHON_INCLUDES PYTHON_LIB
10980 { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
10981 $as_echo_n "checking whether we can compile the python test program... " >&6; }
10983 cat > conftest.c << EOF
10984 #include <Python.h>
10986 int main()
10988 int ret;
10989 ret = Py_Main(0, 0);
10990 int x; // check also for gcc 2.95.x incompatibilities
10991 return ret;
10995 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
10996 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10997 { $as_echo "$as_me:$LINENO: result: yes" >&5
10998 $as_echo "yes" >&6; }
10999 PYTHON_OK=yes
11000 else
11001 echo "configure: failed program was:" >&5
11002 cat conftest.c >&5
11003 { $as_echo "$as_me:$LINENO: result: no" >&5
11004 $as_echo "no" >&6; }
11006 rm -f conftest*
11007 if test "x$PYTHON_OK" = "xyes";then
11008 { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
11009 $as_echo_n "checking for Python-Imaging... " >&6; }
11010 cat > conftest.c << EOF
11011 #include <Python.h>
11012 #include <Imaging.h>
11014 int main()
11016 Py_Main(0, 0);
11017 return 0;
11020 if test "$HAVE_PYTHON_IMAGING_LIB"; then
11021 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
11022 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11023 PYTHON_LIB="${PYTHON_LIB2}"
11025 cat >>confdefs.h <<\_ACEOF
11026 #define HAVE_PYTHON_IMAGING 1
11027 _ACEOF
11029 HAVE_PYTHON_IMAGING=yes
11030 export HAVE_PYTHON_IMAGING
11032 { $as_echo "$as_me:$LINENO: result: yes" >&5
11033 $as_echo "yes" >&6; }
11034 else
11035 echo "configure: failed program was:" >&5
11036 cat conftest.c >&5
11037 { $as_echo "$as_me:$LINENO: result: no" >&5
11038 $as_echo "no" >&6; }
11040 else
11041 echo "(didn't find the Python-Imaging libraries)" >&5
11042 { $as_echo "$as_me:$LINENO: result: no" >&5
11043 $as_echo "no" >&6; }
11046 rm -f conftest*
11047 else
11048 { $as_echo "$as_me:$LINENO: result: nope" >&5
11049 $as_echo "nope" >&6; }
11053 if test "x$PYTHON_OK" '!=' "xyes";then
11054 echo all install uninstall clean: > lib/python/Makefile
11055 # fail silently- the most users won't have any need for the
11056 # python interface anyway
11057 else
11058 pythonrfxswf="lib/python/Makefile"
11061 # ------------------------------------------------------------------
11063 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
11064 $as_echo_n "checking for missing libraries... " >&6; }
11066 if test "x$ZLIBMISSING" = "xtrue";then
11067 MISSINGLIBS="${MISSINGLIBS} zlib"
11068 DISABLEPNG2SWF=true
11069 PARTIAL=true
11071 if test "x$JPEGLIBMISSING" = "xtrue";then
11072 MISSINGLIBS="${MISSINGLIBS} jpeglib"
11073 DISABLEPDF2SWF=true
11074 DISABLEJPEG2SWF=true
11075 PARTIAL=true
11077 #if test "x$T1LIBMISSING" = "xtrue";then
11078 # MISSINGLIBS="${MISSINGLIBS} t1lib"
11080 if test "x$UNGIFMISSING" = "xtrue";then
11081 DISABLEGIF2SWF=true
11082 MISSINGLIBS="${MISSINGLIBS} ungif"
11083 PARTIAL=true
11086 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11087 DISABLEPDF2SWF=true;
11088 DISABLEJPEG2SWF=true;
11089 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11090 PARTIAL=true
11092 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11093 DISABLEPDF2SWF=true;
11094 MISSINGLIBS="${MISSINGLIBS} freetype"
11095 PARTIAL=true
11097 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11098 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11100 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
11101 DISABLEGIF2SWF=true
11102 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
11103 PARTIAL=true
11105 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11106 DISABLEPNG2SWF=true;
11107 MISSINGLIBS="${MISSINGLIBS} zlib.h"
11108 PARTIAL=true
11110 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11111 # MISSINGLIBS="${MISSINGLIBS} avifile"
11114 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11115 $as_echo "${MISSINGLIBS}" >&6; }
11117 # ------------------------------------------------------------------
11119 if test "x${MISSINGLIBS}" '!=' "x"; then
11120 echo "***************************************************"
11121 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11124 avi2swf="avi2swf/Makefile"
11125 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11126 #don't whine, avi2swf is outdated anyway
11127 #echo "* Disabling avi2swf tool..."
11128 echo all install uninstall clean: > avi2swf/Makefile
11129 avi2swf=
11132 pdf2swf_makefile="lib/pdf/Makefile"
11133 PDF2SWF='pdf2swf$(E)'
11134 LIBPDF='libpdf$(A)'
11136 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11137 echo "* Disabling pdf2swf tool..."
11138 rm -f lib/pdf/Makefile
11139 echo all install uninstall clean libpdf: > lib/pdf/Makefile
11140 pdf2swf_makefile=""
11141 PDF2SWF=
11142 LIBPDF=
11147 if test "x${ZLIBMISSING}" = "xtrue"; then
11148 echo
11149 echo "* Warning! Without zlib, you will not be able to read"
11150 echo "* or write compressed Flash MX files!"
11153 JPEG2SWF='jpeg2swf$(E)'
11154 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11155 echo "* Disabling jpeg2swf tool..."
11156 JPEG2SWF=
11158 export JPEG2SWF
11161 GIF2SWF='gif2swf$(E)'
11162 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
11163 echo "* Disabling gif2swf tool..."
11164 GIF2SWF=
11166 export GIF2SWF
11169 PNG2SWF='png2swf$(E)'
11170 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11171 echo "* Disabling png2swf tool..."
11172 PNG2SWF=
11174 export PNG2SWF
11177 if test "x${MISSINGLIBS}" '!=' "x"; then
11178 if test "x${PARTIAL}" '=' "x"; then
11179 echo "* (never mind)"
11181 echo "***************************************************"
11184 # ------------------------------------------------------------------
11192 if test -f "release.in"; then release_in="./release"; fi
11193 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
11194 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
11195 ac_config_files="$ac_config_files ${FILES}"
11197 cat >confcache <<\_ACEOF
11198 # This file is a shell script that caches the results of configure
11199 # tests run on this system so they can be shared between configure
11200 # scripts and configure runs, see configure's option --config-cache.
11201 # It is not useful on other systems. If it contains results you don't
11202 # want to keep, you may remove or edit it.
11204 # config.status only pays attention to the cache file if you give it
11205 # the --recheck option to rerun configure.
11207 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11208 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11209 # following values.
11211 _ACEOF
11213 # The following way of writing the cache mishandles newlines in values,
11214 # but we know of no workaround that is simple, portable, and efficient.
11215 # So, we kill variables containing newlines.
11216 # Ultrix sh set writes to stderr and can't be redirected directly,
11217 # and sets the high bit in the cache file unless we assign to the vars.
11219 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11220 eval ac_val=\$$ac_var
11221 case $ac_val in #(
11222 *${as_nl}*)
11223 case $ac_var in #(
11224 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11225 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11226 esac
11227 case $ac_var in #(
11228 _ | IFS | as_nl) ;; #(
11229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11230 *) $as_unset $ac_var ;;
11231 esac ;;
11232 esac
11233 done
11235 (set) 2>&1 |
11236 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11237 *${as_nl}ac_space=\ *)
11238 # `set' does not quote correctly, so add quotes (double-quote
11239 # substitution turns \\\\ into \\, and sed turns \\ into \).
11240 sed -n \
11241 "s/'/'\\\\''/g;
11242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11243 ;; #(
11245 # `set' quotes correctly as required by POSIX, so do not add quotes.
11246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11248 esac |
11249 sort
11251 sed '
11252 /^ac_cv_env_/b end
11253 t clear
11254 :clear
11255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11256 t end
11257 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11258 :end' >>confcache
11259 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11260 if test -w "$cache_file"; then
11261 test "x$cache_file" != "x/dev/null" &&
11262 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11263 $as_echo "$as_me: updating cache $cache_file" >&6;}
11264 cat confcache >$cache_file
11265 else
11266 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11267 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11270 rm -f confcache
11272 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11273 # Let make expand exec_prefix.
11274 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11276 DEFS=-DHAVE_CONFIG_H
11278 ac_libobjs=
11279 ac_ltlibobjs=
11280 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11281 # 1. Remove the extension, and $U if already installed.
11282 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11283 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11284 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11285 # will be set to the directory where LIBOBJS objects are built.
11286 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11287 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11288 done
11289 LIBOBJS=$ac_libobjs
11291 LTLIBOBJS=$ac_ltlibobjs
11295 : ${CONFIG_STATUS=./config.status}
11296 ac_write_fail=0
11297 ac_clean_files_save=$ac_clean_files
11298 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11299 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11300 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11301 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11302 #! $SHELL
11303 # Generated by $as_me.
11304 # Run this file to recreate the current configuration.
11305 # Compiler output produced by configure, useful for debugging
11306 # configure, is in config.log if it exists.
11308 debug=false
11309 ac_cs_recheck=false
11310 ac_cs_silent=false
11311 SHELL=\${CONFIG_SHELL-$SHELL}
11312 _ACEOF
11314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11315 ## --------------------- ##
11316 ## M4sh Initialization. ##
11317 ## --------------------- ##
11319 # Be more Bourne compatible
11320 DUALCASE=1; export DUALCASE # for MKS sh
11321 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11322 emulate sh
11323 NULLCMD=:
11324 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11325 # is contrary to our usage. Disable this feature.
11326 alias -g '${1+"$@"}'='"$@"'
11327 setopt NO_GLOB_SUBST
11328 else
11329 case `(set -o) 2>/dev/null` in
11330 *posix*) set -o posix ;;
11331 esac
11338 # PATH needs CR
11339 # Avoid depending upon Character Ranges.
11340 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11341 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11342 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11343 as_cr_digits='0123456789'
11344 as_cr_alnum=$as_cr_Letters$as_cr_digits
11346 as_nl='
11348 export as_nl
11349 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11350 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11351 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11352 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11353 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11354 as_echo='printf %s\n'
11355 as_echo_n='printf %s'
11356 else
11357 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11358 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11359 as_echo_n='/usr/ucb/echo -n'
11360 else
11361 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11362 as_echo_n_body='eval
11363 arg=$1;
11364 case $arg in
11365 *"$as_nl"*)
11366 expr "X$arg" : "X\\(.*\\)$as_nl";
11367 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11368 esac;
11369 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11371 export as_echo_n_body
11372 as_echo_n='sh -c $as_echo_n_body as_echo'
11374 export as_echo_body
11375 as_echo='sh -c $as_echo_body as_echo'
11378 # The user is always right.
11379 if test "${PATH_SEPARATOR+set}" != set; then
11380 PATH_SEPARATOR=:
11381 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11382 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11383 PATH_SEPARATOR=';'
11387 # Support unset when possible.
11388 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11389 as_unset=unset
11390 else
11391 as_unset=false
11395 # IFS
11396 # We need space, tab and new line, in precisely that order. Quoting is
11397 # there to prevent editors from complaining about space-tab.
11398 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11399 # splitting by setting IFS to empty value.)
11400 IFS=" "" $as_nl"
11402 # Find who we are. Look in the path if we contain no directory separator.
11403 case $0 in
11404 *[\\/]* ) as_myself=$0 ;;
11405 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11411 done
11412 IFS=$as_save_IFS
11415 esac
11416 # We did not find ourselves, most probably we were run as `sh COMMAND'
11417 # in which case we are not to be found in the path.
11418 if test "x$as_myself" = x; then
11419 as_myself=$0
11421 if test ! -f "$as_myself"; then
11422 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11423 { (exit 1); exit 1; }
11426 # Work around bugs in pre-3.0 UWIN ksh.
11427 for as_var in ENV MAIL MAILPATH
11428 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11429 done
11430 PS1='$ '
11431 PS2='> '
11432 PS4='+ '
11434 # NLS nuisances.
11435 LC_ALL=C
11436 export LC_ALL
11437 LANGUAGE=C
11438 export LANGUAGE
11440 # Required to use basename.
11441 if expr a : '\(a\)' >/dev/null 2>&1 &&
11442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11443 as_expr=expr
11444 else
11445 as_expr=false
11448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11449 as_basename=basename
11450 else
11451 as_basename=false
11455 # Name of the executable.
11456 as_me=`$as_basename -- "$0" ||
11457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11458 X"$0" : 'X\(//\)$' \| \
11459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11460 $as_echo X/"$0" |
11461 sed '/^.*\/\([^/][^/]*\)\/*$/{
11462 s//\1/
11465 /^X\/\(\/\/\)$/{
11466 s//\1/
11469 /^X\/\(\/\).*/{
11470 s//\1/
11473 s/.*/./; q'`
11475 # CDPATH.
11476 $as_unset CDPATH
11480 as_lineno_1=$LINENO
11481 as_lineno_2=$LINENO
11482 test "x$as_lineno_1" != "x$as_lineno_2" &&
11483 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11485 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11486 # uniformly replaced by the line number. The first 'sed' inserts a
11487 # line-number line after each line using $LINENO; the second 'sed'
11488 # does the real work. The second script uses 'N' to pair each
11489 # line-number line with the line containing $LINENO, and appends
11490 # trailing '-' during substitution so that $LINENO is not a special
11491 # case at line end.
11492 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11493 # scripts with optimization help from Paolo Bonzini. Blame Lee
11494 # E. McMahon (1931-1989) for sed's syntax. :-)
11495 sed -n '
11497 /[$]LINENO/=
11498 ' <$as_myself |
11499 sed '
11500 s/[$]LINENO.*/&-/
11501 t lineno
11503 :lineno
11505 :loop
11506 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11507 t loop
11508 s/-\n.*//
11509 ' >$as_me.lineno &&
11510 chmod +x "$as_me.lineno" ||
11511 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11512 { (exit 1); exit 1; }; }
11514 # Don't try to exec as it changes $[0], causing all sort of problems
11515 # (the dirname of $[0] is not the place where we might find the
11516 # original and so on. Autoconf is especially sensitive to this).
11517 . "./$as_me.lineno"
11518 # Exit status is that of the last command.
11519 exit
11523 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11524 as_dirname=dirname
11525 else
11526 as_dirname=false
11529 ECHO_C= ECHO_N= ECHO_T=
11530 case `echo -n x` in
11531 -n*)
11532 case `echo 'x\c'` in
11533 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11534 *) ECHO_C='\c';;
11535 esac;;
11537 ECHO_N='-n';;
11538 esac
11539 if expr a : '\(a\)' >/dev/null 2>&1 &&
11540 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11541 as_expr=expr
11542 else
11543 as_expr=false
11546 rm -f conf$$ conf$$.exe conf$$.file
11547 if test -d conf$$.dir; then
11548 rm -f conf$$.dir/conf$$.file
11549 else
11550 rm -f conf$$.dir
11551 mkdir conf$$.dir 2>/dev/null
11553 if (echo >conf$$.file) 2>/dev/null; then
11554 if ln -s conf$$.file conf$$ 2>/dev/null; then
11555 as_ln_s='ln -s'
11556 # ... but there are two gotchas:
11557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11559 # In both cases, we have to default to `cp -p'.
11560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11561 as_ln_s='cp -p'
11562 elif ln conf$$.file conf$$ 2>/dev/null; then
11563 as_ln_s=ln
11564 else
11565 as_ln_s='cp -p'
11567 else
11568 as_ln_s='cp -p'
11570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11571 rmdir conf$$.dir 2>/dev/null
11573 if mkdir -p . 2>/dev/null; then
11574 as_mkdir_p=:
11575 else
11576 test -d ./-p && rmdir ./-p
11577 as_mkdir_p=false
11580 if test -x / >/dev/null 2>&1; then
11581 as_test_x='test -x'
11582 else
11583 if ls -dL / >/dev/null 2>&1; then
11584 as_ls_L_option=L
11585 else
11586 as_ls_L_option=
11588 as_test_x='
11589 eval sh -c '\''
11590 if test -d "$1"; then
11591 test -d "$1/.";
11592 else
11593 case $1 in
11594 -*)set "./$1";;
11595 esac;
11596 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11597 ???[sx]*):;;*)false;;esac;fi
11598 '\'' sh
11601 as_executable_p=$as_test_x
11603 # Sed expression to map a string onto a valid CPP name.
11604 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11606 # Sed expression to map a string onto a valid variable name.
11607 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11610 exec 6>&1
11612 # Save the log message, to keep $[0] and so on meaningful, and to
11613 # report actual input values of CONFIG_FILES etc. instead of their
11614 # values after options handling.
11615 ac_log="
11616 This file was extended by $as_me, which was
11617 generated by GNU Autoconf 2.62. Invocation command line was
11619 CONFIG_FILES = $CONFIG_FILES
11620 CONFIG_HEADERS = $CONFIG_HEADERS
11621 CONFIG_LINKS = $CONFIG_LINKS
11622 CONFIG_COMMANDS = $CONFIG_COMMANDS
11623 $ $0 $@
11625 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11628 _ACEOF
11630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11631 # Files that config.status was made for.
11632 config_files="$ac_config_files"
11633 config_headers="$ac_config_headers"
11635 _ACEOF
11637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11638 ac_cs_usage="\
11639 \`$as_me' instantiates files from templates according to the
11640 current configuration.
11642 Usage: $0 [OPTIONS] [FILE]...
11644 -h, --help print this help, then exit
11645 -V, --version print version number and configuration settings, then exit
11646 -q, --quiet do not print progress messages
11647 -d, --debug don't remove temporary files
11648 --recheck update $as_me by reconfiguring in the same conditions
11649 --file=FILE[:TEMPLATE]
11650 instantiate the configuration file FILE
11651 --header=FILE[:TEMPLATE]
11652 instantiate the configuration header FILE
11654 Configuration files:
11655 $config_files
11657 Configuration headers:
11658 $config_headers
11660 Report bugs to <bug-autoconf@gnu.org>."
11662 _ACEOF
11663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11664 ac_cs_version="\\
11665 config.status
11666 configured by $0, generated by GNU Autoconf 2.62,
11667 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11669 Copyright (C) 2008 Free Software Foundation, Inc.
11670 This config.status script is free software; the Free Software Foundation
11671 gives unlimited permission to copy, distribute and modify it."
11673 ac_pwd='$ac_pwd'
11674 srcdir='$srcdir'
11675 INSTALL='$INSTALL'
11676 test -n "\$AWK" || AWK=awk
11677 _ACEOF
11679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11680 # The default lists apply if the user does not specify any file.
11681 ac_need_defaults=:
11682 while test $# != 0
11684 case $1 in
11685 --*=*)
11686 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11687 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11688 ac_shift=:
11691 ac_option=$1
11692 ac_optarg=$2
11693 ac_shift=shift
11695 esac
11697 case $ac_option in
11698 # Handling of the options.
11699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11700 ac_cs_recheck=: ;;
11701 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11702 $as_echo "$ac_cs_version"; exit ;;
11703 --debug | --debu | --deb | --de | --d | -d )
11704 debug=: ;;
11705 --file | --fil | --fi | --f )
11706 $ac_shift
11707 case $ac_optarg in
11708 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11709 esac
11710 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11711 ac_need_defaults=false;;
11712 --header | --heade | --head | --hea )
11713 $ac_shift
11714 case $ac_optarg in
11715 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11716 esac
11717 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11718 ac_need_defaults=false;;
11719 --he | --h)
11720 # Conflict between --help and --header
11721 { $as_echo "$as_me: error: ambiguous option: $1
11722 Try \`$0 --help' for more information." >&2
11723 { (exit 1); exit 1; }; };;
11724 --help | --hel | -h )
11725 $as_echo "$ac_cs_usage"; exit ;;
11726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11727 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11728 ac_cs_silent=: ;;
11730 # This is an error.
11731 -*) { $as_echo "$as_me: error: unrecognized option: $1
11732 Try \`$0 --help' for more information." >&2
11733 { (exit 1); exit 1; }; } ;;
11735 *) ac_config_targets="$ac_config_targets $1"
11736 ac_need_defaults=false ;;
11738 esac
11739 shift
11740 done
11742 ac_configure_extra_args=
11744 if $ac_cs_silent; then
11745 exec 6>/dev/null
11746 ac_configure_extra_args="$ac_configure_extra_args --silent"
11749 _ACEOF
11750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11751 if \$ac_cs_recheck; then
11752 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11753 shift
11754 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11755 CONFIG_SHELL='$SHELL'
11756 export CONFIG_SHELL
11757 exec "\$@"
11760 _ACEOF
11761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11762 exec 5>>config.log
11764 echo
11765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11766 ## Running $as_me. ##
11767 _ASBOX
11768 $as_echo "$ac_log"
11769 } >&5
11771 _ACEOF
11772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11773 _ACEOF
11775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11777 # Handling of arguments.
11778 for ac_config_target in $ac_config_targets
11780 case $ac_config_target in
11781 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11782 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11784 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11785 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11786 { (exit 1); exit 1; }; };;
11787 esac
11788 done
11791 # If the user did not use the arguments to specify the items to instantiate,
11792 # then the envvar interface is used. Set only those that are not.
11793 # We use the long form for the default assignment because of an extremely
11794 # bizarre bug on SunOS 4.1.3.
11795 if $ac_need_defaults; then
11796 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11797 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11800 # Have a temporary directory for convenience. Make it in the build tree
11801 # simply because there is no reason against having it here, and in addition,
11802 # creating and moving files from /tmp can sometimes cause problems.
11803 # Hook for its removal unless debugging.
11804 # Note that there is a small window in which the directory will not be cleaned:
11805 # after its creation but before its name has been assigned to `$tmp'.
11806 $debug ||
11808 tmp=
11809 trap 'exit_status=$?
11810 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11812 trap '{ (exit 1); exit 1; }' 1 2 13 15
11814 # Create a (secure) tmp directory for tmp files.
11817 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11818 test -n "$tmp" && test -d "$tmp"
11819 } ||
11821 tmp=./conf$$-$RANDOM
11822 (umask 077 && mkdir "$tmp")
11823 } ||
11825 $as_echo "$as_me: cannot create a temporary directory in ." >&2
11826 { (exit 1); exit 1; }
11829 # Set up the scripts for CONFIG_FILES section.
11830 # No need to generate them if there are no CONFIG_FILES.
11831 # This happens for instance with `./config.status config.h'.
11832 if test -n "$CONFIG_FILES"; then
11835 ac_cr=' '
11836 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11837 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11838 ac_cs_awk_cr='\\r'
11839 else
11840 ac_cs_awk_cr=$ac_cr
11843 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11844 _ACEOF
11848 echo "cat >conf$$subs.awk <<_ACEOF" &&
11849 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11850 echo "_ACEOF"
11851 } >conf$$subs.sh ||
11852 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11853 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11854 { (exit 1); exit 1; }; }
11855 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11856 ac_delim='%!_!# '
11857 for ac_last_try in false false false false false :; do
11858 . ./conf$$subs.sh ||
11859 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11860 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11861 { (exit 1); exit 1; }; }
11863 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
11864 break
11865 elif $ac_last_try; then
11866 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11867 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11868 { (exit 1); exit 1; }; }
11869 else
11870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11872 done
11873 rm -f conf$$subs.sh
11875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11876 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11877 _ACEOF
11878 sed -n '
11880 s/^/S["/; s/!.*/"]=/
11883 s/^[^!]*!//
11884 :repl
11885 t repl
11886 s/'"$ac_delim"'$//
11887 t delim
11890 s/\(.\{148\}\).*/\1/
11891 t more1
11892 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11895 b repl
11896 :more1
11897 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11900 s/.\{148\}//
11901 t nl
11902 :delim
11904 s/\(.\{148\}\).*/\1/
11905 t more2
11906 s/["\\]/\\&/g; s/^/"/; s/$/"/
11909 :more2
11910 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11913 s/.\{148\}//
11914 t delim
11915 ' <conf$$subs.awk | sed '
11916 /^[^""]/{
11918 s/\n//
11920 ' >>$CONFIG_STATUS || ac_write_fail=1
11921 rm -f conf$$subs.awk
11922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11923 _ACAWK
11924 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11925 for (key in S) S_is_set[key] = 1
11926 FS = "\a"
11930 line = $ 0
11931 nfields = split(line, field, "@")
11932 substed = 0
11933 len = length(field[1])
11934 for (i = 2; i < nfields; i++) {
11935 key = field[i]
11936 keylen = length(key)
11937 if (S_is_set[key]) {
11938 value = S[key]
11939 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11940 len += length(value) + length(field[++i])
11941 substed = 1
11942 } else
11943 len += 1 + keylen
11946 print line
11949 _ACAWK
11950 _ACEOF
11951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11952 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11953 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11954 else
11956 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11957 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11958 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11959 { (exit 1); exit 1; }; }
11960 _ACEOF
11962 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11963 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11964 # trailing colons and then remove the whole line if VPATH becomes empty
11965 # (actually we leave an empty line to preserve line numbers).
11966 if test "x$srcdir" = x.; then
11967 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11968 s/:*\$(srcdir):*/:/
11969 s/:*\${srcdir}:*/:/
11970 s/:*@srcdir@:*/:/
11971 s/^\([^=]*=[ ]*\):*/\1/
11972 s/:*$//
11973 s/^[^=]*=[ ]*$//
11977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11978 fi # test -n "$CONFIG_FILES"
11980 # Set up the scripts for CONFIG_HEADERS section.
11981 # No need to generate them if there are no CONFIG_HEADERS.
11982 # This happens for instance with `./config.status Makefile'.
11983 if test -n "$CONFIG_HEADERS"; then
11984 cat >"$tmp/defines.awk" <<\_ACAWK ||
11985 BEGIN {
11986 _ACEOF
11988 # Transform confdefs.h into an awk script `defines.awk', embedded as
11989 # here-document in config.status, that substitutes the proper values into
11990 # config.h.in to produce config.h.
11992 # Create a delimiter string that does not exist in confdefs.h, to ease
11993 # handling of long lines.
11994 ac_delim='%!_!# '
11995 for ac_last_try in false false :; do
11996 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11997 if test -z "$ac_t"; then
11998 break
11999 elif $ac_last_try; then
12000 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12001 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12002 { (exit 1); exit 1; }; }
12003 else
12004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12006 done
12008 # For the awk script, D is an array of macro values keyed by name,
12009 # likewise P contains macro parameters if any. Preserve backslash
12010 # newline sequences.
12012 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12013 sed -n '
12014 s/.\{148\}/&'"$ac_delim"'/g
12015 t rset
12016 :rset
12017 s/^[ ]*#[ ]*define[ ][ ]*/ /
12018 t def
12020 :def
12021 s/\\$//
12022 t bsnl
12023 s/["\\]/\\&/g
12024 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12025 D["\1"]=" \3"/p
12026 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12028 :bsnl
12029 s/["\\]/\\&/g
12030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12031 D["\1"]=" \3\\\\\\n"\\/p
12032 t cont
12033 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12034 t cont
12036 :cont
12038 s/.\{148\}/&'"$ac_delim"'/g
12039 t clear
12040 :clear
12041 s/\\$//
12042 t bsnlc
12043 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12045 :bsnlc
12046 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12047 b cont
12048 ' <confdefs.h | sed '
12049 s/'"$ac_delim"'/"\\\
12050 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12053 for (key in D) D_is_set[key] = 1
12054 FS = "\a"
12056 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12057 line = \$ 0
12058 split(line, arg, " ")
12059 if (arg[1] == "#") {
12060 defundef = arg[2]
12061 mac1 = arg[3]
12062 } else {
12063 defundef = substr(arg[1], 2)
12064 mac1 = arg[2]
12066 split(mac1, mac2, "(") #)
12067 macro = mac2[1]
12068 if (D_is_set[macro]) {
12069 # Preserve the white space surrounding the "#".
12070 prefix = substr(line, 1, index(line, defundef) - 1)
12071 print prefix "define", macro P[macro] D[macro]
12072 next
12073 } else {
12074 # Replace #undef with comments. This is necessary, for example,
12075 # in the case of _POSIX_SOURCE, which is predefined and required
12076 # on some systems where configure will not decide to define it.
12077 if (defundef == "undef") {
12078 print "/*", line, "*/"
12079 next
12083 { print }
12084 _ACAWK
12085 _ACEOF
12086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12087 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12088 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12089 { (exit 1); exit 1; }; }
12090 fi # test -n "$CONFIG_HEADERS"
12093 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
12094 shift
12095 for ac_tag
12097 case $ac_tag in
12098 :[FHLC]) ac_mode=$ac_tag; continue;;
12099 esac
12100 case $ac_mode$ac_tag in
12101 :[FHL]*:*);;
12102 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12103 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12104 { (exit 1); exit 1; }; };;
12105 :[FH]-) ac_tag=-:-;;
12106 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12107 esac
12108 ac_save_IFS=$IFS
12109 IFS=:
12110 set x $ac_tag
12111 IFS=$ac_save_IFS
12112 shift
12113 ac_file=$1
12114 shift
12116 case $ac_mode in
12117 :L) ac_source=$1;;
12118 :[FH])
12119 ac_file_inputs=
12120 for ac_f
12122 case $ac_f in
12123 -) ac_f="$tmp/stdin";;
12124 *) # Look for the file first in the build tree, then in the source tree
12125 # (if the path is not absolute). The absolute path cannot be DOS-style,
12126 # because $ac_f cannot contain `:'.
12127 test -f "$ac_f" ||
12128 case $ac_f in
12129 [\\/$]*) false;;
12130 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12131 esac ||
12132 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12133 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12134 { (exit 1); exit 1; }; };;
12135 esac
12136 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12137 ac_file_inputs="$ac_file_inputs '$ac_f'"
12138 done
12140 # Let's still pretend it is `configure' which instantiates (i.e., don't
12141 # use $as_me), people would be surprised to read:
12142 # /* config.h. Generated by config.status. */
12143 configure_input='Generated from '`
12144 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12145 `' by configure.'
12146 if test x"$ac_file" != x-; then
12147 configure_input="$ac_file. $configure_input"
12148 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12149 $as_echo "$as_me: creating $ac_file" >&6;}
12151 # Neutralize special characters interpreted by sed in replacement strings.
12152 case $configure_input in #(
12153 *\&* | *\|* | *\\* )
12154 ac_sed_conf_input=`$as_echo "$configure_input" |
12155 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12156 *) ac_sed_conf_input=$configure_input;;
12157 esac
12159 case $ac_tag in
12160 *:-:* | *:-) cat >"$tmp/stdin" \
12161 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12162 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12163 { (exit 1); exit 1; }; } ;;
12164 esac
12166 esac
12168 ac_dir=`$as_dirname -- "$ac_file" ||
12169 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12170 X"$ac_file" : 'X\(//\)[^/]' \| \
12171 X"$ac_file" : 'X\(//\)$' \| \
12172 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12173 $as_echo X"$ac_file" |
12174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12175 s//\1/
12178 /^X\(\/\/\)[^/].*/{
12179 s//\1/
12182 /^X\(\/\/\)$/{
12183 s//\1/
12186 /^X\(\/\).*/{
12187 s//\1/
12190 s/.*/./; q'`
12191 { as_dir="$ac_dir"
12192 case $as_dir in #(
12193 -*) as_dir=./$as_dir;;
12194 esac
12195 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12196 as_dirs=
12197 while :; do
12198 case $as_dir in #(
12199 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12200 *) as_qdir=$as_dir;;
12201 esac
12202 as_dirs="'$as_qdir' $as_dirs"
12203 as_dir=`$as_dirname -- "$as_dir" ||
12204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12205 X"$as_dir" : 'X\(//\)[^/]' \| \
12206 X"$as_dir" : 'X\(//\)$' \| \
12207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12208 $as_echo X"$as_dir" |
12209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12210 s//\1/
12213 /^X\(\/\/\)[^/].*/{
12214 s//\1/
12217 /^X\(\/\/\)$/{
12218 s//\1/
12221 /^X\(\/\).*/{
12222 s//\1/
12225 s/.*/./; q'`
12226 test -d "$as_dir" && break
12227 done
12228 test -z "$as_dirs" || eval "mkdir $as_dirs"
12229 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12230 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12231 { (exit 1); exit 1; }; }; }
12232 ac_builddir=.
12234 case "$ac_dir" in
12235 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12237 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12238 # A ".." for each directory in $ac_dir_suffix.
12239 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12240 case $ac_top_builddir_sub in
12241 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12242 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12243 esac ;;
12244 esac
12245 ac_abs_top_builddir=$ac_pwd
12246 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12247 # for backward compatibility:
12248 ac_top_builddir=$ac_top_build_prefix
12250 case $srcdir in
12251 .) # We are building in place.
12252 ac_srcdir=.
12253 ac_top_srcdir=$ac_top_builddir_sub
12254 ac_abs_top_srcdir=$ac_pwd ;;
12255 [\\/]* | ?:[\\/]* ) # Absolute name.
12256 ac_srcdir=$srcdir$ac_dir_suffix;
12257 ac_top_srcdir=$srcdir
12258 ac_abs_top_srcdir=$srcdir ;;
12259 *) # Relative name.
12260 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12261 ac_top_srcdir=$ac_top_build_prefix$srcdir
12262 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12263 esac
12264 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12267 case $ac_mode in
12270 # CONFIG_FILE
12273 case $INSTALL in
12274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12275 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12276 esac
12277 _ACEOF
12279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12280 # If the template does not know about datarootdir, expand it.
12281 # FIXME: This hack should be removed a few years after 2.60.
12282 ac_datarootdir_hack=; ac_datarootdir_seen=
12284 ac_sed_dataroot='
12285 /datarootdir/ {
12289 /@datadir@/p
12290 /@docdir@/p
12291 /@infodir@/p
12292 /@localedir@/p
12293 /@mandir@/p
12295 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12296 *datarootdir*) ac_datarootdir_seen=yes;;
12297 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12298 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12299 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12300 _ACEOF
12301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12302 ac_datarootdir_hack='
12303 s&@datadir@&$datadir&g
12304 s&@docdir@&$docdir&g
12305 s&@infodir@&$infodir&g
12306 s&@localedir@&$localedir&g
12307 s&@mandir@&$mandir&g
12308 s&\\\${datarootdir}&$datarootdir&g' ;;
12309 esac
12310 _ACEOF
12312 # Neutralize VPATH when `$srcdir' = `.'.
12313 # Shell code in configure.ac might set extrasub.
12314 # FIXME: do we really want to maintain this feature?
12315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12316 ac_sed_extra="$ac_vpsub
12317 $extrasub
12318 _ACEOF
12319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12322 s|@configure_input@|$ac_sed_conf_input|;t t
12323 s&@top_builddir@&$ac_top_builddir_sub&;t t
12324 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12325 s&@srcdir@&$ac_srcdir&;t t
12326 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12327 s&@top_srcdir@&$ac_top_srcdir&;t t
12328 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12329 s&@builddir@&$ac_builddir&;t t
12330 s&@abs_builddir@&$ac_abs_builddir&;t t
12331 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12332 s&@INSTALL@&$ac_INSTALL&;t t
12333 $ac_datarootdir_hack
12335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12336 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12337 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12338 { (exit 1); exit 1; }; }
12340 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12341 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12343 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12344 which seems to be undefined. Please make sure it is defined." >&5
12345 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12346 which seems to be undefined. Please make sure it is defined." >&2;}
12348 rm -f "$tmp/stdin"
12349 case $ac_file in
12350 -) cat "$tmp/out" && rm -f "$tmp/out";;
12351 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12352 esac \
12353 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12354 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12355 { (exit 1); exit 1; }; }
12359 # CONFIG_HEADER
12361 if test x"$ac_file" != x-; then
12363 $as_echo "/* $configure_input */" \
12364 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12365 } >"$tmp/config.h" \
12366 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12367 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12368 { (exit 1); exit 1; }; }
12369 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12370 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12371 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12372 else
12373 rm -f "$ac_file"
12374 mv "$tmp/config.h" "$ac_file" \
12375 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12376 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12377 { (exit 1); exit 1; }; }
12379 else
12380 $as_echo "/* $configure_input */" \
12381 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12382 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12383 $as_echo "$as_me: error: could not create -" >&2;}
12384 { (exit 1); exit 1; }; }
12389 esac
12391 done # for ac_tag
12394 { (exit 0); exit 0; }
12395 _ACEOF
12396 chmod +x $CONFIG_STATUS
12397 ac_clean_files=$ac_clean_files_save
12399 test $ac_write_fail = 0 ||
12400 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
12401 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
12402 { (exit 1); exit 1; }; }
12405 # configure is writing to config.log, and then calls config.status.
12406 # config.status does its own redirection, appending to config.log.
12407 # Unfortunately, on DOS this fails, as config.log is still kept open
12408 # by configure, so config.status won't be able to write to it; its
12409 # output is simply discarded. So we exec the FD to /dev/null,
12410 # effectively closing config.log, so it can be properly (re)opened and
12411 # appended to by config.status. When coming back to configure, we
12412 # need to make the FD available again.
12413 if test "$no_create" != yes; then
12414 ac_cs_success=:
12415 ac_config_status_args=
12416 test "$silent" = yes &&
12417 ac_config_status_args="$ac_config_status_args --quiet"
12418 exec 5>/dev/null
12419 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12420 exec 5>>config.log
12421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12422 # would make configure fail if this is the last instruction.
12423 $ac_cs_success || { (exit 1); exit 1; }
12425 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12426 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
12427 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
12433 # On development trees, create snapshots of config.status
12435 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
12436 if test "x${MINGW}" = "xyes"; then
12437 echo cp config.status config.status.win32
12438 cp config.status config.status.win32
12439 else
12440 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
12441 echo cp config.status config.status.linux
12442 cp config.status config.status.linux
12444 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
12445 echo cp config.status config.status.debug
12446 cp config.status config.status.debug
12448 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
12449 echo cp config.status config.status.optimize
12450 cp config.status config.status.optimize