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
717 ac_precious_vars='build_alias
731 # Initialize some variables set by options.
733 ac_init_version=false
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
743 program_transform_name=s,x,x,
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE}'
768 infodir='${datarootdir}/info'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\$ac_option
789 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 # Accept the important Cygnus configure options, so we can diagnose typos.
795 case $ac_dashdash$ac_option in
799 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 -build | --build | --buil | --bui | --bu)
805 ac_prev=build_alias ;;
806 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807 build_alias=$ac_optarg ;;
809 -cache-file | --cache-file | --cache-fil | --cache-fi \
810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811 ac_prev=cache_file ;;
812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814 cache_file=$ac_optarg ;;
817 cache_file=config.cache ;;
819 -datadir | --datadir | --datadi | --datad)
821 -datadir=* | --datadir=* | --datadi=* | --datad=*)
822 datadir=$ac_optarg ;;
824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825 | --dataroo | --dataro | --datar)
826 ac_prev=datarootdir ;;
827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829 datarootdir=$ac_optarg ;;
831 -disable-* | --disable-*)
832 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836 { (exit 1); exit 1; }; }
837 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838 eval enable_$ac_feature=no ;;
840 -docdir | --docdir | --docdi | --doc | --do)
842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850 -enable-* | --enable-*)
851 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=\$ac_optarg ;;
859 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861 | --exec | --exe | --ex)
862 ac_prev=exec_prefix ;;
863 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865 | --exec=* | --exe=* | --ex=*)
866 exec_prefix=$ac_optarg ;;
868 -gas | --gas | --ga | --g)
869 # Obsolete; use --with-gas.
872 -help | --help | --hel | --he | -h)
874 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875 ac_init_help=recursive ;;
876 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877 ac_init_help=short ;;
879 -host | --host | --hos | --ho)
880 ac_prev=host_alias ;;
881 -host=* | --host=* | --hos=* | --ho=*)
882 host_alias=$ac_optarg ;;
884 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
886 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
888 htmldir=$ac_optarg ;;
890 -includedir | --includedir | --includedi | --included | --include \
891 | --includ | --inclu | --incl | --inc)
892 ac_prev=includedir ;;
893 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894 | --includ=* | --inclu=* | --incl=* | --inc=*)
895 includedir=$ac_optarg ;;
897 -infodir | --infodir | --infodi | --infod | --info | --inf)
899 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900 infodir=$ac_optarg ;;
902 -libdir | --libdir | --libdi | --libd)
904 -libdir=* | --libdir=* | --libdi=* | --libd=*)
907 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908 | --libexe | --libex | --libe)
909 ac_prev=libexecdir ;;
910 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911 | --libexe=* | --libex=* | --libe=*)
912 libexecdir=$ac_optarg ;;
914 -localedir | --localedir | --localedi | --localed | --locale)
916 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917 localedir=$ac_optarg ;;
919 -localstatedir | --localstatedir | --localstatedi | --localstated \
920 | --localstate | --localstat | --localsta | --localst | --locals)
921 ac_prev=localstatedir ;;
922 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924 localstatedir=$ac_optarg ;;
926 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
928 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932 # Obsolete; use --without-fp.
935 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936 | --no-cr | --no-c | -n)
939 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
943 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945 | --oldin | --oldi | --old | --ol | --o)
946 ac_prev=oldincludedir ;;
947 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950 oldincludedir=$ac_optarg ;;
952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
957 -program-prefix | --program-prefix | --program-prefi | --program-pref \
958 | --program-pre | --program-pr | --program-p)
959 ac_prev=program_prefix ;;
960 -program-prefix=* | --program-prefix=* | --program-prefi=* \
961 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962 program_prefix=$ac_optarg ;;
964 -program-suffix | --program-suffix | --program-suffi | --program-suff \
965 | --program-suf | --program-su | --program-s)
966 ac_prev=program_suffix ;;
967 -program-suffix=* | --program-suffix=* | --program-suffi=* \
968 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969 program_suffix=$ac_optarg ;;
971 -program-transform-name | --program-transform-name \
972 | --program-transform-nam | --program-transform-na \
973 | --program-transform-n | --program-transform- \
974 | --program-transform | --program-transfor \
975 | --program-transfo | --program-transf \
976 | --program-trans | --program-tran \
977 | --progr-tra | --program-tr | --program-t)
978 ac_prev=program_transform_name ;;
979 -program-transform-name=* | --program-transform-name=* \
980 | --program-transform-nam=* | --program-transform-na=* \
981 | --program-transform-n=* | --program-transform-=* \
982 | --program-transform=* | --program-transfor=* \
983 | --program-transfo=* | --program-transf=* \
984 | --program-trans=* | --program-tran=* \
985 | --progr-tra=* | --program-tr=* | --program-t=*)
986 program_transform_name=$ac_optarg ;;
988 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
990 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
993 -psdir | --psdir | --psdi | --psd | --ps)
995 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999 | -silent | --silent | --silen | --sile | --sil)
1002 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1004 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1006 sbindir=$ac_optarg ;;
1008 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010 | --sharedst | --shareds | --shared | --share | --shar \
1012 ac_prev=sharedstatedir ;;
1013 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1017 sharedstatedir=$ac_optarg ;;
1019 -site | --site | --sit)
1021 -site=* | --site=* | --sit=*)
1024 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1026 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027 srcdir=$ac_optarg ;;
1029 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030 | --syscon | --sysco | --sysc | --sys | --sy)
1031 ac_prev=sysconfdir ;;
1032 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034 sysconfdir=$ac_optarg ;;
1036 -target | --target | --targe | --targ | --tar | --ta | --t)
1037 ac_prev=target_alias ;;
1038 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039 target_alias=$ac_optarg ;;
1041 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1044 -version | --version | --versio | --versi | --vers | -V)
1045 ac_init_version=: ;;
1048 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid package name: $ac_package" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054 eval with_$ac_package=\$ac_optarg ;;
1056 -without-* | --without-*)
1057 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid package name: $ac_package" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063 eval with_$ac_package=no ;;
1066 # Obsolete; use --with-x.
1069 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1070 | --x-incl | --x-inc | --x-in | --x-i)
1071 ac_prev=x_includes ;;
1072 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1073 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1074 x_includes=$ac_optarg ;;
1076 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1077 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1078 ac_prev=x_libraries ;;
1079 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1080 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1081 x_libraries=$ac_optarg ;;
1083 -*) { echo "$as_me: error: unrecognized option: $ac_option
1084 Try \`$0 --help' for more information." >&2
1085 { (exit 1); exit 1; }; }
1089 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1092 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1093 { (exit 1); exit 1; }; }
1094 eval $ac_envvar=\$ac_optarg
1095 export $ac_envvar ;;
1098 # FIXME: should be removed in autoconf 3.0.
1099 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1100 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1102 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1108 if test -n "$ac_prev"; then
1109 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1110 { echo "$as_me: error: missing argument to $ac_option" >&2
1111 { (exit 1); exit 1; }; }
1114 # Be sure to have absolute directory names.
1115 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116 datadir sysconfdir sharedstatedir localstatedir includedir \
1117 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118 libdir localedir mandir
1120 eval ac_val=\$$ac_var
1122 [\\/$]* | ?:[\\/]* ) continue;;
1123 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1126 { (exit 1); exit 1; }; }
1129 # There might be people who depend on the old broken behavior: `$host'
1130 # used to hold the argument of --host etc.
1131 # FIXME: To remove some day.
1134 target=$target_alias
1136 # FIXME: To remove some day.
1137 if test "x$host_alias" != x; then
1138 if test "x$build_alias" = x; then
1139 cross_compiling=maybe
1140 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1141 If a cross compiler is detected then cross compile mode will be used." >&2
1142 elif test "x$build_alias" != "x$host_alias"; then
1148 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1150 test "$silent" = yes && exec 6>/dev/null
1153 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154 ac_ls_di=`ls -di .` &&
1155 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156 { echo "$as_me: error: Working directory cannot be determined" >&2
1157 { (exit 1); exit 1; }; }
1158 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1159 { echo "$as_me: error: pwd does not report name of working directory" >&2
1160 { (exit 1); exit 1; }; }
1163 # Find the source files, if location was not specified.
1164 if test -z "$srcdir"; then
1165 ac_srcdir_defaulted=yes
1166 # Try the directory containing this script, then the parent directory.
1167 ac_confdir=`$as_dirname -- "$0" ||
1168 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169 X"$0" : 'X\(//\)[^/]' \| \
1170 X"$0" : 'X\(//\)$' \| \
1171 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1191 if test ! -r "$srcdir/$ac_unique_file"; then
1195 ac_srcdir_defaulted=no
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1199 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1200 { (exit 1); exit 1; }; }
1202 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1204 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1205 { (exit 1); exit 1; }; }
1207 # When building in place, set srcdir=.
1208 if test "$ac_abs_confdir" = "$ac_pwd"; then
1211 # Remove unnecessary trailing slashes from srcdir.
1212 # Double slashes in file names in object file debugging info
1213 # mess up M-x gdb in Emacs.
1215 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217 for ac_var in $ac_precious_vars; do
1218 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1219 eval ac_env_${ac_var}_value=\$${ac_var}
1220 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1225 # Report the --help message.
1227 if test "$ac_init_help" = "long"; then
1228 # Omit some internal or obsolete options to make the list less imposing.
1229 # This message is too long to be a string in the A/UX 3.1 sh.
1231 \`configure' configures this package to adapt to many kinds of systems.
1233 Usage: $0 [OPTION]... [VAR=VALUE]...
1235 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236 VAR=VALUE. See below for descriptions of some of the useful variables.
1238 Defaults for the options are specified in brackets.
1241 -h, --help display this help and exit
1242 --help=short display options specific to this package
1243 --help=recursive display the short help of all the included packages
1244 -V, --version display version information and exit
1245 -q, --quiet, --silent do not print \`checking...' messages
1246 --cache-file=FILE cache test results in FILE [disabled]
1247 -C, --config-cache alias for \`--cache-file=config.cache'
1248 -n, --no-create do not create output files
1249 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1251 Installation directories:
1252 --prefix=PREFIX install architecture-independent files in PREFIX
1253 [$ac_default_prefix]
1254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1257 By default, \`make install' will install all the files in
1258 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1259 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260 for instance \`--prefix=\$HOME'.
1262 For better control, use the options below.
1264 Fine tuning of the installation directories:
1265 --bindir=DIR user executables [EPREFIX/bin]
1266 --sbindir=DIR system admin executables [EPREFIX/sbin]
1267 --libexecdir=DIR program executables [EPREFIX/libexec]
1268 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1269 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1270 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1271 --libdir=DIR object code libraries [EPREFIX/lib]
1272 --includedir=DIR C header files [PREFIX/include]
1273 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1274 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1275 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1276 --infodir=DIR info documentation [DATAROOTDIR/info]
1277 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1278 --mandir=DIR man documentation [DATAROOTDIR/man]
1279 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1280 --htmldir=DIR html documentation [DOCDIR]
1281 --dvidir=DIR dvi documentation [DOCDIR]
1282 --pdfdir=DIR pdf documentation [DOCDIR]
1283 --psdir=DIR ps documentation [DOCDIR]
1289 --program-prefix=PREFIX prepend PREFIX to installed program names
1290 --program-suffix=SUFFIX append SUFFIX to installed program names
1291 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1294 --build=BUILD configure for building on BUILD [guessed]
1295 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1296 --target=TARGET configure for building compilers for TARGET [HOST]
1300 if test -n "$ac_init_help"; then
1305 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1306 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1307 --enable-checkmem turn on ccmalloc debugging
1308 --enable-debug turn on debugging
1309 --enable-profiling turn on profiling
1310 --enable-warnings turn on compiler warnings
1311 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1312 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1315 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1316 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1317 --with-poppler use poppler instead of internal xpdf (currently broken)
1319 Some influential environment variables:
1320 CC C compiler command
1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir>
1324 LIBS libraries to pass to the linker, e.g. -l<library>
1325 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1326 you have headers in a nonstandard directory <include dir>
1327 CXX C++ compiler command
1328 CXXFLAGS C++ compiler flags
1331 Use these variables to override the choices made by `configure' or to help
1332 it to find libraries and programs with nonstandard names/locations.
1338 if test "$ac_init_help" = "recursive"; then
1339 # If there are subdirs, report their specific --help.
1340 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1341 test -d "$ac_dir" || continue
1345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1347 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1348 # A ".." for each directory in $ac_dir_suffix.
1349 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1350 case $ac_top_builddir_sub in
1351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1355 ac_abs_top_builddir=$ac_pwd
1356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1357 # for backward compatibility:
1358 ac_top_builddir=$ac_top_build_prefix
1361 .) # We are building in place.
1363 ac_top_srcdir=$ac_top_builddir_sub
1364 ac_abs_top_srcdir=$ac_pwd ;;
1365 [\\/]* | ?:[\\/]* ) # Absolute name.
1366 ac_srcdir=$srcdir$ac_dir_suffix;
1367 ac_top_srcdir=$srcdir
1368 ac_abs_top_srcdir=$srcdir ;;
1370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1371 ac_top_srcdir=$ac_top_build_prefix$srcdir
1372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1376 cd "$ac_dir" || { ac_status=$?; continue; }
1377 # Check for guested configure.
1378 if test -f "$ac_srcdir/configure.gnu"; then
1380 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1381 elif test -f "$ac_srcdir/configure"; then
1383 $SHELL "$ac_srcdir/configure" --help=recursive
1385 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1387 cd "$ac_pwd" || { ac_status=$?; break; }
1391 test -n "$ac_init_help" && exit $ac_status
1392 if $ac_init_version; then
1395 generated by GNU Autoconf 2.61
1397 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1398 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1399 This configure script is free software; the Free Software Foundation
1400 gives unlimited permission to copy, distribute and modify it.
1404 cat >config.log <<_ACEOF
1405 This file contains any messages produced by compilers while
1406 running configure, to aid debugging if configure makes a mistake.
1408 It was created by $as_me, which was
1409 generated by GNU Autoconf 2.61. Invocation command line was
1421 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1422 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1423 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1424 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1425 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1427 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1428 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1430 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1431 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1432 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1433 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1434 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1435 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1436 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 test -z "$as_dir" && as_dir=.
1445 echo "PATH: $as_dir"
1461 # Keep a trace of the command line.
1462 # Strip out --no-create and --no-recursion so they do not pile up.
1463 # Strip out --silent because we don't want to record it for future runs.
1464 # Also quote any args containing shell meta-characters.
1465 # Make two passes to allow for proper duplicate-argument suppression.
1469 ac_must_keep_next=false
1475 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1477 | -silent | --silent | --silen | --sile | --sil)
1480 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1485 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1486 if test $ac_must_keep_next = true; then
1487 ac_must_keep_next=false # Got value, back to normal.
1490 *=* | --config-cache | -C | -disable-* | --disable-* \
1491 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1492 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1493 | -with-* | --with-* | -without-* | --without-* | --x)
1494 case "$ac_configure_args0 " in
1495 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1498 -* ) ac_must_keep_next=true ;;
1501 ac_configure_args="$ac_configure_args '$ac_arg'"
1506 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1507 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1509 # When interrupted or exit'd, cleanup temporary files, and complete
1510 # config.log. We remove comments because anyway the quotes in there
1511 # would cause problems or look ugly.
1512 # WARNING: Use '\'' to represent an apostrophe within the trap.
1513 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1514 trap 'exit_status=$?
1515 # Save into config.log some information that might help in debugging.
1520 ## ---------------- ##
1521 ## Cache variables. ##
1522 ## ---------------- ##
1525 # The following way of writing the cache mishandles newlines in values,
1527 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1528 eval ac_val=\$$ac_var
1532 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1533 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1536 _ | IFS | as_nl) ;; #(
1537 *) $as_unset $ac_var ;;
1542 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1543 *${as_nl}ac_space=\ *)
1545 "s/'\''/'\''\\\\'\'''\''/g;
1546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1557 ## ----------------- ##
1558 ## Output variables. ##
1559 ## ----------------- ##
1562 for ac_var in $ac_subst_vars
1564 eval ac_val=\$$ac_var
1566 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1568 echo "$ac_var='\''$ac_val'\''"
1572 if test -n "$ac_subst_files"; then
1574 ## ------------------- ##
1575 ## File substitutions. ##
1576 ## ------------------- ##
1579 for ac_var in $ac_subst_files
1581 eval ac_val=\$$ac_var
1583 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1585 echo "$ac_var='\''$ac_val'\''"
1590 if test -s confdefs.h; then
1600 test "$ac_signal" != 0 &&
1601 echo "$as_me: caught signal $ac_signal"
1602 echo "$as_me: exit $exit_status"
1604 rm -f core *.core core.conftest.* &&
1605 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1608 for ac_signal in 1 2 13 15; do
1609 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1613 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1614 rm -f -r conftest* confdefs.h
1616 # Predefined preprocessor variables.
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_NAME "$PACKAGE_NAME"
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_STRING "$PACKAGE_STRING"
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1643 # Let the site file select an alternate cache file if it wants to.
1644 # Prefer explicitly selected file to automatically selected ones.
1645 if test -n "$CONFIG_SITE"; then
1646 set x "$CONFIG_SITE"
1647 elif test "x$prefix" != xNONE; then
1648 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1650 set x "$ac_default_prefix/share/config.site" \
1651 "$ac_default_prefix/etc/config.site"
1656 if test -r "$ac_site_file"; then
1657 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1658 echo "$as_me: loading site script $ac_site_file" >&6;}
1659 sed 's/^/| /' "$ac_site_file" >&5
1664 if test -r "$cache_file"; then
1665 # Some versions of bash will fail to source /dev/null (special
1666 # files actually), so we avoid doing that.
1667 if test -f "$cache_file"; then
1668 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1669 echo "$as_me: loading cache $cache_file" >&6;}
1671 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1672 *) . "./$cache_file";;
1676 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1677 echo "$as_me: creating cache $cache_file" >&6;}
1681 # Check that the precious variables saved in the cache have kept the same
1683 ac_cache_corrupted=false
1684 for ac_var in $ac_precious_vars; do
1685 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1686 eval ac_new_set=\$ac_env_${ac_var}_set
1687 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1688 eval ac_new_val=\$ac_env_${ac_var}_value
1689 case $ac_old_set,$ac_new_set in
1691 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1692 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1693 ac_cache_corrupted=: ;;
1695 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1696 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1697 ac_cache_corrupted=: ;;
1700 if test "x$ac_old_val" != "x$ac_new_val"; then
1701 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1702 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1703 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1704 echo "$as_me: former value: $ac_old_val" >&2;}
1705 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1706 echo "$as_me: current value: $ac_new_val" >&2;}
1707 ac_cache_corrupted=:
1710 # Pass precious variables to config.status.
1711 if test "$ac_new_set" = set; then
1713 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1714 *) ac_arg=$ac_var=$ac_new_val ;;
1716 case " $ac_configure_args " in
1717 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1718 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1722 if $ac_cache_corrupted; then
1723 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1724 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1725 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1726 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1727 { (exit 1); exit 1; }; }
1747 ac_cpp='$CPP $CPPFLAGS'
1748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1755 # Check whether --enable-checkmem was given.
1756 if test "${enable_checkmem+set}" = set; then
1757 enableval=$enable_checkmem; CHECKMEM=true
1760 # Check whether --enable-debug was given.
1761 if test "${enable_debug+set}" = set; then
1762 enableval=$enable_debug; DEBUG=true
1765 # Check whether --enable-profiling was given.
1766 if test "${enable_profiling+set}" = set; then
1767 enableval=$enable_profiling; PROFILING=true
1770 # Check whether --enable-warnings was given.
1771 if test "${enable_warnings+set}" = set; then
1772 enableval=$enable_warnings; ENABLE_WARNINGS=true
1775 # Check whether --enable-optimizations was given.
1776 if test "${enable_optimizations+set}" = set; then
1777 enableval=$enable_optimizations; OPTIMIZE=true
1780 # Check whether --enable-lame was given.
1781 if test "${enable_lame+set}" = set; then
1782 enableval=$enable_lame; DISABLE_LAME=true
1786 # Check whether --with-poppler was given.
1787 if test "${with_poppler+set}" = set; then
1788 withval=$with_poppler; USE_POPPLER=true
1796 # ------------------------------------------------------------------
1798 if test "x${srcdir}" != "x."; then
1799 echo "--srcdir is not supported"
1803 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1804 if test "x$ENABLE_WARNINGS" '!=' "x";then
1805 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1808 if test "x$CHECKMEM" '!=' "x";then
1811 if test "x$PROFILING" '!=' "x";then
1814 if test "x$DEBUG" '!=' "x";then
1815 if test "x$PROFILING" = "x";then
1816 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1817 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1820 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1821 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1822 LDFLAGS="-g -pg $LIBS"
1824 else if test "x$OPTIMIZE" '!=' "x"; then
1825 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1826 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1828 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1829 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1833 CFLAGS="-fPIC $CFLAGS"
1834 CXXFLAGS="-fPIC $CFLAGS"
1837 #if test "x$OLDGCC" '!=' "x";then
1838 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1839 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1840 # CFLAGS="$CFLAGS -ansi -pendantic"
1841 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1844 export PACKAGE VERSION CFLAGS CXXFLAGS
1848 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1849 if test -f "$ac_dir/install-sh"; then
1851 ac_install_sh="$ac_aux_dir/install-sh -c"
1853 elif test -f "$ac_dir/install.sh"; then
1855 ac_install_sh="$ac_aux_dir/install.sh -c"
1857 elif test -f "$ac_dir/shtool"; then
1859 ac_install_sh="$ac_aux_dir/shtool install -c"
1863 if test -z "$ac_aux_dir"; then
1864 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1865 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1866 { (exit 1); exit 1; }; }
1869 # These three variables are undocumented and unsupported,
1870 # and are intended to be withdrawn in a future Autoconf release.
1871 # They can cause serious problems if a builder's source tree is in a directory
1872 # whose full name contains unusual characters.
1873 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1874 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1875 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1878 # Make sure we can run config.sub.
1879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1880 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1881 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1882 { (exit 1); exit 1; }; }
1884 { echo "$as_me:$LINENO: checking build system type" >&5
1885 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1886 if test "${ac_cv_build+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 ac_build_alias=$build_alias
1890 test "x$ac_build_alias" = x &&
1891 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1892 test "x$ac_build_alias" = x &&
1893 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1894 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1895 { (exit 1); exit 1; }; }
1896 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1897 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1898 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1899 { (exit 1); exit 1; }; }
1902 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1903 echo "${ECHO_T}$ac_cv_build" >&6; }
1904 case $ac_cv_build in
1906 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1907 echo "$as_me: error: invalid value of canonical build" >&2;}
1908 { (exit 1); exit 1; }; };;
1911 ac_save_IFS=$IFS; IFS='-'
1917 # Remember, the first character of IFS is used to create $*,
1918 # except with old shells:
1921 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1924 { echo "$as_me:$LINENO: checking host system type" >&5
1925 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1926 if test "${ac_cv_host+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 if test "x$host_alias" = x; then
1930 ac_cv_host=$ac_cv_build
1932 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1933 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1934 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1935 { (exit 1); exit 1; }; }
1939 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1940 echo "${ECHO_T}$ac_cv_host" >&6; }
1943 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1944 echo "$as_me: error: invalid value of canonical host" >&2;}
1945 { (exit 1); exit 1; }; };;
1948 ac_save_IFS=$IFS; IFS='-'
1954 # Remember, the first character of IFS is used to create $*,
1955 # except with old shells:
1958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1968 CXXFLAGS="$CXXFLAGS -fno-rtti"
1970 if test -d /opt/local/include && test -d /opt/local/lib; then
1971 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
1972 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
1974 # Use fink packages if available.
1975 #if test -d /sw/include && test -d /sw/lib; then
1976 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
1977 # LDFLAGS="${LDFLAGS} -L/sw/lib"
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989 if test -n "$ac_tool_prefix"; then
1990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1994 if test "${ac_cv_prog_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 if test -n "$CC"; then
1998 ac_cv_prog_CC="$CC" # Let the user override the test.
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 if test -n "$CC"; then
2019 { echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6; }
2022 { echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6; }
2028 if test -z "$ac_cv_prog_CC"; then
2030 # Extract the first word of "gcc", so it can be a program name with args.
2031 set dummy gcc; ac_word=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 if test -n "$ac_ct_CC"; then
2038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2047 ac_cv_prog_ac_ct_CC="gcc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2058 if test -n "$ac_ct_CC"; then
2059 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060 echo "${ECHO_T}$ac_ct_CC" >&6; }
2062 { echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6; }
2066 if test "x$ac_ct_CC" = x; then
2069 case $cross_compiling:$ac_tool_warned in
2071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet. If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&5
2074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet. If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077 ac_tool_warned=yes ;;
2085 if test -z "$CC"; then
2086 if test -n "$ac_tool_prefix"; then
2087 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2088 set dummy ${ac_tool_prefix}cc; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_prog_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test -n "$CC"; then
2095 ac_cv_prog_CC="$CC" # Let the user override the test.
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104 ac_cv_prog_CC="${ac_tool_prefix}cc"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 if test -n "$CC"; then
2116 { echo "$as_me:$LINENO: result: $CC" >&5
2117 echo "${ECHO_T}$CC" >&6; }
2119 { echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6; }
2126 if test -z "$CC"; then
2127 # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 test -z "$as_dir" && as_dir=.
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2145 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2146 ac_prog_rejected=yes
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 if test $ac_prog_rejected = yes; then
2158 # We found a bogon in the path, so make sure we never use it.
2159 set dummy $ac_cv_prog_CC
2161 if test $# != 0; then
2162 # We chose a different compiler from the bogus one.
2163 # However, it has the same basename, so the bogon will be chosen
2164 # first if we set CC to just the basename; use the full file name.
2166 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2172 if test -n "$CC"; then
2173 { echo "$as_me:$LINENO: result: $CC" >&5
2174 echo "${ECHO_T}$CC" >&6; }
2176 { echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6; }
2182 if test -z "$CC"; then
2183 if test -n "$ac_tool_prefix"; then
2184 for ac_prog in cl.exe
2186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 if test -n "$CC"; then
2215 { echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6; }
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2223 test -n "$CC" && break
2226 if test -z "$CC"; then
2228 for ac_prog in cl.exe
2230 # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy $ac_prog; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$ac_ct_CC"; then
2238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_ac_ct_CC="$ac_prog"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258 if test -n "$ac_ct_CC"; then
2259 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2260 echo "${ECHO_T}$ac_ct_CC" >&6; }
2262 { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2267 test -n "$ac_ct_CC" && break
2270 if test "x$ac_ct_CC" = x; then
2273 case $cross_compiling:$ac_tool_warned in
2275 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2276 whose name does not start with the host triplet. If you think this
2277 configuration is useful to you, please write to autoconf@gnu.org." >&5
2278 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2279 whose name does not start with the host triplet. If you think this
2280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2281 ac_tool_warned=yes ;;
2290 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: no acceptable C compiler found in \$PATH
2293 See \`config.log' for more details." >&2;}
2294 { (exit 1); exit 1; }; }
2296 # Provide some information about the compiler.
2297 echo "$as_me:$LINENO: checking for C compiler version" >&5
2298 ac_compiler=`set X $ac_compile; echo $2`
2299 { (ac_try="$ac_compiler --version >&5"
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2305 (eval "$ac_compiler --version >&5") 2>&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }
2309 { (ac_try="$ac_compiler -v >&5"
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2315 (eval "$ac_compiler -v >&5") 2>&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }
2319 { (ac_try="$ac_compiler -V >&5"
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2325 (eval "$ac_compiler -V >&5") 2>&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
2330 cat >conftest.$ac_ext <<_ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2345 ac_clean_files_save=$ac_clean_files
2346 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2347 # Try to create an executable without -o first, disregard a.out.
2348 # It will help us diagnose broken compilers, and finding out an intuition
2350 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2351 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2352 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2354 # List of possible output files, starting from the most likely.
2355 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2356 # only as a last resort. b.out is created by i960 compilers.
2357 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2359 # The IRIX 6 linker writes into existing files which may not be
2360 # executable, retaining their permissions. Remove them first so a
2361 # subsequent execution test works.
2363 for ac_file in $ac_files
2366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2372 if { (ac_try="$ac_link_default"
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_link_default") 2>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; then
2382 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2383 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2384 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2385 # so that the user can short-circuit this test for compilers unknown to
2387 for ac_file in $ac_files ''
2389 test -f "$ac_file" || continue
2391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2394 # We found the default executable, but exeext='' is most
2398 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2402 # We set ac_cv_exeext here because the later test for it is not
2403 # safe: cross compilers may not add the suffix if given an `-o'
2404 # argument, so we may need to know it at that point already.
2405 # Even if this section looks crufty: it has the advantage of
2412 test "$ac_cv_exeext" = no && ac_cv_exeext=
2418 { echo "$as_me:$LINENO: result: $ac_file" >&5
2419 echo "${ECHO_T}$ac_file" >&6; }
2420 if test -z "$ac_file"; then
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2424 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2425 See \`config.log' for more details." >&5
2426 echo "$as_me: error: C compiler cannot create executables
2427 See \`config.log' for more details." >&2;}
2428 { (exit 77); exit 77; }; }
2431 ac_exeext=$ac_cv_exeext
2433 # Check that the compiler produces executables we can run. If not, either
2434 # the compiler is broken, or we cross compile.
2435 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2436 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2437 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2438 # If not cross compiling, check that we can run a simple program.
2439 if test "$cross_compiling" != yes; then
2440 if { ac_try='./$ac_file'
2441 { (case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_try") 2>&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2452 if test "$cross_compiling" = maybe; then
2455 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2456 If you meant to cross compile, use \`--host'.
2457 See \`config.log' for more details." >&5
2458 echo "$as_me: error: cannot run C compiled programs.
2459 If you meant to cross compile, use \`--host'.
2460 See \`config.log' for more details." >&2;}
2461 { (exit 1); exit 1; }; }
2465 { echo "$as_me:$LINENO: result: yes" >&5
2466 echo "${ECHO_T}yes" >&6; }
2468 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2469 ac_clean_files=$ac_clean_files_save
2470 # Check that the compiler produces executables we can run. If not, either
2471 # the compiler is broken, or we cross compile.
2472 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2473 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2474 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2475 echo "${ECHO_T}$cross_compiling" >&6; }
2477 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2478 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2479 if { (ac_try="$ac_link"
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_link") 2>&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; then
2489 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2490 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2491 # work properly (i.e., refer to `conftest.exe'), while it won't with
2493 for ac_file in conftest.exe conftest conftest.*; do
2494 test -f "$ac_file" || continue
2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2497 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2503 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2504 See \`config.log' for more details." >&5
2505 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2506 See \`config.log' for more details." >&2;}
2507 { (exit 1); exit 1; }; }
2510 rm -f conftest$ac_cv_exeext
2511 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2512 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2514 rm -f conftest.$ac_ext
2515 EXEEXT=$ac_cv_exeext
2517 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2518 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2519 if test "${ac_cv_objext+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.o conftest.obj
2538 if { (ac_try="$ac_compile"
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compile") 2>&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; then
2548 for ac_file in conftest.o conftest.obj conftest.*; do
2549 test -f "$ac_file" || continue;
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6; }
2571 OBJEXT=$ac_cv_objext
2573 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2596 rm -f conftest.$ac_objext
2597 if { (ac_try="$ac_compile"
2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600 *) ac_try_echo=$ac_try;;
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603 (eval "$ac_compile") 2>conftest.er1
2605 grep -v '^ *+' conftest.er1 >conftest.err
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } && {
2610 test -z "$ac_c_werror_flag" ||
2611 test ! -s conftest.err
2612 } && test -s conftest.$ac_objext; then
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2625 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2626 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2627 GCC=`test $ac_compiler_gnu = yes && echo yes`
2628 ac_test_CFLAGS=${CFLAGS+set}
2629 ac_save_CFLAGS=$CFLAGS
2630 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2631 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_cc_g+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 ac_save_c_werror_flag=$ac_c_werror_flag
2636 ac_c_werror_flag=yes
2639 cat >conftest.$ac_ext <<_ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2654 rm -f conftest.$ac_objext
2655 if { (ac_try="$ac_compile"
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>conftest.er1
2663 grep -v '^ *+' conftest.er1 >conftest.err
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } && {
2668 test -z "$ac_c_werror_flag" ||
2669 test ! -s conftest.err
2670 } && test -s conftest.$ac_objext; then
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 rm -f conftest.$ac_objext
2693 if { (ac_try="$ac_compile"
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_compile") 2>conftest.er1
2701 grep -v '^ *+' conftest.er1 >conftest.err
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } && {
2706 test -z "$ac_c_werror_flag" ||
2707 test ! -s conftest.err
2708 } && test -s conftest.$ac_objext; then
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 ac_c_werror_flag=$ac_save_c_werror_flag
2716 cat >conftest.$ac_ext <<_ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 ac_c_werror_flag=$ac_save_c_werror_flag
2765 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2766 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2767 if test "$ac_test_CFLAGS" = set; then
2768 CFLAGS=$ac_save_CFLAGS
2769 elif test $ac_cv_prog_cc_g = yes; then
2770 if test "$GCC" = yes; then
2776 if test "$GCC" = yes; then
2782 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2783 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_cc_c89+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 ac_cv_prog_cc_c89=no
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2797 #include <sys/types.h>
2798 #include <sys/stat.h>
2799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2800 struct buf { int x; };
2801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2802 static char *e (p, i)
2808 static char *f (char * (*g) (char **, int), char **p, ...)
2813 s = g (p, va_arg (v,int));
2818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2819 function prototypes and stuff, but not '\xHH' hex character constants.
2820 These don't provoke an error unfortunately, instead are silently treated
2821 as 'x'. The following induces an error, until -std is added to get
2822 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2823 array size at least. It's necessary to write '\x00'==0 to get something
2824 that's true only with -std. */
2825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2828 inside strings and character constants. */
2830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2832 int test (int i, double x);
2833 struct s1 {int (*f) (int a);};
2834 struct s2 {int (*f) (double a);};
2835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2841 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2849 CC="$ac_save_CC $ac_arg"
2850 rm -f conftest.$ac_objext
2851 if { (ac_try="$ac_compile"
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_compile") 2>conftest.er1
2859 grep -v '^ *+' conftest.er1 >conftest.err
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } && {
2864 test -z "$ac_c_werror_flag" ||
2865 test ! -s conftest.err
2866 } && test -s conftest.$ac_objext; then
2867 ac_cv_prog_cc_c89=$ac_arg
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2875 rm -f core conftest.err conftest.$ac_objext
2876 test "x$ac_cv_prog_cc_c89" != "xno" && break
2878 rm -f conftest.$ac_ext
2883 case "x$ac_cv_prog_cc_c89" in
2885 { echo "$as_me:$LINENO: result: none needed" >&5
2886 echo "${ECHO_T}none needed" >&6; } ;;
2888 { echo "$as_me:$LINENO: result: unsupported" >&5
2889 echo "${ECHO_T}unsupported" >&6; } ;;
2891 CC="$CC $ac_cv_prog_cc_c89"
2892 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2893 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2904 ac_cpp='$CXXCPP $CPPFLAGS'
2905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2908 if test -z "$CXX"; then
2909 if test -n "$CCC"; then
2912 if test -n "$ac_tool_prefix"; then
2913 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2919 if test "${ac_cv_prog_CXX+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 if test -n "$CXX"; then
2923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 if test -n "$CXX"; then
2944 { echo "$as_me:$LINENO: result: $CXX" >&5
2945 echo "${ECHO_T}$CXX" >&6; }
2947 { echo "$as_me:$LINENO: result: no" >&5
2948 echo "${ECHO_T}no" >&6; }
2952 test -n "$CXX" && break
2955 if test -z "$CXX"; then
2957 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 if test -n "$ac_ct_CXX"; then
2967 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_CXX="$ac_prog"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2987 if test -n "$ac_ct_CXX"; then
2988 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2989 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2991 { echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6; }
2996 test -n "$ac_ct_CXX" && break
2999 if test "x$ac_ct_CXX" = x; then
3002 case $cross_compiling:$ac_tool_warned in
3004 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3005 whose name does not start with the host triplet. If you think this
3006 configuration is useful to you, please write to autoconf@gnu.org." >&5
3007 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3008 whose name does not start with the host triplet. If you think this
3009 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3010 ac_tool_warned=yes ;;
3018 # Provide some information about the compiler.
3019 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3020 ac_compiler=`set X $ac_compile; echo $2`
3021 { (ac_try="$ac_compiler --version >&5"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compiler --version >&5") 2>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }
3031 { (ac_try="$ac_compiler -v >&5"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compiler -v >&5") 2>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }
3041 { (ac_try="$ac_compiler -V >&5"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compiler -V >&5") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3052 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3053 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3054 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } && {
3089 test -z "$ac_cxx_werror_flag" ||
3090 test ! -s conftest.err
3091 } && test -s conftest.$ac_objext; then
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3101 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3104 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3105 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3106 GXX=`test $ac_compiler_gnu = yes && echo yes`
3107 ac_test_CXXFLAGS=${CXXFLAGS+set}
3108 ac_save_CXXFLAGS=$CXXFLAGS
3109 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3110 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3111 if test "${ac_cv_prog_cxx_g+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3115 ac_cxx_werror_flag=yes
3118 cat >conftest.$ac_ext <<_ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3133 rm -f conftest.$ac_objext
3134 if { (ac_try="$ac_compile"
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compile") 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } && {
3147 test -z "$ac_cxx_werror_flag" ||
3148 test ! -s conftest.err
3149 } && test -s conftest.$ac_objext; then
3150 ac_cv_prog_cxx_g=yes
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_cxx_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compile") 2>conftest.er1
3219 grep -v '^ *+' conftest.er1 >conftest.err
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } && {
3224 test -z "$ac_cxx_werror_flag" ||
3225 test ! -s conftest.err
3226 } && test -s conftest.$ac_objext; then
3227 ac_cv_prog_cxx_g=yes
3229 echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3244 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3245 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3246 if test "$ac_test_CXXFLAGS" = set; then
3247 CXXFLAGS=$ac_save_CXXFLAGS
3248 elif test $ac_cv_prog_cxx_g = yes; then
3249 if test "$GXX" = yes; then
3255 if test "$GXX" = yes; then
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3271 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3273 cat > conftest.c << EOF
3277 int main (int argc, char*argv)
3287 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3288 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3289 { echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6; }
3294 echo "configure: failed program was:" >&5
3296 { echo "$as_me:$LINENO: result: no" >&5
3297 echo "${ECHO_T}no" >&6; }
3302 if test "x$GCC_IS_OK" '=' "x";then
3303 echo "***************************************************"
3304 echo "* Your gcc is too old to compile this!"
3306 echo "* The last version compileable by this compiler is "
3307 echo "* swftools 0.7.0, which you can download from "
3308 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3310 echo "* Newer versions require at least gcc 3.0.0 "
3311 echo "***************************************************"
3315 if test "x$CHECKMEM" '!=' "x";then
3319 #unset ac_cv_prog_CC
3320 #unset ac_cv_prog_CXX
3325 ac_cpp='$CPP $CPPFLAGS'
3326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3330 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3331 # On Suns, sometimes $CPP names a directory.
3332 if test -n "$CPP" && test -d "$CPP"; then
3335 if test -z "$CPP"; then
3336 if test "${ac_cv_prog_CPP+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 # Double quotes because CPP needs to be expanded
3340 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3343 for ac_c_preproc_warn_flag in '' yes
3345 # Use a header file that comes with gcc, so configuring glibc
3346 # with a fresh cross-compiler works.
3347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348 # <limits.h> exists even on freestanding compilers.
3349 # On the NeXT, cc -E runs the code through the compiler's parser,
3350 # not just through cpp. "Syntax error" is here to catch this case.
3351 cat >conftest.$ac_ext <<_ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3358 # include <limits.h>
3360 # include <assert.h>
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null && {
3377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3378 test ! -s conftest.err
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 # Broken: fails on valid input.
3389 rm -f conftest.err conftest.$ac_ext
3391 # OK, works on sane cases. Now check whether nonexistent headers
3392 # can be detected and how.
3393 cat >conftest.$ac_ext <<_ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399 #include <ac_nonexistent.h>
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null && {
3414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3415 test ! -s conftest.err
3417 # Broken: success on invalid input.
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 # Passes both tests.
3428 rm -f conftest.err conftest.$ac_ext
3431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3432 rm -f conftest.err conftest.$ac_ext
3433 if $ac_preproc_ok; then
3445 { echo "$as_me:$LINENO: result: $CPP" >&5
3446 echo "${ECHO_T}$CPP" >&6; }
3448 for ac_c_preproc_warn_flag in '' yes
3450 # Use a header file that comes with gcc, so configuring glibc
3451 # with a fresh cross-compiler works.
3452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3453 # <limits.h> exists even on freestanding compilers.
3454 # On the NeXT, cc -E runs the code through the compiler's parser,
3455 # not just through cpp. "Syntax error" is here to catch this case.
3456 cat >conftest.$ac_ext <<_ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3463 # include <limits.h>
3465 # include <assert.h>
3469 if { (ac_try="$ac_cpp conftest.$ac_ext"
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3477 grep -v '^ *+' conftest.er1 >conftest.err
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } >/dev/null && {
3482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3483 test ! -s conftest.err
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 # Broken: fails on valid input.
3494 rm -f conftest.err conftest.$ac_ext
3496 # OK, works on sane cases. Now check whether nonexistent headers
3497 # can be detected and how.
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 #include <ac_nonexistent.h>
3506 if { (ac_try="$ac_cpp conftest.$ac_ext"
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3514 grep -v '^ *+' conftest.er1 >conftest.err
3516 cat conftest.err >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } >/dev/null && {
3519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3520 test ! -s conftest.err
3522 # Broken: success on invalid input.
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 # Passes both tests.
3533 rm -f conftest.err conftest.$ac_ext
3536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3537 rm -f conftest.err conftest.$ac_ext
3538 if $ac_preproc_ok; then
3541 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3542 See \`config.log' for more details." >&5
3543 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3544 See \`config.log' for more details." >&2;}
3545 { (exit 1); exit 1; }; }
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 if test -n "$ac_tool_prefix"; then
3556 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3560 if test "${ac_cv_prog_RANLIB+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 if test -n "$RANLIB"; then
3564 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 RANLIB=$ac_cv_prog_RANLIB
3584 if test -n "$RANLIB"; then
3585 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3586 echo "${ECHO_T}$RANLIB" >&6; }
3588 { echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6; }
3594 if test -z "$ac_cv_prog_RANLIB"; then
3595 ac_ct_RANLIB=$RANLIB
3596 # Extract the first word of "ranlib", so it can be a program name with args.
3597 set dummy ranlib; ac_word=$2
3598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3600 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 if test -n "$ac_ct_RANLIB"; then
3604 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_ac_ct_RANLIB="ranlib"
3614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3624 if test -n "$ac_ct_RANLIB"; then
3625 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3626 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3628 { echo "$as_me:$LINENO: result: no" >&5
3629 echo "${ECHO_T}no" >&6; }
3632 if test "x$ac_ct_RANLIB" = x; then
3635 case $cross_compiling:$ac_tool_warned in
3637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3638 whose name does not start with the host triplet. If you think this
3639 configuration is useful to you, please write to autoconf@gnu.org." >&5
3640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3641 whose name does not start with the host triplet. If you think this
3642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3643 ac_tool_warned=yes ;;
3645 RANLIB=$ac_ct_RANLIB
3648 RANLIB="$ac_cv_prog_RANLIB"
3651 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3652 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3653 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3654 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 cat >conftest.make <<\_ACEOF
3660 @echo '@@@%%%=$(MAKE)=@@@%%%'
3662 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3665 eval ac_cv_prog_make_${ac_make}_set=yes;;
3667 eval ac_cv_prog_make_${ac_make}_set=no;;
3671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3672 { echo "$as_me:$LINENO: result: yes" >&5
3673 echo "${ECHO_T}yes" >&6; }
3676 { echo "$as_me:$LINENO: result: no" >&5
3677 echo "${ECHO_T}no" >&6; }
3678 SET_MAKE="MAKE=${MAKE-make}"
3681 # Find a good install program. We prefer a C program (faster),
3682 # so one script is as good as another. But avoid the broken or
3683 # incompatible versions:
3684 # SysV /etc/install, /usr/sbin/install
3685 # SunOS /usr/etc/install
3686 # IRIX /sbin/install
3688 # AmigaOS /C/install, which installs bootblocks on floppy discs
3689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3692 # OS/2's system install, which has a completely different semantic
3693 # ./install, which can be erroneously created by make from ./install.sh.
3694 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3695 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3696 if test -z "$INSTALL"; then
3697 if test "${ac_cv_path_install+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 # Account for people who put trailing slashes in PATH elements.
3707 ./ | .// | /cC/* | \
3708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3712 # OSF1 and SCO ODT 3.0 have their own names for install.
3713 # Don't use installbsd from OSF since it installs stuff as root
3715 for ac_prog in ginstall scoinst install; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3718 if test $ac_prog = install &&
3719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720 # AIX install. It has an incompatible calling convention.
3722 elif test $ac_prog = install &&
3723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3724 # program-specific install script used by HP pwplus--don't use.
3727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3740 if test "${ac_cv_path_install+set}" = set; then
3741 INSTALL=$ac_cv_path_install
3743 # As a last resort, use the slow shell script. Don't cache a
3744 # value for INSTALL within a source directory, because that will
3745 # break other packages using the cache if that directory is
3746 # removed, or if the value is a relative name.
3747 INSTALL=$ac_install_sh
3750 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3751 echo "${ECHO_T}$INSTALL" >&6; }
3753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3754 # It thinks the first close brace ends the variable substitution.
3755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3761 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3762 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3764 if test "$LN_S" = "ln -s"; then
3765 { echo "$as_me:$LINENO: result: yes" >&5
3766 echo "${ECHO_T}yes" >&6; }
3768 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3769 echo "${ECHO_T}no, using $LN_S" >&6; }
3772 for ac_prog in gzip uncompress compress
3774 # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3778 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 if test -n "$UNCOMPRESS"; then
3782 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_prog_UNCOMPRESS="$ac_prog"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3802 if test -n "$UNCOMPRESS"; then
3803 { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3804 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3806 { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3811 test -n "$UNCOMPRESS" && break
3822 if test "x$EXEEXT" = "x.exe";then
3831 { echo "$as_me:$LINENO: checking host system type" >&5
3832 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3833 if test "${ac_cv_host+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 if test "x$host_alias" = x; then
3837 ac_cv_host=$ac_cv_build
3839 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3840 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3841 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3842 { (exit 1); exit 1; }; }
3846 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3847 echo "${ECHO_T}$ac_cv_host" >&6; }
3850 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3851 echo "$as_me: error: invalid value of canonical host" >&2;}
3852 { (exit 1); exit 1; }; };;
3855 ac_save_IFS=$IFS; IFS='-'
3861 # Remember, the first character of IFS is used to create $*,
3862 # except with old shells:
3865 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3870 { echo "$as_me:$LINENO: checking for target system" >&5
3871 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3875 *cygwin* ) CYGWIN=yes;;
3876 *mingw* ) MINGW=yes;;
3880 if test "x$MINGW" = "xyes"; then
3881 #fix for the debian distribution of mingw
3882 if test -x "/usr/i586-mingw32msvc/bin/ar";then
3883 AR="/usr/i586-mingw32msvc/bin/ar"
3885 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3886 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3888 #fix for the gentoo distribution of mingw
3889 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3890 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3892 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3893 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3895 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3896 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3902 if test "x${CYGWIN}" = "xyes"; then
3904 cat >>confdefs.h <<\_ACEOF
3908 { echo "$as_me:$LINENO: result: cygwin" >&5
3909 echo "${ECHO_T}cygwin" >&6; }
3911 if test "x${MINGW}" = "xyes"; then
3913 cat >>confdefs.h <<\_ACEOF
3919 cat >>confdefs.h <<\_ACEOF
3923 LIBS="$LIBS -lws2_32 -lgdi32"
3924 { echo "$as_me:$LINENO: result: mingw" >&5
3925 echo "${ECHO_T}mingw" >&6; }
3930 cat >>confdefs.h <<\_ACEOF
3934 { echo "$as_me:$LINENO: result: " >&5
3935 echo "${ECHO_T}" >&6; }
3941 if test "x${MINGW}" != "xyes"; then
3944 cat >>confdefs.h <<\_ACEOF
3957 # The following tries to make use of includes and libraries in
3958 # /usr/local, too. Notice: A -I/usr/local/include might break
3959 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3960 # especially on systems which link /usr/local to /usr, so it has yet
3961 # to be seen how useful this is.
3962 if test -d /usr/local/lib; then
3963 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3965 if test -d /usr/local/include; then
3966 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3967 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3970 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3971 # if the user has a special prefix (like /opt), there might also be $prefix/lib
3972 # and $prefix/include, which should be included in our search paths for libraries
3974 LDFLAGS="$LDFLAGS -L${libdir}"
3975 CPPFLAGS="$CPPFLAGS -I${includedir}"
3976 # TODO- test whether gcc still works after this
3980 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3983 # this must be done after (I believe) AC_PROG_MAKE_SET
3984 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3985 STRIP="@echo debug enabled, not stripping "
3992 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3993 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3994 if test "${ac_cv_lib_m_sin+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 ac_check_lib_save_LIBS=$LIBS
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4006 /* Override any GCC internal prototype to avoid an error.
4007 Use char because int might match the return type of a GCC
4008 builtin and then its argument prototype would still apply. */
4021 rm -f conftest.$ac_objext conftest$ac_exeext
4022 if { (ac_try="$ac_link"
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_link") 2>conftest.er1
4030 grep -v '^ *+' conftest.er1 >conftest.err
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } && {
4035 test -z "$ac_c_werror_flag" ||
4036 test ! -s conftest.err
4037 } && test -s conftest$ac_exeext &&
4038 $as_test_x conftest$ac_exeext; then
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4048 conftest$ac_exeext conftest.$ac_ext
4049 LIBS=$ac_check_lib_save_LIBS
4051 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4052 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4053 if test $ac_cv_lib_m_sin = yes; then
4054 cat >>confdefs.h <<_ACEOF
4061 echo "Error: Math library not found.";
4067 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4068 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4069 if test "${ac_cv_lib_z_deflate+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_check_lib_save_LIBS=$LIBS
4074 cat >conftest.$ac_ext <<_ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4081 /* Override any GCC internal prototype to avoid an error.
4082 Use char because int might match the return type of a GCC
4083 builtin and then its argument prototype would still apply. */
4096 rm -f conftest.$ac_objext conftest$ac_exeext
4097 if { (ac_try="$ac_link"
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_link") 2>conftest.er1
4105 grep -v '^ *+' conftest.er1 >conftest.err
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } && {
4110 test -z "$ac_c_werror_flag" ||
4111 test ! -s conftest.err
4112 } && test -s conftest$ac_exeext &&
4113 $as_test_x conftest$ac_exeext; then
4114 ac_cv_lib_z_deflate=yes
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4119 ac_cv_lib_z_deflate=no
4122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4123 conftest$ac_exeext conftest.$ac_ext
4124 LIBS=$ac_check_lib_save_LIBS
4126 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4127 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4128 if test $ac_cv_lib_z_deflate = yes; then
4129 cat >>confdefs.h <<_ACEOF
4140 if test "x$ZLIBMISSING" = "xtrue";then
4143 echo "You need zlib to compile swftools"
4149 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4150 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4151 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 ac_check_lib_save_LIBS=$LIBS
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4163 /* Override any GCC internal prototype to avoid an error.
4164 Use char because int might match the return type of a GCC
4165 builtin and then its argument prototype would still apply. */
4169 char jpeg_write_raw_data ();
4173 return jpeg_write_raw_data ();
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (ac_try="$ac_link"
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_link") 2>conftest.er1
4187 grep -v '^ *+' conftest.er1 >conftest.err
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && {
4192 test -z "$ac_c_werror_flag" ||
4193 test ! -s conftest.err
4194 } && test -s conftest$ac_exeext &&
4195 $as_test_x conftest$ac_exeext; then
4196 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4205 conftest$ac_exeext conftest.$ac_ext
4206 LIBS=$ac_check_lib_save_LIBS
4208 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4209 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4210 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4211 cat >>confdefs.h <<_ACEOF
4212 #define HAVE_LIBJPEG 1
4222 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4223 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4224 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 ac_check_lib_save_LIBS=$LIBS
4228 LIBS="-lungif $LIBS"
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4236 /* Override any GCC internal prototype to avoid an error.
4237 Use char because int might match the return type of a GCC
4238 builtin and then its argument prototype would still apply. */
4251 rm -f conftest.$ac_objext conftest$ac_exeext
4252 if { (ac_try="$ac_link"
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_link") 2>conftest.er1
4260 grep -v '^ *+' conftest.er1 >conftest.err
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } && {
4265 test -z "$ac_c_werror_flag" ||
4266 test ! -s conftest.err
4267 } && test -s conftest$ac_exeext &&
4268 $as_test_x conftest$ac_exeext; then
4269 ac_cv_lib_ungif_DGifOpen=yes
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4274 ac_cv_lib_ungif_DGifOpen=no
4277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4278 conftest$ac_exeext conftest.$ac_ext
4279 LIBS=$ac_check_lib_save_LIBS
4281 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4282 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4283 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4284 cat >>confdefs.h <<_ACEOF
4285 #define HAVE_LIBUNGIF 1
4288 LIBS="-lungif $LIBS"
4294 if test "$UNGIFMISSING";then
4297 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4298 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4299 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 ac_check_lib_save_LIBS=$LIBS
4304 cat >conftest.$ac_ext <<_ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4311 /* Override any GCC internal prototype to avoid an error.
4312 Use char because int might match the return type of a GCC
4313 builtin and then its argument prototype would still apply. */
4326 rm -f conftest.$ac_objext conftest$ac_exeext
4327 if { (ac_try="$ac_link"
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_link") 2>conftest.er1
4335 grep -v '^ *+' conftest.er1 >conftest.err
4337 cat conftest.err >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } && {
4340 test -z "$ac_c_werror_flag" ||
4341 test ! -s conftest.err
4342 } && test -s conftest$ac_exeext &&
4343 $as_test_x conftest$ac_exeext; then
4344 ac_cv_lib_gif_DGifOpen=yes
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 ac_cv_lib_gif_DGifOpen=no
4352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4353 conftest$ac_exeext conftest.$ac_ext
4354 LIBS=$ac_check_lib_save_LIBS
4356 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4357 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4358 if test $ac_cv_lib_gif_DGifOpen = yes; then
4359 cat >>confdefs.h <<_ACEOF
4360 #define HAVE_LIBGIF 1
4372 { echo "$as_me:$LINENO: checking for byte order" >&5
4373 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4374 if test "$cross_compiling" = yes; then
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4384 int main (int argc, char *argv[])
4391 rm -f conftest$ac_exeext
4392 if { (ac_try="$ac_link"
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_link") 2>&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4402 { (case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_try") 2>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4413 echo "$as_me: program exited with status $ac_status" >&5
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4426 if test "x${CROSSCOMPILE}" = "x1"; then
4427 { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4428 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4429 { echo "$as_me:$LINENO: checking target system type" >&5
4430 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4431 if test "${ac_cv_target+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 if test "x$target_alias" = x; then
4435 ac_cv_target=$ac_cv_host
4437 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4438 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4439 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4440 { (exit 1); exit 1; }; }
4444 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4445 echo "${ECHO_T}$ac_cv_target" >&6; }
4446 case $ac_cv_target in
4448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4449 echo "$as_me: error: invalid value of canonical target" >&2;}
4450 { (exit 1); exit 1; }; };;
4452 target=$ac_cv_target
4453 ac_save_IFS=$IFS; IFS='-'
4459 # Remember, the first character of IFS is used to create $*,
4460 # except with old shells:
4463 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4466 # The aliases save the names the user supplied, while $host etc.
4467 # will get canonicalized.
4468 test -n "$target_alias" &&
4469 test "$program_prefix$program_suffix$program_transform_name" = \
4471 program_prefix=${target_alias}-
4472 { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4473 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4478 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4485 if test "x${LITTLEENDIAN}" = "x1"; then
4486 { echo "$as_me:$LINENO: result: little endian" >&5
4487 echo "${ECHO_T}little endian" >&6; }
4491 if test "x${BIGENDIAN}" = "x1"; then
4492 { echo "$as_me:$LINENO: result: big endian" >&5
4493 echo "${ECHO_T}big endian" >&6; }
4496 export WORDS_BIGENDIAN
4498 cat >>confdefs.h <<\_ACEOF
4499 #define WORDS_BIGENDIAN 1
4503 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4504 { echo "$as_me:$LINENO: result: unknown" >&5
4505 echo "${ECHO_T}unknown" >&6; }
4506 echo Byte order could not determined.
4512 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4513 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4514 if test "$cross_compiling" = yes; then
4517 cat >conftest.$ac_ext <<_ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4525 int main (int argc, char*argv[])
4527 return system("test `touch config.tmp2`");
4531 rm -f conftest$ac_exeext
4532 if { (ac_try="$ac_link"
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_link") 2>&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4542 { (case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547 (eval "$ac_try") 2>&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4553 echo "$as_me: program exited with status $ac_status" >&5
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4563 if test "x${OK}" = "xOK";then
4564 test -f config.tmp2 || OK=
4567 if test "x${CROSSCOMPILE}" = "x1";then
4570 if test "x${OK}" = "xOK";then
4572 { echo "$as_me:$LINENO: result: yes" >&5
4573 echo "${ECHO_T}yes" >&6; }
4575 export SYSTEM_BACKTICKS
4577 cat >>confdefs.h <<\_ACEOF
4578 #define SYSTEM_BACKTICKS 1
4582 { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4588 test "$program_prefix" != NONE &&
4589 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4590 # Use a double $ so make ignores it.
4591 test "$program_suffix" != NONE &&
4592 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4593 # Double any \ or $. echo might interpret backslashes.
4594 # By default was `s,x,x', remove it if useless.
4595 cat <<\_ACEOF >conftest.sed
4596 s/[\\$]/&&/g;s/;s,x,x,$//
4598 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4602 ac_config_headers="$ac_config_headers config.h"
4610 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4611 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4612 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4613 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 cat >conftest.$ac_ext <<_ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 #include <sys/types.h>
4635 rm -f conftest.$ac_objext
4636 if { (ac_try="$ac_compile"
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_compile") 2>conftest.er1
4644 grep -v '^ *+' conftest.er1 >conftest.err
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.$ac_objext; then
4652 eval "$as_ac_Header=yes"
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 eval "$as_ac_Header=no"
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 ac_res=`eval echo '${'$as_ac_Header'}'`
4663 { echo "$as_me:$LINENO: result: $ac_res" >&5
4664 echo "${ECHO_T}$ac_res" >&6; }
4665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4666 cat >>confdefs.h <<_ACEOF
4667 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4670 ac_header_dirent=$ac_hdr; break
4674 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4675 if test $ac_header_dirent = dirent.h; then
4676 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4677 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4678 if test "${ac_cv_search_opendir+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 ac_func_search_save_LIBS=$LIBS
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4689 /* Override any GCC internal prototype to avoid an error.
4690 Use char because int might match the return type of a GCC
4691 builtin and then its argument prototype would still apply. */
4704 for ac_lib in '' dir; do
4705 if test -z "$ac_lib"; then
4706 ac_res="none required"
4709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4711 rm -f conftest.$ac_objext conftest$ac_exeext
4712 if { (ac_try="$ac_link"
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718 (eval "$ac_link") 2>conftest.er1
4720 grep -v '^ *+' conftest.er1 >conftest.err
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } && {
4725 test -z "$ac_c_werror_flag" ||
4726 test ! -s conftest.err
4727 } && test -s conftest$ac_exeext &&
4728 $as_test_x conftest$ac_exeext; then
4729 ac_cv_search_opendir=$ac_res
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4739 if test "${ac_cv_search_opendir+set}" = set; then
4743 if test "${ac_cv_search_opendir+set}" = set; then
4746 ac_cv_search_opendir=no
4749 LIBS=$ac_func_search_save_LIBS
4751 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4752 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4753 ac_res=$ac_cv_search_opendir
4754 if test "$ac_res" != no; then
4755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4760 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4761 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4762 if test "${ac_cv_search_opendir+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 ac_func_search_save_LIBS=$LIBS
4766 cat >conftest.$ac_ext <<_ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4773 /* Override any GCC internal prototype to avoid an error.
4774 Use char because int might match the return type of a GCC
4775 builtin and then its argument prototype would still apply. */
4788 for ac_lib in '' x; do
4789 if test -z "$ac_lib"; then
4790 ac_res="none required"
4793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4795 rm -f conftest.$ac_objext conftest$ac_exeext
4796 if { (ac_try="$ac_link"
4798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799 *) ac_try_echo=$ac_try;;
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802 (eval "$ac_link") 2>conftest.er1
4804 grep -v '^ *+' conftest.er1 >conftest.err
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } && {
4809 test -z "$ac_c_werror_flag" ||
4810 test ! -s conftest.err
4811 } && test -s conftest$ac_exeext &&
4812 $as_test_x conftest$ac_exeext; then
4813 ac_cv_search_opendir=$ac_res
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4823 if test "${ac_cv_search_opendir+set}" = set; then
4827 if test "${ac_cv_search_opendir+set}" = set; then
4830 ac_cv_search_opendir=no
4833 LIBS=$ac_func_search_save_LIBS
4835 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4836 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4837 ac_res=$ac_cv_search_opendir
4838 if test "$ac_res" != no; then
4839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4846 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4847 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4848 if test "${ac_cv_path_GREP+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 # Extract the first word of "grep ggrep" to use in msg output
4852 if test -z "$GREP"; then
4853 set dummy grep ggrep; ac_prog_name=$2
4854 if test "${ac_cv_path_GREP+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 ac_path_GREP_found=false
4858 # Loop through the user's path and test for each of PROGNAME-LIST
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4863 test -z "$as_dir" && as_dir=.
4864 for ac_prog in grep ggrep; do
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4867 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4868 # Check for GNU ac_path_GREP and select it if it is found.
4869 # Check for GNU $ac_path_GREP
4870 case `"$ac_path_GREP" --version 2>&1` in
4872 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4875 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4878 cat "conftest.in" "conftest.in" >"conftest.tmp"
4879 mv "conftest.tmp" "conftest.in"
4880 cp "conftest.in" "conftest.nl"
4881 echo 'GREP' >> "conftest.nl"
4882 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4884 ac_count=`expr $ac_count + 1`
4885 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4886 # Best one so far, save it but keep looking for a better one
4887 ac_cv_path_GREP="$ac_path_GREP"
4888 ac_path_GREP_max=$ac_count
4890 # 10*(2^10) chars as input seems more than enough
4891 test $ac_count -gt 10 && break
4893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4897 $ac_path_GREP_found && break 3
4907 GREP="$ac_cv_path_GREP"
4908 if test -z "$GREP"; then
4909 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4910 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4911 { (exit 1); exit 1; }; }
4915 ac_cv_path_GREP=$GREP
4920 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4921 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4922 GREP="$ac_cv_path_GREP"
4925 { echo "$as_me:$LINENO: checking for egrep" >&5
4926 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4927 if test "${ac_cv_path_EGREP+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4931 then ac_cv_path_EGREP="$GREP -E"
4933 # Extract the first word of "egrep" to use in msg output
4934 if test -z "$EGREP"; then
4935 set dummy egrep; ac_prog_name=$2
4936 if test "${ac_cv_path_EGREP+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 ac_path_EGREP_found=false
4940 # Loop through the user's path and test for each of PROGNAME-LIST
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4945 test -z "$as_dir" && as_dir=.
4946 for ac_prog in egrep; do
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4949 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4950 # Check for GNU ac_path_EGREP and select it if it is found.
4951 # Check for GNU $ac_path_EGREP
4952 case `"$ac_path_EGREP" --version 2>&1` in
4954 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4957 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4960 cat "conftest.in" "conftest.in" >"conftest.tmp"
4961 mv "conftest.tmp" "conftest.in"
4962 cp "conftest.in" "conftest.nl"
4963 echo 'EGREP' >> "conftest.nl"
4964 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4966 ac_count=`expr $ac_count + 1`
4967 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4968 # Best one so far, save it but keep looking for a better one
4969 ac_cv_path_EGREP="$ac_path_EGREP"
4970 ac_path_EGREP_max=$ac_count
4972 # 10*(2^10) chars as input seems more than enough
4973 test $ac_count -gt 10 && break
4975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4979 $ac_path_EGREP_found && break 3
4989 EGREP="$ac_cv_path_EGREP"
4990 if test -z "$EGREP"; then
4991 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4992 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4993 { (exit 1); exit 1; }; }
4997 ac_cv_path_EGREP=$EGREP
5003 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5004 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5005 EGREP="$ac_cv_path_EGREP"
5008 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5009 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5010 if test "${ac_cv_header_stdc+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 cat >conftest.$ac_ext <<_ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5032 rm -f conftest.$ac_objext
5033 if { (ac_try="$ac_compile"
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039 (eval "$ac_compile") 2>conftest.er1
5041 grep -v '^ *+' conftest.er1 >conftest.err
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } && {
5046 test -z "$ac_c_werror_flag" ||
5047 test ! -s conftest.err
5048 } && test -s conftest.$ac_objext; then
5049 ac_cv_header_stdc=yes
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 ac_cv_header_stdc=no
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059 if test $ac_cv_header_stdc = yes; then
5060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5061 cat >conftest.$ac_ext <<_ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5071 $EGREP "memchr" >/dev/null 2>&1; then
5074 ac_cv_header_stdc=no
5080 if test $ac_cv_header_stdc = yes; then
5081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5082 cat >conftest.$ac_ext <<_ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5092 $EGREP "free" >/dev/null 2>&1; then
5095 ac_cv_header_stdc=no
5101 if test $ac_cv_header_stdc = yes; then
5102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5103 if test "$cross_compiling" = yes; then
5106 cat >conftest.$ac_ext <<_ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5114 #if ((' ' & 0x0FF) == 0x020)
5115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5118 # define ISLOWER(c) \
5119 (('a' <= (c) && (c) <= 'i') \
5120 || ('j' <= (c) && (c) <= 'r') \
5121 || ('s' <= (c) && (c) <= 'z'))
5122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5130 for (i = 0; i < 256; i++)
5131 if (XOR (islower (i), ISLOWER (i))
5132 || toupper (i) != TOUPPER (i))
5137 rm -f conftest$ac_exeext
5138 if { (ac_try="$ac_link"
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144 (eval "$ac_link") 2>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5148 { (case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_try") 2>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; }; then
5159 echo "$as_me: program exited with status $ac_status" >&5
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5164 ac_cv_header_stdc=no
5166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5172 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5173 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5174 if test $ac_cv_header_stdc = yes; then
5176 cat >>confdefs.h <<\_ACEOF
5177 #define STDC_HEADERS 1
5183 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5193 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5194 inttypes.h stdint.h unistd.h
5196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 cat >conftest.$ac_ext <<_ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 $ac_includes_default
5210 #include <$ac_header>
5212 rm -f conftest.$ac_objext
5213 if { (ac_try="$ac_compile"
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_compile") 2>conftest.er1
5221 grep -v '^ *+' conftest.er1 >conftest.err
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } && {
5226 test -z "$ac_c_werror_flag" ||
5227 test ! -s conftest.err
5228 } && test -s conftest.$ac_objext; then
5229 eval "$as_ac_Header=yes"
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 eval "$as_ac_Header=no"
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5239 ac_res=`eval echo '${'$as_ac_Header'}'`
5240 { echo "$as_me:$LINENO: result: $ac_res" >&5
5241 echo "${ECHO_T}$ac_res" >&6; }
5242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5243 cat >>confdefs.h <<_ACEOF
5244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5271 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h
5273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 ac_res=`eval echo '${'$as_ac_Header'}'`
5281 { echo "$as_me:$LINENO: result: $ac_res" >&5
5282 echo "${ECHO_T}$ac_res" >&6; }
5284 # Is the header compilable?
5285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5287 cat >conftest.$ac_ext <<_ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 $ac_includes_default
5294 #include <$ac_header>
5296 rm -f conftest.$ac_objext
5297 if { (ac_try="$ac_compile"
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_compile") 2>conftest.er1
5305 grep -v '^ *+' conftest.er1 >conftest.err
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } && {
5310 test -z "$ac_c_werror_flag" ||
5311 test ! -s conftest.err
5312 } && test -s conftest.$ac_objext; then
5313 ac_header_compiler=yes
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_header_compiler=no
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5323 echo "${ECHO_T}$ac_header_compiler" >&6; }
5325 # Is the header present?
5326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5328 cat >conftest.$ac_ext <<_ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5334 #include <$ac_header>
5336 if { (ac_try="$ac_cpp conftest.$ac_ext"
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5344 grep -v '^ *+' conftest.er1 >conftest.err
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } >/dev/null && {
5349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5350 test ! -s conftest.err
5352 ac_header_preproc=yes
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 ac_header_preproc=no
5360 rm -f conftest.err conftest.$ac_ext
5361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5362 echo "${ECHO_T}$ac_header_preproc" >&6; }
5364 # So? What about this header?
5365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5371 ac_header_preproc=yes
5374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 eval "$as_ac_Header=\$ac_header_preproc"
5396 ac_res=`eval echo '${'$as_ac_Header'}'`
5397 { echo "$as_me:$LINENO: result: $ac_res" >&5
5398 echo "${ECHO_T}$ac_res" >&6; }
5401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5402 cat >>confdefs.h <<_ACEOF
5403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5412 cat >>confdefs.h <<_ACEOF
5413 #define PACKAGE "$PACKAGE"
5417 cat >>confdefs.h <<_ACEOF
5418 #define VERSION "$VERSION"
5427 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5428 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5429 if test "${ac_cv_c_const+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5442 /* FIXME: Include the comments suggested by Paul. */
5444 /* Ultrix mips cc rejects this. */
5445 typedef int charset[2];
5447 /* SunOS 4.1.1 cc rejects this. */
5448 char const *const *pcpcc;
5450 /* NEC SVR4.0.2 mips cc rejects this. */
5451 struct point {int x, y;};
5452 static struct point const zero = {0,0};
5453 /* AIX XL C 1.02.0.0 rejects this.
5454 It does not let you subtract one const X* pointer from another in
5455 an arm of an if-expression whose if-part is not a constant
5457 const char *g = "string";
5458 pcpcc = &g + (g ? g-g : 0);
5459 /* HPUX 7.0 cc rejects these. */
5461 ppc = (char**) pcpcc;
5462 pcpcc = (char const *const *) ppc;
5463 { /* SCO 3.2v4 cc rejects this. */
5465 char const *s = 0 ? (char *) 0 : (char const *) 0;
5470 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5472 const int *foo = &x[0];
5475 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5476 typedef const int *iptr;
5480 { /* AIX XL C 1.02.0.0 rejects this saying
5481 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5482 struct s { int j; const int *ap[3]; };
5483 struct s *b; b->j = 5;
5485 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5489 return !cs[0] && !zero.x;
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compile") 2>conftest.er1
5505 grep -v '^ *+' conftest.er1 >conftest.err
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && {
5510 test -z "$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5524 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5525 if test $ac_cv_c_const = no; then
5527 cat >>confdefs.h <<\_ACEOF
5533 { echo "$as_me:$LINENO: checking for inline" >&5
5534 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5535 if test "${ac_cv_c_inline+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 for ac_kw in inline __inline__ __inline; do
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5548 static $ac_kw foo_t static_foo () {return 0; }
5549 $ac_kw foo_t foo () {return 0; }
5553 rm -f conftest.$ac_objext
5554 if { (ac_try="$ac_compile"
5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_compile") 2>conftest.er1
5562 grep -v '^ *+' conftest.er1 >conftest.err
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && {
5567 test -z "$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5569 } && test -s conftest.$ac_objext; then
5570 ac_cv_c_inline=$ac_kw
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 test "$ac_cv_c_inline" != no && break
5583 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5584 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5587 case $ac_cv_c_inline in
5590 case $ac_cv_c_inline in
5592 *) ac_val=$ac_cv_c_inline;;
5594 cat >>confdefs.h <<_ACEOF
5596 #define inline $ac_val
5602 { echo "$as_me:$LINENO: checking for off_t" >&5
5603 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5604 if test "${ac_cv_type_off_t+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 cat >conftest.$ac_ext <<_ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 $ac_includes_default
5614 typedef off_t ac__type_new_;
5618 if ((ac__type_new_ *) 0)
5620 if (sizeof (ac__type_new_))
5626 rm -f conftest.$ac_objext
5627 if { (ac_try="$ac_compile"
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5633 (eval "$ac_compile") 2>conftest.er1
5635 grep -v '^ *+' conftest.er1 >conftest.err
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && {
5640 test -z "$ac_c_werror_flag" ||
5641 test ! -s conftest.err
5642 } && test -s conftest.$ac_objext; then
5643 ac_cv_type_off_t=yes
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5654 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5655 if test $ac_cv_type_off_t = yes; then
5659 cat >>confdefs.h <<_ACEOF
5660 #define off_t long int
5665 { echo "$as_me:$LINENO: checking for size_t" >&5
5666 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5667 if test "${ac_cv_type_size_t+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 cat >conftest.$ac_ext <<_ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676 $ac_includes_default
5677 typedef size_t ac__type_new_;
5681 if ((ac__type_new_ *) 0)
5683 if (sizeof (ac__type_new_))
5689 rm -f conftest.$ac_objext
5690 if { (ac_try="$ac_compile"
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_compile") 2>conftest.er1
5698 grep -v '^ *+' conftest.er1 >conftest.err
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } && {
5703 test -z "$ac_c_werror_flag" ||
5704 test ! -s conftest.err
5705 } && test -s conftest.$ac_objext; then
5706 ac_cv_type_size_t=yes
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5711 ac_cv_type_size_t=no
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5717 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5718 if test $ac_cv_type_size_t = yes; then
5722 cat >>confdefs.h <<_ACEOF
5723 #define size_t unsigned int
5728 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5729 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5730 if test "${ac_cv_struct_tm+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 cat >conftest.$ac_ext <<_ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 #include <sys/types.h>
5746 int *p = &tm.tm_sec;
5752 rm -f conftest.$ac_objext
5753 if { (ac_try="$ac_compile"
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_compile") 2>conftest.er1
5761 grep -v '^ *+' conftest.er1 >conftest.err
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } && {
5766 test -z "$ac_c_werror_flag" ||
5767 test ! -s conftest.err
5768 } && test -s conftest.$ac_objext; then
5769 ac_cv_struct_tm=time.h
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5774 ac_cv_struct_tm=sys/time.h
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5780 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5781 if test $ac_cv_struct_tm = sys/time.h; then
5783 cat >>confdefs.h <<\_ACEOF
5784 #define TM_IN_SYS_TIME 1
5789 { echo "$as_me:$LINENO: checking for boolean" >&5
5790 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5791 if test "${ac_cv_type_boolean+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 cat >conftest.$ac_ext <<_ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 $ac_includes_default
5801 typedef boolean ac__type_new_;
5805 if ((ac__type_new_ *) 0)
5807 if (sizeof (ac__type_new_))
5813 rm -f conftest.$ac_objext
5814 if { (ac_try="$ac_compile"
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compile") 2>conftest.er1
5822 grep -v '^ *+' conftest.er1 >conftest.err
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } && {
5827 test -z "$ac_c_werror_flag" ||
5828 test ! -s conftest.err
5829 } && test -s conftest.$ac_objext; then
5830 ac_cv_type_boolean=yes
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 ac_cv_type_boolean=no
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5841 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5842 if test $ac_cv_type_boolean = yes; then
5846 cat >>confdefs.h <<_ACEOF
5867 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
5869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 cat >conftest.$ac_ext <<_ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5883 #define $ac_func innocuous_$ac_func
5885 /* System header to define __stub macros and hopefully few prototypes,
5886 which can conflict with char $ac_func (); below.
5887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5888 <limits.h> exists even on freestanding compilers. */
5891 # include <limits.h>
5893 # include <assert.h>
5898 /* Override any GCC internal prototype to avoid an error.
5899 Use char because int might match the return type of a GCC
5900 builtin and then its argument prototype would still apply. */
5905 /* The GNU C library defines this for functions which it implements
5906 to always fail with ENOSYS. Some functions are actually named
5907 something starting with __ and the normal name is an alias. */
5908 #if defined __stub_$ac_func || defined __stub___$ac_func
5920 rm -f conftest.$ac_objext conftest$ac_exeext
5921 if { (ac_try="$ac_link"
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_link") 2>conftest.er1
5929 grep -v '^ *+' conftest.er1 >conftest.err
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest$ac_exeext &&
5937 $as_test_x conftest$ac_exeext; then
5938 eval "$as_ac_var=yes"
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5943 eval "$as_ac_var=no"
5946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5947 conftest$ac_exeext conftest.$ac_ext
5949 ac_res=`eval echo '${'$as_ac_var'}'`
5950 { echo "$as_me:$LINENO: result: $ac_res" >&5
5951 echo "${ECHO_T}$ac_res" >&6; }
5952 if test `eval echo '${'$as_ac_var'}'` = yes; then
5953 cat >>confdefs.h <<_ACEOF
5954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5961 { echo "$as_me:$LINENO: checking for signed char" >&5
5962 echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
5963 if test "${ac_cv_type_signed_char+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 cat >conftest.$ac_ext <<_ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5973 typedef signed char ac__type_new_;
5977 if ((ac__type_new_ *) 0)
5979 if (sizeof (ac__type_new_))
5985 rm -f conftest.$ac_objext
5986 if { (ac_try="$ac_compile"
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5994 grep -v '^ *+' conftest.er1 >conftest.err
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && {
5999 test -z "$ac_c_werror_flag" ||
6000 test ! -s conftest.err
6001 } && test -s conftest.$ac_objext; then
6002 ac_cv_type_signed_char=yes
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_cv_type_signed_char=no
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
6013 echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
6015 # The cast to long int works around a bug in the HP C Compiler
6016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6018 # This bug is HP SR number 8606223364.
6019 { echo "$as_me:$LINENO: checking size of signed char" >&5
6020 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6; }
6021 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 if test "$cross_compiling" = yes; then
6025 # Depending upon the size, compute the lo and hi bounds.
6026 cat >conftest.$ac_ext <<_ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 $ac_includes_default
6033 typedef signed char ac__type_sizeof_;
6037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6044 rm -f conftest.$ac_objext
6045 if { (ac_try="$ac_compile"
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compile") 2>conftest.er1
6053 grep -v '^ *+' conftest.er1 >conftest.err
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest.$ac_objext; then
6063 cat >conftest.$ac_ext <<_ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 $ac_includes_default
6070 typedef signed char ac__type_sizeof_;
6074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6081 rm -f conftest.$ac_objext
6082 if { (ac_try="$ac_compile"
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6090 grep -v '^ *+' conftest.er1 >conftest.err
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.$ac_objext; then
6098 ac_hi=$ac_mid; break
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 ac_lo=`expr $ac_mid + 1`
6104 if test $ac_lo -le $ac_mid; then
6108 ac_mid=`expr 2 '*' $ac_mid + 1`
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6117 cat >conftest.$ac_ext <<_ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6123 $ac_includes_default
6124 typedef signed char ac__type_sizeof_;
6128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6135 rm -f conftest.$ac_objext
6136 if { (ac_try="$ac_compile"
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_compile") 2>conftest.er1
6144 grep -v '^ *+' conftest.er1 >conftest.err
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } && {
6149 test -z "$ac_c_werror_flag" ||
6150 test ! -s conftest.err
6151 } && test -s conftest.$ac_objext; then
6154 cat >conftest.$ac_ext <<_ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 $ac_includes_default
6161 typedef signed char ac__type_sizeof_;
6165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6172 rm -f conftest.$ac_objext
6173 if { (ac_try="$ac_compile"
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_compile") 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && {
6186 test -z "$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 } && test -s conftest.$ac_objext; then
6189 ac_lo=$ac_mid; break
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 ac_hi=`expr '(' $ac_mid ')' - 1`
6195 if test $ac_mid -le $ac_hi; then
6199 ac_mid=`expr 2 '*' $ac_mid`
6202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 # Binary search between lo and hi bounds.
6216 while test "x$ac_lo" != "x$ac_hi"; do
6217 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6218 cat >conftest.$ac_ext <<_ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 $ac_includes_default
6225 typedef signed char ac__type_sizeof_;
6229 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6236 rm -f conftest.$ac_objext
6237 if { (ac_try="$ac_compile"
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_compile") 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } && {
6250 test -z "$ac_c_werror_flag" ||
6251 test ! -s conftest.err
6252 } && test -s conftest.$ac_objext; then
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 ac_lo=`expr '(' $ac_mid ')' + 1`
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6265 '') if test "$ac_cv_type_signed_char" = yes; then
6266 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6267 See \`config.log' for more details." >&5
6268 echo "$as_me: error: cannot compute sizeof (signed char)
6269 See \`config.log' for more details." >&2;}
6270 { (exit 77); exit 77; }; }
6272 ac_cv_sizeof_signed_char=0
6276 cat >conftest.$ac_ext <<_ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 $ac_includes_default
6283 typedef signed char ac__type_sizeof_;
6284 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6285 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6292 FILE *f = fopen ("conftest.val", "w");
6295 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6297 long int i = longval ();
6298 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6300 fprintf (f, "%ld\n", i);
6304 unsigned long int i = ulongval ();
6305 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6307 fprintf (f, "%lu\n", i);
6309 return ferror (f) || fclose (f) != 0;
6315 rm -f conftest$ac_exeext
6316 if { (ac_try="$ac_link"
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_link") 2>&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6326 { (case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_try") 2>&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_sizeof_signed_char=`cat conftest.val`
6337 echo "$as_me: program exited with status $ac_status" >&5
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6342 if test "$ac_cv_type_signed_char" = yes; then
6343 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6344 See \`config.log' for more details." >&5
6345 echo "$as_me: error: cannot compute sizeof (signed char)
6346 See \`config.log' for more details." >&2;}
6347 { (exit 77); exit 77; }; }
6349 ac_cv_sizeof_signed_char=0
6352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6356 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6357 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6; }
6361 cat >>confdefs.h <<_ACEOF
6362 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6366 { echo "$as_me:$LINENO: checking for signed short" >&5
6367 echo $ECHO_N "checking for signed short... $ECHO_C" >&6; }
6368 if test "${ac_cv_type_signed_short+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 cat >conftest.$ac_ext <<_ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 $ac_includes_default
6378 typedef signed short ac__type_new_;
6382 if ((ac__type_new_ *) 0)
6384 if (sizeof (ac__type_new_))
6390 rm -f conftest.$ac_objext
6391 if { (ac_try="$ac_compile"
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6399 grep -v '^ *+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 ac_cv_type_signed_short=yes
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_cv_type_signed_short=no
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_short" >&5
6418 echo "${ECHO_T}$ac_cv_type_signed_short" >&6; }
6420 # The cast to long int works around a bug in the HP C Compiler
6421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6423 # This bug is HP SR number 8606223364.
6424 { echo "$as_me:$LINENO: checking size of signed short" >&5
6425 echo $ECHO_N "checking size of signed short... $ECHO_C" >&6; }
6426 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 if test "$cross_compiling" = yes; then
6430 # Depending upon the size, compute the lo and hi bounds.
6431 cat >conftest.$ac_ext <<_ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 $ac_includes_default
6438 typedef signed short ac__type_sizeof_;
6442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6449 rm -f conftest.$ac_objext
6450 if { (ac_try="$ac_compile"
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_compile") 2>conftest.er1
6458 grep -v '^ *+' conftest.er1 >conftest.err
6460 cat conftest.err >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } && {
6463 test -z "$ac_c_werror_flag" ||
6464 test ! -s conftest.err
6465 } && test -s conftest.$ac_objext; then
6468 cat >conftest.$ac_ext <<_ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6475 typedef signed short ac__type_sizeof_;
6479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6486 rm -f conftest.$ac_objext
6487 if { (ac_try="$ac_compile"
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_compile") 2>conftest.er1
6495 grep -v '^ *+' conftest.er1 >conftest.err
6497 cat conftest.err >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } && {
6500 test -z "$ac_c_werror_flag" ||
6501 test ! -s conftest.err
6502 } && test -s conftest.$ac_objext; then
6503 ac_hi=$ac_mid; break
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6508 ac_lo=`expr $ac_mid + 1`
6509 if test $ac_lo -le $ac_mid; then
6513 ac_mid=`expr 2 '*' $ac_mid + 1`
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6522 cat >conftest.$ac_ext <<_ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 $ac_includes_default
6529 typedef signed short ac__type_sizeof_;
6533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6540 rm -f conftest.$ac_objext
6541 if { (ac_try="$ac_compile"
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_compile") 2>conftest.er1
6549 grep -v '^ *+' conftest.er1 >conftest.err
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } && {
6554 test -z "$ac_c_werror_flag" ||
6555 test ! -s conftest.err
6556 } && test -s conftest.$ac_objext; then
6559 cat >conftest.$ac_ext <<_ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 $ac_includes_default
6566 typedef signed short ac__type_sizeof_;
6570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6577 rm -f conftest.$ac_objext
6578 if { (ac_try="$ac_compile"
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_compile") 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && {
6591 test -z "$ac_c_werror_flag" ||
6592 test ! -s conftest.err
6593 } && test -s conftest.$ac_objext; then
6594 ac_lo=$ac_mid; break
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_hi=`expr '(' $ac_mid ')' - 1`
6600 if test $ac_mid -le $ac_hi; then
6604 ac_mid=`expr 2 '*' $ac_mid`
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 # Binary search between lo and hi bounds.
6621 while test "x$ac_lo" != "x$ac_hi"; do
6622 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6623 cat >conftest.$ac_ext <<_ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 $ac_includes_default
6630 typedef signed short ac__type_sizeof_;
6634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6641 rm -f conftest.$ac_objext
6642 if { (ac_try="$ac_compile"
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_compile") 2>conftest.er1
6650 grep -v '^ *+' conftest.er1 >conftest.err
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && {
6655 test -z "$ac_c_werror_flag" ||
6656 test ! -s conftest.err
6657 } && test -s conftest.$ac_objext; then
6660 echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6663 ac_lo=`expr '(' $ac_mid ')' + 1`
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6670 '') if test "$ac_cv_type_signed_short" = yes; then
6671 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6672 See \`config.log' for more details." >&5
6673 echo "$as_me: error: cannot compute sizeof (signed short)
6674 See \`config.log' for more details." >&2;}
6675 { (exit 77); exit 77; }; }
6677 ac_cv_sizeof_signed_short=0
6681 cat >conftest.$ac_ext <<_ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 $ac_includes_default
6688 typedef signed short ac__type_sizeof_;
6689 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6690 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6697 FILE *f = fopen ("conftest.val", "w");
6700 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6702 long int i = longval ();
6703 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6705 fprintf (f, "%ld\n", i);
6709 unsigned long int i = ulongval ();
6710 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6712 fprintf (f, "%lu\n", i);
6714 return ferror (f) || fclose (f) != 0;
6720 rm -f conftest$ac_exeext
6721 if { (ac_try="$ac_link"
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727 (eval "$ac_link") 2>&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6731 { (case "(($ac_try" in
6732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733 *) ac_try_echo=$ac_try;;
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736 (eval "$ac_try") 2>&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; }; then
6740 ac_cv_sizeof_signed_short=`cat conftest.val`
6742 echo "$as_me: program exited with status $ac_status" >&5
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6747 if test "$ac_cv_type_signed_short" = yes; then
6748 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6749 See \`config.log' for more details." >&5
6750 echo "$as_me: error: cannot compute sizeof (signed short)
6751 See \`config.log' for more details." >&2;}
6752 { (exit 77); exit 77; }; }
6754 ac_cv_sizeof_signed_short=0
6757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6761 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
6762 echo "${ECHO_T}$ac_cv_sizeof_signed_short" >&6; }
6766 cat >>confdefs.h <<_ACEOF
6767 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
6771 { echo "$as_me:$LINENO: checking for signed" >&5
6772 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
6773 if test "${ac_cv_type_signed+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 cat >conftest.$ac_ext <<_ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 $ac_includes_default
6783 typedef signed ac__type_new_;
6787 if ((ac__type_new_ *) 0)
6789 if (sizeof (ac__type_new_))
6795 rm -f conftest.$ac_objext
6796 if { (ac_try="$ac_compile"
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_compile") 2>conftest.er1
6804 grep -v '^ *+' conftest.er1 >conftest.err
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest.$ac_objext; then
6812 ac_cv_type_signed=yes
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 ac_cv_type_signed=no
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
6823 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
6825 # The cast to long int works around a bug in the HP C Compiler
6826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6828 # This bug is HP SR number 8606223364.
6829 { echo "$as_me:$LINENO: checking size of signed" >&5
6830 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
6831 if test "${ac_cv_sizeof_signed+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 if test "$cross_compiling" = yes; then
6835 # Depending upon the size, compute the lo and hi bounds.
6836 cat >conftest.$ac_ext <<_ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 $ac_includes_default
6843 typedef signed ac__type_sizeof_;
6847 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6854 rm -f conftest.$ac_objext
6855 if { (ac_try="$ac_compile"
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858 *) ac_try_echo=$ac_try;;
6860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6861 (eval "$ac_compile") 2>conftest.er1
6863 grep -v '^ *+' conftest.er1 >conftest.err
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } && {
6868 test -z "$ac_c_werror_flag" ||
6869 test ! -s conftest.err
6870 } && test -s conftest.$ac_objext; then
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 $ac_includes_default
6880 typedef signed ac__type_sizeof_;
6884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6891 rm -f conftest.$ac_objext
6892 if { (ac_try="$ac_compile"
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6898 (eval "$ac_compile") 2>conftest.er1
6900 grep -v '^ *+' conftest.er1 >conftest.err
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } && {
6905 test -z "$ac_c_werror_flag" ||
6906 test ! -s conftest.err
6907 } && test -s conftest.$ac_objext; then
6908 ac_hi=$ac_mid; break
6910 echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6913 ac_lo=`expr $ac_mid + 1`
6914 if test $ac_lo -le $ac_mid; then
6918 ac_mid=`expr 2 '*' $ac_mid + 1`
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 cat >conftest.$ac_ext <<_ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 $ac_includes_default
6934 typedef signed ac__type_sizeof_;
6938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6945 rm -f conftest.$ac_objext
6946 if { (ac_try="$ac_compile"
6948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949 *) ac_try_echo=$ac_try;;
6951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952 (eval "$ac_compile") 2>conftest.er1
6954 grep -v '^ *+' conftest.er1 >conftest.err
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } && {
6959 test -z "$ac_c_werror_flag" ||
6960 test ! -s conftest.err
6961 } && test -s conftest.$ac_objext; then
6964 cat >conftest.$ac_ext <<_ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 $ac_includes_default
6971 typedef signed ac__type_sizeof_;
6975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6982 rm -f conftest.$ac_objext
6983 if { (ac_try="$ac_compile"
6985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 *) ac_try_echo=$ac_try;;
6988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6989 (eval "$ac_compile") 2>conftest.er1
6991 grep -v '^ *+' conftest.er1 >conftest.err
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } && {
6996 test -z "$ac_c_werror_flag" ||
6997 test ! -s conftest.err
6998 } && test -s conftest.$ac_objext; then
6999 ac_lo=$ac_mid; break
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_hi=`expr '(' $ac_mid ')' - 1`
7005 if test $ac_mid -le $ac_hi; then
7009 ac_mid=`expr 2 '*' $ac_mid`
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7025 # Binary search between lo and hi bounds.
7026 while test "x$ac_lo" != "x$ac_hi"; do
7027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7028 cat >conftest.$ac_ext <<_ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 $ac_includes_default
7035 typedef signed ac__type_sizeof_;
7039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7046 rm -f conftest.$ac_objext
7047 if { (ac_try="$ac_compile"
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_compile") 2>conftest.er1
7055 grep -v '^ *+' conftest.er1 >conftest.err
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && {
7060 test -z "$ac_c_werror_flag" ||
7061 test ! -s conftest.err
7062 } && test -s conftest.$ac_objext; then
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ac_lo=`expr '(' $ac_mid ')' + 1`
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074 ?*) ac_cv_sizeof_signed=$ac_lo;;
7075 '') if test "$ac_cv_type_signed" = yes; then
7076 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7077 See \`config.log' for more details." >&5
7078 echo "$as_me: error: cannot compute sizeof (signed)
7079 See \`config.log' for more details." >&2;}
7080 { (exit 77); exit 77; }; }
7082 ac_cv_sizeof_signed=0
7086 cat >conftest.$ac_ext <<_ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7093 typedef signed ac__type_sizeof_;
7094 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7095 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7102 FILE *f = fopen ("conftest.val", "w");
7105 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7107 long int i = longval ();
7108 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7110 fprintf (f, "%ld\n", i);
7114 unsigned long int i = ulongval ();
7115 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7117 fprintf (f, "%lu\n", i);
7119 return ferror (f) || fclose (f) != 0;
7125 rm -f conftest$ac_exeext
7126 if { (ac_try="$ac_link"
7128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132 (eval "$ac_link") 2>&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7136 { (case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7141 (eval "$ac_try") 2>&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 ac_cv_sizeof_signed=`cat conftest.val`
7147 echo "$as_me: program exited with status $ac_status" >&5
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7152 if test "$ac_cv_type_signed" = yes; then
7153 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7154 See \`config.log' for more details." >&5
7155 echo "$as_me: error: cannot compute sizeof (signed)
7156 See \`config.log' for more details." >&2;}
7157 { (exit 77); exit 77; }; }
7159 ac_cv_sizeof_signed=0
7162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7166 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7167 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
7171 cat >>confdefs.h <<_ACEOF
7172 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7176 { echo "$as_me:$LINENO: checking for signed long long" >&5
7177 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7178 if test "${ac_cv_type_signed_long_long+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 cat >conftest.$ac_ext <<_ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7187 $ac_includes_default
7188 typedef signed long long ac__type_new_;
7192 if ((ac__type_new_ *) 0)
7194 if (sizeof (ac__type_new_))
7200 rm -f conftest.$ac_objext
7201 if { (ac_try="$ac_compile"
7203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204 *) ac_try_echo=$ac_try;;
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207 (eval "$ac_compile") 2>conftest.er1
7209 grep -v '^ *+' conftest.er1 >conftest.err
7211 cat conftest.err >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } && {
7214 test -z "$ac_c_werror_flag" ||
7215 test ! -s conftest.err
7216 } && test -s conftest.$ac_objext; then
7217 ac_cv_type_signed_long_long=yes
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 ac_cv_type_signed_long_long=no
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7228 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7230 # The cast to long int works around a bug in the HP C Compiler
7231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7233 # This bug is HP SR number 8606223364.
7234 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7235 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7236 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 if test "$cross_compiling" = yes; then
7240 # Depending upon the size, compute the lo and hi bounds.
7241 cat >conftest.$ac_ext <<_ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 $ac_includes_default
7248 typedef signed long long ac__type_sizeof_;
7252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7268 grep -v '^ *+' conftest.er1 >conftest.err
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 $ac_includes_default
7285 typedef signed long long ac__type_sizeof_;
7289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7296 rm -f conftest.$ac_objext
7297 if { (ac_try="$ac_compile"
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303 (eval "$ac_compile") 2>conftest.er1
7305 grep -v '^ *+' conftest.er1 >conftest.err
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } && {
7310 test -z "$ac_c_werror_flag" ||
7311 test ! -s conftest.err
7312 } && test -s conftest.$ac_objext; then
7313 ac_hi=$ac_mid; break
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7318 ac_lo=`expr $ac_mid + 1`
7319 if test $ac_lo -le $ac_mid; then
7323 ac_mid=`expr 2 '*' $ac_mid + 1`
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 cat >conftest.$ac_ext <<_ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 $ac_includes_default
7339 typedef signed long long ac__type_sizeof_;
7343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1 >conftest.err
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.$ac_objext; then
7369 cat >conftest.$ac_ext <<_ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h. */
7375 $ac_includes_default
7376 typedef signed long long ac__type_sizeof_;
7380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7387 rm -f conftest.$ac_objext
7388 if { (ac_try="$ac_compile"
7390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391 *) ac_try_echo=$ac_try;;
7393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7394 (eval "$ac_compile") 2>conftest.er1
7396 grep -v '^ *+' conftest.er1 >conftest.err
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } && {
7401 test -z "$ac_c_werror_flag" ||
7402 test ! -s conftest.err
7403 } && test -s conftest.$ac_objext; then
7404 ac_lo=$ac_mid; break
7406 echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7409 ac_hi=`expr '(' $ac_mid ')' - 1`
7410 if test $ac_mid -le $ac_hi; then
7414 ac_mid=`expr 2 '*' $ac_mid`
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 # Binary search between lo and hi bounds.
7431 while test "x$ac_lo" != "x$ac_hi"; do
7432 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7433 cat >conftest.$ac_ext <<_ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 $ac_includes_default
7440 typedef signed long long ac__type_sizeof_;
7444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7451 rm -f conftest.$ac_objext
7452 if { (ac_try="$ac_compile"
7454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7455 *) ac_try_echo=$ac_try;;
7457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7458 (eval "$ac_compile") 2>conftest.er1
7460 grep -v '^ *+' conftest.er1 >conftest.err
7462 cat conftest.err >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } && {
7465 test -z "$ac_c_werror_flag" ||
7466 test ! -s conftest.err
7467 } && test -s conftest.$ac_objext; then
7470 echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7473 ac_lo=`expr '(' $ac_mid ')' + 1`
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7480 '') if test "$ac_cv_type_signed_long_long" = yes; then
7481 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7482 See \`config.log' for more details." >&5
7483 echo "$as_me: error: cannot compute sizeof (signed long long)
7484 See \`config.log' for more details." >&2;}
7485 { (exit 77); exit 77; }; }
7487 ac_cv_sizeof_signed_long_long=0
7491 cat >conftest.$ac_ext <<_ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 $ac_includes_default
7498 typedef signed long long ac__type_sizeof_;
7499 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7500 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7507 FILE *f = fopen ("conftest.val", "w");
7510 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7512 long int i = longval ();
7513 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7515 fprintf (f, "%ld\n", i);
7519 unsigned long int i = ulongval ();
7520 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7522 fprintf (f, "%lu\n", i);
7524 return ferror (f) || fclose (f) != 0;
7530 rm -f conftest$ac_exeext
7531 if { (ac_try="$ac_link"
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7537 (eval "$ac_link") 2>&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7541 { (case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546 (eval "$ac_try") 2>&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; }; then
7550 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7552 echo "$as_me: program exited with status $ac_status" >&5
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7557 if test "$ac_cv_type_signed_long_long" = yes; then
7558 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7559 See \`config.log' for more details." >&5
7560 echo "$as_me: error: cannot compute sizeof (signed long long)
7561 See \`config.log' for more details." >&2;}
7562 { (exit 77); exit 77; }; }
7564 ac_cv_sizeof_signed_long_long=0
7567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7571 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7572 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
7576 cat >>confdefs.h <<_ACEOF
7577 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7581 { echo "$as_me:$LINENO: checking for void*" >&5
7582 echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
7583 if test "${ac_cv_type_voidp+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 $ac_includes_default
7593 typedef void* ac__type_new_;
7597 if ((ac__type_new_ *) 0)
7599 if (sizeof (ac__type_new_))
7605 rm -f conftest.$ac_objext
7606 if { (ac_try="$ac_compile"
7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609 *) ac_try_echo=$ac_try;;
7611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7612 (eval "$ac_compile") 2>conftest.er1
7614 grep -v '^ *+' conftest.er1 >conftest.err
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } && {
7619 test -z "$ac_c_werror_flag" ||
7620 test ! -s conftest.err
7621 } && test -s conftest.$ac_objext; then
7622 ac_cv_type_voidp=yes
7624 echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632 { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7633 echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
7635 # The cast to long int works around a bug in the HP C Compiler
7636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7638 # This bug is HP SR number 8606223364.
7639 { echo "$as_me:$LINENO: checking size of void*" >&5
7640 echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
7641 if test "${ac_cv_sizeof_voidp+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 if test "$cross_compiling" = yes; then
7645 # Depending upon the size, compute the lo and hi bounds.
7646 cat >conftest.$ac_ext <<_ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 $ac_includes_default
7653 typedef void* ac__type_sizeof_;
7657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7664 rm -f conftest.$ac_objext
7665 if { (ac_try="$ac_compile"
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_compile") 2>conftest.er1
7673 grep -v '^ *+' conftest.er1 >conftest.err
7675 cat conftest.err >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } && {
7678 test -z "$ac_c_werror_flag" ||
7679 test ! -s conftest.err
7680 } && test -s conftest.$ac_objext; then
7683 cat >conftest.$ac_ext <<_ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7690 typedef void* ac__type_sizeof_;
7694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7701 rm -f conftest.$ac_objext
7702 if { (ac_try="$ac_compile"
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_compile") 2>conftest.er1
7710 grep -v '^ *+' conftest.er1 >conftest.err
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.$ac_objext; then
7718 ac_hi=$ac_mid; break
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7723 ac_lo=`expr $ac_mid + 1`
7724 if test $ac_lo -le $ac_mid; then
7728 ac_mid=`expr 2 '*' $ac_mid + 1`
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7737 cat >conftest.$ac_ext <<_ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 $ac_includes_default
7744 typedef void* ac__type_sizeof_;
7748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_compile") 2>conftest.er1
7764 grep -v '^ *+' conftest.er1 >conftest.err
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } && {
7769 test -z "$ac_c_werror_flag" ||
7770 test ! -s conftest.err
7771 } && test -s conftest.$ac_objext; then
7774 cat >conftest.$ac_ext <<_ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 $ac_includes_default
7781 typedef void* ac__type_sizeof_;
7785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_compile") 2>conftest.er1
7801 grep -v '^ *+' conftest.er1 >conftest.err
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && {
7806 test -z "$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 } && test -s conftest.$ac_objext; then
7809 ac_lo=$ac_mid; break
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7814 ac_hi=`expr '(' $ac_mid ')' - 1`
7815 if test $ac_mid -le $ac_hi; then
7819 ac_mid=`expr 2 '*' $ac_mid`
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 # Binary search between lo and hi bounds.
7836 while test "x$ac_lo" != "x$ac_hi"; do
7837 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7838 cat >conftest.$ac_ext <<_ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844 $ac_includes_default
7845 typedef void* ac__type_sizeof_;
7849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7856 rm -f conftest.$ac_objext
7857 if { (ac_try="$ac_compile"
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 (eval "$ac_compile") 2>conftest.er1
7865 grep -v '^ *+' conftest.er1 >conftest.err
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest.$ac_objext; then
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 ac_lo=`expr '(' $ac_mid ')' + 1`
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 ?*) ac_cv_sizeof_voidp=$ac_lo;;
7885 '') if test "$ac_cv_type_voidp" = yes; then
7886 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
7887 See \`config.log' for more details." >&5
7888 echo "$as_me: error: cannot compute sizeof (void*)
7889 See \`config.log' for more details." >&2;}
7890 { (exit 77); exit 77; }; }
7892 ac_cv_sizeof_voidp=0
7896 cat >conftest.$ac_ext <<_ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7902 $ac_includes_default
7903 typedef void* ac__type_sizeof_;
7904 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7905 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7912 FILE *f = fopen ("conftest.val", "w");
7915 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7917 long int i = longval ();
7918 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7920 fprintf (f, "%ld\n", i);
7924 unsigned long int i = ulongval ();
7925 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7927 fprintf (f, "%lu\n", i);
7929 return ferror (f) || fclose (f) != 0;
7935 rm -f conftest$ac_exeext
7936 if { (ac_try="$ac_link"
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942 (eval "$ac_link") 2>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7946 { (case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_try") 2>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 ac_cv_sizeof_voidp=`cat conftest.val`
7957 echo "$as_me: program exited with status $ac_status" >&5
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7962 if test "$ac_cv_type_voidp" = yes; then
7963 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
7964 See \`config.log' for more details." >&5
7965 echo "$as_me: error: cannot compute sizeof (void*)
7966 See \`config.log' for more details." >&2;}
7967 { (exit 77); exit 77; }; }
7969 ac_cv_sizeof_voidp=0
7972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7976 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
7977 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
7981 cat >>confdefs.h <<_ACEOF
7982 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
7989 # Extract the first word of "freetype-config", so it can be a program name with args.
7990 set dummy freetype-config; ac_word=$2
7991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7993 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 case $FREETYPE_CONFIG in
7998 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8003 for as_dir in $as_dummy
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8021 if test -n "$FREETYPE_CONFIG"; then
8022 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8023 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8025 { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8031 OLDCPPFLAGS="${CPPFLAGS}"
8033 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8034 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8035 else if test -d /usr/include/freetype2; then
8036 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8037 else if test -d /usr/local/include/freetype2; then
8038 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8043 if test "x${FREETYPE_CONFIG}" '=' "x";then
8044 # if we didn't find the freetype-config program, we won't
8045 # know where the libs are expected to be. So just blindly
8046 # try to link against them.
8047 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8048 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8049 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 ac_check_lib_save_LIBS=$LIBS
8053 LIBS="-lfreetype $LIBS"
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8061 /* Override any GCC internal prototype to avoid an error.
8062 Use char because int might match the return type of a GCC
8063 builtin and then its argument prototype would still apply. */
8067 char FT_Init_FreeType ();
8071 return FT_Init_FreeType ();
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (ac_try="$ac_link"
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_link") 2>conftest.er1
8085 grep -v '^ *+' conftest.er1 >conftest.err
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } && {
8090 test -z "$ac_c_werror_flag" ||
8091 test ! -s conftest.err
8092 } && test -s conftest$ac_exeext &&
8093 $as_test_x conftest$ac_exeext; then
8094 ac_cv_lib_freetype_FT_Init_FreeType=yes
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8099 ac_cv_lib_freetype_FT_Init_FreeType=no
8102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8103 conftest$ac_exeext conftest.$ac_ext
8104 LIBS=$ac_check_lib_save_LIBS
8106 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8107 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8108 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8115 for ac_header in ft2build.h
8117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 ac_res=`eval echo '${'$as_ac_Header'}'`
8125 { echo "$as_me:$LINENO: result: $ac_res" >&5
8126 echo "${ECHO_T}$ac_res" >&6; }
8128 # Is the header compilable?
8129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8131 cat >conftest.$ac_ext <<_ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 $ac_includes_default
8138 #include <$ac_header>
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8149 grep -v '^ *+' conftest.er1 >conftest.err
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.$ac_objext; then
8157 ac_header_compiler=yes
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8162 ac_header_compiler=no
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8167 echo "${ECHO_T}$ac_header_compiler" >&6; }
8169 # Is the header present?
8170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8172 cat >conftest.$ac_ext <<_ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8178 #include <$ac_header>
8180 if { (ac_try="$ac_cpp conftest.$ac_ext"
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } >/dev/null && {
8193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8196 ac_header_preproc=yes
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 ac_header_preproc=no
8204 rm -f conftest.err conftest.$ac_ext
8205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8206 echo "${ECHO_T}$ac_header_preproc" >&6; }
8208 # So? What about this header?
8209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8215 ac_header_preproc=yes
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 eval "$as_ac_Header=\$ac_header_preproc"
8240 ac_res=`eval echo '${'$as_ac_Header'}'`
8241 { echo "$as_me:$LINENO: result: $ac_res" >&5
8242 echo "${ECHO_T}$ac_res" >&6; }
8245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8246 cat >>confdefs.h <<_ACEOF
8247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8254 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8256 for ac_header in freetype/freetype.h
8258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 ac_res=`eval echo '${'$as_ac_Header'}'`
8266 { echo "$as_me:$LINENO: result: $ac_res" >&5
8267 echo "${ECHO_T}$ac_res" >&6; }
8269 # Is the header compilable?
8270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 $ac_includes_default
8279 #include <$ac_header>
8281 rm -f conftest.$ac_objext
8282 if { (ac_try="$ac_compile"
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_compile") 2>conftest.er1
8290 grep -v '^ *+' conftest.er1 >conftest.err
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } && {
8295 test -z "$ac_c_werror_flag" ||
8296 test ! -s conftest.err
8297 } && test -s conftest.$ac_objext; then
8298 ac_header_compiler=yes
8300 echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8303 ac_header_compiler=no
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8308 echo "${ECHO_T}$ac_header_compiler" >&6; }
8310 # Is the header present?
8311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8313 cat >conftest.$ac_ext <<_ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <$ac_header>
8321 if { (ac_try="$ac_cpp conftest.$ac_ext"
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8329 grep -v '^ *+' conftest.er1 >conftest.err
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } >/dev/null && {
8334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8337 ac_header_preproc=yes
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8342 ac_header_preproc=no
8345 rm -f conftest.err conftest.$ac_ext
8346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8347 echo "${ECHO_T}$ac_header_preproc" >&6; }
8349 # So? What about this header?
8350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8356 ac_header_preproc=yes
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 eval "$as_ac_Header=\$ac_header_preproc"
8381 ac_res=`eval echo '${'$as_ac_Header'}'`
8382 { echo "$as_me:$LINENO: result: $ac_res" >&5
8383 echo "${ECHO_T}$ac_res" >&6; }
8386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8387 cat >>confdefs.h <<_ACEOF
8388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8390 HAVE_FREETYPE_FREETYPE_H=1
8397 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8398 "x${FREETYPE_CONFIG}" '!=' "x";then
8399 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8402 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8407 if test "x${HAVE_FREETYPE}" = "x1"; then
8408 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8409 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8411 LIBS="$LIBS -lfreetype"
8414 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8415 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8418 { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8419 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8421 cat > conftest.c << EOF
8422 $HAVE_FT2BUILD_H_DEFINE
8424 #ifdef HAVE_FT2BUILD_H
8425 #include <ft2build.h>
8426 #include FT_FREETYPE_H
8429 #include FT_SFNT_NAMES_H
8430 #include FT_TRUETYPE_IDS_H
8431 #include FT_OUTLINE_H
8433 #include <freetype/freetype.h>
8434 #include <freetype/ftglyph.h>
8435 #include <freetype/ftsizes.h>
8436 #include <freetype/ftsnames.h>
8437 #include <freetype/ttnameid.h>
8438 #include <freetype/ftoutln.h>
8443 FT_Library ftlibrary;
8455 FT_Init_FreeType(&ftlibrary);
8456 FT_New_Face(ftlibrary, "filename", 0, &face);
8457 i = face->num_glyphs - 1;
8458 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8459 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8460 FT_Get_Postscript_Name(face);
8461 FT_Get_Char_Index(face, 33);
8462 FT_Get_First_Char(face, &i);
8463 FT_Get_Next_Char(face, 33, &i);
8464 if(FT_HAS_GLYPH_NAMES(face)) {
8465 FT_Get_Glyph_Name(face, 33, name, 127);
8467 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8468 FT_Get_Glyph(face->glyph, &glyph);
8469 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8470 FT_Done_Glyph(glyph);
8472 FT_Done_FreeType(ftlibrary);
8477 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8478 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8479 { echo "$as_me:$LINENO: result: yes" >&5
8480 echo "${ECHO_T}yes" >&6; }
8482 cat >>confdefs.h <<\_ACEOF
8483 #define HAVE_FREETYPE 1
8487 cat >>confdefs.h <<\_ACEOF
8488 #define HAVE_FREETYPE_FREETYPE_H 1
8492 cat >>confdefs.h <<\_ACEOF
8493 #define USE_FREETYPE 1
8497 echo "configure: failed program was:" >&5
8500 { echo "$as_me:$LINENO: result: no" >&5
8501 echo "${ECHO_T}no" >&6; }
8506 # if the above didn't work out, reset all changes to the compiler variables.
8507 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8508 CPPFLAGS=$OLDCPPFLAGS
8514 OLDCPPFLAGS="${CPPFLAGS}"
8517 if test -d /usr/include/fontconfig; then
8518 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8521 { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8522 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; }
8523 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 ac_check_lib_save_LIBS=$LIBS
8527 LIBS="-lfontconfig $LIBS"
8528 cat >conftest.$ac_ext <<_ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8535 /* Override any GCC internal prototype to avoid an error.
8536 Use char because int might match the return type of a GCC
8537 builtin and then its argument prototype would still apply. */
8550 rm -f conftest.$ac_objext conftest$ac_exeext
8551 if { (ac_try="$ac_link"
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557 (eval "$ac_link") 2>conftest.er1
8559 grep -v '^ *+' conftest.er1 >conftest.err
8561 cat conftest.err >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } && {
8564 test -z "$ac_c_werror_flag" ||
8565 test ! -s conftest.err
8566 } && test -s conftest$ac_exeext &&
8567 $as_test_x conftest$ac_exeext; then
8568 ac_cv_lib_fontconfig_FcInit=yes
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8573 ac_cv_lib_fontconfig_FcInit=no
8576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8577 conftest$ac_exeext conftest.$ac_ext
8578 LIBS=$ac_check_lib_save_LIBS
8580 { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8581 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; }
8582 if test $ac_cv_lib_fontconfig_FcInit = yes; then
8583 HAVE_LIB_FONTCONFIG=1
8587 for ac_header in fontconfig.h
8589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 ac_res=`eval echo '${'$as_ac_Header'}'`
8597 { echo "$as_me:$LINENO: result: $ac_res" >&5
8598 echo "${ECHO_T}$ac_res" >&6; }
8600 # Is the header compilable?
8601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8603 cat >conftest.$ac_ext <<_ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609 $ac_includes_default
8610 #include <$ac_header>
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_compile") 2>conftest.er1
8621 grep -v '^ *+' conftest.er1 >conftest.err
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } && {
8626 test -z "$ac_c_werror_flag" ||
8627 test ! -s conftest.err
8628 } && test -s conftest.$ac_objext; then
8629 ac_header_compiler=yes
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8634 ac_header_compiler=no
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8639 echo "${ECHO_T}$ac_header_compiler" >&6; }
8641 # Is the header present?
8642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8644 cat >conftest.$ac_ext <<_ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8650 #include <$ac_header>
8652 if { (ac_try="$ac_cpp conftest.$ac_ext"
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8660 grep -v '^ *+' conftest.er1 >conftest.err
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } >/dev/null && {
8665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8668 ac_header_preproc=yes
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 ac_header_preproc=no
8676 rm -f conftest.err conftest.$ac_ext
8677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8678 echo "${ECHO_T}$ac_header_preproc" >&6; }
8680 # So? What about this header?
8681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8687 ac_header_preproc=yes
8690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 eval "$as_ac_Header=\$ac_header_preproc"
8712 ac_res=`eval echo '${'$as_ac_Header'}'`
8713 { echo "$as_me:$LINENO: result: $ac_res" >&5
8714 echo "${ECHO_T}$ac_res" >&6; }
8717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8718 cat >>confdefs.h <<_ACEOF
8719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8727 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8728 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8733 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8734 LIBS="$LIBS -lfontconfig"
8735 { echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8736 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6; }
8738 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8739 #move freetype library to the end of libraries, otherwise fontconfig
8741 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8744 cat > conftest.c << EOF
8746 #include <fontconfig.h>
8750 FcPattern *pattern, *match;
8753 char*s1="abc",*s2="ABC";
8756 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8757 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8758 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8760 FcConfig*c = FcConfigCreate();
8761 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8762 FcConfigBuildFonts(c);
8763 FcConfigSetCurrent(c);
8765 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
8766 FcFontSetDestroy(set);
8768 FcConfigSubstitute(0, pattern, FcMatchPattern);
8769 FcDefaultSubstitute(pattern);
8770 match = FcFontMatch(0, pattern, &result);
8771 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8772 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8773 FcPatternPrint(pattern);
8774 FcPatternDestroy(pattern);
8775 FcPatternDestroy(match);
8781 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8782 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8783 { echo "$as_me:$LINENO: result: yes" >&5
8784 echo "${ECHO_T}yes" >&6; }
8786 cat >>confdefs.h <<\_ACEOF
8787 #define HAVE_FONTCONFIG 1
8791 echo "configure: failed program was:" >&5
8794 { echo "$as_me:$LINENO: result: no" >&5
8795 echo "${ECHO_T}no" >&6; }
8800 # if the above didn't work out, reset all changes to the compiler variables.
8801 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8802 CPPFLAGS=$OLDCPPFLAGS
8808 OLDCPPFLAGS="${CPPFLAGS}"
8812 { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
8813 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
8814 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 ac_check_lib_save_LIBS=$LIBS
8819 cat >conftest.$ac_ext <<_ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8826 /* Override any GCC internal prototype to avoid an error.
8827 Use char because int might match the return type of a GCC
8828 builtin and then its argument prototype would still apply. */
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (ac_try="$ac_link"
8844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845 *) ac_try_echo=$ac_try;;
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848 (eval "$ac_link") 2>conftest.er1
8850 grep -v '^ *+' conftest.er1 >conftest.err
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } && {
8855 test -z "$ac_c_werror_flag" ||
8856 test ! -s conftest.err
8857 } && test -s conftest$ac_exeext &&
8858 $as_test_x conftest$ac_exeext; then
8859 ac_cv_lib_GL_glBegin=yes
8861 echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8864 ac_cv_lib_GL_glBegin=no
8867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8868 conftest$ac_exeext conftest.$ac_ext
8869 LIBS=$ac_check_lib_save_LIBS
8871 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
8872 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
8873 if test $ac_cv_lib_GL_glBegin = yes; then
8874 cat >>confdefs.h <<_ACEOF
8875 #define HAVE_LIBGL 1
8883 { echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
8884 echo $ECHO_N "checking for gluBeginSurface in -lGLU... $ECHO_C" >&6; }
8885 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 ac_check_lib_save_LIBS=$LIBS
8890 cat >conftest.$ac_ext <<_ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8897 /* Override any GCC internal prototype to avoid an error.
8898 Use char because int might match the return type of a GCC
8899 builtin and then its argument prototype would still apply. */
8903 char gluBeginSurface ();
8907 return gluBeginSurface ();
8912 rm -f conftest.$ac_objext conftest$ac_exeext
8913 if { (ac_try="$ac_link"
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_link") 2>conftest.er1
8921 grep -v '^ *+' conftest.er1 >conftest.err
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } && {
8926 test -z "$ac_c_werror_flag" ||
8927 test ! -s conftest.err
8928 } && test -s conftest$ac_exeext &&
8929 $as_test_x conftest$ac_exeext; then
8930 ac_cv_lib_GLU_gluBeginSurface=yes
8932 echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8935 ac_cv_lib_GLU_gluBeginSurface=no
8938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8939 conftest$ac_exeext conftest.$ac_ext
8940 LIBS=$ac_check_lib_save_LIBS
8942 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
8943 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginSurface" >&6; }
8944 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
8945 cat >>confdefs.h <<_ACEOF
8946 #define HAVE_LIBGLU 1
8954 { echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
8955 echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6; }
8956 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 ac_check_lib_save_LIBS=$LIBS
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8968 /* Override any GCC internal prototype to avoid an error.
8969 Use char because int might match the return type of a GCC
8970 builtin and then its argument prototype would still apply. */
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (ac_try="$ac_link"
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_link") 2>conftest.er1
8992 grep -v '^ *+' conftest.er1 >conftest.err
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } && {
8997 test -z "$ac_c_werror_flag" ||
8998 test ! -s conftest.err
8999 } && test -s conftest$ac_exeext &&
9000 $as_test_x conftest$ac_exeext; then
9001 ac_cv_lib_glut_glutInit=yes
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 ac_cv_lib_glut_glutInit=no
9009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9010 conftest$ac_exeext conftest.$ac_ext
9011 LIBS=$ac_check_lib_save_LIBS
9013 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9014 echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6; }
9015 if test $ac_cv_lib_glut_glutInit = yes; then
9016 cat >>confdefs.h <<_ACEOF
9017 #define HAVE_LIBGLUT 1
9026 for ac_header in GL/gl.h GL/glut.h
9028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 ac_res=`eval echo '${'$as_ac_Header'}'`
9036 { echo "$as_me:$LINENO: result: $ac_res" >&5
9037 echo "${ECHO_T}$ac_res" >&6; }
9039 # Is the header compilable?
9040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9042 cat >conftest.$ac_ext <<_ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 $ac_includes_default
9049 #include <$ac_header>
9051 rm -f conftest.$ac_objext
9052 if { (ac_try="$ac_compile"
9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_compile") 2>conftest.er1
9060 grep -v '^ *+' conftest.er1 >conftest.err
9062 cat conftest.err >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } && {
9065 test -z "$ac_c_werror_flag" ||
9066 test ! -s conftest.err
9067 } && test -s conftest.$ac_objext; then
9068 ac_header_compiler=yes
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 ac_header_compiler=no
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9078 echo "${ECHO_T}$ac_header_compiler" >&6; }
9080 # Is the header present?
9081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9083 cat >conftest.$ac_ext <<_ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9089 #include <$ac_header>
9091 if { (ac_try="$ac_cpp conftest.$ac_ext"
9093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094 *) ac_try_echo=$ac_try;;
9096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9099 grep -v '^ *+' conftest.er1 >conftest.err
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } >/dev/null && {
9104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9105 test ! -s conftest.err
9107 ac_header_preproc=yes
9109 echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9112 ac_header_preproc=no
9115 rm -f conftest.err conftest.$ac_ext
9116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9117 echo "${ECHO_T}$ac_header_preproc" >&6; }
9119 # So? What about this header?
9120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9126 ac_header_preproc=yes
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 eval "$as_ac_Header=\$ac_header_preproc"
9151 ac_res=`eval echo '${'$as_ac_Header'}'`
9152 { echo "$as_me:$LINENO: result: $ac_res" >&5
9153 echo "${ECHO_T}$ac_res" >&6; }
9156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9157 cat >>confdefs.h <<_ACEOF
9158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9166 cat > conftest.c << EOF
9169 #include <GL/glut.h>
9171 int main(int argc, char*argv)
9173 glutInit(&argc, argv);
9174 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9175 glutInitWindowSize(320,200);
9176 glutInitWindowPosition(0,0);
9177 glutCreateWindow("main");
9178 glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9179 glShadeModel(GL_SMOOTH);
9180 glEnable (GL_LINE_SMOOTH);
9181 glEnable (GL_POLYGON_SMOOTH);
9182 glEnable (GL_BLEND);
9183 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9184 glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9185 glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9189 { echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9190 echo $ECHO_N "checking whether we can compile the opengl test program... $ECHO_C" >&6; }
9192 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9193 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9194 { echo "$as_me:$LINENO: result: yes" >&5
9195 echo "${ECHO_T}yes" >&6; }
9198 cat >>confdefs.h <<\_ACEOF
9199 #define HAVE_OPENGL 1
9203 echo "configure: failed program was:" >&5
9206 { echo "$as_me:$LINENO: result: no" >&5
9207 echo "${ECHO_T}no" >&6; }
9211 # if the above didn't work out, reset all changes to the compiler variables.
9212 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9213 CPPFLAGS=$OLDCPPFLAGS
9217 if test "$HAVE_OPENGL";then
9218 DEVICE_OPENGL='devices/opengl.$(O)'
9224 if test "x${DISABLE_LAME}" = "xtrue"; then
9225 echo "*" Disabling lame support...
9227 # old lame code at lib/lame
9228 if test -f lib/lame/Makefile.in; then
9229 lame_in_source='$(lame_objects)'
9230 lame_makefile="lib/lame/Makefile"
9231 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9233 cat >>confdefs.h <<\_ACEOF
9238 if test -d /usr/include/lame; then
9239 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9241 if test -d /usr/local/include/lame; then
9242 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9246 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9247 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
9248 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 ac_check_lib_save_LIBS=$LIBS
9252 LIBS="-lmp3lame $LIBS"
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9260 /* Override any GCC internal prototype to avoid an error.
9261 Use char because int might match the return type of a GCC
9262 builtin and then its argument prototype would still apply. */
9270 return lame_init ();
9275 rm -f conftest.$ac_objext conftest$ac_exeext
9276 if { (ac_try="$ac_link"
9278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279 *) ac_try_echo=$ac_try;;
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282 (eval "$ac_link") 2>conftest.er1
9284 grep -v '^ *+' conftest.er1 >conftest.err
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } && {
9289 test -z "$ac_c_werror_flag" ||
9290 test ! -s conftest.err
9291 } && test -s conftest$ac_exeext &&
9292 $as_test_x conftest$ac_exeext; then
9293 ac_cv_lib_mp3lame_lame_init=yes
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 ac_cv_lib_mp3lame_lame_init=no
9301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9302 conftest$ac_exeext conftest.$ac_ext
9303 LIBS=$ac_check_lib_save_LIBS
9305 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9306 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9307 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9308 cat >>confdefs.h <<_ACEOF
9309 #define HAVE_LIBMP3LAME 1
9312 LIBS="-lmp3lame $LIBS"
9320 for ac_header in lame.h
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 ac_res=`eval echo '${'$as_ac_Header'}'`
9330 { echo "$as_me:$LINENO: result: $ac_res" >&5
9331 echo "${ECHO_T}$ac_res" >&6; }
9333 # Is the header compilable?
9334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9336 cat >conftest.$ac_ext <<_ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 $ac_includes_default
9343 #include <$ac_header>
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_compile") 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest.$ac_objext; then
9362 ac_header_compiler=yes
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_header_compiler=no
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9372 echo "${ECHO_T}$ac_header_compiler" >&6; }
9374 # Is the header present?
9375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 #include <$ac_header>
9385 if { (ac_try="$ac_cpp conftest.$ac_ext"
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9393 grep -v '^ *+' conftest.er1 >conftest.err
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } >/dev/null && {
9398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9401 ac_header_preproc=yes
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_header_preproc=no
9409 rm -f conftest.err conftest.$ac_ext
9410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9411 echo "${ECHO_T}$ac_header_preproc" >&6; }
9413 # So? What about this header?
9414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9420 ac_header_preproc=yes
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 eval "$as_ac_Header=\$ac_header_preproc"
9445 ac_res=`eval echo '${'$as_ac_Header'}'`
9446 { echo "$as_me:$LINENO: result: $ac_res" >&5
9447 echo "${ECHO_T}$ac_res" >&6; }
9450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9451 cat >>confdefs.h <<_ACEOF
9452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9459 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9460 cat >>confdefs.h <<\_ACEOF
9470 cat >>confdefs.h <<\_ACEOF
9471 #define INTERNAL_LIBART 1
9474 art_in_source='$(art_objects)'
9475 splash_in_source='$(splash_objects)'
9476 xpdf_in_source='$(xpdf_objects)'
9483 # ------------------------------------------------------------------
9487 for ac_prog in avifile-config
9489 # Extract the first word of "$ac_prog", so it can be a program name with args.
9490 set dummy $ac_prog; ac_word=$2
9491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9493 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 if test -n "$AVIFILE_CONFIG"; then
9497 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9517 if test -n "$AVIFILE_CONFIG"; then
9518 { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9519 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9521 { echo "$as_me:$LINENO: result: no" >&5
9522 echo "${ECHO_T}no" >&6; }
9526 test -n "$AVIFILE_CONFIG" && break
9530 if test "x$AVIFILE_CONFIG" '!=' "x";then
9531 OLDCPPFLAGS="$CPPFLAGS"
9532 # temporarily add avifile paths to CPPFLAGS...
9533 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9536 for ac_header in avifile/version.h version.h
9538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 ac_res=`eval echo '${'$as_ac_Header'}'`
9546 { echo "$as_me:$LINENO: result: $ac_res" >&5
9547 echo "${ECHO_T}$ac_res" >&6; }
9549 # Is the header compilable?
9550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9552 cat >conftest.$ac_ext <<_ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9558 $ac_includes_default
9559 #include <$ac_header>
9561 rm -f conftest.$ac_objext
9562 if { (ac_try="$ac_compile"
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_compile") 2>conftest.er1
9570 grep -v '^ *+' conftest.er1 >conftest.err
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && {
9575 test -z "$ac_c_werror_flag" ||
9576 test ! -s conftest.err
9577 } && test -s conftest.$ac_objext; then
9578 ac_header_compiler=yes
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9583 ac_header_compiler=no
9586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9588 echo "${ECHO_T}$ac_header_compiler" >&6; }
9590 # Is the header present?
9591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9593 cat >conftest.$ac_ext <<_ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9599 #include <$ac_header>
9601 if { (ac_try="$ac_cpp conftest.$ac_ext"
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9609 grep -v '^ *+' conftest.er1 >conftest.err
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } >/dev/null && {
9614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9617 ac_header_preproc=yes
9619 echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9622 ac_header_preproc=no
9625 rm -f conftest.err conftest.$ac_ext
9626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9627 echo "${ECHO_T}$ac_header_preproc" >&6; }
9629 # So? What about this header?
9630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9636 ac_header_preproc=yes
9639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 eval "$as_ac_Header=\$ac_header_preproc"
9661 ac_res=`eval echo '${'$as_ac_Header'}'`
9662 { echo "$as_me:$LINENO: result: $ac_res" >&5
9663 echo "${ECHO_T}$ac_res" >&6; }
9666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9667 cat >>confdefs.h <<_ACEOF
9668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9676 CPPFLAGS="$OLDCPPFLAGS"
9679 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9680 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9682 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9683 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9685 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9686 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9689 cat > conftest.cpp << EOF
9691 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9692 // so we have to introduce them this way
9693 $HAVE_VERSION_H_DEFINE
9694 $HAVE_AVIFILE_VERSION_H_DEFINE
9696 #ifdef HAVE_VERSION_H
9697 #include <version.h>
9699 #ifdef HAVE_AVIFILE_VERSION_H
9700 #include <avifile/version.h>
9703 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9704 #include <avifile.h>
9705 #include <aviplay.h>
9706 #include <avm_fourcc.h>
9707 #include <avm_creators.h>
9708 #include <StreamInfo.h>
9711 #include <avifile.h>
9712 #include <aviplay.h>
9713 #include <aviutil.h>
9715 #define Height height
9722 IAviReadFile* player;
9723 IAviReadStream* astream;
9724 IAviReadStream* vstream;
9725 player = CreateIAviReadFile(0);
9726 astream = player->GetStream(0, AviStream::Audio);
9727 vstream = player->GetStream(0, AviStream::Video);
9728 vstream -> StartStreaming();
9729 astream -> StartStreaming();
9732 player->GetFileHeader(&head);
9733 head.dwMicroSecPerFrame;
9738 head.dwMicroSecPerFrame;
9739 astream->GetEndPos(),
9740 astream->GetEndTime());
9741 player->StreamCount();
9743 StreamInfo*audioinfo;
9744 StreamInfo*videoinfo;
9745 audioinfo = astream->GetStreamInfo();
9746 videoinfo = vstream->GetStreamInfo();
9747 videoinfo->GetVideoWidth();
9748 videoinfo->GetVideoHeight();
9749 audioinfo->GetAudioSamplesPerSec();
9750 videoinfo->GetFps();
9752 CImage*img = vstream->GetFrame();
9759 astream->GetAudioFormatInfo(&wave,0);
9761 astream->ReadFrames(0,0,0,a,b);
9763 int main (int argc, char*argv)
9769 if test "x$AVIFILE_CONFIG" '!=' "x";then
9770 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9771 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9772 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9773 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9774 { echo "$as_me:$LINENO: result: yes" >&5
9775 echo "${ECHO_T}yes" >&6; }
9779 cat >>confdefs.h <<\_ACEOF
9780 #define AVIFILE true
9784 echo "configure: failed program was:" >&5
9785 cat conftest.cpp >&5
9786 { echo "$as_me:$LINENO: result: no" >&5
9787 echo "${ECHO_T}no" >&6; }
9790 { echo "$as_me:$LINENO: result: no" >&5
9791 echo "${ECHO_T}no" >&6; }
9795 if test "x${AVIFILE}" = "xtrue"; then
9796 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9797 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9799 cat >>confdefs.h <<\_ACEOF
9800 #define HAVE_AVIFILE 1
9805 if test "x${WIN32}" != "x"; then
9806 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9807 #if test "x${AVIFIL32}" != "x"; then
9808 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9810 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9816 # ------------------------------------------------------------------
9818 if test "x${UNCOMPRESS}" = "xgzip"; then
9820 cat >>confdefs.h <<\_ACEOF
9827 # ------------------------------------------------------------------
9830 { echo "$as_me:$LINENO: checking for Python.h" >&5
9831 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
9833 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9836 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9837 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9839 # iterate through version 2.2 to 2.6
9840 for v in 2 3 4 5 6; do
9842 if test -f "/usr/include/python2.$v/Python.h";then
9844 PYTHON_LIB="-lpython$PY_VERSION"
9845 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9846 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9847 HAVE_PYTHON_IMAGING_LIB=1
9849 PYTHON_LIB2="$PYTHON_LIB"
9851 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9853 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9855 PYTHON_LIB="-framework Python"
9856 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
9857 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9858 HAVE_PYTHON_IMAGING_LIB=1
9860 PYTHON_LIB2="$PYTHON_LIB"
9862 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9864 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9865 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9866 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9868 -a -f "/sw/include/python2.$v/Python.h"; then
9870 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9871 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9872 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9873 HAVE_PYTHON_IMAGING_LIB=1
9875 PYTHON_LIB2="$PYTHON_LIB"
9877 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9882 if test "x$PY_VERSION" "!=" "x"; then
9883 { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9884 echo "${ECHO_T}$PY_VERSION" >&6; }
9885 export PYTHON_INCLUDES PYTHON_LIB
9888 { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9889 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9891 cat > conftest.c << EOF
9897 ret = Py_Main(0, 0);
9898 int x; // check also for gcc 2.95.x incompatibilities
9903 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9904 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9905 { echo "$as_me:$LINENO: result: yes" >&5
9906 echo "${ECHO_T}yes" >&6; }
9909 echo "configure: failed program was:" >&5
9911 { echo "$as_me:$LINENO: result: no" >&5
9912 echo "${ECHO_T}no" >&6; }
9915 if test "x$PYTHON_OK" = "xyes";then
9916 { echo "$as_me:$LINENO: checking for Python-Imaging" >&5
9917 echo $ECHO_N "checking for Python-Imaging... $ECHO_C" >&6; }
9918 cat > conftest.c << EOF
9920 #include <Imaging.h>
9928 if test "$HAVE_PYTHON_IMAGING_LIB"; then
9929 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9930 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9931 PYTHON_LIB="${PYTHON_LIB2}"
9933 cat >>confdefs.h <<\_ACEOF
9934 #define HAVE_PYTHON_IMAGING 1
9937 HAVE_PYTHON_IMAGING=yes
9938 export HAVE_PYTHON_IMAGING
9940 { echo "$as_me:$LINENO: result: yes" >&5
9941 echo "${ECHO_T}yes" >&6; }
9943 echo "configure: failed program was:" >&5
9945 { echo "$as_me:$LINENO: result: no" >&5
9946 echo "${ECHO_T}no" >&6; }
9949 echo "(didn't find the Python-Imaging libraries)" >&5
9950 { echo "$as_me:$LINENO: result: no" >&5
9951 echo "${ECHO_T}no" >&6; }
9956 { echo "$as_me:$LINENO: result: nope" >&5
9957 echo "${ECHO_T}nope" >&6; }
9961 if test "x$PYTHON_OK" '!=' "xyes";then
9962 echo all install uninstall clean: > lib/python/Makefile
9963 # fail silently- the most users won't have any need for the
9964 # python interface anyway
9966 pythonrfxswf="lib/python/Makefile"
9969 # ------------------------------------------------------------------
9971 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9972 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9974 if test "x$ZLIBMISSING" = "xtrue";then
9975 MISSINGLIBS="${MISSINGLIBS} zlib"
9979 if test "x$JPEGLIBMISSING" = "xtrue";then
9980 MISSINGLIBS="${MISSINGLIBS} jpeglib"
9982 DISABLEJPEG2SWF=true
9985 #if test "x$T1LIBMISSING" = "xtrue";then
9986 # MISSINGLIBS="${MISSINGLIBS} t1lib"
9988 if test "x$UNGIFMISSING" = "xtrue";then
9990 MISSINGLIBS="${MISSINGLIBS} ungif"
9994 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9995 DISABLEPDF2SWF=true;
9996 DISABLEJPEG2SWF=true;
9997 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10000 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10001 DISABLEPDF2SWF=true;
10002 MISSINGLIBS="${MISSINGLIBS} freetype"
10005 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10006 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10008 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10009 DISABLEGIF2SWF=true
10010 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10013 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10014 DISABLEPNG2SWF=true;
10015 MISSINGLIBS="${MISSINGLIBS} zlib.h"
10018 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10019 # MISSINGLIBS="${MISSINGLIBS} avifile"
10022 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10023 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
10025 # ------------------------------------------------------------------
10027 if test "x${MISSINGLIBS}" '!=' "x"; then
10028 echo "***************************************************"
10029 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10032 avi2swf="avi2swf/Makefile"
10033 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10034 #don't whine, avi2swf is outdated anyway
10035 #echo "* Disabling avi2swf tool..."
10036 echo all install uninstall clean: > avi2swf/Makefile
10040 pdf2swf_makefile="lib/pdf/Makefile"
10041 PDF2SWF='pdf2swf$(E)'
10042 LIBPDF='libpdf$(A)'
10044 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10045 echo "* Disabling pdf2swf tool..."
10046 rm -f lib/pdf/Makefile
10047 echo all install uninstall clean libpdf: > lib/pdf/Makefile
10048 pdf2swf_makefile=""
10055 if test "x${ZLIBMISSING}" = "xtrue"; then
10057 echo "* Warning! Without zlib, you will not be able to read"
10058 echo "* or write compressed Flash MX files!"
10061 JPEG2SWF='jpeg2swf$(E)'
10062 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10063 echo "* Disabling jpeg2swf tool..."
10069 GIF2SWF='gif2swf$(E)'
10070 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10071 echo "* Disabling gif2swf tool..."
10077 PNG2SWF='png2swf$(E)'
10078 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10079 echo "* Disabling png2swf tool..."
10085 if test "x${MISSINGLIBS}" '!=' "x"; then
10086 if test "x${PARTIAL}" '=' "x"; then
10087 echo "* (never mind)"
10089 echo "***************************************************"
10092 # ------------------------------------------------------------------
10100 if test -f "release.in"; then release_in="./release"; fi
10101 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10102 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
10103 ac_config_files="$ac_config_files ${FILES}"
10105 cat >confcache <<\_ACEOF
10106 # This file is a shell script that caches the results of configure
10107 # tests run on this system so they can be shared between configure
10108 # scripts and configure runs, see configure's option --config-cache.
10109 # It is not useful on other systems. If it contains results you don't
10110 # want to keep, you may remove or edit it.
10112 # config.status only pays attention to the cache file if you give it
10113 # the --recheck option to rerun configure.
10115 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10116 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10117 # following values.
10121 # The following way of writing the cache mishandles newlines in values,
10122 # but we know of no workaround that is simple, portable, and efficient.
10123 # So, we kill variables containing newlines.
10124 # Ultrix sh set writes to stderr and can't be redirected directly,
10125 # and sets the high bit in the cache file unless we assign to the vars.
10127 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10128 eval ac_val=\$$ac_var
10132 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10133 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10136 _ | IFS | as_nl) ;; #(
10137 *) $as_unset $ac_var ;;
10143 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10144 *${as_nl}ac_space=\ *)
10145 # `set' does not quote correctly, so add quotes (double-quote
10146 # substitution turns \\\\ into \\, and sed turns \\ into \).
10149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10152 # `set' quotes correctly as required by POSIX, so do not add quotes.
10153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10162 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10164 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10166 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10167 if test -w "$cache_file"; then
10168 test "x$cache_file" != "x/dev/null" &&
10169 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10170 echo "$as_me: updating cache $cache_file" >&6;}
10171 cat confcache >$cache_file
10173 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10174 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10180 # Let make expand exec_prefix.
10181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10183 DEFS=-DHAVE_CONFIG_H
10187 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10188 # 1. Remove the extension, and $U if already installed.
10189 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10190 ac_i=`echo "$ac_i" | sed "$ac_script"`
10191 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10192 # will be set to the directory where LIBOBJS objects are built.
10193 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10194 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10196 LIBOBJS=$ac_libobjs
10198 LTLIBOBJS=$ac_ltlibobjs
10202 : ${CONFIG_STATUS=./config.status}
10203 ac_clean_files_save=$ac_clean_files
10204 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10205 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10206 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10207 cat >$CONFIG_STATUS <<_ACEOF
10209 # Generated by $as_me.
10210 # Run this file to recreate the current configuration.
10211 # Compiler output produced by configure, useful for debugging
10212 # configure, is in config.log if it exists.
10215 ac_cs_recheck=false
10217 SHELL=\${CONFIG_SHELL-$SHELL}
10220 cat >>$CONFIG_STATUS <<\_ACEOF
10221 ## --------------------- ##
10222 ## M4sh Initialization. ##
10223 ## --------------------- ##
10225 # Be more Bourne compatible
10226 DUALCASE=1; export DUALCASE # for MKS sh
10227 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10230 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10231 # is contrary to our usage. Disable this feature.
10232 alias -g '${1+"$@"}'='"$@"'
10233 setopt NO_GLOB_SUBST
10235 case `(set -o) 2>/dev/null` in
10236 *posix*) set -o posix ;;
10245 # Avoid depending upon Character Ranges.
10246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10249 as_cr_digits='0123456789'
10250 as_cr_alnum=$as_cr_Letters$as_cr_digits
10252 # The user is always right.
10253 if test "${PATH_SEPARATOR+set}" != set; then
10254 echo "#! /bin/sh" >conf$$.sh
10255 echo "exit 0" >>conf$$.sh
10257 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10265 # Support unset when possible.
10266 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10274 # We need space, tab and new line, in precisely that order. Quoting is
10275 # there to prevent editors from complaining about space-tab.
10276 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10277 # splitting by setting IFS to empty value.)
10282 # Find who we are. Look in the path if we contain no directory separator.
10284 *[\\/]* ) as_myself=$0 ;;
10285 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286 for as_dir in $PATH
10289 test -z "$as_dir" && as_dir=.
10290 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10296 # We did not find ourselves, most probably we were run as `sh COMMAND'
10297 # in which case we are not to be found in the path.
10298 if test "x$as_myself" = x; then
10301 if test ! -f "$as_myself"; then
10302 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10303 { (exit 1); exit 1; }
10306 # Work around bugs in pre-3.0 UWIN ksh.
10307 for as_var in ENV MAIL MAILPATH
10308 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10316 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10317 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10318 LC_TELEPHONE LC_TIME
10320 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10321 eval $as_var=C; export $as_var
10323 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10327 # Required to use basename.
10328 if expr a : '\(a\)' >/dev/null 2>&1 &&
10329 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10335 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10336 as_basename=basename
10342 # Name of the executable.
10343 as_me=`$as_basename -- "$0" ||
10344 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10345 X"$0" : 'X\(//\)$' \| \
10346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10348 sed '/^.*\/\([^/][^/]*\)\/*$/{
10367 as_lineno_1=$LINENO
10368 as_lineno_2=$LINENO
10369 test "x$as_lineno_1" != "x$as_lineno_2" &&
10370 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10372 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10373 # uniformly replaced by the line number. The first 'sed' inserts a
10374 # line-number line after each line using $LINENO; the second 'sed'
10375 # does the real work. The second script uses 'N' to pair each
10376 # line-number line with the line containing $LINENO, and appends
10377 # trailing '-' during substitution so that $LINENO is not a special
10378 # case at line end.
10379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10380 # scripts with optimization help from Paolo Bonzini. Blame Lee
10381 # E. McMahon (1931-1989) for sed's syntax. :-)
10393 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10396 ' >$as_me.lineno &&
10397 chmod +x "$as_me.lineno" ||
10398 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10399 { (exit 1); exit 1; }; }
10401 # Don't try to exec as it changes $[0], causing all sort of problems
10402 # (the dirname of $[0] is not the place where we might find the
10403 # original and so on. Autoconf is especially sensitive to this).
10404 . "./$as_me.lineno"
10405 # Exit status is that of the last command.
10410 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10416 ECHO_C= ECHO_N= ECHO_T=
10417 case `echo -n x` in
10419 case `echo 'x\c'` in
10420 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10427 if expr a : '\(a\)' >/dev/null 2>&1 &&
10428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10434 rm -f conf$$ conf$$.exe conf$$.file
10435 if test -d conf$$.dir; then
10436 rm -f conf$$.dir/conf$$.file
10442 if ln -s conf$$.file conf$$ 2>/dev/null; then
10444 # ... but there are two gotchas:
10445 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10446 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10447 # In both cases, we have to default to `cp -p'.
10448 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10450 elif ln conf$$.file conf$$ 2>/dev/null; then
10455 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10456 rmdir conf$$.dir 2>/dev/null
10458 if mkdir -p . 2>/dev/null; then
10461 test -d ./-p && rmdir ./-p
10465 if test -x / >/dev/null 2>&1; then
10466 as_test_x='test -x'
10468 if ls -dL / >/dev/null 2>&1; then
10475 if test -d "$1"; then
10481 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10482 ???[sx]*):;;*)false;;esac;fi
10486 as_executable_p=$as_test_x
10488 # Sed expression to map a string onto a valid CPP name.
10489 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10491 # Sed expression to map a string onto a valid variable name.
10492 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10497 # Save the log message, to keep $[0] and so on meaningful, and to
10498 # report actual input values of CONFIG_FILES etc. instead of their
10499 # values after options handling.
10501 This file was extended by $as_me, which was
10502 generated by GNU Autoconf 2.61. Invocation command line was
10504 CONFIG_FILES = $CONFIG_FILES
10505 CONFIG_HEADERS = $CONFIG_HEADERS
10506 CONFIG_LINKS = $CONFIG_LINKS
10507 CONFIG_COMMANDS = $CONFIG_COMMANDS
10510 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10515 cat >>$CONFIG_STATUS <<_ACEOF
10516 # Files that config.status was made for.
10517 config_files="$ac_config_files"
10518 config_headers="$ac_config_headers"
10522 cat >>$CONFIG_STATUS <<\_ACEOF
10524 \`$as_me' instantiates files from templates according to the
10525 current configuration.
10527 Usage: $0 [OPTIONS] [FILE]...
10529 -h, --help print this help, then exit
10530 -V, --version print version number and configuration settings, then exit
10531 -q, --quiet do not print progress messages
10532 -d, --debug don't remove temporary files
10533 --recheck update $as_me by reconfiguring in the same conditions
10534 --file=FILE[:TEMPLATE]
10535 instantiate the configuration file FILE
10536 --header=FILE[:TEMPLATE]
10537 instantiate the configuration header FILE
10539 Configuration files:
10542 Configuration headers:
10545 Report bugs to <bug-autoconf@gnu.org>."
10548 cat >>$CONFIG_STATUS <<_ACEOF
10551 configured by $0, generated by GNU Autoconf 2.61,
10552 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10554 Copyright (C) 2006 Free Software Foundation, Inc.
10555 This config.status script is free software; the Free Software Foundation
10556 gives unlimited permission to copy, distribute and modify it."
10563 cat >>$CONFIG_STATUS <<\_ACEOF
10564 # If no file are specified by the user, then we need to provide default
10565 # value. By we need to know if files were specified by the user.
10571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10572 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10583 # Handling of the options.
10584 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10586 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10587 echo "$ac_cs_version"; exit ;;
10588 --debug | --debu | --deb | --de | --d | -d )
10590 --file | --fil | --fi | --f )
10592 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10593 ac_need_defaults=false;;
10594 --header | --heade | --head | --hea )
10596 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10597 ac_need_defaults=false;;
10599 # Conflict between --help and --header
10600 { echo "$as_me: error: ambiguous option: $1
10601 Try \`$0 --help' for more information." >&2
10602 { (exit 1); exit 1; }; };;
10603 --help | --hel | -h )
10604 echo "$ac_cs_usage"; exit ;;
10605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10606 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10609 # This is an error.
10610 -*) { echo "$as_me: error: unrecognized option: $1
10611 Try \`$0 --help' for more information." >&2
10612 { (exit 1); exit 1; }; } ;;
10614 *) ac_config_targets="$ac_config_targets $1"
10615 ac_need_defaults=false ;;
10621 ac_configure_extra_args=
10623 if $ac_cs_silent; then
10625 ac_configure_extra_args="$ac_configure_extra_args --silent"
10629 cat >>$CONFIG_STATUS <<_ACEOF
10630 if \$ac_cs_recheck; then
10631 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10632 CONFIG_SHELL=$SHELL
10633 export CONFIG_SHELL
10634 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10638 cat >>$CONFIG_STATUS <<\_ACEOF
10642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10643 ## Running $as_me. ##
10649 cat >>$CONFIG_STATUS <<_ACEOF
10652 cat >>$CONFIG_STATUS <<\_ACEOF
10654 # Handling of arguments.
10655 for ac_config_target in $ac_config_targets
10657 case $ac_config_target in
10658 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10659 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10661 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10662 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10663 { (exit 1); exit 1; }; };;
10668 # If the user did not use the arguments to specify the items to instantiate,
10669 # then the envvar interface is used. Set only those that are not.
10670 # We use the long form for the default assignment because of an extremely
10671 # bizarre bug on SunOS 4.1.3.
10672 if $ac_need_defaults; then
10673 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10674 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10677 # Have a temporary directory for convenience. Make it in the build tree
10678 # simply because there is no reason against having it here, and in addition,
10679 # creating and moving files from /tmp can sometimes cause problems.
10680 # Hook for its removal unless debugging.
10681 # Note that there is a small window in which the directory will not be cleaned:
10682 # after its creation but before its name has been assigned to `$tmp'.
10686 trap 'exit_status=$?
10687 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10689 trap '{ (exit 1); exit 1; }' 1 2 13 15
10691 # Create a (secure) tmp directory for tmp files.
10694 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10695 test -n "$tmp" && test -d "$tmp"
10698 tmp=./conf$$-$RANDOM
10699 (umask 077 && mkdir "$tmp")
10702 echo "$me: cannot create a temporary directory in ." >&2
10703 { (exit 1); exit 1; }
10707 # Set up the sed scripts for CONFIG_FILES section.
10710 # No need to generate the scripts if there are no CONFIG_FILES.
10711 # This happens for instance when ./config.status config.h
10712 if test -n "$CONFIG_FILES"; then
10719 for ac_last_try in false false false false false :; do
10720 cat >conf$$subs.sed <<_ACEOF
10721 SHELL!$SHELL$ac_delim
10722 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10723 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10724 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10725 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10726 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10727 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10728 exec_prefix!$exec_prefix$ac_delim
10729 prefix!$prefix$ac_delim
10730 program_transform_name!$program_transform_name$ac_delim
10731 bindir!$bindir$ac_delim
10732 sbindir!$sbindir$ac_delim
10733 libexecdir!$libexecdir$ac_delim
10734 datarootdir!$datarootdir$ac_delim
10735 datadir!$datadir$ac_delim
10736 sysconfdir!$sysconfdir$ac_delim
10737 sharedstatedir!$sharedstatedir$ac_delim
10738 localstatedir!$localstatedir$ac_delim
10739 includedir!$includedir$ac_delim
10740 oldincludedir!$oldincludedir$ac_delim
10741 docdir!$docdir$ac_delim
10742 infodir!$infodir$ac_delim
10743 htmldir!$htmldir$ac_delim
10744 dvidir!$dvidir$ac_delim
10745 pdfdir!$pdfdir$ac_delim
10746 psdir!$psdir$ac_delim
10747 libdir!$libdir$ac_delim
10748 localedir!$localedir$ac_delim
10749 mandir!$mandir$ac_delim
10750 DEFS!$DEFS$ac_delim
10751 ECHO_C!$ECHO_C$ac_delim
10752 ECHO_N!$ECHO_N$ac_delim
10753 ECHO_T!$ECHO_T$ac_delim
10754 LIBS!$LIBS$ac_delim
10755 build_alias!$build_alias$ac_delim
10756 host_alias!$host_alias$ac_delim
10757 target_alias!$target_alias$ac_delim
10758 build!$build$ac_delim
10759 build_cpu!$build_cpu$ac_delim
10760 build_vendor!$build_vendor$ac_delim
10761 build_os!$build_os$ac_delim
10762 host!$host$ac_delim
10763 host_cpu!$host_cpu$ac_delim
10764 host_vendor!$host_vendor$ac_delim
10765 host_os!$host_os$ac_delim
10766 SHARED!$SHARED$ac_delim
10768 CFLAGS!$CFLAGS$ac_delim
10769 LDFLAGS!$LDFLAGS$ac_delim
10770 CPPFLAGS!$CPPFLAGS$ac_delim
10771 ac_ct_CC!$ac_ct_CC$ac_delim
10772 EXEEXT!$EXEEXT$ac_delim
10773 OBJEXT!$OBJEXT$ac_delim
10775 CXXFLAGS!$CXXFLAGS$ac_delim
10776 ac_ct_CXX!$ac_ct_CXX$ac_delim
10778 RANLIB!$RANLIB$ac_delim
10779 SET_MAKE!$SET_MAKE$ac_delim
10780 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10781 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10782 INSTALL_DATA!$INSTALL_DATA$ac_delim
10783 LN_S!$LN_S$ac_delim
10784 UNCOMPRESS!$UNCOMPRESS$ac_delim
10785 AREXT!$AREXT$ac_delim
10787 SLEXT!$SLEXT$ac_delim
10788 CXXLIBS!$CXXLIBS$ac_delim
10789 STRIP!$STRIP$ac_delim
10790 target!$target$ac_delim
10791 target_cpu!$target_cpu$ac_delim
10792 target_vendor!$target_vendor$ac_delim
10793 target_os!$target_os$ac_delim
10794 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10795 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10796 GREP!$GREP$ac_delim
10797 EGREP!$EGREP$ac_delim
10798 PACKAGE!$PACKAGE$ac_delim
10799 VERSION!$VERSION$ac_delim
10800 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10801 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10802 DEVICE_OPENGL!$DEVICE_OPENGL$ac_delim
10803 lame_in_source!$lame_in_source$ac_delim
10804 art_in_source!$art_in_source$ac_delim
10805 xpdf_in_source!$xpdf_in_source$ac_delim
10806 splash_in_source!$splash_in_source$ac_delim
10807 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10808 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10809 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10810 USE_GZIP!$USE_GZIP$ac_delim
10811 PYTHON_LIB!$PYTHON_LIB$ac_delim
10812 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10813 HAVE_PYTHON_IMAGING!$HAVE_PYTHON_IMAGING$ac_delim
10814 PDF2SWF!$PDF2SWF$ac_delim
10815 LIBPDF!$LIBPDF$ac_delim
10816 JPEG2SWF!$JPEG2SWF$ac_delim
10817 GIF2SWF!$GIF2SWF$ac_delim
10820 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10822 elif $ac_last_try; then
10823 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10824 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10825 { (exit 1); exit 1; }; }
10827 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10831 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10832 if test -n "$ac_eof"; then
10833 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10834 ac_eof=`expr $ac_eof + 1`
10837 cat >>$CONFIG_STATUS <<_ACEOF
10838 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10839 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10842 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10843 s/^/s,@/; s/!/@,|#_!!_#|/
10846 s/'"$ac_delim"'$/,g/; t
10848 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10849 ' >>$CONFIG_STATUS <conf$$subs.sed
10850 rm -f conf$$subs.sed
10851 cat >>$CONFIG_STATUS <<_ACEOF
10857 for ac_last_try in false false false false false :; do
10858 cat >conf$$subs.sed <<_ACEOF
10859 PNG2SWF!$PNG2SWF$ac_delim
10860 LIBOBJS!$LIBOBJS$ac_delim
10861 LTLIBOBJS!$LTLIBOBJS$ac_delim
10864 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
10866 elif $ac_last_try; then
10867 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10868 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10869 { (exit 1); exit 1; }; }
10871 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10875 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10876 if test -n "$ac_eof"; then
10877 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10878 ac_eof=`expr $ac_eof + 1`
10881 cat >>$CONFIG_STATUS <<_ACEOF
10882 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10886 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10887 s/^/s,@/; s/!/@,|#_!!_#|/
10890 s/'"$ac_delim"'$/,g/; t
10892 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10893 ' >>$CONFIG_STATUS <conf$$subs.sed
10894 rm -f conf$$subs.sed
10895 cat >>$CONFIG_STATUS <<_ACEOF
10902 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10903 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10904 # trailing colons and then remove the whole line if VPATH becomes empty
10905 # (actually we leave an empty line to preserve line numbers).
10906 if test "x$srcdir" = x.; then
10907 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10908 s/:*\$(srcdir):*/:/
10909 s/:*\${srcdir}:*/:/
10911 s/^\([^=]*=[ ]*\):*/\1/
10917 cat >>$CONFIG_STATUS <<\_ACEOF
10918 fi # test -n "$CONFIG_FILES"
10921 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10924 :[FHLC]) ac_mode=$ac_tag; continue;;
10926 case $ac_mode$ac_tag in
10928 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10929 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10930 { (exit 1); exit 1; }; };;
10931 :[FH]-) ac_tag=-:-;;
10932 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10949 -) ac_f="$tmp/stdin";;
10950 *) # Look for the file first in the build tree, then in the source tree
10951 # (if the path is not absolute). The absolute path cannot be DOS-style,
10952 # because $ac_f cannot contain `:'.
10956 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10958 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10959 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10960 { (exit 1); exit 1; }; };;
10962 ac_file_inputs="$ac_file_inputs $ac_f"
10965 # Let's still pretend it is `configure' which instantiates (i.e., don't
10966 # use $as_me), people would be surprised to read:
10967 # /* config.h. Generated by config.status. */
10968 configure_input="Generated from "`IFS=:
10969 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10970 if test x"$ac_file" != x-; then
10971 configure_input="$ac_file. $configure_input"
10972 { echo "$as_me:$LINENO: creating $ac_file" >&5
10973 echo "$as_me: creating $ac_file" >&6;}
10977 *:-:* | *:-) cat >"$tmp/stdin";;
10982 ac_dir=`$as_dirname -- "$ac_file" ||
10983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10984 X"$ac_file" : 'X\(//\)[^/]' \| \
10985 X"$ac_file" : 'X\(//\)$' \| \
10986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10992 /^X\(\/\/\)[^/].*/{
11007 -*) as_dir=./$as_dir;;
11009 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11013 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11014 *) as_qdir=$as_dir;;
11016 as_dirs="'$as_qdir' $as_dirs"
11017 as_dir=`$as_dirname -- "$as_dir" ||
11018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11019 X"$as_dir" : 'X\(//\)[^/]' \| \
11020 X"$as_dir" : 'X\(//\)$' \| \
11021 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11027 /^X\(\/\/\)[^/].*/{
11040 test -d "$as_dir" && break
11042 test -z "$as_dirs" || eval "mkdir $as_dirs"
11043 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11044 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11045 { (exit 1); exit 1; }; }; }
11049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11052 # A ".." for each directory in $ac_dir_suffix.
11053 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11054 case $ac_top_builddir_sub in
11055 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11056 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11059 ac_abs_top_builddir=$ac_pwd
11060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11061 # for backward compatibility:
11062 ac_top_builddir=$ac_top_build_prefix
11065 .) # We are building in place.
11067 ac_top_srcdir=$ac_top_builddir_sub
11068 ac_abs_top_srcdir=$ac_pwd ;;
11069 [\\/]* | ?:[\\/]* ) # Absolute name.
11070 ac_srcdir=$srcdir$ac_dir_suffix;
11071 ac_top_srcdir=$srcdir
11072 ac_abs_top_srcdir=$srcdir ;;
11073 *) # Relative name.
11074 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11075 ac_top_srcdir=$ac_top_build_prefix$srcdir
11076 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11088 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11089 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11093 cat >>$CONFIG_STATUS <<\_ACEOF
11094 # If the template does not know about datarootdir, expand it.
11095 # FIXME: This hack should be removed a few years after 2.60.
11096 ac_datarootdir_hack=; ac_datarootdir_seen=
11098 case `sed -n '/datarootdir/ {
11107 ' $ac_file_inputs` in
11108 *datarootdir*) ac_datarootdir_seen=yes;;
11109 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11110 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11111 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11113 cat >>$CONFIG_STATUS <<_ACEOF
11114 ac_datarootdir_hack='
11115 s&@datadir@&$datadir&g
11116 s&@docdir@&$docdir&g
11117 s&@infodir@&$infodir&g
11118 s&@localedir@&$localedir&g
11119 s&@mandir@&$mandir&g
11120 s&\\\${datarootdir}&$datarootdir&g' ;;
11124 # Neutralize VPATH when `$srcdir' = `.'.
11125 # Shell code in configure.ac might set extrasub.
11126 # FIXME: do we really want to maintain this feature?
11127 cat >>$CONFIG_STATUS <<_ACEOF
11131 cat >>$CONFIG_STATUS <<\_ACEOF
11133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11134 s&@configure_input@&$configure_input&;t t
11135 s&@top_builddir@&$ac_top_builddir_sub&;t t
11136 s&@srcdir@&$ac_srcdir&;t t
11137 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11138 s&@top_srcdir@&$ac_top_srcdir&;t t
11139 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11140 s&@builddir@&$ac_builddir&;t t
11141 s&@abs_builddir@&$ac_abs_builddir&;t t
11142 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11143 s&@INSTALL@&$ac_INSTALL&;t t
11144 $ac_datarootdir_hack
11145 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11147 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11148 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11149 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11150 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11151 which seems to be undefined. Please make sure it is defined." >&5
11152 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11153 which seems to be undefined. Please make sure it is defined." >&2;}
11157 -) cat "$tmp/out"; rm -f "$tmp/out";;
11158 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11167 # Transform confdefs.h into a sed script `conftest.defines', that
11168 # substitutes the proper values into config.h.in to produce config.h.
11169 rm -f conftest.defines conftest.tail
11170 # First, append a space to every undef/define line, to ease matching.
11171 echo 's/$/ /' >conftest.defines
11172 # Then, protect against being on the right side of a sed subst, or in
11173 # an unquoted here document, in config.status. If some macros were
11174 # called several times there might be several #defines for the same
11175 # symbol, which is useless. But do not sort them, since the last
11176 # AC_DEFINE must be honored.
11177 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11178 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11179 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11180 # PARAMS is the parameter list in the macro definition--in most cases, it's
11181 # just an empty string.
11182 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11183 ac_dB='\\)[ (].*,\\1define\\2'
11191 s/^[ ]*#[ ]*define[ ][ ]*//
11196 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11197 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11198 ' >>conftest.defines
11200 # Remove the space that was appended to ease matching.
11201 # Then replace #undef with comments. This is necessary, for
11202 # example, in the case of _POSIX_SOURCE, which is predefined and required
11203 # on some systems where configure will not decide to define it.
11204 # (The regexp can be short, since the line contains either #define or #undef.)
11206 s,^[ #]*u.*,/* & */,' >>conftest.defines
11208 # Break up conftest.defines:
11209 ac_max_sed_lines=50
11211 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11212 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11213 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11215 ac_in='$ac_file_inputs'
11216 ac_out='"$tmp/out1"'
11217 ac_nxt='"$tmp/out2"'
11221 # Write a here document:
11222 cat >>$CONFIG_STATUS <<_ACEOF
11223 # First, check the format of the line:
11224 cat >"\$tmp/defines.sed" <<\\CEOF
11225 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11226 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11230 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11232 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11233 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11234 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11235 grep . conftest.tail >/dev/null || break
11236 rm -f conftest.defines
11237 mv conftest.tail conftest.defines
11239 rm -f conftest.defines conftest.tail
11241 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11242 cat >>$CONFIG_STATUS <<\_ACEOF
11243 if test x"$ac_file" != x-; then
11244 echo "/* $configure_input */" >"$tmp/config.h"
11245 cat "$ac_result" >>"$tmp/config.h"
11246 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11247 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11248 echo "$as_me: $ac_file is unchanged" >&6;}
11251 mv "$tmp/config.h" $ac_file
11254 echo "/* $configure_input */"
11266 { (exit 0); exit 0; }
11268 chmod +x $CONFIG_STATUS
11269 ac_clean_files=$ac_clean_files_save
11272 # configure is writing to config.log, and then calls config.status.
11273 # config.status does its own redirection, appending to config.log.
11274 # Unfortunately, on DOS this fails, as config.log is still kept open
11275 # by configure, so config.status won't be able to write to it; its
11276 # output is simply discarded. So we exec the FD to /dev/null,
11277 # effectively closing config.log, so it can be properly (re)opened and
11278 # appended to by config.status. When coming back to configure, we
11279 # need to make the FD available again.
11280 if test "$no_create" != yes; then
11282 ac_config_status_args=
11283 test "$silent" = yes &&
11284 ac_config_status_args="$ac_config_status_args --quiet"
11286 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11289 # would make configure fail if this is the last instruction.
11290 $ac_cs_success || { (exit 1); exit 1; }
11296 # On development trees, create snapshots of config.status
11298 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11299 if test "x${MINGW}" = "xyes"; then
11300 echo cp config.status config.status.win32
11301 cp config.status config.status.win32
11303 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
11304 echo cp config.status config.status.linux
11305 cp config.status config.status.linux
11307 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
11308 echo cp config.status config.status.debug
11309 cp config.status config.status.debug
11311 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
11312 echo cp config.status config.status.optimize
11313 cp config.status config.status.optimize