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
723 ac_precious_vars='build_alias
743 # Initialize some variables set by options.
745 ac_init_version=false
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
755 program_transform_name=s,x,x,
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir='${exec_prefix}/bin'
770 sbindir='${exec_prefix}/sbin'
771 libexecdir='${exec_prefix}/libexec'
772 datarootdir='${prefix}/share'
773 datadir='${datarootdir}'
774 sysconfdir='${prefix}/etc'
775 sharedstatedir='${prefix}/com'
776 localstatedir='${prefix}/var'
777 includedir='${prefix}/include'
778 oldincludedir='/usr/include'
779 docdir='${datarootdir}/doc/${PACKAGE}'
780 infodir='${datarootdir}/info'
785 libdir='${exec_prefix}/lib'
786 localedir='${datarootdir}/locale'
787 mandir='${datarootdir}/man'
793 # If the previous option needs an argument, assign it.
794 if test -n "$ac_prev"; then
795 eval $ac_prev=\$ac_option
801 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
805 # Accept the important Cygnus configure options, so we can diagnose typos.
807 case $ac_dashdash$ac_option in
811 -bindir | --bindir | --bindi | --bind | --bin | --bi)
813 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 -build | --build | --buil | --bui | --bu)
817 ac_prev=build_alias ;;
818 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819 build_alias=$ac_optarg ;;
821 -cache-file | --cache-file | --cache-fil | --cache-fi \
822 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823 ac_prev=cache_file ;;
824 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826 cache_file=$ac_optarg ;;
829 cache_file=config.cache ;;
831 -datadir | --datadir | --datadi | --datad)
833 -datadir=* | --datadir=* | --datadi=* | --datad=*)
834 datadir=$ac_optarg ;;
836 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837 | --dataroo | --dataro | --datar)
838 ac_prev=datarootdir ;;
839 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841 datarootdir=$ac_optarg ;;
843 -disable-* | --disable-*)
844 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_$ac_feature=no ;;
852 -docdir | --docdir | --docdi | --doc | --do)
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 -enable-* | --enable-*)
863 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
866 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867 { (exit 1); exit 1; }; }
868 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
869 eval enable_$ac_feature=\$ac_optarg ;;
871 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873 | --exec | --exe | --ex)
874 ac_prev=exec_prefix ;;
875 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877 | --exec=* | --exe=* | --ex=*)
878 exec_prefix=$ac_optarg ;;
880 -gas | --gas | --ga | --g)
881 # Obsolete; use --with-gas.
884 -help | --help | --hel | --he | -h)
886 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887 ac_init_help=recursive ;;
888 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889 ac_init_help=short ;;
891 -host | --host | --hos | --ho)
892 ac_prev=host_alias ;;
893 -host=* | --host=* | --hos=* | --ho=*)
894 host_alias=$ac_optarg ;;
896 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
898 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
900 htmldir=$ac_optarg ;;
902 -includedir | --includedir | --includedi | --included | --include \
903 | --includ | --inclu | --incl | --inc)
904 ac_prev=includedir ;;
905 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906 | --includ=* | --inclu=* | --incl=* | --inc=*)
907 includedir=$ac_optarg ;;
909 -infodir | --infodir | --infodi | --infod | --info | --inf)
911 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912 infodir=$ac_optarg ;;
914 -libdir | --libdir | --libdi | --libd)
916 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920 | --libexe | --libex | --libe)
921 ac_prev=libexecdir ;;
922 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923 | --libexe=* | --libex=* | --libe=*)
924 libexecdir=$ac_optarg ;;
926 -localedir | --localedir | --localedi | --localed | --locale)
928 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929 localedir=$ac_optarg ;;
931 -localstatedir | --localstatedir | --localstatedi | --localstated \
932 | --localstate | --localstat | --localsta | --localst | --locals)
933 ac_prev=localstatedir ;;
934 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936 localstatedir=$ac_optarg ;;
938 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
940 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
944 # Obsolete; use --without-fp.
947 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948 | --no-cr | --no-c | -n)
951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957 | --oldin | --oldi | --old | --ol | --o)
958 ac_prev=oldincludedir ;;
959 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962 oldincludedir=$ac_optarg ;;
964 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
966 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 -program-prefix | --program-prefix | --program-prefi | --program-pref \
970 | --program-pre | --program-pr | --program-p)
971 ac_prev=program_prefix ;;
972 -program-prefix=* | --program-prefix=* | --program-prefi=* \
973 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974 program_prefix=$ac_optarg ;;
976 -program-suffix | --program-suffix | --program-suffi | --program-suff \
977 | --program-suf | --program-su | --program-s)
978 ac_prev=program_suffix ;;
979 -program-suffix=* | --program-suffix=* | --program-suffi=* \
980 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981 program_suffix=$ac_optarg ;;
983 -program-transform-name | --program-transform-name \
984 | --program-transform-nam | --program-transform-na \
985 | --program-transform-n | --program-transform- \
986 | --program-transform | --program-transfor \
987 | --program-transfo | --program-transf \
988 | --program-trans | --program-tran \
989 | --progr-tra | --program-tr | --program-t)
990 ac_prev=program_transform_name ;;
991 -program-transform-name=* | --program-transform-name=* \
992 | --program-transform-nam=* | --program-transform-na=* \
993 | --program-transform-n=* | --program-transform-=* \
994 | --program-transform=* | --program-transfor=* \
995 | --program-transfo=* | --program-transf=* \
996 | --program-trans=* | --program-tran=* \
997 | --progr-tra=* | --program-tr=* | --program-t=*)
998 program_transform_name=$ac_optarg ;;
1000 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1002 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003 pdfdir=$ac_optarg ;;
1005 -psdir | --psdir | --psdi | --psd | --ps)
1007 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011 | -silent | --silent | --silen | --sile | --sil)
1014 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1016 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1018 sbindir=$ac_optarg ;;
1020 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022 | --sharedst | --shareds | --shared | --share | --shar \
1024 ac_prev=sharedstatedir ;;
1025 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1029 sharedstatedir=$ac_optarg ;;
1031 -site | --site | --sit)
1033 -site=* | --site=* | --sit=*)
1036 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1038 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039 srcdir=$ac_optarg ;;
1041 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042 | --syscon | --sysco | --sysc | --sys | --sy)
1043 ac_prev=sysconfdir ;;
1044 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046 sysconfdir=$ac_optarg ;;
1048 -target | --target | --targe | --targ | --tar | --ta | --t)
1049 ac_prev=target_alias ;;
1050 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051 target_alias=$ac_optarg ;;
1053 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 -version | --version | --versio | --versi | --vers | -V)
1057 ac_init_version=: ;;
1060 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066 eval with_$ac_package=\$ac_optarg ;;
1068 -without-* | --without-*)
1069 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=no ;;
1078 # Obsolete; use --with-x.
1081 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082 | --x-incl | --x-inc | --x-in | --x-i)
1083 ac_prev=x_includes ;;
1084 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086 x_includes=$ac_optarg ;;
1088 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090 ac_prev=x_libraries ;;
1091 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093 x_libraries=$ac_optarg ;;
1095 -*) { echo "$as_me: error: unrecognized option: $ac_option
1096 Try \`$0 --help' for more information." >&2
1097 { (exit 1); exit 1; }; }
1101 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105 { (exit 1); exit 1; }; }
1106 eval $ac_envvar=\$ac_optarg
1107 export $ac_envvar ;;
1110 # FIXME: should be removed in autoconf 3.0.
1111 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1120 if test -n "$ac_prev"; then
1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122 { echo "$as_me: error: missing argument to $ac_option" >&2
1123 { (exit 1); exit 1; }; }
1126 # Be sure to have absolute directory names.
1127 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir
1132 eval ac_val=\$$ac_var
1134 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1137 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138 { (exit 1); exit 1; }; }
1141 # There might be people who depend on the old broken behavior: `$host'
1142 # used to hold the argument of --host etc.
1143 # FIXME: To remove some day.
1146 target=$target_alias
1148 # FIXME: To remove some day.
1149 if test "x$host_alias" != x; then
1150 if test "x$build_alias" = x; then
1151 cross_compiling=maybe
1152 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153 If a cross compiler is detected then cross compile mode will be used." >&2
1154 elif test "x$build_alias" != "x$host_alias"; then
1160 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162 test "$silent" = yes && exec 6>/dev/null
1165 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166 ac_ls_di=`ls -di .` &&
1167 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168 { echo "$as_me: error: Working directory cannot be determined" >&2
1169 { (exit 1); exit 1; }; }
1170 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171 { echo "$as_me: error: pwd does not report name of working directory" >&2
1172 { (exit 1); exit 1; }; }
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177 ac_srcdir_defaulted=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir=`$as_dirname -- "$0" ||
1180 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$0" : 'X\(//\)[^/]' \| \
1182 X"$0" : 'X\(//\)$' \| \
1183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1207 ac_srcdir_defaulted=no
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212 { (exit 1); exit 1; }; }
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1216 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217 { (exit 1); exit 1; }; }
1219 # When building in place, set srcdir=.
1220 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 # Remove unnecessary trailing slashes from srcdir.
1224 # Double slashes in file names in object file debugging info
1225 # mess up M-x gdb in Emacs.
1227 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229 for ac_var in $ac_precious_vars; do
1230 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_env_${ac_var}_value=\$${ac_var}
1232 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1237 # Report the --help message.
1239 if test "$ac_init_help" = "long"; then
1240 # Omit some internal or obsolete options to make the list less imposing.
1241 # This message is too long to be a string in the A/UX 3.1 sh.
1243 \`configure' configures this package to adapt to many kinds of systems.
1245 Usage: $0 [OPTION]... [VAR=VALUE]...
1247 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248 VAR=VALUE. See below for descriptions of some of the useful variables.
1250 Defaults for the options are specified in brackets.
1253 -h, --help display this help and exit
1254 --help=short display options specific to this package
1255 --help=recursive display the short help of all the included packages
1256 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking...' messages
1258 --cache-file=FILE cache test results in FILE [disabled]
1259 -C, --config-cache alias for \`--cache-file=config.cache'
1260 -n, --no-create do not create output files
1261 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1263 Installation directories:
1264 --prefix=PREFIX install architecture-independent files in PREFIX
1265 [$ac_default_prefix]
1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 By default, \`make install' will install all the files in
1270 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272 for instance \`--prefix=\$HOME'.
1274 For better control, use the options below.
1276 Fine tuning of the installation directories:
1277 --bindir=DIR user executables [EPREFIX/bin]
1278 --sbindir=DIR system admin executables [EPREFIX/sbin]
1279 --libexecdir=DIR program executables [EPREFIX/libexec]
1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283 --libdir=DIR object code libraries [EPREFIX/lib]
1284 --includedir=DIR C header files [PREFIX/include]
1285 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288 --infodir=DIR info documentation [DATAROOTDIR/info]
1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290 --mandir=DIR man documentation [DATAROOTDIR/man]
1291 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1292 --htmldir=DIR html documentation [DOCDIR]
1293 --dvidir=DIR dvi documentation [DOCDIR]
1294 --pdfdir=DIR pdf documentation [DOCDIR]
1295 --psdir=DIR ps documentation [DOCDIR]
1301 --program-prefix=PREFIX prepend PREFIX to installed program names
1302 --program-suffix=SUFFIX append SUFFIX to installed program names
1303 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1306 --build=BUILD configure for building on BUILD [guessed]
1307 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1308 --target=TARGET configure for building compilers for TARGET [HOST]
1312 if test -n "$ac_init_help"; then
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-checkmem turn on ccmalloc debugging
1320 --enable-debug turn on debugging
1321 --enable-profiling turn on profiling
1322 --enable-warnings turn on compiler warnings
1323 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1324 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --with-external-libart use external libart library (currently broken)
1330 --with-poppler use poppler instead of internal xpdf (currently broken)
1332 Some influential environment variables:
1333 CC C compiler command
1334 CFLAGS C compiler flags
1335 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1336 nonstandard directory <lib dir>
1337 LIBS libraries to pass to the linker, e.g. -l<library>
1338 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1339 you have headers in a nonstandard directory <include dir>
1340 CXX C++ compiler command
1341 CXXFLAGS C++ compiler flags
1343 PKG_CONFIG path to pkg-config utility
1345 C compiler flags for LIBART, overriding pkg-config
1346 LIBART_LIBS linker flags for LIBART, overriding pkg-config
1348 C compiler flags for POPPLER, overriding pkg-config
1350 linker flags for POPPLER, overriding pkg-config
1351 CXXCPP C++ preprocessor
1353 Use these variables to override the choices made by `configure' or to help
1354 it to find libraries and programs with nonstandard names/locations.
1360 if test "$ac_init_help" = "recursive"; then
1361 # If there are subdirs, report their specific --help.
1362 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1363 test -d "$ac_dir" || continue
1367 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1370 # A ".." for each directory in $ac_dir_suffix.
1371 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1372 case $ac_top_builddir_sub in
1373 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1377 ac_abs_top_builddir=$ac_pwd
1378 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1379 # for backward compatibility:
1380 ac_top_builddir=$ac_top_build_prefix
1383 .) # We are building in place.
1385 ac_top_srcdir=$ac_top_builddir_sub
1386 ac_abs_top_srcdir=$ac_pwd ;;
1387 [\\/]* | ?:[\\/]* ) # Absolute name.
1388 ac_srcdir=$srcdir$ac_dir_suffix;
1389 ac_top_srcdir=$srcdir
1390 ac_abs_top_srcdir=$srcdir ;;
1392 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1393 ac_top_srcdir=$ac_top_build_prefix$srcdir
1394 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1396 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1398 cd "$ac_dir" || { ac_status=$?; continue; }
1399 # Check for guested configure.
1400 if test -f "$ac_srcdir/configure.gnu"; then
1402 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1403 elif test -f "$ac_srcdir/configure"; then
1405 $SHELL "$ac_srcdir/configure" --help=recursive
1407 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1409 cd "$ac_pwd" || { ac_status=$?; break; }
1413 test -n "$ac_init_help" && exit $ac_status
1414 if $ac_init_version; then
1417 generated by GNU Autoconf 2.61
1419 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1420 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1421 This configure script is free software; the Free Software Foundation
1422 gives unlimited permission to copy, distribute and modify it.
1426 cat >config.log <<_ACEOF
1427 This file contains any messages produced by compilers while
1428 running configure, to aid debugging if configure makes a mistake.
1430 It was created by $as_me, which was
1431 generated by GNU Autoconf 2.61. Invocation command line was
1443 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1444 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1445 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1446 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1447 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1449 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1450 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1452 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1453 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1454 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1455 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1456 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1457 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1458 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 test -z "$as_dir" && as_dir=.
1467 echo "PATH: $as_dir"
1483 # Keep a trace of the command line.
1484 # Strip out --no-create and --no-recursion so they do not pile up.
1485 # Strip out --silent because we don't want to record it for future runs.
1486 # Also quote any args containing shell meta-characters.
1487 # Make two passes to allow for proper duplicate-argument suppression.
1491 ac_must_keep_next=false
1497 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1498 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1499 | -silent | --silent | --silen | --sile | --sil)
1502 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1505 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1507 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1508 if test $ac_must_keep_next = true; then
1509 ac_must_keep_next=false # Got value, back to normal.
1512 *=* | --config-cache | -C | -disable-* | --disable-* \
1513 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1514 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1515 | -with-* | --with-* | -without-* | --without-* | --x)
1516 case "$ac_configure_args0 " in
1517 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1520 -* ) ac_must_keep_next=true ;;
1523 ac_configure_args="$ac_configure_args '$ac_arg'"
1528 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1529 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1531 # When interrupted or exit'd, cleanup temporary files, and complete
1532 # config.log. We remove comments because anyway the quotes in there
1533 # would cause problems or look ugly.
1534 # WARNING: Use '\'' to represent an apostrophe within the trap.
1535 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1536 trap 'exit_status=$?
1537 # Save into config.log some information that might help in debugging.
1542 ## ---------------- ##
1543 ## Cache variables. ##
1544 ## ---------------- ##
1547 # The following way of writing the cache mishandles newlines in values,
1549 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1550 eval ac_val=\$$ac_var
1554 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1555 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1558 _ | IFS | as_nl) ;; #(
1559 *) $as_unset $ac_var ;;
1564 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1565 *${as_nl}ac_space=\ *)
1567 "s/'\''/'\''\\\\'\'''\''/g;
1568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1571 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1579 ## ----------------- ##
1580 ## Output variables. ##
1581 ## ----------------- ##
1584 for ac_var in $ac_subst_vars
1586 eval ac_val=\$$ac_var
1588 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1590 echo "$ac_var='\''$ac_val'\''"
1594 if test -n "$ac_subst_files"; then
1596 ## ------------------- ##
1597 ## File substitutions. ##
1598 ## ------------------- ##
1601 for ac_var in $ac_subst_files
1603 eval ac_val=\$$ac_var
1605 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1607 echo "$ac_var='\''$ac_val'\''"
1612 if test -s confdefs.h; then
1622 test "$ac_signal" != 0 &&
1623 echo "$as_me: caught signal $ac_signal"
1624 echo "$as_me: exit $exit_status"
1626 rm -f core *.core core.conftest.* &&
1627 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1630 for ac_signal in 1 2 13 15; do
1631 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1636 rm -f -r conftest* confdefs.h
1638 # Predefined preprocessor variables.
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_NAME "$PACKAGE_NAME"
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_STRING "$PACKAGE_STRING"
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1665 # Let the site file select an alternate cache file if it wants to.
1666 # Prefer explicitly selected file to automatically selected ones.
1667 if test -n "$CONFIG_SITE"; then
1668 set x "$CONFIG_SITE"
1669 elif test "x$prefix" != xNONE; then
1670 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1672 set x "$ac_default_prefix/share/config.site" \
1673 "$ac_default_prefix/etc/config.site"
1678 if test -r "$ac_site_file"; then
1679 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1680 echo "$as_me: loading site script $ac_site_file" >&6;}
1681 sed 's/^/| /' "$ac_site_file" >&5
1686 if test -r "$cache_file"; then
1687 # Some versions of bash will fail to source /dev/null (special
1688 # files actually), so we avoid doing that.
1689 if test -f "$cache_file"; then
1690 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1691 echo "$as_me: loading cache $cache_file" >&6;}
1693 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1694 *) . "./$cache_file";;
1698 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1699 echo "$as_me: creating cache $cache_file" >&6;}
1703 # Check that the precious variables saved in the cache have kept the same
1705 ac_cache_corrupted=false
1706 for ac_var in $ac_precious_vars; do
1707 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1708 eval ac_new_set=\$ac_env_${ac_var}_set
1709 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1710 eval ac_new_val=\$ac_env_${ac_var}_value
1711 case $ac_old_set,$ac_new_set in
1713 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1714 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1715 ac_cache_corrupted=: ;;
1717 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1718 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1719 ac_cache_corrupted=: ;;
1722 if test "x$ac_old_val" != "x$ac_new_val"; then
1723 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1724 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1725 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1726 echo "$as_me: former value: $ac_old_val" >&2;}
1727 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1728 echo "$as_me: current value: $ac_new_val" >&2;}
1729 ac_cache_corrupted=:
1732 # Pass precious variables to config.status.
1733 if test "$ac_new_set" = set; then
1735 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1736 *) ac_arg=$ac_var=$ac_new_val ;;
1738 case " $ac_configure_args " in
1739 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1740 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1744 if $ac_cache_corrupted; then
1745 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1746 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1747 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1748 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1749 { (exit 1); exit 1; }; }
1769 ac_cpp='$CPP $CPPFLAGS'
1770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1777 # Check whether --enable-checkmem was given.
1778 if test "${enable_checkmem+set}" = set; then
1779 enableval=$enable_checkmem; CHECKMEM=true
1782 # Check whether --enable-debug was given.
1783 if test "${enable_debug+set}" = set; then
1784 enableval=$enable_debug; DEBUG=true
1787 # Check whether --enable-profiling was given.
1788 if test "${enable_profiling+set}" = set; then
1789 enableval=$enable_profiling; PROFILING=true
1792 # Check whether --enable-warnings was given.
1793 if test "${enable_warnings+set}" = set; then
1794 enableval=$enable_warnings; ENABLE_WARNINGS=true
1797 # Check whether --enable-optimizations was given.
1798 if test "${enable_optimizations+set}" = set; then
1799 enableval=$enable_optimizations; OPTIMIZE=true
1802 # Check whether --enable-lame was given.
1803 if test "${enable_lame+set}" = set; then
1804 enableval=$enable_lame; DISABLE_LAME=true
1808 # Check whether --with-external-libart was given.
1809 if test "${with_external_libart+set}" = set; then
1810 withval=$with_external_libart; EXTERNAL_LIBART=true
1814 # Check whether --with-poppler was given.
1815 if test "${with_poppler+set}" = set; then
1816 withval=$with_poppler; USE_POPPLER=true
1821 VERSION=2008-07-11-0020
1824 # ------------------------------------------------------------------
1826 if test "x${srcdir}" != "x."; then
1827 echo "--srcdir is not supported"
1831 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1832 if test "x$ENABLE_WARNINGS" '!=' "x";then
1833 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1836 if test "x$CHECKMEM" '!=' "x";then
1839 if test "x$PROFILING" '!=' "x";then
1842 if test "x$DEBUG" '!=' "x";then
1843 if test "x$PROFILING" = "x";then
1844 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1845 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1848 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1849 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1850 LDFLAGS="-g -pg $LIBS"
1852 else if test "x$OPTIMIZE" '!=' "x"; then
1853 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1854 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1856 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1857 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1861 CFLAGS="-fPIC $CFLAGS"
1862 CXXFLAGS="-fPIC $CFLAGS"
1865 #if test "x$OLDGCC" '!=' "x";then
1866 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1867 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1868 # CFLAGS="$CFLAGS -ansi -pendantic"
1869 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1872 export PACKAGE VERSION CFLAGS CXXFLAGS
1876 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1877 if test -f "$ac_dir/install-sh"; then
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1881 elif test -f "$ac_dir/install.sh"; then
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1885 elif test -f "$ac_dir/shtool"; then
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1891 if test -z "$ac_aux_dir"; then
1892 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1906 # Make sure we can run config.sub.
1907 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1908 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1909 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1910 { (exit 1); exit 1; }; }
1912 { echo "$as_me:$LINENO: checking build system type" >&5
1913 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1914 if test "${ac_cv_build+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 ac_build_alias=$build_alias
1918 test "x$ac_build_alias" = x &&
1919 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1920 test "x$ac_build_alias" = x &&
1921 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1922 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1923 { (exit 1); exit 1; }; }
1924 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1925 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1926 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1927 { (exit 1); exit 1; }; }
1930 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1931 echo "${ECHO_T}$ac_cv_build" >&6; }
1932 case $ac_cv_build in
1934 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1935 echo "$as_me: error: invalid value of canonical build" >&2;}
1936 { (exit 1); exit 1; }; };;
1939 ac_save_IFS=$IFS; IFS='-'
1945 # Remember, the first character of IFS is used to create $*,
1946 # except with old shells:
1949 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1952 { echo "$as_me:$LINENO: checking host system type" >&5
1953 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1954 if test "${ac_cv_host+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 if test "x$host_alias" = x; then
1958 ac_cv_host=$ac_cv_build
1960 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1961 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1962 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1963 { (exit 1); exit 1; }; }
1967 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1968 echo "${ECHO_T}$ac_cv_host" >&6; }
1971 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1972 echo "$as_me: error: invalid value of canonical host" >&2;}
1973 { (exit 1); exit 1; }; };;
1976 ac_save_IFS=$IFS; IFS='-'
1982 # Remember, the first character of IFS is used to create $*,
1983 # except with old shells:
1986 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1996 CXXFLAGS="$CXXFLAGS -fno-rtti"
1998 # Use fink packages if available.
1999 #if test -d /sw/include && test -d /sw/lib; then
2000 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2001 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2009 ac_cpp='$CPP $CPPFLAGS'
2010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013 if test -n "$ac_tool_prefix"; then
2014 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2015 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018 if test "${ac_cv_prog_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$CC"; then
2022 ac_cv_prog_CC="$CC" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2031 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 if test -n "$CC"; then
2043 { echo "$as_me:$LINENO: result: $CC" >&5
2044 echo "${ECHO_T}$CC" >&6; }
2046 { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2052 if test -z "$ac_cv_prog_CC"; then
2054 # Extract the first word of "gcc", so it can be a program name with args.
2055 set dummy gcc; ac_word=$2
2056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test -n "$ac_ct_CC"; then
2062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2071 ac_cv_prog_ac_ct_CC="gcc"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082 if test -n "$ac_ct_CC"; then
2083 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084 echo "${ECHO_T}$ac_ct_CC" >&6; }
2086 { echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6; }
2090 if test "x$ac_ct_CC" = x; then
2093 case $cross_compiling:$ac_tool_warned in
2095 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet. If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&5
2098 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2099 whose name does not start with the host triplet. If you think this
2100 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2101 ac_tool_warned=yes ;;
2109 if test -z "$CC"; then
2110 if test -n "$ac_tool_prefix"; then
2111 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2112 set dummy ${ac_tool_prefix}cc; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$CC"; then
2119 ac_cv_prog_CC="$CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_CC="${ac_tool_prefix}cc"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 if test -n "$CC"; then
2140 { echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2150 if test -z "$CC"; then
2151 # Extract the first word of "cc", so it can be a program name with args.
2152 set dummy cc; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test -n "$CC"; then
2159 ac_cv_prog_CC="$CC" # Let the user override the test.
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2170 ac_prog_rejected=yes
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 if test $ac_prog_rejected = yes; then
2182 # We found a bogon in the path, so make sure we never use it.
2183 set dummy $ac_cv_prog_CC
2185 if test $# != 0; then
2186 # We chose a different compiler from the bogus one.
2187 # However, it has the same basename, so the bogon will be chosen
2188 # first if we set CC to just the basename; use the full file name.
2190 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2196 if test -n "$CC"; then
2197 { echo "$as_me:$LINENO: result: $CC" >&5
2198 echo "${ECHO_T}$CC" >&6; }
2200 { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2206 if test -z "$CC"; then
2207 if test -n "$ac_tool_prefix"; then
2208 for ac_prog in cl.exe
2210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2214 if test "${ac_cv_prog_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 if test -n "$CC"; then
2218 ac_cv_prog_CC="$CC" # Let the user override the test.
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2227 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 if test -n "$CC"; then
2239 { echo "$as_me:$LINENO: result: $CC" >&5
2240 echo "${ECHO_T}$CC" >&6; }
2242 { echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6; }
2247 test -n "$CC" && break
2250 if test -z "$CC"; then
2252 for ac_prog in cl.exe
2254 # Extract the first word of "$ac_prog", so it can be a program name with args.
2255 set dummy $ac_prog; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 if test -n "$ac_ct_CC"; then
2262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271 ac_cv_prog_ac_ct_CC="$ac_prog"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6; }
2286 { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2291 test -n "$ac_ct_CC" && break
2294 if test "x$ac_ct_CC" = x; then
2297 case $cross_compiling:$ac_tool_warned in
2299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2300 whose name does not start with the host triplet. If you think this
2301 configuration is useful to you, please write to autoconf@gnu.org." >&5
2302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2303 whose name does not start with the host triplet. If you think this
2304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2305 ac_tool_warned=yes ;;
2314 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: no acceptable C compiler found in \$PATH
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2320 # Provide some information about the compiler.
2321 echo "$as_me:$LINENO: checking for C compiler version" >&5
2322 ac_compiler=`set X $ac_compile; echo $2`
2323 { (ac_try="$ac_compiler --version >&5"
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329 (eval "$ac_compiler --version >&5") 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }
2333 { (ac_try="$ac_compiler -v >&5"
2335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336 *) ac_try_echo=$ac_try;;
2338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339 (eval "$ac_compiler -v >&5") 2>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }
2343 { (ac_try="$ac_compiler -V >&5"
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349 (eval "$ac_compiler -V >&5") 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
2354 cat >conftest.$ac_ext <<_ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2369 ac_clean_files_save=$ac_clean_files
2370 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2371 # Try to create an executable without -o first, disregard a.out.
2372 # It will help us diagnose broken compilers, and finding out an intuition
2374 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2375 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2376 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2378 # List of possible output files, starting from the most likely.
2379 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2380 # only as a last resort. b.out is created by i960 compilers.
2381 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2383 # The IRIX 6 linker writes into existing files which may not be
2384 # executable, retaining their permissions. Remove them first so a
2385 # subsequent execution test works.
2387 for ac_file in $ac_files
2390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2391 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2396 if { (ac_try="$ac_link_default"
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_link_default") 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; then
2406 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2407 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2408 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2409 # so that the user can short-circuit this test for compilers unknown to
2411 for ac_file in $ac_files ''
2413 test -f "$ac_file" || continue
2415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2418 # We found the default executable, but exeext='' is most
2422 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2424 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426 # We set ac_cv_exeext here because the later test for it is not
2427 # safe: cross compilers may not add the suffix if given an `-o'
2428 # argument, so we may need to know it at that point already.
2429 # Even if this section looks crufty: it has the advantage of
2436 test "$ac_cv_exeext" = no && ac_cv_exeext=
2442 { echo "$as_me:$LINENO: result: $ac_file" >&5
2443 echo "${ECHO_T}$ac_file" >&6; }
2444 if test -z "$ac_file"; then
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2448 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2449 See \`config.log' for more details." >&5
2450 echo "$as_me: error: C compiler cannot create executables
2451 See \`config.log' for more details." >&2;}
2452 { (exit 77); exit 77; }; }
2455 ac_exeext=$ac_cv_exeext
2457 # Check that the compiler produces executables we can run. If not, either
2458 # the compiler is broken, or we cross compile.
2459 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2460 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2461 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2462 # If not cross compiling, check that we can run a simple program.
2463 if test "$cross_compiling" != yes; then
2464 if { ac_try='./$ac_file'
2465 { (case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_try") 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2476 if test "$cross_compiling" = maybe; then
2479 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details." >&5
2482 echo "$as_me: error: cannot run C compiled programs.
2483 If you meant to cross compile, use \`--host'.
2484 See \`config.log' for more details." >&2;}
2485 { (exit 1); exit 1; }; }
2489 { echo "$as_me:$LINENO: result: yes" >&5
2490 echo "${ECHO_T}yes" >&6; }
2492 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2493 ac_clean_files=$ac_clean_files_save
2494 # Check that the compiler produces executables we can run. If not, either
2495 # the compiler is broken, or we cross compile.
2496 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2497 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2498 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2499 echo "${ECHO_T}$cross_compiling" >&6; }
2501 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2502 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2503 if { (ac_try="$ac_link"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_link") 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; then
2513 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2514 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2515 # work properly (i.e., refer to `conftest.exe'), while it won't with
2517 for ac_file in conftest.exe conftest conftest.*; do
2518 test -f "$ac_file" || continue
2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2521 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2527 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2530 See \`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }
2534 rm -f conftest$ac_cv_exeext
2535 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2538 rm -f conftest.$ac_ext
2539 EXEEXT=$ac_cv_exeext
2541 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2543 if test "${ac_cv_objext+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 cat >conftest.$ac_ext <<_ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2561 rm -f conftest.o conftest.obj
2562 if { (ac_try="$ac_compile"
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compile") 2>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; then
2572 for ac_file in conftest.o conftest.obj conftest.*; do
2573 test -f "$ac_file" || continue;
2575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2587 See \`config.log' for more details." >&2;}
2588 { (exit 1); exit 1; }; }
2591 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2593 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2594 echo "${ECHO_T}$ac_cv_objext" >&6; }
2595 OBJEXT=$ac_cv_objext
2597 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2598 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2599 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 cat >conftest.$ac_ext <<_ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2620 rm -f conftest.$ac_objext
2621 if { (ac_try="$ac_compile"
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627 (eval "$ac_compile") 2>conftest.er1
2629 grep -v '^ *+' conftest.er1 >conftest.err
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } && {
2634 test -z "$ac_c_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest.$ac_objext; then
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2649 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2650 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2651 GCC=`test $ac_compiler_gnu = yes && echo yes`
2652 ac_test_CFLAGS=${CFLAGS+set}
2653 ac_save_CFLAGS=$CFLAGS
2654 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2655 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2656 if test "${ac_cv_prog_cc_g+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 ac_save_c_werror_flag=$ac_c_werror_flag
2660 ac_c_werror_flag=yes
2663 cat >conftest.$ac_ext <<_ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 rm -f conftest.$ac_objext
2679 if { (ac_try="$ac_compile"
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compile") 2>conftest.er1
2687 grep -v '^ *+' conftest.er1 >conftest.err
2689 cat conftest.err >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } && {
2692 test -z "$ac_c_werror_flag" ||
2693 test ! -s conftest.err
2694 } && test -s conftest.$ac_objext; then
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2701 cat >conftest.$ac_ext <<_ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2716 rm -f conftest.$ac_objext
2717 if { (ac_try="$ac_compile"
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compile") 2>conftest.er1
2725 grep -v '^ *+' conftest.er1 >conftest.err
2727 cat conftest.err >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } && {
2730 test -z "$ac_c_werror_flag" ||
2731 test ! -s conftest.err
2732 } && test -s conftest.$ac_objext; then
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2738 ac_c_werror_flag=$ac_save_c_werror_flag
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2755 rm -f conftest.$ac_objext
2756 if { (ac_try="$ac_compile"
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_compile") 2>conftest.er1
2764 grep -v '^ *+' conftest.er1 >conftest.err
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } && {
2769 test -z "$ac_c_werror_flag" ||
2770 test ! -s conftest.err
2771 } && test -s conftest.$ac_objext; then
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787 ac_c_werror_flag=$ac_save_c_werror_flag
2789 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2790 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2791 if test "$ac_test_CFLAGS" = set; then
2792 CFLAGS=$ac_save_CFLAGS
2793 elif test $ac_cv_prog_cc_g = yes; then
2794 if test "$GCC" = yes; then
2800 if test "$GCC" = yes; then
2806 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2807 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_cc_c89+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 ac_cv_prog_cc_c89=no
2813 cat >conftest.$ac_ext <<_ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2821 #include <sys/types.h>
2822 #include <sys/stat.h>
2823 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2824 struct buf { int x; };
2825 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2826 static char *e (p, i)
2832 static char *f (char * (*g) (char **, int), char **p, ...)
2837 s = g (p, va_arg (v,int));
2842 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2843 function prototypes and stuff, but not '\xHH' hex character constants.
2844 These don't provoke an error unfortunately, instead are silently treated
2845 as 'x'. The following induces an error, until -std is added to get
2846 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2847 array size at least. It's necessary to write '\x00'==0 to get something
2848 that's true only with -std. */
2849 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2851 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2852 inside strings and character constants. */
2854 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2856 int test (int i, double x);
2857 struct s1 {int (*f) (int a);};
2858 struct s2 {int (*f) (double a);};
2859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2865 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2870 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2871 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2873 CC="$ac_save_CC $ac_arg"
2874 rm -f conftest.$ac_objext
2875 if { (ac_try="$ac_compile"
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_compile") 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } && {
2888 test -z "$ac_c_werror_flag" ||
2889 test ! -s conftest.err
2890 } && test -s conftest.$ac_objext; then
2891 ac_cv_prog_cc_c89=$ac_arg
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f core conftest.err conftest.$ac_objext
2900 test "x$ac_cv_prog_cc_c89" != "xno" && break
2902 rm -f conftest.$ac_ext
2907 case "x$ac_cv_prog_cc_c89" in
2909 { echo "$as_me:$LINENO: result: none needed" >&5
2910 echo "${ECHO_T}none needed" >&6; } ;;
2912 { echo "$as_me:$LINENO: result: unsupported" >&5
2913 echo "${ECHO_T}unsupported" >&6; } ;;
2915 CC="$CC $ac_cv_prog_cc_c89"
2916 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 if test -z "$CXX"; then
2933 if test -n "$CCC"; then
2936 if test -n "$ac_tool_prefix"; then
2937 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_CXX+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 if test -n "$CXX"; then
2947 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test -n "$CXX"; then
2968 { echo "$as_me:$LINENO: result: $CXX" >&5
2969 echo "${ECHO_T}$CXX" >&6; }
2971 { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2976 test -n "$CXX" && break
2979 if test -z "$CXX"; then
2981 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 if test -n "$ac_ct_CXX"; then
2991 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000 ac_cv_prog_ac_ct_CXX="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3011 if test -n "$ac_ct_CXX"; then
3012 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3013 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3015 { echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6; }
3020 test -n "$ac_ct_CXX" && break
3023 if test "x$ac_ct_CXX" = x; then
3026 case $cross_compiling:$ac_tool_warned in
3028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet. If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&5
3031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet. If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3034 ac_tool_warned=yes ;;
3042 # Provide some information about the compiler.
3043 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3044 ac_compiler=`set X $ac_compile; echo $2`
3045 { (ac_try="$ac_compiler --version >&5"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compiler --version >&5") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }
3055 { (ac_try="$ac_compiler -v >&5"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compiler -v >&5") 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }
3065 { (ac_try="$ac_compiler -V >&5"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compiler -V >&5") 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }
3076 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3077 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3078 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && {
3113 test -z "$ac_cxx_werror_flag" ||
3114 test ! -s conftest.err
3115 } && test -s conftest.$ac_objext; then
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3128 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3129 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3130 GXX=`test $ac_compiler_gnu = yes && echo yes`
3131 ac_test_CXXFLAGS=${CXXFLAGS+set}
3132 ac_save_CXXFLAGS=$CXXFLAGS
3133 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3134 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3135 if test "${ac_cv_prog_cxx_g+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3139 ac_cxx_werror_flag=yes
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3166 grep -v '^ *+' conftest.er1 >conftest.err
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } && {
3171 test -z "$ac_cxx_werror_flag" ||
3172 test ! -s conftest.err
3173 } && test -s conftest.$ac_objext; then
3174 ac_cv_prog_cxx_g=yes
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3180 cat >conftest.$ac_ext <<_ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3204 grep -v '^ *+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_cxx_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.$ac_objext; then
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3243 grep -v '^ *+' conftest.er1 >conftest.err
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } && {
3248 test -z "$ac_cxx_werror_flag" ||
3249 test ! -s conftest.err
3250 } && test -s conftest.$ac_objext; then
3251 ac_cv_prog_cxx_g=yes
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3268 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3269 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3270 if test "$ac_test_CXXFLAGS" = set; then
3271 CXXFLAGS=$ac_save_CXXFLAGS
3272 elif test $ac_cv_prog_cxx_g = yes; then
3273 if test "$GXX" = yes; then
3279 if test "$GXX" = yes; then
3286 ac_cpp='$CPP $CPPFLAGS'
3287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3295 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3297 cat > conftest.c << EOF
3301 int main (int argc, char*argv)
3311 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3312 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3313 { echo "$as_me:$LINENO: result: yes" >&5
3314 echo "${ECHO_T}yes" >&6; }
3318 echo "configure: failed program was:" >&5
3320 { echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6; }
3326 if test "x$GCC_IS_OK" '=' "x";then
3327 echo "***************************************************"
3328 echo "* Your gcc is too old to compile this!"
3330 echo "* The last version compilable by this compiler is "
3331 echo "* swftools 0.7.0, which you can download from "
3332 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3334 echo "* Newer versions require at least gcc 3.0.0 "
3335 echo "***************************************************"
3339 if test "x$CHECKMEM" '!=' "x";then
3343 #unset ac_cv_prog_CC
3344 #unset ac_cv_prog_CXX
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3355 # On Suns, sometimes $CPP names a directory.
3356 if test -n "$CPP" && test -d "$CPP"; then
3359 if test -z "$CPP"; then
3360 if test "${ac_cv_prog_CPP+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 # Double quotes because CPP needs to be expanded
3364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3367 for ac_c_preproc_warn_flag in '' yes
3369 # Use a header file that comes with gcc, so configuring glibc
3370 # with a fresh cross-compiler works.
3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372 # <limits.h> exists even on freestanding compilers.
3373 # On the NeXT, cc -E runs the code through the compiler's parser,
3374 # not just through cpp. "Syntax error" is here to catch this case.
3375 cat >conftest.$ac_ext <<_ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3382 # include <limits.h>
3384 # include <assert.h>
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null && {
3401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 # Broken: fails on valid input.
3413 rm -f conftest.err conftest.$ac_ext
3415 # OK, works on sane cases. Now check whether nonexistent headers
3416 # can be detected and how.
3417 cat >conftest.$ac_ext <<_ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #include <ac_nonexistent.h>
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 grep -v '^ *+' conftest.er1 >conftest.err
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null && {
3438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3439 test ! -s conftest.err
3441 # Broken: success on invalid input.
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 # Passes both tests.
3452 rm -f conftest.err conftest.$ac_ext
3455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3456 rm -f conftest.err conftest.$ac_ext
3457 if $ac_preproc_ok; then
3469 { echo "$as_me:$LINENO: result: $CPP" >&5
3470 echo "${ECHO_T}$CPP" >&6; }
3472 for ac_c_preproc_warn_flag in '' yes
3474 # Use a header file that comes with gcc, so configuring glibc
3475 # with a fresh cross-compiler works.
3476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477 # <limits.h> exists even on freestanding compilers.
3478 # On the NeXT, cc -E runs the code through the compiler's parser,
3479 # not just through cpp. "Syntax error" is here to catch this case.
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3487 # include <limits.h>
3489 # include <assert.h>
3493 if { (ac_try="$ac_cpp conftest.$ac_ext"
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3501 grep -v '^ *+' conftest.er1 >conftest.err
3503 cat conftest.err >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } >/dev/null && {
3506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3507 test ! -s conftest.err
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 # Broken: fails on valid input.
3518 rm -f conftest.err conftest.$ac_ext
3520 # OK, works on sane cases. Now check whether nonexistent headers
3521 # can be detected and how.
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include <ac_nonexistent.h>
3530 if { (ac_try="$ac_cpp conftest.$ac_ext"
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3538 grep -v '^ *+' conftest.er1 >conftest.err
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } >/dev/null && {
3543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3544 test ! -s conftest.err
3546 # Broken: success on invalid input.
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 # Passes both tests.
3557 rm -f conftest.err conftest.$ac_ext
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then
3565 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details." >&5
3567 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&2;}
3569 { (exit 1); exit 1; }; }
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579 if test -n "$ac_tool_prefix"; then
3580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3584 if test "${ac_cv_prog_RANLIB+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test -n "$RANLIB"; then
3588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 RANLIB=$ac_cv_prog_RANLIB
3608 if test -n "$RANLIB"; then
3609 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3610 echo "${ECHO_T}$RANLIB" >&6; }
3612 { echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6; }
3618 if test -z "$ac_cv_prog_RANLIB"; then
3619 ac_ct_RANLIB=$RANLIB
3620 # Extract the first word of "ranlib", so it can be a program name with args.
3621 set dummy ranlib; ac_word=$2
3622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 if test -n "$ac_ct_RANLIB"; then
3628 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637 ac_cv_prog_ac_ct_RANLIB="ranlib"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3648 if test -n "$ac_ct_RANLIB"; then
3649 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3650 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3652 { echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6; }
3656 if test "x$ac_ct_RANLIB" = x; then
3659 case $cross_compiling:$ac_tool_warned in
3661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3662 whose name does not start with the host triplet. If you think this
3663 configuration is useful to you, please write to autoconf@gnu.org." >&5
3664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3665 whose name does not start with the host triplet. If you think this
3666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3667 ac_tool_warned=yes ;;
3669 RANLIB=$ac_ct_RANLIB
3672 RANLIB="$ac_cv_prog_RANLIB"
3675 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3676 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3677 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3678 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 cat >conftest.make <<\_ACEOF
3684 @echo '@@@%%%=$(MAKE)=@@@%%%'
3686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3687 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3689 eval ac_cv_prog_make_${ac_make}_set=yes;;
3691 eval ac_cv_prog_make_${ac_make}_set=no;;
3695 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3696 { echo "$as_me:$LINENO: result: yes" >&5
3697 echo "${ECHO_T}yes" >&6; }
3700 { echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6; }
3702 SET_MAKE="MAKE=${MAKE-make}"
3705 # Find a good install program. We prefer a C program (faster),
3706 # so one script is as good as another. But avoid the broken or
3707 # incompatible versions:
3708 # SysV /etc/install, /usr/sbin/install
3709 # SunOS /usr/etc/install
3710 # IRIX /sbin/install
3712 # AmigaOS /C/install, which installs bootblocks on floppy discs
3713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3716 # OS/2's system install, which has a completely different semantic
3717 # ./install, which can be erroneously created by make from ./install.sh.
3718 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3719 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3720 if test -z "$INSTALL"; then
3721 if test "${ac_cv_path_install+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 test -z "$as_dir" && as_dir=.
3729 # Account for people who put trailing slashes in PATH elements.
3731 ./ | .// | /cC/* | \
3732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3733 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3736 # OSF1 and SCO ODT 3.0 have their own names for install.
3737 # Don't use installbsd from OSF since it installs stuff as root
3739 for ac_prog in ginstall scoinst install; do
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3742 if test $ac_prog = install &&
3743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3744 # AIX install. It has an incompatible calling convention.
3746 elif test $ac_prog = install &&
3747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3748 # program-specific install script used by HP pwplus--don't use.
3751 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3764 if test "${ac_cv_path_install+set}" = set; then
3765 INSTALL=$ac_cv_path_install
3767 # As a last resort, use the slow shell script. Don't cache a
3768 # value for INSTALL within a source directory, because that will
3769 # break other packages using the cache if that directory is
3770 # removed, or if the value is a relative name.
3771 INSTALL=$ac_install_sh
3774 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3775 echo "${ECHO_T}$INSTALL" >&6; }
3777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3778 # It thinks the first close brace ends the variable substitution.
3779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3785 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3786 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3788 if test "$LN_S" = "ln -s"; then
3789 { echo "$as_me:$LINENO: result: yes" >&5
3790 echo "${ECHO_T}yes" >&6; }
3792 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3793 echo "${ECHO_T}no, using $LN_S" >&6; }
3796 for ac_prog in gzip uncompress compress
3798 # Extract the first word of "$ac_prog", so it can be a program name with args.
3799 set dummy $ac_prog; ac_word=$2
3800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3802 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 if test -n "$UNCOMPRESS"; then
3806 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815 ac_cv_prog_UNCOMPRESS="$ac_prog"
3816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3826 if test -n "$UNCOMPRESS"; then
3827 { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3828 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3830 { echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6; }
3835 test -n "$UNCOMPRESS" && break
3841 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3847 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3874 if test -n "$PKG_CONFIG"; then
3875 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3876 echo "${ECHO_T}$PKG_CONFIG" >&6; }
3878 { echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6; }
3884 if test -z "$ac_cv_path_PKG_CONFIG"; then
3885 ac_pt_PKG_CONFIG=$PKG_CONFIG
3886 # Extract the first word of "pkg-config", so it can be a program name with args.
3887 set dummy pkg-config; ac_word=$2
3888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3890 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 case $ac_pt_PKG_CONFIG in
3895 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3917 if test -n "$ac_pt_PKG_CONFIG"; then
3918 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3919 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
3921 { echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6; }
3925 if test "x$ac_pt_PKG_CONFIG" = x; then
3928 case $cross_compiling:$ac_tool_warned in
3930 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3931 whose name does not start with the host triplet. If you think this
3932 configuration is useful to you, please write to autoconf@gnu.org." >&5
3933 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3934 whose name does not start with the host triplet. If you think this
3935 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3936 ac_tool_warned=yes ;;
3938 PKG_CONFIG=$ac_pt_PKG_CONFIG
3941 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3945 if test -n "$PKG_CONFIG"; then
3946 _pkg_min_version=0.9.0
3947 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3948 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
3949 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3950 { echo "$as_me:$LINENO: result: yes" >&5
3951 echo "${ECHO_T}yes" >&6; }
3953 { echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6; }
3966 if test "x$EXEEXT" = "x.exe";then
3975 { echo "$as_me:$LINENO: checking host system type" >&5
3976 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3977 if test "${ac_cv_host+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 if test "x$host_alias" = x; then
3981 ac_cv_host=$ac_cv_build
3983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3984 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3985 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3986 { (exit 1); exit 1; }; }
3990 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3991 echo "${ECHO_T}$ac_cv_host" >&6; }
3994 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3995 echo "$as_me: error: invalid value of canonical host" >&2;}
3996 { (exit 1); exit 1; }; };;
3999 ac_save_IFS=$IFS; IFS='-'
4005 # Remember, the first character of IFS is used to create $*,
4006 # except with old shells:
4009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4014 { echo "$as_me:$LINENO: checking for target system" >&5
4015 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
4019 *cygwin* ) CYGWIN=yes;;
4020 *mingw* ) MINGW=yes;;
4024 if test "x$MINGW" = "xyes"; then
4025 #fix for the debian distribution of mingw
4026 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4027 AR="/usr/i586-mingw32msvc/bin/ar"
4029 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4030 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4032 #fix for the gentoo distribution of mingw
4033 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4034 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4036 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4037 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4039 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4040 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4046 if test "x${CYGWIN}" = "xyes"; then
4048 cat >>confdefs.h <<\_ACEOF
4052 { echo "$as_me:$LINENO: result: cygwin" >&5
4053 echo "${ECHO_T}cygwin" >&6; }
4055 if test "x${MINGW}" = "xyes"; then
4057 cat >>confdefs.h <<\_ACEOF
4063 cat >>confdefs.h <<\_ACEOF
4067 LIBS="$LIBS -lws2_32 -lgdi32"
4068 { echo "$as_me:$LINENO: result: mingw" >&5
4069 echo "${ECHO_T}mingw" >&6; }
4074 cat >>confdefs.h <<\_ACEOF
4078 { echo "$as_me:$LINENO: result: " >&5
4079 echo "${ECHO_T}" >&6; }
4085 if test "x${MINGW}" != "xyes"; then
4088 cat >>confdefs.h <<\_ACEOF
4101 # The following tries to make use of includes and libraries in
4102 # /usr/local, too. Notice: A -I/usr/local/include might break
4103 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4104 # especially on systems which link /usr/local to /usr, so it has yet
4105 # to be seen how useful this is.
4106 if test -d /usr/local/lib; then
4107 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4109 if test -d /usr/local/include; then
4110 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4111 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4114 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4115 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4116 # and $prefix/include, which should be included in our search paths for libraries
4118 LDFLAGS="$LDFLAGS -L${libdir}"
4119 CPPFLAGS="$CPPFLAGS -I${includedir}"
4120 # TODO- test whether gcc still works after this
4124 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4127 # this must be done after (I believe) AC_PROG_MAKE_SET
4128 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4129 STRIP="@echo debug enabled, not stripping "
4136 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
4137 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
4138 if test "${ac_cv_lib_m_sin+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 ac_check_lib_save_LIBS=$LIBS
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4150 /* Override any GCC internal prototype to avoid an error.
4151 Use char because int might match the return type of a GCC
4152 builtin and then its argument prototype would still apply. */
4165 rm -f conftest.$ac_objext conftest$ac_exeext
4166 if { (ac_try="$ac_link"
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_link") 2>conftest.er1
4174 grep -v '^ *+' conftest.er1 >conftest.err
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } && {
4179 test -z "$ac_c_werror_flag" ||
4180 test ! -s conftest.err
4181 } && test -s conftest$ac_exeext &&
4182 $as_test_x conftest$ac_exeext; then
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4192 conftest$ac_exeext conftest.$ac_ext
4193 LIBS=$ac_check_lib_save_LIBS
4195 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4196 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4197 if test $ac_cv_lib_m_sin = yes; then
4198 cat >>confdefs.h <<_ACEOF
4205 echo "Error: Math library not found.";
4211 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4212 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4213 if test "${ac_cv_lib_z_deflate+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 ac_check_lib_save_LIBS=$LIBS
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4225 /* Override any GCC internal prototype to avoid an error.
4226 Use char because int might match the return type of a GCC
4227 builtin and then its argument prototype would still apply. */
4240 rm -f conftest.$ac_objext conftest$ac_exeext
4241 if { (ac_try="$ac_link"
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_link") 2>conftest.er1
4249 grep -v '^ *+' conftest.er1 >conftest.err
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } && {
4254 test -z "$ac_c_werror_flag" ||
4255 test ! -s conftest.err
4256 } && test -s conftest$ac_exeext &&
4257 $as_test_x conftest$ac_exeext; then
4258 ac_cv_lib_z_deflate=yes
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 ac_cv_lib_z_deflate=no
4266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4267 conftest$ac_exeext conftest.$ac_ext
4268 LIBS=$ac_check_lib_save_LIBS
4270 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4271 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4272 if test $ac_cv_lib_z_deflate = yes; then
4273 cat >>confdefs.h <<_ACEOF
4284 if test "x$ZLIBMISSING" = "xtrue";then
4287 echo "You need zlib to compile swftools"
4293 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4294 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4295 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 ac_check_lib_save_LIBS=$LIBS
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4307 /* Override any GCC internal prototype to avoid an error.
4308 Use char because int might match the return type of a GCC
4309 builtin and then its argument prototype would still apply. */
4313 char jpeg_write_raw_data ();
4317 return jpeg_write_raw_data ();
4322 rm -f conftest.$ac_objext conftest$ac_exeext
4323 if { (ac_try="$ac_link"
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_link") 2>conftest.er1
4331 grep -v '^ *+' conftest.er1 >conftest.err
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && {
4336 test -z "$ac_c_werror_flag" ||
4337 test ! -s conftest.err
4338 } && test -s conftest$ac_exeext &&
4339 $as_test_x conftest$ac_exeext; then
4340 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4349 conftest$ac_exeext conftest.$ac_ext
4350 LIBS=$ac_check_lib_save_LIBS
4352 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4353 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4354 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4355 cat >>confdefs.h <<_ACEOF
4356 #define HAVE_LIBJPEG 1
4366 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4367 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4368 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 ac_check_lib_save_LIBS=$LIBS
4372 LIBS="-lungif $LIBS"
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4380 /* Override any GCC internal prototype to avoid an error.
4381 Use char because int might match the return type of a GCC
4382 builtin and then its argument prototype would still apply. */
4395 rm -f conftest.$ac_objext conftest$ac_exeext
4396 if { (ac_try="$ac_link"
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_link") 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && {
4409 test -z "$ac_c_werror_flag" ||
4410 test ! -s conftest.err
4411 } && test -s conftest$ac_exeext &&
4412 $as_test_x conftest$ac_exeext; then
4413 ac_cv_lib_ungif_DGifOpen=yes
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4418 ac_cv_lib_ungif_DGifOpen=no
4421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4422 conftest$ac_exeext conftest.$ac_ext
4423 LIBS=$ac_check_lib_save_LIBS
4425 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4426 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4427 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4428 cat >>confdefs.h <<_ACEOF
4429 #define HAVE_LIBUNGIF 1
4432 LIBS="-lungif $LIBS"
4438 if test "$UNGIFMISSING";then
4441 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4442 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4443 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 ac_check_lib_save_LIBS=$LIBS
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4455 /* Override any GCC internal prototype to avoid an error.
4456 Use char because int might match the return type of a GCC
4457 builtin and then its argument prototype would still apply. */
4470 rm -f conftest.$ac_objext conftest$ac_exeext
4471 if { (ac_try="$ac_link"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_link") 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && {
4484 test -z "$ac_c_werror_flag" ||
4485 test ! -s conftest.err
4486 } && test -s conftest$ac_exeext &&
4487 $as_test_x conftest$ac_exeext; then
4488 ac_cv_lib_gif_DGifOpen=yes
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493 ac_cv_lib_gif_DGifOpen=no
4496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4497 conftest$ac_exeext conftest.$ac_ext
4498 LIBS=$ac_check_lib_save_LIBS
4500 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4501 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4502 if test $ac_cv_lib_gif_DGifOpen = yes; then
4503 cat >>confdefs.h <<_ACEOF
4504 #define HAVE_LIBGIF 1
4516 { echo "$as_me:$LINENO: checking for byte order" >&5
4517 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4518 if test "$cross_compiling" = yes; then
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4528 int main (int argc, char *argv[])
4535 rm -f conftest$ac_exeext
4536 if { (ac_try="$ac_link"
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_link") 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546 { (case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_try") 2>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4557 echo "$as_me: program exited with status $ac_status" >&5
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4570 if test "x${CROSSCOMPILE}" = "x1"; then
4571 { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4572 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4573 { echo "$as_me:$LINENO: checking target system type" >&5
4574 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4575 if test "${ac_cv_target+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 if test "x$target_alias" = x; then
4579 ac_cv_target=$ac_cv_host
4581 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4582 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4583 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4584 { (exit 1); exit 1; }; }
4588 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4589 echo "${ECHO_T}$ac_cv_target" >&6; }
4590 case $ac_cv_target in
4592 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4593 echo "$as_me: error: invalid value of canonical target" >&2;}
4594 { (exit 1); exit 1; }; };;
4596 target=$ac_cv_target
4597 ac_save_IFS=$IFS; IFS='-'
4603 # Remember, the first character of IFS is used to create $*,
4604 # except with old shells:
4607 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4610 # The aliases save the names the user supplied, while $host etc.
4611 # will get canonicalized.
4612 test -n "$target_alias" &&
4613 test "$program_prefix$program_suffix$program_transform_name" = \
4615 program_prefix=${target_alias}-
4616 { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4617 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4622 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4629 if test "x${LITTLEENDIAN}" = "x1"; then
4630 { echo "$as_me:$LINENO: result: little endian" >&5
4631 echo "${ECHO_T}little endian" >&6; }
4635 if test "x${BIGENDIAN}" = "x1"; then
4636 { echo "$as_me:$LINENO: result: big endian" >&5
4637 echo "${ECHO_T}big endian" >&6; }
4640 export WORDS_BIGENDIAN
4642 cat >>confdefs.h <<\_ACEOF
4643 #define WORDS_BIGENDIAN 1
4647 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4648 { echo "$as_me:$LINENO: result: unknown" >&5
4649 echo "${ECHO_T}unknown" >&6; }
4650 echo Byte order could not determined.
4656 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4657 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4658 if test "$cross_compiling" = yes; then
4661 cat >conftest.$ac_ext <<_ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4669 int main (int argc, char*argv[])
4671 return system("test `touch config.tmp2`");
4675 rm -f conftest$ac_exeext
4676 if { (ac_try="$ac_link"
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_link") 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4686 { (case "(($ac_try" in
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_try") 2>&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4697 echo "$as_me: program exited with status $ac_status" >&5
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4707 if test "x${OK}" = "xOK";then
4708 test -f config.tmp2 || OK=
4711 if test "x${CROSSCOMPILE}" = "x1";then
4714 if test "x${OK}" = "xOK";then
4716 { echo "$as_me:$LINENO: result: yes" >&5
4717 echo "${ECHO_T}yes" >&6; }
4719 export SYSTEM_BACKTICKS
4721 cat >>confdefs.h <<\_ACEOF
4722 #define SYSTEM_BACKTICKS 1
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4732 test "$program_prefix" != NONE &&
4733 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4734 # Use a double $ so make ignores it.
4735 test "$program_suffix" != NONE &&
4736 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4737 # Double any \ or $. echo might interpret backslashes.
4738 # By default was `s,x,x', remove it if useless.
4739 cat <<\_ACEOF >conftest.sed
4740 s/[\\$]/&&/g;s/;s,x,x,$//
4742 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4746 ac_config_headers="$ac_config_headers config.h"
4754 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4755 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4756 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4757 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 cat >conftest.$ac_ext <<_ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767 #include <sys/types.h>
4779 rm -f conftest.$ac_objext
4780 if { (ac_try="$ac_compile"
4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786 (eval "$ac_compile") 2>conftest.er1
4788 grep -v '^ *+' conftest.er1 >conftest.err
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && {
4793 test -z "$ac_c_werror_flag" ||
4794 test ! -s conftest.err
4795 } && test -s conftest.$ac_objext; then
4796 eval "$as_ac_Header=yes"
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4801 eval "$as_ac_Header=no"
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_res=`eval echo '${'$as_ac_Header'}'`
4807 { echo "$as_me:$LINENO: result: $ac_res" >&5
4808 echo "${ECHO_T}$ac_res" >&6; }
4809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4810 cat >>confdefs.h <<_ACEOF
4811 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4814 ac_header_dirent=$ac_hdr; break
4818 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4819 if test $ac_header_dirent = dirent.h; then
4820 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4821 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4822 if test "${ac_cv_search_opendir+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 ac_func_search_save_LIBS=$LIBS
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4833 /* Override any GCC internal prototype to avoid an error.
4834 Use char because int might match the return type of a GCC
4835 builtin and then its argument prototype would still apply. */
4848 for ac_lib in '' dir; do
4849 if test -z "$ac_lib"; then
4850 ac_res="none required"
4853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4855 rm -f conftest.$ac_objext conftest$ac_exeext
4856 if { (ac_try="$ac_link"
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_link") 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest$ac_exeext &&
4872 $as_test_x conftest$ac_exeext; then
4873 ac_cv_search_opendir=$ac_res
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4883 if test "${ac_cv_search_opendir+set}" = set; then
4887 if test "${ac_cv_search_opendir+set}" = set; then
4890 ac_cv_search_opendir=no
4893 LIBS=$ac_func_search_save_LIBS
4895 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4896 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4897 ac_res=$ac_cv_search_opendir
4898 if test "$ac_res" != no; then
4899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4904 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4905 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4906 if test "${ac_cv_search_opendir+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 ac_func_search_save_LIBS=$LIBS
4910 cat >conftest.$ac_ext <<_ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4917 /* Override any GCC internal prototype to avoid an error.
4918 Use char because int might match the return type of a GCC
4919 builtin and then its argument prototype would still apply. */
4932 for ac_lib in '' x; do
4933 if test -z "$ac_lib"; then
4934 ac_res="none required"
4937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4939 rm -f conftest.$ac_objext conftest$ac_exeext
4940 if { (ac_try="$ac_link"
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_link") 2>conftest.er1
4948 grep -v '^ *+' conftest.er1 >conftest.err
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } && {
4953 test -z "$ac_c_werror_flag" ||
4954 test ! -s conftest.err
4955 } && test -s conftest$ac_exeext &&
4956 $as_test_x conftest$ac_exeext; then
4957 ac_cv_search_opendir=$ac_res
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4967 if test "${ac_cv_search_opendir+set}" = set; then
4971 if test "${ac_cv_search_opendir+set}" = set; then
4974 ac_cv_search_opendir=no
4977 LIBS=$ac_func_search_save_LIBS
4979 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4980 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4981 ac_res=$ac_cv_search_opendir
4982 if test "$ac_res" != no; then
4983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4990 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4991 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4992 if test "${ac_cv_path_GREP+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 # Extract the first word of "grep ggrep" to use in msg output
4996 if test -z "$GREP"; then
4997 set dummy grep ggrep; ac_prog_name=$2
4998 if test "${ac_cv_path_GREP+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 ac_path_GREP_found=false
5002 # Loop through the user's path and test for each of PROGNAME-LIST
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5007 test -z "$as_dir" && as_dir=.
5008 for ac_prog in grep ggrep; do
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5011 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5012 # Check for GNU ac_path_GREP and select it if it is found.
5013 # Check for GNU $ac_path_GREP
5014 case `"$ac_path_GREP" --version 2>&1` in
5016 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5022 cat "conftest.in" "conftest.in" >"conftest.tmp"
5023 mv "conftest.tmp" "conftest.in"
5024 cp "conftest.in" "conftest.nl"
5025 echo 'GREP' >> "conftest.nl"
5026 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5028 ac_count=`expr $ac_count + 1`
5029 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5030 # Best one so far, save it but keep looking for a better one
5031 ac_cv_path_GREP="$ac_path_GREP"
5032 ac_path_GREP_max=$ac_count
5034 # 10*(2^10) chars as input seems more than enough
5035 test $ac_count -gt 10 && break
5037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041 $ac_path_GREP_found && break 3
5051 GREP="$ac_cv_path_GREP"
5052 if test -z "$GREP"; then
5053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5055 { (exit 1); exit 1; }; }
5059 ac_cv_path_GREP=$GREP
5064 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5065 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5066 GREP="$ac_cv_path_GREP"
5069 { echo "$as_me:$LINENO: checking for egrep" >&5
5070 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5071 if test "${ac_cv_path_EGREP+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5075 then ac_cv_path_EGREP="$GREP -E"
5077 # Extract the first word of "egrep" to use in msg output
5078 if test -z "$EGREP"; then
5079 set dummy egrep; ac_prog_name=$2
5080 if test "${ac_cv_path_EGREP+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 ac_path_EGREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5089 test -z "$as_dir" && as_dir=.
5090 for ac_prog in egrep; do
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5093 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5094 # Check for GNU ac_path_EGREP and select it if it is found.
5095 # Check for GNU $ac_path_EGREP
5096 case `"$ac_path_EGREP" --version 2>&1` in
5098 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5101 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 echo 'EGREP' >> "conftest.nl"
5108 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110 ac_count=`expr $ac_count + 1`
5111 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_EGREP="$ac_path_EGREP"
5114 ac_path_EGREP_max=$ac_count
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5123 $ac_path_EGREP_found && break 3
5133 EGREP="$ac_cv_path_EGREP"
5134 if test -z "$EGREP"; then
5135 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5137 { (exit 1); exit 1; }; }
5141 ac_cv_path_EGREP=$EGREP
5147 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5148 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5149 EGREP="$ac_cv_path_EGREP"
5152 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5153 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5154 if test "${ac_cv_header_stdc+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 cat >conftest.$ac_ext <<_ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5176 rm -f conftest.$ac_objext
5177 if { (ac_try="$ac_compile"
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_compile") 2>conftest.er1
5185 grep -v '^ *+' conftest.er1 >conftest.err
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } && {
5190 test -z "$ac_c_werror_flag" ||
5191 test ! -s conftest.err
5192 } && test -s conftest.$ac_objext; then
5193 ac_cv_header_stdc=yes
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 ac_cv_header_stdc=no
5201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 if test $ac_cv_header_stdc = yes; then
5204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5205 cat >conftest.$ac_ext <<_ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5215 $EGREP "memchr" >/dev/null 2>&1; then
5218 ac_cv_header_stdc=no
5224 if test $ac_cv_header_stdc = yes; then
5225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5226 cat >conftest.$ac_ext <<_ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5236 $EGREP "free" >/dev/null 2>&1; then
5239 ac_cv_header_stdc=no
5245 if test $ac_cv_header_stdc = yes; then
5246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5247 if test "$cross_compiling" = yes; then
5250 cat >conftest.$ac_ext <<_ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5258 #if ((' ' & 0x0FF) == 0x020)
5259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5262 # define ISLOWER(c) \
5263 (('a' <= (c) && (c) <= 'i') \
5264 || ('j' <= (c) && (c) <= 'r') \
5265 || ('s' <= (c) && (c) <= 'z'))
5266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5274 for (i = 0; i < 256; i++)
5275 if (XOR (islower (i), ISLOWER (i))
5276 || toupper (i) != TOUPPER (i))
5281 rm -f conftest$ac_exeext
5282 if { (ac_try="$ac_link"
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_link") 2>&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5292 { (case "(($ac_try" in
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297 (eval "$ac_try") 2>&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5303 echo "$as_me: program exited with status $ac_status" >&5
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5308 ac_cv_header_stdc=no
5310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5316 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5317 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5318 if test $ac_cv_header_stdc = yes; then
5320 cat >>confdefs.h <<\_ACEOF
5321 #define STDC_HEADERS 1
5327 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5337 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5338 inttypes.h stdint.h unistd.h
5340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 cat >conftest.$ac_ext <<_ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5352 $ac_includes_default
5354 #include <$ac_header>
5356 rm -f conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_compile") 2>conftest.er1
5365 grep -v '^ *+' conftest.er1 >conftest.err
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && {
5370 test -z "$ac_c_werror_flag" ||
5371 test ! -s conftest.err
5372 } && test -s conftest.$ac_objext; then
5373 eval "$as_ac_Header=yes"
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 eval "$as_ac_Header=no"
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 ac_res=`eval echo '${'$as_ac_Header'}'`
5384 { echo "$as_me:$LINENO: result: $ac_res" >&5
5385 echo "${ECHO_T}$ac_res" >&6; }
5386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5387 cat >>confdefs.h <<_ACEOF
5388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5414 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/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h
5416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 ac_res=`eval echo '${'$as_ac_Header'}'`
5424 { echo "$as_me:$LINENO: result: $ac_res" >&5
5425 echo "${ECHO_T}$ac_res" >&6; }
5427 # Is the header compilable?
5428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5430 cat >conftest.$ac_ext <<_ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 #include <$ac_header>
5439 rm -f conftest.$ac_objext
5440 if { (ac_try="$ac_compile"
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_compile") 2>conftest.er1
5448 grep -v '^ *+' conftest.er1 >conftest.err
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && {
5453 test -z "$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest.$ac_objext; then
5456 ac_header_compiler=yes
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 ac_header_compiler=no
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5466 echo "${ECHO_T}$ac_header_compiler" >&6; }
5468 # Is the header present?
5469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5471 cat >conftest.$ac_ext <<_ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5477 #include <$ac_header>
5479 if { (ac_try="$ac_cpp conftest.$ac_ext"
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5487 grep -v '^ *+' conftest.er1 >conftest.err
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } >/dev/null && {
5492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5493 test ! -s conftest.err
5495 ac_header_preproc=yes
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_header_preproc=no
5503 rm -f conftest.err conftest.$ac_ext
5504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5505 echo "${ECHO_T}$ac_header_preproc" >&6; }
5507 # So? What about this header?
5508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5514 ac_header_preproc=yes
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 eval "$as_ac_Header=\$ac_header_preproc"
5539 ac_res=`eval echo '${'$as_ac_Header'}'`
5540 { echo "$as_me:$LINENO: result: $ac_res" >&5
5541 echo "${ECHO_T}$ac_res" >&6; }
5544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5545 cat >>confdefs.h <<_ACEOF
5546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5555 cat >>confdefs.h <<_ACEOF
5556 #define PACKAGE "$PACKAGE"
5560 cat >>confdefs.h <<_ACEOF
5561 #define VERSION "$VERSION"
5570 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5571 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5572 if test "${ac_cv_c_const+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.$ac_ext <<_ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5585 /* FIXME: Include the comments suggested by Paul. */
5587 /* Ultrix mips cc rejects this. */
5588 typedef int charset[2];
5590 /* SunOS 4.1.1 cc rejects this. */
5591 char const *const *pcpcc;
5593 /* NEC SVR4.0.2 mips cc rejects this. */
5594 struct point {int x, y;};
5595 static struct point const zero = {0,0};
5596 /* AIX XL C 1.02.0.0 rejects this.
5597 It does not let you subtract one const X* pointer from another in
5598 an arm of an if-expression whose if-part is not a constant
5600 const char *g = "string";
5601 pcpcc = &g + (g ? g-g : 0);
5602 /* HPUX 7.0 cc rejects these. */
5604 ppc = (char**) pcpcc;
5605 pcpcc = (char const *const *) ppc;
5606 { /* SCO 3.2v4 cc rejects this. */
5608 char const *s = 0 ? (char *) 0 : (char const *) 0;
5613 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5615 const int *foo = &x[0];
5618 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5619 typedef const int *iptr;
5623 { /* AIX XL C 1.02.0.0 rejects this saying
5624 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5625 struct s { int j; const int *ap[3]; };
5626 struct s *b; b->j = 5;
5628 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5632 return !cs[0] && !zero.x;
5639 rm -f conftest.$ac_objext
5640 if { (ac_try="$ac_compile"
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_compile") 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } && {
5653 test -z "$ac_c_werror_flag" ||
5654 test ! -s conftest.err
5655 } && test -s conftest.$ac_objext; then
5658 echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5667 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5668 if test $ac_cv_c_const = no; then
5670 cat >>confdefs.h <<\_ACEOF
5676 { echo "$as_me:$LINENO: checking for inline" >&5
5677 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5678 if test "${ac_cv_c_inline+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 for ac_kw in inline __inline__ __inline; do
5683 cat >conftest.$ac_ext <<_ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5691 static $ac_kw foo_t static_foo () {return 0; }
5692 $ac_kw foo_t foo () {return 0; }
5696 rm -f conftest.$ac_objext
5697 if { (ac_try="$ac_compile"
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_compile") 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } && {
5710 test -z "$ac_c_werror_flag" ||
5711 test ! -s conftest.err
5712 } && test -s conftest.$ac_objext; then
5713 ac_cv_c_inline=$ac_kw
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 test "$ac_cv_c_inline" != no && break
5726 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5727 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5730 case $ac_cv_c_inline in
5733 case $ac_cv_c_inline in
5735 *) ac_val=$ac_cv_c_inline;;
5737 cat >>confdefs.h <<_ACEOF
5739 #define inline $ac_val
5745 { echo "$as_me:$LINENO: checking for off_t" >&5
5746 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5747 if test "${ac_cv_type_off_t+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 cat >conftest.$ac_ext <<_ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 $ac_includes_default
5757 typedef off_t ac__type_new_;
5761 if ((ac__type_new_ *) 0)
5763 if (sizeof (ac__type_new_))
5769 rm -f conftest.$ac_objext
5770 if { (ac_try="$ac_compile"
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compile") 2>conftest.er1
5778 grep -v '^ *+' conftest.er1 >conftest.err
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && {
5783 test -z "$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5785 } && test -s conftest.$ac_objext; then
5786 ac_cv_type_off_t=yes
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5797 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5798 if test $ac_cv_type_off_t = yes; then
5802 cat >>confdefs.h <<_ACEOF
5803 #define off_t long int
5808 { echo "$as_me:$LINENO: checking for size_t" >&5
5809 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5810 if test "${ac_cv_type_size_t+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 cat >conftest.$ac_ext <<_ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 $ac_includes_default
5820 typedef size_t ac__type_new_;
5824 if ((ac__type_new_ *) 0)
5826 if (sizeof (ac__type_new_))
5832 rm -f conftest.$ac_objext
5833 if { (ac_try="$ac_compile"
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_compile") 2>conftest.er1
5841 grep -v '^ *+' conftest.er1 >conftest.err
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } && {
5846 test -z "$ac_c_werror_flag" ||
5847 test ! -s conftest.err
5848 } && test -s conftest.$ac_objext; then
5849 ac_cv_type_size_t=yes
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 ac_cv_type_size_t=no
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5860 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5861 if test $ac_cv_type_size_t = yes; then
5865 cat >>confdefs.h <<_ACEOF
5866 #define size_t unsigned int
5871 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5872 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5873 if test "${ac_cv_struct_tm+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 cat >conftest.$ac_ext <<_ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5882 #include <sys/types.h>
5889 int *p = &tm.tm_sec;
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.$ac_objext; then
5912 ac_cv_struct_tm=time.h
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 ac_cv_struct_tm=sys/time.h
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5923 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5924 if test $ac_cv_struct_tm = sys/time.h; then
5926 cat >>confdefs.h <<\_ACEOF
5927 #define TM_IN_SYS_TIME 1
5932 { echo "$as_me:$LINENO: checking for boolean" >&5
5933 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5934 if test "${ac_cv_type_boolean+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 cat >conftest.$ac_ext <<_ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5943 $ac_includes_default
5944 typedef boolean ac__type_new_;
5948 if ((ac__type_new_ *) 0)
5950 if (sizeof (ac__type_new_))
5956 rm -f conftest.$ac_objext
5957 if { (ac_try="$ac_compile"
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_compile") 2>conftest.er1
5965 grep -v '^ *+' conftest.er1 >conftest.err
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && {
5970 test -z "$ac_c_werror_flag" ||
5971 test ! -s conftest.err
5972 } && test -s conftest.$ac_objext; then
5973 ac_cv_type_boolean=yes
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978 ac_cv_type_boolean=no
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5984 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5985 if test $ac_cv_type_boolean = yes; then
5989 cat >>confdefs.h <<_ACEOF
6009 for ac_func in popen wcschr wcsdup mkstemp stat lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6025 #define $ac_func innocuous_$ac_func
6027 /* System header to define __stub macros and hopefully few prototypes,
6028 which can conflict with char $ac_func (); below.
6029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030 <limits.h> exists even on freestanding compilers. */
6033 # include <limits.h>
6035 # include <assert.h>
6040 /* Override any GCC internal prototype to avoid an error.
6041 Use char because int might match the return type of a GCC
6042 builtin and then its argument prototype would still apply. */
6047 /* The GNU C library defines this for functions which it implements
6048 to always fail with ENOSYS. Some functions are actually named
6049 something starting with __ and the normal name is an alias. */
6050 #if defined __stub_$ac_func || defined __stub___$ac_func
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (ac_try="$ac_link"
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_link") 2>conftest.er1
6071 grep -v '^ *+' conftest.er1 >conftest.err
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest$ac_exeext &&
6079 $as_test_x conftest$ac_exeext; then
6080 eval "$as_ac_var=yes"
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 eval "$as_ac_var=no"
6088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6089 conftest$ac_exeext conftest.$ac_ext
6091 ac_res=`eval echo '${'$as_ac_var'}'`
6092 { echo "$as_me:$LINENO: result: $ac_res" >&5
6093 echo "${ECHO_T}$ac_res" >&6; }
6094 if test `eval echo '${'$as_ac_var'}'` = yes; then
6095 cat >>confdefs.h <<_ACEOF
6096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6103 { echo "$as_me:$LINENO: checking for signed" >&5
6104 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
6105 if test "${ac_cv_type_signed+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 cat >conftest.$ac_ext <<_ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 $ac_includes_default
6115 typedef signed ac__type_new_;
6119 if ((ac__type_new_ *) 0)
6121 if (sizeof (ac__type_new_))
6127 rm -f conftest.$ac_objext
6128 if { (ac_try="$ac_compile"
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_compile") 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } && {
6141 test -z "$ac_c_werror_flag" ||
6142 test ! -s conftest.err
6143 } && test -s conftest.$ac_objext; then
6144 ac_cv_type_signed=yes
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6149 ac_cv_type_signed=no
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
6155 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
6157 # The cast to long int works around a bug in the HP C Compiler
6158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6160 # This bug is HP SR number 8606223364.
6161 { echo "$as_me:$LINENO: checking size of signed" >&5
6162 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
6163 if test "${ac_cv_sizeof_signed+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 if test "$cross_compiling" = yes; then
6167 # Depending upon the size, compute the lo and hi bounds.
6168 cat >conftest.$ac_ext <<_ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 $ac_includes_default
6175 typedef signed ac__type_sizeof_;
6179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6186 rm -f conftest.$ac_objext
6187 if { (ac_try="$ac_compile"
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_compile") 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } && {
6200 test -z "$ac_c_werror_flag" ||
6201 test ! -s conftest.err
6202 } && test -s conftest.$ac_objext; then
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6212 typedef signed ac__type_sizeof_;
6216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6232 grep -v '^ *+' conftest.er1 >conftest.err
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 ac_hi=$ac_mid; break
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 ac_lo=`expr $ac_mid + 1`
6246 if test $ac_lo -le $ac_mid; then
6250 ac_mid=`expr 2 '*' $ac_mid + 1`
6253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 $ac_includes_default
6266 typedef signed ac__type_sizeof_;
6270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6277 rm -f conftest.$ac_objext
6278 if { (ac_try="$ac_compile"
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.$ac_objext; then
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 $ac_includes_default
6303 typedef signed ac__type_sizeof_;
6307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6314 rm -f conftest.$ac_objext
6315 if { (ac_try="$ac_compile"
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_compile") 2>conftest.er1
6323 grep -v '^ *+' conftest.er1 >conftest.err
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } && {
6328 test -z "$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest.$ac_objext; then
6331 ac_lo=$ac_mid; break
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 ac_hi=`expr '(' $ac_mid ')' - 1`
6337 if test $ac_mid -le $ac_hi; then
6341 ac_mid=`expr 2 '*' $ac_mid`
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 # Binary search between lo and hi bounds.
6358 while test "x$ac_lo" != "x$ac_hi"; do
6359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 $ac_includes_default
6367 typedef signed ac__type_sizeof_;
6371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6387 grep -v '^ *+' conftest.er1 >conftest.err
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest.$ac_objext; then
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6400 ac_lo=`expr '(' $ac_mid ')' + 1`
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 ?*) ac_cv_sizeof_signed=$ac_lo;;
6407 '') if test "$ac_cv_type_signed" = yes; then
6408 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6409 See \`config.log' for more details." >&5
6410 echo "$as_me: error: cannot compute sizeof (signed)
6411 See \`config.log' for more details." >&2;}
6412 { (exit 77); exit 77; }; }
6414 ac_cv_sizeof_signed=0
6418 cat >conftest.$ac_ext <<_ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 $ac_includes_default
6425 typedef signed ac__type_sizeof_;
6426 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6427 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6434 FILE *f = fopen ("conftest.val", "w");
6437 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6439 long int i = longval ();
6440 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6442 fprintf (f, "%ld\n", i);
6446 unsigned long int i = ulongval ();
6447 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6449 fprintf (f, "%lu\n", i);
6451 return ferror (f) || fclose (f) != 0;
6457 rm -f conftest$ac_exeext
6458 if { (ac_try="$ac_link"
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_link") 2>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6468 { (case "(($ac_try" in
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_try") 2>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_cv_sizeof_signed=`cat conftest.val`
6479 echo "$as_me: program exited with status $ac_status" >&5
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6484 if test "$ac_cv_type_signed" = yes; then
6485 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6486 See \`config.log' for more details." >&5
6487 echo "$as_me: error: cannot compute sizeof (signed)
6488 See \`config.log' for more details." >&2;}
6489 { (exit 77); exit 77; }; }
6491 ac_cv_sizeof_signed=0
6494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6498 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
6499 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
6503 cat >>confdefs.h <<_ACEOF
6504 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
6508 { echo "$as_me:$LINENO: checking for unsigned" >&5
6509 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
6510 if test "${ac_cv_type_unsigned+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 cat >conftest.$ac_ext <<_ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 $ac_includes_default
6520 typedef unsigned ac__type_new_;
6524 if ((ac__type_new_ *) 0)
6526 if (sizeof (ac__type_new_))
6532 rm -f conftest.$ac_objext
6533 if { (ac_try="$ac_compile"
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_compile") 2>conftest.er1
6541 grep -v '^ *+' conftest.er1 >conftest.err
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.$ac_objext; then
6549 ac_cv_type_unsigned=yes
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 ac_cv_type_unsigned=no
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
6560 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
6562 # The cast to long int works around a bug in the HP C Compiler
6563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6565 # This bug is HP SR number 8606223364.
6566 { echo "$as_me:$LINENO: checking size of unsigned" >&5
6567 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
6568 if test "${ac_cv_sizeof_unsigned+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 if test "$cross_compiling" = yes; then
6572 # Depending upon the size, compute the lo and hi bounds.
6573 cat >conftest.$ac_ext <<_ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 $ac_includes_default
6580 typedef unsigned ac__type_sizeof_;
6584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6591 rm -f conftest.$ac_objext
6592 if { (ac_try="$ac_compile"
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_compile") 2>conftest.er1
6600 grep -v '^ *+' conftest.er1 >conftest.err
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } && {
6605 test -z "$ac_c_werror_flag" ||
6606 test ! -s conftest.err
6607 } && test -s conftest.$ac_objext; then
6610 cat >conftest.$ac_ext <<_ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 typedef unsigned ac__type_sizeof_;
6621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6628 rm -f conftest.$ac_objext
6629 if { (ac_try="$ac_compile"
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6637 grep -v '^ *+' conftest.er1 >conftest.err
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest.$ac_objext; then
6645 ac_hi=$ac_mid; break
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6650 ac_lo=`expr $ac_mid + 1`
6651 if test $ac_lo -le $ac_mid; then
6655 ac_mid=`expr 2 '*' $ac_mid + 1`
6658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6664 cat >conftest.$ac_ext <<_ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 $ac_includes_default
6671 typedef unsigned ac__type_sizeof_;
6675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6682 rm -f conftest.$ac_objext
6683 if { (ac_try="$ac_compile"
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689 (eval "$ac_compile") 2>conftest.er1
6691 grep -v '^ *+' conftest.er1 >conftest.err
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } && {
6696 test -z "$ac_c_werror_flag" ||
6697 test ! -s conftest.err
6698 } && test -s conftest.$ac_objext; then
6701 cat >conftest.$ac_ext <<_ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 $ac_includes_default
6708 typedef unsigned ac__type_sizeof_;
6712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6719 rm -f conftest.$ac_objext
6720 if { (ac_try="$ac_compile"
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726 (eval "$ac_compile") 2>conftest.er1
6728 grep -v '^ *+' conftest.er1 >conftest.err
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && {
6733 test -z "$ac_c_werror_flag" ||
6734 test ! -s conftest.err
6735 } && test -s conftest.$ac_objext; then
6736 ac_lo=$ac_mid; break
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6741 ac_hi=`expr '(' $ac_mid ')' - 1`
6742 if test $ac_mid -le $ac_hi; then
6746 ac_mid=`expr 2 '*' $ac_mid`
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 # Binary search between lo and hi bounds.
6763 while test "x$ac_lo" != "x$ac_hi"; do
6764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6765 cat >conftest.$ac_ext <<_ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 $ac_includes_default
6772 typedef unsigned ac__type_sizeof_;
6776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6783 rm -f conftest.$ac_objext
6784 if { (ac_try="$ac_compile"
6786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787 *) ac_try_echo=$ac_try;;
6789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6790 (eval "$ac_compile") 2>conftest.er1
6792 grep -v '^ *+' conftest.er1 >conftest.err
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } && {
6797 test -z "$ac_c_werror_flag" ||
6798 test ! -s conftest.err
6799 } && test -s conftest.$ac_objext; then
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6805 ac_lo=`expr '(' $ac_mid ')' + 1`
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
6812 '') if test "$ac_cv_type_unsigned" = yes; then
6813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6814 See \`config.log' for more details." >&5
6815 echo "$as_me: error: cannot compute sizeof (unsigned)
6816 See \`config.log' for more details." >&2;}
6817 { (exit 77); exit 77; }; }
6819 ac_cv_sizeof_unsigned=0
6823 cat >conftest.$ac_ext <<_ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 $ac_includes_default
6830 typedef unsigned ac__type_sizeof_;
6831 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6832 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6839 FILE *f = fopen ("conftest.val", "w");
6842 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6844 long int i = longval ();
6845 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6847 fprintf (f, "%ld\n", i);
6851 unsigned long int i = ulongval ();
6852 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6854 fprintf (f, "%lu\n", i);
6856 return ferror (f) || fclose (f) != 0;
6862 rm -f conftest$ac_exeext
6863 if { (ac_try="$ac_link"
6865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6866 *) ac_try_echo=$ac_try;;
6868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6869 (eval "$ac_link") 2>&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6873 { (case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878 (eval "$ac_try") 2>&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_cv_sizeof_unsigned=`cat conftest.val`
6884 echo "$as_me: program exited with status $ac_status" >&5
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6889 if test "$ac_cv_type_unsigned" = yes; then
6890 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6891 See \`config.log' for more details." >&5
6892 echo "$as_me: error: cannot compute sizeof (unsigned)
6893 See \`config.log' for more details." >&2;}
6894 { (exit 77); exit 77; }; }
6896 ac_cv_sizeof_unsigned=0
6899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6903 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
6904 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
6908 cat >>confdefs.h <<_ACEOF
6909 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
6913 { echo "$as_me:$LINENO: checking for signed long" >&5
6914 echo $ECHO_N "checking for signed long... $ECHO_C" >&6; }
6915 if test "${ac_cv_type_signed_long+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 cat >conftest.$ac_ext <<_ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 $ac_includes_default
6925 typedef signed long ac__type_new_;
6929 if ((ac__type_new_ *) 0)
6931 if (sizeof (ac__type_new_))
6937 rm -f conftest.$ac_objext
6938 if { (ac_try="$ac_compile"
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_compile") 2>conftest.er1
6946 grep -v '^ *+' conftest.er1 >conftest.err
6948 cat conftest.err >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } && {
6951 test -z "$ac_c_werror_flag" ||
6952 test ! -s conftest.err
6953 } && test -s conftest.$ac_objext; then
6954 ac_cv_type_signed_long=yes
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6959 ac_cv_type_signed_long=no
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
6965 echo "${ECHO_T}$ac_cv_type_signed_long" >&6; }
6967 # The cast to long int works around a bug in the HP C Compiler
6968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6970 # This bug is HP SR number 8606223364.
6971 { echo "$as_me:$LINENO: checking size of signed long" >&5
6972 echo $ECHO_N "checking size of signed long... $ECHO_C" >&6; }
6973 if test "${ac_cv_sizeof_signed_long+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 if test "$cross_compiling" = yes; then
6977 # Depending upon the size, compute the lo and hi bounds.
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 $ac_includes_default
6985 typedef signed long ac__type_sizeof_;
6989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6996 rm -f conftest.$ac_objext
6997 if { (ac_try="$ac_compile"
6999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000 *) ac_try_echo=$ac_try;;
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003 (eval "$ac_compile") 2>conftest.er1
7005 grep -v '^ *+' conftest.er1 >conftest.err
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } && {
7010 test -z "$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7012 } && test -s conftest.$ac_objext; then
7015 cat >conftest.$ac_ext <<_ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 $ac_includes_default
7022 typedef signed long ac__type_sizeof_;
7026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7033 rm -f conftest.$ac_objext
7034 if { (ac_try="$ac_compile"
7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037 *) ac_try_echo=$ac_try;;
7039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040 (eval "$ac_compile") 2>conftest.er1
7042 grep -v '^ *+' conftest.er1 >conftest.err
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && {
7047 test -z "$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 } && test -s conftest.$ac_objext; then
7050 ac_hi=$ac_mid; break
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7055 ac_lo=`expr $ac_mid + 1`
7056 if test $ac_lo -le $ac_mid; then
7060 ac_mid=`expr 2 '*' $ac_mid + 1`
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 cat >conftest.$ac_ext <<_ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 $ac_includes_default
7076 typedef signed long ac__type_sizeof_;
7080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7087 rm -f conftest.$ac_objext
7088 if { (ac_try="$ac_compile"
7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094 (eval "$ac_compile") 2>conftest.er1
7096 grep -v '^ *+' conftest.er1 >conftest.err
7098 cat conftest.err >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } && {
7101 test -z "$ac_c_werror_flag" ||
7102 test ! -s conftest.err
7103 } && test -s conftest.$ac_objext; then
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 $ac_includes_default
7113 typedef signed long ac__type_sizeof_;
7117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7124 rm -f conftest.$ac_objext
7125 if { (ac_try="$ac_compile"
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131 (eval "$ac_compile") 2>conftest.er1
7133 grep -v '^ *+' conftest.er1 >conftest.err
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest.$ac_objext; then
7141 ac_lo=$ac_mid; break
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7146 ac_hi=`expr '(' $ac_mid ')' - 1`
7147 if test $ac_mid -le $ac_hi; then
7151 ac_mid=`expr 2 '*' $ac_mid`
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 # Binary search between lo and hi bounds.
7168 while test "x$ac_lo" != "x$ac_hi"; do
7169 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7170 cat >conftest.$ac_ext <<_ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 $ac_includes_default
7177 typedef signed long ac__type_sizeof_;
7181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7188 rm -f conftest.$ac_objext
7189 if { (ac_try="$ac_compile"
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 (eval "$ac_compile") 2>conftest.er1
7197 grep -v '^ *+' conftest.er1 >conftest.err
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest.$ac_objext; then
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_lo=`expr '(' $ac_mid ')' + 1`
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 ?*) ac_cv_sizeof_signed_long=$ac_lo;;
7217 '') if test "$ac_cv_type_signed_long" = yes; then
7218 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7219 See \`config.log' for more details." >&5
7220 echo "$as_me: error: cannot compute sizeof (signed long)
7221 See \`config.log' for more details." >&2;}
7222 { (exit 77); exit 77; }; }
7224 ac_cv_sizeof_signed_long=0
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 $ac_includes_default
7235 typedef signed long ac__type_sizeof_;
7236 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7237 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7244 FILE *f = fopen ("conftest.val", "w");
7247 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7249 long int i = longval ();
7250 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7252 fprintf (f, "%ld\n", i);
7256 unsigned long int i = ulongval ();
7257 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7259 fprintf (f, "%lu\n", i);
7261 return ferror (f) || fclose (f) != 0;
7267 rm -f conftest$ac_exeext
7268 if { (ac_try="$ac_link"
7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274 (eval "$ac_link") 2>&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7278 { (case "(($ac_try" in
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_try") 2>&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; }; then
7287 ac_cv_sizeof_signed_long=`cat conftest.val`
7289 echo "$as_me: program exited with status $ac_status" >&5
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7294 if test "$ac_cv_type_signed_long" = yes; then
7295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7296 See \`config.log' for more details." >&5
7297 echo "$as_me: error: cannot compute sizeof (signed long)
7298 See \`config.log' for more details." >&2;}
7299 { (exit 77); exit 77; }; }
7301 ac_cv_sizeof_signed_long=0
7304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7308 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
7309 echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6; }
7313 cat >>confdefs.h <<_ACEOF
7314 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
7318 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7319 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7320 if test "${ac_cv_type_unsigned_long+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 cat >conftest.$ac_ext <<_ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 $ac_includes_default
7330 typedef unsigned long ac__type_new_;
7334 if ((ac__type_new_ *) 0)
7336 if (sizeof (ac__type_new_))
7342 rm -f conftest.$ac_objext
7343 if { (ac_try="$ac_compile"
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349 (eval "$ac_compile") 2>conftest.er1
7351 grep -v '^ *+' conftest.er1 >conftest.err
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } && {
7356 test -z "$ac_c_werror_flag" ||
7357 test ! -s conftest.err
7358 } && test -s conftest.$ac_objext; then
7359 ac_cv_type_unsigned_long=yes
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7364 ac_cv_type_unsigned_long=no
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7370 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7372 # The cast to long int works around a bug in the HP C Compiler
7373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7375 # This bug is HP SR number 8606223364.
7376 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7377 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7378 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 if test "$cross_compiling" = yes; then
7382 # Depending upon the size, compute the lo and hi bounds.
7383 cat >conftest.$ac_ext <<_ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7389 $ac_includes_default
7390 typedef unsigned long ac__type_sizeof_;
7394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7401 rm -f conftest.$ac_objext
7402 if { (ac_try="$ac_compile"
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_compile") 2>conftest.er1
7410 grep -v '^ *+' conftest.er1 >conftest.err
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } && {
7415 test -z "$ac_c_werror_flag" ||
7416 test ! -s conftest.err
7417 } && test -s conftest.$ac_objext; then
7420 cat >conftest.$ac_ext <<_ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 $ac_includes_default
7427 typedef unsigned long ac__type_sizeof_;
7431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7447 grep -v '^ *+' conftest.er1 >conftest.err
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.$ac_objext; then
7455 ac_hi=$ac_mid; break
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 ac_lo=`expr $ac_mid + 1`
7461 if test $ac_lo -le $ac_mid; then
7465 ac_mid=`expr 2 '*' $ac_mid + 1`
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7474 cat >conftest.$ac_ext <<_ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 $ac_includes_default
7481 typedef unsigned long ac__type_sizeof_;
7485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7492 rm -f conftest.$ac_objext
7493 if { (ac_try="$ac_compile"
7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496 *) ac_try_echo=$ac_try;;
7498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499 (eval "$ac_compile") 2>conftest.er1
7501 grep -v '^ *+' conftest.er1 >conftest.err
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } && {
7506 test -z "$ac_c_werror_flag" ||
7507 test ! -s conftest.err
7508 } && test -s conftest.$ac_objext; then
7511 cat >conftest.$ac_ext <<_ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 $ac_includes_default
7518 typedef unsigned long ac__type_sizeof_;
7522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_compile") 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_c_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest.$ac_objext; then
7546 ac_lo=$ac_mid; break
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 ac_hi=`expr '(' $ac_mid ')' - 1`
7552 if test $ac_mid -le $ac_hi; then
7556 ac_mid=`expr 2 '*' $ac_mid`
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 # Binary search between lo and hi bounds.
7573 while test "x$ac_lo" != "x$ac_hi"; do
7574 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7575 cat >conftest.$ac_ext <<_ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 $ac_includes_default
7582 typedef unsigned long ac__type_sizeof_;
7586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7593 rm -f conftest.$ac_objext
7594 if { (ac_try="$ac_compile"
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_compile") 2>conftest.er1
7602 grep -v '^ *+' conftest.er1 >conftest.err
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } && {
7607 test -z "$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7609 } && test -s conftest.$ac_objext; then
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 ac_lo=`expr '(' $ac_mid ')' + 1`
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7622 '') if test "$ac_cv_type_unsigned_long" = yes; then
7623 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7624 See \`config.log' for more details." >&5
7625 echo "$as_me: error: cannot compute sizeof (unsigned long)
7626 See \`config.log' for more details." >&2;}
7627 { (exit 77); exit 77; }; }
7629 ac_cv_sizeof_unsigned_long=0
7633 cat >conftest.$ac_ext <<_ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 $ac_includes_default
7640 typedef unsigned long ac__type_sizeof_;
7641 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7642 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7649 FILE *f = fopen ("conftest.val", "w");
7652 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7654 long int i = longval ();
7655 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7657 fprintf (f, "%ld\n", i);
7661 unsigned long int i = ulongval ();
7662 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7664 fprintf (f, "%lu\n", i);
7666 return ferror (f) || fclose (f) != 0;
7672 rm -f conftest$ac_exeext
7673 if { (ac_try="$ac_link"
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679 (eval "$ac_link") 2>&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7683 { (case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688 (eval "$ac_try") 2>&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_cv_sizeof_unsigned_long=`cat conftest.val`
7694 echo "$as_me: program exited with status $ac_status" >&5
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7699 if test "$ac_cv_type_unsigned_long" = yes; then
7700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7701 See \`config.log' for more details." >&5
7702 echo "$as_me: error: cannot compute sizeof (unsigned long)
7703 See \`config.log' for more details." >&2;}
7704 { (exit 77); exit 77; }; }
7706 ac_cv_sizeof_unsigned_long=0
7709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7713 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7714 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7718 cat >>confdefs.h <<_ACEOF
7719 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7723 { echo "$as_me:$LINENO: checking for signed long long" >&5
7724 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7725 if test "${ac_cv_type_signed_long_long+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 cat >conftest.$ac_ext <<_ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7734 $ac_includes_default
7735 typedef signed long long ac__type_new_;
7739 if ((ac__type_new_ *) 0)
7741 if (sizeof (ac__type_new_))
7747 rm -f conftest.$ac_objext
7748 if { (ac_try="$ac_compile"
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754 (eval "$ac_compile") 2>conftest.er1
7756 grep -v '^ *+' conftest.er1 >conftest.err
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } && {
7761 test -z "$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7763 } && test -s conftest.$ac_objext; then
7764 ac_cv_type_signed_long_long=yes
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_cv_type_signed_long_long=no
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7775 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7777 # The cast to long int works around a bug in the HP C Compiler
7778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7780 # This bug is HP SR number 8606223364.
7781 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7782 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7783 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 if test "$cross_compiling" = yes; then
7787 # Depending upon the size, compute the lo and hi bounds.
7788 cat >conftest.$ac_ext <<_ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 $ac_includes_default
7795 typedef signed long long ac__type_sizeof_;
7799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && {
7820 test -z "$ac_c_werror_flag" ||
7821 test ! -s conftest.err
7822 } && test -s conftest.$ac_objext; then
7825 cat >conftest.$ac_ext <<_ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7831 $ac_includes_default
7832 typedef signed long long ac__type_sizeof_;
7836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7843 rm -f conftest.$ac_objext
7844 if { (ac_try="$ac_compile"
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_compile") 2>conftest.er1
7852 grep -v '^ *+' conftest.er1 >conftest.err
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } && {
7857 test -z "$ac_c_werror_flag" ||
7858 test ! -s conftest.err
7859 } && test -s conftest.$ac_objext; then
7860 ac_hi=$ac_mid; break
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 ac_lo=`expr $ac_mid + 1`
7866 if test $ac_lo -le $ac_mid; then
7870 ac_mid=`expr 2 '*' $ac_mid + 1`
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 $ac_includes_default
7886 typedef signed long long ac__type_sizeof_;
7890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7897 rm -f conftest.$ac_objext
7898 if { (ac_try="$ac_compile"
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_compile") 2>conftest.er1
7906 grep -v '^ *+' conftest.er1 >conftest.err
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest.$ac_objext; then
7916 cat >conftest.$ac_ext <<_ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 $ac_includes_default
7923 typedef signed long long ac__type_sizeof_;
7927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7934 rm -f conftest.$ac_objext
7935 if { (ac_try="$ac_compile"
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_compile") 2>conftest.er1
7943 grep -v '^ *+' conftest.er1 >conftest.err
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } && {
7948 test -z "$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7950 } && test -s conftest.$ac_objext; then
7951 ac_lo=$ac_mid; break
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7956 ac_hi=`expr '(' $ac_mid ')' - 1`
7957 if test $ac_mid -le $ac_hi; then
7961 ac_mid=`expr 2 '*' $ac_mid`
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 # Binary search between lo and hi bounds.
7978 while test "x$ac_lo" != "x$ac_hi"; do
7979 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7980 cat >conftest.$ac_ext <<_ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 $ac_includes_default
7987 typedef signed long long ac__type_sizeof_;
7991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7998 rm -f conftest.$ac_objext
7999 if { (ac_try="$ac_compile"
8001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005 (eval "$ac_compile") 2>conftest.er1
8007 grep -v '^ *+' conftest.er1 >conftest.err
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } && {
8012 test -z "$ac_c_werror_flag" ||
8013 test ! -s conftest.err
8014 } && test -s conftest.$ac_objext; then
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8020 ac_lo=`expr '(' $ac_mid ')' + 1`
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
8027 '') if test "$ac_cv_type_signed_long_long" = yes; then
8028 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
8029 See \`config.log' for more details." >&5
8030 echo "$as_me: error: cannot compute sizeof (signed long long)
8031 See \`config.log' for more details." >&2;}
8032 { (exit 77); exit 77; }; }
8034 ac_cv_sizeof_signed_long_long=0
8038 cat >conftest.$ac_ext <<_ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8044 $ac_includes_default
8045 typedef signed long long ac__type_sizeof_;
8046 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8047 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8054 FILE *f = fopen ("conftest.val", "w");
8057 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8059 long int i = longval ();
8060 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8062 fprintf (f, "%ld\n", i);
8066 unsigned long int i = ulongval ();
8067 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8069 fprintf (f, "%lu\n", i);
8071 return ferror (f) || fclose (f) != 0;
8077 rm -f conftest$ac_exeext
8078 if { (ac_try="$ac_link"
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_link") 2>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8088 { (case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093 (eval "$ac_try") 2>&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_cv_sizeof_signed_long_long=`cat conftest.val`
8099 echo "$as_me: program exited with status $ac_status" >&5
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8104 if test "$ac_cv_type_signed_long_long" = yes; then
8105 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
8106 See \`config.log' for more details." >&5
8107 echo "$as_me: error: cannot compute sizeof (signed long long)
8108 See \`config.log' for more details." >&2;}
8109 { (exit 77); exit 77; }; }
8111 ac_cv_sizeof_signed_long_long=0
8114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8118 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
8119 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
8123 cat >>confdefs.h <<_ACEOF
8124 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
8128 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
8129 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
8130 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 cat >conftest.$ac_ext <<_ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8139 $ac_includes_default
8140 typedef unsigned long long ac__type_new_;
8144 if ((ac__type_new_ *) 0)
8146 if (sizeof (ac__type_new_))
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_compile") 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } && {
8166 test -z "$ac_c_werror_flag" ||
8167 test ! -s conftest.err
8168 } && test -s conftest.$ac_objext; then
8169 ac_cv_type_unsigned_long_long=yes
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 ac_cv_type_unsigned_long_long=no
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8180 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8182 # The cast to long int works around a bug in the HP C Compiler
8183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8185 # This bug is HP SR number 8606223364.
8186 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
8187 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
8188 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 if test "$cross_compiling" = yes; then
8192 # Depending upon the size, compute the lo and hi bounds.
8193 cat >conftest.$ac_ext <<_ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 $ac_includes_default
8200 typedef unsigned long long ac__type_sizeof_;
8204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8211 rm -f conftest.$ac_objext
8212 if { (ac_try="$ac_compile"
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_compile") 2>conftest.er1
8220 grep -v '^ *+' conftest.er1 >conftest.err
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } && {
8225 test -z "$ac_c_werror_flag" ||
8226 test ! -s conftest.err
8227 } && test -s conftest.$ac_objext; then
8230 cat >conftest.$ac_ext <<_ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 $ac_includes_default
8237 typedef unsigned long long ac__type_sizeof_;
8241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8248 rm -f conftest.$ac_objext
8249 if { (ac_try="$ac_compile"
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8257 grep -v '^ *+' conftest.er1 >conftest.err
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_c_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest.$ac_objext; then
8265 ac_hi=$ac_mid; break
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8270 ac_lo=`expr $ac_mid + 1`
8271 if test $ac_lo -le $ac_mid; then
8275 ac_mid=`expr 2 '*' $ac_mid + 1`
8278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 cat >conftest.$ac_ext <<_ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h. */
8290 $ac_includes_default
8291 typedef unsigned long long ac__type_sizeof_;
8295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8302 rm -f conftest.$ac_objext
8303 if { (ac_try="$ac_compile"
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_compile") 2>conftest.er1
8311 grep -v '^ *+' conftest.er1 >conftest.err
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
8318 } && test -s conftest.$ac_objext; then
8321 cat >conftest.$ac_ext <<_ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 $ac_includes_default
8328 typedef unsigned long long ac__type_sizeof_;
8332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8339 rm -f conftest.$ac_objext
8340 if { (ac_try="$ac_compile"
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_compile") 2>conftest.er1
8348 grep -v '^ *+' conftest.er1 >conftest.err
8350 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } && {
8353 test -z "$ac_c_werror_flag" ||
8354 test ! -s conftest.err
8355 } && test -s conftest.$ac_objext; then
8356 ac_lo=$ac_mid; break
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8361 ac_hi=`expr '(' $ac_mid ')' - 1`
8362 if test $ac_mid -le $ac_hi; then
8366 ac_mid=`expr 2 '*' $ac_mid`
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 # Binary search between lo and hi bounds.
8383 while test "x$ac_lo" != "x$ac_hi"; do
8384 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8385 cat >conftest.$ac_ext <<_ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8391 $ac_includes_default
8392 typedef unsigned long long ac__type_sizeof_;
8396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8403 rm -f conftest.$ac_objext
8404 if { (ac_try="$ac_compile"
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_compile") 2>conftest.er1
8412 grep -v '^ *+' conftest.er1 >conftest.err
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest.$ac_objext; then
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 ac_lo=`expr '(' $ac_mid ')' + 1`
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
8432 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
8433 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8434 See \`config.log' for more details." >&5
8435 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8436 See \`config.log' for more details." >&2;}
8437 { (exit 77); exit 77; }; }
8439 ac_cv_sizeof_unsigned_long_long=0
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 typedef unsigned long long ac__type_sizeof_;
8451 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8452 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8459 FILE *f = fopen ("conftest.val", "w");
8462 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8464 long int i = longval ();
8465 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8467 fprintf (f, "%ld\n", i);
8471 unsigned long int i = ulongval ();
8472 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8474 fprintf (f, "%lu\n", i);
8476 return ferror (f) || fclose (f) != 0;
8482 rm -f conftest$ac_exeext
8483 if { (ac_try="$ac_link"
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489 (eval "$ac_link") 2>&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
8504 echo "$as_me: program exited with status $ac_status" >&5
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8509 if test "$ac_cv_type_unsigned_long_long" = yes; then
8510 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8511 See \`config.log' for more details." >&5
8512 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8513 See \`config.log' for more details." >&2;}
8514 { (exit 77); exit 77; }; }
8516 ac_cv_sizeof_unsigned_long_long=0
8519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8523 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
8524 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
8528 cat >>confdefs.h <<_ACEOF
8529 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8536 # Extract the first word of "freetype-config", so it can be a program name with args.
8537 set dummy freetype-config; ac_word=$2
8538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8540 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 case $FREETYPE_CONFIG in
8545 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8550 for as_dir in $as_dummy
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8568 if test -n "$FREETYPE_CONFIG"; then
8569 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8570 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8572 { echo "$as_me:$LINENO: result: no" >&5
8573 echo "${ECHO_T}no" >&6; }
8578 OLDCPPFLAGS="${CPPFLAGS}"
8580 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8581 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8582 else if test -d /usr/include/freetype2; then
8583 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8584 else if test -d /usr/local/include/freetype2; then
8585 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8590 if test "x${FREETYPE_CONFIG}" '=' "x";then
8591 # if we didn't find the freetype-config program, we won't
8592 # know where the libs are expected to be. So just blindly
8593 # try to link against them.
8594 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8595 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8596 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 ac_check_lib_save_LIBS=$LIBS
8600 LIBS="-lfreetype $LIBS"
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8608 /* Override any GCC internal prototype to avoid an error.
8609 Use char because int might match the return type of a GCC
8610 builtin and then its argument prototype would still apply. */
8614 char FT_Init_FreeType ();
8618 return FT_Init_FreeType ();
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (ac_try="$ac_link"
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_link") 2>conftest.er1
8632 grep -v '^ *+' conftest.er1 >conftest.err
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } && {
8637 test -z "$ac_c_werror_flag" ||
8638 test ! -s conftest.err
8639 } && test -s conftest$ac_exeext &&
8640 $as_test_x conftest$ac_exeext; then
8641 ac_cv_lib_freetype_FT_Init_FreeType=yes
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_lib_freetype_FT_Init_FreeType=no
8649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8650 conftest$ac_exeext conftest.$ac_ext
8651 LIBS=$ac_check_lib_save_LIBS
8653 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8654 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8655 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8662 for ac_header in ft2build.h
8664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 ac_res=`eval echo '${'$as_ac_Header'}'`
8672 { echo "$as_me:$LINENO: result: $ac_res" >&5
8673 echo "${ECHO_T}$ac_res" >&6; }
8675 # Is the header compilable?
8676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8678 cat >conftest.$ac_ext <<_ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 $ac_includes_default
8685 #include <$ac_header>
8687 rm -f conftest.$ac_objext
8688 if { (ac_try="$ac_compile"
8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691 *) ac_try_echo=$ac_try;;
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694 (eval "$ac_compile") 2>conftest.er1
8696 grep -v '^ *+' conftest.er1 >conftest.err
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } && {
8701 test -z "$ac_c_werror_flag" ||
8702 test ! -s conftest.err
8703 } && test -s conftest.$ac_objext; then
8704 ac_header_compiler=yes
8706 echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8709 ac_header_compiler=no
8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8714 echo "${ECHO_T}$ac_header_compiler" >&6; }
8716 # Is the header present?
8717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8719 cat >conftest.$ac_ext <<_ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8725 #include <$ac_header>
8727 if { (ac_try="$ac_cpp conftest.$ac_ext"
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8735 grep -v '^ *+' conftest.er1 >conftest.err
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } >/dev/null && {
8740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8741 test ! -s conftest.err
8743 ac_header_preproc=yes
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8748 ac_header_preproc=no
8751 rm -f conftest.err conftest.$ac_ext
8752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8753 echo "${ECHO_T}$ac_header_preproc" >&6; }
8755 # So? What about this header?
8756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8762 ac_header_preproc=yes
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 eval "$as_ac_Header=\$ac_header_preproc"
8787 ac_res=`eval echo '${'$as_ac_Header'}'`
8788 { echo "$as_me:$LINENO: result: $ac_res" >&5
8789 echo "${ECHO_T}$ac_res" >&6; }
8792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8793 cat >>confdefs.h <<_ACEOF
8794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8801 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8803 for ac_header in freetype/freetype.h
8805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 ac_res=`eval echo '${'$as_ac_Header'}'`
8813 { echo "$as_me:$LINENO: result: $ac_res" >&5
8814 echo "${ECHO_T}$ac_res" >&6; }
8816 # Is the header compilable?
8817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8819 cat >conftest.$ac_ext <<_ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8825 $ac_includes_default
8826 #include <$ac_header>
8828 rm -f conftest.$ac_objext
8829 if { (ac_try="$ac_compile"
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_compile") 2>conftest.er1
8837 grep -v '^ *+' conftest.er1 >conftest.err
8839 cat conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } && {
8842 test -z "$ac_c_werror_flag" ||
8843 test ! -s conftest.err
8844 } && test -s conftest.$ac_objext; then
8845 ac_header_compiler=yes
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8850 ac_header_compiler=no
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8855 echo "${ECHO_T}$ac_header_compiler" >&6; }
8857 # Is the header present?
8858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8860 cat >conftest.$ac_ext <<_ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8866 #include <$ac_header>
8868 if { (ac_try="$ac_cpp conftest.$ac_ext"
8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8876 grep -v '^ *+' conftest.er1 >conftest.err
8878 cat conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } >/dev/null && {
8881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8882 test ! -s conftest.err
8884 ac_header_preproc=yes
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8889 ac_header_preproc=no
8892 rm -f conftest.err conftest.$ac_ext
8893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8894 echo "${ECHO_T}$ac_header_preproc" >&6; }
8896 # So? What about this header?
8897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8903 ac_header_preproc=yes
8906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 eval "$as_ac_Header=\$ac_header_preproc"
8928 ac_res=`eval echo '${'$as_ac_Header'}'`
8929 { echo "$as_me:$LINENO: result: $ac_res" >&5
8930 echo "${ECHO_T}$ac_res" >&6; }
8933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8934 cat >>confdefs.h <<_ACEOF
8935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8937 HAVE_FREETYPE_FREETYPE_H=1
8944 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8945 "x${FREETYPE_CONFIG}" '!=' "x";then
8946 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8949 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8954 if test "x${HAVE_FREETYPE}" = "x1"; then
8955 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8956 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8958 LIBS="$LIBS -lfreetype"
8961 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8962 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8965 { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8966 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8968 cat > conftest.c << EOF
8969 $HAVE_FT2BUILD_H_DEFINE
8971 #ifdef HAVE_FT2BUILD_H
8972 #include <ft2build.h>
8973 #include FT_FREETYPE_H
8976 #include FT_SFNT_NAMES_H
8977 #include FT_TRUETYPE_IDS_H
8978 #include FT_OUTLINE_H
8980 #include <freetype/freetype.h>
8981 #include <freetype/ftglyph.h>
8982 #include <freetype/ftsizes.h>
8983 #include <freetype/ftsnames.h>
8984 #include <freetype/ttnameid.h>
8985 #include <freetype/ftoutln.h>
8990 FT_Library ftlibrary;
9002 FT_Init_FreeType(&ftlibrary);
9003 FT_New_Face(ftlibrary, "filename", 0, &face);
9004 i = face->num_glyphs - 1;
9005 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
9006 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
9007 FT_Get_Postscript_Name(face);
9008 FT_Get_Char_Index(face, 33);
9009 FT_Get_First_Char(face, &i);
9010 FT_Get_Next_Char(face, 33, &i);
9011 if(FT_HAS_GLYPH_NAMES(face)) {
9012 FT_Get_Glyph_Name(face, 33, name, 127);
9014 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
9015 FT_Get_Glyph(face->glyph, &glyph);
9016 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
9017 FT_Done_Glyph(glyph);
9019 FT_Done_FreeType(ftlibrary);
9024 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9025 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9026 { echo "$as_me:$LINENO: result: yes" >&5
9027 echo "${ECHO_T}yes" >&6; }
9029 cat >>confdefs.h <<\_ACEOF
9030 #define HAVE_FREETYPE 1
9034 cat >>confdefs.h <<\_ACEOF
9035 #define HAVE_FREETYPE_FREETYPE_H 1
9039 cat >>confdefs.h <<\_ACEOF
9040 #define USE_FREETYPE 1
9044 echo "configure: failed program was:" >&5
9047 { echo "$as_me:$LINENO: result: no" >&5
9048 echo "${ECHO_T}no" >&6; }
9053 # if the above didn't work out, reset all changes to the compiler variables.
9054 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
9055 CPPFLAGS=$OLDCPPFLAGS
9061 OLDCPPFLAGS="${CPPFLAGS}"
9064 if test -d /usr/include/fontconfig; then
9065 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
9068 { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
9069 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; }
9070 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 ac_check_lib_save_LIBS=$LIBS
9074 LIBS="-lfontconfig $LIBS"
9075 cat >conftest.$ac_ext <<_ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9082 /* Override any GCC internal prototype to avoid an error.
9083 Use char because int might match the return type of a GCC
9084 builtin and then its argument prototype would still apply. */
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (ac_try="$ac_link"
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_link") 2>conftest.er1
9106 grep -v '^ *+' conftest.er1 >conftest.err
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && {
9111 test -z "$ac_c_werror_flag" ||
9112 test ! -s conftest.err
9113 } && test -s conftest$ac_exeext &&
9114 $as_test_x conftest$ac_exeext; then
9115 ac_cv_lib_fontconfig_FcInit=yes
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9120 ac_cv_lib_fontconfig_FcInit=no
9123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9124 conftest$ac_exeext conftest.$ac_ext
9125 LIBS=$ac_check_lib_save_LIBS
9127 { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
9128 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; }
9129 if test $ac_cv_lib_fontconfig_FcInit = yes; then
9130 HAVE_LIB_FONTCONFIG=1
9134 for ac_header in fontconfig.h
9136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 ac_res=`eval echo '${'$as_ac_Header'}'`
9144 { echo "$as_me:$LINENO: result: $ac_res" >&5
9145 echo "${ECHO_T}$ac_res" >&6; }
9147 # Is the header compilable?
9148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9150 cat >conftest.$ac_ext <<_ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9156 $ac_includes_default
9157 #include <$ac_header>
9159 rm -f conftest.$ac_objext
9160 if { (ac_try="$ac_compile"
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_compile") 2>conftest.er1
9168 grep -v '^ *+' conftest.er1 >conftest.err
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } && {
9173 test -z "$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 } && test -s conftest.$ac_objext; then
9176 ac_header_compiler=yes
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_header_compiler=no
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9186 echo "${ECHO_T}$ac_header_compiler" >&6; }
9188 # Is the header present?
9189 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9191 cat >conftest.$ac_ext <<_ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 #include <$ac_header>
9199 if { (ac_try="$ac_cpp conftest.$ac_ext"
9201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202 *) ac_try_echo=$ac_try;;
9204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9207 grep -v '^ *+' conftest.er1 >conftest.err
9209 cat conftest.err >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } >/dev/null && {
9212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9213 test ! -s conftest.err
9215 ac_header_preproc=yes
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9220 ac_header_preproc=no
9223 rm -f conftest.err conftest.$ac_ext
9224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9225 echo "${ECHO_T}$ac_header_preproc" >&6; }
9227 # So? What about this header?
9228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9234 ac_header_preproc=yes
9237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9244 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 eval "$as_ac_Header=\$ac_header_preproc"
9259 ac_res=`eval echo '${'$as_ac_Header'}'`
9260 { echo "$as_me:$LINENO: result: $ac_res" >&5
9261 echo "${ECHO_T}$ac_res" >&6; }
9264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9265 cat >>confdefs.h <<_ACEOF
9266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9274 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
9275 if test "x${HAVE_FONTCONFIG_H}" != "x";then
9280 if test "x${HAVE_FONTCONFIG}" = "x1"; then
9281 LIBS="$LIBS -lfontconfig"
9282 { echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
9283 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6; }
9285 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
9286 #move freetype library to the end of libraries, otherwise fontconfig
9288 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
9291 cat > conftest.c << EOF
9293 #include <fontconfig.h>
9297 FcPattern *pattern, *match;
9300 char*s1="abc",*s2="ABC";
9303 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
9304 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
9305 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
9307 FcConfig*c = FcConfigCreate();
9308 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
9309 FcConfigBuildFonts(c);
9310 FcConfigSetCurrent(c);
9312 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
9313 FcFontSetDestroy(set);
9315 FcConfigSubstitute(0, pattern, FcMatchPattern);
9316 FcDefaultSubstitute(pattern);
9317 match = FcFontMatch(0, pattern, &result);
9318 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
9319 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
9320 FcPatternPrint(pattern);
9321 FcPatternDestroy(pattern);
9322 FcPatternDestroy(match);
9328 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9329 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9330 { echo "$as_me:$LINENO: result: yes" >&5
9331 echo "${ECHO_T}yes" >&6; }
9333 cat >>confdefs.h <<\_ACEOF
9334 #define HAVE_FONTCONFIG 1
9338 echo "configure: failed program was:" >&5
9341 { echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6; }
9347 # if the above didn't work out, reset all changes to the compiler variables.
9348 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
9349 CPPFLAGS=$OLDCPPFLAGS
9355 OLDCPPFLAGS="${CPPFLAGS}"
9359 { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
9360 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
9361 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 ac_check_lib_save_LIBS=$LIBS
9366 cat >conftest.$ac_ext <<_ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9373 /* Override any GCC internal prototype to avoid an error.
9374 Use char because int might match the return type of a GCC
9375 builtin and then its argument prototype would still apply. */
9388 rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (ac_try="$ac_link"
9391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_link") 2>conftest.er1
9397 grep -v '^ *+' conftest.er1 >conftest.err
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && {
9402 test -z "$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9404 } && test -s conftest$ac_exeext &&
9405 $as_test_x conftest$ac_exeext; then
9406 ac_cv_lib_GL_glBegin=yes
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 ac_cv_lib_GL_glBegin=no
9414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9415 conftest$ac_exeext conftest.$ac_ext
9416 LIBS=$ac_check_lib_save_LIBS
9418 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
9419 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
9420 if test $ac_cv_lib_GL_glBegin = yes; then
9421 cat >>confdefs.h <<_ACEOF
9422 #define HAVE_LIBGL 1
9430 { echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
9431 echo $ECHO_N "checking for gluBeginSurface in -lGLU... $ECHO_C" >&6; }
9432 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 ac_check_lib_save_LIBS=$LIBS
9437 cat >conftest.$ac_ext <<_ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9444 /* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9450 char gluBeginSurface ();
9454 return gluBeginSurface ();
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (ac_try="$ac_link"
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466 (eval "$ac_link") 2>conftest.er1
9468 grep -v '^ *+' conftest.er1 >conftest.err
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } && {
9473 test -z "$ac_c_werror_flag" ||
9474 test ! -s conftest.err
9475 } && test -s conftest$ac_exeext &&
9476 $as_test_x conftest$ac_exeext; then
9477 ac_cv_lib_GLU_gluBeginSurface=yes
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9482 ac_cv_lib_GLU_gluBeginSurface=no
9485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9486 conftest$ac_exeext conftest.$ac_ext
9487 LIBS=$ac_check_lib_save_LIBS
9489 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
9490 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginSurface" >&6; }
9491 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
9492 cat >>confdefs.h <<_ACEOF
9493 #define HAVE_LIBGLU 1
9501 { echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
9502 echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6; }
9503 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 ac_check_lib_save_LIBS=$LIBS
9508 cat >conftest.$ac_ext <<_ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_link") 2>conftest.er1
9539 grep -v '^ *+' conftest.er1 >conftest.err
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest$ac_exeext &&
9547 $as_test_x conftest$ac_exeext; then
9548 ac_cv_lib_glut_glutInit=yes
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_cv_lib_glut_glutInit=no
9556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9557 conftest$ac_exeext conftest.$ac_ext
9558 LIBS=$ac_check_lib_save_LIBS
9560 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9561 echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6; }
9562 if test $ac_cv_lib_glut_glutInit = yes; then
9563 cat >>confdefs.h <<_ACEOF
9564 #define HAVE_LIBGLUT 1
9573 for ac_header in GL/gl.h GL/glut.h
9575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 ac_res=`eval echo '${'$as_ac_Header'}'`
9583 { echo "$as_me:$LINENO: result: $ac_res" >&5
9584 echo "${ECHO_T}$ac_res" >&6; }
9586 # Is the header compilable?
9587 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9589 cat >conftest.$ac_ext <<_ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 $ac_includes_default
9596 #include <$ac_header>
9598 rm -f conftest.$ac_objext
9599 if { (ac_try="$ac_compile"
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_compile") 2>conftest.er1
9607 grep -v '^ *+' conftest.er1 >conftest.err
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest.$ac_objext; then
9615 ac_header_compiler=yes
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9620 ac_header_compiler=no
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9625 echo "${ECHO_T}$ac_header_compiler" >&6; }
9627 # Is the header present?
9628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9630 cat >conftest.$ac_ext <<_ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 #include <$ac_header>
9638 if { (ac_try="$ac_cpp conftest.$ac_ext"
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } >/dev/null && {
9651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9654 ac_header_preproc=yes
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9659 ac_header_preproc=no
9662 rm -f conftest.err conftest.$ac_ext
9663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9664 echo "${ECHO_T}$ac_header_preproc" >&6; }
9666 # So? What about this header?
9667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9673 ac_header_preproc=yes
9676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 eval "$as_ac_Header=\$ac_header_preproc"
9698 ac_res=`eval echo '${'$as_ac_Header'}'`
9699 { echo "$as_me:$LINENO: result: $ac_res" >&5
9700 echo "${ECHO_T}$ac_res" >&6; }
9703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9704 cat >>confdefs.h <<_ACEOF
9705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9713 cat > conftest.c << EOF
9716 #include <GL/glut.h>
9718 int main(int argc, char*argv)
9720 glutInit(&argc, argv);
9721 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9722 glutInitWindowSize(320,200);
9723 glutInitWindowPosition(0,0);
9724 glutCreateWindow("main");
9725 glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9726 glShadeModel(GL_SMOOTH);
9727 glEnable (GL_LINE_SMOOTH);
9728 glEnable (GL_POLYGON_SMOOTH);
9729 glEnable (GL_BLEND);
9730 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9731 glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9732 glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9736 { echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9737 echo $ECHO_N "checking whether we can compile the opengl test program... $ECHO_C" >&6; }
9739 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9740 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9741 { echo "$as_me:$LINENO: result: yes" >&5
9742 echo "${ECHO_T}yes" >&6; }
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_OPENGL 1
9750 echo "configure: failed program was:" >&5
9753 { echo "$as_me:$LINENO: result: no" >&5
9754 echo "${ECHO_T}no" >&6; }
9758 # if the above didn't work out, reset all changes to the compiler variables.
9759 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9760 CPPFLAGS=$OLDCPPFLAGS
9764 if test "$HAVE_OPENGL";then
9765 DEVICE_OPENGL='devices/opengl.$(O)'
9771 if test "x${DISABLE_LAME}" = "xtrue"; then
9772 echo "*" Disabling lame support...
9774 # old lame code at lib/lame
9775 if test -f lib/lame/Makefile.in; then
9776 lame_in_source='$(lame_objects)'
9777 lame_makefile="lib/lame/Makefile"
9778 CPPFLAGS="$CPPFLAGS -Ilame"
9780 cat >>confdefs.h <<\_ACEOF
9785 if test -d /usr/include/lame; then
9786 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9788 if test -d /usr/local/include/lame; then
9789 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9793 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9794 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
9795 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 ac_check_lib_save_LIBS=$LIBS
9799 LIBS="-lmp3lame $LIBS"
9800 cat >conftest.$ac_ext <<_ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9807 /* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
9817 return lame_init ();
9822 rm -f conftest.$ac_objext conftest$ac_exeext
9823 if { (ac_try="$ac_link"
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_link") 2>conftest.er1
9831 grep -v '^ *+' conftest.er1 >conftest.err
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } && {
9836 test -z "$ac_c_werror_flag" ||
9837 test ! -s conftest.err
9838 } && test -s conftest$ac_exeext &&
9839 $as_test_x conftest$ac_exeext; then
9840 ac_cv_lib_mp3lame_lame_init=yes
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9845 ac_cv_lib_mp3lame_lame_init=no
9848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9849 conftest$ac_exeext conftest.$ac_ext
9850 LIBS=$ac_check_lib_save_LIBS
9852 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9853 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9854 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9855 cat >>confdefs.h <<_ACEOF
9856 #define HAVE_LIBMP3LAME 1
9859 LIBS="-lmp3lame $LIBS"
9866 for ac_header in lame.h
9868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 ac_res=`eval echo '${'$as_ac_Header'}'`
9876 { echo "$as_me:$LINENO: result: $ac_res" >&5
9877 echo "${ECHO_T}$ac_res" >&6; }
9879 # Is the header compilable?
9880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9882 cat >conftest.$ac_ext <<_ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 $ac_includes_default
9889 #include <$ac_header>
9891 rm -f conftest.$ac_objext
9892 if { (ac_try="$ac_compile"
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_compile") 2>conftest.er1
9900 grep -v '^ *+' conftest.er1 >conftest.err
9902 cat conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } && {
9905 test -z "$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9907 } && test -s conftest.$ac_objext; then
9908 ac_header_compiler=yes
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9913 ac_header_compiler=no
9916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9918 echo "${ECHO_T}$ac_header_compiler" >&6; }
9920 # Is the header present?
9921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9923 cat >conftest.$ac_ext <<_ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 #include <$ac_header>
9931 if { (ac_try="$ac_cpp conftest.$ac_ext"
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9939 grep -v '^ *+' conftest.er1 >conftest.err
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } >/dev/null && {
9944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9945 test ! -s conftest.err
9947 ac_header_preproc=yes
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9952 ac_header_preproc=no
9955 rm -f conftest.err conftest.$ac_ext
9956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9957 echo "${ECHO_T}$ac_header_preproc" >&6; }
9959 # So? What about this header?
9960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9966 ac_header_preproc=yes
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 eval "$as_ac_Header=\$ac_header_preproc"
9991 ac_res=`eval echo '${'$as_ac_Header'}'`
9992 { echo "$as_me:$LINENO: result: $ac_res" >&5
9993 echo "${ECHO_T}$ac_res" >&6; }
9996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9997 cat >>confdefs.h <<_ACEOF
9998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10005 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
10006 cat >>confdefs.h <<\_ACEOF
10007 #define HAVE_LAME 1
10015 art_in_source='$(art_objects)'
10017 cat >>confdefs.h <<\_ACEOF
10018 #define INTERNAL_LIBART 1
10022 if test "x$EXTERNAL_LIBART" = "xtrue"; then
10026 { echo "$as_me:$LINENO: checking for LIBART" >&5
10027 echo $ECHO_N "checking for LIBART... $ECHO_C" >&6; }
10029 if test -n "$PKG_CONFIG"; then
10030 if test -n "$LIBART_CFLAGS"; then
10031 pkg_cv_LIBART_CFLAGS="$LIBART_CFLAGS"
10033 if test -n "$PKG_CONFIG" && \
10034 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libart-2.0\"") >&5
10035 ($PKG_CONFIG --exists --print-errors "libart-2.0") 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; then
10039 pkg_cv_LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0" 2>/dev/null`
10047 if test -n "$PKG_CONFIG"; then
10048 if test -n "$LIBART_LIBS"; then
10049 pkg_cv_LIBART_LIBS="$LIBART_LIBS"
10051 if test -n "$PKG_CONFIG" && \
10052 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libart-2.0\"") >&5
10053 ($PKG_CONFIG --exists --print-errors "libart-2.0") 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; then
10057 pkg_cv_LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0" 2>/dev/null`
10068 if test $pkg_failed = yes; then
10070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10071 _pkg_short_errors_supported=yes
10073 _pkg_short_errors_supported=no
10075 if test $_pkg_short_errors_supported = yes; then
10076 LIBART_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libart-2.0"`
10078 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0"`
10080 # Put the nasty error message in config.log where it belongs
10081 echo "$LIBART_PKG_ERRORS" >&5
10083 { echo "$as_me:$LINENO: result: no" >&5
10084 echo "${ECHO_T}no" >&6; }
10085 libart_pkgconfig_libart=no
10086 elif test $pkg_failed = untried; then
10087 libart_pkgconfig_libart=no
10089 LIBART_CFLAGS=$pkg_cv_LIBART_CFLAGS
10090 LIBART_LIBS=$pkg_cv_LIBART_LIBS
10091 { echo "$as_me:$LINENO: result: yes" >&5
10092 echo "${ECHO_T}yes" >&6; }
10095 if test "x$libart_pkgconfig_libart" = "xno"; then
10097 for ac_header in libart_lgpl/libart.h
10099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 ac_res=`eval echo '${'$as_ac_Header'}'`
10107 { echo "$as_me:$LINENO: result: $ac_res" >&5
10108 echo "${ECHO_T}$ac_res" >&6; }
10110 # Is the header compilable?
10111 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10113 cat >conftest.$ac_ext <<_ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 $ac_includes_default
10120 #include <$ac_header>
10122 rm -f conftest.$ac_objext
10123 if { (ac_try="$ac_compile"
10124 case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_compile") 2>conftest.er1
10131 grep -v '^ *+' conftest.er1 >conftest.err
10133 cat conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } && {
10136 test -z "$ac_c_werror_flag" ||
10137 test ! -s conftest.err
10138 } && test -s conftest.$ac_objext; then
10139 ac_header_compiler=yes
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10144 ac_header_compiler=no
10147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10149 echo "${ECHO_T}$ac_header_compiler" >&6; }
10151 # Is the header present?
10152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10154 cat >conftest.$ac_ext <<_ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10160 #include <$ac_header>
10162 if { (ac_try="$ac_cpp conftest.$ac_ext"
10163 case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10170 grep -v '^ *+' conftest.er1 >conftest.err
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } >/dev/null && {
10175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10176 test ! -s conftest.err
10178 ac_header_preproc=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_header_preproc=no
10186 rm -f conftest.err conftest.$ac_ext
10187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10188 echo "${ECHO_T}$ac_header_preproc" >&6; }
10190 # So? What about this header?
10191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10197 ac_header_preproc=yes
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 eval "$as_ac_Header=\$ac_header_preproc"
10222 ac_res=`eval echo '${'$as_ac_Header'}'`
10223 { echo "$as_me:$LINENO: result: $ac_res" >&5
10224 echo "${ECHO_T}$ac_res" >&6; }
10227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10228 cat >>confdefs.h <<_ACEOF
10229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10233 { echo "$as_me:$LINENO: checking for art_new in -lart_lgpl_2" >&5
10234 echo $ECHO_N "checking for art_new in -lart_lgpl_2... $ECHO_C" >&6; }
10235 if test "${ac_cv_lib_art_lgpl_2_art_new+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 ac_check_lib_save_LIBS=$LIBS
10239 LIBS="-lart_lgpl_2 $LIBS"
10240 cat >conftest.$ac_ext <<_ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10247 /* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_link") 2>conftest.er1
10271 grep -v '^ *+' conftest.er1 >conftest.err
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && {
10276 test -z "$ac_c_werror_flag" ||
10277 test ! -s conftest.err
10278 } && test -s conftest$ac_exeext &&
10279 $as_test_x conftest$ac_exeext; then
10280 ac_cv_lib_art_lgpl_2_art_new=yes
10282 echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10285 ac_cv_lib_art_lgpl_2_art_new=no
10288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10289 conftest$ac_exeext conftest.$ac_ext
10290 LIBS=$ac_check_lib_save_LIBS
10292 { echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_art_new" >&5
10293 echo "${ECHO_T}$ac_cv_lib_art_lgpl_2_art_new" >&6; }
10294 if test $ac_cv_lib_art_lgpl_2_art_new = yes; then
10295 cat >>confdefs.h <<_ACEOF
10296 #define HAVE_LIBART_LGPL_2 1
10299 LIBS="-lart_lgpl_2 $LIBS"
10305 { { echo "$as_me:$LINENO: error: No libart library found. This library is required." >&5
10306 echo "$as_me: error: No libart library found. This library is required." >&2;}
10307 { (exit 1); exit 1; }; }
10313 CPPFLAGS="$CPPFLAGS $LIBART_CFLAGS"
10314 cat >>confdefs.h <<\_ACEOF
10315 #define INTERNAL_LIBART 0
10318 LIBS="$LIBS $LIBART_LIBS"
10323 xpdf_in_source='$(xpdf_objects)'
10324 splash_in_source='$(splash_objects)'
10326 if test "x$USE_POPPLER" = "xtrue"; then
10330 cat >>confdefs.h <<\_ACEOF
10331 #define HAVE_POPPLER 1
10336 { echo "$as_me:$LINENO: checking for POPPLER" >&5
10337 echo $ECHO_N "checking for POPPLER... $ECHO_C" >&6; }
10339 if test -n "$PKG_CONFIG"; then
10340 if test -n "$POPPLER_CFLAGS"; then
10341 pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
10343 if test -n "$PKG_CONFIG" && \
10344 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\"") >&5
10345 ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; then
10349 pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler poppler-splash" 2>/dev/null`
10357 if test -n "$PKG_CONFIG"; then
10358 if test -n "$POPPLER_LIBS"; then
10359 pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
10361 if test -n "$PKG_CONFIG" && \
10362 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\"") >&5
10363 ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; then
10367 pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler poppler-splash" 2>/dev/null`
10378 if test $pkg_failed = yes; then
10380 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10381 _pkg_short_errors_supported=yes
10383 _pkg_short_errors_supported=no
10385 if test $_pkg_short_errors_supported = yes; then
10386 POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "poppler poppler-splash"`
10388 POPPLER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "poppler poppler-splash"`
10390 # Put the nasty error message in config.log where it belongs
10391 echo "$POPPLER_PKG_ERRORS" >&5
10393 { echo "$as_me:$LINENO: result: no" >&5
10394 echo "${ECHO_T}no" >&6; }
10395 poppler_pkgconfig=no
10396 elif test $pkg_failed = untried; then
10397 poppler_pkgconfig=no
10399 POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
10400 POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
10401 { echo "$as_me:$LINENO: result: yes" >&5
10402 echo "${ECHO_T}yes" >&6; }
10405 if test "x$poppler_pkgconfig" = "xno"; then
10407 ac_cpp='$CXXCPP $CPPFLAGS'
10408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10414 ac_cpp='$CXXCPP $CPPFLAGS'
10415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10418 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10419 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10420 if test -z "$CXXCPP"; then
10421 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 # Double quotes because CXXCPP needs to be expanded
10425 for CXXCPP in "$CXX -E" "/lib/cpp"
10427 ac_preproc_ok=false
10428 for ac_cxx_preproc_warn_flag in '' yes
10430 # Use a header file that comes with gcc, so configuring glibc
10431 # with a fresh cross-compiler works.
10432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10433 # <limits.h> exists even on freestanding compilers.
10434 # On the NeXT, cc -E runs the code through the compiler's parser,
10435 # not just through cpp. "Syntax error" is here to catch this case.
10436 cat >conftest.$ac_ext <<_ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10443 # include <limits.h>
10445 # include <assert.h>
10449 if { (ac_try="$ac_cpp conftest.$ac_ext"
10450 case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10457 grep -v '^ *+' conftest.er1 >conftest.err
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } >/dev/null && {
10462 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10463 test ! -s conftest.err
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10470 # Broken: fails on valid input.
10474 rm -f conftest.err conftest.$ac_ext
10476 # OK, works on sane cases. Now check whether nonexistent headers
10477 # can be detected and how.
10478 cat >conftest.$ac_ext <<_ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 #include <ac_nonexistent.h>
10486 if { (ac_try="$ac_cpp conftest.$ac_ext"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10494 grep -v '^ *+' conftest.er1 >conftest.err
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } >/dev/null && {
10499 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10500 test ! -s conftest.err
10502 # Broken: success on invalid input.
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 # Passes both tests.
10513 rm -f conftest.err conftest.$ac_ext
10516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10517 rm -f conftest.err conftest.$ac_ext
10518 if $ac_preproc_ok; then
10523 ac_cv_prog_CXXCPP=$CXXCPP
10526 CXXCPP=$ac_cv_prog_CXXCPP
10528 ac_cv_prog_CXXCPP=$CXXCPP
10530 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
10531 echo "${ECHO_T}$CXXCPP" >&6; }
10532 ac_preproc_ok=false
10533 for ac_cxx_preproc_warn_flag in '' yes
10535 # Use a header file that comes with gcc, so configuring glibc
10536 # with a fresh cross-compiler works.
10537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10538 # <limits.h> exists even on freestanding compilers.
10539 # On the NeXT, cc -E runs the code through the compiler's parser,
10540 # not just through cpp. "Syntax error" is here to catch this case.
10541 cat >conftest.$ac_ext <<_ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10548 # include <limits.h>
10550 # include <assert.h>
10554 if { (ac_try="$ac_cpp conftest.$ac_ext"
10555 case "(($ac_try" in
10556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557 *) ac_try_echo=$ac_try;;
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10562 grep -v '^ *+' conftest.er1 >conftest.err
10564 cat conftest.err >&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } >/dev/null && {
10567 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10568 test ! -s conftest.err
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 # Broken: fails on valid input.
10579 rm -f conftest.err conftest.$ac_ext
10581 # OK, works on sane cases. Now check whether nonexistent headers
10582 # can be detected and how.
10583 cat >conftest.$ac_ext <<_ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10589 #include <ac_nonexistent.h>
10591 if { (ac_try="$ac_cpp conftest.$ac_ext"
10592 case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10599 grep -v '^ *+' conftest.er1 >conftest.err
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } >/dev/null && {
10604 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10605 test ! -s conftest.err
10607 # Broken: success on invalid input.
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10613 # Passes both tests.
10618 rm -f conftest.err conftest.$ac_ext
10621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10622 rm -f conftest.err conftest.$ac_ext
10623 if $ac_preproc_ok; then
10626 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10627 See \`config.log' for more details." >&5
10628 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10629 See \`config.log' for more details." >&2;}
10630 { (exit 1); exit 1; }; }
10634 ac_cpp='$CXXCPP $CPPFLAGS'
10635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10641 for ac_header in OutputDev.h
10643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10650 ac_res=`eval echo '${'$as_ac_Header'}'`
10651 { echo "$as_me:$LINENO: result: $ac_res" >&5
10652 echo "${ECHO_T}$ac_res" >&6; }
10654 # Is the header compilable?
10655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10657 cat >conftest.$ac_ext <<_ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10663 $ac_includes_default
10664 #include <$ac_header>
10666 rm -f conftest.$ac_objext
10667 if { (ac_try="$ac_compile"
10668 case "(($ac_try" in
10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670 *) ac_try_echo=$ac_try;;
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673 (eval "$ac_compile") 2>conftest.er1
10675 grep -v '^ *+' conftest.er1 >conftest.err
10677 cat conftest.err >&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && {
10680 test -z "$ac_cxx_werror_flag" ||
10681 test ! -s conftest.err
10682 } && test -s conftest.$ac_objext; then
10683 ac_header_compiler=yes
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10688 ac_header_compiler=no
10691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10693 echo "${ECHO_T}$ac_header_compiler" >&6; }
10695 # Is the header present?
10696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10698 cat >conftest.$ac_ext <<_ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10704 #include <$ac_header>
10706 if { (ac_try="$ac_cpp conftest.$ac_ext"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10714 grep -v '^ *+' conftest.er1 >conftest.err
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } >/dev/null && {
10719 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10720 test ! -s conftest.err
10722 ac_header_preproc=yes
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 ac_header_preproc=no
10730 rm -f conftest.err conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10732 echo "${ECHO_T}$ac_header_preproc" >&6; }
10734 # So? What about this header?
10735 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10741 ac_header_preproc=yes
10744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 eval "$as_ac_Header=\$ac_header_preproc"
10766 ac_res=`eval echo '${'$as_ac_Header'}'`
10767 { echo "$as_me:$LINENO: result: $ac_res" >&5
10768 echo "${ECHO_T}$ac_res" >&6; }
10771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10772 cat >>confdefs.h <<_ACEOF
10773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10777 { echo "$as_me:$LINENO: checking for main in -lpoppler" >&5
10778 echo $ECHO_N "checking for main in -lpoppler... $ECHO_C" >&6; }
10779 if test "${ac_cv_lib_poppler_main+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10782 ac_check_lib_save_LIBS=$LIBS
10783 LIBS="-lpoppler $LIBS"
10784 cat >conftest.$ac_ext <<_ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (ac_try="$ac_link"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_link") 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_cxx_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest$ac_exeext &&
10817 $as_test_x conftest$ac_exeext; then
10818 ac_cv_lib_poppler_main=yes
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 ac_cv_lib_poppler_main=no
10826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10827 conftest$ac_exeext conftest.$ac_ext
10828 LIBS=$ac_check_lib_save_LIBS
10830 { echo "$as_me:$LINENO: result: $ac_cv_lib_poppler_main" >&5
10831 echo "${ECHO_T}$ac_cv_lib_poppler_main" >&6; }
10832 if test $ac_cv_lib_poppler_main = yes; then
10833 cat >>confdefs.h <<_ACEOF
10834 #define HAVE_LIBPOPPLER 1
10837 LIBS="-lpoppler $LIBS"
10843 { { echo "$as_me:$LINENO: error: No poppler library found. This library is required." >&5
10844 echo "$as_me: error: No poppler library found. This library is required." >&2;}
10845 { (exit 1); exit 1; }; }
10851 ac_cpp='$CPP $CPPFLAGS'
10852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10857 CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
10858 cat >>confdefs.h <<\_ACEOF
10859 #define HAVE_POPPLER 1
10862 LIBS="$LIBS $POPPLER_LIBS"
10868 # ------------------------------------------------------------------
10872 for ac_prog in avifile-config
10874 # Extract the first word of "$ac_prog", so it can be a program name with args.
10875 set dummy $ac_prog; ac_word=$2
10876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10878 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 if test -n "$AVIFILE_CONFIG"; then
10882 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10891 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10901 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10902 if test -n "$AVIFILE_CONFIG"; then
10903 { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10904 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
10906 { echo "$as_me:$LINENO: result: no" >&5
10907 echo "${ECHO_T}no" >&6; }
10911 test -n "$AVIFILE_CONFIG" && break
10915 if test "x$AVIFILE_CONFIG" '!=' "x";then
10916 OLDCPPFLAGS="$CPPFLAGS"
10917 # temporarily add avifile paths to CPPFLAGS...
10918 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10921 for ac_header in avifile/version.h version.h
10923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 ac_res=`eval echo '${'$as_ac_Header'}'`
10931 { echo "$as_me:$LINENO: result: $ac_res" >&5
10932 echo "${ECHO_T}$ac_res" >&6; }
10934 # Is the header compilable?
10935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10937 cat >conftest.$ac_ext <<_ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 $ac_includes_default
10944 #include <$ac_header>
10946 rm -f conftest.$ac_objext
10947 if { (ac_try="$ac_compile"
10948 case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_compile") 2>conftest.er1
10955 grep -v '^ *+' conftest.er1 >conftest.err
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } && {
10960 test -z "$ac_c_werror_flag" ||
10961 test ! -s conftest.err
10962 } && test -s conftest.$ac_objext; then
10963 ac_header_compiler=yes
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10968 ac_header_compiler=no
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10973 echo "${ECHO_T}$ac_header_compiler" >&6; }
10975 # Is the header present?
10976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10978 cat >conftest.$ac_ext <<_ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 #include <$ac_header>
10986 if { (ac_try="$ac_cpp conftest.$ac_ext"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } >/dev/null && {
10999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11000 test ! -s conftest.err
11002 ac_header_preproc=yes
11004 echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11007 ac_header_preproc=no
11010 rm -f conftest.err conftest.$ac_ext
11011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11012 echo "${ECHO_T}$ac_header_preproc" >&6; }
11014 # So? What about this header?
11015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11021 ac_header_preproc=yes
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 eval "$as_ac_Header=\$ac_header_preproc"
11046 ac_res=`eval echo '${'$as_ac_Header'}'`
11047 { echo "$as_me:$LINENO: result: $ac_res" >&5
11048 echo "${ECHO_T}$ac_res" >&6; }
11051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11052 cat >>confdefs.h <<_ACEOF
11053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11061 CPPFLAGS="$OLDCPPFLAGS"
11064 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11065 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
11067 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11068 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11070 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11071 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11074 cat > conftest.cpp << EOF
11076 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11077 // so we have to introduce them this way
11078 $HAVE_VERSION_H_DEFINE
11079 $HAVE_AVIFILE_VERSION_H_DEFINE
11081 #ifdef HAVE_VERSION_H
11082 #include <version.h>
11084 #ifdef HAVE_AVIFILE_VERSION_H
11085 #include <avifile/version.h>
11088 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11089 #include <avifile.h>
11090 #include <aviplay.h>
11091 #include <avm_fourcc.h>
11092 #include <avm_creators.h>
11093 #include <StreamInfo.h>
11096 #include <avifile.h>
11097 #include <aviplay.h>
11098 #include <aviutil.h>
11099 #define Width width
11100 #define Height height
11107 IAviReadFile* player;
11108 IAviReadStream* astream;
11109 IAviReadStream* vstream;
11110 player = CreateIAviReadFile(0);
11111 astream = player->GetStream(0, AviStream::Audio);
11112 vstream = player->GetStream(0, AviStream::Video);
11113 vstream -> StartStreaming();
11114 astream -> StartStreaming();
11116 MainAVIHeader head;
11117 player->GetFileHeader(&head);
11118 head.dwMicroSecPerFrame;
11119 head.dwTotalFrames;
11123 head.dwMicroSecPerFrame;
11124 astream->GetEndPos(),
11125 astream->GetEndTime());
11126 player->StreamCount();
11128 StreamInfo*audioinfo;
11129 StreamInfo*videoinfo;
11130 audioinfo = astream->GetStreamInfo();
11131 videoinfo = vstream->GetStreamInfo();
11132 videoinfo->GetVideoWidth();
11133 videoinfo->GetVideoHeight();
11134 audioinfo->GetAudioSamplesPerSec();
11135 videoinfo->GetFps();
11137 CImage*img = vstream->GetFrame();
11144 astream->GetAudioFormatInfo(&wave,0);
11146 astream->ReadFrames(0,0,0,a,b);
11148 int main (int argc, char*argv)
11154 if test "x$AVIFILE_CONFIG" '!=' "x";then
11155 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11156 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11157 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11158 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11159 { echo "$as_me:$LINENO: result: yes" >&5
11160 echo "${ECHO_T}yes" >&6; }
11164 cat >>confdefs.h <<\_ACEOF
11165 #define AVIFILE true
11169 echo "configure: failed program was:" >&5
11170 cat conftest.cpp >&5
11171 { echo "$as_me:$LINENO: result: no" >&5
11172 echo "${ECHO_T}no" >&6; }
11175 { echo "$as_me:$LINENO: result: no" >&5
11176 echo "${ECHO_T}no" >&6; }
11180 if test "x${AVIFILE}" = "xtrue"; then
11181 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11182 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11184 cat >>confdefs.h <<\_ACEOF
11185 #define HAVE_AVIFILE 1
11190 if test "x${WIN32}" != "x"; then
11191 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11192 #if test "x${AVIFIL32}" != "x"; then
11193 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11195 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11201 # ------------------------------------------------------------------
11203 if test "x${UNCOMPRESS}" = "xgzip"; then
11205 cat >>confdefs.h <<\_ACEOF
11212 # ------------------------------------------------------------------
11215 { echo "$as_me:$LINENO: checking for Python.h" >&5
11216 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
11218 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
11221 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
11222 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
11224 # iterate through version 2.2 to 2.5
11225 for v in 2 3 4 5; do
11227 if test -f "/usr/include/python2.$v/Python.h";then
11229 PYTHON_LIB="-lpython$PY_VERSION"
11230 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
11231 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
11232 HAVE_PYTHON_IMAGING_LIB=1
11234 PYTHON_LIB2="$PYTHON_LIB"
11236 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11238 elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
11239 #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
11241 PYTHON_LIB="-framework Python"
11242 if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
11243 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
11244 HAVE_PYTHON_IMAGING_LIB=1
11246 PYTHON_LIB2="$PYTHON_LIB"
11248 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
11250 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
11251 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
11252 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
11254 -a -f "/sw/include/python2.$v/Python.h"; then
11256 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
11257 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
11258 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
11259 HAVE_PYTHON_IMAGING_LIB=1
11261 PYTHON_LIB2="$PYTHON_LIB"
11263 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
11268 if test "x$PY_VERSION" "!=" "x"; then
11269 { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
11270 echo "${ECHO_T}$PY_VERSION" >&6; }
11271 export PYTHON_INCLUDES PYTHON_LIB
11274 { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11275 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
11277 cat > conftest.c << EOF
11278 #include <Python.h>
11283 ret = Py_Main(0, 0);
11284 int x; // check also for gcc 2.95.x incompatibilities
11289 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11290 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11291 { echo "$as_me:$LINENO: result: yes" >&5
11292 echo "${ECHO_T}yes" >&6; }
11295 echo "configure: failed program was:" >&5
11297 { echo "$as_me:$LINENO: result: no" >&5
11298 echo "${ECHO_T}no" >&6; }
11301 if test "x$PYTHON_OK" = "xyes";then
11302 { echo "$as_me:$LINENO: checking for Python-Imaging" >&5
11303 echo $ECHO_N "checking for Python-Imaging... $ECHO_C" >&6; }
11304 cat > conftest.c << EOF
11305 #include <Python.h>
11306 #include <Imaging.h>
11314 if test "$HAVE_PYTHON_IMAGING_LIB"; then
11315 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
11316 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11317 PYTHON_LIB="${PYTHON_LIB2}"
11319 cat >>confdefs.h <<\_ACEOF
11320 #define HAVE_PYTHON_IMAGING 1
11323 HAVE_PYTHON_IMAGING=yes
11324 export HAVE_PYTHON_IMAGING
11326 { echo "$as_me:$LINENO: result: yes" >&5
11327 echo "${ECHO_T}yes" >&6; }
11329 echo "configure: failed program was:" >&5
11331 { echo "$as_me:$LINENO: result: no" >&5
11332 echo "${ECHO_T}no" >&6; }
11335 echo "(didn't find the Python-Imaging libraries)" >&5
11336 { echo "$as_me:$LINENO: result: no" >&5
11337 echo "${ECHO_T}no" >&6; }
11342 { echo "$as_me:$LINENO: result: nope" >&5
11343 echo "${ECHO_T}nope" >&6; }
11347 if test "x$PYTHON_OK" '!=' "xyes";then
11348 echo all install uninstall clean: > lib/python/Makefile
11349 # fail silently- the most users won't have any need for the
11350 # python interface anyway
11352 pythonrfxswf="lib/python/Makefile"
11355 # ------------------------------------------------------------------
11357 { echo "$as_me:$LINENO: checking for missing libraries" >&5
11358 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
11360 if test "x$ZLIBMISSING" = "xtrue";then
11361 MISSINGLIBS="${MISSINGLIBS} zlib"
11362 DISABLEPNG2SWF=true
11365 if test "x$JPEGLIBMISSING" = "xtrue";then
11366 MISSINGLIBS="${MISSINGLIBS} jpeglib"
11367 DISABLEPDF2SWF=true
11368 DISABLEJPEG2SWF=true
11371 #if test "x$T1LIBMISSING" = "xtrue";then
11372 # MISSINGLIBS="${MISSINGLIBS} t1lib"
11374 if test "x$UNGIFMISSING" = "xtrue";then
11375 DISABLEGIF2SWF=true
11376 MISSINGLIBS="${MISSINGLIBS} ungif"
11380 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11381 DISABLEPDF2SWF=true;
11382 DISABLEJPEG2SWF=true;
11383 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11386 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11387 DISABLEPDF2SWF=true;
11388 MISSINGLIBS="${MISSINGLIBS} freetype"
11391 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11392 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11394 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
11395 DISABLEGIF2SWF=true
11396 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
11399 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11400 DISABLEPNG2SWF=true;
11401 MISSINGLIBS="${MISSINGLIBS} zlib.h"
11404 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11405 # MISSINGLIBS="${MISSINGLIBS} avifile"
11408 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11409 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
11411 # ------------------------------------------------------------------
11413 if test "x${MISSINGLIBS}" '!=' "x"; then
11414 echo "***************************************************"
11415 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11418 avi2swf="avi2swf/Makefile"
11419 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11420 #don't whine, avi2swf is outdated anyway
11421 #echo "* Disabling avi2swf tool..."
11422 echo all install uninstall clean: > avi2swf/Makefile
11426 pdf2swf_makefile="lib/pdf/Makefile"
11427 PDF2SWF='pdf2swf$(E)'
11428 LIBPDF='libpdf$(A)'
11430 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11431 echo "* Disabling pdf2swf tool..."
11432 rm -f lib/pdf/Makefile
11433 echo all install uninstall clean: > lib/pdf/Makefile
11434 pdf2swf_makefile=""
11441 if test "x${ZLIBMISSING}" = "xtrue"; then
11443 echo "* Warning! Without zlib, you will not be able to read"
11444 echo "* or write compressed Flash MX files!"
11447 JPEG2SWF='jpeg2swf$(E)'
11448 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11449 echo "* Disabling jpeg2swf tool..."
11455 GIF2SWF='gif2swf$(E)'
11456 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
11457 echo "* Disabling gif2swf tool..."
11463 PNG2SWF='png2swf$(E)'
11464 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11465 echo "* Disabling png2swf tool..."
11471 if test "x${MISSINGLIBS}" '!=' "x"; then
11472 if test "x${PARTIAL}" '=' "x"; then
11473 echo "* (never mind)"
11475 echo "***************************************************"
11478 # ------------------------------------------------------------------
11486 #ifdef HAVE_POPPLER
11487 #define GString GooString
11488 #define GHash GooHash
11492 if test -f "release.in"; then release_in="./release"; fi
11493 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
11494 ac_config_files="$ac_config_files ${FILES}"
11496 cat >confcache <<\_ACEOF
11497 # This file is a shell script that caches the results of configure
11498 # tests run on this system so they can be shared between configure
11499 # scripts and configure runs, see configure's option --config-cache.
11500 # It is not useful on other systems. If it contains results you don't
11501 # want to keep, you may remove or edit it.
11503 # config.status only pays attention to the cache file if you give it
11504 # the --recheck option to rerun configure.
11506 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11508 # following values.
11512 # The following way of writing the cache mishandles newlines in values,
11513 # but we know of no workaround that is simple, portable, and efficient.
11514 # So, we kill variables containing newlines.
11515 # Ultrix sh set writes to stderr and can't be redirected directly,
11516 # and sets the high bit in the cache file unless we assign to the vars.
11518 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11519 eval ac_val=\$$ac_var
11523 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11524 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11527 _ | IFS | as_nl) ;; #(
11528 *) $as_unset $ac_var ;;
11534 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11535 *${as_nl}ac_space=\ *)
11536 # `set' does not quote correctly, so add quotes (double-quote
11537 # substitution turns \\\\ into \\, and sed turns \\ into \).
11540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11543 # `set' quotes correctly as required by POSIX, so do not add quotes.
11544 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11553 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11555 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11557 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11558 if test -w "$cache_file"; then
11559 test "x$cache_file" != "x/dev/null" &&
11560 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11561 echo "$as_me: updating cache $cache_file" >&6;}
11562 cat confcache >$cache_file
11564 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11565 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11570 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11571 # Let make expand exec_prefix.
11572 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11574 DEFS=-DHAVE_CONFIG_H
11578 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11579 # 1. Remove the extension, and $U if already installed.
11580 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11581 ac_i=`echo "$ac_i" | sed "$ac_script"`
11582 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11583 # will be set to the directory where LIBOBJS objects are built.
11584 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11585 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11587 LIBOBJS=$ac_libobjs
11589 LTLIBOBJS=$ac_ltlibobjs
11593 : ${CONFIG_STATUS=./config.status}
11594 ac_clean_files_save=$ac_clean_files
11595 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11596 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11597 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11598 cat >$CONFIG_STATUS <<_ACEOF
11600 # Generated by $as_me.
11601 # Run this file to recreate the current configuration.
11602 # Compiler output produced by configure, useful for debugging
11603 # configure, is in config.log if it exists.
11606 ac_cs_recheck=false
11608 SHELL=\${CONFIG_SHELL-$SHELL}
11611 cat >>$CONFIG_STATUS <<\_ACEOF
11612 ## --------------------- ##
11613 ## M4sh Initialization. ##
11614 ## --------------------- ##
11616 # Be more Bourne compatible
11617 DUALCASE=1; export DUALCASE # for MKS sh
11618 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11621 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11622 # is contrary to our usage. Disable this feature.
11623 alias -g '${1+"$@"}'='"$@"'
11624 setopt NO_GLOB_SUBST
11626 case `(set -o) 2>/dev/null` in
11627 *posix*) set -o posix ;;
11636 # Avoid depending upon Character Ranges.
11637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11640 as_cr_digits='0123456789'
11641 as_cr_alnum=$as_cr_Letters$as_cr_digits
11643 # The user is always right.
11644 if test "${PATH_SEPARATOR+set}" != set; then
11645 echo "#! /bin/sh" >conf$$.sh
11646 echo "exit 0" >>conf$$.sh
11648 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11656 # Support unset when possible.
11657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11665 # We need space, tab and new line, in precisely that order. Quoting is
11666 # there to prevent editors from complaining about space-tab.
11667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11668 # splitting by setting IFS to empty value.)
11673 # Find who we are. Look in the path if we contain no directory separator.
11675 *[\\/]* ) as_myself=$0 ;;
11676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677 for as_dir in $PATH
11680 test -z "$as_dir" && as_dir=.
11681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11687 # We did not find ourselves, most probably we were run as `sh COMMAND'
11688 # in which case we are not to be found in the path.
11689 if test "x$as_myself" = x; then
11692 if test ! -f "$as_myself"; then
11693 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11694 { (exit 1); exit 1; }
11697 # Work around bugs in pre-3.0 UWIN ksh.
11698 for as_var in ENV MAIL MAILPATH
11699 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11707 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11708 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11709 LC_TELEPHONE LC_TIME
11711 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11712 eval $as_var=C; export $as_var
11714 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11718 # Required to use basename.
11719 if expr a : '\(a\)' >/dev/null 2>&1 &&
11720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11727 as_basename=basename
11733 # Name of the executable.
11734 as_me=`$as_basename -- "$0" ||
11735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11736 X"$0" : 'X\(//\)$' \| \
11737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11739 sed '/^.*\/\([^/][^/]*\)\/*$/{
11758 as_lineno_1=$LINENO
11759 as_lineno_2=$LINENO
11760 test "x$as_lineno_1" != "x$as_lineno_2" &&
11761 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11763 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11764 # uniformly replaced by the line number. The first 'sed' inserts a
11765 # line-number line after each line using $LINENO; the second 'sed'
11766 # does the real work. The second script uses 'N' to pair each
11767 # line-number line with the line containing $LINENO, and appends
11768 # trailing '-' during substitution so that $LINENO is not a special
11769 # case at line end.
11770 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11771 # scripts with optimization help from Paolo Bonzini. Blame Lee
11772 # E. McMahon (1931-1989) for sed's syntax. :-)
11784 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11787 ' >$as_me.lineno &&
11788 chmod +x "$as_me.lineno" ||
11789 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11790 { (exit 1); exit 1; }; }
11792 # Don't try to exec as it changes $[0], causing all sort of problems
11793 # (the dirname of $[0] is not the place where we might find the
11794 # original and so on. Autoconf is especially sensitive to this).
11795 . "./$as_me.lineno"
11796 # Exit status is that of the last command.
11801 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11807 ECHO_C= ECHO_N= ECHO_T=
11808 case `echo -n x` in
11810 case `echo 'x\c'` in
11811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11818 if expr a : '\(a\)' >/dev/null 2>&1 &&
11819 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11825 rm -f conf$$ conf$$.exe conf$$.file
11826 if test -d conf$$.dir; then
11827 rm -f conf$$.dir/conf$$.file
11833 if ln -s conf$$.file conf$$ 2>/dev/null; then
11835 # ... but there are two gotchas:
11836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11838 # In both cases, we have to default to `cp -p'.
11839 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11841 elif ln conf$$.file conf$$ 2>/dev/null; then
11846 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11847 rmdir conf$$.dir 2>/dev/null
11849 if mkdir -p . 2>/dev/null; then
11852 test -d ./-p && rmdir ./-p
11856 if test -x / >/dev/null 2>&1; then
11857 as_test_x='test -x'
11859 if ls -dL / >/dev/null 2>&1; then
11866 if test -d "$1"; then
11872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11873 ???[sx]*):;;*)false;;esac;fi
11877 as_executable_p=$as_test_x
11879 # Sed expression to map a string onto a valid CPP name.
11880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11882 # Sed expression to map a string onto a valid variable name.
11883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11888 # Save the log message, to keep $[0] and so on meaningful, and to
11889 # report actual input values of CONFIG_FILES etc. instead of their
11890 # values after options handling.
11892 This file was extended by $as_me, which was
11893 generated by GNU Autoconf 2.61. Invocation command line was
11895 CONFIG_FILES = $CONFIG_FILES
11896 CONFIG_HEADERS = $CONFIG_HEADERS
11897 CONFIG_LINKS = $CONFIG_LINKS
11898 CONFIG_COMMANDS = $CONFIG_COMMANDS
11901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11906 cat >>$CONFIG_STATUS <<_ACEOF
11907 # Files that config.status was made for.
11908 config_files="$ac_config_files"
11909 config_headers="$ac_config_headers"
11913 cat >>$CONFIG_STATUS <<\_ACEOF
11915 \`$as_me' instantiates files from templates according to the
11916 current configuration.
11918 Usage: $0 [OPTIONS] [FILE]...
11920 -h, --help print this help, then exit
11921 -V, --version print version number and configuration settings, then exit
11922 -q, --quiet do not print progress messages
11923 -d, --debug don't remove temporary files
11924 --recheck update $as_me by reconfiguring in the same conditions
11925 --file=FILE[:TEMPLATE]
11926 instantiate the configuration file FILE
11927 --header=FILE[:TEMPLATE]
11928 instantiate the configuration header FILE
11930 Configuration files:
11933 Configuration headers:
11936 Report bugs to <bug-autoconf@gnu.org>."
11939 cat >>$CONFIG_STATUS <<_ACEOF
11942 configured by $0, generated by GNU Autoconf 2.61,
11943 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11945 Copyright (C) 2006 Free Software Foundation, Inc.
11946 This config.status script is free software; the Free Software Foundation
11947 gives unlimited permission to copy, distribute and modify it."
11954 cat >>$CONFIG_STATUS <<\_ACEOF
11955 # If no file are specified by the user, then we need to provide default
11956 # value. By we need to know if files were specified by the user.
11962 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11963 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11974 # Handling of the options.
11975 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11977 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11978 echo "$ac_cs_version"; exit ;;
11979 --debug | --debu | --deb | --de | --d | -d )
11981 --file | --fil | --fi | --f )
11983 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11984 ac_need_defaults=false;;
11985 --header | --heade | --head | --hea )
11987 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11988 ac_need_defaults=false;;
11990 # Conflict between --help and --header
11991 { echo "$as_me: error: ambiguous option: $1
11992 Try \`$0 --help' for more information." >&2
11993 { (exit 1); exit 1; }; };;
11994 --help | --hel | -h )
11995 echo "$ac_cs_usage"; exit ;;
11996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11997 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12000 # This is an error.
12001 -*) { echo "$as_me: error: unrecognized option: $1
12002 Try \`$0 --help' for more information." >&2
12003 { (exit 1); exit 1; }; } ;;
12005 *) ac_config_targets="$ac_config_targets $1"
12006 ac_need_defaults=false ;;
12012 ac_configure_extra_args=
12014 if $ac_cs_silent; then
12016 ac_configure_extra_args="$ac_configure_extra_args --silent"
12020 cat >>$CONFIG_STATUS <<_ACEOF
12021 if \$ac_cs_recheck; then
12022 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12023 CONFIG_SHELL=$SHELL
12024 export CONFIG_SHELL
12025 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12029 cat >>$CONFIG_STATUS <<\_ACEOF
12033 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12034 ## Running $as_me. ##
12040 cat >>$CONFIG_STATUS <<_ACEOF
12043 cat >>$CONFIG_STATUS <<\_ACEOF
12045 # Handling of arguments.
12046 for ac_config_target in $ac_config_targets
12048 case $ac_config_target in
12049 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12050 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12052 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12053 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12054 { (exit 1); exit 1; }; };;
12059 # If the user did not use the arguments to specify the items to instantiate,
12060 # then the envvar interface is used. Set only those that are not.
12061 # We use the long form for the default assignment because of an extremely
12062 # bizarre bug on SunOS 4.1.3.
12063 if $ac_need_defaults; then
12064 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12065 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12068 # Have a temporary directory for convenience. Make it in the build tree
12069 # simply because there is no reason against having it here, and in addition,
12070 # creating and moving files from /tmp can sometimes cause problems.
12071 # Hook for its removal unless debugging.
12072 # Note that there is a small window in which the directory will not be cleaned:
12073 # after its creation but before its name has been assigned to `$tmp'.
12077 trap 'exit_status=$?
12078 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12080 trap '{ (exit 1); exit 1; }' 1 2 13 15
12082 # Create a (secure) tmp directory for tmp files.
12085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12086 test -n "$tmp" && test -d "$tmp"
12089 tmp=./conf$$-$RANDOM
12090 (umask 077 && mkdir "$tmp")
12093 echo "$me: cannot create a temporary directory in ." >&2
12094 { (exit 1); exit 1; }
12098 # Set up the sed scripts for CONFIG_FILES section.
12101 # No need to generate the scripts if there are no CONFIG_FILES.
12102 # This happens for instance when ./config.status config.h
12103 if test -n "$CONFIG_FILES"; then
12110 for ac_last_try in false false false false false :; do
12111 cat >conf$$subs.sed <<_ACEOF
12112 SHELL!$SHELL$ac_delim
12113 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12114 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12115 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12116 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12117 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12118 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12119 exec_prefix!$exec_prefix$ac_delim
12120 prefix!$prefix$ac_delim
12121 program_transform_name!$program_transform_name$ac_delim
12122 bindir!$bindir$ac_delim
12123 sbindir!$sbindir$ac_delim
12124 libexecdir!$libexecdir$ac_delim
12125 datarootdir!$datarootdir$ac_delim
12126 datadir!$datadir$ac_delim
12127 sysconfdir!$sysconfdir$ac_delim
12128 sharedstatedir!$sharedstatedir$ac_delim
12129 localstatedir!$localstatedir$ac_delim
12130 includedir!$includedir$ac_delim
12131 oldincludedir!$oldincludedir$ac_delim
12132 docdir!$docdir$ac_delim
12133 infodir!$infodir$ac_delim
12134 htmldir!$htmldir$ac_delim
12135 dvidir!$dvidir$ac_delim
12136 pdfdir!$pdfdir$ac_delim
12137 psdir!$psdir$ac_delim
12138 libdir!$libdir$ac_delim
12139 localedir!$localedir$ac_delim
12140 mandir!$mandir$ac_delim
12141 DEFS!$DEFS$ac_delim
12142 ECHO_C!$ECHO_C$ac_delim
12143 ECHO_N!$ECHO_N$ac_delim
12144 ECHO_T!$ECHO_T$ac_delim
12145 LIBS!$LIBS$ac_delim
12146 build_alias!$build_alias$ac_delim
12147 host_alias!$host_alias$ac_delim
12148 target_alias!$target_alias$ac_delim
12149 build!$build$ac_delim
12150 build_cpu!$build_cpu$ac_delim
12151 build_vendor!$build_vendor$ac_delim
12152 build_os!$build_os$ac_delim
12153 host!$host$ac_delim
12154 host_cpu!$host_cpu$ac_delim
12155 host_vendor!$host_vendor$ac_delim
12156 host_os!$host_os$ac_delim
12157 SHARED!$SHARED$ac_delim
12159 CFLAGS!$CFLAGS$ac_delim
12160 LDFLAGS!$LDFLAGS$ac_delim
12161 CPPFLAGS!$CPPFLAGS$ac_delim
12162 ac_ct_CC!$ac_ct_CC$ac_delim
12163 EXEEXT!$EXEEXT$ac_delim
12164 OBJEXT!$OBJEXT$ac_delim
12166 CXXFLAGS!$CXXFLAGS$ac_delim
12167 ac_ct_CXX!$ac_ct_CXX$ac_delim
12169 RANLIB!$RANLIB$ac_delim
12170 SET_MAKE!$SET_MAKE$ac_delim
12171 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12172 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12173 INSTALL_DATA!$INSTALL_DATA$ac_delim
12174 LN_S!$LN_S$ac_delim
12175 UNCOMPRESS!$UNCOMPRESS$ac_delim
12176 PKG_CONFIG!$PKG_CONFIG$ac_delim
12177 AREXT!$AREXT$ac_delim
12179 SLEXT!$SLEXT$ac_delim
12180 CXXLIBS!$CXXLIBS$ac_delim
12181 STRIP!$STRIP$ac_delim
12182 target!$target$ac_delim
12183 target_cpu!$target_cpu$ac_delim
12184 target_vendor!$target_vendor$ac_delim
12185 target_os!$target_os$ac_delim
12186 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
12187 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
12188 GREP!$GREP$ac_delim
12189 EGREP!$EGREP$ac_delim
12190 PACKAGE!$PACKAGE$ac_delim
12191 VERSION!$VERSION$ac_delim
12192 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
12193 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
12194 DEVICE_OPENGL!$DEVICE_OPENGL$ac_delim
12195 lame_in_source!$lame_in_source$ac_delim
12196 LIBART_CFLAGS!$LIBART_CFLAGS$ac_delim
12197 LIBART_LIBS!$LIBART_LIBS$ac_delim
12198 art_in_source!$art_in_source$ac_delim
12199 POPPLER_CFLAGS!$POPPLER_CFLAGS$ac_delim
12200 POPPLER_LIBS!$POPPLER_LIBS$ac_delim
12201 CXXCPP!$CXXCPP$ac_delim
12202 xpdf_in_source!$xpdf_in_source$ac_delim
12203 splash_in_source!$splash_in_source$ac_delim
12204 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
12205 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
12206 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
12207 USE_GZIP!$USE_GZIP$ac_delim
12208 PYTHON_LIB!$PYTHON_LIB$ac_delim
12211 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12213 elif $ac_last_try; then
12214 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12215 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12216 { (exit 1); exit 1; }; }
12218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12222 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12223 if test -n "$ac_eof"; then
12224 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12225 ac_eof=`expr $ac_eof + 1`
12228 cat >>$CONFIG_STATUS <<_ACEOF
12229 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12233 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12234 s/^/s,@/; s/!/@,|#_!!_#|/
12237 s/'"$ac_delim"'$/,g/; t
12239 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12240 ' >>$CONFIG_STATUS <conf$$subs.sed
12241 rm -f conf$$subs.sed
12242 cat >>$CONFIG_STATUS <<_ACEOF
12248 for ac_last_try in false false false false false :; do
12249 cat >conf$$subs.sed <<_ACEOF
12250 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
12251 HAVE_PYTHON_IMAGING!$HAVE_PYTHON_IMAGING$ac_delim
12252 PDF2SWF!$PDF2SWF$ac_delim
12253 LIBPDF!$LIBPDF$ac_delim
12254 JPEG2SWF!$JPEG2SWF$ac_delim
12255 GIF2SWF!$GIF2SWF$ac_delim
12256 PNG2SWF!$PNG2SWF$ac_delim
12257 LIBOBJS!$LIBOBJS$ac_delim
12258 LTLIBOBJS!$LTLIBOBJS$ac_delim
12261 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
12263 elif $ac_last_try; then
12264 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12265 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12266 { (exit 1); exit 1; }; }
12268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12272 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12273 if test -n "$ac_eof"; then
12274 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12275 ac_eof=`expr $ac_eof + 1`
12278 cat >>$CONFIG_STATUS <<_ACEOF
12279 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12283 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12284 s/^/s,@/; s/!/@,|#_!!_#|/
12287 s/'"$ac_delim"'$/,g/; t
12289 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12290 ' >>$CONFIG_STATUS <conf$$subs.sed
12291 rm -f conf$$subs.sed
12292 cat >>$CONFIG_STATUS <<_ACEOF
12299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12301 # trailing colons and then remove the whole line if VPATH becomes empty
12302 # (actually we leave an empty line to preserve line numbers).
12303 if test "x$srcdir" = x.; then
12304 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12305 s/:*\$(srcdir):*/:/
12306 s/:*\${srcdir}:*/:/
12308 s/^\([^=]*=[ ]*\):*/\1/
12314 cat >>$CONFIG_STATUS <<\_ACEOF
12315 fi # test -n "$CONFIG_FILES"
12318 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12321 :[FHLC]) ac_mode=$ac_tag; continue;;
12323 case $ac_mode$ac_tag in
12325 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12326 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12327 { (exit 1); exit 1; }; };;
12328 :[FH]-) ac_tag=-:-;;
12329 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12346 -) ac_f="$tmp/stdin";;
12347 *) # Look for the file first in the build tree, then in the source tree
12348 # (if the path is not absolute). The absolute path cannot be DOS-style,
12349 # because $ac_f cannot contain `:'.
12353 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12355 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12356 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12357 { (exit 1); exit 1; }; };;
12359 ac_file_inputs="$ac_file_inputs $ac_f"
12362 # Let's still pretend it is `configure' which instantiates (i.e., don't
12363 # use $as_me), people would be surprised to read:
12364 # /* config.h. Generated by config.status. */
12365 configure_input="Generated from "`IFS=:
12366 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12367 if test x"$ac_file" != x-; then
12368 configure_input="$ac_file. $configure_input"
12369 { echo "$as_me:$LINENO: creating $ac_file" >&5
12370 echo "$as_me: creating $ac_file" >&6;}
12374 *:-:* | *:-) cat >"$tmp/stdin";;
12379 ac_dir=`$as_dirname -- "$ac_file" ||
12380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12381 X"$ac_file" : 'X\(//\)[^/]' \| \
12382 X"$ac_file" : 'X\(//\)$' \| \
12383 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12389 /^X\(\/\/\)[^/].*/{
12404 -*) as_dir=./$as_dir;;
12406 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12410 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12411 *) as_qdir=$as_dir;;
12413 as_dirs="'$as_qdir' $as_dirs"
12414 as_dir=`$as_dirname -- "$as_dir" ||
12415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12416 X"$as_dir" : 'X\(//\)[^/]' \| \
12417 X"$as_dir" : 'X\(//\)$' \| \
12418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12424 /^X\(\/\/\)[^/].*/{
12437 test -d "$as_dir" && break
12439 test -z "$as_dirs" || eval "mkdir $as_dirs"
12440 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12441 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12442 { (exit 1); exit 1; }; }; }
12446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12449 # A ".." for each directory in $ac_dir_suffix.
12450 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12451 case $ac_top_builddir_sub in
12452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12456 ac_abs_top_builddir=$ac_pwd
12457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12458 # for backward compatibility:
12459 ac_top_builddir=$ac_top_build_prefix
12462 .) # We are building in place.
12464 ac_top_srcdir=$ac_top_builddir_sub
12465 ac_abs_top_srcdir=$ac_pwd ;;
12466 [\\/]* | ?:[\\/]* ) # Absolute name.
12467 ac_srcdir=$srcdir$ac_dir_suffix;
12468 ac_top_srcdir=$srcdir
12469 ac_abs_top_srcdir=$srcdir ;;
12470 *) # Relative name.
12471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12472 ac_top_srcdir=$ac_top_build_prefix$srcdir
12473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12486 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12490 cat >>$CONFIG_STATUS <<\_ACEOF
12491 # If the template does not know about datarootdir, expand it.
12492 # FIXME: This hack should be removed a few years after 2.60.
12493 ac_datarootdir_hack=; ac_datarootdir_seen=
12495 case `sed -n '/datarootdir/ {
12504 ' $ac_file_inputs` in
12505 *datarootdir*) ac_datarootdir_seen=yes;;
12506 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12507 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12508 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12510 cat >>$CONFIG_STATUS <<_ACEOF
12511 ac_datarootdir_hack='
12512 s&@datadir@&$datadir&g
12513 s&@docdir@&$docdir&g
12514 s&@infodir@&$infodir&g
12515 s&@localedir@&$localedir&g
12516 s&@mandir@&$mandir&g
12517 s&\\\${datarootdir}&$datarootdir&g' ;;
12521 # Neutralize VPATH when `$srcdir' = `.'.
12522 # Shell code in configure.ac might set extrasub.
12523 # FIXME: do we really want to maintain this feature?
12524 cat >>$CONFIG_STATUS <<_ACEOF
12528 cat >>$CONFIG_STATUS <<\_ACEOF
12530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12531 s&@configure_input@&$configure_input&;t t
12532 s&@top_builddir@&$ac_top_builddir_sub&;t t
12533 s&@srcdir@&$ac_srcdir&;t t
12534 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12535 s&@top_srcdir@&$ac_top_srcdir&;t t
12536 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12537 s&@builddir@&$ac_builddir&;t t
12538 s&@abs_builddir@&$ac_abs_builddir&;t t
12539 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12540 s&@INSTALL@&$ac_INSTALL&;t t
12541 $ac_datarootdir_hack
12542 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12545 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12546 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12547 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12548 which seems to be undefined. Please make sure it is defined." >&5
12549 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12550 which seems to be undefined. Please make sure it is defined." >&2;}
12554 -) cat "$tmp/out"; rm -f "$tmp/out";;
12555 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12564 # Transform confdefs.h into a sed script `conftest.defines', that
12565 # substitutes the proper values into config.h.in to produce config.h.
12566 rm -f conftest.defines conftest.tail
12567 # First, append a space to every undef/define line, to ease matching.
12568 echo 's/$/ /' >conftest.defines
12569 # Then, protect against being on the right side of a sed subst, or in
12570 # an unquoted here document, in config.status. If some macros were
12571 # called several times there might be several #defines for the same
12572 # symbol, which is useless. But do not sort them, since the last
12573 # AC_DEFINE must be honored.
12574 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12575 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12576 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12577 # PARAMS is the parameter list in the macro definition--in most cases, it's
12578 # just an empty string.
12579 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12580 ac_dB='\\)[ (].*,\\1define\\2'
12588 s/^[ ]*#[ ]*define[ ][ ]*//
12593 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12594 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12595 ' >>conftest.defines
12597 # Remove the space that was appended to ease matching.
12598 # Then replace #undef with comments. This is necessary, for
12599 # example, in the case of _POSIX_SOURCE, which is predefined and required
12600 # on some systems where configure will not decide to define it.
12601 # (The regexp can be short, since the line contains either #define or #undef.)
12603 s,^[ #]*u.*,/* & */,' >>conftest.defines
12605 # Break up conftest.defines:
12606 ac_max_sed_lines=50
12608 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12609 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12610 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12612 ac_in='$ac_file_inputs'
12613 ac_out='"$tmp/out1"'
12614 ac_nxt='"$tmp/out2"'
12618 # Write a here document:
12619 cat >>$CONFIG_STATUS <<_ACEOF
12620 # First, check the format of the line:
12621 cat >"\$tmp/defines.sed" <<\\CEOF
12622 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12623 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12627 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12629 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12630 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12631 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12632 grep . conftest.tail >/dev/null || break
12633 rm -f conftest.defines
12634 mv conftest.tail conftest.defines
12636 rm -f conftest.defines conftest.tail
12638 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12639 cat >>$CONFIG_STATUS <<\_ACEOF
12640 if test x"$ac_file" != x-; then
12641 echo "/* $configure_input */" >"$tmp/config.h"
12642 cat "$ac_result" >>"$tmp/config.h"
12643 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12644 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12645 echo "$as_me: $ac_file is unchanged" >&6;}
12648 mv "$tmp/config.h" $ac_file
12651 echo "/* $configure_input */"
12663 { (exit 0); exit 0; }
12665 chmod +x $CONFIG_STATUS
12666 ac_clean_files=$ac_clean_files_save
12669 # configure is writing to config.log, and then calls config.status.
12670 # config.status does its own redirection, appending to config.log.
12671 # Unfortunately, on DOS this fails, as config.log is still kept open
12672 # by configure, so config.status won't be able to write to it; its
12673 # output is simply discarded. So we exec the FD to /dev/null,
12674 # effectively closing config.log, so it can be properly (re)opened and
12675 # appended to by config.status. When coming back to configure, we
12676 # need to make the FD available again.
12677 if test "$no_create" != yes; then
12679 ac_config_status_args=
12680 test "$silent" = yes &&
12681 ac_config_status_args="$ac_config_status_args --quiet"
12683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12686 # would make configure fail if this is the last instruction.
12687 $ac_cs_success || { (exit 1); exit 1; }
12693 # On development trees, create snapshots of config.status
12695 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
12696 if test "x${MINGW}" = "xyes"; then
12697 echo cp config.status config.status.win32
12698 cp config.status config.status.win32
12700 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
12701 echo cp config.status config.status.linux
12702 cp config.status config.status.linux
12704 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
12705 echo cp config.status config.status.debug
12706 cp config.status config.status.debug
12708 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
12709 echo cp config.status config.status.optimize
12710 cp config.status config.status.optimize