2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="src/"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
713 ac_precious_vars='build_alias
727 # Initialize some variables set by options.
729 ac_init_version=false
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
739 program_transform_name=s,x,x,
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE}'
764 infodir='${datarootdir}/info'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
779 eval $ac_prev=\$ac_option
785 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
789 # Accept the important Cygnus configure options, so we can diagnose typos.
791 case $ac_dashdash$ac_option in
795 -bindir | --bindir | --bindi | --bind | --bin | --bi)
797 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
800 -build | --build | --buil | --bui | --bu)
801 ac_prev=build_alias ;;
802 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803 build_alias=$ac_optarg ;;
805 -cache-file | --cache-file | --cache-fil | --cache-fi \
806 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807 ac_prev=cache_file ;;
808 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810 cache_file=$ac_optarg ;;
813 cache_file=config.cache ;;
815 -datadir | --datadir | --datadi | --datad)
817 -datadir=* | --datadir=* | --datadi=* | --datad=*)
818 datadir=$ac_optarg ;;
820 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821 | --dataroo | --dataro | --datar)
822 ac_prev=datarootdir ;;
823 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825 datarootdir=$ac_optarg ;;
827 -disable-* | --disable-*)
828 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
831 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
832 { (exit 1); exit 1; }; }
833 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
834 eval enable_$ac_feature=no ;;
836 -docdir | --docdir | --docdi | --doc | --do)
838 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
841 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
843 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
846 -enable-* | --enable-*)
847 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
848 # Reject names that are not valid shell variable names.
849 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
850 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
851 { (exit 1); exit 1; }; }
852 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
853 eval enable_$ac_feature=\$ac_optarg ;;
855 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
856 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
857 | --exec | --exe | --ex)
858 ac_prev=exec_prefix ;;
859 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
860 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
861 | --exec=* | --exe=* | --ex=*)
862 exec_prefix=$ac_optarg ;;
864 -gas | --gas | --ga | --g)
865 # Obsolete; use --with-gas.
868 -help | --help | --hel | --he | -h)
870 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
871 ac_init_help=recursive ;;
872 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
873 ac_init_help=short ;;
875 -host | --host | --hos | --ho)
876 ac_prev=host_alias ;;
877 -host=* | --host=* | --hos=* | --ho=*)
878 host_alias=$ac_optarg ;;
880 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
882 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
884 htmldir=$ac_optarg ;;
886 -includedir | --includedir | --includedi | --included | --include \
887 | --includ | --inclu | --incl | --inc)
888 ac_prev=includedir ;;
889 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
890 | --includ=* | --inclu=* | --incl=* | --inc=*)
891 includedir=$ac_optarg ;;
893 -infodir | --infodir | --infodi | --infod | --info | --inf)
895 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
896 infodir=$ac_optarg ;;
898 -libdir | --libdir | --libdi | --libd)
900 -libdir=* | --libdir=* | --libdi=* | --libd=*)
903 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
904 | --libexe | --libex | --libe)
905 ac_prev=libexecdir ;;
906 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
907 | --libexe=* | --libex=* | --libe=*)
908 libexecdir=$ac_optarg ;;
910 -localedir | --localedir | --localedi | --localed | --locale)
912 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
913 localedir=$ac_optarg ;;
915 -localstatedir | --localstatedir | --localstatedi | --localstated \
916 | --localstate | --localstat | --localsta | --localst | --locals)
917 ac_prev=localstatedir ;;
918 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
919 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
920 localstatedir=$ac_optarg ;;
922 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
924 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
928 # Obsolete; use --without-fp.
931 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
932 | --no-cr | --no-c | -n)
935 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
939 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
940 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
941 | --oldin | --oldi | --old | --ol | --o)
942 ac_prev=oldincludedir ;;
943 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
944 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
945 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
946 oldincludedir=$ac_optarg ;;
948 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
950 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
953 -program-prefix | --program-prefix | --program-prefi | --program-pref \
954 | --program-pre | --program-pr | --program-p)
955 ac_prev=program_prefix ;;
956 -program-prefix=* | --program-prefix=* | --program-prefi=* \
957 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
958 program_prefix=$ac_optarg ;;
960 -program-suffix | --program-suffix | --program-suffi | --program-suff \
961 | --program-suf | --program-su | --program-s)
962 ac_prev=program_suffix ;;
963 -program-suffix=* | --program-suffix=* | --program-suffi=* \
964 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
965 program_suffix=$ac_optarg ;;
967 -program-transform-name | --program-transform-name \
968 | --program-transform-nam | --program-transform-na \
969 | --program-transform-n | --program-transform- \
970 | --program-transform | --program-transfor \
971 | --program-transfo | --program-transf \
972 | --program-trans | --program-tran \
973 | --progr-tra | --program-tr | --program-t)
974 ac_prev=program_transform_name ;;
975 -program-transform-name=* | --program-transform-name=* \
976 | --program-transform-nam=* | --program-transform-na=* \
977 | --program-transform-n=* | --program-transform-=* \
978 | --program-transform=* | --program-transfor=* \
979 | --program-transfo=* | --program-transf=* \
980 | --program-trans=* | --program-tran=* \
981 | --progr-tra=* | --program-tr=* | --program-t=*)
982 program_transform_name=$ac_optarg ;;
984 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
986 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
989 -psdir | --psdir | --psdi | --psd | --ps)
991 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
995 | -silent | --silent | --silen | --sile | --sil)
998 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1000 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1002 sbindir=$ac_optarg ;;
1004 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1005 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1006 | --sharedst | --shareds | --shared | --share | --shar \
1008 ac_prev=sharedstatedir ;;
1009 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1010 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1011 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1013 sharedstatedir=$ac_optarg ;;
1015 -site | --site | --sit)
1017 -site=* | --site=* | --sit=*)
1020 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1022 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1023 srcdir=$ac_optarg ;;
1025 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1026 | --syscon | --sysco | --sysc | --sys | --sy)
1027 ac_prev=sysconfdir ;;
1028 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1029 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1030 sysconfdir=$ac_optarg ;;
1032 -target | --target | --targe | --targ | --tar | --ta | --t)
1033 ac_prev=target_alias ;;
1034 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1035 target_alias=$ac_optarg ;;
1037 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1040 -version | --version | --versio | --versi | --vers | -V)
1041 ac_init_version=: ;;
1044 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid package name: $ac_package" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1050 eval with_$ac_package=\$ac_optarg ;;
1052 -without-* | --without-*)
1053 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid package name: $ac_package" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1059 eval with_$ac_package=no ;;
1062 # Obsolete; use --with-x.
1065 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1066 | --x-incl | --x-inc | --x-in | --x-i)
1067 ac_prev=x_includes ;;
1068 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1069 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1070 x_includes=$ac_optarg ;;
1072 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1073 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1074 ac_prev=x_libraries ;;
1075 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1076 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1077 x_libraries=$ac_optarg ;;
1079 -*) { echo "$as_me: error: unrecognized option: $ac_option
1080 Try \`$0 --help' for more information." >&2
1081 { (exit 1); exit 1; }; }
1085 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1089 { (exit 1); exit 1; }; }
1090 eval $ac_envvar=\$ac_optarg
1091 export $ac_envvar ;;
1094 # FIXME: should be removed in autoconf 3.0.
1095 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1096 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1098 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1104 if test -n "$ac_prev"; then
1105 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1106 { echo "$as_me: error: missing argument to $ac_option" >&2
1107 { (exit 1); exit 1; }; }
1110 # Be sure to have absolute directory names.
1111 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1112 datadir sysconfdir sharedstatedir localstatedir includedir \
1113 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1114 libdir localedir mandir
1116 eval ac_val=\$$ac_var
1118 [\\/$]* | ?:[\\/]* ) continue;;
1119 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1121 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1122 { (exit 1); exit 1; }; }
1125 # There might be people who depend on the old broken behavior: `$host'
1126 # used to hold the argument of --host etc.
1127 # FIXME: To remove some day.
1130 target=$target_alias
1132 # FIXME: To remove some day.
1133 if test "x$host_alias" != x; then
1134 if test "x$build_alias" = x; then
1135 cross_compiling=maybe
1136 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1137 If a cross compiler is detected then cross compile mode will be used." >&2
1138 elif test "x$build_alias" != "x$host_alias"; then
1144 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1146 test "$silent" = yes && exec 6>/dev/null
1149 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1150 ac_ls_di=`ls -di .` &&
1151 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1152 { echo "$as_me: error: Working directory cannot be determined" >&2
1153 { (exit 1); exit 1; }; }
1154 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155 { echo "$as_me: error: pwd does not report name of working directory" >&2
1156 { (exit 1); exit 1; }; }
1159 # Find the source files, if location was not specified.
1160 if test -z "$srcdir"; then
1161 ac_srcdir_defaulted=yes
1162 # Try the directory containing this script, then the parent directory.
1163 ac_confdir=`$as_dirname -- "$0" ||
1164 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165 X"$0" : 'X\(//\)[^/]' \| \
1166 X"$0" : 'X\(//\)$' \| \
1167 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 if test ! -r "$srcdir/$ac_unique_file"; then
1191 ac_srcdir_defaulted=no
1193 if test ! -r "$srcdir/$ac_unique_file"; then
1194 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1196 { (exit 1); exit 1; }; }
1198 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1200 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1201 { (exit 1); exit 1; }; }
1203 # When building in place, set srcdir=.
1204 if test "$ac_abs_confdir" = "$ac_pwd"; then
1207 # Remove unnecessary trailing slashes from srcdir.
1208 # Double slashes in file names in object file debugging info
1209 # mess up M-x gdb in Emacs.
1211 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1213 for ac_var in $ac_precious_vars; do
1214 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1215 eval ac_env_${ac_var}_value=\$${ac_var}
1216 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1217 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1221 # Report the --help message.
1223 if test "$ac_init_help" = "long"; then
1224 # Omit some internal or obsolete options to make the list less imposing.
1225 # This message is too long to be a string in the A/UX 3.1 sh.
1227 \`configure' configures this package to adapt to many kinds of systems.
1229 Usage: $0 [OPTION]... [VAR=VALUE]...
1231 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232 VAR=VALUE. See below for descriptions of some of the useful variables.
1234 Defaults for the options are specified in brackets.
1237 -h, --help display this help and exit
1238 --help=short display options specific to this package
1239 --help=recursive display the short help of all the included packages
1240 -V, --version display version information and exit
1241 -q, --quiet, --silent do not print \`checking...' messages
1242 --cache-file=FILE cache test results in FILE [disabled]
1243 -C, --config-cache alias for \`--cache-file=config.cache'
1244 -n, --no-create do not create output files
1245 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1247 Installation directories:
1248 --prefix=PREFIX install architecture-independent files in PREFIX
1249 [$ac_default_prefix]
1250 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1253 By default, \`make install' will install all the files in
1254 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1255 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256 for instance \`--prefix=\$HOME'.
1258 For better control, use the options below.
1260 Fine tuning of the installation directories:
1261 --bindir=DIR user executables [EPREFIX/bin]
1262 --sbindir=DIR system admin executables [EPREFIX/sbin]
1263 --libexecdir=DIR program executables [EPREFIX/libexec]
1264 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1265 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1266 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1267 --libdir=DIR object code libraries [EPREFIX/lib]
1268 --includedir=DIR C header files [PREFIX/include]
1269 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1270 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1271 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1272 --infodir=DIR info documentation [DATAROOTDIR/info]
1273 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1274 --mandir=DIR man documentation [DATAROOTDIR/man]
1275 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1276 --htmldir=DIR html documentation [DOCDIR]
1277 --dvidir=DIR dvi documentation [DOCDIR]
1278 --pdfdir=DIR pdf documentation [DOCDIR]
1279 --psdir=DIR ps documentation [DOCDIR]
1285 --program-prefix=PREFIX prepend PREFIX to installed program names
1286 --program-suffix=SUFFIX append SUFFIX to installed program names
1287 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1290 --build=BUILD configure for building on BUILD [guessed]
1291 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1292 --target=TARGET configure for building compilers for TARGET [HOST]
1296 if test -n "$ac_init_help"; then
1301 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1302 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1303 --enable-checkmem turn on ccmalloc debugging
1304 --enable-debug turn on debugging
1305 --enable-profiling turn on profiling
1306 --enable-warnings turn on compiler warnings
1307 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1308 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1310 Some influential environment variables:
1311 CC C compiler command
1312 CFLAGS C compiler flags
1313 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1314 nonstandard directory <lib dir>
1315 LIBS libraries to pass to the linker, e.g. -l<library>
1316 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1317 you have headers in a nonstandard directory <include dir>
1318 CXX C++ compiler command
1319 CXXFLAGS C++ compiler flags
1322 Use these variables to override the choices made by `configure' or to help
1323 it to find libraries and programs with nonstandard names/locations.
1329 if test "$ac_init_help" = "recursive"; then
1330 # If there are subdirs, report their specific --help.
1331 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1332 test -d "$ac_dir" || continue
1336 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1338 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1339 # A ".." for each directory in $ac_dir_suffix.
1340 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1341 case $ac_top_builddir_sub in
1342 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1346 ac_abs_top_builddir=$ac_pwd
1347 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1348 # for backward compatibility:
1349 ac_top_builddir=$ac_top_build_prefix
1352 .) # We are building in place.
1354 ac_top_srcdir=$ac_top_builddir_sub
1355 ac_abs_top_srcdir=$ac_pwd ;;
1356 [\\/]* | ?:[\\/]* ) # Absolute name.
1357 ac_srcdir=$srcdir$ac_dir_suffix;
1358 ac_top_srcdir=$srcdir
1359 ac_abs_top_srcdir=$srcdir ;;
1361 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1362 ac_top_srcdir=$ac_top_build_prefix$srcdir
1363 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1365 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1367 cd "$ac_dir" || { ac_status=$?; continue; }
1368 # Check for guested configure.
1369 if test -f "$ac_srcdir/configure.gnu"; then
1371 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1372 elif test -f "$ac_srcdir/configure"; then
1374 $SHELL "$ac_srcdir/configure" --help=recursive
1376 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1378 cd "$ac_pwd" || { ac_status=$?; break; }
1382 test -n "$ac_init_help" && exit $ac_status
1383 if $ac_init_version; then
1386 generated by GNU Autoconf 2.61
1388 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1389 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1390 This configure script is free software; the Free Software Foundation
1391 gives unlimited permission to copy, distribute and modify it.
1395 cat >config.log <<_ACEOF
1396 This file contains any messages produced by compilers while
1397 running configure, to aid debugging if configure makes a mistake.
1399 It was created by $as_me, which was
1400 generated by GNU Autoconf 2.61. Invocation command line was
1412 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1413 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1414 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1415 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1416 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1418 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1419 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1421 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1422 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1423 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1424 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1425 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1426 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1427 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 test -z "$as_dir" && as_dir=.
1436 echo "PATH: $as_dir"
1452 # Keep a trace of the command line.
1453 # Strip out --no-create and --no-recursion so they do not pile up.
1454 # Strip out --silent because we don't want to record it for future runs.
1455 # Also quote any args containing shell meta-characters.
1456 # Make two passes to allow for proper duplicate-argument suppression.
1460 ac_must_keep_next=false
1466 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1468 | -silent | --silent | --silen | --sile | --sil)
1471 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1474 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1476 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1477 if test $ac_must_keep_next = true; then
1478 ac_must_keep_next=false # Got value, back to normal.
1481 *=* | --config-cache | -C | -disable-* | --disable-* \
1482 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1483 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1484 | -with-* | --with-* | -without-* | --without-* | --x)
1485 case "$ac_configure_args0 " in
1486 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1489 -* ) ac_must_keep_next=true ;;
1492 ac_configure_args="$ac_configure_args '$ac_arg'"
1497 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1498 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1500 # When interrupted or exit'd, cleanup temporary files, and complete
1501 # config.log. We remove comments because anyway the quotes in there
1502 # would cause problems or look ugly.
1503 # WARNING: Use '\'' to represent an apostrophe within the trap.
1504 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1505 trap 'exit_status=$?
1506 # Save into config.log some information that might help in debugging.
1511 ## ---------------- ##
1512 ## Cache variables. ##
1513 ## ---------------- ##
1516 # The following way of writing the cache mishandles newlines in values,
1518 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1519 eval ac_val=\$$ac_var
1523 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1524 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1527 _ | IFS | as_nl) ;; #(
1528 *) $as_unset $ac_var ;;
1533 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1534 *${as_nl}ac_space=\ *)
1536 "s/'\''/'\''\\\\'\'''\''/g;
1537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1548 ## ----------------- ##
1549 ## Output variables. ##
1550 ## ----------------- ##
1553 for ac_var in $ac_subst_vars
1555 eval ac_val=\$$ac_var
1557 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1559 echo "$ac_var='\''$ac_val'\''"
1563 if test -n "$ac_subst_files"; then
1565 ## ------------------- ##
1566 ## File substitutions. ##
1567 ## ------------------- ##
1570 for ac_var in $ac_subst_files
1572 eval ac_val=\$$ac_var
1574 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1576 echo "$ac_var='\''$ac_val'\''"
1581 if test -s confdefs.h; then
1591 test "$ac_signal" != 0 &&
1592 echo "$as_me: caught signal $ac_signal"
1593 echo "$as_me: exit $exit_status"
1595 rm -f core *.core core.conftest.* &&
1596 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1599 for ac_signal in 1 2 13 15; do
1600 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1604 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1605 rm -f -r conftest* confdefs.h
1607 # Predefined preprocessor variables.
1609 cat >>confdefs.h <<_ACEOF
1610 #define PACKAGE_NAME "$PACKAGE_NAME"
1614 cat >>confdefs.h <<_ACEOF
1615 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1619 cat >>confdefs.h <<_ACEOF
1620 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1624 cat >>confdefs.h <<_ACEOF
1625 #define PACKAGE_STRING "$PACKAGE_STRING"
1629 cat >>confdefs.h <<_ACEOF
1630 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1634 # Let the site file select an alternate cache file if it wants to.
1635 # Prefer explicitly selected file to automatically selected ones.
1636 if test -n "$CONFIG_SITE"; then
1637 set x "$CONFIG_SITE"
1638 elif test "x$prefix" != xNONE; then
1639 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1641 set x "$ac_default_prefix/share/config.site" \
1642 "$ac_default_prefix/etc/config.site"
1647 if test -r "$ac_site_file"; then
1648 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1649 echo "$as_me: loading site script $ac_site_file" >&6;}
1650 sed 's/^/| /' "$ac_site_file" >&5
1655 if test -r "$cache_file"; then
1656 # Some versions of bash will fail to source /dev/null (special
1657 # files actually), so we avoid doing that.
1658 if test -f "$cache_file"; then
1659 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1660 echo "$as_me: loading cache $cache_file" >&6;}
1662 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1663 *) . "./$cache_file";;
1667 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1668 echo "$as_me: creating cache $cache_file" >&6;}
1672 # Check that the precious variables saved in the cache have kept the same
1674 ac_cache_corrupted=false
1675 for ac_var in $ac_precious_vars; do
1676 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1677 eval ac_new_set=\$ac_env_${ac_var}_set
1678 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1679 eval ac_new_val=\$ac_env_${ac_var}_value
1680 case $ac_old_set,$ac_new_set in
1682 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1683 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1684 ac_cache_corrupted=: ;;
1686 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1687 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1688 ac_cache_corrupted=: ;;
1691 if test "x$ac_old_val" != "x$ac_new_val"; then
1692 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1693 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1694 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1695 echo "$as_me: former value: $ac_old_val" >&2;}
1696 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1697 echo "$as_me: current value: $ac_new_val" >&2;}
1698 ac_cache_corrupted=:
1701 # Pass precious variables to config.status.
1702 if test "$ac_new_set" = set; then
1704 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1705 *) ac_arg=$ac_var=$ac_new_val ;;
1707 case " $ac_configure_args " in
1708 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1709 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1713 if $ac_cache_corrupted; then
1714 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1715 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1716 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1717 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1718 { (exit 1); exit 1; }; }
1738 ac_cpp='$CPP $CPPFLAGS'
1739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1746 # Check whether --enable-checkmem was given.
1747 if test "${enable_checkmem+set}" = set; then
1748 enableval=$enable_checkmem; CHECKMEM=true
1751 # Check whether --enable-debug was given.
1752 if test "${enable_debug+set}" = set; then
1753 enableval=$enable_debug; DEBUG=true
1756 # Check whether --enable-profiling was given.
1757 if test "${enable_profiling+set}" = set; then
1758 enableval=$enable_profiling; PROFILING=true
1761 # Check whether --enable-warnings was given.
1762 if test "${enable_warnings+set}" = set; then
1763 enableval=$enable_warnings; ENABLE_WARNINGS=true
1766 # Check whether --enable-optimizations was given.
1767 if test "${enable_optimizations+set}" = set; then
1768 enableval=$enable_optimizations; OPTIMIZE=true
1771 # Check whether --enable-lame was given.
1772 if test "${enable_lame+set}" = set; then
1773 enableval=$enable_lame; DISABLE_LAME=true
1778 VERSION=2008-03-26-1351
1781 # ------------------------------------------------------------------
1783 if test "x${srcdir}" != "x."; then
1784 echo "--srcdir is not supported"
1788 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1789 if test "x$ENABLE_WARNINGS" '!=' "x";then
1790 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1793 if test "x$CHECKMEM" '!=' "x";then
1796 if test "x$PROFILING" '!=' "x";then
1799 if test "x$DEBUG" '!=' "x";then
1800 if test "x$PROFILING" = "x";then
1801 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1802 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1805 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1806 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1807 LDFLAGS="-g -pg $LIBS"
1809 else if test "x$OPTIMIZE" '!=' "x"; then
1810 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1811 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1813 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1814 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1818 CFLAGS="-fPIC $CFLAGS"
1819 CXXFLAGS="-fPIC $CFLAGS"
1822 #if test "x$OLDGCC" '!=' "x";then
1823 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1824 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1825 # CFLAGS="$CFLAGS -ansi -pendantic"
1826 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1829 export PACKAGE VERSION CFLAGS CXXFLAGS
1833 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1834 if test -f "$ac_dir/install-sh"; then
1836 ac_install_sh="$ac_aux_dir/install-sh -c"
1838 elif test -f "$ac_dir/install.sh"; then
1840 ac_install_sh="$ac_aux_dir/install.sh -c"
1842 elif test -f "$ac_dir/shtool"; then
1844 ac_install_sh="$ac_aux_dir/shtool install -c"
1848 if test -z "$ac_aux_dir"; then
1849 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1850 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1851 { (exit 1); exit 1; }; }
1854 # These three variables are undocumented and unsupported,
1855 # and are intended to be withdrawn in a future Autoconf release.
1856 # They can cause serious problems if a builder's source tree is in a directory
1857 # whose full name contains unusual characters.
1858 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1859 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1860 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1863 # Make sure we can run config.sub.
1864 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1865 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1866 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1867 { (exit 1); exit 1; }; }
1869 { echo "$as_me:$LINENO: checking build system type" >&5
1870 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1871 if test "${ac_cv_build+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 ac_build_alias=$build_alias
1875 test "x$ac_build_alias" = x &&
1876 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1877 test "x$ac_build_alias" = x &&
1878 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1879 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1880 { (exit 1); exit 1; }; }
1881 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1882 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1883 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1884 { (exit 1); exit 1; }; }
1887 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1888 echo "${ECHO_T}$ac_cv_build" >&6; }
1889 case $ac_cv_build in
1891 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1892 echo "$as_me: error: invalid value of canonical build" >&2;}
1893 { (exit 1); exit 1; }; };;
1896 ac_save_IFS=$IFS; IFS='-'
1902 # Remember, the first character of IFS is used to create $*,
1903 # except with old shells:
1906 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1909 { echo "$as_me:$LINENO: checking host system type" >&5
1910 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1911 if test "${ac_cv_host+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 if test "x$host_alias" = x; then
1915 ac_cv_host=$ac_cv_build
1917 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1918 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1919 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1920 { (exit 1); exit 1; }; }
1924 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1925 echo "${ECHO_T}$ac_cv_host" >&6; }
1928 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1929 echo "$as_me: error: invalid value of canonical host" >&2;}
1930 { (exit 1); exit 1; }; };;
1933 ac_save_IFS=$IFS; IFS='-'
1939 # Remember, the first character of IFS is used to create $*,
1940 # except with old shells:
1943 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1953 CXXFLAGS="$CXXFLAGS -fno-rtti"
1955 # Use fink packages if available.
1956 #if test -d /sw/include && test -d /sw/lib; then
1957 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
1958 # LDFLAGS="${LDFLAGS} -L/sw/lib"
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970 if test -n "$ac_tool_prefix"; then
1971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1972 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test -n "$CC"; then
1979 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1988 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test -n "$CC"; then
2000 { echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6; }
2003 { echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6; }
2009 if test -z "$ac_cv_prog_CC"; then
2011 # Extract the first word of "gcc", so it can be a program name with args.
2012 set dummy gcc; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_ac_ct_CC="gcc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2047 if test "x$ac_ct_CC" = x; then
2050 case $cross_compiling:$ac_tool_warned in
2052 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2053 whose name does not start with the host triplet. If you think this
2054 configuration is useful to you, please write to autoconf@gnu.org." >&5
2055 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2056 whose name does not start with the host triplet. If you think this
2057 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2058 ac_tool_warned=yes ;;
2066 if test -z "$CC"; then
2067 if test -n "$ac_tool_prefix"; then
2068 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}cc; ac_word=$2
2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$CC"; then
2076 ac_cv_prog_CC="$CC" # Let the user override the test.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085 ac_cv_prog_CC="${ac_tool_prefix}cc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 if test -n "$CC"; then
2097 { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2107 if test -z "$CC"; then
2108 # Extract the first word of "cc", so it can be a program name with args.
2109 set dummy cc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test -n "$CC"; then
2116 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2127 ac_prog_rejected=yes
2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 if test $ac_prog_rejected = yes; then
2139 # We found a bogon in the path, so make sure we never use it.
2140 set dummy $ac_cv_prog_CC
2142 if test $# != 0; then
2143 # We chose a different compiler from the bogus one.
2144 # However, it has the same basename, so the bogon will be chosen
2145 # first if we set CC to just the basename; use the full file name.
2147 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2153 if test -n "$CC"; then
2154 { echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6; }
2157 { echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6; }
2163 if test -z "$CC"; then
2164 if test -n "$ac_tool_prefix"; then
2165 for ac_prog in cl.exe
2167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 if test -n "$CC"; then
2196 { echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6; }
2199 { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2204 test -n "$CC" && break
2207 if test -z "$CC"; then
2209 for ac_prog in cl.exe
2211 # Extract the first word of "$ac_prog", so it can be a program name with args.
2212 set dummy $ac_prog; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 if test -n "$ac_ct_CC"; then
2219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228 ac_cv_prog_ac_ct_CC="$ac_prog"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6; }
2243 { echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6; }
2248 test -n "$ac_ct_CC" && break
2251 if test "x$ac_ct_CC" = x; then
2254 case $cross_compiling:$ac_tool_warned in
2256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2257 whose name does not start with the host triplet. If you think this
2258 configuration is useful to you, please write to autoconf@gnu.org." >&5
2259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2260 whose name does not start with the host triplet. If you think this
2261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2262 ac_tool_warned=yes ;;
2271 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: no acceptable C compiler found in \$PATH
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2277 # Provide some information about the compiler.
2278 echo "$as_me:$LINENO: checking for C compiler version" >&5
2279 ac_compiler=`set X $ac_compile; echo $2`
2280 { (ac_try="$ac_compiler --version >&5"
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2286 (eval "$ac_compiler --version >&5") 2>&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }
2290 { (ac_try="$ac_compiler -v >&5"
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296 (eval "$ac_compiler -v >&5") 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }
2300 { (ac_try="$ac_compiler -V >&5"
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306 (eval "$ac_compiler -V >&5") 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }
2311 cat >conftest.$ac_ext <<_ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2326 ac_clean_files_save=$ac_clean_files
2327 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2328 # Try to create an executable without -o first, disregard a.out.
2329 # It will help us diagnose broken compilers, and finding out an intuition
2331 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2332 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2333 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2335 # List of possible output files, starting from the most likely.
2336 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2337 # only as a last resort. b.out is created by i960 compilers.
2338 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2340 # The IRIX 6 linker writes into existing files which may not be
2341 # executable, retaining their permissions. Remove them first so a
2342 # subsequent execution test works.
2344 for ac_file in $ac_files
2347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2348 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2353 if { (ac_try="$ac_link_default"
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359 (eval "$ac_link_default") 2>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; then
2363 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2364 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2365 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2366 # so that the user can short-circuit this test for compilers unknown to
2368 for ac_file in $ac_files ''
2370 test -f "$ac_file" || continue
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2375 # We found the default executable, but exeext='' is most
2379 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2381 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2383 # We set ac_cv_exeext here because the later test for it is not
2384 # safe: cross compilers may not add the suffix if given an `-o'
2385 # argument, so we may need to know it at that point already.
2386 # Even if this section looks crufty: it has the advantage of
2393 test "$ac_cv_exeext" = no && ac_cv_exeext=
2399 { echo "$as_me:$LINENO: result: $ac_file" >&5
2400 echo "${ECHO_T}$ac_file" >&6; }
2401 if test -z "$ac_file"; then
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2405 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: C compiler cannot create executables
2408 See \`config.log' for more details." >&2;}
2409 { (exit 77); exit 77; }; }
2412 ac_exeext=$ac_cv_exeext
2414 # Check that the compiler produces executables we can run. If not, either
2415 # the compiler is broken, or we cross compile.
2416 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2417 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2418 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2419 # If not cross compiling, check that we can run a simple program.
2420 if test "$cross_compiling" != yes; then
2421 if { ac_try='./$ac_file'
2422 { (case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427 (eval "$ac_try") 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2433 if test "$cross_compiling" = maybe; then
2436 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2437 If you meant to cross compile, use \`--host'.
2438 See \`config.log' for more details." >&5
2439 echo "$as_me: error: cannot run C compiled programs.
2440 If you meant to cross compile, use \`--host'.
2441 See \`config.log' for more details." >&2;}
2442 { (exit 1); exit 1; }; }
2446 { echo "$as_me:$LINENO: result: yes" >&5
2447 echo "${ECHO_T}yes" >&6; }
2449 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2450 ac_clean_files=$ac_clean_files_save
2451 # Check that the compiler produces executables we can run. If not, either
2452 # the compiler is broken, or we cross compile.
2453 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2454 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2455 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2456 echo "${ECHO_T}$cross_compiling" >&6; }
2458 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2459 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2460 if { (ac_try="$ac_link"
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_link") 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; then
2470 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2471 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2472 # work properly (i.e., refer to `conftest.exe'), while it won't with
2474 for ac_file in conftest.exe conftest conftest.*; do
2475 test -f "$ac_file" || continue
2477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2478 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2491 rm -f conftest$ac_cv_exeext
2492 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2493 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2495 rm -f conftest.$ac_ext
2496 EXEEXT=$ac_cv_exeext
2498 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2499 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2500 if test "${ac_cv_objext+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 cat >conftest.$ac_ext <<_ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2518 rm -f conftest.o conftest.obj
2519 if { (ac_try="$ac_compile"
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_compile") 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; then
2529 for ac_file in conftest.o conftest.obj conftest.*; do
2530 test -f "$ac_file" || continue;
2532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2533 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2542 See \`config.log' for more details." >&5
2543 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2544 See \`config.log' for more details." >&2;}
2545 { (exit 1); exit 1; }; }
2548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2550 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2551 echo "${ECHO_T}$ac_cv_objext" >&6; }
2552 OBJEXT=$ac_cv_objext
2554 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2555 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2556 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2606 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2607 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2608 GCC=`test $ac_compiler_gnu = yes && echo yes`
2609 ac_test_CFLAGS=${CFLAGS+set}
2610 ac_save_CFLAGS=$CFLAGS
2611 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2612 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_cc_g+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 ac_save_c_werror_flag=$ac_c_werror_flag
2617 ac_c_werror_flag=yes
2620 cat >conftest.$ac_ext <<_ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2635 rm -f conftest.$ac_objext
2636 if { (ac_try="$ac_compile"
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642 (eval "$ac_compile") 2>conftest.er1
2644 grep -v '^ *+' conftest.er1 >conftest.err
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } && {
2649 test -z "$ac_c_werror_flag" ||
2650 test ! -s conftest.err
2651 } && test -s conftest.$ac_objext; then
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2658 cat >conftest.$ac_ext <<_ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2673 rm -f conftest.$ac_objext
2674 if { (ac_try="$ac_compile"
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680 (eval "$ac_compile") 2>conftest.er1
2682 grep -v '^ *+' conftest.er1 >conftest.err
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } && {
2687 test -z "$ac_c_werror_flag" ||
2688 test ! -s conftest.err
2689 } && test -s conftest.$ac_objext; then
2692 echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2695 ac_c_werror_flag=$ac_save_c_werror_flag
2697 cat >conftest.$ac_ext <<_ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2712 rm -f conftest.$ac_objext
2713 if { (ac_try="$ac_compile"
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compile") 2>conftest.er1
2721 grep -v '^ *+' conftest.er1 >conftest.err
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } && {
2726 test -z "$ac_c_werror_flag" ||
2727 test ! -s conftest.err
2728 } && test -s conftest.$ac_objext; then
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 ac_c_werror_flag=$ac_save_c_werror_flag
2746 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2747 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2748 if test "$ac_test_CFLAGS" = set; then
2749 CFLAGS=$ac_save_CFLAGS
2750 elif test $ac_cv_prog_cc_g = yes; then
2751 if test "$GCC" = yes; then
2757 if test "$GCC" = yes; then
2763 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2764 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2765 if test "${ac_cv_prog_cc_c89+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 ac_cv_prog_cc_c89=no
2770 cat >conftest.$ac_ext <<_ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2778 #include <sys/types.h>
2779 #include <sys/stat.h>
2780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2781 struct buf { int x; };
2782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2783 static char *e (p, i)
2789 static char *f (char * (*g) (char **, int), char **p, ...)
2794 s = g (p, va_arg (v,int));
2799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2800 function prototypes and stuff, but not '\xHH' hex character constants.
2801 These don't provoke an error unfortunately, instead are silently treated
2802 as 'x'. The following induces an error, until -std is added to get
2803 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2804 array size at least. It's necessary to write '\x00'==0 to get something
2805 that's true only with -std. */
2806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2808 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2809 inside strings and character constants. */
2811 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2813 int test (int i, double x);
2814 struct s1 {int (*f) (int a);};
2815 struct s2 {int (*f) (double a);};
2816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2822 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2827 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2828 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2830 CC="$ac_save_CC $ac_arg"
2831 rm -f conftest.$ac_objext
2832 if { (ac_try="$ac_compile"
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_compile") 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } && {
2845 test -z "$ac_c_werror_flag" ||
2846 test ! -s conftest.err
2847 } && test -s conftest.$ac_objext; then
2848 ac_cv_prog_cc_c89=$ac_arg
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2856 rm -f core conftest.err conftest.$ac_objext
2857 test "x$ac_cv_prog_cc_c89" != "xno" && break
2859 rm -f conftest.$ac_ext
2864 case "x$ac_cv_prog_cc_c89" in
2866 { echo "$as_me:$LINENO: result: none needed" >&5
2867 echo "${ECHO_T}none needed" >&6; } ;;
2869 { echo "$as_me:$LINENO: result: unsupported" >&5
2870 echo "${ECHO_T}unsupported" >&6; } ;;
2872 CC="$CC $ac_cv_prog_cc_c89"
2873 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 ac_cpp='$CXXCPP $CPPFLAGS'
2886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2889 if test -z "$CXX"; then
2890 if test -n "$CCC"; then
2893 if test -n "$ac_tool_prefix"; then
2894 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2900 if test "${ac_cv_prog_CXX+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 if test -n "$CXX"; then
2904 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 if test -n "$CXX"; then
2925 { echo "$as_me:$LINENO: result: $CXX" >&5
2926 echo "${ECHO_T}$CXX" >&6; }
2928 { echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6; }
2933 test -n "$CXX" && break
2936 if test -z "$CXX"; then
2938 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2940 # Extract the first word of "$ac_prog", so it can be a program name with args.
2941 set dummy $ac_prog; ac_word=$2
2942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2944 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 if test -n "$ac_ct_CXX"; then
2948 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957 ac_cv_prog_ac_ct_CXX="$ac_prog"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2968 if test -n "$ac_ct_CXX"; then
2969 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2970 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2972 { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2977 test -n "$ac_ct_CXX" && break
2980 if test "x$ac_ct_CXX" = x; then
2983 case $cross_compiling:$ac_tool_warned in
2985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2986 whose name does not start with the host triplet. If you think this
2987 configuration is useful to you, please write to autoconf@gnu.org." >&5
2988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2989 whose name does not start with the host triplet. If you think this
2990 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2991 ac_tool_warned=yes ;;
2999 # Provide some information about the compiler.
3000 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3001 ac_compiler=`set X $ac_compile; echo $2`
3002 { (ac_try="$ac_compiler --version >&5"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compiler --version >&5") 2>&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }
3012 { (ac_try="$ac_compiler -v >&5"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compiler -v >&5") 2>&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }
3022 { (ac_try="$ac_compiler -V >&5"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compiler -V >&5") 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }
3033 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3034 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3035 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 cat >conftest.$ac_ext <<_ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } && {
3070 test -z "$ac_cxx_werror_flag" ||
3071 test ! -s conftest.err
3072 } && test -s conftest.$ac_objext; then
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3085 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3086 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3087 GXX=`test $ac_compiler_gnu = yes && echo yes`
3088 ac_test_CXXFLAGS=${CXXFLAGS+set}
3089 ac_save_CXXFLAGS=$CXXFLAGS
3090 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3091 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3092 if test "${ac_cv_prog_cxx_g+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3096 ac_cxx_werror_flag=yes
3099 cat >conftest.$ac_ext <<_ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3114 rm -f conftest.$ac_objext
3115 if { (ac_try="$ac_compile"
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_compile") 2>conftest.er1
3123 grep -v '^ *+' conftest.er1 >conftest.err
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } && {
3128 test -z "$ac_cxx_werror_flag" ||
3129 test ! -s conftest.err
3130 } && test -s conftest.$ac_objext; then
3131 ac_cv_prog_cxx_g=yes
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3152 rm -f conftest.$ac_objext
3153 if { (ac_try="$ac_compile"
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_compile") 2>conftest.er1
3161 grep -v '^ *+' conftest.er1 >conftest.err
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } && {
3166 test -z "$ac_cxx_werror_flag" ||
3167 test ! -s conftest.err
3168 } && test -s conftest.$ac_objext; then
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3176 cat >conftest.$ac_ext <<_ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compile") 2>conftest.er1
3200 grep -v '^ *+' conftest.er1 >conftest.err
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } && {
3205 test -z "$ac_cxx_werror_flag" ||
3206 test ! -s conftest.err
3207 } && test -s conftest.$ac_objext; then
3208 ac_cv_prog_cxx_g=yes
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3227 if test "$ac_test_CXXFLAGS" = set; then
3228 CXXFLAGS=$ac_save_CXXFLAGS
3229 elif test $ac_cv_prog_cxx_g = yes; then
3230 if test "$GXX" = yes; then
3236 if test "$GXX" = yes; then
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3252 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3254 cat > conftest.c << EOF
3258 int main (int argc, char*argv)
3268 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3269 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270 { echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6; }
3275 echo "configure: failed program was:" >&5
3277 { echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6; }
3283 if test "x$GCC_IS_OK" '=' "x";then
3284 echo "***************************************************"
3285 echo "* Your gcc is too old to compile this!"
3287 echo "* The last version compilable by this compiler is "
3288 echo "* swftools 0.7.0, which you can download from "
3289 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3291 echo "* Newer versions require at least gcc 3.0.0 "
3292 echo "***************************************************"
3296 if test "x$CHECKMEM" '!=' "x";then
3300 #unset ac_cv_prog_CC
3301 #unset ac_cv_prog_CXX
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3311 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3312 # On Suns, sometimes $CPP names a directory.
3313 if test -n "$CPP" && test -d "$CPP"; then
3316 if test -z "$CPP"; then
3317 if test "${ac_cv_prog_CPP+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 # Double quotes because CPP needs to be expanded
3321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3324 for ac_c_preproc_warn_flag in '' yes
3326 # Use a header file that comes with gcc, so configuring glibc
3327 # with a fresh cross-compiler works.
3328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329 # <limits.h> exists even on freestanding compilers.
3330 # On the NeXT, cc -E runs the code through the compiler's parser,
3331 # not just through cpp. "Syntax error" is here to catch this case.
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3339 # include <limits.h>
3341 # include <assert.h>
3345 if { (ac_try="$ac_cpp conftest.$ac_ext"
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353 grep -v '^ *+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } >/dev/null && {
3358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3359 test ! -s conftest.err
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3366 # Broken: fails on valid input.
3370 rm -f conftest.err conftest.$ac_ext
3372 # OK, works on sane cases. Now check whether nonexistent headers
3373 # can be detected and how.
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 #include <ac_nonexistent.h>
3382 if { (ac_try="$ac_cpp conftest.$ac_ext"
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3390 grep -v '^ *+' conftest.er1 >conftest.err
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } >/dev/null && {
3395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3396 test ! -s conftest.err
3398 # Broken: success on invalid input.
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3404 # Passes both tests.
3409 rm -f conftest.err conftest.$ac_ext
3412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3413 rm -f conftest.err conftest.$ac_ext
3414 if $ac_preproc_ok; then
3426 { echo "$as_me:$LINENO: result: $CPP" >&5
3427 echo "${ECHO_T}$CPP" >&6; }
3429 for ac_c_preproc_warn_flag in '' yes
3431 # Use a header file that comes with gcc, so configuring glibc
3432 # with a fresh cross-compiler works.
3433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3434 # <limits.h> exists even on freestanding compilers.
3435 # On the NeXT, cc -E runs the code through the compiler's parser,
3436 # not just through cpp. "Syntax error" is here to catch this case.
3437 cat >conftest.$ac_ext <<_ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3444 # include <limits.h>
3446 # include <assert.h>
3450 if { (ac_try="$ac_cpp conftest.$ac_ext"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3458 grep -v '^ *+' conftest.er1 >conftest.err
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } >/dev/null && {
3463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3464 test ! -s conftest.err
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 # Broken: fails on valid input.
3475 rm -f conftest.err conftest.$ac_ext
3477 # OK, works on sane cases. Now check whether nonexistent headers
3478 # can be detected and how.
3479 cat >conftest.$ac_ext <<_ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 #include <ac_nonexistent.h>
3487 if { (ac_try="$ac_cpp conftest.$ac_ext"
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3495 grep -v '^ *+' conftest.er1 >conftest.err
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } >/dev/null && {
3500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3501 test ! -s conftest.err
3503 # Broken: success on invalid input.
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 # Passes both tests.
3514 rm -f conftest.err conftest.$ac_ext
3517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3518 rm -f conftest.err conftest.$ac_ext
3519 if $ac_preproc_ok; then
3522 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3523 See \`config.log' for more details." >&5
3524 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3525 See \`config.log' for more details." >&2;}
3526 { (exit 1); exit 1; }; }
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3541 if test "${ac_cv_prog_RANLIB+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 if test -n "$RANLIB"; then
3545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 RANLIB=$ac_cv_prog_RANLIB
3565 if test -n "$RANLIB"; then
3566 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3567 echo "${ECHO_T}$RANLIB" >&6; }
3569 { echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6; }
3575 if test -z "$ac_cv_prog_RANLIB"; then
3576 ac_ct_RANLIB=$RANLIB
3577 # Extract the first word of "ranlib", so it can be a program name with args.
3578 set dummy ranlib; ac_word=$2
3579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3581 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 if test -n "$ac_ct_RANLIB"; then
3585 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3594 ac_cv_prog_ac_ct_RANLIB="ranlib"
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3605 if test -n "$ac_ct_RANLIB"; then
3606 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3607 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3609 { echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6; }
3613 if test "x$ac_ct_RANLIB" = x; then
3616 case $cross_compiling:$ac_tool_warned in
3618 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3619 whose name does not start with the host triplet. If you think this
3620 configuration is useful to you, please write to autoconf@gnu.org." >&5
3621 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3622 whose name does not start with the host triplet. If you think this
3623 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3624 ac_tool_warned=yes ;;
3626 RANLIB=$ac_ct_RANLIB
3629 RANLIB="$ac_cv_prog_RANLIB"
3632 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3633 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3634 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3635 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 cat >conftest.make <<\_ACEOF
3641 @echo '@@@%%%=$(MAKE)=@@@%%%'
3643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3644 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3646 eval ac_cv_prog_make_${ac_make}_set=yes;;
3648 eval ac_cv_prog_make_${ac_make}_set=no;;
3652 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3653 { echo "$as_me:$LINENO: result: yes" >&5
3654 echo "${ECHO_T}yes" >&6; }
3657 { echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6; }
3659 SET_MAKE="MAKE=${MAKE-make}"
3662 # Find a good install program. We prefer a C program (faster),
3663 # so one script is as good as another. But avoid the broken or
3664 # incompatible versions:
3665 # SysV /etc/install, /usr/sbin/install
3666 # SunOS /usr/etc/install
3667 # IRIX /sbin/install
3669 # AmigaOS /C/install, which installs bootblocks on floppy discs
3670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3673 # OS/2's system install, which has a completely different semantic
3674 # ./install, which can be erroneously created by make from ./install.sh.
3675 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3676 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3677 if test -z "$INSTALL"; then
3678 if test "${ac_cv_path_install+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 test -z "$as_dir" && as_dir=.
3686 # Account for people who put trailing slashes in PATH elements.
3688 ./ | .// | /cC/* | \
3689 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3690 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3693 # OSF1 and SCO ODT 3.0 have their own names for install.
3694 # Don't use installbsd from OSF since it installs stuff as root
3696 for ac_prog in ginstall scoinst install; do
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3699 if test $ac_prog = install &&
3700 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3701 # AIX install. It has an incompatible calling convention.
3703 elif test $ac_prog = install &&
3704 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3705 # program-specific install script used by HP pwplus--don't use.
3708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3721 if test "${ac_cv_path_install+set}" = set; then
3722 INSTALL=$ac_cv_path_install
3724 # As a last resort, use the slow shell script. Don't cache a
3725 # value for INSTALL within a source directory, because that will
3726 # break other packages using the cache if that directory is
3727 # removed, or if the value is a relative name.
3728 INSTALL=$ac_install_sh
3731 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3732 echo "${ECHO_T}$INSTALL" >&6; }
3734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3735 # It thinks the first close brace ends the variable substitution.
3736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3738 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3740 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3742 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3743 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3745 if test "$LN_S" = "ln -s"; then
3746 { echo "$as_me:$LINENO: result: yes" >&5
3747 echo "${ECHO_T}yes" >&6; }
3749 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3750 echo "${ECHO_T}no, using $LN_S" >&6; }
3753 for ac_prog in gzip uncompress compress
3755 # Extract the first word of "$ac_prog", so it can be a program name with args.
3756 set dummy $ac_prog; ac_word=$2
3757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3759 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 if test -n "$UNCOMPRESS"; then
3763 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_prog_UNCOMPRESS="$ac_prog"
3773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3783 if test -n "$UNCOMPRESS"; then
3784 { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3785 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3787 { echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6; }
3792 test -n "$UNCOMPRESS" && break
3802 if test "x$EXEEXT" = "x.exe";then
3811 { echo "$as_me:$LINENO: checking host system type" >&5
3812 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3813 if test "${ac_cv_host+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 if test "x$host_alias" = x; then
3817 ac_cv_host=$ac_cv_build
3819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3820 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3821 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3822 { (exit 1); exit 1; }; }
3826 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3827 echo "${ECHO_T}$ac_cv_host" >&6; }
3830 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3831 echo "$as_me: error: invalid value of canonical host" >&2;}
3832 { (exit 1); exit 1; }; };;
3835 ac_save_IFS=$IFS; IFS='-'
3841 # Remember, the first character of IFS is used to create $*,
3842 # except with old shells:
3845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3850 { echo "$as_me:$LINENO: checking for target system" >&5
3851 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3855 *cygwin* ) CYGWIN=yes;;
3856 *mingw* ) MINGW=yes;;
3860 if test "x$MINGW" = "xyes"; then
3861 #fix for the debian distribution of mingw
3862 if test -x "/usr/i586-mingw32msvc/bin/ar";then
3863 AR="/usr/i586-mingw32msvc/bin/ar"
3865 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3866 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3868 #fix for the gentoo distribution of mingw
3869 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3870 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3872 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3873 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3875 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3876 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3882 if test "x${CYGWIN}" = "xyes"; then
3883 cat >>confdefs.h <<_ACEOF
3887 { echo "$as_me:$LINENO: result: cygwin" >&5
3888 echo "${ECHO_T}cygwin" >&6; }
3890 if test "x${MINGW}" = "xyes"; then
3891 cat >>confdefs.h <<_ACEOF
3896 cat >>confdefs.h <<_ACEOF
3900 LIBS="$LIBS -lws2_32 -lgdi32"
3901 { echo "$as_me:$LINENO: result: mingw" >&5
3902 echo "${ECHO_T}mingw" >&6; }
3906 cat >>confdefs.h <<_ACEOF
3910 { echo "$as_me:$LINENO: result: " >&5
3911 echo "${ECHO_T}" >&6; }
3917 if test "x${MINGW}" != "xyes"; then
3919 cat >>confdefs.h <<_ACEOF
3932 # The following tries to make use of includes and libraries in
3933 # /usr/local, too. Notice: A -I/usr/local/include might break
3934 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3935 # especially on systems which link /usr/local to /usr, so it has yet
3936 # to be seen how useful this is.
3937 if test -d /usr/local/lib; then
3938 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3940 if test -d /usr/local/include; then
3941 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3942 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3945 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3946 # if the user has a special prefix (like /opt), there might also be $prefix/lib
3947 # and $prefix/include, which should be included in our search paths for libraries
3949 LDFLAGS="$LDFLAGS -L${libdir}"
3950 CPPFLAGS="$CPPFLAGS -I${includedir}"
3951 # TODO- test whether gcc still works after this
3955 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3958 # this must be done after (I believe) AC_PROG_MAKE_SET
3959 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3960 STRIP="@echo debug enabled, not stripping "
3967 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3968 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3969 if test "${ac_cv_lib_m_sin+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_check_lib_save_LIBS=$LIBS
3974 cat >conftest.$ac_ext <<_ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 /* Override any GCC internal prototype to avoid an error.
3982 Use char because int might match the return type of a GCC
3983 builtin and then its argument prototype would still apply. */
3996 rm -f conftest.$ac_objext conftest$ac_exeext
3997 if { (ac_try="$ac_link"
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_link") 2>conftest.er1
4005 grep -v '^ *+' conftest.er1 >conftest.err
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && {
4010 test -z "$ac_c_werror_flag" ||
4011 test ! -s conftest.err
4012 } && test -s conftest$ac_exeext &&
4013 $as_test_x conftest$ac_exeext; then
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4023 conftest$ac_exeext conftest.$ac_ext
4024 LIBS=$ac_check_lib_save_LIBS
4026 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4027 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4028 if test $ac_cv_lib_m_sin = yes; then
4029 cat >>confdefs.h <<_ACEOF
4036 echo "Error: Math library not found.";
4042 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4043 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4044 if test "${ac_cv_lib_z_deflate+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 ac_check_lib_save_LIBS=$LIBS
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4056 /* Override any GCC internal prototype to avoid an error.
4057 Use char because int might match the return type of a GCC
4058 builtin and then its argument prototype would still apply. */
4071 rm -f conftest.$ac_objext conftest$ac_exeext
4072 if { (ac_try="$ac_link"
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_link") 2>conftest.er1
4080 grep -v '^ *+' conftest.er1 >conftest.err
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } && {
4085 test -z "$ac_c_werror_flag" ||
4086 test ! -s conftest.err
4087 } && test -s conftest$ac_exeext &&
4088 $as_test_x conftest$ac_exeext; then
4089 ac_cv_lib_z_deflate=yes
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4094 ac_cv_lib_z_deflate=no
4097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4098 conftest$ac_exeext conftest.$ac_ext
4099 LIBS=$ac_check_lib_save_LIBS
4101 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4102 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4103 if test $ac_cv_lib_z_deflate = yes; then
4104 cat >>confdefs.h <<_ACEOF
4115 if test "x$ZLIBMISSING" = "xtrue";then
4118 echo "You need zlib to compile swftools"
4124 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4125 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4126 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 ac_check_lib_save_LIBS=$LIBS
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4138 /* Override any GCC internal prototype to avoid an error.
4139 Use char because int might match the return type of a GCC
4140 builtin and then its argument prototype would still apply. */
4144 char jpeg_write_raw_data ();
4148 return jpeg_write_raw_data ();
4153 rm -f conftest.$ac_objext conftest$ac_exeext
4154 if { (ac_try="$ac_link"
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_link") 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } && {
4167 test -z "$ac_c_werror_flag" ||
4168 test ! -s conftest.err
4169 } && test -s conftest$ac_exeext &&
4170 $as_test_x conftest$ac_exeext; then
4171 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4180 conftest$ac_exeext conftest.$ac_ext
4181 LIBS=$ac_check_lib_save_LIBS
4183 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4184 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4185 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4186 cat >>confdefs.h <<_ACEOF
4187 #define HAVE_LIBJPEG 1
4197 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4198 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4199 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 ac_check_lib_save_LIBS=$LIBS
4203 LIBS="-lungif $LIBS"
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4211 /* Override any GCC internal prototype to avoid an error.
4212 Use char because int might match the return type of a GCC
4213 builtin and then its argument prototype would still apply. */
4226 rm -f conftest.$ac_objext conftest$ac_exeext
4227 if { (ac_try="$ac_link"
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_link") 2>conftest.er1
4235 grep -v '^ *+' conftest.er1 >conftest.err
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && {
4240 test -z "$ac_c_werror_flag" ||
4241 test ! -s conftest.err
4242 } && test -s conftest$ac_exeext &&
4243 $as_test_x conftest$ac_exeext; then
4244 ac_cv_lib_ungif_DGifOpen=yes
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 ac_cv_lib_ungif_DGifOpen=no
4252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4253 conftest$ac_exeext conftest.$ac_ext
4254 LIBS=$ac_check_lib_save_LIBS
4256 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4257 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4258 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4259 cat >>confdefs.h <<_ACEOF
4260 #define HAVE_LIBUNGIF 1
4263 LIBS="-lungif $LIBS"
4269 if test "$UNGIFMISSING";then
4272 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4273 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4274 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 ac_check_lib_save_LIBS=$LIBS
4279 cat >conftest.$ac_ext <<_ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4286 /* Override any GCC internal prototype to avoid an error.
4287 Use char because int might match the return type of a GCC
4288 builtin and then its argument prototype would still apply. */
4301 rm -f conftest.$ac_objext conftest$ac_exeext
4302 if { (ac_try="$ac_link"
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_link") 2>conftest.er1
4310 grep -v '^ *+' conftest.er1 >conftest.err
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && {
4315 test -z "$ac_c_werror_flag" ||
4316 test ! -s conftest.err
4317 } && test -s conftest$ac_exeext &&
4318 $as_test_x conftest$ac_exeext; then
4319 ac_cv_lib_gif_DGifOpen=yes
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4324 ac_cv_lib_gif_DGifOpen=no
4327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4328 conftest$ac_exeext conftest.$ac_ext
4329 LIBS=$ac_check_lib_save_LIBS
4331 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4332 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4333 if test $ac_cv_lib_gif_DGifOpen = yes; then
4334 cat >>confdefs.h <<_ACEOF
4335 #define HAVE_LIBGIF 1
4347 { echo "$as_me:$LINENO: checking for byte order" >&5
4348 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4349 if test "$cross_compiling" = yes; then
4352 cat >conftest.$ac_ext <<_ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4359 int main (int argc, char *argv[])
4366 rm -f conftest$ac_exeext
4367 if { (ac_try="$ac_link"
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_link") 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4377 { (case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_try") 2>&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4388 echo "$as_me: program exited with status $ac_status" >&5
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4401 if test "x${CROSSCOMPILE}" = "x1"; then
4402 { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4403 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4404 { echo "$as_me:$LINENO: checking target system type" >&5
4405 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4406 if test "${ac_cv_target+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 if test "x$target_alias" = x; then
4410 ac_cv_target=$ac_cv_host
4412 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4413 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4414 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4415 { (exit 1); exit 1; }; }
4419 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4420 echo "${ECHO_T}$ac_cv_target" >&6; }
4421 case $ac_cv_target in
4423 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4424 echo "$as_me: error: invalid value of canonical target" >&2;}
4425 { (exit 1); exit 1; }; };;
4427 target=$ac_cv_target
4428 ac_save_IFS=$IFS; IFS='-'
4434 # Remember, the first character of IFS is used to create $*,
4435 # except with old shells:
4438 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4441 # The aliases save the names the user supplied, while $host etc.
4442 # will get canonicalized.
4443 test -n "$target_alias" &&
4444 test "$program_prefix$program_suffix$program_transform_name" = \
4446 program_prefix=${target_alias}-
4447 { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4448 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4453 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4460 if test "x${LITTLEENDIAN}" = "x1"; then
4461 { echo "$as_me:$LINENO: result: little endian" >&5
4462 echo "${ECHO_T}little endian" >&6; }
4466 if test "x${BIGENDIAN}" = "x1"; then
4467 { echo "$as_me:$LINENO: result: big endian" >&5
4468 echo "${ECHO_T}big endian" >&6; }
4471 export WORDS_BIGENDIAN
4472 cat >>confdefs.h <<_ACEOF
4473 #define WORDS_BIGENDIAN 1
4477 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4478 { echo "$as_me:$LINENO: result: unknown" >&5
4479 echo "${ECHO_T}unknown" >&6; }
4480 echo Byte order could not determined.
4486 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4487 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4488 if test "$cross_compiling" = yes; then
4491 cat >conftest.$ac_ext <<_ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4499 int main (int argc, char*argv[])
4501 return system("test `touch config.tmp2`");
4505 rm -f conftest$ac_exeext
4506 if { (ac_try="$ac_link"
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_link") 2>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4516 { (case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_try") 2>&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4527 echo "$as_me: program exited with status $ac_status" >&5
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4537 if test "x${OK}" = "xOK";then
4538 test -f config.tmp2 || OK=
4541 if test "x${CROSSCOMPILE}" = "x1";then
4544 if test "x${OK}" = "xOK";then
4546 { echo "$as_me:$LINENO: result: yes" >&5
4547 echo "${ECHO_T}yes" >&6; }
4549 export SYSTEM_BACKTICKS
4550 cat >>confdefs.h <<_ACEOF
4551 #define SYSTEM_BACKTICKS 1
4555 { echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6; }
4561 test "$program_prefix" != NONE &&
4562 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4563 # Use a double $ so make ignores it.
4564 test "$program_suffix" != NONE &&
4565 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4566 # Double any \ or $. echo might interpret backslashes.
4567 # By default was `s,x,x', remove it if useless.
4568 cat <<\_ACEOF >conftest.sed
4569 s/[\\$]/&&/g;s/;s,x,x,$//
4571 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4575 ac_config_headers="$ac_config_headers config.h"
4583 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4584 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4585 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4586 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 cat >conftest.$ac_ext <<_ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 #include <sys/types.h>
4608 rm -f conftest.$ac_objext
4609 if { (ac_try="$ac_compile"
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_compile") 2>conftest.er1
4617 grep -v '^ *+' conftest.er1 >conftest.err
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && {
4622 test -z "$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 } && test -s conftest.$ac_objext; then
4625 eval "$as_ac_Header=yes"
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 eval "$as_ac_Header=no"
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 ac_res=`eval echo '${'$as_ac_Header'}'`
4636 { echo "$as_me:$LINENO: result: $ac_res" >&5
4637 echo "${ECHO_T}$ac_res" >&6; }
4638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4639 cat >>confdefs.h <<_ACEOF
4640 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4643 ac_header_dirent=$ac_hdr; break
4647 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4648 if test $ac_header_dirent = dirent.h; then
4649 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4650 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4651 if test "${ac_cv_search_opendir+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 ac_func_search_save_LIBS=$LIBS
4655 cat >conftest.$ac_ext <<_ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4662 /* Override any GCC internal prototype to avoid an error.
4663 Use char because int might match the return type of a GCC
4664 builtin and then its argument prototype would still apply. */
4677 for ac_lib in '' dir; do
4678 if test -z "$ac_lib"; then
4679 ac_res="none required"
4682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4684 rm -f conftest.$ac_objext conftest$ac_exeext
4685 if { (ac_try="$ac_link"
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_link") 2>conftest.er1
4693 grep -v '^ *+' conftest.er1 >conftest.err
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } && {
4698 test -z "$ac_c_werror_flag" ||
4699 test ! -s conftest.err
4700 } && test -s conftest$ac_exeext &&
4701 $as_test_x conftest$ac_exeext; then
4702 ac_cv_search_opendir=$ac_res
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4712 if test "${ac_cv_search_opendir+set}" = set; then
4716 if test "${ac_cv_search_opendir+set}" = set; then
4719 ac_cv_search_opendir=no
4722 LIBS=$ac_func_search_save_LIBS
4724 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4725 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4726 ac_res=$ac_cv_search_opendir
4727 if test "$ac_res" != no; then
4728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4733 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4734 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4735 if test "${ac_cv_search_opendir+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 ac_func_search_save_LIBS=$LIBS
4739 cat >conftest.$ac_ext <<_ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4746 /* Override any GCC internal prototype to avoid an error.
4747 Use char because int might match the return type of a GCC
4748 builtin and then its argument prototype would still apply. */
4761 for ac_lib in '' x; do
4762 if test -z "$ac_lib"; then
4763 ac_res="none required"
4766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4768 rm -f conftest.$ac_objext conftest$ac_exeext
4769 if { (ac_try="$ac_link"
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_link") 2>conftest.er1
4777 grep -v '^ *+' conftest.er1 >conftest.err
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } && {
4782 test -z "$ac_c_werror_flag" ||
4783 test ! -s conftest.err
4784 } && test -s conftest$ac_exeext &&
4785 $as_test_x conftest$ac_exeext; then
4786 ac_cv_search_opendir=$ac_res
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4796 if test "${ac_cv_search_opendir+set}" = set; then
4800 if test "${ac_cv_search_opendir+set}" = set; then
4803 ac_cv_search_opendir=no
4806 LIBS=$ac_func_search_save_LIBS
4808 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4809 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4810 ac_res=$ac_cv_search_opendir
4811 if test "$ac_res" != no; then
4812 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4819 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4820 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4821 if test "${ac_cv_path_GREP+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 # Extract the first word of "grep ggrep" to use in msg output
4825 if test -z "$GREP"; then
4826 set dummy grep ggrep; ac_prog_name=$2
4827 if test "${ac_cv_path_GREP+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 ac_path_GREP_found=false
4831 # Loop through the user's path and test for each of PROGNAME-LIST
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4836 test -z "$as_dir" && as_dir=.
4837 for ac_prog in grep ggrep; do
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4840 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4841 # Check for GNU ac_path_GREP and select it if it is found.
4842 # Check for GNU $ac_path_GREP
4843 case `"$ac_path_GREP" --version 2>&1` in
4845 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4848 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4851 cat "conftest.in" "conftest.in" >"conftest.tmp"
4852 mv "conftest.tmp" "conftest.in"
4853 cp "conftest.in" "conftest.nl"
4854 echo 'GREP' >> "conftest.nl"
4855 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4857 ac_count=`expr $ac_count + 1`
4858 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4859 # Best one so far, save it but keep looking for a better one
4860 ac_cv_path_GREP="$ac_path_GREP"
4861 ac_path_GREP_max=$ac_count
4863 # 10*(2^10) chars as input seems more than enough
4864 test $ac_count -gt 10 && break
4866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4870 $ac_path_GREP_found && break 3
4880 GREP="$ac_cv_path_GREP"
4881 if test -z "$GREP"; then
4882 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4883 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4884 { (exit 1); exit 1; }; }
4888 ac_cv_path_GREP=$GREP
4893 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4894 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4895 GREP="$ac_cv_path_GREP"
4898 { echo "$as_me:$LINENO: checking for egrep" >&5
4899 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4900 if test "${ac_cv_path_EGREP+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4904 then ac_cv_path_EGREP="$GREP -E"
4906 # Extract the first word of "egrep" to use in msg output
4907 if test -z "$EGREP"; then
4908 set dummy egrep; ac_prog_name=$2
4909 if test "${ac_cv_path_EGREP+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 ac_path_EGREP_found=false
4913 # Loop through the user's path and test for each of PROGNAME-LIST
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4918 test -z "$as_dir" && as_dir=.
4919 for ac_prog in egrep; do
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4922 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4923 # Check for GNU ac_path_EGREP and select it if it is found.
4924 # Check for GNU $ac_path_EGREP
4925 case `"$ac_path_EGREP" --version 2>&1` in
4927 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4930 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4933 cat "conftest.in" "conftest.in" >"conftest.tmp"
4934 mv "conftest.tmp" "conftest.in"
4935 cp "conftest.in" "conftest.nl"
4936 echo 'EGREP' >> "conftest.nl"
4937 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4939 ac_count=`expr $ac_count + 1`
4940 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4941 # Best one so far, save it but keep looking for a better one
4942 ac_cv_path_EGREP="$ac_path_EGREP"
4943 ac_path_EGREP_max=$ac_count
4945 # 10*(2^10) chars as input seems more than enough
4946 test $ac_count -gt 10 && break
4948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4952 $ac_path_EGREP_found && break 3
4962 EGREP="$ac_cv_path_EGREP"
4963 if test -z "$EGREP"; then
4964 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4965 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4966 { (exit 1); exit 1; }; }
4970 ac_cv_path_EGREP=$EGREP
4976 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4977 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4978 EGREP="$ac_cv_path_EGREP"
4981 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4983 if test "${ac_cv_header_stdc+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 cat >conftest.$ac_ext <<_ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
5005 rm -f conftest.$ac_objext
5006 if { (ac_try="$ac_compile"
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_compile") 2>conftest.er1
5014 grep -v '^ *+' conftest.er1 >conftest.err
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && {
5019 test -z "$ac_c_werror_flag" ||
5020 test ! -s conftest.err
5021 } && test -s conftest.$ac_objext; then
5022 ac_cv_header_stdc=yes
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5027 ac_cv_header_stdc=no
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032 if test $ac_cv_header_stdc = yes; then
5033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5034 cat >conftest.$ac_ext <<_ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5044 $EGREP "memchr" >/dev/null 2>&1; then
5047 ac_cv_header_stdc=no
5053 if test $ac_cv_header_stdc = yes; then
5054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5055 cat >conftest.$ac_ext <<_ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5065 $EGREP "free" >/dev/null 2>&1; then
5068 ac_cv_header_stdc=no
5074 if test $ac_cv_header_stdc = yes; then
5075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5076 if test "$cross_compiling" = yes; then
5079 cat >conftest.$ac_ext <<_ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5087 #if ((' ' & 0x0FF) == 0x020)
5088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5091 # define ISLOWER(c) \
5092 (('a' <= (c) && (c) <= 'i') \
5093 || ('j' <= (c) && (c) <= 'r') \
5094 || ('s' <= (c) && (c) <= 'z'))
5095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5103 for (i = 0; i < 256; i++)
5104 if (XOR (islower (i), ISLOWER (i))
5105 || toupper (i) != TOUPPER (i))
5110 rm -f conftest$ac_exeext
5111 if { (ac_try="$ac_link"
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_link") 2>&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5121 { (case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_try") 2>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5132 echo "$as_me: program exited with status $ac_status" >&5
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5137 ac_cv_header_stdc=no
5139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5145 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5146 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5147 if test $ac_cv_header_stdc = yes; then
5149 cat >>confdefs.h <<\_ACEOF
5150 #define STDC_HEADERS 1
5155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5165 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5166 inttypes.h stdint.h unistd.h
5168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 cat >conftest.$ac_ext <<_ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 $ac_includes_default
5182 #include <$ac_header>
5184 rm -f conftest.$ac_objext
5185 if { (ac_try="$ac_compile"
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_compile") 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest.$ac_objext; then
5201 eval "$as_ac_Header=yes"
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 eval "$as_ac_Header=no"
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 ac_res=`eval echo '${'$as_ac_Header'}'`
5212 { echo "$as_me:$LINENO: result: $ac_res" >&5
5213 echo "${ECHO_T}$ac_res" >&6; }
5214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5215 cat >>confdefs.h <<_ACEOF
5216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5239 for ac_header in zlib.h gif_lib.h io.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
5241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 ac_res=`eval echo '${'$as_ac_Header'}'`
5249 { echo "$as_me:$LINENO: result: $ac_res" >&5
5250 echo "${ECHO_T}$ac_res" >&6; }
5252 # Is the header compilable?
5253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5255 cat >conftest.$ac_ext <<_ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5261 $ac_includes_default
5262 #include <$ac_header>
5264 rm -f conftest.$ac_objext
5265 if { (ac_try="$ac_compile"
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_compile") 2>conftest.er1
5273 grep -v '^ *+' conftest.er1 >conftest.err
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } && {
5278 test -z "$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5280 } && test -s conftest.$ac_objext; then
5281 ac_header_compiler=yes
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_header_compiler=no
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5291 echo "${ECHO_T}$ac_header_compiler" >&6; }
5293 # Is the header present?
5294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5296 cat >conftest.$ac_ext <<_ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 #include <$ac_header>
5304 if { (ac_try="$ac_cpp conftest.$ac_ext"
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5312 grep -v '^ *+' conftest.er1 >conftest.err
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } >/dev/null && {
5317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5318 test ! -s conftest.err
5320 ac_header_preproc=yes
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 ac_header_preproc=no
5328 rm -f conftest.err conftest.$ac_ext
5329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5330 echo "${ECHO_T}$ac_header_preproc" >&6; }
5332 # So? What about this header?
5333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5339 ac_header_preproc=yes
5342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 eval "$as_ac_Header=\$ac_header_preproc"
5364 ac_res=`eval echo '${'$as_ac_Header'}'`
5365 { echo "$as_me:$LINENO: result: $ac_res" >&5
5366 echo "${ECHO_T}$ac_res" >&6; }
5369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5370 cat >>confdefs.h <<_ACEOF
5371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5379 cat >>confdefs.h <<_ACEOF
5380 #define PACKAGE "$PACKAGE"
5383 cat >>confdefs.h <<_ACEOF
5384 #define VERSION "$VERSION"
5393 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5394 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5395 if test "${ac_cv_c_const+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 cat >conftest.$ac_ext <<_ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5408 /* FIXME: Include the comments suggested by Paul. */
5410 /* Ultrix mips cc rejects this. */
5411 typedef int charset[2];
5413 /* SunOS 4.1.1 cc rejects this. */
5414 char const *const *pcpcc;
5416 /* NEC SVR4.0.2 mips cc rejects this. */
5417 struct point {int x, y;};
5418 static struct point const zero = {0,0};
5419 /* AIX XL C 1.02.0.0 rejects this.
5420 It does not let you subtract one const X* pointer from another in
5421 an arm of an if-expression whose if-part is not a constant
5423 const char *g = "string";
5424 pcpcc = &g + (g ? g-g : 0);
5425 /* HPUX 7.0 cc rejects these. */
5427 ppc = (char**) pcpcc;
5428 pcpcc = (char const *const *) ppc;
5429 { /* SCO 3.2v4 cc rejects this. */
5431 char const *s = 0 ? (char *) 0 : (char const *) 0;
5436 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5438 const int *foo = &x[0];
5441 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5442 typedef const int *iptr;
5446 { /* AIX XL C 1.02.0.0 rejects this saying
5447 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5448 struct s { int j; const int *ap[3]; };
5449 struct s *b; b->j = 5;
5451 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5455 return !cs[0] && !zero.x;
5462 rm -f conftest.$ac_objext
5463 if { (ac_try="$ac_compile"
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_compile") 2>conftest.er1
5471 grep -v '^ *+' conftest.er1 >conftest.err
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } && {
5476 test -z "$ac_c_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest.$ac_objext; then
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5490 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5491 if test $ac_cv_c_const = no; then
5493 cat >>confdefs.h <<\_ACEOF
5499 { echo "$as_me:$LINENO: checking for inline" >&5
5500 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5501 if test "${ac_cv_c_inline+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 for ac_kw in inline __inline__ __inline; do
5506 cat >conftest.$ac_ext <<_ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5514 static $ac_kw foo_t static_foo () {return 0; }
5515 $ac_kw foo_t foo () {return 0; }
5519 rm -f conftest.$ac_objext
5520 if { (ac_try="$ac_compile"
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_compile") 2>conftest.er1
5528 grep -v '^ *+' conftest.er1 >conftest.err
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && {
5533 test -z "$ac_c_werror_flag" ||
5534 test ! -s conftest.err
5535 } && test -s conftest.$ac_objext; then
5536 ac_cv_c_inline=$ac_kw
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 test "$ac_cv_c_inline" != no && break
5549 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5550 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5553 case $ac_cv_c_inline in
5556 case $ac_cv_c_inline in
5558 *) ac_val=$ac_cv_c_inline;;
5560 cat >>confdefs.h <<_ACEOF
5562 #define inline $ac_val
5568 { echo "$as_me:$LINENO: checking for off_t" >&5
5569 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5570 if test "${ac_cv_type_off_t+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 cat >conftest.$ac_ext <<_ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 $ac_includes_default
5580 typedef off_t ac__type_new_;
5584 if ((ac__type_new_ *) 0)
5586 if (sizeof (ac__type_new_))
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.$ac_objext; then
5609 ac_cv_type_off_t=yes
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5620 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5621 if test $ac_cv_type_off_t = yes; then
5625 cat >>confdefs.h <<_ACEOF
5626 #define off_t long int
5631 { echo "$as_me:$LINENO: checking for size_t" >&5
5632 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5633 if test "${ac_cv_type_size_t+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 $ac_includes_default
5643 typedef size_t ac__type_new_;
5647 if ((ac__type_new_ *) 0)
5649 if (sizeof (ac__type_new_))
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5672 ac_cv_type_size_t=yes
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 ac_cv_type_size_t=no
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5683 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5684 if test $ac_cv_type_size_t = yes; then
5688 cat >>confdefs.h <<_ACEOF
5689 #define size_t unsigned int
5694 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5695 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5696 if test "${ac_cv_struct_tm+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 cat >conftest.$ac_ext <<_ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #include <sys/types.h>
5712 int *p = &tm.tm_sec;
5718 rm -f conftest.$ac_objext
5719 if { (ac_try="$ac_compile"
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_compile") 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest.$ac_objext; then
5735 ac_cv_struct_tm=time.h
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 ac_cv_struct_tm=sys/time.h
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5746 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5747 if test $ac_cv_struct_tm = sys/time.h; then
5749 cat >>confdefs.h <<\_ACEOF
5750 #define TM_IN_SYS_TIME 1
5755 { echo "$as_me:$LINENO: checking for boolean" >&5
5756 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5757 if test "${ac_cv_type_boolean+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5767 typedef boolean ac__type_new_;
5771 if ((ac__type_new_ *) 0)
5773 if (sizeof (ac__type_new_))
5779 rm -f conftest.$ac_objext
5780 if { (ac_try="$ac_compile"
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compile") 2>conftest.er1
5788 grep -v '^ *+' conftest.er1 >conftest.err
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } && {
5793 test -z "$ac_c_werror_flag" ||
5794 test ! -s conftest.err
5795 } && test -s conftest.$ac_objext; then
5796 ac_cv_type_boolean=yes
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 ac_cv_type_boolean=no
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5807 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5808 if test $ac_cv_type_boolean = yes; then
5812 cat >>confdefs.h <<_ACEOF
5828 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
5830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 cat >conftest.$ac_ext <<_ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5844 #define $ac_func innocuous_$ac_func
5846 /* System header to define __stub macros and hopefully few prototypes,
5847 which can conflict with char $ac_func (); below.
5848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5849 <limits.h> exists even on freestanding compilers. */
5852 # include <limits.h>
5854 # include <assert.h>
5859 /* Override any GCC internal prototype to avoid an error.
5860 Use char because int might match the return type of a GCC
5861 builtin and then its argument prototype would still apply. */
5866 /* The GNU C library defines this for functions which it implements
5867 to always fail with ENOSYS. Some functions are actually named
5868 something starting with __ and the normal name is an alias. */
5869 #if defined __stub_$ac_func || defined __stub___$ac_func
5881 rm -f conftest.$ac_objext conftest$ac_exeext
5882 if { (ac_try="$ac_link"
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_link") 2>conftest.er1
5890 grep -v '^ *+' conftest.er1 >conftest.err
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } && {
5895 test -z "$ac_c_werror_flag" ||
5896 test ! -s conftest.err
5897 } && test -s conftest$ac_exeext &&
5898 $as_test_x conftest$ac_exeext; then
5899 eval "$as_ac_var=yes"
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 eval "$as_ac_var=no"
5907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5908 conftest$ac_exeext conftest.$ac_ext
5910 ac_res=`eval echo '${'$as_ac_var'}'`
5911 { echo "$as_me:$LINENO: result: $ac_res" >&5
5912 echo "${ECHO_T}$ac_res" >&6; }
5913 if test `eval echo '${'$as_ac_var'}'` = yes; then
5914 cat >>confdefs.h <<_ACEOF
5915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5922 { echo "$as_me:$LINENO: checking for signed" >&5
5923 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5924 if test "${ac_cv_type_signed+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 cat >conftest.$ac_ext <<_ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 $ac_includes_default
5934 typedef signed ac__type_new_;
5938 if ((ac__type_new_ *) 0)
5940 if (sizeof (ac__type_new_))
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5955 grep -v '^ *+' conftest.er1 >conftest.err
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && {
5960 test -z "$ac_c_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest.$ac_objext; then
5963 ac_cv_type_signed=yes
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 ac_cv_type_signed=no
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
5974 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
5976 # The cast to long int works around a bug in the HP C Compiler
5977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5979 # This bug is HP SR number 8606223364.
5980 { echo "$as_me:$LINENO: checking size of signed" >&5
5981 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
5982 if test "${ac_cv_sizeof_signed+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 if test "$cross_compiling" = yes; then
5986 # Depending upon the size, compute the lo and hi bounds.
5987 cat >conftest.$ac_ext <<_ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5993 $ac_includes_default
5994 typedef signed ac__type_sizeof_;
5998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6005 rm -f conftest.$ac_objext
6006 if { (ac_try="$ac_compile"
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compile") 2>conftest.er1
6014 grep -v '^ *+' conftest.er1 >conftest.err
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest.$ac_objext; then
6024 cat >conftest.$ac_ext <<_ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 $ac_includes_default
6031 typedef signed ac__type_sizeof_;
6035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6042 rm -f conftest.$ac_objext
6043 if { (ac_try="$ac_compile"
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_compile") 2>conftest.er1
6051 grep -v '^ *+' conftest.er1 >conftest.err
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } && {
6056 test -z "$ac_c_werror_flag" ||
6057 test ! -s conftest.err
6058 } && test -s conftest.$ac_objext; then
6059 ac_hi=$ac_mid; break
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6064 ac_lo=`expr $ac_mid + 1`
6065 if test $ac_lo -le $ac_mid; then
6069 ac_mid=`expr 2 '*' $ac_mid + 1`
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 cat >conftest.$ac_ext <<_ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084 $ac_includes_default
6085 typedef signed ac__type_sizeof_;
6089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103 (eval "$ac_compile") 2>conftest.er1
6105 grep -v '^ *+' conftest.er1 >conftest.err
6107 cat conftest.err >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } && {
6110 test -z "$ac_c_werror_flag" ||
6111 test ! -s conftest.err
6112 } && test -s conftest.$ac_objext; then
6115 cat >conftest.$ac_ext <<_ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6121 $ac_includes_default
6122 typedef signed ac__type_sizeof_;
6126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_compile") 2>conftest.er1
6142 grep -v '^ *+' conftest.er1 >conftest.err
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest.$ac_objext; then
6150 ac_lo=$ac_mid; break
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 ac_hi=`expr '(' $ac_mid ')' - 1`
6156 if test $ac_mid -le $ac_hi; then
6160 ac_mid=`expr 2 '*' $ac_mid`
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 # Binary search between lo and hi bounds.
6177 while test "x$ac_lo" != "x$ac_hi"; do
6178 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6179 cat >conftest.$ac_ext <<_ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6185 $ac_includes_default
6186 typedef signed ac__type_sizeof_;
6190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6197 rm -f conftest.$ac_objext
6198 if { (ac_try="$ac_compile"
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_compile") 2>conftest.er1
6206 grep -v '^ *+' conftest.er1 >conftest.err
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } && {
6211 test -z "$ac_c_werror_flag" ||
6212 test ! -s conftest.err
6213 } && test -s conftest.$ac_objext; then
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6219 ac_lo=`expr '(' $ac_mid ')' + 1`
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 ?*) ac_cv_sizeof_signed=$ac_lo;;
6226 '') if test "$ac_cv_type_signed" = yes; then
6227 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6228 See \`config.log' for more details." >&5
6229 echo "$as_me: error: cannot compute sizeof (signed)
6230 See \`config.log' for more details." >&2;}
6231 { (exit 77); exit 77; }; }
6233 ac_cv_sizeof_signed=0
6237 cat >conftest.$ac_ext <<_ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6243 $ac_includes_default
6244 typedef signed ac__type_sizeof_;
6245 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6246 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6253 FILE *f = fopen ("conftest.val", "w");
6256 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6258 long int i = longval ();
6259 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6261 fprintf (f, "%ld\n", i);
6265 unsigned long int i = ulongval ();
6266 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6268 fprintf (f, "%lu\n", i);
6270 return ferror (f) || fclose (f) != 0;
6276 rm -f conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_link") 2>&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6287 { (case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_try") 2>&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_sizeof_signed=`cat conftest.val`
6298 echo "$as_me: program exited with status $ac_status" >&5
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6303 if test "$ac_cv_type_signed" = yes; then
6304 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6305 See \`config.log' for more details." >&5
6306 echo "$as_me: error: cannot compute sizeof (signed)
6307 See \`config.log' for more details." >&2;}
6308 { (exit 77); exit 77; }; }
6310 ac_cv_sizeof_signed=0
6313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6317 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
6318 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
6322 cat >>confdefs.h <<_ACEOF
6323 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
6327 { echo "$as_me:$LINENO: checking for unsigned" >&5
6328 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
6329 if test "${ac_cv_type_unsigned+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338 $ac_includes_default
6339 typedef unsigned ac__type_new_;
6343 if ((ac__type_new_ *) 0)
6345 if (sizeof (ac__type_new_))
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6360 grep -v '^ *+' conftest.er1 >conftest.err
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest.$ac_objext; then
6368 ac_cv_type_unsigned=yes
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 ac_cv_type_unsigned=no
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
6379 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
6381 # The cast to long int works around a bug in the HP C Compiler
6382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6384 # This bug is HP SR number 8606223364.
6385 { echo "$as_me:$LINENO: checking size of unsigned" >&5
6386 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
6387 if test "${ac_cv_sizeof_unsigned+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 if test "$cross_compiling" = yes; then
6391 # Depending upon the size, compute the lo and hi bounds.
6392 cat >conftest.$ac_ext <<_ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 $ac_includes_default
6399 typedef unsigned ac__type_sizeof_;
6403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6410 rm -f conftest.$ac_objext
6411 if { (ac_try="$ac_compile"
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_compile") 2>conftest.er1
6419 grep -v '^ *+' conftest.er1 >conftest.err
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } && {
6424 test -z "$ac_c_werror_flag" ||
6425 test ! -s conftest.err
6426 } && test -s conftest.$ac_objext; then
6429 cat >conftest.$ac_ext <<_ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6436 typedef unsigned ac__type_sizeof_;
6440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6447 rm -f conftest.$ac_objext
6448 if { (ac_try="$ac_compile"
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_compile") 2>conftest.er1
6456 grep -v '^ *+' conftest.er1 >conftest.err
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } && {
6461 test -z "$ac_c_werror_flag" ||
6462 test ! -s conftest.err
6463 } && test -s conftest.$ac_objext; then
6464 ac_hi=$ac_mid; break
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6469 ac_lo=`expr $ac_mid + 1`
6470 if test $ac_lo -le $ac_mid; then
6474 ac_mid=`expr 2 '*' $ac_mid + 1`
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 cat >conftest.$ac_ext <<_ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 $ac_includes_default
6490 typedef unsigned ac__type_sizeof_;
6494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6501 rm -f conftest.$ac_objext
6502 if { (ac_try="$ac_compile"
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_compile") 2>conftest.er1
6510 grep -v '^ *+' conftest.er1 >conftest.err
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } && {
6515 test -z "$ac_c_werror_flag" ||
6516 test ! -s conftest.err
6517 } && test -s conftest.$ac_objext; then
6520 cat >conftest.$ac_ext <<_ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6527 typedef unsigned ac__type_sizeof_;
6531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6538 rm -f conftest.$ac_objext
6539 if { (ac_try="$ac_compile"
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6547 grep -v '^ *+' conftest.er1 >conftest.err
6549 cat conftest.err >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6555 ac_lo=$ac_mid; break
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6560 ac_hi=`expr '(' $ac_mid ')' - 1`
6561 if test $ac_mid -le $ac_hi; then
6565 ac_mid=`expr 2 '*' $ac_mid`
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 # Binary search between lo and hi bounds.
6582 while test "x$ac_lo" != "x$ac_hi"; do
6583 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6584 cat >conftest.$ac_ext <<_ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 $ac_includes_default
6591 typedef unsigned ac__type_sizeof_;
6595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6602 rm -f conftest.$ac_objext
6603 if { (ac_try="$ac_compile"
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_compile") 2>conftest.er1
6611 grep -v '^ *+' conftest.er1 >conftest.err
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } && {
6616 test -z "$ac_c_werror_flag" ||
6617 test ! -s conftest.err
6618 } && test -s conftest.$ac_objext; then
6621 echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6624 ac_lo=`expr '(' $ac_mid ')' + 1`
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
6631 '') if test "$ac_cv_type_unsigned" = yes; then
6632 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6633 See \`config.log' for more details." >&5
6634 echo "$as_me: error: cannot compute sizeof (unsigned)
6635 See \`config.log' for more details." >&2;}
6636 { (exit 77); exit 77; }; }
6638 ac_cv_sizeof_unsigned=0
6642 cat >conftest.$ac_ext <<_ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6648 $ac_includes_default
6649 typedef unsigned ac__type_sizeof_;
6650 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6651 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6658 FILE *f = fopen ("conftest.val", "w");
6661 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6663 long int i = longval ();
6664 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6666 fprintf (f, "%ld\n", i);
6670 unsigned long int i = ulongval ();
6671 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6673 fprintf (f, "%lu\n", i);
6675 return ferror (f) || fclose (f) != 0;
6681 rm -f conftest$ac_exeext
6682 if { (ac_try="$ac_link"
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688 (eval "$ac_link") 2>&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6692 { (case "(($ac_try" in
6693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694 *) ac_try_echo=$ac_try;;
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697 (eval "$ac_try") 2>&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 ac_cv_sizeof_unsigned=`cat conftest.val`
6703 echo "$as_me: program exited with status $ac_status" >&5
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6708 if test "$ac_cv_type_unsigned" = yes; then
6709 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6710 See \`config.log' for more details." >&5
6711 echo "$as_me: error: cannot compute sizeof (unsigned)
6712 See \`config.log' for more details." >&2;}
6713 { (exit 77); exit 77; }; }
6715 ac_cv_sizeof_unsigned=0
6718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6722 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
6723 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
6727 cat >>confdefs.h <<_ACEOF
6728 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
6732 { echo "$as_me:$LINENO: checking for signed long" >&5
6733 echo $ECHO_N "checking for signed long... $ECHO_C" >&6; }
6734 if test "${ac_cv_type_signed_long+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 cat >conftest.$ac_ext <<_ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 $ac_includes_default
6744 typedef signed long ac__type_new_;
6748 if ((ac__type_new_ *) 0)
6750 if (sizeof (ac__type_new_))
6756 rm -f conftest.$ac_objext
6757 if { (ac_try="$ac_compile"
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_compile") 2>conftest.er1
6765 grep -v '^ *+' conftest.er1 >conftest.err
6767 cat conftest.err >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } && {
6770 test -z "$ac_c_werror_flag" ||
6771 test ! -s conftest.err
6772 } && test -s conftest.$ac_objext; then
6773 ac_cv_type_signed_long=yes
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6778 ac_cv_type_signed_long=no
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
6784 echo "${ECHO_T}$ac_cv_type_signed_long" >&6; }
6786 # The cast to long int works around a bug in the HP C Compiler
6787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6789 # This bug is HP SR number 8606223364.
6790 { echo "$as_me:$LINENO: checking size of signed long" >&5
6791 echo $ECHO_N "checking size of signed long... $ECHO_C" >&6; }
6792 if test "${ac_cv_sizeof_signed_long+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 if test "$cross_compiling" = yes; then
6796 # Depending upon the size, compute the lo and hi bounds.
6797 cat >conftest.$ac_ext <<_ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 $ac_includes_default
6804 typedef signed long ac__type_sizeof_;
6808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6815 rm -f conftest.$ac_objext
6816 if { (ac_try="$ac_compile"
6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6822 (eval "$ac_compile") 2>conftest.er1
6824 grep -v '^ *+' conftest.er1 >conftest.err
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } && {
6829 test -z "$ac_c_werror_flag" ||
6830 test ! -s conftest.err
6831 } && test -s conftest.$ac_objext; then
6834 cat >conftest.$ac_ext <<_ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6840 $ac_includes_default
6841 typedef signed long ac__type_sizeof_;
6845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6852 rm -f conftest.$ac_objext
6853 if { (ac_try="$ac_compile"
6855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6856 *) ac_try_echo=$ac_try;;
6858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6859 (eval "$ac_compile") 2>conftest.er1
6861 grep -v '^ *+' conftest.er1 >conftest.err
6863 cat conftest.err >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } && {
6866 test -z "$ac_c_werror_flag" ||
6867 test ! -s conftest.err
6868 } && test -s conftest.$ac_objext; then
6869 ac_hi=$ac_mid; break
6871 echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6874 ac_lo=`expr $ac_mid + 1`
6875 if test $ac_lo -le $ac_mid; then
6879 ac_mid=`expr 2 '*' $ac_mid + 1`
6882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6888 cat >conftest.$ac_ext <<_ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 $ac_includes_default
6895 typedef signed long ac__type_sizeof_;
6899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6906 rm -f conftest.$ac_objext
6907 if { (ac_try="$ac_compile"
6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913 (eval "$ac_compile") 2>conftest.er1
6915 grep -v '^ *+' conftest.er1 >conftest.err
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } && {
6920 test -z "$ac_c_werror_flag" ||
6921 test ! -s conftest.err
6922 } && test -s conftest.$ac_objext; then
6925 cat >conftest.$ac_ext <<_ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 $ac_includes_default
6932 typedef signed long ac__type_sizeof_;
6936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6943 rm -f conftest.$ac_objext
6944 if { (ac_try="$ac_compile"
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950 (eval "$ac_compile") 2>conftest.er1
6952 grep -v '^ *+' conftest.er1 >conftest.err
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && {
6957 test -z "$ac_c_werror_flag" ||
6958 test ! -s conftest.err
6959 } && test -s conftest.$ac_objext; then
6960 ac_lo=$ac_mid; break
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 ac_hi=`expr '(' $ac_mid ')' - 1`
6966 if test $ac_mid -le $ac_hi; then
6970 ac_mid=`expr 2 '*' $ac_mid`
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 # Binary search between lo and hi bounds.
6987 while test "x$ac_lo" != "x$ac_hi"; do
6988 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6989 cat >conftest.$ac_ext <<_ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 $ac_includes_default
6996 typedef signed long ac__type_sizeof_;
7000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7007 rm -f conftest.$ac_objext
7008 if { (ac_try="$ac_compile"
7010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011 *) ac_try_echo=$ac_try;;
7013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7014 (eval "$ac_compile") 2>conftest.er1
7016 grep -v '^ *+' conftest.er1 >conftest.err
7018 cat conftest.err >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && {
7021 test -z "$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 } && test -s conftest.$ac_objext; then
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_lo=`expr '(' $ac_mid ')' + 1`
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 ?*) ac_cv_sizeof_signed_long=$ac_lo;;
7036 '') if test "$ac_cv_type_signed_long" = yes; then
7037 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7038 See \`config.log' for more details." >&5
7039 echo "$as_me: error: cannot compute sizeof (signed long)
7040 See \`config.log' for more details." >&2;}
7041 { (exit 77); exit 77; }; }
7043 ac_cv_sizeof_signed_long=0
7047 cat >conftest.$ac_ext <<_ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 $ac_includes_default
7054 typedef signed long ac__type_sizeof_;
7055 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7056 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7063 FILE *f = fopen ("conftest.val", "w");
7066 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7068 long int i = longval ();
7069 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7071 fprintf (f, "%ld\n", i);
7075 unsigned long int i = ulongval ();
7076 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7078 fprintf (f, "%lu\n", i);
7080 return ferror (f) || fclose (f) != 0;
7086 rm -f conftest$ac_exeext
7087 if { (ac_try="$ac_link"
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_link") 2>&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7097 { (case "(($ac_try" in
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102 (eval "$ac_try") 2>&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7106 ac_cv_sizeof_signed_long=`cat conftest.val`
7108 echo "$as_me: program exited with status $ac_status" >&5
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7113 if test "$ac_cv_type_signed_long" = yes; then
7114 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7115 See \`config.log' for more details." >&5
7116 echo "$as_me: error: cannot compute sizeof (signed long)
7117 See \`config.log' for more details." >&2;}
7118 { (exit 77); exit 77; }; }
7120 ac_cv_sizeof_signed_long=0
7123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7127 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
7128 echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6; }
7132 cat >>confdefs.h <<_ACEOF
7133 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
7137 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7138 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7139 if test "${ac_cv_type_unsigned_long+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 cat >conftest.$ac_ext <<_ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7148 $ac_includes_default
7149 typedef unsigned long ac__type_new_;
7153 if ((ac__type_new_ *) 0)
7155 if (sizeof (ac__type_new_))
7161 rm -f conftest.$ac_objext
7162 if { (ac_try="$ac_compile"
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168 (eval "$ac_compile") 2>conftest.er1
7170 grep -v '^ *+' conftest.er1 >conftest.err
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } && {
7175 test -z "$ac_c_werror_flag" ||
7176 test ! -s conftest.err
7177 } && test -s conftest.$ac_objext; then
7178 ac_cv_type_unsigned_long=yes
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_cv_type_unsigned_long=no
7186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7189 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7191 # The cast to long int works around a bug in the HP C Compiler
7192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7194 # This bug is HP SR number 8606223364.
7195 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7196 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7197 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 if test "$cross_compiling" = yes; then
7201 # Depending upon the size, compute the lo and hi bounds.
7202 cat >conftest.$ac_ext <<_ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 $ac_includes_default
7209 typedef unsigned long ac__type_sizeof_;
7213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7220 rm -f conftest.$ac_objext
7221 if { (ac_try="$ac_compile"
7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7227 (eval "$ac_compile") 2>conftest.er1
7229 grep -v '^ *+' conftest.er1 >conftest.err
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } && {
7234 test -z "$ac_c_werror_flag" ||
7235 test ! -s conftest.err
7236 } && test -s conftest.$ac_objext; then
7239 cat >conftest.$ac_ext <<_ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7246 typedef unsigned long ac__type_sizeof_;
7250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_compile") 2>conftest.er1
7266 grep -v '^ *+' conftest.er1 >conftest.err
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest.$ac_objext; then
7274 ac_hi=$ac_mid; break
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7279 ac_lo=`expr $ac_mid + 1`
7280 if test $ac_lo -le $ac_mid; then
7284 ac_mid=`expr 2 '*' $ac_mid + 1`
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 cat >conftest.$ac_ext <<_ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 $ac_includes_default
7300 typedef unsigned long ac__type_sizeof_;
7304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7311 rm -f conftest.$ac_objext
7312 if { (ac_try="$ac_compile"
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7330 cat >conftest.$ac_ext <<_ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 $ac_includes_default
7337 typedef unsigned long ac__type_sizeof_;
7341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 ac_lo=$ac_mid; break
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_hi=`expr '(' $ac_mid ')' - 1`
7371 if test $ac_mid -le $ac_hi; then
7375 ac_mid=`expr 2 '*' $ac_mid`
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 # Binary search between lo and hi bounds.
7392 while test "x$ac_lo" != "x$ac_hi"; do
7393 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 $ac_includes_default
7401 typedef unsigned long ac__type_sizeof_;
7405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7412 rm -f conftest.$ac_objext
7413 if { (ac_try="$ac_compile"
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419 (eval "$ac_compile") 2>conftest.er1
7421 grep -v '^ *+' conftest.er1 >conftest.err
7423 cat conftest.err >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_c_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest.$ac_objext; then
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 ac_lo=`expr '(' $ac_mid ')' + 1`
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7441 '') if test "$ac_cv_type_unsigned_long" = yes; then
7442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7443 See \`config.log' for more details." >&5
7444 echo "$as_me: error: cannot compute sizeof (unsigned long)
7445 See \`config.log' for more details." >&2;}
7446 { (exit 77); exit 77; }; }
7448 ac_cv_sizeof_unsigned_long=0
7452 cat >conftest.$ac_ext <<_ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 $ac_includes_default
7459 typedef unsigned long ac__type_sizeof_;
7460 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7461 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7468 FILE *f = fopen ("conftest.val", "w");
7471 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7473 long int i = longval ();
7474 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7476 fprintf (f, "%ld\n", i);
7480 unsigned long int i = ulongval ();
7481 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7483 fprintf (f, "%lu\n", i);
7485 return ferror (f) || fclose (f) != 0;
7491 rm -f conftest$ac_exeext
7492 if { (ac_try="$ac_link"
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_link") 2>&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7502 { (case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_try") 2>&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; }; then
7511 ac_cv_sizeof_unsigned_long=`cat conftest.val`
7513 echo "$as_me: program exited with status $ac_status" >&5
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7518 if test "$ac_cv_type_unsigned_long" = yes; then
7519 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7520 See \`config.log' for more details." >&5
7521 echo "$as_me: error: cannot compute sizeof (unsigned long)
7522 See \`config.log' for more details." >&2;}
7523 { (exit 77); exit 77; }; }
7525 ac_cv_sizeof_unsigned_long=0
7528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7532 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7533 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7537 cat >>confdefs.h <<_ACEOF
7538 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7542 { echo "$as_me:$LINENO: checking for signed long long" >&5
7543 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7544 if test "${ac_cv_type_signed_long_long+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 cat >conftest.$ac_ext <<_ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 $ac_includes_default
7554 typedef signed long long ac__type_new_;
7558 if ((ac__type_new_ *) 0)
7560 if (sizeof (ac__type_new_))
7566 rm -f conftest.$ac_objext
7567 if { (ac_try="$ac_compile"
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573 (eval "$ac_compile") 2>conftest.er1
7575 grep -v '^ *+' conftest.er1 >conftest.err
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } && {
7580 test -z "$ac_c_werror_flag" ||
7581 test ! -s conftest.err
7582 } && test -s conftest.$ac_objext; then
7583 ac_cv_type_signed_long_long=yes
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_cv_type_signed_long_long=no
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7594 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7596 # The cast to long int works around a bug in the HP C Compiler
7597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7599 # This bug is HP SR number 8606223364.
7600 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7601 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7602 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 if test "$cross_compiling" = yes; then
7606 # Depending upon the size, compute the lo and hi bounds.
7607 cat >conftest.$ac_ext <<_ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7614 typedef signed long long ac__type_sizeof_;
7618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7625 rm -f conftest.$ac_objext
7626 if { (ac_try="$ac_compile"
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_compile") 2>conftest.er1
7634 grep -v '^ *+' conftest.er1 >conftest.err
7636 cat conftest.err >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && {
7639 test -z "$ac_c_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest.$ac_objext; then
7644 cat >conftest.$ac_ext <<_ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 $ac_includes_default
7651 typedef signed long long ac__type_sizeof_;
7655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_compile") 2>conftest.er1
7671 grep -v '^ *+' conftest.er1 >conftest.err
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } && {
7676 test -z "$ac_c_werror_flag" ||
7677 test ! -s conftest.err
7678 } && test -s conftest.$ac_objext; then
7679 ac_hi=$ac_mid; break
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_lo=`expr $ac_mid + 1`
7685 if test $ac_lo -le $ac_mid; then
7689 ac_mid=`expr 2 '*' $ac_mid + 1`
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7698 cat >conftest.$ac_ext <<_ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 $ac_includes_default
7705 typedef signed long long ac__type_sizeof_;
7709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
7719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720 *) ac_try_echo=$ac_try;;
7722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7723 (eval "$ac_compile") 2>conftest.er1
7725 grep -v '^ *+' conftest.er1 >conftest.err
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } && {
7730 test -z "$ac_c_werror_flag" ||
7731 test ! -s conftest.err
7732 } && test -s conftest.$ac_objext; then
7735 cat >conftest.$ac_ext <<_ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 $ac_includes_default
7742 typedef signed long long ac__type_sizeof_;
7746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7753 rm -f conftest.$ac_objext
7754 if { (ac_try="$ac_compile"
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_compile") 2>conftest.er1
7762 grep -v '^ *+' conftest.er1 >conftest.err
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && {
7767 test -z "$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 } && test -s conftest.$ac_objext; then
7770 ac_lo=$ac_mid; break
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7775 ac_hi=`expr '(' $ac_mid ')' - 1`
7776 if test $ac_mid -le $ac_hi; then
7780 ac_mid=`expr 2 '*' $ac_mid`
7783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796 # Binary search between lo and hi bounds.
7797 while test "x$ac_lo" != "x$ac_hi"; do
7798 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7799 cat >conftest.$ac_ext <<_ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 $ac_includes_default
7806 typedef signed long long ac__type_sizeof_;
7810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7817 rm -f conftest.$ac_objext
7818 if { (ac_try="$ac_compile"
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_compile") 2>conftest.er1
7826 grep -v '^ *+' conftest.er1 >conftest.err
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && {
7831 test -z "$ac_c_werror_flag" ||
7832 test ! -s conftest.err
7833 } && test -s conftest.$ac_objext; then
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7839 ac_lo=`expr '(' $ac_mid ')' + 1`
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7846 '') if test "$ac_cv_type_signed_long_long" = yes; then
7847 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7848 See \`config.log' for more details." >&5
7849 echo "$as_me: error: cannot compute sizeof (signed long long)
7850 See \`config.log' for more details." >&2;}
7851 { (exit 77); exit 77; }; }
7853 ac_cv_sizeof_signed_long_long=0
7857 cat >conftest.$ac_ext <<_ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 $ac_includes_default
7864 typedef signed long long ac__type_sizeof_;
7865 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7866 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7873 FILE *f = fopen ("conftest.val", "w");
7876 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7878 long int i = longval ();
7879 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7881 fprintf (f, "%ld\n", i);
7885 unsigned long int i = ulongval ();
7886 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7888 fprintf (f, "%lu\n", i);
7890 return ferror (f) || fclose (f) != 0;
7896 rm -f conftest$ac_exeext
7897 if { (ac_try="$ac_link"
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_link") 2>&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7907 { (case "(($ac_try" in
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912 (eval "$ac_try") 2>&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7918 echo "$as_me: program exited with status $ac_status" >&5
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7923 if test "$ac_cv_type_signed_long_long" = yes; then
7924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7925 See \`config.log' for more details." >&5
7926 echo "$as_me: error: cannot compute sizeof (signed long long)
7927 See \`config.log' for more details." >&2;}
7928 { (exit 77); exit 77; }; }
7930 ac_cv_sizeof_signed_long_long=0
7933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7937 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7938 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
7942 cat >>confdefs.h <<_ACEOF
7943 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7947 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
7948 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
7949 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 cat >conftest.$ac_ext <<_ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7958 $ac_includes_default
7959 typedef unsigned long long ac__type_new_;
7963 if ((ac__type_new_ *) 0)
7965 if (sizeof (ac__type_new_))
7971 rm -f conftest.$ac_objext
7972 if { (ac_try="$ac_compile"
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_compile") 2>conftest.er1
7980 grep -v '^ *+' conftest.er1 >conftest.err
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && {
7985 test -z "$ac_c_werror_flag" ||
7986 test ! -s conftest.err
7987 } && test -s conftest.$ac_objext; then
7988 ac_cv_type_unsigned_long_long=yes
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 ac_cv_type_unsigned_long_long=no
7996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7999 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8001 # The cast to long int works around a bug in the HP C Compiler
8002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8004 # This bug is HP SR number 8606223364.
8005 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
8006 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
8007 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 if test "$cross_compiling" = yes; then
8011 # Depending upon the size, compute the lo and hi bounds.
8012 cat >conftest.$ac_ext <<_ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 $ac_includes_default
8019 typedef unsigned long long ac__type_sizeof_;
8023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8030 rm -f conftest.$ac_objext
8031 if { (ac_try="$ac_compile"
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 (eval "$ac_compile") 2>conftest.er1
8039 grep -v '^ *+' conftest.er1 >conftest.err
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && {
8044 test -z "$ac_c_werror_flag" ||
8045 test ! -s conftest.err
8046 } && test -s conftest.$ac_objext; then
8049 cat >conftest.$ac_ext <<_ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8055 $ac_includes_default
8056 typedef unsigned long long ac__type_sizeof_;
8060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_compile") 2>conftest.er1
8076 grep -v '^ *+' conftest.er1 >conftest.err
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && {
8081 test -z "$ac_c_werror_flag" ||
8082 test ! -s conftest.err
8083 } && test -s conftest.$ac_objext; then
8084 ac_hi=$ac_mid; break
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8089 ac_lo=`expr $ac_mid + 1`
8090 if test $ac_lo -le $ac_mid; then
8094 ac_mid=`expr 2 '*' $ac_mid + 1`
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8103 cat >conftest.$ac_ext <<_ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 $ac_includes_default
8110 typedef unsigned long long ac__type_sizeof_;
8114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8121 rm -f conftest.$ac_objext
8122 if { (ac_try="$ac_compile"
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_compile") 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest.$ac_objext; then
8140 cat >conftest.$ac_ext <<_ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8146 $ac_includes_default
8147 typedef unsigned long long ac__type_sizeof_;
8151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8158 rm -f conftest.$ac_objext
8159 if { (ac_try="$ac_compile"
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_compile") 2>conftest.er1
8167 grep -v '^ *+' conftest.er1 >conftest.err
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest.$ac_objext; then
8175 ac_lo=$ac_mid; break
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_hi=`expr '(' $ac_mid ')' - 1`
8181 if test $ac_mid -le $ac_hi; then
8185 ac_mid=`expr 2 '*' $ac_mid`
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 # Binary search between lo and hi bounds.
8202 while test "x$ac_lo" != "x$ac_hi"; do
8203 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8204 cat >conftest.$ac_ext <<_ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 $ac_includes_default
8211 typedef unsigned long long ac__type_sizeof_;
8215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8222 rm -f conftest.$ac_objext
8223 if { (ac_try="$ac_compile"
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_compile") 2>conftest.er1
8231 grep -v '^ *+' conftest.er1 >conftest.err
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_c_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest.$ac_objext; then
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8244 ac_lo=`expr '(' $ac_mid ')' + 1`
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
8251 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
8252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8253 See \`config.log' for more details." >&5
8254 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8255 See \`config.log' for more details." >&2;}
8256 { (exit 77); exit 77; }; }
8258 ac_cv_sizeof_unsigned_long_long=0
8262 cat >conftest.$ac_ext <<_ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 $ac_includes_default
8269 typedef unsigned long long ac__type_sizeof_;
8270 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8271 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8278 FILE *f = fopen ("conftest.val", "w");
8281 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8283 long int i = longval ();
8284 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8286 fprintf (f, "%ld\n", i);
8290 unsigned long int i = ulongval ();
8291 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8293 fprintf (f, "%lu\n", i);
8295 return ferror (f) || fclose (f) != 0;
8301 rm -f conftest$ac_exeext
8302 if { (ac_try="$ac_link"
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_link") 2>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8312 { (case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_try") 2>&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
8323 echo "$as_me: program exited with status $ac_status" >&5
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8328 if test "$ac_cv_type_unsigned_long_long" = yes; then
8329 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8330 See \`config.log' for more details." >&5
8331 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8332 See \`config.log' for more details." >&2;}
8333 { (exit 77); exit 77; }; }
8335 ac_cv_sizeof_unsigned_long_long=0
8338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8342 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
8343 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
8347 cat >>confdefs.h <<_ACEOF
8348 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8355 # Extract the first word of "freetype-config", so it can be a program name with args.
8356 set dummy freetype-config; ac_word=$2
8357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8359 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 case $FREETYPE_CONFIG in
8364 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8369 for as_dir in $as_dummy
8372 test -z "$as_dir" && as_dir=.
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8375 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8386 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8387 if test -n "$FREETYPE_CONFIG"; then
8388 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8389 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8391 { echo "$as_me:$LINENO: result: no" >&5
8392 echo "${ECHO_T}no" >&6; }
8397 OLDCPPFLAGS="${CPPFLAGS}"
8399 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8400 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8401 else if test -d /usr/include/freetype2; then
8402 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8403 else if test -d /usr/local/include/freetype2; then
8404 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8409 if test "x${FREETYPE_CONFIG}" '=' "x";then
8410 # if we didn't find the freetype-config program, we won't
8411 # know where the libs are expected to be. So just blindly
8412 # try to link against them.
8413 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8414 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8415 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 ac_check_lib_save_LIBS=$LIBS
8419 LIBS="-lfreetype $LIBS"
8420 cat >conftest.$ac_ext <<_ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8427 /* Override any GCC internal prototype to avoid an error.
8428 Use char because int might match the return type of a GCC
8429 builtin and then its argument prototype would still apply. */
8433 char FT_Init_FreeType ();
8437 return FT_Init_FreeType ();
8442 rm -f conftest.$ac_objext conftest$ac_exeext
8443 if { (ac_try="$ac_link"
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_link") 2>conftest.er1
8451 grep -v '^ *+' conftest.er1 >conftest.err
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } && {
8456 test -z "$ac_c_werror_flag" ||
8457 test ! -s conftest.err
8458 } && test -s conftest$ac_exeext &&
8459 $as_test_x conftest$ac_exeext; then
8460 ac_cv_lib_freetype_FT_Init_FreeType=yes
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 ac_cv_lib_freetype_FT_Init_FreeType=no
8468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8469 conftest$ac_exeext conftest.$ac_ext
8470 LIBS=$ac_check_lib_save_LIBS
8472 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8473 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8474 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8481 for ac_header in ft2build.h
8483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 ac_res=`eval echo '${'$as_ac_Header'}'`
8491 { echo "$as_me:$LINENO: result: $ac_res" >&5
8492 echo "${ECHO_T}$ac_res" >&6; }
8494 # Is the header compilable?
8495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8497 cat >conftest.$ac_ext <<_ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8503 $ac_includes_default
8504 #include <$ac_header>
8506 rm -f conftest.$ac_objext
8507 if { (ac_try="$ac_compile"
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_compile") 2>conftest.er1
8515 grep -v '^ *+' conftest.er1 >conftest.err
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } && {
8520 test -z "$ac_c_werror_flag" ||
8521 test ! -s conftest.err
8522 } && test -s conftest.$ac_objext; then
8523 ac_header_compiler=yes
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8528 ac_header_compiler=no
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8533 echo "${ECHO_T}$ac_header_compiler" >&6; }
8535 # Is the header present?
8536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544 #include <$ac_header>
8546 if { (ac_try="$ac_cpp conftest.$ac_ext"
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8554 grep -v '^ *+' conftest.er1 >conftest.err
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } >/dev/null && {
8559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8562 ac_header_preproc=yes
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 ac_header_preproc=no
8570 rm -f conftest.err conftest.$ac_ext
8571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8572 echo "${ECHO_T}$ac_header_preproc" >&6; }
8574 # So? What about this header?
8575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8581 ac_header_preproc=yes
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 eval "$as_ac_Header=\$ac_header_preproc"
8606 ac_res=`eval echo '${'$as_ac_Header'}'`
8607 { echo "$as_me:$LINENO: result: $ac_res" >&5
8608 echo "${ECHO_T}$ac_res" >&6; }
8611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8612 cat >>confdefs.h <<_ACEOF
8613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8620 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8622 for ac_header in freetype/freetype.h
8624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 ac_res=`eval echo '${'$as_ac_Header'}'`
8632 { echo "$as_me:$LINENO: result: $ac_res" >&5
8633 echo "${ECHO_T}$ac_res" >&6; }
8635 # Is the header compilable?
8636 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8638 cat >conftest.$ac_ext <<_ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 $ac_includes_default
8645 #include <$ac_header>
8647 rm -f conftest.$ac_objext
8648 if { (ac_try="$ac_compile"
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_compile") 2>conftest.er1
8656 grep -v '^ *+' conftest.er1 >conftest.err
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } && {
8661 test -z "$ac_c_werror_flag" ||
8662 test ! -s conftest.err
8663 } && test -s conftest.$ac_objext; then
8664 ac_header_compiler=yes
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8669 ac_header_compiler=no
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8674 echo "${ECHO_T}$ac_header_compiler" >&6; }
8676 # Is the header present?
8677 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8679 cat >conftest.$ac_ext <<_ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 #include <$ac_header>
8687 if { (ac_try="$ac_cpp conftest.$ac_ext"
8689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690 *) ac_try_echo=$ac_try;;
8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8695 grep -v '^ *+' conftest.er1 >conftest.err
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } >/dev/null && {
8700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8701 test ! -s conftest.err
8703 ac_header_preproc=yes
8705 echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8708 ac_header_preproc=no
8711 rm -f conftest.err conftest.$ac_ext
8712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8713 echo "${ECHO_T}$ac_header_preproc" >&6; }
8715 # So? What about this header?
8716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8722 ac_header_preproc=yes
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 eval "$as_ac_Header=\$ac_header_preproc"
8747 ac_res=`eval echo '${'$as_ac_Header'}'`
8748 { echo "$as_me:$LINENO: result: $ac_res" >&5
8749 echo "${ECHO_T}$ac_res" >&6; }
8752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8753 cat >>confdefs.h <<_ACEOF
8754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8756 HAVE_FREETYPE_FREETYPE_H=1
8763 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8764 "x${FREETYPE_CONFIG}" '!=' "x";then
8765 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8768 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8773 if test "x${HAVE_FREETYPE}" = "x1"; then
8774 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8775 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8777 LIBS="$LIBS -lfreetype"
8780 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8781 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8784 { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8785 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8787 cat > conftest.c << EOF
8788 $HAVE_FT2BUILD_H_DEFINE
8790 #ifdef HAVE_FT2BUILD_H
8791 #include <ft2build.h>
8792 #include FT_FREETYPE_H
8795 #include FT_SFNT_NAMES_H
8796 #include FT_TRUETYPE_IDS_H
8797 #include FT_OUTLINE_H
8799 #include <freetype/freetype.h>
8800 #include <freetype/ftglyph.h>
8801 #include <freetype/ftsizes.h>
8802 #include <freetype/ftsnames.h>
8803 #include <freetype/ttnameid.h>
8804 #include <freetype/ftoutln.h>
8809 FT_Library ftlibrary;
8821 FT_Init_FreeType(&ftlibrary);
8822 FT_New_Face(ftlibrary, "filename", 0, &face);
8823 i = face->num_glyphs - 1;
8824 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8825 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8826 FT_Get_Postscript_Name(face);
8827 FT_Get_Char_Index(face, 33);
8828 FT_Get_First_Char(face, &i);
8829 FT_Get_Next_Char(face, 33, &i);
8830 if(FT_HAS_GLYPH_NAMES(face)) {
8831 FT_Get_Glyph_Name(face, 33, name, 127);
8833 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8834 FT_Get_Glyph(face->glyph, &glyph);
8835 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8836 FT_Done_Glyph(glyph);
8838 FT_Done_FreeType(ftlibrary);
8843 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8844 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8845 { echo "$as_me:$LINENO: result: yes" >&5
8846 echo "${ECHO_T}yes" >&6; }
8847 cat >>confdefs.h <<_ACEOF
8848 #define HAVE_FREETYPE 1
8851 cat >>confdefs.h <<_ACEOF
8852 #define HAVE_FREETYPE_FREETYPE_H 1
8855 cat >>confdefs.h <<_ACEOF
8856 #define USE_FREETYPE 1
8860 echo "configure: failed program was:" >&5
8863 { echo "$as_me:$LINENO: result: no" >&5
8864 echo "${ECHO_T}no" >&6; }
8869 # if the above didn't work out, reset all changes to the compiler variables.
8870 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8871 CPPFLAGS=$OLDCPPFLAGS
8877 OLDCPPFLAGS="${CPPFLAGS}"
8880 if test -d /usr/include/fontconfig; then
8881 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8884 { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8885 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; }
8886 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 ac_check_lib_save_LIBS=$LIBS
8890 LIBS="-lfontconfig $LIBS"
8891 cat >conftest.$ac_ext <<_ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8898 /* Override any GCC internal prototype to avoid an error.
8899 Use char because int might match the return type of a GCC
8900 builtin and then its argument prototype would still apply. */
8913 rm -f conftest.$ac_objext conftest$ac_exeext
8914 if { (ac_try="$ac_link"
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_link") 2>conftest.er1
8922 grep -v '^ *+' conftest.er1 >conftest.err
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest$ac_exeext &&
8930 $as_test_x conftest$ac_exeext; then
8931 ac_cv_lib_fontconfig_FcInit=yes
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8936 ac_cv_lib_fontconfig_FcInit=no
8939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8940 conftest$ac_exeext conftest.$ac_ext
8941 LIBS=$ac_check_lib_save_LIBS
8943 { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8944 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; }
8945 if test $ac_cv_lib_fontconfig_FcInit = yes; then
8946 HAVE_LIB_FONTCONFIG=1
8950 for ac_header in fontconfig.h
8952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 ac_res=`eval echo '${'$as_ac_Header'}'`
8960 { echo "$as_me:$LINENO: result: $ac_res" >&5
8961 echo "${ECHO_T}$ac_res" >&6; }
8963 # Is the header compilable?
8964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8966 cat >conftest.$ac_ext <<_ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8972 $ac_includes_default
8973 #include <$ac_header>
8975 rm -f conftest.$ac_objext
8976 if { (ac_try="$ac_compile"
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982 (eval "$ac_compile") 2>conftest.er1
8984 grep -v '^ *+' conftest.er1 >conftest.err
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } && {
8989 test -z "$ac_c_werror_flag" ||
8990 test ! -s conftest.err
8991 } && test -s conftest.$ac_objext; then
8992 ac_header_compiler=yes
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 ac_header_compiler=no
9000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9002 echo "${ECHO_T}$ac_header_compiler" >&6; }
9004 # Is the header present?
9005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9007 cat >conftest.$ac_ext <<_ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9013 #include <$ac_header>
9015 if { (ac_try="$ac_cpp conftest.$ac_ext"
9017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018 *) ac_try_echo=$ac_try;;
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9023 grep -v '^ *+' conftest.er1 >conftest.err
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } >/dev/null && {
9028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9029 test ! -s conftest.err
9031 ac_header_preproc=yes
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9036 ac_header_preproc=no
9039 rm -f conftest.err conftest.$ac_ext
9040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9041 echo "${ECHO_T}$ac_header_preproc" >&6; }
9043 # So? What about this header?
9044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9050 ac_header_preproc=yes
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 eval "$as_ac_Header=\$ac_header_preproc"
9075 ac_res=`eval echo '${'$as_ac_Header'}'`
9076 { echo "$as_me:$LINENO: result: $ac_res" >&5
9077 echo "${ECHO_T}$ac_res" >&6; }
9080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9081 cat >>confdefs.h <<_ACEOF
9082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9090 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
9091 if test "x${HAVE_FONTCONFIG_H}" != "x";then
9096 if test "x${HAVE_FONTCONFIG}" = "x1"; then
9097 LIBS="$LIBS -lfontconfig"
9098 { echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
9099 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6; }
9101 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
9102 #move freetype library to the end of libraries, otherwise fontconfig
9104 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
9107 cat > conftest.c << EOF
9109 #include <fontconfig.h>
9113 FcPattern *pattern, *match;
9116 char*s1="abc",*s2="ABC";
9119 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
9120 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
9121 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
9122 FcConfigSubstitute(0, pattern, FcMatchPattern);
9123 FcDefaultSubstitute(pattern);
9124 match = FcFontMatch(0, pattern, &result);
9125 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
9126 FcPatternPrint(pattern);
9127 FcPatternDestroy(pattern);
9128 FcPatternDestroy(match);
9133 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9134 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9135 { echo "$as_me:$LINENO: result: yes" >&5
9136 echo "${ECHO_T}yes" >&6; }
9137 cat >>confdefs.h <<_ACEOF
9138 #define HAVE_FONTCONFIG 1
9142 echo "configure: failed program was:" >&5
9145 { echo "$as_me:$LINENO: result: no" >&5
9146 echo "${ECHO_T}no" >&6; }
9151 # if the above didn't work out, reset all changes to the compiler variables.
9152 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
9153 CPPFLAGS=$OLDCPPFLAGS
9160 if test "x${DISABLE_LAME}" = "xtrue"; then
9161 echo "*" Disabling lame support...
9163 # old lame code at lib/lame
9164 if test -f lib/lame/Makefile.in; then
9165 lame_objects="lame/psymodel.\$(O) lame/fft.\$(O) lame/newmdct.\$(O) lame/quantize.\$(O) lame/takehiro.\$(O) lame/reservoir.\$(O) lame/quantize_pvt.\$(O) lame/vbrquantize.\$(O) lame/encoder.\$(O) lame/id3tag.\$(O) lame/version.\$(O) lame/tables.\$(O) lame/util.\$(O) lame/bitstream.\$(O) lame/set_get.\$(O) lame/VbrTag.\$(O) lame/lame.\$(O)"
9166 lame_makefile="lib/lame/Makefile"
9167 CPPFLAGS="$CPPFLAGS -Ilame"
9168 cat >>confdefs.h <<_ACEOF
9173 if test -d /usr/include/lame; then
9174 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9176 if test -d /usr/local/include/lame; then
9177 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9181 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9182 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
9183 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 ac_check_lib_save_LIBS=$LIBS
9187 LIBS="-lmp3lame $LIBS"
9188 cat >conftest.$ac_ext <<_ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9195 /* Override any GCC internal prototype to avoid an error.
9196 Use char because int might match the return type of a GCC
9197 builtin and then its argument prototype would still apply. */
9205 return lame_init ();
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (ac_try="$ac_link"
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_link") 2>conftest.er1
9219 grep -v '^ *+' conftest.er1 >conftest.err
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } && {
9224 test -z "$ac_c_werror_flag" ||
9225 test ! -s conftest.err
9226 } && test -s conftest$ac_exeext &&
9227 $as_test_x conftest$ac_exeext; then
9228 ac_cv_lib_mp3lame_lame_init=yes
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9233 ac_cv_lib_mp3lame_lame_init=no
9236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9240 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9241 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9242 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9243 cat >>confdefs.h <<_ACEOF
9244 #define HAVE_LIBMP3LAME 1
9247 LIBS="-lmp3lame $LIBS"
9254 for ac_header in lame.h
9256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 ac_res=`eval echo '${'$as_ac_Header'}'`
9264 { echo "$as_me:$LINENO: result: $ac_res" >&5
9265 echo "${ECHO_T}$ac_res" >&6; }
9267 # Is the header compilable?
9268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9270 cat >conftest.$ac_ext <<_ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9276 $ac_includes_default
9277 #include <$ac_header>
9279 rm -f conftest.$ac_objext
9280 if { (ac_try="$ac_compile"
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_compile") 2>conftest.er1
9288 grep -v '^ *+' conftest.er1 >conftest.err
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && {
9293 test -z "$ac_c_werror_flag" ||
9294 test ! -s conftest.err
9295 } && test -s conftest.$ac_objext; then
9296 ac_header_compiler=yes
9298 echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9301 ac_header_compiler=no
9304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9306 echo "${ECHO_T}$ac_header_compiler" >&6; }
9308 # Is the header present?
9309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9311 cat >conftest.$ac_ext <<_ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9317 #include <$ac_header>
9319 if { (ac_try="$ac_cpp conftest.$ac_ext"
9321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9322 *) ac_try_echo=$ac_try;;
9324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9327 grep -v '^ *+' conftest.er1 >conftest.err
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } >/dev/null && {
9332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9333 test ! -s conftest.err
9335 ac_header_preproc=yes
9337 echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9340 ac_header_preproc=no
9343 rm -f conftest.err conftest.$ac_ext
9344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9345 echo "${ECHO_T}$ac_header_preproc" >&6; }
9347 # So? What about this header?
9348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9354 ac_header_preproc=yes
9357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 eval "$as_ac_Header=\$ac_header_preproc"
9379 ac_res=`eval echo '${'$as_ac_Header'}'`
9380 { echo "$as_me:$LINENO: result: $ac_res" >&5
9381 echo "${ECHO_T}$ac_res" >&6; }
9384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9385 cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9393 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
9394 cat >>confdefs.h <<_ACEOF
9403 # ------------------------------------------------------------------
9407 for ac_prog in avifile-config
9409 # Extract the first word of "$ac_prog", so it can be a program name with args.
9410 set dummy $ac_prog; ac_word=$2
9411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9413 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 if test -n "$AVIFILE_CONFIG"; then
9417 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423 test -z "$as_dir" && as_dir=.
9424 for ac_exec_ext in '' $ac_executable_extensions; do
9425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9426 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9436 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9437 if test -n "$AVIFILE_CONFIG"; then
9438 { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9439 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9441 { echo "$as_me:$LINENO: result: no" >&5
9442 echo "${ECHO_T}no" >&6; }
9446 test -n "$AVIFILE_CONFIG" && break
9450 if test "x$AVIFILE_CONFIG" '!=' "x";then
9451 OLDCPPFLAGS="$CPPFLAGS"
9452 # temporarily add avifile paths to CPPFLAGS...
9453 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9456 for ac_header in avifile/version.h version.h
9458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 ac_res=`eval echo '${'$as_ac_Header'}'`
9466 { echo "$as_me:$LINENO: result: $ac_res" >&5
9467 echo "${ECHO_T}$ac_res" >&6; }
9469 # Is the header compilable?
9470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9472 cat >conftest.$ac_ext <<_ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478 $ac_includes_default
9479 #include <$ac_header>
9481 rm -f conftest.$ac_objext
9482 if { (ac_try="$ac_compile"
9484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485 *) ac_try_echo=$ac_try;;
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488 (eval "$ac_compile") 2>conftest.er1
9490 grep -v '^ *+' conftest.er1 >conftest.err
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } && {
9495 test -z "$ac_c_werror_flag" ||
9496 test ! -s conftest.err
9497 } && test -s conftest.$ac_objext; then
9498 ac_header_compiler=yes
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9503 ac_header_compiler=no
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9508 echo "${ECHO_T}$ac_header_compiler" >&6; }
9510 # Is the header present?
9511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9513 cat >conftest.$ac_ext <<_ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519 #include <$ac_header>
9521 if { (ac_try="$ac_cpp conftest.$ac_ext"
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9529 grep -v '^ *+' conftest.er1 >conftest.err
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } >/dev/null && {
9534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9535 test ! -s conftest.err
9537 ac_header_preproc=yes
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 ac_header_preproc=no
9545 rm -f conftest.err conftest.$ac_ext
9546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9547 echo "${ECHO_T}$ac_header_preproc" >&6; }
9549 # So? What about this header?
9550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9556 ac_header_preproc=yes
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 eval "$as_ac_Header=\$ac_header_preproc"
9581 ac_res=`eval echo '${'$as_ac_Header'}'`
9582 { echo "$as_me:$LINENO: result: $ac_res" >&5
9583 echo "${ECHO_T}$ac_res" >&6; }
9586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9587 cat >>confdefs.h <<_ACEOF
9588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9596 CPPFLAGS="$OLDCPPFLAGS"
9599 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9600 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9602 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9603 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9605 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9606 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9609 cat > conftest.cpp << EOF
9611 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9612 // so we have to introduce them this way
9613 $HAVE_VERSION_H_DEFINE
9614 $HAVE_AVIFILE_VERSION_H_DEFINE
9616 #ifdef HAVE_VERSION_H
9617 #include <version.h>
9619 #ifdef HAVE_AVIFILE_VERSION_H
9620 #include <avifile/version.h>
9623 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9624 #include <avifile.h>
9625 #include <aviplay.h>
9626 #include <avm_fourcc.h>
9627 #include <avm_creators.h>
9628 #include <StreamInfo.h>
9631 #include <avifile.h>
9632 #include <aviplay.h>
9633 #include <aviutil.h>
9635 #define Height height
9642 IAviReadFile* player;
9643 IAviReadStream* astream;
9644 IAviReadStream* vstream;
9645 player = CreateIAviReadFile(0);
9646 astream = player->GetStream(0, AviStream::Audio);
9647 vstream = player->GetStream(0, AviStream::Video);
9648 vstream -> StartStreaming();
9649 astream -> StartStreaming();
9652 player->GetFileHeader(&head);
9653 head.dwMicroSecPerFrame;
9658 head.dwMicroSecPerFrame;
9659 astream->GetEndPos(),
9660 astream->GetEndTime());
9661 player->StreamCount();
9663 StreamInfo*audioinfo;
9664 StreamInfo*videoinfo;
9665 audioinfo = astream->GetStreamInfo();
9666 videoinfo = vstream->GetStreamInfo();
9667 videoinfo->GetVideoWidth();
9668 videoinfo->GetVideoHeight();
9669 audioinfo->GetAudioSamplesPerSec();
9670 videoinfo->GetFps();
9672 CImage*img = vstream->GetFrame();
9679 astream->GetAudioFormatInfo(&wave,0);
9681 astream->ReadFrames(0,0,0,a,b);
9683 int main (int argc, char*argv)
9689 if test "x$AVIFILE_CONFIG" '!=' "x";then
9690 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9691 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9692 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9693 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9694 { echo "$as_me:$LINENO: result: yes" >&5
9695 echo "${ECHO_T}yes" >&6; }
9698 cat >>confdefs.h <<_ACEOF
9699 #define AVIFILE true
9703 echo "configure: failed program was:" >&5
9704 cat conftest.cpp >&5
9705 { echo "$as_me:$LINENO: result: no" >&5
9706 echo "${ECHO_T}no" >&6; }
9709 { echo "$as_me:$LINENO: result: no" >&5
9710 echo "${ECHO_T}no" >&6; }
9714 if test "x${AVIFILE}" = "xtrue"; then
9715 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9716 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9717 cat >>confdefs.h <<_ACEOF
9718 #define HAVE_AVIFILE 1
9723 if test "x${WIN32}" != "x"; then
9724 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9725 #if test "x${AVIFIL32}" != "x"; then
9726 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9728 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9734 # ------------------------------------------------------------------
9736 if test "x${UNCOMPRESS}" = "xgzip"; then
9737 cat >>confdefs.h <<_ACEOF
9744 # ------------------------------------------------------------------
9747 { echo "$as_me:$LINENO: checking for Python.h" >&5
9748 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
9750 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9753 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9754 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9756 # iterate through version 2.2 to 2.5
9757 for v in 2 3 4 5; do
9759 if test -f "/usr/include/python2.$v/Python.h";then
9761 PYTHON_LIB="-lpython$PY_VERSION"
9762 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9763 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9764 HAVE_PYTHON_IMAGING_LIB=1
9766 PYTHON_LIB2="$PYTHON_LIB"
9768 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9770 elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9771 #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
9773 PYTHON_LIB="-framework Python"
9774 if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
9775 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9776 HAVE_PYTHON_IMAGING_LIB=1
9778 PYTHON_LIB2="$PYTHON_LIB"
9780 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9782 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9783 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9784 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9786 -a -f "/sw/include/python2.$v/Python.h"; then
9788 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9789 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9790 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9791 HAVE_PYTHON_IMAGING_LIB=1
9793 PYTHON_LIB2="$PYTHON_LIB"
9795 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9800 if test "x$PY_VERSION" "!=" "x"; then
9801 { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9802 echo "${ECHO_T}$PY_VERSION" >&6; }
9803 export PYTHON_INCLUDES PYTHON_LIB
9806 { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9807 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9809 cat > conftest.c << EOF
9815 ret = Py_Main(0, 0);
9816 int x; // check also for gcc 2.95.x incompatibilities
9821 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9822 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9823 { echo "$as_me:$LINENO: result: yes" >&5
9824 echo "${ECHO_T}yes" >&6; }
9827 echo "configure: failed program was:" >&5
9829 { echo "$as_me:$LINENO: result: no" >&5
9830 echo "${ECHO_T}no" >&6; }
9833 if test "x$PYTHON_OK" = "xyes";then
9834 { echo "$as_me:$LINENO: checking for Python-Imaging" >&5
9835 echo $ECHO_N "checking for Python-Imaging... $ECHO_C" >&6; }
9836 cat > conftest.c << EOF
9838 #include <Imaging.h>
9846 if test "$HAVE_PYTHON_IMAGING_LIB"; then
9847 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9848 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9849 PYTHON_LIB="${PYTHON_LIB2}"
9850 cat >>confdefs.h <<_ACEOF
9851 #define HAVE_PYTHON_IMAGING 1
9854 HAVE_PYTHON_IMAGING=yes
9855 export HAVE_PYTHON_IMAGING
9857 { echo "$as_me:$LINENO: result: yes" >&5
9858 echo "${ECHO_T}yes" >&6; }
9860 echo "configure: failed program was:" >&5
9862 { echo "$as_me:$LINENO: result: no" >&5
9863 echo "${ECHO_T}no" >&6; }
9866 echo "(didn't find the Python-Imaging libraries)" >&5
9867 { echo "$as_me:$LINENO: result: no" >&5
9868 echo "${ECHO_T}no" >&6; }
9873 { echo "$as_me:$LINENO: result: nope" >&5
9874 echo "${ECHO_T}nope" >&6; }
9878 if test "x$PYTHON_OK" '!=' "xyes";then
9879 echo all install uninstall clean: > lib/python/Makefile
9880 # fail silently- the most users won't have any need for the
9881 # python interface anyway
9883 pythonrfxswf="lib/python/Makefile"
9886 # ------------------------------------------------------------------
9888 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9889 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9891 if test "x$ZLIBMISSING" = "xtrue";then
9892 MISSINGLIBS="${MISSINGLIBS} zlib"
9896 if test "x$JPEGLIBMISSING" = "xtrue";then
9897 MISSINGLIBS="${MISSINGLIBS} jpeglib"
9899 DISABLEJPEG2SWF=true
9902 #if test "x$T1LIBMISSING" = "xtrue";then
9903 # MISSINGLIBS="${MISSINGLIBS} t1lib"
9905 if test "x$UNGIFMISSING" = "xtrue";then
9907 MISSINGLIBS="${MISSINGLIBS} ungif"
9911 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9912 DISABLEPDF2SWF=true;
9913 DISABLEJPEG2SWF=true;
9914 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9917 if test "x$HAVE_FREETYPE" '!=' "x1"; then
9918 DISABLEPDF2SWF=true;
9919 MISSINGLIBS="${MISSINGLIBS} freetype"
9922 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
9923 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9925 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
9927 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
9930 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
9931 DISABLEPNG2SWF=true;
9932 MISSINGLIBS="${MISSINGLIBS} zlib.h"
9935 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9936 # MISSINGLIBS="${MISSINGLIBS} avifile"
9939 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
9940 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
9942 # ------------------------------------------------------------------
9944 if test "x${MISSINGLIBS}" '!=' "x"; then
9945 echo "***************************************************"
9946 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
9949 avi2swf="avi2swf/Makefile"
9950 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9951 #don't whine, avi2swf is outdated anyway
9952 #echo "* Disabling avi2swf tool..."
9953 echo all install uninstall clean: > avi2swf/Makefile
9957 pdf2swf_makefile="lib/pdf/Makefile"
9958 PDF2SWF='pdf2swf$(E)'
9961 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
9962 echo "* Disabling pdf2swf tool..."
9963 rm -f lib/pdf/Makefile
9964 echo all install uninstall clean: > lib/pdf/Makefile
9972 if test "x${ZLIBMISSING}" = "xtrue"; then
9974 echo "* Warning! Without zlib, you will not be able to read"
9975 echo "* or write compressed Flash MX files!"
9978 JPEG2SWF='jpeg2swf$(E)'
9979 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
9980 echo "* Disabling jpeg2swf tool..."
9986 GIF2SWF='gif2swf$(E)'
9987 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
9988 echo "* Disabling gif2swf tool..."
9994 PNG2SWF='png2swf$(E)'
9995 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
9996 echo "* Disabling png2swf tool..."
10002 if test "x${MISSINGLIBS}" '!=' "x"; then
10003 if test "x${PARTIAL}" '=' "x"; then
10004 echo "* (never mind)"
10006 echo "***************************************************"
10009 # ------------------------------------------------------------------
10011 if test -f "release.in"; then release_in="./release"; fi
10012 if test -f "wx/Makefile.in"; then wx_in="wx/Makefile"; fi
10013 FILES="$release_in $wx_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/swf/Makefile"
10014 ac_config_files="$ac_config_files ${FILES}"
10016 cat >confcache <<\_ACEOF
10017 # This file is a shell script that caches the results of configure
10018 # tests run on this system so they can be shared between configure
10019 # scripts and configure runs, see configure's option --config-cache.
10020 # It is not useful on other systems. If it contains results you don't
10021 # want to keep, you may remove or edit it.
10023 # config.status only pays attention to the cache file if you give it
10024 # the --recheck option to rerun configure.
10026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10028 # following values.
10032 # The following way of writing the cache mishandles newlines in values,
10033 # but we know of no workaround that is simple, portable, and efficient.
10034 # So, we kill variables containing newlines.
10035 # Ultrix sh set writes to stderr and can't be redirected directly,
10036 # and sets the high bit in the cache file unless we assign to the vars.
10038 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10039 eval ac_val=\$$ac_var
10043 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10044 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10047 _ | IFS | as_nl) ;; #(
10048 *) $as_unset $ac_var ;;
10054 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10055 *${as_nl}ac_space=\ *)
10056 # `set' does not quote correctly, so add quotes (double-quote
10057 # substitution turns \\\\ into \\, and sed turns \\ into \).
10060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10063 # `set' quotes correctly as required by POSIX, so do not add quotes.
10064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10073 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10075 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10077 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10078 if test -w "$cache_file"; then
10079 test "x$cache_file" != "x/dev/null" &&
10080 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10081 echo "$as_me: updating cache $cache_file" >&6;}
10082 cat confcache >$cache_file
10084 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10085 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10090 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10091 # Let make expand exec_prefix.
10092 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10094 DEFS=-DHAVE_CONFIG_H
10098 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10099 # 1. Remove the extension, and $U if already installed.
10100 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10101 ac_i=`echo "$ac_i" | sed "$ac_script"`
10102 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10103 # will be set to the directory where LIBOBJS objects are built.
10104 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10105 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10107 LIBOBJS=$ac_libobjs
10109 LTLIBOBJS=$ac_ltlibobjs
10113 : ${CONFIG_STATUS=./config.status}
10114 ac_clean_files_save=$ac_clean_files
10115 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10116 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10117 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10118 cat >$CONFIG_STATUS <<_ACEOF
10120 # Generated by $as_me.
10121 # Run this file to recreate the current configuration.
10122 # Compiler output produced by configure, useful for debugging
10123 # configure, is in config.log if it exists.
10126 ac_cs_recheck=false
10128 SHELL=\${CONFIG_SHELL-$SHELL}
10131 cat >>$CONFIG_STATUS <<\_ACEOF
10132 ## --------------------- ##
10133 ## M4sh Initialization. ##
10134 ## --------------------- ##
10136 # Be more Bourne compatible
10137 DUALCASE=1; export DUALCASE # for MKS sh
10138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10141 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10142 # is contrary to our usage. Disable this feature.
10143 alias -g '${1+"$@"}'='"$@"'
10144 setopt NO_GLOB_SUBST
10146 case `(set -o) 2>/dev/null` in
10147 *posix*) set -o posix ;;
10156 # Avoid depending upon Character Ranges.
10157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10160 as_cr_digits='0123456789'
10161 as_cr_alnum=$as_cr_Letters$as_cr_digits
10163 # The user is always right.
10164 if test "${PATH_SEPARATOR+set}" != set; then
10165 echo "#! /bin/sh" >conf$$.sh
10166 echo "exit 0" >>conf$$.sh
10168 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10176 # Support unset when possible.
10177 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10185 # We need space, tab and new line, in precisely that order. Quoting is
10186 # there to prevent editors from complaining about space-tab.
10187 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10188 # splitting by setting IFS to empty value.)
10193 # Find who we are. Look in the path if we contain no directory separator.
10195 *[\\/]* ) as_myself=$0 ;;
10196 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10200 test -z "$as_dir" && as_dir=.
10201 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10207 # We did not find ourselves, most probably we were run as `sh COMMAND'
10208 # in which case we are not to be found in the path.
10209 if test "x$as_myself" = x; then
10212 if test ! -f "$as_myself"; then
10213 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10214 { (exit 1); exit 1; }
10217 # Work around bugs in pre-3.0 UWIN ksh.
10218 for as_var in ENV MAIL MAILPATH
10219 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10227 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10228 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10229 LC_TELEPHONE LC_TIME
10231 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10232 eval $as_var=C; export $as_var
10234 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10238 # Required to use basename.
10239 if expr a : '\(a\)' >/dev/null 2>&1 &&
10240 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10246 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10247 as_basename=basename
10253 # Name of the executable.
10254 as_me=`$as_basename -- "$0" ||
10255 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10256 X"$0" : 'X\(//\)$' \| \
10257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10259 sed '/^.*\/\([^/][^/]*\)\/*$/{
10278 as_lineno_1=$LINENO
10279 as_lineno_2=$LINENO
10280 test "x$as_lineno_1" != "x$as_lineno_2" &&
10281 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10283 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10284 # uniformly replaced by the line number. The first 'sed' inserts a
10285 # line-number line after each line using $LINENO; the second 'sed'
10286 # does the real work. The second script uses 'N' to pair each
10287 # line-number line with the line containing $LINENO, and appends
10288 # trailing '-' during substitution so that $LINENO is not a special
10289 # case at line end.
10290 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10291 # scripts with optimization help from Paolo Bonzini. Blame Lee
10292 # E. McMahon (1931-1989) for sed's syntax. :-)
10304 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10307 ' >$as_me.lineno &&
10308 chmod +x "$as_me.lineno" ||
10309 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10310 { (exit 1); exit 1; }; }
10312 # Don't try to exec as it changes $[0], causing all sort of problems
10313 # (the dirname of $[0] is not the place where we might find the
10314 # original and so on. Autoconf is especially sensitive to this).
10315 . "./$as_me.lineno"
10316 # Exit status is that of the last command.
10321 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10327 ECHO_C= ECHO_N= ECHO_T=
10328 case `echo -n x` in
10330 case `echo 'x\c'` in
10331 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10338 if expr a : '\(a\)' >/dev/null 2>&1 &&
10339 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10345 rm -f conf$$ conf$$.exe conf$$.file
10346 if test -d conf$$.dir; then
10347 rm -f conf$$.dir/conf$$.file
10353 if ln -s conf$$.file conf$$ 2>/dev/null; then
10355 # ... but there are two gotchas:
10356 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10357 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10358 # In both cases, we have to default to `cp -p'.
10359 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10361 elif ln conf$$.file conf$$ 2>/dev/null; then
10366 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10367 rmdir conf$$.dir 2>/dev/null
10369 if mkdir -p . 2>/dev/null; then
10372 test -d ./-p && rmdir ./-p
10376 if test -x / >/dev/null 2>&1; then
10377 as_test_x='test -x'
10379 if ls -dL / >/dev/null 2>&1; then
10386 if test -d "$1"; then
10392 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10393 ???[sx]*):;;*)false;;esac;fi
10397 as_executable_p=$as_test_x
10399 # Sed expression to map a string onto a valid CPP name.
10400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10402 # Sed expression to map a string onto a valid variable name.
10403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10408 # Save the log message, to keep $[0] and so on meaningful, and to
10409 # report actual input values of CONFIG_FILES etc. instead of their
10410 # values after options handling.
10412 This file was extended by $as_me, which was
10413 generated by GNU Autoconf 2.61. Invocation command line was
10415 CONFIG_FILES = $CONFIG_FILES
10416 CONFIG_HEADERS = $CONFIG_HEADERS
10417 CONFIG_LINKS = $CONFIG_LINKS
10418 CONFIG_COMMANDS = $CONFIG_COMMANDS
10421 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10426 cat >>$CONFIG_STATUS <<_ACEOF
10427 # Files that config.status was made for.
10428 config_files="$ac_config_files"
10429 config_headers="$ac_config_headers"
10433 cat >>$CONFIG_STATUS <<\_ACEOF
10435 \`$as_me' instantiates files from templates according to the
10436 current configuration.
10438 Usage: $0 [OPTIONS] [FILE]...
10440 -h, --help print this help, then exit
10441 -V, --version print version number and configuration settings, then exit
10442 -q, --quiet do not print progress messages
10443 -d, --debug don't remove temporary files
10444 --recheck update $as_me by reconfiguring in the same conditions
10445 --file=FILE[:TEMPLATE]
10446 instantiate the configuration file FILE
10447 --header=FILE[:TEMPLATE]
10448 instantiate the configuration header FILE
10450 Configuration files:
10453 Configuration headers:
10456 Report bugs to <bug-autoconf@gnu.org>."
10459 cat >>$CONFIG_STATUS <<_ACEOF
10462 configured by $0, generated by GNU Autoconf 2.61,
10463 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10465 Copyright (C) 2006 Free Software Foundation, Inc.
10466 This config.status script is free software; the Free Software Foundation
10467 gives unlimited permission to copy, distribute and modify it."
10474 cat >>$CONFIG_STATUS <<\_ACEOF
10475 # If no file are specified by the user, then we need to provide default
10476 # value. By we need to know if files were specified by the user.
10482 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10483 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10494 # Handling of the options.
10495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10497 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10498 echo "$ac_cs_version"; exit ;;
10499 --debug | --debu | --deb | --de | --d | -d )
10501 --file | --fil | --fi | --f )
10503 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10504 ac_need_defaults=false;;
10505 --header | --heade | --head | --hea )
10507 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10508 ac_need_defaults=false;;
10510 # Conflict between --help and --header
10511 { echo "$as_me: error: ambiguous option: $1
10512 Try \`$0 --help' for more information." >&2
10513 { (exit 1); exit 1; }; };;
10514 --help | --hel | -h )
10515 echo "$ac_cs_usage"; exit ;;
10516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10517 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10520 # This is an error.
10521 -*) { echo "$as_me: error: unrecognized option: $1
10522 Try \`$0 --help' for more information." >&2
10523 { (exit 1); exit 1; }; } ;;
10525 *) ac_config_targets="$ac_config_targets $1"
10526 ac_need_defaults=false ;;
10532 ac_configure_extra_args=
10534 if $ac_cs_silent; then
10536 ac_configure_extra_args="$ac_configure_extra_args --silent"
10540 cat >>$CONFIG_STATUS <<_ACEOF
10541 if \$ac_cs_recheck; then
10542 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10543 CONFIG_SHELL=$SHELL
10544 export CONFIG_SHELL
10545 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10549 cat >>$CONFIG_STATUS <<\_ACEOF
10553 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10554 ## Running $as_me. ##
10560 cat >>$CONFIG_STATUS <<_ACEOF
10563 cat >>$CONFIG_STATUS <<\_ACEOF
10565 # Handling of arguments.
10566 for ac_config_target in $ac_config_targets
10568 case $ac_config_target in
10569 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10570 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10572 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10573 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10574 { (exit 1); exit 1; }; };;
10579 # If the user did not use the arguments to specify the items to instantiate,
10580 # then the envvar interface is used. Set only those that are not.
10581 # We use the long form for the default assignment because of an extremely
10582 # bizarre bug on SunOS 4.1.3.
10583 if $ac_need_defaults; then
10584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10588 # Have a temporary directory for convenience. Make it in the build tree
10589 # simply because there is no reason against having it here, and in addition,
10590 # creating and moving files from /tmp can sometimes cause problems.
10591 # Hook for its removal unless debugging.
10592 # Note that there is a small window in which the directory will not be cleaned:
10593 # after its creation but before its name has been assigned to `$tmp'.
10597 trap 'exit_status=$?
10598 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10600 trap '{ (exit 1); exit 1; }' 1 2 13 15
10602 # Create a (secure) tmp directory for tmp files.
10605 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10606 test -n "$tmp" && test -d "$tmp"
10609 tmp=./conf$$-$RANDOM
10610 (umask 077 && mkdir "$tmp")
10613 echo "$me: cannot create a temporary directory in ." >&2
10614 { (exit 1); exit 1; }
10618 # Set up the sed scripts for CONFIG_FILES section.
10621 # No need to generate the scripts if there are no CONFIG_FILES.
10622 # This happens for instance when ./config.status config.h
10623 if test -n "$CONFIG_FILES"; then
10630 for ac_last_try in false false false false false :; do
10631 cat >conf$$subs.sed <<_ACEOF
10632 SHELL!$SHELL$ac_delim
10633 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10634 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10635 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10636 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10637 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10638 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10639 exec_prefix!$exec_prefix$ac_delim
10640 prefix!$prefix$ac_delim
10641 program_transform_name!$program_transform_name$ac_delim
10642 bindir!$bindir$ac_delim
10643 sbindir!$sbindir$ac_delim
10644 libexecdir!$libexecdir$ac_delim
10645 datarootdir!$datarootdir$ac_delim
10646 datadir!$datadir$ac_delim
10647 sysconfdir!$sysconfdir$ac_delim
10648 sharedstatedir!$sharedstatedir$ac_delim
10649 localstatedir!$localstatedir$ac_delim
10650 includedir!$includedir$ac_delim
10651 oldincludedir!$oldincludedir$ac_delim
10652 docdir!$docdir$ac_delim
10653 infodir!$infodir$ac_delim
10654 htmldir!$htmldir$ac_delim
10655 dvidir!$dvidir$ac_delim
10656 pdfdir!$pdfdir$ac_delim
10657 psdir!$psdir$ac_delim
10658 libdir!$libdir$ac_delim
10659 localedir!$localedir$ac_delim
10660 mandir!$mandir$ac_delim
10661 DEFS!$DEFS$ac_delim
10662 ECHO_C!$ECHO_C$ac_delim
10663 ECHO_N!$ECHO_N$ac_delim
10664 ECHO_T!$ECHO_T$ac_delim
10665 LIBS!$LIBS$ac_delim
10666 build_alias!$build_alias$ac_delim
10667 host_alias!$host_alias$ac_delim
10668 target_alias!$target_alias$ac_delim
10669 build!$build$ac_delim
10670 build_cpu!$build_cpu$ac_delim
10671 build_vendor!$build_vendor$ac_delim
10672 build_os!$build_os$ac_delim
10673 host!$host$ac_delim
10674 host_cpu!$host_cpu$ac_delim
10675 host_vendor!$host_vendor$ac_delim
10676 host_os!$host_os$ac_delim
10677 SHARED!$SHARED$ac_delim
10679 CFLAGS!$CFLAGS$ac_delim
10680 LDFLAGS!$LDFLAGS$ac_delim
10681 CPPFLAGS!$CPPFLAGS$ac_delim
10682 ac_ct_CC!$ac_ct_CC$ac_delim
10683 EXEEXT!$EXEEXT$ac_delim
10684 OBJEXT!$OBJEXT$ac_delim
10686 CXXFLAGS!$CXXFLAGS$ac_delim
10687 ac_ct_CXX!$ac_ct_CXX$ac_delim
10689 RANLIB!$RANLIB$ac_delim
10690 SET_MAKE!$SET_MAKE$ac_delim
10691 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10692 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10693 INSTALL_DATA!$INSTALL_DATA$ac_delim
10694 LN_S!$LN_S$ac_delim
10695 UNCOMPRESS!$UNCOMPRESS$ac_delim
10696 AREXT!$AREXT$ac_delim
10698 SLEXT!$SLEXT$ac_delim
10699 CXXLIBS!$CXXLIBS$ac_delim
10700 STRIP!$STRIP$ac_delim
10701 target!$target$ac_delim
10702 target_cpu!$target_cpu$ac_delim
10703 target_vendor!$target_vendor$ac_delim
10704 target_os!$target_os$ac_delim
10705 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10706 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10707 GREP!$GREP$ac_delim
10708 EGREP!$EGREP$ac_delim
10709 PACKAGE!$PACKAGE$ac_delim
10710 VERSION!$VERSION$ac_delim
10711 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10712 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10713 lame_objects!$lame_objects$ac_delim
10714 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10715 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10716 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10717 USE_GZIP!$USE_GZIP$ac_delim
10718 PYTHON_LIB!$PYTHON_LIB$ac_delim
10719 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10720 HAVE_PYTHON_IMAGING!$HAVE_PYTHON_IMAGING$ac_delim
10721 PDF2SWF!$PDF2SWF$ac_delim
10722 LIBPDF!$LIBPDF$ac_delim
10723 JPEG2SWF!$JPEG2SWF$ac_delim
10724 GIF2SWF!$GIF2SWF$ac_delim
10725 PNG2SWF!$PNG2SWF$ac_delim
10726 LIBOBJS!$LIBOBJS$ac_delim
10727 LTLIBOBJS!$LTLIBOBJS$ac_delim
10730 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
10732 elif $ac_last_try; then
10733 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10734 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10735 { (exit 1); exit 1; }; }
10737 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10741 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10742 if test -n "$ac_eof"; then
10743 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10744 ac_eof=`expr $ac_eof + 1`
10747 cat >>$CONFIG_STATUS <<_ACEOF
10748 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10752 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10753 s/^/s,@/; s/!/@,|#_!!_#|/
10756 s/'"$ac_delim"'$/,g/; t
10758 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10759 ' >>$CONFIG_STATUS <conf$$subs.sed
10760 rm -f conf$$subs.sed
10761 cat >>$CONFIG_STATUS <<_ACEOF
10766 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10767 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10768 # trailing colons and then remove the whole line if VPATH becomes empty
10769 # (actually we leave an empty line to preserve line numbers).
10770 if test "x$srcdir" = x.; then
10771 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10772 s/:*\$(srcdir):*/:/
10773 s/:*\${srcdir}:*/:/
10775 s/^\([^=]*=[ ]*\):*/\1/
10781 cat >>$CONFIG_STATUS <<\_ACEOF
10782 fi # test -n "$CONFIG_FILES"
10785 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10788 :[FHLC]) ac_mode=$ac_tag; continue;;
10790 case $ac_mode$ac_tag in
10792 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10793 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10794 { (exit 1); exit 1; }; };;
10795 :[FH]-) ac_tag=-:-;;
10796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10813 -) ac_f="$tmp/stdin";;
10814 *) # Look for the file first in the build tree, then in the source tree
10815 # (if the path is not absolute). The absolute path cannot be DOS-style,
10816 # because $ac_f cannot contain `:'.
10820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10822 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10823 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10824 { (exit 1); exit 1; }; };;
10826 ac_file_inputs="$ac_file_inputs $ac_f"
10829 # Let's still pretend it is `configure' which instantiates (i.e., don't
10830 # use $as_me), people would be surprised to read:
10831 # /* config.h. Generated by config.status. */
10832 configure_input="Generated from "`IFS=:
10833 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10834 if test x"$ac_file" != x-; then
10835 configure_input="$ac_file. $configure_input"
10836 { echo "$as_me:$LINENO: creating $ac_file" >&5
10837 echo "$as_me: creating $ac_file" >&6;}
10841 *:-:* | *:-) cat >"$tmp/stdin";;
10846 ac_dir=`$as_dirname -- "$ac_file" ||
10847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10848 X"$ac_file" : 'X\(//\)[^/]' \| \
10849 X"$ac_file" : 'X\(//\)$' \| \
10850 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10856 /^X\(\/\/\)[^/].*/{
10871 -*) as_dir=./$as_dir;;
10873 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10877 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10878 *) as_qdir=$as_dir;;
10880 as_dirs="'$as_qdir' $as_dirs"
10881 as_dir=`$as_dirname -- "$as_dir" ||
10882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10883 X"$as_dir" : 'X\(//\)[^/]' \| \
10884 X"$as_dir" : 'X\(//\)$' \| \
10885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10891 /^X\(\/\/\)[^/].*/{
10904 test -d "$as_dir" && break
10906 test -z "$as_dirs" || eval "mkdir $as_dirs"
10907 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10908 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10909 { (exit 1); exit 1; }; }; }
10913 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10916 # A ".." for each directory in $ac_dir_suffix.
10917 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10918 case $ac_top_builddir_sub in
10919 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10920 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10923 ac_abs_top_builddir=$ac_pwd
10924 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10925 # for backward compatibility:
10926 ac_top_builddir=$ac_top_build_prefix
10929 .) # We are building in place.
10931 ac_top_srcdir=$ac_top_builddir_sub
10932 ac_abs_top_srcdir=$ac_pwd ;;
10933 [\\/]* | ?:[\\/]* ) # Absolute name.
10934 ac_srcdir=$srcdir$ac_dir_suffix;
10935 ac_top_srcdir=$srcdir
10936 ac_abs_top_srcdir=$srcdir ;;
10937 *) # Relative name.
10938 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10939 ac_top_srcdir=$ac_top_build_prefix$srcdir
10940 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10942 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10952 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10953 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10957 cat >>$CONFIG_STATUS <<\_ACEOF
10958 # If the template does not know about datarootdir, expand it.
10959 # FIXME: This hack should be removed a few years after 2.60.
10960 ac_datarootdir_hack=; ac_datarootdir_seen=
10962 case `sed -n '/datarootdir/ {
10971 ' $ac_file_inputs` in
10972 *datarootdir*) ac_datarootdir_seen=yes;;
10973 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10974 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10975 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10977 cat >>$CONFIG_STATUS <<_ACEOF
10978 ac_datarootdir_hack='
10979 s&@datadir@&$datadir&g
10980 s&@docdir@&$docdir&g
10981 s&@infodir@&$infodir&g
10982 s&@localedir@&$localedir&g
10983 s&@mandir@&$mandir&g
10984 s&\\\${datarootdir}&$datarootdir&g' ;;
10988 # Neutralize VPATH when `$srcdir' = `.'.
10989 # Shell code in configure.ac might set extrasub.
10990 # FIXME: do we really want to maintain this feature?
10991 cat >>$CONFIG_STATUS <<_ACEOF
10995 cat >>$CONFIG_STATUS <<\_ACEOF
10997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10998 s&@configure_input@&$configure_input&;t t
10999 s&@top_builddir@&$ac_top_builddir_sub&;t t
11000 s&@srcdir@&$ac_srcdir&;t t
11001 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11002 s&@top_srcdir@&$ac_top_srcdir&;t t
11003 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11004 s&@builddir@&$ac_builddir&;t t
11005 s&@abs_builddir@&$ac_abs_builddir&;t t
11006 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11007 s&@INSTALL@&$ac_INSTALL&;t t
11008 $ac_datarootdir_hack
11009 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
11011 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11012 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11013 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11014 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11015 which seems to be undefined. Please make sure it is defined." >&5
11016 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11017 which seems to be undefined. Please make sure it is defined." >&2;}
11021 -) cat "$tmp/out"; rm -f "$tmp/out";;
11022 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11031 # Transform confdefs.h into a sed script `conftest.defines', that
11032 # substitutes the proper values into config.h.in to produce config.h.
11033 rm -f conftest.defines conftest.tail
11034 # First, append a space to every undef/define line, to ease matching.
11035 echo 's/$/ /' >conftest.defines
11036 # Then, protect against being on the right side of a sed subst, or in
11037 # an unquoted here document, in config.status. If some macros were
11038 # called several times there might be several #defines for the same
11039 # symbol, which is useless. But do not sort them, since the last
11040 # AC_DEFINE must be honored.
11041 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11042 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11043 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11044 # PARAMS is the parameter list in the macro definition--in most cases, it's
11045 # just an empty string.
11046 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11047 ac_dB='\\)[ (].*,\\1define\\2'
11055 s/^[ ]*#[ ]*define[ ][ ]*//
11060 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11061 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11062 ' >>conftest.defines
11064 # Remove the space that was appended to ease matching.
11065 # Then replace #undef with comments. This is necessary, for
11066 # example, in the case of _POSIX_SOURCE, which is predefined and required
11067 # on some systems where configure will not decide to define it.
11068 # (The regexp can be short, since the line contains either #define or #undef.)
11070 s,^[ #]*u.*,/* & */,' >>conftest.defines
11072 # Break up conftest.defines:
11073 ac_max_sed_lines=50
11075 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11076 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11077 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11079 ac_in='$ac_file_inputs'
11080 ac_out='"$tmp/out1"'
11081 ac_nxt='"$tmp/out2"'
11085 # Write a here document:
11086 cat >>$CONFIG_STATUS <<_ACEOF
11087 # First, check the format of the line:
11088 cat >"\$tmp/defines.sed" <<\\CEOF
11089 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11090 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11094 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11096 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11097 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11098 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11099 grep . conftest.tail >/dev/null || break
11100 rm -f conftest.defines
11101 mv conftest.tail conftest.defines
11103 rm -f conftest.defines conftest.tail
11105 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11106 cat >>$CONFIG_STATUS <<\_ACEOF
11107 if test x"$ac_file" != x-; then
11108 echo "/* $configure_input */" >"$tmp/config.h"
11109 cat "$ac_result" >>"$tmp/config.h"
11110 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11111 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11112 echo "$as_me: $ac_file is unchanged" >&6;}
11115 mv "$tmp/config.h" $ac_file
11118 echo "/* $configure_input */"
11130 { (exit 0); exit 0; }
11132 chmod +x $CONFIG_STATUS
11133 ac_clean_files=$ac_clean_files_save
11136 # configure is writing to config.log, and then calls config.status.
11137 # config.status does its own redirection, appending to config.log.
11138 # Unfortunately, on DOS this fails, as config.log is still kept open
11139 # by configure, so config.status won't be able to write to it; its
11140 # output is simply discarded. So we exec the FD to /dev/null,
11141 # effectively closing config.log, so it can be properly (re)opened and
11142 # appended to by config.status. When coming back to configure, we
11143 # need to make the FD available again.
11144 if test "$no_create" != yes; then
11146 ac_config_status_args=
11147 test "$silent" = yes &&
11148 ac_config_status_args="$ac_config_status_args --quiet"
11150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11153 # would make configure fail if this is the last instruction.
11154 $ac_cs_success || { (exit 1); exit 1; }
11160 # On development trees, create snapshots of config.status
11162 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11163 if test "x${MINGW}" = "xyes"; then
11164 echo cp config.status config.status.win32
11165 cp config.status config.status.win32
11167 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
11168 echo cp config.status config.status.linux
11169 cp config.status config.status.linux
11171 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
11172 echo cp config.status config.status.debug
11173 cp config.status config.status.debug
11175 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
11176 echo cp config.status config.status.optimize
11177 cp config.status config.status.optimize