2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="src/"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
728 program_transform_name
740 enable_option_checking
748 ac_precious_vars='build_alias
762 # Initialize some variables set by options.
764 ac_init_version=false
765 ac_unrecognized_opts=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
776 program_transform_name=s,x,x,
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE}'
801 infodir='${datarootdir}/info'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
822 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
850 cache_file=config.cache ;;
852 -datadir | --datadir | --datadi | --datad)
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
864 -disable-* | --disable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
869 { (exit 1); exit 1; }; }
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
879 eval enable_$ac_useropt=no ;;
881 -docdir | --docdir | --docdi | --doc | --do)
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
896 { (exit 1); exit 1; }; }
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
906 eval enable_$ac_useropt=\$ac_optarg ;;
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
921 -help | --help | --hel | --he | -h)
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 htmldir=$ac_optarg ;;
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
951 -libdir | --libdir | --libdi | --libd)
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
963 -localedir | --localedir | --localedi | --localed | --locale)
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 # Obsolete; use --without-fp.
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1042 -psdir | --psdir | --psdi | --psd | --ps)
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 sbindir=$ac_optarg ;;
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 sharedstatedir=$ac_optarg ;;
1068 -site | --site | --sit)
1070 -site=* | --site=* | --sit=*)
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1097 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1111 eval with_$ac_useropt=\$ac_optarg ;;
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1118 { (exit 1); exit 1; }; }
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1128 eval with_$ac_useropt=no ;;
1131 # Obsolete; use --with-x.
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139 x_includes=$ac_optarg ;;
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146 x_libraries=$ac_optarg ;;
1148 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1149 Try \`$0 --help' for more information." >&2
1150 { (exit 1); exit 1; }; }
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1157 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1158 { (exit 1); exit 1; }; }
1159 eval $ac_envvar=\$ac_optarg
1160 export $ac_envvar ;;
1163 # FIXME: should be removed in autoconf 3.0.
1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1173 if test -n "$ac_prev"; then
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1176 { (exit 1); exit 1; }; }
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1182 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1183 { (exit 1); exit 1; }; } ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 # Check all directory arguments for consistency.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val=\$$ac_var
1195 # Remove trailing slashes.
1198 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\$ac_val;;
1201 # Be sure to have absolute directory names.
1203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1207 { (exit 1); exit 1; }; }
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1215 target=$target_alias
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231 test "$silent" = yes && exec 6>/dev/null
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1238 { (exit 1); exit 1; }; }
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1241 { (exit 1); exit 1; }; }
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1276 ac_srcdir_defaulted=no
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1281 { (exit 1); exit 1; }; }
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1286 { (exit 1); exit 1; }; }
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1312 \`configure' configures this package to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1370 --program-prefix=PREFIX prepend PREFIX to installed program names
1371 --program-suffix=SUFFIX append SUFFIX to installed program names
1372 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1381 if test -n "$ac_init_help"; then
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --enable-checkmem turn on ccmalloc debugging
1390 --enable-debug turn on debugging
1391 --enable-profiling turn on profiling
1392 --enable-warnings turn on compiler warnings
1393 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1394 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1396 Some influential environment variables:
1397 CC C compiler command
1398 CFLAGS C compiler flags
1399 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1400 nonstandard directory <lib dir>
1401 LIBS libraries to pass to the linker, e.g. -l<library>
1402 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1403 you have headers in a nonstandard directory <include dir>
1404 CXX C++ compiler command
1405 CXXFLAGS C++ compiler flags
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1415 if test "$ac_init_help" = "recursive"; then
1416 # If there are subdirs, report their specific --help.
1417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418 test -d "$ac_dir" ||
1419 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1427 # A ".." for each directory in $ac_dir_suffix.
1428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1429 case $ac_top_builddir_sub in
1430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434 ac_abs_top_builddir=$ac_pwd
1435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1436 # for backward compatibility:
1437 ac_top_builddir=$ac_top_build_prefix
1440 .) # We are building in place.
1442 ac_top_srcdir=$ac_top_builddir_sub
1443 ac_abs_top_srcdir=$ac_pwd ;;
1444 [\\/]* | ?:[\\/]* ) # Absolute name.
1445 ac_srcdir=$srcdir$ac_dir_suffix;
1446 ac_top_srcdir=$srcdir
1447 ac_abs_top_srcdir=$srcdir ;;
1449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1450 ac_top_srcdir=$ac_top_build_prefix$srcdir
1451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1455 cd "$ac_dir" || { ac_status=$?; continue; }
1456 # Check for guested configure.
1457 if test -f "$ac_srcdir/configure.gnu"; then
1459 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1460 elif test -f "$ac_srcdir/configure"; then
1462 $SHELL "$ac_srcdir/configure" --help=recursive
1464 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466 cd "$ac_pwd" || { ac_status=$?; break; }
1470 test -n "$ac_init_help" && exit $ac_status
1471 if $ac_init_version; then
1474 generated by GNU Autoconf 2.63
1476 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1477 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1478 This configure script is free software; the Free Software Foundation
1479 gives unlimited permission to copy, distribute and modify it.
1483 cat >config.log <<_ACEOF
1484 This file contains any messages produced by compilers while
1485 running configure, to aid debugging if configure makes a mistake.
1487 It was created by $as_me, which was
1488 generated by GNU Autoconf 2.63. Invocation command line was
1500 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1501 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1502 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1503 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1504 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1506 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1507 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1509 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1510 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1511 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1512 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1513 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1514 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1515 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 test -z "$as_dir" && as_dir=.
1524 $as_echo "PATH: $as_dir"
1540 # Keep a trace of the command line.
1541 # Strip out --no-create and --no-recursion so they do not pile up.
1542 # Strip out --silent because we don't want to record it for future runs.
1543 # Also quote any args containing shell meta-characters.
1544 # Make two passes to allow for proper duplicate-argument suppression.
1548 ac_must_keep_next=false
1554 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1555 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1556 | -silent | --silent | --silen | --sile | --sil)
1559 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1562 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1564 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1565 if test $ac_must_keep_next = true; then
1566 ac_must_keep_next=false # Got value, back to normal.
1569 *=* | --config-cache | -C | -disable-* | --disable-* \
1570 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1571 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1572 | -with-* | --with-* | -without-* | --without-* | --x)
1573 case "$ac_configure_args0 " in
1574 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1577 -* ) ac_must_keep_next=true ;;
1580 ac_configure_args="$ac_configure_args '$ac_arg'"
1585 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1586 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1588 # When interrupted or exit'd, cleanup temporary files, and complete
1589 # config.log. We remove comments because anyway the quotes in there
1590 # would cause problems or look ugly.
1591 # WARNING: Use '\'' to represent an apostrophe within the trap.
1592 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1593 trap 'exit_status=$?
1594 # Save into config.log some information that might help in debugging.
1599 ## ---------------- ##
1600 ## Cache variables. ##
1601 ## ---------------- ##
1604 # The following way of writing the cache mishandles newlines in values,
1606 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1607 eval ac_val=\$$ac_var
1611 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1612 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1615 _ | IFS | as_nl) ;; #(
1616 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1617 *) $as_unset $ac_var ;;
1622 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1623 *${as_nl}ac_space=\ *)
1625 "s/'\''/'\''\\\\'\'''\''/g;
1626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1637 ## ----------------- ##
1638 ## Output variables. ##
1639 ## ----------------- ##
1642 for ac_var in $ac_subst_vars
1644 eval ac_val=\$$ac_var
1646 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 $as_echo "$ac_var='\''$ac_val'\''"
1652 if test -n "$ac_subst_files"; then
1654 ## ------------------- ##
1655 ## File substitutions. ##
1656 ## ------------------- ##
1659 for ac_var in $ac_subst_files
1661 eval ac_val=\$$ac_var
1663 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665 $as_echo "$ac_var='\''$ac_val'\''"
1670 if test -s confdefs.h; then
1680 test "$ac_signal" != 0 &&
1681 $as_echo "$as_me: caught signal $ac_signal"
1682 $as_echo "$as_me: exit $exit_status"
1684 rm -f core *.core core.conftest.* &&
1685 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1688 for ac_signal in 1 2 13 15; do
1689 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1693 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1694 rm -f -r conftest* confdefs.h
1696 # Predefined preprocessor variables.
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_NAME "$PACKAGE_NAME"
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_STRING "$PACKAGE_STRING"
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1723 # Let the site file select an alternate cache file if it wants to.
1724 # Prefer an explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728 ac_site_file1=$CONFIG_SITE
1729 elif test "x$prefix" != xNONE; then
1730 ac_site_file1=$prefix/share/config.site
1731 ac_site_file2=$prefix/etc/config.site
1733 ac_site_file1=$ac_default_prefix/share/config.site
1734 ac_site_file2=$ac_default_prefix/etc/config.site
1736 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1738 test "x$ac_site_file" = xNONE && continue
1739 if test -r "$ac_site_file"; then
1740 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1741 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1742 sed 's/^/| /' "$ac_site_file" >&5
1747 if test -r "$cache_file"; then
1748 # Some versions of bash will fail to source /dev/null (special
1749 # files actually), so we avoid doing that.
1750 if test -f "$cache_file"; then
1751 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1752 $as_echo "$as_me: loading cache $cache_file" >&6;}
1754 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1755 *) . "./$cache_file";;
1759 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1760 $as_echo "$as_me: creating cache $cache_file" >&6;}
1764 # Check that the precious variables saved in the cache have kept the same
1766 ac_cache_corrupted=false
1767 for ac_var in $ac_precious_vars; do
1768 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1769 eval ac_new_set=\$ac_env_${ac_var}_set
1770 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1771 eval ac_new_val=\$ac_env_${ac_var}_value
1772 case $ac_old_set,$ac_new_set in
1774 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1775 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1776 ac_cache_corrupted=: ;;
1778 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1779 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1780 ac_cache_corrupted=: ;;
1783 if test "x$ac_old_val" != "x$ac_new_val"; then
1784 # differences in whitespace do not lead to failure.
1785 ac_old_val_w=`echo x $ac_old_val`
1786 ac_new_val_w=`echo x $ac_new_val`
1787 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1788 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1789 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1790 ac_cache_corrupted=:
1792 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1793 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1794 eval $ac_var=\$ac_old_val
1796 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1797 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1798 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1799 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1802 # Pass precious variables to config.status.
1803 if test "$ac_new_set" = set; then
1805 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1806 *) ac_arg=$ac_var=$ac_new_val ;;
1808 case " $ac_configure_args " in
1809 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1810 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1814 if $ac_cache_corrupted; then
1815 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1817 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1818 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1819 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1820 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1821 { (exit 1); exit 1; }; }
1841 ac_cpp='$CPP $CPPFLAGS'
1842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1849 # Check whether --enable-checkmem was given.
1850 if test "${enable_checkmem+set}" = set; then
1851 enableval=$enable_checkmem; CHECKMEM=true
1854 # Check whether --enable-debug was given.
1855 if test "${enable_debug+set}" = set; then
1856 enableval=$enable_debug; DEBUG=true
1859 # Check whether --enable-profiling was given.
1860 if test "${enable_profiling+set}" = set; then
1861 enableval=$enable_profiling; PROFILING=true
1864 # Check whether --enable-warnings was given.
1865 if test "${enable_warnings+set}" = set; then
1866 enableval=$enable_warnings; ENABLE_WARNINGS=true
1869 # Check whether --enable-optimizations was given.
1870 if test "${enable_optimizations+set}" = set; then
1871 enableval=$enable_optimizations; OPTIMIZE=true
1874 # Check whether --enable-lame was given.
1875 if test "${enable_lame+set}" = set; then
1876 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1885 VERSION=2009-08-12-1514
1888 # ------------------------------------------------------------------
1890 if test "x${srcdir}" != "x."; then
1891 echo "--srcdir is not supported"
1895 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1896 if test "x$ENABLE_WARNINGS" '!=' "x";then
1897 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1900 if test "x$CHECKMEM" '!=' "x";then
1903 if test "x$PROFILING" '!=' "x";then
1906 if test "x$DEBUG" '!=' "x";then
1907 if test "x$PROFILING" = "x";then
1908 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1909 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1912 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1913 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1914 LDFLAGS="-g -pg $LIBS"
1916 else if test "x$OPTIMIZE" '!=' "x"; then
1917 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1918 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1920 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1921 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1925 CFLAGS="-fPIC $CFLAGS"
1926 CXXFLAGS="-fPIC $CFLAGS"
1929 #if test "x$OLDGCC" '!=' "x";then
1930 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1931 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1932 # CFLAGS="$CFLAGS -ansi -pendantic"
1933 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1936 export PACKAGE VERSION CFLAGS CXXFLAGS
1940 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1941 if test -f "$ac_dir/install-sh"; then
1943 ac_install_sh="$ac_aux_dir/install-sh -c"
1945 elif test -f "$ac_dir/install.sh"; then
1947 ac_install_sh="$ac_aux_dir/install.sh -c"
1949 elif test -f "$ac_dir/shtool"; then
1951 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 if test -z "$ac_aux_dir"; then
1956 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1957 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970 # Make sure we can run config.sub.
1971 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1972 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1973 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1974 { (exit 1); exit 1; }; }
1976 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1977 $as_echo_n "checking build system type... " >&6; }
1978 if test "${ac_cv_build+set}" = set; then
1979 $as_echo_n "(cached) " >&6
1981 ac_build_alias=$build_alias
1982 test "x$ac_build_alias" = x &&
1983 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1984 test "x$ac_build_alias" = x &&
1985 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1986 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1987 { (exit 1); exit 1; }; }
1988 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1989 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1990 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1991 { (exit 1); exit 1; }; }
1994 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1995 $as_echo "$ac_cv_build" >&6; }
1996 case $ac_cv_build in
1998 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1999 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2000 { (exit 1); exit 1; }; };;
2003 ac_save_IFS=$IFS; IFS='-'
2009 # Remember, the first character of IFS is used to create $*,
2010 # except with old shells:
2013 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2016 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2017 $as_echo_n "checking host system type... " >&6; }
2018 if test "${ac_cv_host+set}" = set; then
2019 $as_echo_n "(cached) " >&6
2021 if test "x$host_alias" = x; then
2022 ac_cv_host=$ac_cv_build
2024 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2025 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2026 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2027 { (exit 1); exit 1; }; }
2031 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2032 $as_echo "$ac_cv_host" >&6; }
2035 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2036 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2037 { (exit 1); exit 1; }; };;
2040 ac_save_IFS=$IFS; IFS='-'
2046 # Remember, the first character of IFS is used to create $*,
2047 # except with old shells:
2050 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2060 CXXFLAGS="$CXXFLAGS -fno-rtti"
2062 if test -d /opt/local/include && test -d /opt/local/lib; then
2063 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2064 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2066 # Use fink packages if available.
2067 #if test -d /sw/include && test -d /sw/lib; then
2068 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2069 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 if test -n "$ac_tool_prefix"; then
2082 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 $as_echo_n "checking for $ac_word... " >&6; }
2086 if test "${ac_cv_prog_CC+set}" = set; then
2087 $as_echo_n "(cached) " >&6
2089 if test -n "$CC"; then
2090 ac_cv_prog_CC="$CC" # Let the user override the test.
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2099 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 if test -n "$CC"; then
2111 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2112 $as_echo "$CC" >&6; }
2114 { $as_echo "$as_me:$LINENO: result: no" >&5
2115 $as_echo "no" >&6; }
2120 if test -z "$ac_cv_prog_CC"; then
2122 # Extract the first word of "gcc", so it can be a program name with args.
2123 set dummy gcc; ac_word=$2
2124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 $as_echo_n "checking for $ac_word... " >&6; }
2126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127 $as_echo_n "(cached) " >&6
2129 if test -n "$ac_ct_CC"; then
2130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2139 ac_cv_prog_ac_ct_CC="gcc"
2140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2150 if test -n "$ac_ct_CC"; then
2151 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2152 $as_echo "$ac_ct_CC" >&6; }
2154 { $as_echo "$as_me:$LINENO: result: no" >&5
2155 $as_echo "no" >&6; }
2158 if test "x$ac_ct_CC" = x; then
2161 case $cross_compiling:$ac_tool_warned in
2163 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2165 ac_tool_warned=yes ;;
2173 if test -z "$CC"; then
2174 if test -n "$ac_tool_prefix"; then
2175 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2176 set dummy ${ac_tool_prefix}cc; ac_word=$2
2177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 $as_echo_n "checking for $ac_word... " >&6; }
2179 if test "${ac_cv_prog_CC+set}" = set; then
2180 $as_echo_n "(cached) " >&6
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192 ac_cv_prog_CC="${ac_tool_prefix}cc"
2193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 if test -n "$CC"; then
2204 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2205 $as_echo "$CC" >&6; }
2207 { $as_echo "$as_me:$LINENO: result: no" >&5
2208 $as_echo "no" >&6; }
2214 if test -z "$CC"; then
2215 # Extract the first word of "cc", so it can be a program name with args.
2216 set dummy cc; ac_word=$2
2217 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 $as_echo_n "checking for $ac_word... " >&6; }
2219 if test "${ac_cv_prog_CC+set}" = set; then
2220 $as_echo_n "(cached) " >&6
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2234 ac_prog_rejected=yes
2238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 if test $ac_prog_rejected = yes; then
2246 # We found a bogon in the path, so make sure we never use it.
2247 set dummy $ac_cv_prog_CC
2249 if test $# != 0; then
2250 # We chose a different compiler from the bogus one.
2251 # However, it has the same basename, so the bogon will be chosen
2252 # first if we set CC to just the basename; use the full file name.
2254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2260 if test -n "$CC"; then
2261 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2262 $as_echo "$CC" >&6; }
2264 { $as_echo "$as_me:$LINENO: result: no" >&5
2265 $as_echo "no" >&6; }
2270 if test -z "$CC"; then
2271 if test -n "$ac_tool_prefix"; then
2272 for ac_prog in cl.exe
2274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if test "${ac_cv_prog_CC+set}" = set; then
2279 $as_echo_n "(cached) " >&6
2281 if test -n "$CC"; then
2282 ac_cv_prog_CC="$CC" # Let the user override the test.
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 if test -n "$CC"; then
2303 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2304 $as_echo "$CC" >&6; }
2306 { $as_echo "$as_me:$LINENO: result: no" >&5
2307 $as_echo "no" >&6; }
2311 test -n "$CC" && break
2314 if test -z "$CC"; then
2316 for ac_prog in cl.exe
2318 # Extract the first word of "$ac_prog", so it can be a program name with args.
2319 set dummy $ac_prog; ac_word=$2
2320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 $as_echo_n "checking for $ac_word... " >&6; }
2322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2323 $as_echo_n "(cached) " >&6
2325 if test -n "$ac_ct_CC"; then
2326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_ac_ct_CC="$ac_prog"
2336 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2346 if test -n "$ac_ct_CC"; then
2347 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2348 $as_echo "$ac_ct_CC" >&6; }
2350 { $as_echo "$as_me:$LINENO: result: no" >&5
2351 $as_echo "no" >&6; }
2355 test -n "$ac_ct_CC" && break
2358 if test "x$ac_ct_CC" = x; then
2361 case $cross_compiling:$ac_tool_warned in
2363 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2365 ac_tool_warned=yes ;;
2374 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2377 See \`config.log' for more details." >&5
2378 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2379 See \`config.log' for more details." >&2;}
2380 { (exit 1); exit 1; }; }; }
2382 # Provide some information about the compiler.
2383 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2386 { (ac_try="$ac_compiler --version >&5"
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2392 $as_echo "$ac_try_echo") >&5
2393 (eval "$ac_compiler --version >&5") 2>&5
2395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }
2397 { (ac_try="$ac_compiler -v >&5"
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2403 $as_echo "$ac_try_echo") >&5
2404 (eval "$ac_compiler -v >&5") 2>&5
2406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }
2408 { (ac_try="$ac_compiler -V >&5"
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2414 $as_echo "$ac_try_echo") >&5
2415 (eval "$ac_compiler -V >&5") 2>&5
2417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }
2420 cat >conftest.$ac_ext <<_ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2435 ac_clean_files_save=$ac_clean_files
2436 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2437 # Try to create an executable without -o first, disregard a.out.
2438 # It will help us diagnose broken compilers, and finding out an intuition
2440 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2441 $as_echo_n "checking for C compiler default output file name... " >&6; }
2442 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2444 # The possible output files:
2445 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2448 for ac_file in $ac_files
2451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2452 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2457 if { (ac_try="$ac_link_default"
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2463 $as_echo "$ac_try_echo") >&5
2464 (eval "$ac_link_default") 2>&5
2466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; then
2468 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2469 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2470 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2471 # so that the user can short-circuit this test for compilers unknown to
2473 for ac_file in $ac_files ''
2475 test -f "$ac_file" || continue
2477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2480 # We found the default executable, but exeext='' is most
2484 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2486 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2488 # We set ac_cv_exeext here because the later test for it is not
2489 # safe: cross compilers may not add the suffix if given an `-o'
2490 # argument, so we may need to know it at that point already.
2491 # Even if this section looks crufty: it has the advantage of
2498 test "$ac_cv_exeext" = no && ac_cv_exeext=
2504 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2505 $as_echo "$ac_file" >&6; }
2506 if test -z "$ac_file"; then
2507 $as_echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2510 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2513 See \`config.log' for more details." >&5
2514 $as_echo "$as_me: error: C compiler cannot create executables
2515 See \`config.log' for more details." >&2;}
2516 { (exit 77); exit 77; }; }; }
2519 ac_exeext=$ac_cv_exeext
2521 # Check that the compiler produces executables we can run. If not, either
2522 # the compiler is broken, or we cross compile.
2523 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2524 $as_echo_n "checking whether the C compiler works... " >&6; }
2525 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2526 # If not cross compiling, check that we can run a simple program.
2527 if test "$cross_compiling" != yes; then
2528 if { ac_try='./$ac_file'
2529 { (case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2534 $as_echo "$ac_try_echo") >&5
2535 (eval "$ac_try") 2>&5
2537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2541 if test "$cross_compiling" = maybe; then
2544 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2546 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2547 If you meant to cross compile, use \`--host'.
2548 See \`config.log' for more details." >&5
2549 $as_echo "$as_me: error: cannot run C compiled programs.
2550 If you meant to cross compile, use \`--host'.
2551 See \`config.log' for more details." >&2;}
2552 { (exit 1); exit 1; }; }; }
2556 { $as_echo "$as_me:$LINENO: result: yes" >&5
2557 $as_echo "yes" >&6; }
2559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2560 ac_clean_files=$ac_clean_files_save
2561 # Check that the compiler produces executables we can run. If not, either
2562 # the compiler is broken, or we cross compile.
2563 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2564 $as_echo_n "checking whether we are cross compiling... " >&6; }
2565 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2566 $as_echo "$cross_compiling" >&6; }
2568 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2569 $as_echo_n "checking for suffix of executables... " >&6; }
2570 if { (ac_try="$ac_link"
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2576 $as_echo "$ac_try_echo") >&5
2577 (eval "$ac_link") 2>&5
2579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; then
2581 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2582 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2583 # work properly (i.e., refer to `conftest.exe'), while it won't with
2585 for ac_file in conftest.exe conftest conftest.*; do
2586 test -f "$ac_file" || continue
2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2589 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2595 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2598 See \`config.log' for more details." >&5
2599 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2600 See \`config.log' for more details." >&2;}
2601 { (exit 1); exit 1; }; }; }
2604 rm -f conftest$ac_cv_exeext
2605 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2606 $as_echo "$ac_cv_exeext" >&6; }
2608 rm -f conftest.$ac_ext
2609 EXEEXT=$ac_cv_exeext
2611 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2612 $as_echo_n "checking for suffix of object files... " >&6; }
2613 if test "${ac_cv_objext+set}" = set; then
2614 $as_echo_n "(cached) " >&6
2616 cat >conftest.$ac_ext <<_ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2631 rm -f conftest.o conftest.obj
2632 if { (ac_try="$ac_compile"
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2638 $as_echo "$ac_try_echo") >&5
2639 (eval "$ac_compile") 2>&5
2641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; then
2643 for ac_file in conftest.o conftest.obj conftest.*; do
2644 test -f "$ac_file" || continue;
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2652 $as_echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2657 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2658 See \`config.log' for more details." >&5
2659 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details." >&2;}
2661 { (exit 1); exit 1; }; }; }
2664 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2666 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2667 $as_echo "$ac_cv_objext" >&6; }
2668 OBJEXT=$ac_cv_objext
2670 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2671 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2672 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2673 $as_echo_n "(cached) " >&6
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2700 $as_echo "$ac_try_echo") >&5
2701 (eval "$ac_compile") 2>conftest.er1
2703 grep -v '^ *+' conftest.er1 >conftest.err
2705 cat conftest.err >&5
2706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } && {
2708 test -z "$ac_c_werror_flag" ||
2709 test ! -s conftest.err
2710 } && test -s conftest.$ac_objext; then
2713 $as_echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2723 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2725 if test $ac_compiler_gnu = yes; then
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_save_CFLAGS=$CFLAGS
2732 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2733 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2734 if test "${ac_cv_prog_cc_g+set}" = set; then
2735 $as_echo_n "(cached) " >&6
2737 ac_save_c_werror_flag=$ac_c_werror_flag
2738 ac_c_werror_flag=yes
2741 cat >conftest.$ac_ext <<_ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2756 rm -f conftest.$ac_objext
2757 if { (ac_try="$ac_compile"
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2763 $as_echo "$ac_try_echo") >&5
2764 (eval "$ac_compile") 2>conftest.er1
2766 grep -v '^ *+' conftest.er1 >conftest.err
2768 cat conftest.err >&5
2769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } && {
2771 test -z "$ac_c_werror_flag" ||
2772 test ! -s conftest.err
2773 } && test -s conftest.$ac_objext; then
2776 $as_echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2780 cat >conftest.$ac_ext <<_ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2795 rm -f conftest.$ac_objext
2796 if { (ac_try="$ac_compile"
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2802 $as_echo "$ac_try_echo") >&5
2803 (eval "$ac_compile") 2>conftest.er1
2805 grep -v '^ *+' conftest.er1 >conftest.err
2807 cat conftest.err >&5
2808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } && {
2810 test -z "$ac_c_werror_flag" ||
2811 test ! -s conftest.err
2812 } && test -s conftest.$ac_objext; then
2815 $as_echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2818 ac_c_werror_flag=$ac_save_c_werror_flag
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2835 rm -f conftest.$ac_objext
2836 if { (ac_try="$ac_compile"
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2842 $as_echo "$ac_try_echo") >&5
2843 (eval "$ac_compile") 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } && {
2850 test -z "$ac_c_werror_flag" ||
2851 test ! -s conftest.err
2852 } && test -s conftest.$ac_objext; then
2855 $as_echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 ac_c_werror_flag=$ac_save_c_werror_flag
2870 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2871 $as_echo "$ac_cv_prog_cc_g" >&6; }
2872 if test "$ac_test_CFLAGS" = set; then
2873 CFLAGS=$ac_save_CFLAGS
2874 elif test $ac_cv_prog_cc_g = yes; then
2875 if test "$GCC" = yes; then
2881 if test "$GCC" = yes; then
2887 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2888 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2889 if test "${ac_cv_prog_cc_c89+set}" = set; then
2890 $as_echo_n "(cached) " >&6
2892 ac_cv_prog_cc_c89=no
2894 cat >conftest.$ac_ext <<_ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2902 #include <sys/types.h>
2903 #include <sys/stat.h>
2904 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2905 struct buf { int x; };
2906 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2907 static char *e (p, i)
2913 static char *f (char * (*g) (char **, int), char **p, ...)
2918 s = g (p, va_arg (v,int));
2923 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2924 function prototypes and stuff, but not '\xHH' hex character constants.
2925 These don't provoke an error unfortunately, instead are silently treated
2926 as 'x'. The following induces an error, until -std is added to get
2927 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2928 array size at least. It's necessary to write '\x00'==0 to get something
2929 that's true only with -std. */
2930 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2932 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2933 inside strings and character constants. */
2935 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2937 int test (int i, double x);
2938 struct s1 {int (*f) (int a);};
2939 struct s2 {int (*f) (double a);};
2940 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2946 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2951 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2952 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2954 CC="$ac_save_CC $ac_arg"
2955 rm -f conftest.$ac_objext
2956 if { (ac_try="$ac_compile"
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2962 $as_echo "$ac_try_echo") >&5
2963 (eval "$ac_compile") 2>conftest.er1
2965 grep -v '^ *+' conftest.er1 >conftest.err
2967 cat conftest.err >&5
2968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } && {
2970 test -z "$ac_c_werror_flag" ||
2971 test ! -s conftest.err
2972 } && test -s conftest.$ac_objext; then
2973 ac_cv_prog_cc_c89=$ac_arg
2975 $as_echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2981 rm -f core conftest.err conftest.$ac_objext
2982 test "x$ac_cv_prog_cc_c89" != "xno" && break
2984 rm -f conftest.$ac_ext
2989 case "x$ac_cv_prog_cc_c89" in
2991 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2992 $as_echo "none needed" >&6; } ;;
2994 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2995 $as_echo "unsupported" >&6; } ;;
2997 CC="$CC $ac_cv_prog_cc_c89"
2998 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2999 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 ac_cpp='$CXXCPP $CPPFLAGS'
3011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3014 if test -z "$CXX"; then
3015 if test -n "$CCC"; then
3018 if test -n "$ac_tool_prefix"; then
3019 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3023 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if test "${ac_cv_prog_CXX+set}" = set; then
3026 $as_echo_n "(cached) " >&6
3028 if test -n "$CXX"; then
3029 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 if test -n "$CXX"; then
3050 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3051 $as_echo "$CXX" >&6; }
3053 { $as_echo "$as_me:$LINENO: result: no" >&5
3054 $as_echo "no" >&6; }
3058 test -n "$CXX" && break
3061 if test -z "$CXX"; then
3063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3065 # Extract the first word of "$ac_prog", so it can be a program name with args.
3066 set dummy $ac_prog; ac_word=$2
3067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$ac_ct_CXX"; then
3073 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_CXX="$ac_prog"
3083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3093 if test -n "$ac_ct_CXX"; then
3094 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3095 $as_echo "$ac_ct_CXX" >&6; }
3097 { $as_echo "$as_me:$LINENO: result: no" >&5
3098 $as_echo "no" >&6; }
3102 test -n "$ac_ct_CXX" && break
3105 if test "x$ac_ct_CXX" = x; then
3108 case $cross_compiling:$ac_tool_warned in
3110 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3112 ac_tool_warned=yes ;;
3120 # Provide some information about the compiler.
3121 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3124 { (ac_try="$ac_compiler --version >&5"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130 $as_echo "$ac_try_echo") >&5
3131 (eval "$ac_compiler --version >&5") 2>&5
3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }
3135 { (ac_try="$ac_compiler -v >&5"
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3141 $as_echo "$ac_try_echo") >&5
3142 (eval "$ac_compiler -v >&5") 2>&5
3144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }
3146 { (ac_try="$ac_compiler -V >&5"
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3152 $as_echo "$ac_try_echo") >&5
3153 (eval "$ac_compiler -V >&5") 2>&5
3155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }
3158 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3159 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3160 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3161 $as_echo_n "(cached) " >&6
3163 cat >conftest.$ac_ext <<_ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3188 $as_echo "$ac_try_echo") >&5
3189 (eval "$ac_compile") 2>conftest.er1
3191 grep -v '^ *+' conftest.er1 >conftest.err
3193 cat conftest.err >&5
3194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } && {
3196 test -z "$ac_cxx_werror_flag" ||
3197 test ! -s conftest.err
3198 } && test -s conftest.$ac_objext; then
3201 $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3211 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3212 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3213 if test $ac_compiler_gnu = yes; then
3218 ac_test_CXXFLAGS=${CXXFLAGS+set}
3219 ac_save_CXXFLAGS=$CXXFLAGS
3220 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3221 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3222 if test "${ac_cv_prog_cxx_g+set}" = set; then
3223 $as_echo_n "(cached) " >&6
3225 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3226 ac_cxx_werror_flag=yes
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3244 rm -f conftest.$ac_objext
3245 if { (ac_try="$ac_compile"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3251 $as_echo "$ac_try_echo") >&5
3252 (eval "$ac_compile") 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } && {
3259 test -z "$ac_cxx_werror_flag" ||
3260 test ! -s conftest.err
3261 } && test -s conftest.$ac_objext; then
3262 ac_cv_prog_cxx_g=yes
3264 $as_echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3290 $as_echo "$ac_try_echo") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3293 grep -v '^ *+' conftest.er1 >conftest.err
3295 cat conftest.err >&5
3296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } && {
3298 test -z "$ac_cxx_werror_flag" ||
3299 test ! -s conftest.err
3300 } && test -s conftest.$ac_objext; then
3303 $as_echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3323 rm -f conftest.$ac_objext
3324 if { (ac_try="$ac_compile"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3330 $as_echo "$ac_try_echo") >&5
3331 (eval "$ac_compile") 2>conftest.er1
3333 grep -v '^ *+' conftest.er1 >conftest.err
3335 cat conftest.err >&5
3336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } && {
3338 test -z "$ac_cxx_werror_flag" ||
3339 test ! -s conftest.err
3340 } && test -s conftest.$ac_objext; then
3341 ac_cv_prog_cxx_g=yes
3343 $as_echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3358 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3359 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3360 if test "$ac_test_CXXFLAGS" = set; then
3361 CXXFLAGS=$ac_save_CXXFLAGS
3362 elif test $ac_cv_prog_cxx_g = yes; then
3363 if test "$GXX" = yes; then
3369 if test "$GXX" = yes; then
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3385 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3387 cat > conftest.c << EOF
3391 int main (int argc, char*argv)
3401 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3402 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3403 { $as_echo "$as_me:$LINENO: result: yes" >&5
3404 $as_echo "yes" >&6; }
3408 echo "configure: failed program was:" >&5
3410 { $as_echo "$as_me:$LINENO: result: no" >&5
3411 $as_echo "no" >&6; }
3416 if test "x$GCC_IS_OK" '=' "x";then
3417 echo "***************************************************"
3418 echo "* Your gcc is too old to compile this!"
3420 echo "* The last version compileable by this compiler is "
3421 echo "* swftools 0.7.0, which you can download from "
3422 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3424 echo "* Newer versions require at least gcc 3.0.0 "
3425 echo "***************************************************"
3429 if test "x$CHECKMEM" '!=' "x";then
3433 #unset ac_cv_prog_CC
3434 #unset ac_cv_prog_CXX
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3444 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3445 # On Suns, sometimes $CPP names a directory.
3446 if test -n "$CPP" && test -d "$CPP"; then
3449 if test -z "$CPP"; then
3450 if test "${ac_cv_prog_CPP+set}" = set; then
3451 $as_echo_n "(cached) " >&6
3453 # Double quotes because CPP needs to be expanded
3454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3457 for ac_c_preproc_warn_flag in '' yes
3459 # Use a header file that comes with gcc, so configuring glibc
3460 # with a fresh cross-compiler works.
3461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3462 # <limits.h> exists even on freestanding compilers.
3463 # On the NeXT, cc -E runs the code through the compiler's parser,
3464 # not just through cpp. "Syntax error" is here to catch this case.
3465 cat >conftest.$ac_ext <<_ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3472 # include <limits.h>
3474 # include <assert.h>
3478 if { (ac_try="$ac_cpp conftest.$ac_ext"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3484 $as_echo "$ac_try_echo") >&5
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null && {
3492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Broken: fails on valid input.
3504 rm -f conftest.err conftest.$ac_ext
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <ac_nonexistent.h>
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3525 grep -v '^ *+' conftest.er1 >conftest.err
3527 cat conftest.err >&5
3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } >/dev/null && {
3530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3533 # Broken: success on invalid input.
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 # Passes both tests.
3544 rm -f conftest.err conftest.$ac_ext
3547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3548 rm -f conftest.err conftest.$ac_ext
3549 if $ac_preproc_ok; then
3561 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3562 $as_echo "$CPP" >&6; }
3564 for ac_c_preproc_warn_flag in '' yes
3566 # Use a header file that comes with gcc, so configuring glibc
3567 # with a fresh cross-compiler works.
3568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3569 # <limits.h> exists even on freestanding compilers.
3570 # On the NeXT, cc -E runs the code through the compiler's parser,
3571 # not just through cpp. "Syntax error" is here to catch this case.
3572 cat >conftest.$ac_ext <<_ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3579 # include <limits.h>
3581 # include <assert.h>
3585 if { (ac_try="$ac_cpp conftest.$ac_ext"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3591 $as_echo "$ac_try_echo") >&5
3592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } >/dev/null && {
3599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 # Broken: fails on valid input.
3611 rm -f conftest.err conftest.$ac_ext
3613 # OK, works on sane cases. Now check whether nonexistent headers
3614 # can be detected and how.
3615 cat >conftest.$ac_ext <<_ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621 #include <ac_nonexistent.h>
3623 if { (ac_try="$ac_cpp conftest.$ac_ext"
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } >/dev/null && {
3637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3640 # Broken: success on invalid input.
3643 $as_echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 # Passes both tests.
3651 rm -f conftest.err conftest.$ac_ext
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.err conftest.$ac_ext
3656 if $ac_preproc_ok; then
3659 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3662 See \`config.log' for more details." >&5
3663 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3664 See \`config.log' for more details." >&2;}
3665 { (exit 1); exit 1; }; }; }
3669 ac_cpp='$CPP $CPPFLAGS'
3670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_RANLIB+set}" = set; then
3681 $as_echo_n "(cached) " >&6
3683 if test -n "$RANLIB"; then
3684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 RANLIB=$ac_cv_prog_RANLIB
3704 if test -n "$RANLIB"; then
3705 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3706 $as_echo "$RANLIB" >&6; }
3708 { $as_echo "$as_me:$LINENO: result: no" >&5
3709 $as_echo "no" >&6; }
3714 if test -z "$ac_cv_prog_RANLIB"; then
3715 ac_ct_RANLIB=$RANLIB
3716 # Extract the first word of "ranlib", so it can be a program name with args.
3717 set dummy ranlib; ac_word=$2
3718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3721 $as_echo_n "(cached) " >&6
3723 if test -n "$ac_ct_RANLIB"; then
3724 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_ac_ct_RANLIB="ranlib"
3734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3744 if test -n "$ac_ct_RANLIB"; then
3745 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3746 $as_echo "$ac_ct_RANLIB" >&6; }
3748 { $as_echo "$as_me:$LINENO: result: no" >&5
3749 $as_echo "no" >&6; }
3752 if test "x$ac_ct_RANLIB" = x; then
3755 case $cross_compiling:$ac_tool_warned in
3757 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3761 RANLIB=$ac_ct_RANLIB
3764 RANLIB="$ac_cv_prog_RANLIB"
3767 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3768 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3770 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3771 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3772 $as_echo_n "(cached) " >&6
3774 cat >conftest.make <<\_ACEOF
3777 @echo '@@@%%%=$(MAKE)=@@@%%%'
3779 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3780 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3782 eval ac_cv_prog_make_${ac_make}_set=yes;;
3784 eval ac_cv_prog_make_${ac_make}_set=no;;
3788 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3789 { $as_echo "$as_me:$LINENO: result: yes" >&5
3790 $as_echo "yes" >&6; }
3793 { $as_echo "$as_me:$LINENO: result: no" >&5
3794 $as_echo "no" >&6; }
3795 SET_MAKE="MAKE=${MAKE-make}"
3798 # Find a good install program. We prefer a C program (faster),
3799 # so one script is as good as another. But avoid the broken or
3800 # incompatible versions:
3801 # SysV /etc/install, /usr/sbin/install
3802 # SunOS /usr/etc/install
3803 # IRIX /sbin/install
3805 # AmigaOS /C/install, which installs bootblocks on floppy discs
3806 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3809 # OS/2's system install, which has a completely different semantic
3810 # ./install, which can be erroneously created by make from ./install.sh.
3811 # Reject install programs that cannot install multiple files.
3812 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3813 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3814 if test -z "$INSTALL"; then
3815 if test "${ac_cv_path_install+set}" = set; then
3816 $as_echo_n "(cached) " >&6
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 test -z "$as_dir" && as_dir=.
3823 # Account for people who put trailing slashes in PATH elements.
3825 ./ | .// | /cC/* | \
3826 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3827 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3830 # OSF1 and SCO ODT 3.0 have their own names for install.
3831 # Don't use installbsd from OSF since it installs stuff as root
3833 for ac_prog in ginstall scoinst install; do
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3836 if test $ac_prog = install &&
3837 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3838 # AIX install. It has an incompatible calling convention.
3840 elif test $ac_prog = install &&
3841 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3842 # program-specific install script used by HP pwplus--don't use.
3845 rm -rf conftest.one conftest.two conftest.dir
3846 echo one > conftest.one
3847 echo two > conftest.two
3849 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3850 test -s conftest.one && test -s conftest.two &&
3851 test -s conftest.dir/conftest.one &&
3852 test -s conftest.dir/conftest.two
3854 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3867 rm -rf conftest.one conftest.two conftest.dir
3870 if test "${ac_cv_path_install+set}" = set; then
3871 INSTALL=$ac_cv_path_install
3873 # As a last resort, use the slow shell script. Don't cache a
3874 # value for INSTALL within a source directory, because that will
3875 # break other packages using the cache if that directory is
3876 # removed, or if the value is a relative name.
3877 INSTALL=$ac_install_sh
3880 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3881 $as_echo "$INSTALL" >&6; }
3883 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3884 # It thinks the first close brace ends the variable substitution.
3885 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3887 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3889 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3891 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3892 $as_echo_n "checking whether ln -s works... " >&6; }
3894 if test "$LN_S" = "ln -s"; then
3895 { $as_echo "$as_me:$LINENO: result: yes" >&5
3896 $as_echo "yes" >&6; }
3898 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3899 $as_echo "no, using $LN_S" >&6; }
3902 for ac_prog in gzip uncompress compress
3904 # Extract the first word of "$ac_prog", so it can be a program name with args.
3905 set dummy $ac_prog; ac_word=$2
3906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3909 $as_echo_n "(cached) " >&6
3911 if test -n "$UNCOMPRESS"; then
3912 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 ac_cv_prog_UNCOMPRESS="$ac_prog"
3922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3932 if test -n "$UNCOMPRESS"; then
3933 { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3934 $as_echo "$UNCOMPRESS" >&6; }
3936 { $as_echo "$as_me:$LINENO: result: no" >&5
3937 $as_echo "no" >&6; }
3941 test -n "$UNCOMPRESS" && break
3952 if test "x$EXEEXT" = "x.exe";then
3961 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3962 $as_echo_n "checking host system type... " >&6; }
3963 if test "${ac_cv_host+set}" = set; then
3964 $as_echo_n "(cached) " >&6
3966 if test "x$host_alias" = x; then
3967 ac_cv_host=$ac_cv_build
3969 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3970 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3971 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3972 { (exit 1); exit 1; }; }
3976 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3977 $as_echo "$ac_cv_host" >&6; }
3980 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3981 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3982 { (exit 1); exit 1; }; };;
3985 ac_save_IFS=$IFS; IFS='-'
3991 # Remember, the first character of IFS is used to create $*,
3992 # except with old shells:
3995 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4000 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4001 $as_echo_n "checking for target system... " >&6; }
4005 *cygwin* ) CYGWIN=yes;;
4006 *mingw* ) MINGW=yes;;
4010 if test "x$MINGW" = "xyes"; then
4011 #fix for the debian distribution of mingw
4012 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4013 AR="/usr/i586-mingw32msvc/bin/ar"
4015 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4016 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4018 #fix for the gentoo distribution of mingw
4019 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4020 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4022 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4023 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4025 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4026 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4032 if test "x${CYGWIN}" = "xyes"; then
4034 cat >>confdefs.h <<\_ACEOF
4038 { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4039 $as_echo "cygwin" >&6; }
4041 if test "x${MINGW}" = "xyes"; then
4043 cat >>confdefs.h <<\_ACEOF
4049 cat >>confdefs.h <<\_ACEOF
4053 LIBS="$LIBS -lws2_32 -lgdi32"
4054 { $as_echo "$as_me:$LINENO: result: mingw" >&5
4055 $as_echo "mingw" >&6; }
4060 cat >>confdefs.h <<\_ACEOF
4064 { $as_echo "$as_me:$LINENO: result: " >&5
4071 if test "x${MINGW}" != "xyes"; then
4074 cat >>confdefs.h <<\_ACEOF
4087 # The following tries to make use of includes and libraries in
4088 # /usr/local, too. Notice: A -I/usr/local/include might break
4089 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4090 # especially on systems which link /usr/local to /usr, so it has yet
4091 # to be seen how useful this is.
4092 if test -d /usr/local/lib; then
4093 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4095 if test -d /usr/local/include; then
4096 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4097 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4100 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4101 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4102 # and $prefix/include, which should be included in our search paths for libraries
4104 LDFLAGS="$LDFLAGS -L${libdir}"
4105 CPPFLAGS="$CPPFLAGS -I${includedir}"
4106 # TODO- test whether gcc still works after this
4110 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4113 # this must be done after (I believe) AC_PROG_MAKE_SET
4114 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4115 if test "$MACOSX";then
4118 STRIP="@echo debug enabled, not stripping "
4126 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4127 $as_echo_n "checking for sin in -lm... " >&6; }
4128 if test "${ac_cv_lib_m_sin+set}" = set; then
4129 $as_echo_n "(cached) " >&6
4131 ac_check_lib_save_LIBS=$LIBS
4133 cat >conftest.$ac_ext <<_ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4140 /* Override any GCC internal prototype to avoid an error.
4141 Use char because int might match the return type of a GCC
4142 builtin and then its argument prototype would still apply. */
4155 rm -f conftest.$ac_objext conftest$ac_exeext
4156 if { (ac_try="$ac_link"
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4162 $as_echo "$ac_try_echo") >&5
4163 (eval "$ac_link") 2>conftest.er1
4165 grep -v '^ *+' conftest.er1 >conftest.err
4167 cat conftest.err >&5
4168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } && {
4170 test -z "$ac_c_werror_flag" ||
4171 test ! -s conftest.err
4172 } && test -s conftest$ac_exeext && {
4173 test "$cross_compiling" = yes ||
4174 $as_test_x conftest$ac_exeext
4178 $as_echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4184 rm -rf conftest.dSYM
4185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4186 conftest$ac_exeext conftest.$ac_ext
4187 LIBS=$ac_check_lib_save_LIBS
4189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4190 $as_echo "$ac_cv_lib_m_sin" >&6; }
4191 if test "x$ac_cv_lib_m_sin" = x""yes; then
4192 cat >>confdefs.h <<_ACEOF
4199 echo "Error: Math library not found.";
4205 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4206 $as_echo_n "checking for deflate in -lz... " >&6; }
4207 if test "${ac_cv_lib_z_deflate+set}" = set; then
4208 $as_echo_n "(cached) " >&6
4210 ac_check_lib_save_LIBS=$LIBS
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4219 /* Override any GCC internal prototype to avoid an error.
4220 Use char because int might match the return type of a GCC
4221 builtin and then its argument prototype would still apply. */
4234 rm -f conftest.$ac_objext conftest$ac_exeext
4235 if { (ac_try="$ac_link"
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4241 $as_echo "$ac_try_echo") >&5
4242 (eval "$ac_link") 2>conftest.er1
4244 grep -v '^ *+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } && {
4249 test -z "$ac_c_werror_flag" ||
4250 test ! -s conftest.err
4251 } && test -s conftest$ac_exeext && {
4252 test "$cross_compiling" = yes ||
4253 $as_test_x conftest$ac_exeext
4255 ac_cv_lib_z_deflate=yes
4257 $as_echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4260 ac_cv_lib_z_deflate=no
4263 rm -rf conftest.dSYM
4264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4265 conftest$ac_exeext conftest.$ac_ext
4266 LIBS=$ac_check_lib_save_LIBS
4268 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4269 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4270 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4271 cat >>confdefs.h <<_ACEOF
4282 if test "x$ZLIBMISSING" = "xtrue";then
4285 echo "You need zlib to compile swftools"
4291 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4292 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4293 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4294 $as_echo_n "(cached) " >&6
4296 ac_check_lib_save_LIBS=$LIBS
4298 cat >conftest.$ac_ext <<_ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4305 /* Override any GCC internal prototype to avoid an error.
4306 Use char because int might match the return type of a GCC
4307 builtin and then its argument prototype would still apply. */
4311 char jpeg_write_raw_data ();
4315 return jpeg_write_raw_data ();
4320 rm -f conftest.$ac_objext conftest$ac_exeext
4321 if { (ac_try="$ac_link"
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4327 $as_echo "$ac_try_echo") >&5
4328 (eval "$ac_link") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } && {
4335 test -z "$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 } && test -s conftest$ac_exeext && {
4338 test "$cross_compiling" = yes ||
4339 $as_test_x conftest$ac_exeext
4341 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4343 $as_echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4349 rm -rf conftest.dSYM
4350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4351 conftest$ac_exeext conftest.$ac_ext
4352 LIBS=$ac_check_lib_save_LIBS
4354 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4355 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4356 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4357 cat >>confdefs.h <<_ACEOF
4358 #define HAVE_LIBJPEG 1
4368 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4369 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4370 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4371 $as_echo_n "(cached) " >&6
4373 ac_check_lib_save_LIBS=$LIBS
4374 LIBS="-lungif $LIBS"
4375 cat >conftest.$ac_ext <<_ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4382 /* Override any GCC internal prototype to avoid an error.
4383 Use char because int might match the return type of a GCC
4384 builtin and then its argument prototype would still apply. */
4397 rm -f conftest.$ac_objext conftest$ac_exeext
4398 if { (ac_try="$ac_link"
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4404 $as_echo "$ac_try_echo") >&5
4405 (eval "$ac_link") 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } && {
4412 test -z "$ac_c_werror_flag" ||
4413 test ! -s conftest.err
4414 } && test -s conftest$ac_exeext && {
4415 test "$cross_compiling" = yes ||
4416 $as_test_x conftest$ac_exeext
4418 ac_cv_lib_ungif_DGifOpen=yes
4420 $as_echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4423 ac_cv_lib_ungif_DGifOpen=no
4426 rm -rf conftest.dSYM
4427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4428 conftest$ac_exeext conftest.$ac_ext
4429 LIBS=$ac_check_lib_save_LIBS
4431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4432 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4433 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4434 cat >>confdefs.h <<_ACEOF
4435 #define HAVE_LIBUNGIF 1
4438 LIBS="-lungif $LIBS"
4444 if test "$UNGIFMISSING";then
4447 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4448 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4449 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4450 $as_echo_n "(cached) " >&6
4452 ac_check_lib_save_LIBS=$LIBS
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4461 /* Override any GCC internal prototype to avoid an error.
4462 Use char because int might match the return type of a GCC
4463 builtin and then its argument prototype would still apply. */
4476 rm -f conftest.$ac_objext conftest$ac_exeext
4477 if { (ac_try="$ac_link"
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484 (eval "$ac_link") 2>conftest.er1
4486 grep -v '^ *+' conftest.er1 >conftest.err
4488 cat conftest.err >&5
4489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && {
4491 test -z "$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4493 } && test -s conftest$ac_exeext && {
4494 test "$cross_compiling" = yes ||
4495 $as_test_x conftest$ac_exeext
4497 ac_cv_lib_gif_DGifOpen=yes
4499 $as_echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 ac_cv_lib_gif_DGifOpen=no
4505 rm -rf conftest.dSYM
4506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4507 conftest$ac_exeext conftest.$ac_ext
4508 LIBS=$ac_check_lib_save_LIBS
4510 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4511 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4512 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4513 cat >>confdefs.h <<_ACEOF
4514 #define HAVE_LIBGIF 1
4526 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4527 $as_echo_n "checking for byte order... " >&6; }
4528 if test "$cross_compiling" = yes; then
4531 cat >conftest.$ac_ext <<_ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4538 int main (int argc, char *argv[])
4545 rm -f conftest$ac_exeext
4546 if { (ac_try="$ac_link"
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4552 $as_echo "$ac_try_echo") >&5
4553 (eval "$ac_link") 2>&5
4555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4557 { (case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562 $as_echo "$ac_try_echo") >&5
4563 (eval "$ac_try") 2>&5
4565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4569 $as_echo "$as_me: program exited with status $ac_status" >&5
4570 $as_echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4576 rm -rf conftest.dSYM
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583 if test "x${CROSSCOMPILE}" = "x1"; then
4584 { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4585 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4586 { $as_echo "$as_me:$LINENO: checking target system type" >&5
4587 $as_echo_n "checking target system type... " >&6; }
4588 if test "${ac_cv_target+set}" = set; then
4589 $as_echo_n "(cached) " >&6
4591 if test "x$target_alias" = x; then
4592 ac_cv_target=$ac_cv_host
4594 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4595 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4596 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4597 { (exit 1); exit 1; }; }
4601 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4602 $as_echo "$ac_cv_target" >&6; }
4603 case $ac_cv_target in
4605 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4606 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4607 { (exit 1); exit 1; }; };;
4609 target=$ac_cv_target
4610 ac_save_IFS=$IFS; IFS='-'
4616 # Remember, the first character of IFS is used to create $*,
4617 # except with old shells:
4620 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4623 # The aliases save the names the user supplied, while $host etc.
4624 # will get canonicalized.
4625 test -n "$target_alias" &&
4626 test "$program_prefix$program_suffix$program_transform_name" = \
4628 program_prefix=${target_alias}-
4629 { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4630 $as_echo_n "checking for byte order, try 2... " >&6; }
4635 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4642 if test "x${LITTLEENDIAN}" = "x1"; then
4643 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4644 $as_echo "little endian" >&6; }
4648 if test "x${BIGENDIAN}" = "x1"; then
4649 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4650 $as_echo "big endian" >&6; }
4653 export WORDS_BIGENDIAN
4655 cat >>confdefs.h <<\_ACEOF
4656 #define WORDS_BIGENDIAN 1
4660 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4661 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4662 $as_echo "unknown" >&6; }
4663 echo Byte order could not determined.
4669 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4670 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4671 if test "$cross_compiling" = yes; then
4674 cat >conftest.$ac_ext <<_ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h. */
4682 int main (int argc, char*argv[])
4684 return system("test `touch config.tmp2`");
4688 rm -f conftest$ac_exeext
4689 if { (ac_try="$ac_link"
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4695 $as_echo "$ac_try_echo") >&5
4696 (eval "$ac_link") 2>&5
4698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4700 { (case "(($ac_try" in
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4705 $as_echo "$ac_try_echo") >&5
4706 (eval "$ac_try") 2>&5
4708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4712 $as_echo "$as_me: program exited with status $ac_status" >&5
4713 $as_echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4717 rm -rf conftest.dSYM
4718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4723 if test "x${OK}" = "xOK";then
4724 test -f config.tmp2 || OK=
4727 if test "x${CROSSCOMPILE}" = "x1";then
4730 if test "x${OK}" = "xOK";then
4732 { $as_echo "$as_me:$LINENO: result: yes" >&5
4733 $as_echo "yes" >&6; }
4735 export SYSTEM_BACKTICKS
4737 cat >>confdefs.h <<\_ACEOF
4738 #define SYSTEM_BACKTICKS 1
4742 { $as_echo "$as_me:$LINENO: result: no" >&5
4743 $as_echo "no" >&6; }
4748 test "$program_prefix" != NONE &&
4749 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4750 # Use a double $ so make ignores it.
4751 test "$program_suffix" != NONE &&
4752 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4753 # Double any \ or $.
4754 # By default was `s,x,x', remove it if useless.
4755 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4756 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4759 ac_config_headers="$ac_config_headers config.h"
4767 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4768 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4769 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4770 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4772 $as_echo_n "(cached) " >&6
4774 cat >conftest.$ac_ext <<_ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 #include <sys/types.h>
4792 rm -f conftest.$ac_objext
4793 if { (ac_try="$ac_compile"
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4799 $as_echo "$ac_try_echo") >&5
4800 (eval "$ac_compile") 2>conftest.er1
4802 grep -v '^ *+' conftest.er1 >conftest.err
4804 cat conftest.err >&5
4805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } && {
4807 test -z "$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4809 } && test -s conftest.$ac_objext; then
4810 eval "$as_ac_Header=yes"
4812 $as_echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4815 eval "$as_ac_Header=no"
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 ac_res=`eval 'as_val=${'$as_ac_Header'}
4821 $as_echo "$as_val"'`
4822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4823 $as_echo "$ac_res" >&6; }
4824 as_val=`eval 'as_val=${'$as_ac_Header'}
4825 $as_echo "$as_val"'`
4826 if test "x$as_val" = x""yes; then
4827 cat >>confdefs.h <<_ACEOF
4828 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4831 ac_header_dirent=$ac_hdr; break
4835 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4836 if test $ac_header_dirent = dirent.h; then
4837 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4838 $as_echo_n "checking for library containing opendir... " >&6; }
4839 if test "${ac_cv_search_opendir+set}" = set; then
4840 $as_echo_n "(cached) " >&6
4842 ac_func_search_save_LIBS=$LIBS
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4850 /* Override any GCC internal prototype to avoid an error.
4851 Use char because int might match the return type of a GCC
4852 builtin and then its argument prototype would still apply. */
4865 for ac_lib in '' dir; do
4866 if test -z "$ac_lib"; then
4867 ac_res="none required"
4870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4872 rm -f conftest.$ac_objext conftest$ac_exeext
4873 if { (ac_try="$ac_link"
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4879 $as_echo "$ac_try_echo") >&5
4880 (eval "$ac_link") 2>conftest.er1
4882 grep -v '^ *+' conftest.er1 >conftest.err
4884 cat conftest.err >&5
4885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } && {
4887 test -z "$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 } && test -s conftest$ac_exeext && {
4890 test "$cross_compiling" = yes ||
4891 $as_test_x conftest$ac_exeext
4893 ac_cv_search_opendir=$ac_res
4895 $as_echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4901 rm -rf conftest.dSYM
4902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4904 if test "${ac_cv_search_opendir+set}" = set; then
4908 if test "${ac_cv_search_opendir+set}" = set; then
4911 ac_cv_search_opendir=no
4914 LIBS=$ac_func_search_save_LIBS
4916 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4917 $as_echo "$ac_cv_search_opendir" >&6; }
4918 ac_res=$ac_cv_search_opendir
4919 if test "$ac_res" != no; then
4920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4925 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4926 $as_echo_n "checking for library containing opendir... " >&6; }
4927 if test "${ac_cv_search_opendir+set}" = set; then
4928 $as_echo_n "(cached) " >&6
4930 ac_func_search_save_LIBS=$LIBS
4931 cat >conftest.$ac_ext <<_ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4938 /* Override any GCC internal prototype to avoid an error.
4939 Use char because int might match the return type of a GCC
4940 builtin and then its argument prototype would still apply. */
4953 for ac_lib in '' x; do
4954 if test -z "$ac_lib"; then
4955 ac_res="none required"
4958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4960 rm -f conftest.$ac_objext conftest$ac_exeext
4961 if { (ac_try="$ac_link"
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967 $as_echo "$ac_try_echo") >&5
4968 (eval "$ac_link") 2>conftest.er1
4970 grep -v '^ *+' conftest.er1 >conftest.err
4972 cat conftest.err >&5
4973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } && {
4975 test -z "$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 } && test -s conftest$ac_exeext && {
4978 test "$cross_compiling" = yes ||
4979 $as_test_x conftest$ac_exeext
4981 ac_cv_search_opendir=$ac_res
4983 $as_echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4989 rm -rf conftest.dSYM
4990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4992 if test "${ac_cv_search_opendir+set}" = set; then
4996 if test "${ac_cv_search_opendir+set}" = set; then
4999 ac_cv_search_opendir=no
5002 LIBS=$ac_func_search_save_LIBS
5004 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5005 $as_echo "$ac_cv_search_opendir" >&6; }
5006 ac_res=$ac_cv_search_opendir
5007 if test "$ac_res" != no; then
5008 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5015 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5016 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5017 if test "${ac_cv_path_GREP+set}" = set; then
5018 $as_echo_n "(cached) " >&6
5020 if test -z "$GREP"; then
5021 ac_path_GREP_found=false
5022 # Loop through the user's path and test for each of PROGNAME-LIST
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5027 test -z "$as_dir" && as_dir=.
5028 for ac_prog in grep ggrep; do
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5031 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5032 # Check for GNU ac_path_GREP and select it if it is found.
5033 # Check for GNU $ac_path_GREP
5034 case `"$ac_path_GREP" --version 2>&1` in
5036 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5039 $as_echo_n 0123456789 >"conftest.in"
5042 cat "conftest.in" "conftest.in" >"conftest.tmp"
5043 mv "conftest.tmp" "conftest.in"
5044 cp "conftest.in" "conftest.nl"
5045 $as_echo 'GREP' >> "conftest.nl"
5046 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5048 ac_count=`expr $ac_count + 1`
5049 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5050 # Best one so far, save it but keep looking for a better one
5051 ac_cv_path_GREP="$ac_path_GREP"
5052 ac_path_GREP_max=$ac_count
5054 # 10*(2^10) chars as input seems more than enough
5055 test $ac_count -gt 10 && break
5057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5060 $ac_path_GREP_found && break 3
5065 if test -z "$ac_cv_path_GREP"; then
5066 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5067 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5068 { (exit 1); exit 1; }; }
5071 ac_cv_path_GREP=$GREP
5075 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5076 $as_echo "$ac_cv_path_GREP" >&6; }
5077 GREP="$ac_cv_path_GREP"
5080 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5081 $as_echo_n "checking for egrep... " >&6; }
5082 if test "${ac_cv_path_EGREP+set}" = set; then
5083 $as_echo_n "(cached) " >&6
5085 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5086 then ac_cv_path_EGREP="$GREP -E"
5088 if test -z "$EGREP"; then
5089 ac_path_EGREP_found=false
5090 # Loop through the user's path and test for each of PROGNAME-LIST
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5095 test -z "$as_dir" && as_dir=.
5096 for ac_prog in egrep; do
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5099 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5100 # Check for GNU ac_path_EGREP and select it if it is found.
5101 # Check for GNU $ac_path_EGREP
5102 case `"$ac_path_EGREP" --version 2>&1` in
5104 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5107 $as_echo_n 0123456789 >"conftest.in"
5110 cat "conftest.in" "conftest.in" >"conftest.tmp"
5111 mv "conftest.tmp" "conftest.in"
5112 cp "conftest.in" "conftest.nl"
5113 $as_echo 'EGREP' >> "conftest.nl"
5114 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116 ac_count=`expr $ac_count + 1`
5117 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5118 # Best one so far, save it but keep looking for a better one
5119 ac_cv_path_EGREP="$ac_path_EGREP"
5120 ac_path_EGREP_max=$ac_count
5122 # 10*(2^10) chars as input seems more than enough
5123 test $ac_count -gt 10 && break
5125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5128 $ac_path_EGREP_found && break 3
5133 if test -z "$ac_cv_path_EGREP"; then
5134 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5135 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5136 { (exit 1); exit 1; }; }
5139 ac_cv_path_EGREP=$EGREP
5144 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5145 $as_echo "$ac_cv_path_EGREP" >&6; }
5146 EGREP="$ac_cv_path_EGREP"
5149 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5150 $as_echo_n "checking for ANSI C header files... " >&6; }
5151 if test "${ac_cv_header_stdc+set}" = set; then
5152 $as_echo_n "(cached) " >&6
5154 cat >conftest.$ac_ext <<_ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5173 rm -f conftest.$ac_objext
5174 if { (ac_try="$ac_compile"
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5180 $as_echo "$ac_try_echo") >&5
5181 (eval "$ac_compile") 2>conftest.er1
5183 grep -v '^ *+' conftest.er1 >conftest.err
5185 cat conftest.err >&5
5186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } && {
5188 test -z "$ac_c_werror_flag" ||
5189 test ! -s conftest.err
5190 } && test -s conftest.$ac_objext; then
5191 ac_cv_header_stdc=yes
5193 $as_echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 ac_cv_header_stdc=no
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201 if test $ac_cv_header_stdc = yes; then
5202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5203 cat >conftest.$ac_ext <<_ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213 $EGREP "memchr" >/dev/null 2>&1; then
5216 ac_cv_header_stdc=no
5222 if test $ac_cv_header_stdc = yes; then
5223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5224 cat >conftest.$ac_ext <<_ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5234 $EGREP "free" >/dev/null 2>&1; then
5237 ac_cv_header_stdc=no
5243 if test $ac_cv_header_stdc = yes; then
5244 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5245 if test "$cross_compiling" = yes; then
5248 cat >conftest.$ac_ext <<_ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5256 #if ((' ' & 0x0FF) == 0x020)
5257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5260 # define ISLOWER(c) \
5261 (('a' <= (c) && (c) <= 'i') \
5262 || ('j' <= (c) && (c) <= 'r') \
5263 || ('s' <= (c) && (c) <= 'z'))
5264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5272 for (i = 0; i < 256; i++)
5273 if (XOR (islower (i), ISLOWER (i))
5274 || toupper (i) != TOUPPER (i))
5279 rm -f conftest$ac_exeext
5280 if { (ac_try="$ac_link"
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5286 $as_echo "$ac_try_echo") >&5
5287 (eval "$ac_link") 2>&5
5289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5291 { (case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5296 $as_echo "$ac_try_echo") >&5
5297 (eval "$ac_try") 2>&5
5299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5303 $as_echo "$as_me: program exited with status $ac_status" >&5
5304 $as_echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5308 ac_cv_header_stdc=no
5310 rm -rf conftest.dSYM
5311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5317 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5318 $as_echo "$ac_cv_header_stdc" >&6; }
5319 if test $ac_cv_header_stdc = yes; then
5321 cat >>confdefs.h <<\_ACEOF
5322 #define STDC_HEADERS 1
5328 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5338 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5339 inttypes.h stdint.h unistd.h
5341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5342 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5343 $as_echo_n "checking for $ac_header... " >&6; }
5344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5345 $as_echo_n "(cached) " >&6
5347 cat >conftest.$ac_ext <<_ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 $ac_includes_default
5355 #include <$ac_header>
5357 rm -f conftest.$ac_objext
5358 if { (ac_try="$ac_compile"
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5364 $as_echo "$ac_try_echo") >&5
5365 (eval "$ac_compile") 2>conftest.er1
5367 grep -v '^ *+' conftest.er1 >conftest.err
5369 cat conftest.err >&5
5370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } && {
5372 test -z "$ac_c_werror_flag" ||
5373 test ! -s conftest.err
5374 } && test -s conftest.$ac_objext; then
5375 eval "$as_ac_Header=yes"
5377 $as_echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 eval "$as_ac_Header=no"
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 ac_res=`eval 'as_val=${'$as_ac_Header'}
5386 $as_echo "$as_val"'`
5387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5388 $as_echo "$ac_res" >&6; }
5389 as_val=`eval 'as_val=${'$as_ac_Header'}
5390 $as_echo "$as_val"'`
5391 if test "x$as_val" = x""yes; then
5392 cat >>confdefs.h <<_ACEOF
5393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5420 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h
5422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5424 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5425 $as_echo_n "checking for $ac_header... " >&6; }
5426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5427 $as_echo_n "(cached) " >&6
5429 ac_res=`eval 'as_val=${'$as_ac_Header'}
5430 $as_echo "$as_val"'`
5431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5432 $as_echo "$ac_res" >&6; }
5434 # Is the header compilable?
5435 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5436 $as_echo_n "checking $ac_header usability... " >&6; }
5437 cat >conftest.$ac_ext <<_ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 $ac_includes_default
5444 #include <$ac_header>
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5453 $as_echo "$ac_try_echo") >&5
5454 (eval "$ac_compile") 2>conftest.er1
5456 grep -v '^ *+' conftest.er1 >conftest.err
5458 cat conftest.err >&5
5459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } && {
5461 test -z "$ac_c_werror_flag" ||
5462 test ! -s conftest.err
5463 } && test -s conftest.$ac_objext; then
5464 ac_header_compiler=yes
5466 $as_echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5469 ac_header_compiler=no
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5474 $as_echo "$ac_header_compiler" >&6; }
5476 # Is the header present?
5477 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5478 $as_echo_n "checking $ac_header presence... " >&6; }
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 #include <$ac_header>
5487 if { (ac_try="$ac_cpp conftest.$ac_ext"
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5493 $as_echo "$ac_try_echo") >&5
5494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5496 grep -v '^ *+' conftest.er1 >conftest.err
5498 cat conftest.err >&5
5499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } >/dev/null && {
5501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5502 test ! -s conftest.err
5504 ac_header_preproc=yes
5506 $as_echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5509 ac_header_preproc=no
5512 rm -f conftest.err conftest.$ac_ext
5513 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5514 $as_echo "$ac_header_preproc" >&6; }
5516 # So? What about this header?
5517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5520 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5522 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5523 ac_header_preproc=yes
5526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5527 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5529 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5531 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5533 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5535 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5537 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5541 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5542 $as_echo_n "checking for $ac_header... " >&6; }
5543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5544 $as_echo_n "(cached) " >&6
5546 eval "$as_ac_Header=\$ac_header_preproc"
5548 ac_res=`eval 'as_val=${'$as_ac_Header'}
5549 $as_echo "$as_val"'`
5550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5551 $as_echo "$ac_res" >&6; }
5554 as_val=`eval 'as_val=${'$as_ac_Header'}
5555 $as_echo "$as_val"'`
5556 if test "x$as_val" = x""yes; then
5557 cat >>confdefs.h <<_ACEOF
5558 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5567 cat >>confdefs.h <<_ACEOF
5568 #define PACKAGE "$PACKAGE"
5572 cat >>confdefs.h <<_ACEOF
5573 #define VERSION "$VERSION"
5582 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5583 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5584 if test "${ac_cv_c_const+set}" = set; then
5585 $as_echo_n "(cached) " >&6
5587 cat >conftest.$ac_ext <<_ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5597 /* FIXME: Include the comments suggested by Paul. */
5599 /* Ultrix mips cc rejects this. */
5600 typedef int charset[2];
5602 /* SunOS 4.1.1 cc rejects this. */
5603 char const *const *pcpcc;
5605 /* NEC SVR4.0.2 mips cc rejects this. */
5606 struct point {int x, y;};
5607 static struct point const zero = {0,0};
5608 /* AIX XL C 1.02.0.0 rejects this.
5609 It does not let you subtract one const X* pointer from another in
5610 an arm of an if-expression whose if-part is not a constant
5612 const char *g = "string";
5613 pcpcc = &g + (g ? g-g : 0);
5614 /* HPUX 7.0 cc rejects these. */
5616 ppc = (char**) pcpcc;
5617 pcpcc = (char const *const *) ppc;
5618 { /* SCO 3.2v4 cc rejects this. */
5620 char const *s = 0 ? (char *) 0 : (char const *) 0;
5625 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5627 const int *foo = &x[0];
5630 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5631 typedef const int *iptr;
5635 { /* AIX XL C 1.02.0.0 rejects this saying
5636 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5637 struct s { int j; const int *ap[3]; };
5638 struct s *b; b->j = 5;
5640 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5644 return !cs[0] && !zero.x;
5651 rm -f conftest.$ac_objext
5652 if { (ac_try="$ac_compile"
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5658 $as_echo "$ac_try_echo") >&5
5659 (eval "$ac_compile") 2>conftest.er1
5661 grep -v '^ *+' conftest.er1 >conftest.err
5663 cat conftest.err >&5
5664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && {
5666 test -z "$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest.$ac_objext; then
5671 $as_echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5680 $as_echo "$ac_cv_c_const" >&6; }
5681 if test $ac_cv_c_const = no; then
5683 cat >>confdefs.h <<\_ACEOF
5689 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5690 $as_echo_n "checking for inline... " >&6; }
5691 if test "${ac_cv_c_inline+set}" = set; then
5692 $as_echo_n "(cached) " >&6
5695 for ac_kw in inline __inline__ __inline; do
5696 cat >conftest.$ac_ext <<_ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5704 static $ac_kw foo_t static_foo () {return 0; }
5705 $ac_kw foo_t foo () {return 0; }
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5716 $as_echo "$ac_try_echo") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5719 grep -v '^ *+' conftest.er1 >conftest.err
5721 cat conftest.err >&5
5722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && {
5724 test -z "$ac_c_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest.$ac_objext; then
5727 ac_cv_c_inline=$ac_kw
5729 $as_echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 test "$ac_cv_c_inline" != no && break
5740 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5741 $as_echo "$ac_cv_c_inline" >&6; }
5744 case $ac_cv_c_inline in
5747 case $ac_cv_c_inline in
5749 *) ac_val=$ac_cv_c_inline;;
5751 cat >>confdefs.h <<_ACEOF
5753 #define inline $ac_val
5759 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5760 $as_echo_n "checking for off_t... " >&6; }
5761 if test "${ac_cv_type_off_t+set}" = set; then
5762 $as_echo_n "(cached) " >&6
5765 cat >conftest.$ac_ext <<_ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 $ac_includes_default
5781 rm -f conftest.$ac_objext
5782 if { (ac_try="$ac_compile"
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5788 $as_echo "$ac_try_echo") >&5
5789 (eval "$ac_compile") 2>conftest.er1
5791 grep -v '^ *+' conftest.er1 >conftest.err
5793 cat conftest.err >&5
5794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest.$ac_objext; then
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5809 if (sizeof ((off_t)))
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5822 $as_echo "$ac_try_echo") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5825 grep -v '^ *+' conftest.er1 >conftest.err
5827 cat conftest.err >&5
5828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
5835 $as_echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 ac_cv_type_off_t=yes
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 $as_echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5852 $as_echo "$ac_cv_type_off_t" >&6; }
5853 if test "x$ac_cv_type_off_t" = x""yes; then
5857 cat >>confdefs.h <<_ACEOF
5858 #define off_t long int
5863 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5864 $as_echo_n "checking for size_t... " >&6; }
5865 if test "${ac_cv_type_size_t+set}" = set; then
5866 $as_echo_n "(cached) " >&6
5868 ac_cv_type_size_t=no
5869 cat >conftest.$ac_ext <<_ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 $ac_includes_default
5879 if (sizeof (size_t))
5885 rm -f conftest.$ac_objext
5886 if { (ac_try="$ac_compile"
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5892 $as_echo "$ac_try_echo") >&5
5893 (eval "$ac_compile") 2>conftest.er1
5895 grep -v '^ *+' conftest.er1 >conftest.err
5897 cat conftest.err >&5
5898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } && {
5900 test -z "$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 } && test -s conftest.$ac_objext; then
5903 cat >conftest.$ac_ext <<_ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 $ac_includes_default
5913 if (sizeof ((size_t)))
5919 rm -f conftest.$ac_objext
5920 if { (ac_try="$ac_compile"
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5926 $as_echo "$ac_try_echo") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5929 grep -v '^ *+' conftest.er1 >conftest.err
5931 cat conftest.err >&5
5932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest.$ac_objext; then
5939 $as_echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 ac_cv_type_size_t=yes
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 $as_echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5956 $as_echo "$ac_cv_type_size_t" >&6; }
5957 if test "x$ac_cv_type_size_t" = x""yes; then
5961 cat >>confdefs.h <<_ACEOF
5962 #define size_t unsigned int
5967 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5968 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5969 if test "${ac_cv_struct_tm+set}" = set; then
5970 $as_echo_n "(cached) " >&6
5972 cat >conftest.$ac_ext <<_ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <sys/types.h>
5985 int *p = &tm.tm_sec;
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5998 $as_echo "$ac_try_echo") >&5
5999 (eval "$ac_compile") 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest.$ac_objext; then
6009 ac_cv_struct_tm=time.h
6011 $as_echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 ac_cv_struct_tm=sys/time.h
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6020 $as_echo "$ac_cv_struct_tm" >&6; }
6021 if test $ac_cv_struct_tm = sys/time.h; then
6023 cat >>confdefs.h <<\_ACEOF
6024 #define TM_IN_SYS_TIME 1
6029 { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6030 $as_echo_n "checking for boolean... " >&6; }
6031 if test "${ac_cv_type_boolean+set}" = set; then
6032 $as_echo_n "(cached) " >&6
6034 ac_cv_type_boolean=no
6035 cat >conftest.$ac_ext <<_ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 $ac_includes_default
6045 if (sizeof (boolean))
6051 rm -f conftest.$ac_objext
6052 if { (ac_try="$ac_compile"
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6058 $as_echo "$ac_try_echo") >&5
6059 (eval "$ac_compile") 2>conftest.er1
6061 grep -v '^ *+' conftest.er1 >conftest.err
6063 cat conftest.err >&5
6064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } && {
6066 test -z "$ac_c_werror_flag" ||
6067 test ! -s conftest.err
6068 } && test -s conftest.$ac_objext; then
6069 cat >conftest.$ac_ext <<_ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 $ac_includes_default
6079 if (sizeof ((boolean)))
6085 rm -f conftest.$ac_objext
6086 if { (ac_try="$ac_compile"
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6092 $as_echo "$ac_try_echo") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest.$ac_objext; then
6105 $as_echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ac_cv_type_boolean=yes
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 $as_echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6122 $as_echo "$ac_cv_type_boolean" >&6; }
6123 if test "x$ac_cv_type_boolean" = x""yes; then
6127 cat >>confdefs.h <<_ACEOF
6148 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6151 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6152 $as_echo_n "checking for $ac_func... " >&6; }
6153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6154 $as_echo_n "(cached) " >&6
6156 cat >conftest.$ac_ext <<_ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6164 #define $ac_func innocuous_$ac_func
6166 /* System header to define __stub macros and hopefully few prototypes,
6167 which can conflict with char $ac_func (); below.
6168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6169 <limits.h> exists even on freestanding compilers. */
6172 # include <limits.h>
6174 # include <assert.h>
6179 /* Override any GCC internal prototype to avoid an error.
6180 Use char because int might match the return type of a GCC
6181 builtin and then its argument prototype would still apply. */
6186 /* The GNU C library defines this for functions which it implements
6187 to always fail with ENOSYS. Some functions are actually named
6188 something starting with __ and the normal name is an alias. */
6189 #if defined __stub_$ac_func || defined __stub___$ac_func
6201 rm -f conftest.$ac_objext conftest$ac_exeext
6202 if { (ac_try="$ac_link"
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6208 $as_echo "$ac_try_echo") >&5
6209 (eval "$ac_link") 2>conftest.er1
6211 grep -v '^ *+' conftest.er1 >conftest.err
6213 cat conftest.err >&5
6214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest$ac_exeext && {
6219 test "$cross_compiling" = yes ||
6220 $as_test_x conftest$ac_exeext
6222 eval "$as_ac_var=yes"
6224 $as_echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 eval "$as_ac_var=no"
6230 rm -rf conftest.dSYM
6231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6232 conftest$ac_exeext conftest.$ac_ext
6234 ac_res=`eval 'as_val=${'$as_ac_var'}
6235 $as_echo "$as_val"'`
6236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6237 $as_echo "$ac_res" >&6; }
6238 as_val=`eval 'as_val=${'$as_ac_var'}
6239 $as_echo "$as_val"'`
6240 if test "x$as_val" = x""yes; then
6241 cat >>confdefs.h <<_ACEOF
6242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6249 # The cast to long int works around a bug in the HP C Compiler
6250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6252 # This bug is HP SR number 8606223364.
6253 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6254 $as_echo_n "checking size of signed char... " >&6; }
6255 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6256 $as_echo_n "(cached) " >&6
6258 if test "$cross_compiling" = yes; then
6259 # Depending upon the size, compute the lo and hi bounds.
6260 cat >conftest.$ac_ext <<_ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 $ac_includes_default
6270 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6284 $as_echo "$ac_try_echo") >&5
6285 (eval "$ac_compile") 2>conftest.er1
6287 grep -v '^ *+' conftest.er1 >conftest.err
6289 cat conftest.err >&5
6290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } && {
6292 test -z "$ac_c_werror_flag" ||
6293 test ! -s conftest.err
6294 } && test -s conftest.$ac_objext; then
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 $ac_includes_default
6307 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6321 $as_echo "$ac_try_echo") >&5
6322 (eval "$ac_compile") 2>conftest.er1
6324 grep -v '^ *+' conftest.er1 >conftest.err
6326 cat conftest.err >&5
6327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } && {
6329 test -z "$ac_c_werror_flag" ||
6330 test ! -s conftest.err
6331 } && test -s conftest.$ac_objext; then
6332 ac_hi=$ac_mid; break
6334 $as_echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6337 ac_lo=`expr $ac_mid + 1`
6338 if test $ac_lo -le $ac_mid; then
6342 ac_mid=`expr 2 '*' $ac_mid + 1`
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 $as_echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6351 cat >conftest.$ac_ext <<_ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6361 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6368 rm -f conftest.$ac_objext
6369 if { (ac_try="$ac_compile"
6371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372 *) ac_try_echo=$ac_try;;
6374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6375 $as_echo "$ac_try_echo") >&5
6376 (eval "$ac_compile") 2>conftest.er1
6378 grep -v '^ *+' conftest.er1 >conftest.err
6380 cat conftest.err >&5
6381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } && {
6383 test -z "$ac_c_werror_flag" ||
6384 test ! -s conftest.err
6385 } && test -s conftest.$ac_objext; then
6388 cat >conftest.$ac_ext <<_ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 $ac_includes_default
6398 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6412 $as_echo "$ac_try_echo") >&5
6413 (eval "$ac_compile") 2>conftest.er1
6415 grep -v '^ *+' conftest.er1 >conftest.err
6417 cat conftest.err >&5
6418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && {
6420 test -z "$ac_c_werror_flag" ||
6421 test ! -s conftest.err
6422 } && test -s conftest.$ac_objext; then
6423 ac_lo=$ac_mid; break
6425 $as_echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 ac_hi=`expr '(' $ac_mid ')' - 1`
6429 if test $ac_mid -le $ac_hi; then
6433 ac_mid=`expr 2 '*' $ac_mid`
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 $as_echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 # Binary search between lo and hi bounds.
6450 while test "x$ac_lo" != "x$ac_hi"; do
6451 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 $ac_includes_default
6462 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6469 rm -f conftest.$ac_objext
6470 if { (ac_try="$ac_compile"
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6476 $as_echo "$ac_try_echo") >&5
6477 (eval "$ac_compile") 2>conftest.er1
6479 grep -v '^ *+' conftest.er1 >conftest.err
6481 cat conftest.err >&5
6482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } && {
6484 test -z "$ac_c_werror_flag" ||
6485 test ! -s conftest.err
6486 } && test -s conftest.$ac_objext; then
6489 $as_echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 ac_lo=`expr '(' $ac_mid ')' + 1`
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6499 '') if test "$ac_cv_type_signed_char" = yes; then
6500 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6502 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6503 See \`config.log' for more details." >&5
6504 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6505 See \`config.log' for more details." >&2;}
6506 { (exit 77); exit 77; }; }; }
6508 ac_cv_sizeof_signed_char=0
6512 cat >conftest.$ac_ext <<_ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518 $ac_includes_default
6519 static long int longval () { return (long int) (sizeof (signed char)); }
6520 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6527 FILE *f = fopen ("conftest.val", "w");
6530 if (((long int) (sizeof (signed char))) < 0)
6532 long int i = longval ();
6533 if (i != ((long int) (sizeof (signed char))))
6535 fprintf (f, "%ld", i);
6539 unsigned long int i = ulongval ();
6540 if (i != ((long int) (sizeof (signed char))))
6542 fprintf (f, "%lu", i);
6544 /* Do not output a trailing newline, as this causes \r\n confusion
6545 on some platforms. */
6546 return ferror (f) || fclose (f) != 0;
6552 rm -f conftest$ac_exeext
6553 if { (ac_try="$ac_link"
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559 $as_echo "$ac_try_echo") >&5
6560 (eval "$ac_link") 2>&5
6562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6564 { (case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6569 $as_echo "$ac_try_echo") >&5
6570 (eval "$ac_try") 2>&5
6572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_sizeof_signed_char=`cat conftest.val`
6576 $as_echo "$as_me: program exited with status $ac_status" >&5
6577 $as_echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6581 if test "$ac_cv_type_signed_char" = yes; then
6582 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6584 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6585 See \`config.log' for more details." >&5
6586 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6587 See \`config.log' for more details." >&2;}
6588 { (exit 77); exit 77; }; }; }
6590 ac_cv_sizeof_signed_char=0
6593 rm -rf conftest.dSYM
6594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6598 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6599 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6603 cat >>confdefs.h <<_ACEOF
6604 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6608 # The cast to long int works around a bug in the HP C Compiler
6609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6611 # This bug is HP SR number 8606223364.
6612 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6613 $as_echo_n "checking size of signed short... " >&6; }
6614 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6615 $as_echo_n "(cached) " >&6
6617 if test "$cross_compiling" = yes; then
6618 # Depending upon the size, compute the lo and hi bounds.
6619 cat >conftest.$ac_ext <<_ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 $ac_includes_default
6629 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6636 rm -f conftest.$ac_objext
6637 if { (ac_try="$ac_compile"
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6643 $as_echo "$ac_try_echo") >&5
6644 (eval "$ac_compile") 2>conftest.er1
6646 grep -v '^ *+' conftest.er1 >conftest.err
6648 cat conftest.err >&5
6649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } && {
6651 test -z "$ac_c_werror_flag" ||
6652 test ! -s conftest.err
6653 } && test -s conftest.$ac_objext; then
6656 cat >conftest.$ac_ext <<_ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 $ac_includes_default
6666 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6673 rm -f conftest.$ac_objext
6674 if { (ac_try="$ac_compile"
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6680 $as_echo "$ac_try_echo") >&5
6681 (eval "$ac_compile") 2>conftest.er1
6683 grep -v '^ *+' conftest.er1 >conftest.err
6685 cat conftest.err >&5
6686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && {
6688 test -z "$ac_c_werror_flag" ||
6689 test ! -s conftest.err
6690 } && test -s conftest.$ac_objext; then
6691 ac_hi=$ac_mid; break
6693 $as_echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6696 ac_lo=`expr $ac_mid + 1`
6697 if test $ac_lo -le $ac_mid; then
6701 ac_mid=`expr 2 '*' $ac_mid + 1`
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 $as_echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6710 cat >conftest.$ac_ext <<_ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 $ac_includes_default
6720 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6727 rm -f conftest.$ac_objext
6728 if { (ac_try="$ac_compile"
6730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731 *) ac_try_echo=$ac_try;;
6733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6734 $as_echo "$ac_try_echo") >&5
6735 (eval "$ac_compile") 2>conftest.er1
6737 grep -v '^ *+' conftest.er1 >conftest.err
6739 cat conftest.err >&5
6740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && {
6742 test -z "$ac_c_werror_flag" ||
6743 test ! -s conftest.err
6744 } && test -s conftest.$ac_objext; then
6747 cat >conftest.$ac_ext <<_ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 $ac_includes_default
6757 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6764 rm -f conftest.$ac_objext
6765 if { (ac_try="$ac_compile"
6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6771 $as_echo "$ac_try_echo") >&5
6772 (eval "$ac_compile") 2>conftest.er1
6774 grep -v '^ *+' conftest.er1 >conftest.err
6776 cat conftest.err >&5
6777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && {
6779 test -z "$ac_c_werror_flag" ||
6780 test ! -s conftest.err
6781 } && test -s conftest.$ac_objext; then
6782 ac_lo=$ac_mid; break
6784 $as_echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6787 ac_hi=`expr '(' $ac_mid ')' - 1`
6788 if test $ac_mid -le $ac_hi; then
6792 ac_mid=`expr 2 '*' $ac_mid`
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 $as_echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 # Binary search between lo and hi bounds.
6809 while test "x$ac_lo" != "x$ac_hi"; do
6810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6811 cat >conftest.$ac_ext <<_ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6817 $ac_includes_default
6821 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6828 rm -f conftest.$ac_objext
6829 if { (ac_try="$ac_compile"
6831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6835 $as_echo "$ac_try_echo") >&5
6836 (eval "$ac_compile") 2>conftest.er1
6838 grep -v '^ *+' conftest.er1 >conftest.err
6840 cat conftest.err >&5
6841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_c_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest.$ac_objext; then
6848 $as_echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 ac_lo=`expr '(' $ac_mid ')' + 1`
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6858 '') if test "$ac_cv_type_signed_short" = yes; then
6859 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6861 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6862 See \`config.log' for more details." >&5
6863 $as_echo "$as_me: error: cannot compute sizeof (signed short)
6864 See \`config.log' for more details." >&2;}
6865 { (exit 77); exit 77; }; }; }
6867 ac_cv_sizeof_signed_short=0
6871 cat >conftest.$ac_ext <<_ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 $ac_includes_default
6878 static long int longval () { return (long int) (sizeof (signed short)); }
6879 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
6886 FILE *f = fopen ("conftest.val", "w");
6889 if (((long int) (sizeof (signed short))) < 0)
6891 long int i = longval ();
6892 if (i != ((long int) (sizeof (signed short))))
6894 fprintf (f, "%ld", i);
6898 unsigned long int i = ulongval ();
6899 if (i != ((long int) (sizeof (signed short))))
6901 fprintf (f, "%lu", i);
6903 /* Do not output a trailing newline, as this causes \r\n confusion
6904 on some platforms. */
6905 return ferror (f) || fclose (f) != 0;
6911 rm -f conftest$ac_exeext
6912 if { (ac_try="$ac_link"
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6918 $as_echo "$ac_try_echo") >&5
6919 (eval "$ac_link") 2>&5
6921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6923 { (case "(($ac_try" in
6924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925 *) ac_try_echo=$ac_try;;
6927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6928 $as_echo "$ac_try_echo") >&5
6929 (eval "$ac_try") 2>&5
6931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 ac_cv_sizeof_signed_short=`cat conftest.val`
6935 $as_echo "$as_me: program exited with status $ac_status" >&5
6936 $as_echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6940 if test "$ac_cv_type_signed_short" = yes; then
6941 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6943 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6944 See \`config.log' for more details." >&5
6945 $as_echo "$as_me: error: cannot compute sizeof (signed short)
6946 See \`config.log' for more details." >&2;}
6947 { (exit 77); exit 77; }; }; }
6949 ac_cv_sizeof_signed_short=0
6952 rm -rf conftest.dSYM
6953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6957 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
6958 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
6962 cat >>confdefs.h <<_ACEOF
6963 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
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 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
6972 $as_echo_n "checking size of signed... " >&6; }
6973 if test "${ac_cv_sizeof_signed+set}" = set; then
6974 $as_echo_n "(cached) " >&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
6988 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
6995 rm -f conftest.$ac_objext
6996 if { (ac_try="$ac_compile"
6998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6999 *) ac_try_echo=$ac_try;;
7001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7002 $as_echo "$ac_try_echo") >&5
7003 (eval "$ac_compile") 2>conftest.er1
7005 grep -v '^ *+' conftest.er1 >conftest.err
7007 cat conftest.err >&5
7008 $as_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
7025 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7032 rm -f conftest.$ac_objext
7033 if { (ac_try="$ac_compile"
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7039 $as_echo "$ac_try_echo") >&5
7040 (eval "$ac_compile") 2>conftest.er1
7042 grep -v '^ *+' conftest.er1 >conftest.err
7044 cat conftest.err >&5
7045 $as_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 $as_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 $as_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
7079 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7086 rm -f conftest.$ac_objext
7087 if { (ac_try="$ac_compile"
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7093 $as_echo "$ac_try_echo") >&5
7094 (eval "$ac_compile") 2>conftest.er1
7096 grep -v '^ *+' conftest.er1 >conftest.err
7098 cat conftest.err >&5
7099 $as_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
7116 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7130 $as_echo "$ac_try_echo") >&5
7131 (eval "$ac_compile") 2>conftest.er1
7133 grep -v '^ *+' conftest.er1 >conftest.err
7135 cat conftest.err >&5
7136 $as_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 $as_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 $as_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
7180 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7187 rm -f conftest.$ac_objext
7188 if { (ac_try="$ac_compile"
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7194 $as_echo "$ac_try_echo") >&5
7195 (eval "$ac_compile") 2>conftest.er1
7197 grep -v '^ *+' conftest.er1 >conftest.err
7199 cat conftest.err >&5
7200 $as_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 $as_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=$ac_lo;;
7217 '') if test "$ac_cv_type_signed" = yes; then
7218 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7220 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7221 See \`config.log' for more details." >&5
7222 $as_echo "$as_me: error: cannot compute sizeof (signed)
7223 See \`config.log' for more details." >&2;}
7224 { (exit 77); exit 77; }; }; }
7226 ac_cv_sizeof_signed=0
7230 cat >conftest.$ac_ext <<_ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 $ac_includes_default
7237 static long int longval () { return (long int) (sizeof (signed)); }
7238 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7245 FILE *f = fopen ("conftest.val", "w");
7248 if (((long int) (sizeof (signed))) < 0)
7250 long int i = longval ();
7251 if (i != ((long int) (sizeof (signed))))
7253 fprintf (f, "%ld", i);
7257 unsigned long int i = ulongval ();
7258 if (i != ((long int) (sizeof (signed))))
7260 fprintf (f, "%lu", i);
7262 /* Do not output a trailing newline, as this causes \r\n confusion
7263 on some platforms. */
7264 return ferror (f) || fclose (f) != 0;
7270 rm -f conftest$ac_exeext
7271 if { (ac_try="$ac_link"
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7277 $as_echo "$ac_try_echo") >&5
7278 (eval "$ac_link") 2>&5
7280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7282 { (case "(($ac_try" in
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7287 $as_echo "$ac_try_echo") >&5
7288 (eval "$ac_try") 2>&5
7290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; }; then
7292 ac_cv_sizeof_signed=`cat conftest.val`
7294 $as_echo "$as_me: program exited with status $ac_status" >&5
7295 $as_echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7299 if test "$ac_cv_type_signed" = yes; then
7300 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7302 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7303 See \`config.log' for more details." >&5
7304 $as_echo "$as_me: error: cannot compute sizeof (signed)
7305 See \`config.log' for more details." >&2;}
7306 { (exit 77); exit 77; }; }; }
7308 ac_cv_sizeof_signed=0
7311 rm -rf conftest.dSYM
7312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7316 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7317 $as_echo "$ac_cv_sizeof_signed" >&6; }
7321 cat >>confdefs.h <<_ACEOF
7322 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7326 # The cast to long int works around a bug in the HP C Compiler
7327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7329 # This bug is HP SR number 8606223364.
7330 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7331 $as_echo_n "checking size of signed long long... " >&6; }
7332 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7333 $as_echo_n "(cached) " >&6
7335 if test "$cross_compiling" = yes; then
7336 # Depending upon the size, compute the lo and hi bounds.
7337 cat >conftest.$ac_ext <<_ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7347 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7354 rm -f conftest.$ac_objext
7355 if { (ac_try="$ac_compile"
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7361 $as_echo "$ac_try_echo") >&5
7362 (eval "$ac_compile") 2>conftest.er1
7364 grep -v '^ *+' conftest.er1 >conftest.err
7366 cat conftest.err >&5
7367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } && {
7369 test -z "$ac_c_werror_flag" ||
7370 test ! -s conftest.err
7371 } && test -s conftest.$ac_objext; then
7374 cat >conftest.$ac_ext <<_ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_includes_default
7384 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7391 rm -f conftest.$ac_objext
7392 if { (ac_try="$ac_compile"
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7398 $as_echo "$ac_try_echo") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7401 grep -v '^ *+' conftest.er1 >conftest.err
7403 cat conftest.err >&5
7404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7409 ac_hi=$ac_mid; break
7411 $as_echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 ac_lo=`expr $ac_mid + 1`
7415 if test $ac_lo -le $ac_mid; then
7419 ac_mid=`expr 2 '*' $ac_mid + 1`
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425 $as_echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7428 cat >conftest.$ac_ext <<_ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 $ac_includes_default
7438 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7445 rm -f conftest.$ac_objext
7446 if { (ac_try="$ac_compile"
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7452 $as_echo "$ac_try_echo") >&5
7453 (eval "$ac_compile") 2>conftest.er1
7455 grep -v '^ *+' conftest.er1 >conftest.err
7457 cat conftest.err >&5
7458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && {
7460 test -z "$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 } && test -s conftest.$ac_objext; then
7465 cat >conftest.$ac_ext <<_ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 $ac_includes_default
7475 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7482 rm -f conftest.$ac_objext
7483 if { (ac_try="$ac_compile"
7485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486 *) ac_try_echo=$ac_try;;
7488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7489 $as_echo "$ac_try_echo") >&5
7490 (eval "$ac_compile") 2>conftest.er1
7492 grep -v '^ *+' conftest.er1 >conftest.err
7494 cat conftest.err >&5
7495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } && {
7497 test -z "$ac_c_werror_flag" ||
7498 test ! -s conftest.err
7499 } && test -s conftest.$ac_objext; then
7500 ac_lo=$ac_mid; break
7502 $as_echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7505 ac_hi=`expr '(' $ac_mid ')' - 1`
7506 if test $ac_mid -le $ac_hi; then
7510 ac_mid=`expr 2 '*' $ac_mid`
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516 $as_echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 # Binary search between lo and hi bounds.
7527 while test "x$ac_lo" != "x$ac_hi"; do
7528 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7529 cat >conftest.$ac_ext <<_ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 $ac_includes_default
7539 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7546 rm -f conftest.$ac_objext
7547 if { (ac_try="$ac_compile"
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554 (eval "$ac_compile") 2>conftest.er1
7556 grep -v '^ *+' conftest.er1 >conftest.err
7558 cat conftest.err >&5
7559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest.$ac_objext; then
7566 $as_echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7569 ac_lo=`expr '(' $ac_mid ')' + 1`
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7576 '') if test "$ac_cv_type_signed_long_long" = yes; then
7577 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7579 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7580 See \`config.log' for more details." >&5
7581 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7582 See \`config.log' for more details." >&2;}
7583 { (exit 77); exit 77; }; }; }
7585 ac_cv_sizeof_signed_long_long=0
7589 cat >conftest.$ac_ext <<_ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 $ac_includes_default
7596 static long int longval () { return (long int) (sizeof (signed long long)); }
7597 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7604 FILE *f = fopen ("conftest.val", "w");
7607 if (((long int) (sizeof (signed long long))) < 0)
7609 long int i = longval ();
7610 if (i != ((long int) (sizeof (signed long long))))
7612 fprintf (f, "%ld", i);
7616 unsigned long int i = ulongval ();
7617 if (i != ((long int) (sizeof (signed long long))))
7619 fprintf (f, "%lu", i);
7621 /* Do not output a trailing newline, as this causes \r\n confusion
7622 on some platforms. */
7623 return ferror (f) || fclose (f) != 0;
7629 rm -f conftest$ac_exeext
7630 if { (ac_try="$ac_link"
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7636 $as_echo "$ac_try_echo") >&5
7637 (eval "$ac_link") 2>&5
7639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7641 { (case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7646 $as_echo "$ac_try_echo") >&5
7647 (eval "$ac_try") 2>&5
7649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7651 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7653 $as_echo "$as_me: program exited with status $ac_status" >&5
7654 $as_echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7658 if test "$ac_cv_type_signed_long_long" = yes; then
7659 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7661 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7662 See \`config.log' for more details." >&5
7663 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7664 See \`config.log' for more details." >&2;}
7665 { (exit 77); exit 77; }; }; }
7667 ac_cv_sizeof_signed_long_long=0
7670 rm -rf conftest.dSYM
7671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7675 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7676 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7680 cat >>confdefs.h <<_ACEOF
7681 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7685 # The cast to long int works around a bug in the HP C Compiler
7686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7688 # This bug is HP SR number 8606223364.
7689 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7690 $as_echo_n "checking size of void*... " >&6; }
7691 if test "${ac_cv_sizeof_voidp+set}" = set; then
7692 $as_echo_n "(cached) " >&6
7694 if test "$cross_compiling" = yes; then
7695 # Depending upon the size, compute the lo and hi bounds.
7696 cat >conftest.$ac_ext <<_ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 $ac_includes_default
7706 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7713 rm -f conftest.$ac_objext
7714 if { (ac_try="$ac_compile"
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7720 $as_echo "$ac_try_echo") >&5
7721 (eval "$ac_compile") 2>conftest.er1
7723 grep -v '^ *+' conftest.er1 >conftest.err
7725 cat conftest.err >&5
7726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && {
7728 test -z "$ac_c_werror_flag" ||
7729 test ! -s conftest.err
7730 } && test -s conftest.$ac_objext; then
7733 cat >conftest.$ac_ext <<_ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 $ac_includes_default
7743 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7750 rm -f conftest.$ac_objext
7751 if { (ac_try="$ac_compile"
7753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754 *) ac_try_echo=$ac_try;;
7756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7757 $as_echo "$ac_try_echo") >&5
7758 (eval "$ac_compile") 2>conftest.er1
7760 grep -v '^ *+' conftest.er1 >conftest.err
7762 cat conftest.err >&5
7763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } && {
7765 test -z "$ac_c_werror_flag" ||
7766 test ! -s conftest.err
7767 } && test -s conftest.$ac_objext; then
7768 ac_hi=$ac_mid; break
7770 $as_echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 ac_lo=`expr $ac_mid + 1`
7774 if test $ac_lo -le $ac_mid; then
7778 ac_mid=`expr 2 '*' $ac_mid + 1`
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 $as_echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 cat >conftest.$ac_ext <<_ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793 $ac_includes_default
7797 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7804 rm -f conftest.$ac_objext
7805 if { (ac_try="$ac_compile"
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7811 $as_echo "$ac_try_echo") >&5
7812 (eval "$ac_compile") 2>conftest.er1
7814 grep -v '^ *+' conftest.er1 >conftest.err
7816 cat conftest.err >&5
7817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } && {
7819 test -z "$ac_c_werror_flag" ||
7820 test ! -s conftest.err
7821 } && test -s conftest.$ac_objext; then
7824 cat >conftest.$ac_ext <<_ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7830 $ac_includes_default
7834 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7848 $as_echo "$ac_try_echo") >&5
7849 (eval "$ac_compile") 2>conftest.er1
7851 grep -v '^ *+' conftest.er1 >conftest.err
7853 cat conftest.err >&5
7854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } && {
7856 test -z "$ac_c_werror_flag" ||
7857 test ! -s conftest.err
7858 } && test -s conftest.$ac_objext; then
7859 ac_lo=$ac_mid; break
7861 $as_echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7864 ac_hi=`expr '(' $ac_mid ')' - 1`
7865 if test $ac_mid -le $ac_hi; then
7869 ac_mid=`expr 2 '*' $ac_mid`
7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875 $as_echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 # Binary search between lo and hi bounds.
7886 while test "x$ac_lo" != "x$ac_hi"; do
7887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7888 cat >conftest.$ac_ext <<_ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 $ac_includes_default
7898 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7905 rm -f conftest.$ac_objext
7906 if { (ac_try="$ac_compile"
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7912 $as_echo "$ac_try_echo") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7915 grep -v '^ *+' conftest.er1 >conftest.err
7917 cat conftest.err >&5
7918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest.$ac_objext; then
7925 $as_echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_lo=`expr '(' $ac_mid ')' + 1`
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 ?*) ac_cv_sizeof_voidp=$ac_lo;;
7935 '') if test "$ac_cv_type_voidp" = yes; then
7936 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7938 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
7939 See \`config.log' for more details." >&5
7940 $as_echo "$as_me: error: cannot compute sizeof (void*)
7941 See \`config.log' for more details." >&2;}
7942 { (exit 77); exit 77; }; }; }
7944 ac_cv_sizeof_voidp=0
7948 cat >conftest.$ac_ext <<_ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 $ac_includes_default
7955 static long int longval () { return (long int) (sizeof (void*)); }
7956 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
7963 FILE *f = fopen ("conftest.val", "w");
7966 if (((long int) (sizeof (void*))) < 0)
7968 long int i = longval ();
7969 if (i != ((long int) (sizeof (void*))))
7971 fprintf (f, "%ld", i);
7975 unsigned long int i = ulongval ();
7976 if (i != ((long int) (sizeof (void*))))
7978 fprintf (f, "%lu", i);
7980 /* Do not output a trailing newline, as this causes \r\n confusion
7981 on some platforms. */
7982 return ferror (f) || fclose (f) != 0;
7988 rm -f conftest$ac_exeext
7989 if { (ac_try="$ac_link"
7991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992 *) ac_try_echo=$ac_try;;
7994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7995 $as_echo "$ac_try_echo") >&5
7996 (eval "$ac_link") 2>&5
7998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8000 { (case "(($ac_try" in
8001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8005 $as_echo "$ac_try_echo") >&5
8006 (eval "$ac_try") 2>&5
8008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010 ac_cv_sizeof_voidp=`cat conftest.val`
8012 $as_echo "$as_me: program exited with status $ac_status" >&5
8013 $as_echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8017 if test "$ac_cv_type_voidp" = yes; then
8018 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8020 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8021 See \`config.log' for more details." >&5
8022 $as_echo "$as_me: error: cannot compute sizeof (void*)
8023 See \`config.log' for more details." >&2;}
8024 { (exit 77); exit 77; }; }; }
8026 ac_cv_sizeof_voidp=0
8029 rm -rf conftest.dSYM
8030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8034 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8035 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8039 cat >>confdefs.h <<_ACEOF
8040 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8047 # Extract the first word of "freetype-config", so it can be a program name with args.
8048 set dummy freetype-config; ac_word=$2
8049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8052 $as_echo_n "(cached) " >&6
8054 case $FREETYPE_CONFIG in
8056 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8061 for as_dir in $as_dummy
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8068 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8079 if test -n "$FREETYPE_CONFIG"; then
8080 { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8081 $as_echo "$FREETYPE_CONFIG" >&6; }
8083 { $as_echo "$as_me:$LINENO: result: no" >&5
8084 $as_echo "no" >&6; }
8089 OLDCPPFLAGS="${CPPFLAGS}"
8091 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8092 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8093 else if test -d /usr/include/freetype2; then
8094 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8095 else if test -d /usr/local/include/freetype2; then
8096 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8101 if test "x${FREETYPE_CONFIG}" '=' "x";then
8102 # if we didn't find the freetype-config program, we won't
8103 # know where the libs are expected to be. So just blindly
8104 # try to link against them.
8105 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8106 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8107 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8108 $as_echo_n "(cached) " >&6
8110 ac_check_lib_save_LIBS=$LIBS
8111 LIBS="-lfreetype $LIBS"
8112 cat >conftest.$ac_ext <<_ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8119 /* Override any GCC internal prototype to avoid an error.
8120 Use char because int might match the return type of a GCC
8121 builtin and then its argument prototype would still apply. */
8125 char FT_Init_FreeType ();
8129 return FT_Init_FreeType ();
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (ac_try="$ac_link"
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8141 $as_echo "$ac_try_echo") >&5
8142 (eval "$ac_link") 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest$ac_exeext && {
8152 test "$cross_compiling" = yes ||
8153 $as_test_x conftest$ac_exeext
8155 ac_cv_lib_freetype_FT_Init_FreeType=yes
8157 $as_echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 ac_cv_lib_freetype_FT_Init_FreeType=no
8163 rm -rf conftest.dSYM
8164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8165 conftest$ac_exeext conftest.$ac_ext
8166 LIBS=$ac_check_lib_save_LIBS
8168 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8169 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8170 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
8177 for ac_header in ft2build.h
8179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8181 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8182 $as_echo_n "checking for $ac_header... " >&6; }
8183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8184 $as_echo_n "(cached) " >&6
8186 ac_res=`eval 'as_val=${'$as_ac_Header'}
8187 $as_echo "$as_val"'`
8188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8189 $as_echo "$ac_res" >&6; }
8191 # Is the header compilable?
8192 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8193 $as_echo_n "checking $ac_header usability... " >&6; }
8194 cat >conftest.$ac_ext <<_ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 $ac_includes_default
8201 #include <$ac_header>
8203 rm -f conftest.$ac_objext
8204 if { (ac_try="$ac_compile"
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8210 $as_echo "$ac_try_echo") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8213 grep -v '^ *+' conftest.er1 >conftest.err
8215 cat conftest.err >&5
8216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.$ac_objext; then
8221 ac_header_compiler=yes
8223 $as_echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 ac_header_compiler=no
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8231 $as_echo "$ac_header_compiler" >&6; }
8233 # Is the header present?
8234 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8235 $as_echo_n "checking $ac_header presence... " >&6; }
8236 cat >conftest.$ac_ext <<_ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 #include <$ac_header>
8244 if { (ac_try="$ac_cpp conftest.$ac_ext"
8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8250 $as_echo "$ac_try_echo") >&5
8251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8253 grep -v '^ *+' conftest.er1 >conftest.err
8255 cat conftest.err >&5
8256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } >/dev/null && {
8258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8259 test ! -s conftest.err
8261 ac_header_preproc=yes
8263 $as_echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 ac_header_preproc=no
8269 rm -f conftest.err conftest.$ac_ext
8270 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8271 $as_echo "$ac_header_preproc" >&6; }
8273 # So? What about this header?
8274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8277 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8279 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8280 ac_header_preproc=yes
8283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8284 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8286 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8288 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8290 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8294 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8299 $as_echo_n "checking for $ac_header... " >&6; }
8300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8301 $as_echo_n "(cached) " >&6
8303 eval "$as_ac_Header=\$ac_header_preproc"
8305 ac_res=`eval 'as_val=${'$as_ac_Header'}
8306 $as_echo "$as_val"'`
8307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8308 $as_echo "$ac_res" >&6; }
8311 as_val=`eval 'as_val=${'$as_ac_Header'}
8312 $as_echo "$as_val"'`
8313 if test "x$as_val" = x""yes; then
8314 cat >>confdefs.h <<_ACEOF
8315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8322 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8324 for ac_header in freetype/freetype.h
8326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8328 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8329 $as_echo_n "checking for $ac_header... " >&6; }
8330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8331 $as_echo_n "(cached) " >&6
8333 ac_res=`eval 'as_val=${'$as_ac_Header'}
8334 $as_echo "$as_val"'`
8335 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8336 $as_echo "$ac_res" >&6; }
8338 # Is the header compilable?
8339 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8340 $as_echo_n "checking $ac_header usability... " >&6; }
8341 cat >conftest.$ac_ext <<_ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 $ac_includes_default
8348 #include <$ac_header>
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8357 $as_echo "$ac_try_echo") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8360 grep -v '^ *+' conftest.er1 >conftest.err
8362 cat conftest.err >&5
8363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.$ac_objext; then
8368 ac_header_compiler=yes
8370 $as_echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8373 ac_header_compiler=no
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8378 $as_echo "$ac_header_compiler" >&6; }
8380 # Is the header present?
8381 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8382 $as_echo_n "checking $ac_header presence... " >&6; }
8383 cat >conftest.$ac_ext <<_ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 #include <$ac_header>
8391 if { (ac_try="$ac_cpp conftest.$ac_ext"
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8397 $as_echo "$ac_try_echo") >&5
8398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8400 grep -v '^ *+' conftest.er1 >conftest.err
8402 cat conftest.err >&5
8403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } >/dev/null && {
8405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8406 test ! -s conftest.err
8408 ac_header_preproc=yes
8410 $as_echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_header_preproc=no
8416 rm -f conftest.err conftest.$ac_ext
8417 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8418 $as_echo "$ac_header_preproc" >&6; }
8420 # So? What about this header?
8421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8424 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8427 ac_header_preproc=yes
8430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8431 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8433 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8435 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8437 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8439 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8441 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8445 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8446 $as_echo_n "checking for $ac_header... " >&6; }
8447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8448 $as_echo_n "(cached) " >&6
8450 eval "$as_ac_Header=\$ac_header_preproc"
8452 ac_res=`eval 'as_val=${'$as_ac_Header'}
8453 $as_echo "$as_val"'`
8454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8455 $as_echo "$ac_res" >&6; }
8458 as_val=`eval 'as_val=${'$as_ac_Header'}
8459 $as_echo "$as_val"'`
8460 if test "x$as_val" = x""yes; then
8461 cat >>confdefs.h <<_ACEOF
8462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8464 HAVE_FREETYPE_FREETYPE_H=1
8471 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8472 "x${FREETYPE_CONFIG}" '!=' "x";then
8473 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8476 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8481 if test "x${HAVE_FREETYPE}" = "x1"; then
8482 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8483 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8485 LIBS="$LIBS -lfreetype"
8488 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8489 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8492 { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8493 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8495 cat > conftest.c << EOF
8496 $HAVE_FT2BUILD_H_DEFINE
8498 #ifdef HAVE_FT2BUILD_H
8499 #include <ft2build.h>
8500 #include FT_FREETYPE_H
8503 #include FT_SFNT_NAMES_H
8504 #include FT_TRUETYPE_IDS_H
8505 #include FT_OUTLINE_H
8507 #include <freetype/freetype.h>
8508 #include <freetype/ftglyph.h>
8509 #include <freetype/ftsizes.h>
8510 #include <freetype/ftsnames.h>
8511 #include <freetype/ttnameid.h>
8512 #include <freetype/ftoutln.h>
8517 FT_Library ftlibrary;
8529 FT_Init_FreeType(&ftlibrary);
8530 FT_New_Face(ftlibrary, "filename", 0, &face);
8531 i = face->num_glyphs - 1;
8532 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8533 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8534 FT_Get_Postscript_Name(face);
8535 FT_Get_Char_Index(face, 33);
8536 FT_Get_First_Char(face, &i);
8537 FT_Get_Next_Char(face, 33, &i);
8538 if(FT_HAS_GLYPH_NAMES(face)) {
8539 FT_Get_Glyph_Name(face, 33, name, 127);
8541 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8542 FT_Get_Glyph(face->glyph, &glyph);
8543 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8544 FT_Done_Glyph(glyph);
8546 FT_Done_FreeType(ftlibrary);
8551 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8552 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8553 { $as_echo "$as_me:$LINENO: result: yes" >&5
8554 $as_echo "yes" >&6; }
8556 cat >>confdefs.h <<\_ACEOF
8557 #define HAVE_FREETYPE 1
8561 cat >>confdefs.h <<\_ACEOF
8562 #define HAVE_FREETYPE_FREETYPE_H 1
8566 cat >>confdefs.h <<\_ACEOF
8567 #define USE_FREETYPE 1
8571 echo "configure: failed program was:" >&5
8574 { $as_echo "$as_me:$LINENO: result: no" >&5
8575 $as_echo "no" >&6; }
8580 # if the above didn't work out, reset all changes to the compiler variables.
8581 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8582 CPPFLAGS=$OLDCPPFLAGS
8588 OLDCPPFLAGS="${CPPFLAGS}"
8591 if test -d /usr/include/fontconfig; then
8592 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8595 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8596 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8597 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8598 $as_echo_n "(cached) " >&6
8600 ac_check_lib_save_LIBS=$LIBS
8601 LIBS="-lfontconfig $LIBS"
8602 cat >conftest.$ac_ext <<_ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8609 /* Override any GCC internal prototype to avoid an error.
8610 Use char because int might match the return type of a GCC
8611 builtin and then its argument prototype would still apply. */
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (ac_try="$ac_link"
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8631 $as_echo "$ac_try_echo") >&5
8632 (eval "$ac_link") 2>conftest.er1
8634 grep -v '^ *+' conftest.er1 >conftest.err
8636 cat conftest.err >&5
8637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && {
8639 test -z "$ac_c_werror_flag" ||
8640 test ! -s conftest.err
8641 } && test -s conftest$ac_exeext && {
8642 test "$cross_compiling" = yes ||
8643 $as_test_x conftest$ac_exeext
8645 ac_cv_lib_fontconfig_FcInit=yes
8647 $as_echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8650 ac_cv_lib_fontconfig_FcInit=no
8653 rm -rf conftest.dSYM
8654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8655 conftest$ac_exeext conftest.$ac_ext
8656 LIBS=$ac_check_lib_save_LIBS
8658 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8659 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8660 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then
8661 HAVE_LIB_FONTCONFIG=1
8665 for ac_header in fontconfig.h
8667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8669 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8670 $as_echo_n "checking for $ac_header... " >&6; }
8671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8672 $as_echo_n "(cached) " >&6
8674 ac_res=`eval 'as_val=${'$as_ac_Header'}
8675 $as_echo "$as_val"'`
8676 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8677 $as_echo "$ac_res" >&6; }
8679 # Is the header compilable?
8680 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8681 $as_echo_n "checking $ac_header usability... " >&6; }
8682 cat >conftest.$ac_ext <<_ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688 $ac_includes_default
8689 #include <$ac_header>
8691 rm -f conftest.$ac_objext
8692 if { (ac_try="$ac_compile"
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8698 $as_echo "$ac_try_echo") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8701 grep -v '^ *+' conftest.er1 >conftest.err
8703 cat conftest.err >&5
8704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest.$ac_objext; then
8709 ac_header_compiler=yes
8711 $as_echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8714 ac_header_compiler=no
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719 $as_echo "$ac_header_compiler" >&6; }
8721 # Is the header present?
8722 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8723 $as_echo_n "checking $ac_header presence... " >&6; }
8724 cat >conftest.$ac_ext <<_ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 #include <$ac_header>
8732 if { (ac_try="$ac_cpp conftest.$ac_ext"
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8738 $as_echo "$ac_try_echo") >&5
8739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8741 grep -v '^ *+' conftest.er1 >conftest.err
8743 cat conftest.err >&5
8744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } >/dev/null && {
8746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8747 test ! -s conftest.err
8749 ac_header_preproc=yes
8751 $as_echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 ac_header_preproc=no
8757 rm -f conftest.err conftest.$ac_ext
8758 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759 $as_echo "$ac_header_preproc" >&6; }
8761 # So? What about this header?
8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8765 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8767 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc=yes
8771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8772 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8774 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8776 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8778 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8780 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8782 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8786 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8787 $as_echo_n "checking for $ac_header... " >&6; }
8788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8789 $as_echo_n "(cached) " >&6
8791 eval "$as_ac_Header=\$ac_header_preproc"
8793 ac_res=`eval 'as_val=${'$as_ac_Header'}
8794 $as_echo "$as_val"'`
8795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8796 $as_echo "$ac_res" >&6; }
8799 as_val=`eval 'as_val=${'$as_ac_Header'}
8800 $as_echo "$as_val"'`
8801 if test "x$as_val" = x""yes; then
8802 cat >>confdefs.h <<_ACEOF
8803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8811 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8812 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8817 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8818 LIBS="$LIBS -lfontconfig"
8819 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8820 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8822 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8823 #move freetype library to the end of libraries, otherwise fontconfig
8825 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8828 cat > conftest.c << EOF
8830 #include <fontconfig.h>
8834 FcPattern *pattern, *match;
8837 char*s1="abc",*s2="ABC";
8840 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8841 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8842 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8844 FcConfig*c = FcConfigCreate();
8845 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8846 FcConfigBuildFonts(c);
8847 FcConfigSetCurrent(c);
8849 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
8850 FcFontSetDestroy(set);
8852 FcConfigSubstitute(0, pattern, FcMatchPattern);
8853 FcDefaultSubstitute(pattern);
8854 match = FcFontMatch(0, pattern, &result);
8855 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8856 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8857 FcPatternPrint(pattern);
8858 FcPatternDestroy(pattern);
8859 FcPatternDestroy(match);
8865 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8866 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8867 { $as_echo "$as_me:$LINENO: result: yes" >&5
8868 $as_echo "yes" >&6; }
8870 cat >>confdefs.h <<\_ACEOF
8871 #define HAVE_FONTCONFIG 1
8875 echo "configure: failed program was:" >&5
8878 { $as_echo "$as_me:$LINENO: result: no" >&5
8879 $as_echo "no" >&6; }
8884 # if the above didn't work out, reset all changes to the compiler variables.
8885 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8886 CPPFLAGS=$OLDCPPFLAGS
8892 OLDCPPFLAGS="${CPPFLAGS}"
8896 { $as_echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
8897 $as_echo_n "checking for glBegin in -lGL... " >&6; }
8898 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
8899 $as_echo_n "(cached) " >&6
8901 ac_check_lib_save_LIBS=$LIBS
8903 cat >conftest.$ac_ext <<_ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8910 /* Override any GCC internal prototype to avoid an error.
8911 Use char because int might match the return type of a GCC
8912 builtin and then its argument prototype would still apply. */
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (ac_try="$ac_link"
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932 $as_echo "$ac_try_echo") >&5
8933 (eval "$ac_link") 2>conftest.er1
8935 grep -v '^ *+' conftest.er1 >conftest.err
8937 cat conftest.err >&5
8938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest$ac_exeext && {
8943 test "$cross_compiling" = yes ||
8944 $as_test_x conftest$ac_exeext
8946 ac_cv_lib_GL_glBegin=yes
8948 $as_echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8951 ac_cv_lib_GL_glBegin=no
8954 rm -rf conftest.dSYM
8955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8956 conftest$ac_exeext conftest.$ac_ext
8957 LIBS=$ac_check_lib_save_LIBS
8959 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
8960 $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
8961 if test "x$ac_cv_lib_GL_glBegin" = x""yes; then
8962 cat >>confdefs.h <<_ACEOF
8963 #define HAVE_LIBGL 1
8971 { $as_echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
8972 $as_echo_n "checking for gluBeginSurface in -lGLU... " >&6; }
8973 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
8974 $as_echo_n "(cached) " >&6
8976 ac_check_lib_save_LIBS=$LIBS
8978 cat >conftest.$ac_ext <<_ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8985 /* Override any GCC internal prototype to avoid an error.
8986 Use char because int might match the return type of a GCC
8987 builtin and then its argument prototype would still apply. */
8991 char gluBeginSurface ();
8995 return gluBeginSurface ();
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (ac_try="$ac_link"
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9007 $as_echo "$ac_try_echo") >&5
9008 (eval "$ac_link") 2>conftest.er1
9010 grep -v '^ *+' conftest.er1 >conftest.err
9012 cat conftest.err >&5
9013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } && {
9015 test -z "$ac_c_werror_flag" ||
9016 test ! -s conftest.err
9017 } && test -s conftest$ac_exeext && {
9018 test "$cross_compiling" = yes ||
9019 $as_test_x conftest$ac_exeext
9021 ac_cv_lib_GLU_gluBeginSurface=yes
9023 $as_echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9026 ac_cv_lib_GLU_gluBeginSurface=no
9029 rm -rf conftest.dSYM
9030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9031 conftest$ac_exeext conftest.$ac_ext
9032 LIBS=$ac_check_lib_save_LIBS
9034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
9035 $as_echo "$ac_cv_lib_GLU_gluBeginSurface" >&6; }
9036 if test "x$ac_cv_lib_GLU_gluBeginSurface" = x""yes; then
9037 cat >>confdefs.h <<_ACEOF
9038 #define HAVE_LIBGLU 1
9046 { $as_echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
9047 $as_echo_n "checking for glutInit in -lglut... " >&6; }
9048 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
9049 $as_echo_n "(cached) " >&6
9051 ac_check_lib_save_LIBS=$LIBS
9053 cat >conftest.$ac_ext <<_ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9060 /* Override any GCC internal prototype to avoid an error.
9061 Use char because int might match the return type of a GCC
9062 builtin and then its argument prototype would still apply. */
9075 rm -f conftest.$ac_objext conftest$ac_exeext
9076 if { (ac_try="$ac_link"
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9082 $as_echo "$ac_try_echo") >&5
9083 (eval "$ac_link") 2>conftest.er1
9085 grep -v '^ *+' conftest.er1 >conftest.err
9087 cat conftest.err >&5
9088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } && {
9090 test -z "$ac_c_werror_flag" ||
9091 test ! -s conftest.err
9092 } && test -s conftest$ac_exeext && {
9093 test "$cross_compiling" = yes ||
9094 $as_test_x conftest$ac_exeext
9096 ac_cv_lib_glut_glutInit=yes
9098 $as_echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9101 ac_cv_lib_glut_glutInit=no
9104 rm -rf conftest.dSYM
9105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9106 conftest$ac_exeext conftest.$ac_ext
9107 LIBS=$ac_check_lib_save_LIBS
9109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9110 $as_echo "$ac_cv_lib_glut_glutInit" >&6; }
9111 if test "x$ac_cv_lib_glut_glutInit" = x""yes; then
9112 cat >>confdefs.h <<_ACEOF
9113 #define HAVE_LIBGLUT 1
9122 for ac_header in GL/gl.h GL/glut.h
9124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9127 $as_echo_n "checking for $ac_header... " >&6; }
9128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9129 $as_echo_n "(cached) " >&6
9131 ac_res=`eval 'as_val=${'$as_ac_Header'}
9132 $as_echo "$as_val"'`
9133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9134 $as_echo "$ac_res" >&6; }
9136 # Is the header compilable?
9137 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9138 $as_echo_n "checking $ac_header usability... " >&6; }
9139 cat >conftest.$ac_ext <<_ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9145 $ac_includes_default
9146 #include <$ac_header>
9148 rm -f conftest.$ac_objext
9149 if { (ac_try="$ac_compile"
9151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9152 *) ac_try_echo=$ac_try;;
9154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9155 $as_echo "$ac_try_echo") >&5
9156 (eval "$ac_compile") 2>conftest.er1
9158 grep -v '^ *+' conftest.er1 >conftest.err
9160 cat conftest.err >&5
9161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } && {
9163 test -z "$ac_c_werror_flag" ||
9164 test ! -s conftest.err
9165 } && test -s conftest.$ac_objext; then
9166 ac_header_compiler=yes
9168 $as_echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 ac_header_compiler=no
9174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9176 $as_echo "$ac_header_compiler" >&6; }
9178 # Is the header present?
9179 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9180 $as_echo_n "checking $ac_header presence... " >&6; }
9181 cat >conftest.$ac_ext <<_ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 #include <$ac_header>
9189 if { (ac_try="$ac_cpp conftest.$ac_ext"
9191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9195 $as_echo "$ac_try_echo") >&5
9196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9198 grep -v '^ *+' conftest.er1 >conftest.err
9200 cat conftest.err >&5
9201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } >/dev/null && {
9203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9204 test ! -s conftest.err
9206 ac_header_preproc=yes
9208 $as_echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9211 ac_header_preproc=no
9214 rm -f conftest.err conftest.$ac_ext
9215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9216 $as_echo "$ac_header_preproc" >&6; }
9218 # So? What about this header?
9219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9222 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9224 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9225 ac_header_preproc=yes
9228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9229 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9231 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9233 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9235 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9237 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9239 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9243 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9244 $as_echo_n "checking for $ac_header... " >&6; }
9245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9246 $as_echo_n "(cached) " >&6
9248 eval "$as_ac_Header=\$ac_header_preproc"
9250 ac_res=`eval 'as_val=${'$as_ac_Header'}
9251 $as_echo "$as_val"'`
9252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9253 $as_echo "$ac_res" >&6; }
9256 as_val=`eval 'as_val=${'$as_ac_Header'}
9257 $as_echo "$as_val"'`
9258 if test "x$as_val" = x""yes; then
9259 cat >>confdefs.h <<_ACEOF
9260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9268 cat > conftest.c << EOF
9271 #include <GL/glut.h>
9273 int main(int argc, char*argv)
9275 glutInit(&argc, argv);
9276 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9277 glutInitWindowSize(320,200);
9278 glutInitWindowPosition(0,0);
9279 glutCreateWindow("main");
9280 glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9281 glShadeModel(GL_SMOOTH);
9282 glEnable (GL_LINE_SMOOTH);
9283 glEnable (GL_POLYGON_SMOOTH);
9284 glEnable (GL_BLEND);
9285 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9286 glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9287 glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9291 { $as_echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9292 $as_echo_n "checking whether we can compile the opengl test program... " >&6; }
9294 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9295 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9296 { $as_echo "$as_me:$LINENO: result: yes" >&5
9297 $as_echo "yes" >&6; }
9300 cat >>confdefs.h <<\_ACEOF
9301 #define HAVE_OPENGL 1
9305 echo "configure: failed program was:" >&5
9308 { $as_echo "$as_me:$LINENO: result: no" >&5
9309 $as_echo "no" >&6; }
9313 # if the above didn't work out, reset all changes to the compiler variables.
9314 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9315 CPPFLAGS=$OLDCPPFLAGS
9319 if test "$HAVE_OPENGL";then
9320 DEVICE_OPENGL='devices/opengl.$(O)'
9326 if test "x${DISABLE_LAME}" = "xtrue"; then
9327 echo "*" Disabling lame support...
9329 # old lame code at lib/lame
9330 if test -f lib/lame/Makefile.in; then
9331 lame_in_source='$(lame_objects)'
9332 lame_makefile="lib/lame/Makefile"
9333 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9335 cat >>confdefs.h <<\_ACEOF
9340 if test -d /usr/include/lame; then
9341 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9343 if test -d /usr/local/include/lame; then
9344 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9348 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9349 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9350 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9351 $as_echo_n "(cached) " >&6
9353 ac_check_lib_save_LIBS=$LIBS
9354 LIBS="-lmp3lame $LIBS"
9355 cat >conftest.$ac_ext <<_ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9362 /* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */
9372 return lame_init ();
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9384 $as_echo "$ac_try_echo") >&5
9385 (eval "$ac_link") 2>conftest.er1
9387 grep -v '^ *+' conftest.er1 >conftest.err
9389 cat conftest.err >&5
9390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest$ac_exeext && {
9395 test "$cross_compiling" = yes ||
9396 $as_test_x conftest$ac_exeext
9398 ac_cv_lib_mp3lame_lame_init=yes
9400 $as_echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 ac_cv_lib_mp3lame_lame_init=no
9406 rm -rf conftest.dSYM
9407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9408 conftest$ac_exeext conftest.$ac_ext
9409 LIBS=$ac_check_lib_save_LIBS
9411 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9412 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9413 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then
9414 cat >>confdefs.h <<_ACEOF
9415 #define HAVE_LIBMP3LAME 1
9418 LIBS="-lmp3lame $LIBS"
9426 for ac_header in lame.h
9428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9430 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9431 $as_echo_n "checking for $ac_header... " >&6; }
9432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9433 $as_echo_n "(cached) " >&6
9435 ac_res=`eval 'as_val=${'$as_ac_Header'}
9436 $as_echo "$as_val"'`
9437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9438 $as_echo "$ac_res" >&6; }
9440 # Is the header compilable?
9441 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9442 $as_echo_n "checking $ac_header usability... " >&6; }
9443 cat >conftest.$ac_ext <<_ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 $ac_includes_default
9450 #include <$ac_header>
9452 rm -f conftest.$ac_objext
9453 if { (ac_try="$ac_compile"
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9459 $as_echo "$ac_try_echo") >&5
9460 (eval "$ac_compile") 2>conftest.er1
9462 grep -v '^ *+' conftest.er1 >conftest.err
9464 cat conftest.err >&5
9465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } && {
9467 test -z "$ac_c_werror_flag" ||
9468 test ! -s conftest.err
9469 } && test -s conftest.$ac_objext; then
9470 ac_header_compiler=yes
9472 $as_echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9475 ac_header_compiler=no
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9480 $as_echo "$ac_header_compiler" >&6; }
9482 # Is the header present?
9483 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9484 $as_echo_n "checking $ac_header presence... " >&6; }
9485 cat >conftest.$ac_ext <<_ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 #include <$ac_header>
9493 if { (ac_try="$ac_cpp conftest.$ac_ext"
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9499 $as_echo "$ac_try_echo") >&5
9500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9502 grep -v '^ *+' conftest.er1 >conftest.err
9504 cat conftest.err >&5
9505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } >/dev/null && {
9507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9510 ac_header_preproc=yes
9512 $as_echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_header_preproc=no
9518 rm -f conftest.err conftest.$ac_ext
9519 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9520 $as_echo "$ac_header_preproc" >&6; }
9522 # So? What about this header?
9523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9526 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9528 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9529 ac_header_preproc=yes
9532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9533 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9535 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9537 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9539 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9541 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9543 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9547 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9548 $as_echo_n "checking for $ac_header... " >&6; }
9549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9550 $as_echo_n "(cached) " >&6
9552 eval "$as_ac_Header=\$ac_header_preproc"
9554 ac_res=`eval 'as_val=${'$as_ac_Header'}
9555 $as_echo "$as_val"'`
9556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9557 $as_echo "$ac_res" >&6; }
9560 as_val=`eval 'as_val=${'$as_ac_Header'}
9561 $as_echo "$as_val"'`
9562 if test "x$as_val" = x""yes; then
9563 cat >>confdefs.h <<_ACEOF
9564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9571 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9572 cat >>confdefs.h <<\_ACEOF
9582 cat >>confdefs.h <<\_ACEOF
9583 #define INTERNAL_LIBART 1
9586 art_in_source='$(art_objects)'
9587 splash_in_source='$(splash_objects)'
9588 xpdf_in_source='$(xpdf_objects)'
9595 # ------------------------------------------------------------------
9598 { $as_echo "$as_me:$LINENO: checking whether the filesystem normalizes file names" >&5
9599 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
9601 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
9602 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9603 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
9604 { $as_echo "$as_me:$LINENO: result: yes" >&5
9605 $as_echo "yes" >&6; }
9607 cat >>confdefs.h <<\_ACEOF
9608 #define LOWERCASE_UPPERCASE 1
9612 { $as_echo "$as_me:$LINENO: result: no" >&5
9613 $as_echo "no" >&6; }
9616 rm -f __abcdefghijklmnopqrstuvwxyz.txt
9617 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9621 for ac_prog in avifile-config
9623 # Extract the first word of "$ac_prog", so it can be a program name with args.
9624 set dummy $ac_prog; ac_word=$2
9625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9626 $as_echo_n "checking for $ac_word... " >&6; }
9627 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9628 $as_echo_n "(cached) " >&6
9630 if test -n "$AVIFILE_CONFIG"; then
9631 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 test -z "$as_dir" && as_dir=.
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9640 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9651 if test -n "$AVIFILE_CONFIG"; then
9652 { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9653 $as_echo "$AVIFILE_CONFIG" >&6; }
9655 { $as_echo "$as_me:$LINENO: result: no" >&5
9656 $as_echo "no" >&6; }
9660 test -n "$AVIFILE_CONFIG" && break
9664 if test "x$AVIFILE_CONFIG" '!=' "x";then
9665 OLDCPPFLAGS="$CPPFLAGS"
9666 # temporarily add avifile paths to CPPFLAGS...
9667 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9670 for ac_header in avifile/version.h version.h
9672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9674 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9675 $as_echo_n "checking for $ac_header... " >&6; }
9676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9677 $as_echo_n "(cached) " >&6
9679 ac_res=`eval 'as_val=${'$as_ac_Header'}
9680 $as_echo "$as_val"'`
9681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9682 $as_echo "$ac_res" >&6; }
9684 # Is the header compilable?
9685 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9686 $as_echo_n "checking $ac_header usability... " >&6; }
9687 cat >conftest.$ac_ext <<_ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 $ac_includes_default
9694 #include <$ac_header>
9696 rm -f conftest.$ac_objext
9697 if { (ac_try="$ac_compile"
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9703 $as_echo "$ac_try_echo") >&5
9704 (eval "$ac_compile") 2>conftest.er1
9706 grep -v '^ *+' conftest.er1 >conftest.err
9708 cat conftest.err >&5
9709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } && {
9711 test -z "$ac_c_werror_flag" ||
9712 test ! -s conftest.err
9713 } && test -s conftest.$ac_objext; then
9714 ac_header_compiler=yes
9716 $as_echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 ac_header_compiler=no
9722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9724 $as_echo "$ac_header_compiler" >&6; }
9726 # Is the header present?
9727 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9728 $as_echo_n "checking $ac_header presence... " >&6; }
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 #include <$ac_header>
9737 if { (ac_try="$ac_cpp conftest.$ac_ext"
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9743 $as_echo "$ac_try_echo") >&5
9744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9746 grep -v '^ *+' conftest.er1 >conftest.err
9748 cat conftest.err >&5
9749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } >/dev/null && {
9751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9752 test ! -s conftest.err
9754 ac_header_preproc=yes
9756 $as_echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9759 ac_header_preproc=no
9762 rm -f conftest.err conftest.$ac_ext
9763 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9764 $as_echo "$ac_header_preproc" >&6; }
9766 # So? What about this header?
9767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9770 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9772 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9773 ac_header_preproc=yes
9776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9777 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9779 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9781 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9783 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9785 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9787 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9792 $as_echo_n "checking for $ac_header... " >&6; }
9793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9794 $as_echo_n "(cached) " >&6
9796 eval "$as_ac_Header=\$ac_header_preproc"
9798 ac_res=`eval 'as_val=${'$as_ac_Header'}
9799 $as_echo "$as_val"'`
9800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9801 $as_echo "$ac_res" >&6; }
9804 as_val=`eval 'as_val=${'$as_ac_Header'}
9805 $as_echo "$as_val"'`
9806 if test "x$as_val" = x""yes; then
9807 cat >>confdefs.h <<_ACEOF
9808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9816 CPPFLAGS="$OLDCPPFLAGS"
9819 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9820 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
9822 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9823 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9825 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9826 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9829 cat > conftest.cpp << EOF
9831 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9832 // so we have to introduce them this way
9833 $HAVE_VERSION_H_DEFINE
9834 $HAVE_AVIFILE_VERSION_H_DEFINE
9836 #ifdef HAVE_VERSION_H
9837 #include <version.h>
9839 #ifdef HAVE_AVIFILE_VERSION_H
9840 #include <avifile/version.h>
9843 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9844 #include <avifile.h>
9845 #include <aviplay.h>
9846 #include <avm_fourcc.h>
9847 #include <avm_creators.h>
9848 #include <StreamInfo.h>
9851 #include <avifile.h>
9852 #include <aviplay.h>
9853 #include <aviutil.h>
9855 #define Height height
9862 IAviReadFile* player;
9863 IAviReadStream* astream;
9864 IAviReadStream* vstream;
9865 player = CreateIAviReadFile(0);
9866 astream = player->GetStream(0, AviStream::Audio);
9867 vstream = player->GetStream(0, AviStream::Video);
9868 vstream -> StartStreaming();
9869 astream -> StartStreaming();
9872 player->GetFileHeader(&head);
9873 head.dwMicroSecPerFrame;
9878 head.dwMicroSecPerFrame;
9879 astream->GetEndPos(),
9880 astream->GetEndTime());
9881 player->StreamCount();
9883 StreamInfo*audioinfo;
9884 StreamInfo*videoinfo;
9885 audioinfo = astream->GetStreamInfo();
9886 videoinfo = vstream->GetStreamInfo();
9887 videoinfo->GetVideoWidth();
9888 videoinfo->GetVideoHeight();
9889 audioinfo->GetAudioSamplesPerSec();
9890 videoinfo->GetFps();
9892 CImage*img = vstream->GetFrame();
9899 astream->GetAudioFormatInfo(&wave,0);
9901 astream->ReadFrames(0,0,0,a,b);
9903 int main (int argc, char*argv)
9909 if test "x$AVIFILE_CONFIG" '!=' "x";then
9910 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9911 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9912 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9913 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9914 { $as_echo "$as_me:$LINENO: result: yes" >&5
9915 $as_echo "yes" >&6; }
9919 cat >>confdefs.h <<\_ACEOF
9920 #define AVIFILE true
9924 echo "configure: failed program was:" >&5
9925 cat conftest.cpp >&5
9926 { $as_echo "$as_me:$LINENO: result: no" >&5
9927 $as_echo "no" >&6; }
9930 { $as_echo "$as_me:$LINENO: result: no" >&5
9931 $as_echo "no" >&6; }
9935 if test "x${AVIFILE}" = "xtrue"; then
9936 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9937 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_AVIFILE 1
9945 if test "x${WIN32}" != "x"; then
9946 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9947 #if test "x${AVIFIL32}" != "x"; then
9948 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9950 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9956 # ------------------------------------------------------------------
9958 if test "x${UNCOMPRESS}" = "xgzip"; then
9960 cat >>confdefs.h <<\_ACEOF
9967 # ------------------------------------------------------------------
9970 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
9971 $as_echo_n "checking for Python.h... " >&6; }
9973 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9976 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9977 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9979 # iterate through version 2.2 to 2.6
9980 for v in 2 3 4 5 6; do
9982 if test -f "/usr/include/python2.$v/Python.h";then
9984 PYTHON_LIB="-lpython$PY_VERSION"
9985 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9986 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9987 HAVE_PYTHON_IMAGING_LIB=1
9989 PYTHON_LIB2="$PYTHON_LIB"
9991 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9993 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9995 PYTHON_LIB="-framework Python"
9996 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
9997 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9998 HAVE_PYTHON_IMAGING_LIB=1
10000 PYTHON_LIB2="$PYTHON_LIB"
10002 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
10004 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
10005 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
10006 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
10008 -a -f "/sw/include/python2.$v/Python.h"; then
10010 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10011 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
10012 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10013 HAVE_PYTHON_IMAGING_LIB=1
10015 PYTHON_LIB2="$PYTHON_LIB"
10017 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
10022 if test "x$PY_VERSION" "!=" "x"; then
10023 { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
10024 $as_echo "$PY_VERSION" >&6; }
10025 export PYTHON_INCLUDES PYTHON_LIB
10028 { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
10029 $as_echo_n "checking whether we can compile the python test program... " >&6; }
10031 cat > conftest.c << EOF
10032 #include <Python.h>
10037 ret = Py_Main(0, 0);
10038 int x; // check also for gcc 2.95.x incompatibilities
10043 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
10044 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10045 { $as_echo "$as_me:$LINENO: result: yes" >&5
10046 $as_echo "yes" >&6; }
10049 echo "configure: failed program was:" >&5
10051 { $as_echo "$as_me:$LINENO: result: no" >&5
10052 $as_echo "no" >&6; }
10055 if test "x$PYTHON_OK" = "xyes";then
10056 { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
10057 $as_echo_n "checking for Python-Imaging... " >&6; }
10058 cat > conftest.c << EOF
10059 #include <Python.h>
10060 #include <Imaging.h>
10068 if test "$HAVE_PYTHON_IMAGING_LIB"; then
10069 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
10070 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10071 PYTHON_LIB="${PYTHON_LIB2}"
10073 cat >>confdefs.h <<\_ACEOF
10074 #define HAVE_PYTHON_IMAGING 1
10077 HAVE_PYTHON_IMAGING=yes
10078 export HAVE_PYTHON_IMAGING
10080 { $as_echo "$as_me:$LINENO: result: yes" >&5
10081 $as_echo "yes" >&6; }
10083 echo "configure: failed program was:" >&5
10085 { $as_echo "$as_me:$LINENO: result: no" >&5
10086 $as_echo "no" >&6; }
10089 echo "(didn't find the Python-Imaging libraries)" >&5
10090 { $as_echo "$as_me:$LINENO: result: no" >&5
10091 $as_echo "no" >&6; }
10096 { $as_echo "$as_me:$LINENO: result: nope" >&5
10097 $as_echo "nope" >&6; }
10101 if test "x$PYTHON_OK" '!=' "xyes";then
10102 echo all install uninstall clean: > lib/python/Makefile
10103 # fail silently- the most users won't have any need for the
10104 # python interface anyway
10106 pythonrfxswf="lib/python/Makefile"
10109 # ------------------------------------------------------------------
10111 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
10112 $as_echo_n "checking for missing libraries... " >&6; }
10114 if test "x$ZLIBMISSING" = "xtrue";then
10115 MISSINGLIBS="${MISSINGLIBS} zlib"
10116 DISABLEPNG2SWF=true
10119 if test "x$JPEGLIBMISSING" = "xtrue";then
10120 MISSINGLIBS="${MISSINGLIBS} jpeglib"
10121 DISABLEPDF2SWF=true
10122 DISABLEJPEG2SWF=true
10125 #if test "x$T1LIBMISSING" = "xtrue";then
10126 # MISSINGLIBS="${MISSINGLIBS} t1lib"
10128 if test "x$UNGIFMISSING" = "xtrue";then
10129 DISABLEGIF2SWF=true
10130 MISSINGLIBS="${MISSINGLIBS} ungif"
10134 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10135 DISABLEPDF2SWF=true;
10136 DISABLEJPEG2SWF=true;
10137 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10140 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10141 DISABLEPDF2SWF=true;
10142 MISSINGLIBS="${MISSINGLIBS} freetype"
10145 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10146 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10148 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10149 DISABLEGIF2SWF=true
10150 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10153 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10154 DISABLEPNG2SWF=true;
10155 MISSINGLIBS="${MISSINGLIBS} zlib.h"
10158 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10159 # MISSINGLIBS="${MISSINGLIBS} avifile"
10162 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10163 $as_echo "${MISSINGLIBS}" >&6; }
10165 # ------------------------------------------------------------------
10167 if test "x${MISSINGLIBS}" '!=' "x"; then
10168 echo "***************************************************"
10169 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10172 avi2swf="avi2swf/Makefile"
10173 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10174 #don't whine, avi2swf is outdated anyway
10175 #echo "* Disabling avi2swf tool..."
10176 echo all install uninstall clean: > avi2swf/Makefile
10180 pdf2swf_makefile="lib/pdf/Makefile"
10181 PDF2SWF='pdf2swf$(E)'
10182 LIBPDF='libpdf$(A)'
10184 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10185 echo "* Disabling pdf2swf tool..."
10186 rm -f lib/pdf/Makefile
10187 echo all install uninstall clean libpdf: > lib/pdf/Makefile
10188 pdf2swf_makefile=""
10195 if test "x${ZLIBMISSING}" = "xtrue"; then
10197 echo "* Warning! Without zlib, you will not be able to read"
10198 echo "* or write compressed Flash MX files!"
10201 JPEG2SWF='jpeg2swf$(E)'
10202 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10203 echo "* Disabling jpeg2swf tool..."
10209 GIF2SWF='gif2swf$(E)'
10210 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10211 echo "* Disabling gif2swf tool..."
10217 PNG2SWF='png2swf$(E)'
10218 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10219 echo "* Disabling png2swf tool..."
10225 if test "x${MISSINGLIBS}" '!=' "x"; then
10226 if test "x${PARTIAL}" '=' "x"; then
10227 echo "* (never mind)"
10229 echo "***************************************************"
10232 # ------------------------------------------------------------------
10240 if test -f "release.in"; then release_in="./release"; fi
10241 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10242 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
10243 ac_config_files="$ac_config_files ${FILES}"
10245 cat >confcache <<\_ACEOF
10246 # This file is a shell script that caches the results of configure
10247 # tests run on this system so they can be shared between configure
10248 # scripts and configure runs, see configure's option --config-cache.
10249 # It is not useful on other systems. If it contains results you don't
10250 # want to keep, you may remove or edit it.
10252 # config.status only pays attention to the cache file if you give it
10253 # the --recheck option to rerun configure.
10255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10257 # following values.
10261 # The following way of writing the cache mishandles newlines in values,
10262 # but we know of no workaround that is simple, portable, and efficient.
10263 # So, we kill variables containing newlines.
10264 # Ultrix sh set writes to stderr and can't be redirected directly,
10265 # and sets the high bit in the cache file unless we assign to the vars.
10267 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10268 eval ac_val=\$$ac_var
10272 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10273 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10276 _ | IFS | as_nl) ;; #(
10277 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10278 *) $as_unset $ac_var ;;
10284 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10285 *${as_nl}ac_space=\ *)
10286 # `set' does not quote correctly, so add quotes (double-quote
10287 # substitution turns \\\\ into \\, and sed turns \\ into \).
10290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10293 # `set' quotes correctly as required by POSIX, so do not add quotes.
10294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10303 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10305 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10307 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10308 if test -w "$cache_file"; then
10309 test "x$cache_file" != "x/dev/null" &&
10310 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10311 $as_echo "$as_me: updating cache $cache_file" >&6;}
10312 cat confcache >$cache_file
10314 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10315 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10320 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10321 # Let make expand exec_prefix.
10322 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10324 DEFS=-DHAVE_CONFIG_H
10328 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10329 # 1. Remove the extension, and $U if already installed.
10330 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10331 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10332 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10333 # will be set to the directory where LIBOBJS objects are built.
10334 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10335 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10337 LIBOBJS=$ac_libobjs
10339 LTLIBOBJS=$ac_ltlibobjs
10343 : ${CONFIG_STATUS=./config.status}
10345 ac_clean_files_save=$ac_clean_files
10346 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10347 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10348 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10349 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10351 # Generated by $as_me.
10352 # Run this file to recreate the current configuration.
10353 # Compiler output produced by configure, useful for debugging
10354 # configure, is in config.log if it exists.
10357 ac_cs_recheck=false
10359 SHELL=\${CONFIG_SHELL-$SHELL}
10362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10363 ## --------------------- ##
10364 ## M4sh Initialization. ##
10365 ## --------------------- ##
10367 # Be more Bourne compatible
10368 DUALCASE=1; export DUALCASE # for MKS sh
10369 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10372 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10373 # is contrary to our usage. Disable this feature.
10374 alias -g '${1+"$@"}'='"$@"'
10375 setopt NO_GLOB_SUBST
10377 case `(set -o) 2>/dev/null` in
10378 *posix*) set -o posix ;;
10387 # Avoid depending upon Character Ranges.
10388 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10389 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10390 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10391 as_cr_digits='0123456789'
10392 as_cr_alnum=$as_cr_Letters$as_cr_digits
10397 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10398 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10399 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10400 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10401 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10402 as_echo='printf %s\n'
10403 as_echo_n='printf %s'
10405 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10406 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10407 as_echo_n='/usr/ucb/echo -n'
10409 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10410 as_echo_n_body='eval
10414 expr "X$arg" : "X\\(.*\\)$as_nl";
10415 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10417 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10419 export as_echo_n_body
10420 as_echo_n='sh -c $as_echo_n_body as_echo'
10422 export as_echo_body
10423 as_echo='sh -c $as_echo_body as_echo'
10426 # The user is always right.
10427 if test "${PATH_SEPARATOR+set}" != set; then
10429 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10430 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10435 # Support unset when possible.
10436 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10444 # We need space, tab and new line, in precisely that order. Quoting is
10445 # there to prevent editors from complaining about space-tab.
10446 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10447 # splitting by setting IFS to empty value.)
10450 # Find who we are. Look in the path if we contain no directory separator.
10452 *[\\/]* ) as_myself=$0 ;;
10453 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454 for as_dir in $PATH
10457 test -z "$as_dir" && as_dir=.
10458 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10464 # We did not find ourselves, most probably we were run as `sh COMMAND'
10465 # in which case we are not to be found in the path.
10466 if test "x$as_myself" = x; then
10469 if test ! -f "$as_myself"; then
10470 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10471 { (exit 1); exit 1; }
10474 # Work around bugs in pre-3.0 UWIN ksh.
10475 for as_var in ENV MAIL MAILPATH
10476 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10488 # Required to use basename.
10489 if expr a : '\(a\)' >/dev/null 2>&1 &&
10490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10496 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10497 as_basename=basename
10503 # Name of the executable.
10504 as_me=`$as_basename -- "$0" ||
10505 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10506 X"$0" : 'X\(//\)$' \| \
10507 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10509 sed '/^.*\/\([^/][^/]*\)\/*$/{
10528 as_lineno_1=$LINENO
10529 as_lineno_2=$LINENO
10530 test "x$as_lineno_1" != "x$as_lineno_2" &&
10531 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10533 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10534 # uniformly replaced by the line number. The first 'sed' inserts a
10535 # line-number line after each line using $LINENO; the second 'sed'
10536 # does the real work. The second script uses 'N' to pair each
10537 # line-number line with the line containing $LINENO, and appends
10538 # trailing '-' during substitution so that $LINENO is not a special
10539 # case at line end.
10540 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10541 # scripts with optimization help from Paolo Bonzini. Blame Lee
10542 # E. McMahon (1931-1989) for sed's syntax. :-)
10554 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10557 ' >$as_me.lineno &&
10558 chmod +x "$as_me.lineno" ||
10559 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10560 { (exit 1); exit 1; }; }
10562 # Don't try to exec as it changes $[0], causing all sort of problems
10563 # (the dirname of $[0] is not the place where we might find the
10564 # original and so on. Autoconf is especially sensitive to this).
10565 . "./$as_me.lineno"
10566 # Exit status is that of the last command.
10571 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10577 ECHO_C= ECHO_N= ECHO_T=
10578 case `echo -n x` in
10580 case `echo 'x\c'` in
10581 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10587 if expr a : '\(a\)' >/dev/null 2>&1 &&
10588 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10594 rm -f conf$$ conf$$.exe conf$$.file
10595 if test -d conf$$.dir; then
10596 rm -f conf$$.dir/conf$$.file
10599 mkdir conf$$.dir 2>/dev/null
10601 if (echo >conf$$.file) 2>/dev/null; then
10602 if ln -s conf$$.file conf$$ 2>/dev/null; then
10604 # ... but there are two gotchas:
10605 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10606 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10607 # In both cases, we have to default to `cp -p'.
10608 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10610 elif ln conf$$.file conf$$ 2>/dev/null; then
10618 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10619 rmdir conf$$.dir 2>/dev/null
10621 if mkdir -p . 2>/dev/null; then
10624 test -d ./-p && rmdir ./-p
10628 if test -x / >/dev/null 2>&1; then
10629 as_test_x='test -x'
10631 if ls -dL / >/dev/null 2>&1; then
10638 if test -d "$1"; then
10644 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10645 ???[sx]*):;;*)false;;esac;fi
10649 as_executable_p=$as_test_x
10651 # Sed expression to map a string onto a valid CPP name.
10652 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10654 # Sed expression to map a string onto a valid variable name.
10655 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10660 # Save the log message, to keep $[0] and so on meaningful, and to
10661 # report actual input values of CONFIG_FILES etc. instead of their
10662 # values after options handling.
10664 This file was extended by $as_me, which was
10665 generated by GNU Autoconf 2.63. Invocation command line was
10667 CONFIG_FILES = $CONFIG_FILES
10668 CONFIG_HEADERS = $CONFIG_HEADERS
10669 CONFIG_LINKS = $CONFIG_LINKS
10670 CONFIG_COMMANDS = $CONFIG_COMMANDS
10673 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10678 case $ac_config_files in *"
10679 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10682 case $ac_config_headers in *"
10683 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10688 # Files that config.status was made for.
10689 config_files="$ac_config_files"
10690 config_headers="$ac_config_headers"
10694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10696 \`$as_me' instantiates files from templates according to the
10697 current configuration.
10699 Usage: $0 [OPTION]... [FILE]...
10701 -h, --help print this help, then exit
10702 -V, --version print version number and configuration settings, then exit
10703 -q, --quiet, --silent
10704 do not print progress messages
10705 -d, --debug don't remove temporary files
10706 --recheck update $as_me by reconfiguring in the same conditions
10707 --file=FILE[:TEMPLATE]
10708 instantiate the configuration file FILE
10709 --header=FILE[:TEMPLATE]
10710 instantiate the configuration header FILE
10712 Configuration files:
10715 Configuration headers:
10718 Report bugs to <bug-autoconf@gnu.org>."
10721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10724 configured by $0, generated by GNU Autoconf 2.63,
10725 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10727 Copyright (C) 2008 Free Software Foundation, Inc.
10728 This config.status script is free software; the Free Software Foundation
10729 gives unlimited permission to copy, distribute and modify it."
10734 test -n "\$AWK" || AWK=awk
10737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10738 # The default lists apply if the user does not specify any file.
10744 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10745 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10756 # Handling of the options.
10757 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10759 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10760 $as_echo "$ac_cs_version"; exit ;;
10761 --debug | --debu | --deb | --de | --d | -d )
10763 --file | --fil | --fi | --f )
10766 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10768 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10769 ac_need_defaults=false;;
10770 --header | --heade | --head | --hea )
10773 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10775 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10776 ac_need_defaults=false;;
10778 # Conflict between --help and --header
10779 { $as_echo "$as_me: error: ambiguous option: $1
10780 Try \`$0 --help' for more information." >&2
10781 { (exit 1); exit 1; }; };;
10782 --help | --hel | -h )
10783 $as_echo "$ac_cs_usage"; exit ;;
10784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10785 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10788 # This is an error.
10789 -*) { $as_echo "$as_me: error: unrecognized option: $1
10790 Try \`$0 --help' for more information." >&2
10791 { (exit 1); exit 1; }; } ;;
10793 *) ac_config_targets="$ac_config_targets $1"
10794 ac_need_defaults=false ;;
10800 ac_configure_extra_args=
10802 if $ac_cs_silent; then
10804 ac_configure_extra_args="$ac_configure_extra_args --silent"
10808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10809 if \$ac_cs_recheck; then
10810 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10812 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10813 CONFIG_SHELL='$SHELL'
10814 export CONFIG_SHELL
10819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10824 ## Running $as_me. ##
10830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10835 # Handling of arguments.
10836 for ac_config_target in $ac_config_targets
10838 case $ac_config_target in
10839 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10840 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10842 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10843 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10844 { (exit 1); exit 1; }; };;
10849 # If the user did not use the arguments to specify the items to instantiate,
10850 # then the envvar interface is used. Set only those that are not.
10851 # We use the long form for the default assignment because of an extremely
10852 # bizarre bug on SunOS 4.1.3.
10853 if $ac_need_defaults; then
10854 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10855 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10858 # Have a temporary directory for convenience. Make it in the build tree
10859 # simply because there is no reason against having it here, and in addition,
10860 # creating and moving files from /tmp can sometimes cause problems.
10861 # Hook for its removal unless debugging.
10862 # Note that there is a small window in which the directory will not be cleaned:
10863 # after its creation but before its name has been assigned to `$tmp'.
10867 trap 'exit_status=$?
10868 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10870 trap '{ (exit 1); exit 1; }' 1 2 13 15
10872 # Create a (secure) tmp directory for tmp files.
10875 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10876 test -n "$tmp" && test -d "$tmp"
10879 tmp=./conf$$-$RANDOM
10880 (umask 077 && mkdir "$tmp")
10883 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10884 { (exit 1); exit 1; }
10887 # Set up the scripts for CONFIG_FILES section.
10888 # No need to generate them if there are no CONFIG_FILES.
10889 # This happens for instance with `./config.status config.h'.
10890 if test -n "$CONFIG_FILES"; then
10894 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10895 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10898 ac_cs_awk_cr=$ac_cr
10901 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10906 echo "cat >conf$$subs.awk <<_ACEOF" &&
10907 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10909 } >conf$$subs.sh ||
10910 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10911 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10912 { (exit 1); exit 1; }; }
10913 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10915 for ac_last_try in false false false false false :; do
10916 . ./conf$$subs.sh ||
10917 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10918 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10919 { (exit 1); exit 1; }; }
10921 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10922 if test $ac_delim_n = $ac_delim_num; then
10924 elif $ac_last_try; then
10925 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10926 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10927 { (exit 1); exit 1; }; }
10929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10932 rm -f conf$$subs.sh
10934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10935 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10939 s/^/S["/; s/!.*/"]=/
10949 s/\(.\{148\}\).*/\1/
10951 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10956 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10963 s/\(.\{148\}\).*/\1/
10965 s/["\\]/\\&/g; s/^/"/; s/$/"/
10969 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10974 ' <conf$$subs.awk | sed '
10979 ' >>$CONFIG_STATUS || ac_write_fail=1
10980 rm -f conf$$subs.awk
10981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10983 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10984 for (key in S) S_is_set[key] = 1
10990 nfields = split(line, field, "@")
10992 len = length(field[1])
10993 for (i = 2; i < nfields; i++) {
10995 keylen = length(key)
10996 if (S_is_set[key]) {
10998 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10999 len += length(value) + length(field[++i])
11010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11011 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11012 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11015 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11016 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11017 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11018 { (exit 1); exit 1; }; }
11021 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11022 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11023 # trailing colons and then remove the whole line if VPATH becomes empty
11024 # (actually we leave an empty line to preserve line numbers).
11025 if test "x$srcdir" = x.; then
11026 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11027 s/:*\$(srcdir):*/:/
11028 s/:*\${srcdir}:*/:/
11030 s/^\([^=]*=[ ]*\):*/\1/
11036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11037 fi # test -n "$CONFIG_FILES"
11039 # Set up the scripts for CONFIG_HEADERS section.
11040 # No need to generate them if there are no CONFIG_HEADERS.
11041 # This happens for instance with `./config.status Makefile'.
11042 if test -n "$CONFIG_HEADERS"; then
11043 cat >"$tmp/defines.awk" <<\_ACAWK ||
11047 # Transform confdefs.h into an awk script `defines.awk', embedded as
11048 # here-document in config.status, that substitutes the proper values into
11049 # config.h.in to produce config.h.
11051 # Create a delimiter string that does not exist in confdefs.h, to ease
11052 # handling of long lines.
11054 for ac_last_try in false false :; do
11055 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11056 if test -z "$ac_t"; then
11058 elif $ac_last_try; then
11059 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11060 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11061 { (exit 1); exit 1; }; }
11063 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11067 # For the awk script, D is an array of macro values keyed by name,
11068 # likewise P contains macro parameters if any. Preserve backslash
11069 # newline sequences.
11071 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11073 s/.\{148\}/&'"$ac_delim"'/g
11076 s/^[ ]*#[ ]*define[ ][ ]*/ /
11083 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11085 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11089 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11090 D["\1"]=" \3\\\\\\n"\\/p
11092 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11097 s/.\{148\}/&'"$ac_delim"'/g
11102 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11105 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11107 ' <confdefs.h | sed '
11108 s/'"$ac_delim"'/"\\\
11109 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11112 for (key in D) D_is_set[key] = 1
11115 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11117 split(line, arg, " ")
11118 if (arg[1] == "#") {
11122 defundef = substr(arg[1], 2)
11125 split(mac1, mac2, "(") #)
11127 prefix = substr(line, 1, index(line, defundef) - 1)
11128 if (D_is_set[macro]) {
11129 # Preserve the white space surrounding the "#".
11130 print prefix "define", macro P[macro] D[macro]
11133 # Replace #undef with comments. This is necessary, for example,
11134 # in the case of _POSIX_SOURCE, which is predefined and required
11135 # on some systems where configure will not decide to define it.
11136 if (defundef == "undef") {
11137 print "/*", prefix defundef, macro, "*/"
11145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11146 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11147 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11148 { (exit 1); exit 1; }; }
11149 fi # test -n "$CONFIG_HEADERS"
11152 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11157 :[FHLC]) ac_mode=$ac_tag; continue;;
11159 case $ac_mode$ac_tag in
11161 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11162 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11163 { (exit 1); exit 1; }; };;
11164 :[FH]-) ac_tag=-:-;;
11165 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11182 -) ac_f="$tmp/stdin";;
11183 *) # Look for the file first in the build tree, then in the source tree
11184 # (if the path is not absolute). The absolute path cannot be DOS-style,
11185 # because $ac_f cannot contain `:'.
11189 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11191 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11192 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11193 { (exit 1); exit 1; }; };;
11195 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11196 ac_file_inputs="$ac_file_inputs '$ac_f'"
11199 # Let's still pretend it is `configure' which instantiates (i.e., don't
11200 # use $as_me), people would be surprised to read:
11201 # /* config.h. Generated by config.status. */
11202 configure_input='Generated from '`
11203 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11205 if test x"$ac_file" != x-; then
11206 configure_input="$ac_file. $configure_input"
11207 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11208 $as_echo "$as_me: creating $ac_file" >&6;}
11210 # Neutralize special characters interpreted by sed in replacement strings.
11211 case $configure_input in #(
11212 *\&* | *\|* | *\\* )
11213 ac_sed_conf_input=`$as_echo "$configure_input" |
11214 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11215 *) ac_sed_conf_input=$configure_input;;
11219 *:-:* | *:-) cat >"$tmp/stdin" \
11220 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11221 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11222 { (exit 1); exit 1; }; } ;;
11227 ac_dir=`$as_dirname -- "$ac_file" ||
11228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11229 X"$ac_file" : 'X\(//\)[^/]' \| \
11230 X"$ac_file" : 'X\(//\)$' \| \
11231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11232 $as_echo X"$ac_file" |
11233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11237 /^X\(\/\/\)[^/].*/{
11252 -*) as_dir=./$as_dir;;
11254 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11258 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11259 *) as_qdir=$as_dir;;
11261 as_dirs="'$as_qdir' $as_dirs"
11262 as_dir=`$as_dirname -- "$as_dir" ||
11263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11264 X"$as_dir" : 'X\(//\)[^/]' \| \
11265 X"$as_dir" : 'X\(//\)$' \| \
11266 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11267 $as_echo X"$as_dir" |
11268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11272 /^X\(\/\/\)[^/].*/{
11285 test -d "$as_dir" && break
11287 test -z "$as_dirs" || eval "mkdir $as_dirs"
11288 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11289 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11290 { (exit 1); exit 1; }; }; }
11294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11296 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11297 # A ".." for each directory in $ac_dir_suffix.
11298 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11299 case $ac_top_builddir_sub in
11300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11304 ac_abs_top_builddir=$ac_pwd
11305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11306 # for backward compatibility:
11307 ac_top_builddir=$ac_top_build_prefix
11310 .) # We are building in place.
11312 ac_top_srcdir=$ac_top_builddir_sub
11313 ac_abs_top_srcdir=$ac_pwd ;;
11314 [\\/]* | ?:[\\/]* ) # Absolute name.
11315 ac_srcdir=$srcdir$ac_dir_suffix;
11316 ac_top_srcdir=$srcdir
11317 ac_abs_top_srcdir=$srcdir ;;
11318 *) # Relative name.
11319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11320 ac_top_srcdir=$ac_top_build_prefix$srcdir
11321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11333 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11334 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11339 # If the template does not know about datarootdir, expand it.
11340 # FIXME: This hack should be removed a few years after 2.60.
11341 ac_datarootdir_hack=; ac_datarootdir_seen=
11354 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11355 *datarootdir*) ac_datarootdir_seen=yes;;
11356 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11357 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11358 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11361 ac_datarootdir_hack='
11362 s&@datadir@&$datadir&g
11363 s&@docdir@&$docdir&g
11364 s&@infodir@&$infodir&g
11365 s&@localedir@&$localedir&g
11366 s&@mandir@&$mandir&g
11367 s&\\\${datarootdir}&$datarootdir&g' ;;
11371 # Neutralize VPATH when `$srcdir' = `.'.
11372 # Shell code in configure.ac might set extrasub.
11373 # FIXME: do we really want to maintain this feature?
11374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11375 ac_sed_extra="$ac_vpsub
11378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11380 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11381 s|@configure_input@|$ac_sed_conf_input|;t t
11382 s&@top_builddir@&$ac_top_builddir_sub&;t t
11383 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11384 s&@srcdir@&$ac_srcdir&;t t
11385 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11386 s&@top_srcdir@&$ac_top_srcdir&;t t
11387 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11388 s&@builddir@&$ac_builddir&;t t
11389 s&@abs_builddir@&$ac_abs_builddir&;t t
11390 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11391 s&@INSTALL@&$ac_INSTALL&;t t
11392 $ac_datarootdir_hack
11394 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11395 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11396 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11397 { (exit 1); exit 1; }; }
11399 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11400 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11401 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11402 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11403 which seems to be undefined. Please make sure it is defined." >&5
11404 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11405 which seems to be undefined. Please make sure it is defined." >&2;}
11409 -) cat "$tmp/out" && rm -f "$tmp/out";;
11410 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11412 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11413 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11414 { (exit 1); exit 1; }; }
11420 if test x"$ac_file" != x-; then
11422 $as_echo "/* $configure_input */" \
11423 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11424 } >"$tmp/config.h" \
11425 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11426 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11427 { (exit 1); exit 1; }; }
11428 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11429 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11430 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11433 mv "$tmp/config.h" "$ac_file" \
11434 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11435 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11436 { (exit 1); exit 1; }; }
11439 $as_echo "/* $configure_input */" \
11440 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11441 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11442 $as_echo "$as_me: error: could not create -" >&2;}
11443 { (exit 1); exit 1; }; }
11453 { (exit 0); exit 0; }
11455 chmod +x $CONFIG_STATUS
11456 ac_clean_files=$ac_clean_files_save
11458 test $ac_write_fail = 0 ||
11459 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11460 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11461 { (exit 1); exit 1; }; }
11464 # configure is writing to config.log, and then calls config.status.
11465 # config.status does its own redirection, appending to config.log.
11466 # Unfortunately, on DOS this fails, as config.log is still kept open
11467 # by configure, so config.status won't be able to write to it; its
11468 # output is simply discarded. So we exec the FD to /dev/null,
11469 # effectively closing config.log, so it can be properly (re)opened and
11470 # appended to by config.status. When coming back to configure, we
11471 # need to make the FD available again.
11472 if test "$no_create" != yes; then
11474 ac_config_status_args=
11475 test "$silent" = yes &&
11476 ac_config_status_args="$ac_config_status_args --quiet"
11478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11481 # would make configure fail if this is the last instruction.
11482 $ac_cs_success || { (exit 1); exit 1; }
11484 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11485 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11486 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11492 # On development trees, create snapshots of config.status
11494 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11495 if test "x${MINGW}" = "xyes"; then
11496 echo cp config.status config.status.win32
11497 cp config.status config.status.win32
11499 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
11500 echo cp config.status config.status.linux
11501 cp config.status config.status.linux
11503 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
11504 echo cp config.status config.status.debug
11505 cp config.status config.status.debug
11507 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
11508 echo cp config.status config.status.optimize
11509 cp config.status config.status.optimize