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
729 program_transform_name
741 enable_option_checking
749 ac_precious_vars='build_alias
763 # Initialize some variables set by options.
765 ac_init_version=false
766 ac_unrecognized_opts=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
777 program_transform_name=s,x,x,
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE}'
802 infodir='${datarootdir}/info'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
870 { (exit 1); exit 1; }; }
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
880 eval enable_$ac_useropt=no ;;
882 -docdir | --docdir | --docdi | --doc | --do)
884 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892 -enable-* | --enable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
897 { (exit 1); exit 1; }; }
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
907 eval enable_$ac_useropt=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
922 -help | --help | --hel | --he | -h)
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 # Obsolete; use --without-fp.
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1071 -site=* | --site=* | --sit=*)
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1112 eval with_$ac_useropt=\$ac_optarg ;;
1114 -without-* | --without-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1119 { (exit 1); exit 1; }; }
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1129 eval with_$ac_useropt=no ;;
1132 # Obsolete; use --with-x.
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1149 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1150 Try \`$0 --help' for more information." >&2
1151 { (exit 1); exit 1; }; }
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1158 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1159 { (exit 1); exit 1; }; }
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1177 { (exit 1); exit 1; }; }
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1183 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1184 { (exit 1); exit 1; }; } ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1202 # Be sure to have absolute directory names.
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1208 { (exit 1); exit 1; }; }
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1216 target=$target_alias
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220 if test "x$build_alias" = x; then
1221 cross_compiling=maybe
1222 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1223 If a cross compiler is detected then cross compile mode will be used." >&2
1224 elif test "x$build_alias" != "x$host_alias"; then
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232 test "$silent" = yes && exec 6>/dev/null
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1239 { (exit 1); exit 1; }; }
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1242 { (exit 1); exit 1; }; }
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1277 ac_srcdir_defaulted=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1282 { (exit 1); exit 1; }; }
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1287 { (exit 1); exit 1; }; }
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1313 \`configure' configures this package to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1371 --program-prefix=PREFIX prepend PREFIX to installed program names
1372 --program-suffix=SUFFIX append SUFFIX to installed program names
1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1382 if test -n "$ac_init_help"; then
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-checkmem turn on ccmalloc debugging
1391 --enable-debug turn on debugging
1392 --enable-profiling turn on profiling
1393 --enable-warnings turn on compiler warnings
1394 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1395 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1397 Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
1402 LIBS libraries to pass to the linker, e.g. -l<library>
1403 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
1405 CXX C++ compiler command
1406 CXXFLAGS C++ compiler flags
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1416 if test "$ac_init_help" = "recursive"; then
1417 # If there are subdirs, report their specific --help.
1418 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419 test -d "$ac_dir" ||
1420 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1441 .) # We are building in place.
1443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
1446 ac_srcdir=$srcdir$ac_dir_suffix;
1447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1465 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1475 generated by GNU Autoconf 2.63
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1484 cat >config.log <<_ACEOF
1485 This file contains any messages produced by compilers while
1486 running configure, to aid debugging if configure makes a mistake.
1488 It was created by $as_me, which was
1489 generated by GNU Autoconf 2.63. Invocation command line was
1501 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1510 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1511 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1512 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1513 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1514 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1515 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1516 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 test -z "$as_dir" && as_dir=.
1525 $as_echo "PATH: $as_dir"
1541 # Keep a trace of the command line.
1542 # Strip out --no-create and --no-recursion so they do not pile up.
1543 # Strip out --silent because we don't want to record it for future runs.
1544 # Also quote any args containing shell meta-characters.
1545 # Make two passes to allow for proper duplicate-argument suppression.
1549 ac_must_keep_next=false
1555 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557 | -silent | --silent | --silen | --sile | --sil)
1560 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1565 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566 if test $ac_must_keep_next = true; then
1567 ac_must_keep_next=false # Got value, back to normal.
1570 *=* | --config-cache | -C | -disable-* | --disable-* \
1571 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573 | -with-* | --with-* | -without-* | --without-* | --x)
1574 case "$ac_configure_args0 " in
1575 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 -* ) ac_must_keep_next=true ;;
1581 ac_configure_args="$ac_configure_args '$ac_arg'"
1586 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589 # When interrupted or exit'd, cleanup temporary files, and complete
1590 # config.log. We remove comments because anyway the quotes in there
1591 # would cause problems or look ugly.
1592 # WARNING: Use '\'' to represent an apostrophe within the trap.
1593 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1594 trap 'exit_status=$?
1595 # Save into config.log some information that might help in debugging.
1600 ## ---------------- ##
1601 ## Cache variables. ##
1602 ## ---------------- ##
1605 # The following way of writing the cache mishandles newlines in values,
1607 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608 eval ac_val=\$$ac_var
1612 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1616 _ | IFS | as_nl) ;; #(
1617 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1618 *) $as_unset $ac_var ;;
1623 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624 *${as_nl}ac_space=\ *)
1626 "s/'\''/'\''\\\\'\'''\''/g;
1627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1643 for ac_var in $ac_subst_vars
1645 eval ac_val=\$$ac_var
1647 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 $as_echo "$ac_var='\''$ac_val'\''"
1653 if test -n "$ac_subst_files"; then
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1660 for ac_var in $ac_subst_files
1662 eval ac_val=\$$ac_var
1664 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 $as_echo "$ac_var='\''$ac_val'\''"
1671 if test -s confdefs.h; then
1681 test "$ac_signal" != 0 &&
1682 $as_echo "$as_me: caught signal $ac_signal"
1683 $as_echo "$as_me: exit $exit_status"
1685 rm -f core *.core core.conftest.* &&
1686 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1689 for ac_signal in 1 2 13 15; do
1690 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest* confdefs.h
1697 # Predefined preprocessor variables.
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer an explicitly selected file to automatically selected ones.
1728 if test -n "$CONFIG_SITE"; then
1729 ac_site_file1=$CONFIG_SITE
1730 elif test "x$prefix" != xNONE; then
1731 ac_site_file1=$prefix/share/config.site
1732 ac_site_file2=$prefix/etc/config.site
1734 ac_site_file1=$ac_default_prefix/share/config.site
1735 ac_site_file2=$ac_default_prefix/etc/config.site
1737 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1739 test "x$ac_site_file" = xNONE && continue
1740 if test -r "$ac_site_file"; then
1741 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1743 sed 's/^/| /' "$ac_site_file" >&5
1748 if test -r "$cache_file"; then
1749 # Some versions of bash will fail to source /dev/null (special
1750 # files actually), so we avoid doing that.
1751 if test -f "$cache_file"; then
1752 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 $as_echo "$as_me: loading cache $cache_file" >&6;}
1755 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756 *) . "./$cache_file";;
1760 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 $as_echo "$as_me: creating cache $cache_file" >&6;}
1765 # Check that the precious variables saved in the cache have kept the same
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770 eval ac_new_set=\$ac_env_${ac_var}_set
1771 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772 eval ac_new_val=\$ac_env_${ac_var}_value
1773 case $ac_old_set,$ac_new_set in
1775 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1779 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1784 if test "x$ac_old_val" != "x$ac_new_val"; then
1785 # differences in whitespace do not lead to failure.
1786 ac_old_val_w=`echo x $ac_old_val`
1787 ac_new_val_w=`echo x $ac_new_val`
1788 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1789 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1790 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1791 ac_cache_corrupted=:
1793 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1794 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1795 eval $ac_var=\$ac_old_val
1797 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1798 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1799 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1800 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1803 # Pass precious variables to config.status.
1804 if test "$ac_new_set" = set; then
1806 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1807 *) ac_arg=$ac_var=$ac_new_val ;;
1809 case " $ac_configure_args " in
1810 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1811 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1815 if $ac_cache_corrupted; then
1816 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1818 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1819 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1820 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1821 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1822 { (exit 1); exit 1; }; }
1842 ac_cpp='$CPP $CPPFLAGS'
1843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1850 # Check whether --enable-checkmem was given.
1851 if test "${enable_checkmem+set}" = set; then
1852 enableval=$enable_checkmem; CHECKMEM=true
1855 # Check whether --enable-debug was given.
1856 if test "${enable_debug+set}" = set; then
1857 enableval=$enable_debug; DEBUG=true
1860 # Check whether --enable-profiling was given.
1861 if test "${enable_profiling+set}" = set; then
1862 enableval=$enable_profiling; PROFILING=true
1865 # Check whether --enable-warnings was given.
1866 if test "${enable_warnings+set}" = set; then
1867 enableval=$enable_warnings; ENABLE_WARNINGS=true
1870 # Check whether --enable-optimizations was given.
1871 if test "${enable_optimizations+set}" = set; then
1872 enableval=$enable_optimizations; OPTIMIZE=true
1875 # Check whether --enable-lame was given.
1876 if test "${enable_lame+set}" = set; then
1877 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1886 VERSION=2009-08-12-1514
1889 # ------------------------------------------------------------------
1891 if test "x${srcdir}" != "x."; then
1892 echo "--srcdir is not supported"
1896 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1897 if test "x$ENABLE_WARNINGS" '!=' "x";then
1898 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1901 if test "x$CHECKMEM" '!=' "x";then
1904 if test "x$PROFILING" '!=' "x";then
1907 if test "x$DEBUG" '!=' "x";then
1908 if test "x$PROFILING" = "x";then
1909 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1910 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1913 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1914 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1915 LDFLAGS="-g -pg $LIBS"
1917 else if test "x$OPTIMIZE" '!=' "x"; then
1918 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1919 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1921 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1922 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1926 CFLAGS="-fPIC $CFLAGS"
1927 CXXFLAGS="-fPIC $CFLAGS"
1930 #if test "x$OLDGCC" '!=' "x";then
1931 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1932 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1933 # CFLAGS="$CFLAGS -ansi -pendantic"
1934 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1937 export PACKAGE VERSION CFLAGS CXXFLAGS
1941 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1942 if test -f "$ac_dir/install-sh"; then
1944 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 elif test -f "$ac_dir/install.sh"; then
1948 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 elif test -f "$ac_dir/shtool"; then
1952 ac_install_sh="$ac_aux_dir/shtool install -c"
1956 if test -z "$ac_aux_dir"; then
1957 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1958 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1959 { (exit 1); exit 1; }; }
1962 # These three variables are undocumented and unsupported,
1963 # and are intended to be withdrawn in a future Autoconf release.
1964 # They can cause serious problems if a builder's source tree is in a directory
1965 # whose full name contains unusual characters.
1966 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1967 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1968 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 # Make sure we can run config.sub.
1972 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1973 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1974 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1975 { (exit 1); exit 1; }; }
1977 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1978 $as_echo_n "checking build system type... " >&6; }
1979 if test "${ac_cv_build+set}" = set; then
1980 $as_echo_n "(cached) " >&6
1982 ac_build_alias=$build_alias
1983 test "x$ac_build_alias" = x &&
1984 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1985 test "x$ac_build_alias" = x &&
1986 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1987 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1988 { (exit 1); exit 1; }; }
1989 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1990 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1991 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1992 { (exit 1); exit 1; }; }
1995 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1996 $as_echo "$ac_cv_build" >&6; }
1997 case $ac_cv_build in
1999 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2000 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2001 { (exit 1); exit 1; }; };;
2004 ac_save_IFS=$IFS; IFS='-'
2010 # Remember, the first character of IFS is used to create $*,
2011 # except with old shells:
2014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2017 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2018 $as_echo_n "checking host system type... " >&6; }
2019 if test "${ac_cv_host+set}" = set; then
2020 $as_echo_n "(cached) " >&6
2022 if test "x$host_alias" = x; then
2023 ac_cv_host=$ac_cv_build
2025 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2026 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2027 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2028 { (exit 1); exit 1; }; }
2032 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2033 $as_echo "$ac_cv_host" >&6; }
2036 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2037 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2038 { (exit 1); exit 1; }; };;
2041 ac_save_IFS=$IFS; IFS='-'
2047 # Remember, the first character of IFS is used to create $*,
2048 # except with old shells:
2051 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2061 CXXFLAGS="$CXXFLAGS -fno-rtti"
2063 if test -d /opt/local/include && test -d /opt/local/lib; then
2064 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2065 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2067 # Use fink packages if available.
2068 #if test -d /sw/include && test -d /sw/lib; then
2069 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2070 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082 if test -n "$ac_tool_prefix"; then
2083 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2084 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2085 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 $as_echo_n "checking for $ac_word... " >&6; }
2087 if test "${ac_cv_prog_CC+set}" = set; then
2088 $as_echo_n "(cached) " >&6
2090 if test -n "$CC"; then
2091 ac_cv_prog_CC="$CC" # Let the user override the test.
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2100 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 if test -n "$CC"; then
2112 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2113 $as_echo "$CC" >&6; }
2115 { $as_echo "$as_me:$LINENO: result: no" >&5
2116 $as_echo "no" >&6; }
2121 if test -z "$ac_cv_prog_CC"; then
2123 # Extract the first word of "gcc", so it can be a program name with args.
2124 set dummy gcc; ac_word=$2
2125 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 $as_echo_n "checking for $ac_word... " >&6; }
2127 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2128 $as_echo_n "(cached) " >&6
2130 if test -n "$ac_ct_CC"; then
2131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2140 ac_cv_prog_ac_ct_CC="gcc"
2141 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151 if test -n "$ac_ct_CC"; then
2152 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153 $as_echo "$ac_ct_CC" >&6; }
2155 { $as_echo "$as_me:$LINENO: result: no" >&5
2156 $as_echo "no" >&6; }
2159 if test "x$ac_ct_CC" = x; then
2162 case $cross_compiling:$ac_tool_warned in
2164 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2166 ac_tool_warned=yes ;;
2174 if test -z "$CC"; then
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}cc; ac_word=$2
2178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 $as_echo_n "checking for $ac_word... " >&6; }
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181 $as_echo_n "(cached) " >&6
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC="$CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_CC="${ac_tool_prefix}cc"
2194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 if test -n "$CC"; then
2205 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2206 $as_echo "$CC" >&6; }
2208 { $as_echo "$as_me:$LINENO: result: no" >&5
2209 $as_echo "no" >&6; }
2215 if test -z "$CC"; then
2216 # Extract the first word of "cc", so it can be a program name with args.
2217 set dummy cc; ac_word=$2
2218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 $as_echo_n "checking for $ac_word... " >&6; }
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221 $as_echo_n "(cached) " >&6
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2234 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2235 ac_prog_rejected=yes
2239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 if test $ac_prog_rejected = yes; then
2247 # We found a bogon in the path, so make sure we never use it.
2248 set dummy $ac_cv_prog_CC
2250 if test $# != 0; then
2251 # We chose a different compiler from the bogus one.
2252 # However, it has the same basename, so the bogon will be chosen
2253 # first if we set CC to just the basename; use the full file name.
2255 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2261 if test -n "$CC"; then
2262 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2263 $as_echo "$CC" >&6; }
2265 { $as_echo "$as_me:$LINENO: result: no" >&5
2266 $as_echo "no" >&6; }
2271 if test -z "$CC"; then
2272 if test -n "$ac_tool_prefix"; then
2273 for ac_prog in cl.exe
2275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 $as_echo_n "checking for $ac_word... " >&6; }
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280 $as_echo_n "(cached) " >&6
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 if test -n "$CC"; then
2304 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2305 $as_echo "$CC" >&6; }
2307 { $as_echo "$as_me:$LINENO: result: no" >&5
2308 $as_echo "no" >&6; }
2312 test -n "$CC" && break
2315 if test -z "$CC"; then
2317 for ac_prog in cl.exe
2319 # Extract the first word of "$ac_prog", so it can be a program name with args.
2320 set dummy $ac_prog; ac_word=$2
2321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2324 $as_echo_n "(cached) " >&6
2326 if test -n "$ac_ct_CC"; then
2327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_ac_ct_CC="$ac_prog"
2337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2347 if test -n "$ac_ct_CC"; then
2348 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2349 $as_echo "$ac_ct_CC" >&6; }
2351 { $as_echo "$as_me:$LINENO: result: no" >&5
2352 $as_echo "no" >&6; }
2356 test -n "$ac_ct_CC" && break
2359 if test "x$ac_ct_CC" = x; then
2362 case $cross_compiling:$ac_tool_warned in
2364 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2366 ac_tool_warned=yes ;;
2375 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2378 See \`config.log' for more details." >&5
2379 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2380 See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }; }
2383 # Provide some information about the compiler.
2384 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2387 { (ac_try="$ac_compiler --version >&5"
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2393 $as_echo "$ac_try_echo") >&5
2394 (eval "$ac_compiler --version >&5") 2>&5
2396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }
2398 { (ac_try="$ac_compiler -v >&5"
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2404 $as_echo "$ac_try_echo") >&5
2405 (eval "$ac_compiler -v >&5") 2>&5
2407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }
2409 { (ac_try="$ac_compiler -V >&5"
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2415 $as_echo "$ac_try_echo") >&5
2416 (eval "$ac_compiler -V >&5") 2>&5
2418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }
2421 cat >conftest.$ac_ext <<_ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2436 ac_clean_files_save=$ac_clean_files
2437 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2438 # Try to create an executable without -o first, disregard a.out.
2439 # It will help us diagnose broken compilers, and finding out an intuition
2441 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2442 $as_echo_n "checking for C compiler default output file name... " >&6; }
2443 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2445 # The possible output files:
2446 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2449 for ac_file in $ac_files
2452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2453 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2458 if { (ac_try="$ac_link_default"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2464 $as_echo "$ac_try_echo") >&5
2465 (eval "$ac_link_default") 2>&5
2467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2470 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2471 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2472 # so that the user can short-circuit this test for compilers unknown to
2474 for ac_file in $ac_files ''
2476 test -f "$ac_file" || continue
2478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2481 # We found the default executable, but exeext='' is most
2485 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2487 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2489 # We set ac_cv_exeext here because the later test for it is not
2490 # safe: cross compilers may not add the suffix if given an `-o'
2491 # argument, so we may need to know it at that point already.
2492 # Even if this section looks crufty: it has the advantage of
2499 test "$ac_cv_exeext" = no && ac_cv_exeext=
2505 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2506 $as_echo "$ac_file" >&6; }
2507 if test -z "$ac_file"; then
2508 $as_echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2511 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2513 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2514 See \`config.log' for more details." >&5
2515 $as_echo "$as_me: error: C compiler cannot create executables
2516 See \`config.log' for more details." >&2;}
2517 { (exit 77); exit 77; }; }; }
2520 ac_exeext=$ac_cv_exeext
2522 # Check that the compiler produces executables we can run. If not, either
2523 # the compiler is broken, or we cross compile.
2524 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2525 $as_echo_n "checking whether the C compiler works... " >&6; }
2526 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2527 # If not cross compiling, check that we can run a simple program.
2528 if test "$cross_compiling" != yes; then
2529 if { ac_try='./$ac_file'
2530 { (case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2535 $as_echo "$ac_try_echo") >&5
2536 (eval "$ac_try") 2>&5
2538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2542 if test "$cross_compiling" = maybe; then
2545 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2548 If you meant to cross compile, use \`--host'.
2549 See \`config.log' for more details." >&5
2550 $as_echo "$as_me: error: cannot run C compiled programs.
2551 If you meant to cross compile, use \`--host'.
2552 See \`config.log' for more details." >&2;}
2553 { (exit 1); exit 1; }; }; }
2557 { $as_echo "$as_me:$LINENO: result: yes" >&5
2558 $as_echo "yes" >&6; }
2560 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2561 ac_clean_files=$ac_clean_files_save
2562 # Check that the compiler produces executables we can run. If not, either
2563 # the compiler is broken, or we cross compile.
2564 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2565 $as_echo_n "checking whether we are cross compiling... " >&6; }
2566 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2567 $as_echo "$cross_compiling" >&6; }
2569 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2570 $as_echo_n "checking for suffix of executables... " >&6; }
2571 if { (ac_try="$ac_link"
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2577 $as_echo "$ac_try_echo") >&5
2578 (eval "$ac_link") 2>&5
2580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; then
2582 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2583 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2584 # work properly (i.e., refer to `conftest.exe'), while it won't with
2586 for ac_file in conftest.exe conftest conftest.*; do
2587 test -f "$ac_file" || continue
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2590 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2596 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2599 See \`config.log' for more details." >&5
2600 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2601 See \`config.log' for more details." >&2;}
2602 { (exit 1); exit 1; }; }; }
2605 rm -f conftest$ac_cv_exeext
2606 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2607 $as_echo "$ac_cv_exeext" >&6; }
2609 rm -f conftest.$ac_ext
2610 EXEEXT=$ac_cv_exeext
2612 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2613 $as_echo_n "checking for suffix of object files... " >&6; }
2614 if test "${ac_cv_objext+set}" = set; then
2615 $as_echo_n "(cached) " >&6
2617 cat >conftest.$ac_ext <<_ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2632 rm -f conftest.o conftest.obj
2633 if { (ac_try="$ac_compile"
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2639 $as_echo "$ac_try_echo") >&5
2640 (eval "$ac_compile") 2>&5
2642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; then
2644 for ac_file in conftest.o conftest.obj conftest.*; do
2645 test -f "$ac_file" || continue;
2647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2648 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2653 $as_echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2659 See \`config.log' for more details." >&5
2660 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2661 See \`config.log' for more details." >&2;}
2662 { (exit 1); exit 1; }; }; }
2665 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2667 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2668 $as_echo "$ac_cv_objext" >&6; }
2669 OBJEXT=$ac_cv_objext
2671 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2672 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2673 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2674 $as_echo_n "(cached) " >&6
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2694 rm -f conftest.$ac_objext
2695 if { (ac_try="$ac_compile"
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701 $as_echo "$ac_try_echo") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && {
2709 test -z "$ac_c_werror_flag" ||
2710 test ! -s conftest.err
2711 } && test -s conftest.$ac_objext; then
2714 $as_echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2724 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2725 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2726 if test $ac_compiler_gnu = yes; then
2731 ac_test_CFLAGS=${CFLAGS+set}
2732 ac_save_CFLAGS=$CFLAGS
2733 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2734 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2735 if test "${ac_cv_prog_cc_g+set}" = set; then
2736 $as_echo_n "(cached) " >&6
2738 ac_save_c_werror_flag=$ac_c_werror_flag
2739 ac_c_werror_flag=yes
2742 cat >conftest.$ac_ext <<_ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2757 rm -f conftest.$ac_objext
2758 if { (ac_try="$ac_compile"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764 $as_echo "$ac_try_echo") >&5
2765 (eval "$ac_compile") 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest.$ac_objext; then
2777 $as_echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2781 cat >conftest.$ac_ext <<_ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2796 rm -f conftest.$ac_objext
2797 if { (ac_try="$ac_compile"
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2803 $as_echo "$ac_try_echo") >&5
2804 (eval "$ac_compile") 2>conftest.er1
2806 grep -v '^ *+' conftest.er1 >conftest.err
2808 cat conftest.err >&5
2809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } && {
2811 test -z "$ac_c_werror_flag" ||
2812 test ! -s conftest.err
2813 } && test -s conftest.$ac_objext; then
2816 $as_echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 ac_c_werror_flag=$ac_save_c_werror_flag
2821 cat >conftest.$ac_ext <<_ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2836 rm -f conftest.$ac_objext
2837 if { (ac_try="$ac_compile"
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2843 $as_echo "$ac_try_echo") >&5
2844 (eval "$ac_compile") 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } && {
2851 test -z "$ac_c_werror_flag" ||
2852 test ! -s conftest.err
2853 } && test -s conftest.$ac_objext; then
2856 $as_echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 ac_c_werror_flag=$ac_save_c_werror_flag
2871 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872 $as_echo "$ac_cv_prog_cc_g" >&6; }
2873 if test "$ac_test_CFLAGS" = set; then
2874 CFLAGS=$ac_save_CFLAGS
2875 elif test $ac_cv_prog_cc_g = yes; then
2876 if test "$GCC" = yes; then
2882 if test "$GCC" = yes; then
2888 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2890 if test "${ac_cv_prog_cc_c89+set}" = set; then
2891 $as_echo_n "(cached) " >&6
2893 ac_cv_prog_cc_c89=no
2895 cat >conftest.$ac_ext <<_ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2906 struct buf { int x; };
2907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908 static char *e (p, i)
2914 static char *f (char * (*g) (char **, int), char **p, ...)
2919 s = g (p, va_arg (v,int));
2924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2925 function prototypes and stuff, but not '\xHH' hex character constants.
2926 These don't provoke an error unfortunately, instead are silently treated
2927 as 'x'. The following induces an error, until -std is added to get
2928 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2929 array size at least. It's necessary to write '\x00'==0 to get something
2930 that's true only with -std. */
2931 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2933 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2934 inside strings and character constants. */
2936 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2938 int test (int i, double x);
2939 struct s1 {int (*f) (int a);};
2940 struct s2 {int (*f) (double a);};
2941 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2947 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2952 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2953 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2955 CC="$ac_save_CC $ac_arg"
2956 rm -f conftest.$ac_objext
2957 if { (ac_try="$ac_compile"
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963 $as_echo "$ac_try_echo") >&5
2964 (eval "$ac_compile") 2>conftest.er1
2966 grep -v '^ *+' conftest.er1 >conftest.err
2968 cat conftest.err >&5
2969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } && {
2971 test -z "$ac_c_werror_flag" ||
2972 test ! -s conftest.err
2973 } && test -s conftest.$ac_objext; then
2974 ac_cv_prog_cc_c89=$ac_arg
2976 $as_echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2982 rm -f core conftest.err conftest.$ac_objext
2983 test "x$ac_cv_prog_cc_c89" != "xno" && break
2985 rm -f conftest.$ac_ext
2990 case "x$ac_cv_prog_cc_c89" in
2992 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2993 $as_echo "none needed" >&6; } ;;
2995 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2996 $as_echo "unsupported" >&6; } ;;
2998 CC="$CC $ac_cv_prog_cc_c89"
2999 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3000 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 ac_cpp='$CXXCPP $CPPFLAGS'
3012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3015 if test -z "$CXX"; then
3016 if test -n "$CCC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if test "${ac_cv_prog_CXX+set}" = set; then
3027 $as_echo_n "(cached) " >&6
3029 if test -n "$CXX"; then
3030 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 if test -n "$CXX"; then
3051 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3052 $as_echo "$CXX" >&6; }
3054 { $as_echo "$as_me:$LINENO: result: no" >&5
3055 $as_echo "no" >&6; }
3059 test -n "$CXX" && break
3062 if test -z "$CXX"; then
3064 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3066 # Extract the first word of "$ac_prog", so it can be a program name with args.
3067 set dummy $ac_prog; ac_word=$2
3068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3071 $as_echo_n "(cached) " >&6
3073 if test -n "$ac_ct_CXX"; then
3074 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083 ac_cv_prog_ac_ct_CXX="$ac_prog"
3084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3094 if test -n "$ac_ct_CXX"; then
3095 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3096 $as_echo "$ac_ct_CXX" >&6; }
3098 { $as_echo "$as_me:$LINENO: result: no" >&5
3099 $as_echo "no" >&6; }
3103 test -n "$ac_ct_CXX" && break
3106 if test "x$ac_ct_CXX" = x; then
3109 case $cross_compiling:$ac_tool_warned in
3111 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3113 ac_tool_warned=yes ;;
3121 # Provide some information about the compiler.
3122 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3125 { (ac_try="$ac_compiler --version >&5"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3131 $as_echo "$ac_try_echo") >&5
3132 (eval "$ac_compiler --version >&5") 2>&5
3134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }
3136 { (ac_try="$ac_compiler -v >&5"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3142 $as_echo "$ac_try_echo") >&5
3143 (eval "$ac_compiler -v >&5") 2>&5
3145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }
3147 { (ac_try="$ac_compiler -V >&5"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3153 $as_echo "$ac_try_echo") >&5
3154 (eval "$ac_compiler -V >&5") 2>&5
3156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }
3159 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3160 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3161 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3162 $as_echo_n "(cached) " >&6
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3189 $as_echo "$ac_try_echo") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3192 grep -v '^ *+' conftest.er1 >conftest.err
3194 cat conftest.err >&5
3195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } && {
3197 test -z "$ac_cxx_werror_flag" ||
3198 test ! -s conftest.err
3199 } && test -s conftest.$ac_objext; then
3202 $as_echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3212 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3213 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3214 if test $ac_compiler_gnu = yes; then
3219 ac_test_CXXFLAGS=${CXXFLAGS+set}
3220 ac_save_CXXFLAGS=$CXXFLAGS
3221 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3222 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3223 if test "${ac_cv_prog_cxx_g+set}" = set; then
3224 $as_echo_n "(cached) " >&6
3226 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3227 ac_cxx_werror_flag=yes
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3245 rm -f conftest.$ac_objext
3246 if { (ac_try="$ac_compile"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3252 $as_echo "$ac_try_echo") >&5
3253 (eval "$ac_compile") 2>conftest.er1
3255 grep -v '^ *+' conftest.er1 >conftest.err
3257 cat conftest.err >&5
3258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } && {
3260 test -z "$ac_cxx_werror_flag" ||
3261 test ! -s conftest.err
3262 } && test -s conftest.$ac_objext; then
3263 ac_cv_prog_cxx_g=yes
3265 $as_echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3284 rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3291 $as_echo "$ac_try_echo") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } && {
3299 test -z "$ac_cxx_werror_flag" ||
3300 test ! -s conftest.err
3301 } && test -s conftest.$ac_objext; then
3304 $as_echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3309 cat >conftest.$ac_ext <<_ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3324 rm -f conftest.$ac_objext
3325 if { (ac_try="$ac_compile"
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3331 $as_echo "$ac_try_echo") >&5
3332 (eval "$ac_compile") 2>conftest.er1
3334 grep -v '^ *+' conftest.er1 >conftest.err
3336 cat conftest.err >&5
3337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } && {
3339 test -z "$ac_cxx_werror_flag" ||
3340 test ! -s conftest.err
3341 } && test -s conftest.$ac_objext; then
3342 ac_cv_prog_cxx_g=yes
3344 $as_echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3359 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3360 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3361 if test "$ac_test_CXXFLAGS" = set; then
3362 CXXFLAGS=$ac_save_CXXFLAGS
3363 elif test $ac_cv_prog_cxx_g = yes; then
3364 if test "$GXX" = yes; then
3370 if test "$GXX" = yes; then
3377 ac_cpp='$CPP $CPPFLAGS'
3378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3386 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3388 cat > conftest.c << EOF
3392 int main (int argc, char*argv)
3402 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3403 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3404 { $as_echo "$as_me:$LINENO: result: yes" >&5
3405 $as_echo "yes" >&6; }
3409 echo "configure: failed program was:" >&5
3411 { $as_echo "$as_me:$LINENO: result: no" >&5
3412 $as_echo "no" >&6; }
3417 if test "x$GCC_IS_OK" '=' "x";then
3418 echo "***************************************************"
3419 echo "* Your gcc is too old to compile this!"
3421 echo "* The last version compileable by this compiler is "
3422 echo "* swftools 0.7.0, which you can download from "
3423 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3425 echo "* Newer versions require at least gcc 3.0.0 "
3426 echo "***************************************************"
3430 if test "x$CHECKMEM" '!=' "x";then
3434 #unset ac_cv_prog_CC
3435 #unset ac_cv_prog_CXX
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3445 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3446 # On Suns, sometimes $CPP names a directory.
3447 if test -n "$CPP" && test -d "$CPP"; then
3450 if test -z "$CPP"; then
3451 if test "${ac_cv_prog_CPP+set}" = set; then
3452 $as_echo_n "(cached) " >&6
3454 # Double quotes because CPP needs to be expanded
3455 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3458 for ac_c_preproc_warn_flag in '' yes
3460 # Use a header file that comes with gcc, so configuring glibc
3461 # with a fresh cross-compiler works.
3462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3463 # <limits.h> exists even on freestanding compilers.
3464 # On the NeXT, cc -E runs the code through the compiler's parser,
3465 # not just through cpp. "Syntax error" is here to catch this case.
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3473 # include <limits.h>
3475 # include <assert.h>
3479 if { (ac_try="$ac_cpp conftest.$ac_ext"
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3485 $as_echo "$ac_try_echo") >&5
3486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3488 grep -v '^ *+' conftest.er1 >conftest.err
3490 cat conftest.err >&5
3491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } >/dev/null && {
3493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3494 test ! -s conftest.err
3498 $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Broken: fails on valid input.
3505 rm -f conftest.err conftest.$ac_ext
3507 # OK, works on sane cases. Now check whether nonexistent headers
3508 # can be detected and how.
3509 cat >conftest.$ac_ext <<_ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 #include <ac_nonexistent.h>
3517 if { (ac_try="$ac_cpp conftest.$ac_ext"
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3523 $as_echo "$ac_try_echo") >&5
3524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526 grep -v '^ *+' conftest.er1 >conftest.err
3528 cat conftest.err >&5
3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } >/dev/null && {
3531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3532 test ! -s conftest.err
3534 # Broken: success on invalid input.
3537 $as_echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 # Passes both tests.
3545 rm -f conftest.err conftest.$ac_ext
3548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3549 rm -f conftest.err conftest.$ac_ext
3550 if $ac_preproc_ok; then
3562 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3563 $as_echo "$CPP" >&6; }
3565 for ac_c_preproc_warn_flag in '' yes
3567 # Use a header file that comes with gcc, so configuring glibc
3568 # with a fresh cross-compiler works.
3569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570 # <limits.h> exists even on freestanding compilers.
3571 # On the NeXT, cc -E runs the code through the compiler's parser,
3572 # not just through cpp. "Syntax error" is here to catch this case.
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3580 # include <limits.h>
3582 # include <assert.h>
3586 if { (ac_try="$ac_cpp conftest.$ac_ext"
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3592 $as_echo "$ac_try_echo") >&5
3593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3595 grep -v '^ *+' conftest.er1 >conftest.err
3597 cat conftest.err >&5
3598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } >/dev/null && {
3600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3601 test ! -s conftest.err
3605 $as_echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 # Broken: fails on valid input.
3612 rm -f conftest.err conftest.$ac_ext
3614 # OK, works on sane cases. Now check whether nonexistent headers
3615 # can be detected and how.
3616 cat >conftest.$ac_ext <<_ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #include <ac_nonexistent.h>
3624 if { (ac_try="$ac_cpp conftest.$ac_ext"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3630 $as_echo "$ac_try_echo") >&5
3631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3633 grep -v '^ *+' conftest.er1 >conftest.err
3635 cat conftest.err >&5
3636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } >/dev/null && {
3638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3641 # Broken: success on invalid input.
3644 $as_echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 # Passes both tests.
3652 rm -f conftest.err conftest.$ac_ext
3655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3656 rm -f conftest.err conftest.$ac_ext
3657 if $ac_preproc_ok; then
3660 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3663 See \`config.log' for more details." >&5
3664 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3665 See \`config.log' for more details." >&2;}
3666 { (exit 1); exit 1; }; }; }
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 if test -n "$ac_tool_prefix"; then
3677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if test "${ac_cv_prog_RANLIB+set}" = set; then
3682 $as_echo_n "(cached) " >&6
3684 if test -n "$RANLIB"; then
3685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 RANLIB=$ac_cv_prog_RANLIB
3705 if test -n "$RANLIB"; then
3706 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3707 $as_echo "$RANLIB" >&6; }
3709 { $as_echo "$as_me:$LINENO: result: no" >&5
3710 $as_echo "no" >&6; }
3715 if test -z "$ac_cv_prog_RANLIB"; then
3716 ac_ct_RANLIB=$RANLIB
3717 # Extract the first word of "ranlib", so it can be a program name with args.
3718 set dummy ranlib; ac_word=$2
3719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3722 $as_echo_n "(cached) " >&6
3724 if test -n "$ac_ct_RANLIB"; then
3725 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 ac_cv_prog_ac_ct_RANLIB="ranlib"
3735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3745 if test -n "$ac_ct_RANLIB"; then
3746 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3747 $as_echo "$ac_ct_RANLIB" >&6; }
3749 { $as_echo "$as_me:$LINENO: result: no" >&5
3750 $as_echo "no" >&6; }
3753 if test "x$ac_ct_RANLIB" = x; then
3756 case $cross_compiling:$ac_tool_warned in
3758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3760 ac_tool_warned=yes ;;
3762 RANLIB=$ac_ct_RANLIB
3765 RANLIB="$ac_cv_prog_RANLIB"
3768 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3769 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3771 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3772 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3773 $as_echo_n "(cached) " >&6
3775 cat >conftest.make <<\_ACEOF
3778 @echo '@@@%%%=$(MAKE)=@@@%%%'
3780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3781 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3783 eval ac_cv_prog_make_${ac_make}_set=yes;;
3785 eval ac_cv_prog_make_${ac_make}_set=no;;
3789 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3790 { $as_echo "$as_me:$LINENO: result: yes" >&5
3791 $as_echo "yes" >&6; }
3794 { $as_echo "$as_me:$LINENO: result: no" >&5
3795 $as_echo "no" >&6; }
3796 SET_MAKE="MAKE=${MAKE-make}"
3799 # Find a good install program. We prefer a C program (faster),
3800 # so one script is as good as another. But avoid the broken or
3801 # incompatible versions:
3802 # SysV /etc/install, /usr/sbin/install
3803 # SunOS /usr/etc/install
3804 # IRIX /sbin/install
3806 # AmigaOS /C/install, which installs bootblocks on floppy discs
3807 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3808 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3809 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3810 # OS/2's system install, which has a completely different semantic
3811 # ./install, which can be erroneously created by make from ./install.sh.
3812 # Reject install programs that cannot install multiple files.
3813 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3814 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3815 if test -z "$INSTALL"; then
3816 if test "${ac_cv_path_install+set}" = set; then
3817 $as_echo_n "(cached) " >&6
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 test -z "$as_dir" && as_dir=.
3824 # Account for people who put trailing slashes in PATH elements.
3826 ./ | .// | /cC/* | \
3827 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3828 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3831 # OSF1 and SCO ODT 3.0 have their own names for install.
3832 # Don't use installbsd from OSF since it installs stuff as root
3834 for ac_prog in ginstall scoinst install; do
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3837 if test $ac_prog = install &&
3838 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3839 # AIX install. It has an incompatible calling convention.
3841 elif test $ac_prog = install &&
3842 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3843 # program-specific install script used by HP pwplus--don't use.
3846 rm -rf conftest.one conftest.two conftest.dir
3847 echo one > conftest.one
3848 echo two > conftest.two
3850 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3851 test -s conftest.one && test -s conftest.two &&
3852 test -s conftest.dir/conftest.one &&
3853 test -s conftest.dir/conftest.two
3855 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3868 rm -rf conftest.one conftest.two conftest.dir
3871 if test "${ac_cv_path_install+set}" = set; then
3872 INSTALL=$ac_cv_path_install
3874 # As a last resort, use the slow shell script. Don't cache a
3875 # value for INSTALL within a source directory, because that will
3876 # break other packages using the cache if that directory is
3877 # removed, or if the value is a relative name.
3878 INSTALL=$ac_install_sh
3881 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3882 $as_echo "$INSTALL" >&6; }
3884 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3885 # It thinks the first close brace ends the variable substitution.
3886 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3888 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3890 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3892 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3893 $as_echo_n "checking whether ln -s works... " >&6; }
3895 if test "$LN_S" = "ln -s"; then
3896 { $as_echo "$as_me:$LINENO: result: yes" >&5
3897 $as_echo "yes" >&6; }
3899 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3900 $as_echo "no, using $LN_S" >&6; }
3903 for ac_prog in gzip uncompress compress
3905 # Extract the first word of "$ac_prog", so it can be a program name with args.
3906 set dummy $ac_prog; ac_word=$2
3907 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3910 $as_echo_n "(cached) " >&6
3912 if test -n "$UNCOMPRESS"; then
3913 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3922 ac_cv_prog_UNCOMPRESS="$ac_prog"
3923 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3933 if test -n "$UNCOMPRESS"; then
3934 { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3935 $as_echo "$UNCOMPRESS" >&6; }
3937 { $as_echo "$as_me:$LINENO: result: no" >&5
3938 $as_echo "no" >&6; }
3942 test -n "$UNCOMPRESS" && break
3953 if test "x$EXEEXT" = "x.exe";then
3962 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3963 $as_echo_n "checking host system type... " >&6; }
3964 if test "${ac_cv_host+set}" = set; then
3965 $as_echo_n "(cached) " >&6
3967 if test "x$host_alias" = x; then
3968 ac_cv_host=$ac_cv_build
3970 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3971 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3972 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3973 { (exit 1); exit 1; }; }
3977 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3978 $as_echo "$ac_cv_host" >&6; }
3981 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3982 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3983 { (exit 1); exit 1; }; };;
3986 ac_save_IFS=$IFS; IFS='-'
3992 # Remember, the first character of IFS is used to create $*,
3993 # except with old shells:
3996 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4001 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4002 $as_echo_n "checking for target system... " >&6; }
4006 *cygwin* ) CYGWIN=yes;;
4007 *mingw* ) MINGW=yes;;
4011 if test "x$MINGW" = "xyes"; then
4012 #fix for the debian distribution of mingw
4013 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4014 AR="/usr/i586-mingw32msvc/bin/ar"
4016 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4017 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4019 #fix for the gentoo distribution of mingw
4020 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4021 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4023 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4024 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4026 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4027 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4033 if test "x${CYGWIN}" = "xyes"; then
4035 cat >>confdefs.h <<\_ACEOF
4039 { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4040 $as_echo "cygwin" >&6; }
4042 if test "x${MINGW}" = "xyes"; then
4044 cat >>confdefs.h <<\_ACEOF
4050 cat >>confdefs.h <<\_ACEOF
4054 LIBS="$LIBS -lws2_32 -lgdi32"
4055 { $as_echo "$as_me:$LINENO: result: mingw" >&5
4056 $as_echo "mingw" >&6; }
4061 cat >>confdefs.h <<\_ACEOF
4065 { $as_echo "$as_me:$LINENO: result: " >&5
4072 if test "x${MINGW}" != "xyes"; then
4075 cat >>confdefs.h <<\_ACEOF
4088 # The following tries to make use of includes and libraries in
4089 # /usr/local, too. Notice: A -I/usr/local/include might break
4090 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4091 # especially on systems which link /usr/local to /usr, so it has yet
4092 # to be seen how useful this is.
4093 if test -d /usr/local/lib; then
4094 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4096 if test -d /usr/local/include; then
4097 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4098 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4101 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4102 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4103 # and $prefix/include, which should be included in our search paths for libraries
4105 LDFLAGS="$LDFLAGS -L${libdir}"
4106 CPPFLAGS="$CPPFLAGS -I${includedir}"
4107 # TODO- test whether gcc still works after this
4111 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4114 # this must be done after (I believe) AC_PROG_MAKE_SET
4115 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4116 if test "$MACOSX";then
4119 STRIP="@echo debug enabled, not stripping "
4127 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4128 $as_echo_n "checking for sin in -lm... " >&6; }
4129 if test "${ac_cv_lib_m_sin+set}" = set; then
4130 $as_echo_n "(cached) " >&6
4132 ac_check_lib_save_LIBS=$LIBS
4134 cat >conftest.$ac_ext <<_ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4141 /* Override any GCC internal prototype to avoid an error.
4142 Use char because int might match the return type of a GCC
4143 builtin and then its argument prototype would still apply. */
4156 rm -f conftest.$ac_objext conftest$ac_exeext
4157 if { (ac_try="$ac_link"
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4163 $as_echo "$ac_try_echo") >&5
4164 (eval "$ac_link") 2>conftest.er1
4166 grep -v '^ *+' conftest.er1 >conftest.err
4168 cat conftest.err >&5
4169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } && {
4171 test -z "$ac_c_werror_flag" ||
4172 test ! -s conftest.err
4173 } && test -s conftest$ac_exeext && {
4174 test "$cross_compiling" = yes ||
4175 $as_test_x conftest$ac_exeext
4179 $as_echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4185 rm -rf conftest.dSYM
4186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4187 conftest$ac_exeext conftest.$ac_ext
4188 LIBS=$ac_check_lib_save_LIBS
4190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4191 $as_echo "$ac_cv_lib_m_sin" >&6; }
4192 if test "x$ac_cv_lib_m_sin" = x""yes; then
4193 cat >>confdefs.h <<_ACEOF
4200 echo "Error: Math library not found.";
4206 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4207 $as_echo_n "checking for deflate in -lz... " >&6; }
4208 if test "${ac_cv_lib_z_deflate+set}" = set; then
4209 $as_echo_n "(cached) " >&6
4211 ac_check_lib_save_LIBS=$LIBS
4213 cat >conftest.$ac_ext <<_ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4220 /* Override any GCC internal prototype to avoid an error.
4221 Use char because int might match the return type of a GCC
4222 builtin and then its argument prototype would still apply. */
4235 rm -f conftest.$ac_objext conftest$ac_exeext
4236 if { (ac_try="$ac_link"
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4242 $as_echo "$ac_try_echo") >&5
4243 (eval "$ac_link") 2>conftest.er1
4245 grep -v '^ *+' conftest.er1 >conftest.err
4247 cat conftest.err >&5
4248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } && {
4250 test -z "$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4252 } && test -s conftest$ac_exeext && {
4253 test "$cross_compiling" = yes ||
4254 $as_test_x conftest$ac_exeext
4256 ac_cv_lib_z_deflate=yes
4258 $as_echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4261 ac_cv_lib_z_deflate=no
4264 rm -rf conftest.dSYM
4265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4266 conftest$ac_exeext conftest.$ac_ext
4267 LIBS=$ac_check_lib_save_LIBS
4269 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4270 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4271 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4272 cat >>confdefs.h <<_ACEOF
4283 if test "x$ZLIBMISSING" = "xtrue";then
4286 echo "You need zlib to compile swftools"
4292 { $as_echo "$as_me:$LINENO: checking for PDF_open_file in -lpdf" >&5
4293 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4294 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then
4295 $as_echo_n "(cached) " >&6
4297 ac_check_lib_save_LIBS=$LIBS
4299 cat >conftest.$ac_ext <<_ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4306 /* Override any GCC internal prototype to avoid an error.
4307 Use char because int might match the return type of a GCC
4308 builtin and then its argument prototype would still apply. */
4312 char PDF_open_file ();
4316 return PDF_open_file ();
4321 rm -f conftest.$ac_objext conftest$ac_exeext
4322 if { (ac_try="$ac_link"
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4328 $as_echo "$ac_try_echo") >&5
4329 (eval "$ac_link") 2>conftest.er1
4331 grep -v '^ *+' conftest.er1 >conftest.err
4333 cat conftest.err >&5
4334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && {
4336 test -z "$ac_c_werror_flag" ||
4337 test ! -s conftest.err
4338 } && test -s conftest$ac_exeext && {
4339 test "$cross_compiling" = yes ||
4340 $as_test_x conftest$ac_exeext
4342 ac_cv_lib_pdf_PDF_open_file=yes
4344 $as_echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4347 ac_cv_lib_pdf_PDF_open_file=no
4350 rm -rf conftest.dSYM
4351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4352 conftest$ac_exeext conftest.$ac_ext
4353 LIBS=$ac_check_lib_save_LIBS
4355 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4356 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4357 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then
4358 cat >>confdefs.h <<_ACEOF
4359 #define HAVE_LIBPDF 1
4369 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4370 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4371 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4372 $as_echo_n "(cached) " >&6
4374 ac_check_lib_save_LIBS=$LIBS
4376 cat >conftest.$ac_ext <<_ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4383 /* Override any GCC internal prototype to avoid an error.
4384 Use char because int might match the return type of a GCC
4385 builtin and then its argument prototype would still apply. */
4389 char jpeg_write_raw_data ();
4393 return jpeg_write_raw_data ();
4398 rm -f conftest.$ac_objext conftest$ac_exeext
4399 if { (ac_try="$ac_link"
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4405 $as_echo "$ac_try_echo") >&5
4406 (eval "$ac_link") 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } && {
4413 test -z "$ac_c_werror_flag" ||
4414 test ! -s conftest.err
4415 } && test -s conftest$ac_exeext && {
4416 test "$cross_compiling" = yes ||
4417 $as_test_x conftest$ac_exeext
4419 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4421 $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4427 rm -rf conftest.dSYM
4428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4429 conftest$ac_exeext conftest.$ac_ext
4430 LIBS=$ac_check_lib_save_LIBS
4432 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4433 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4434 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4435 cat >>confdefs.h <<_ACEOF
4436 #define HAVE_LIBJPEG 1
4446 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4447 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4448 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4449 $as_echo_n "(cached) " >&6
4451 ac_check_lib_save_LIBS=$LIBS
4452 LIBS="-lungif $LIBS"
4453 cat >conftest.$ac_ext <<_ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4460 /* Override any GCC internal prototype to avoid an error.
4461 Use char because int might match the return type of a GCC
4462 builtin and then its argument prototype would still apply. */
4475 rm -f conftest.$ac_objext conftest$ac_exeext
4476 if { (ac_try="$ac_link"
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4482 $as_echo "$ac_try_echo") >&5
4483 (eval "$ac_link") 2>conftest.er1
4485 grep -v '^ *+' conftest.er1 >conftest.err
4487 cat conftest.err >&5
4488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } && {
4490 test -z "$ac_c_werror_flag" ||
4491 test ! -s conftest.err
4492 } && test -s conftest$ac_exeext && {
4493 test "$cross_compiling" = yes ||
4494 $as_test_x conftest$ac_exeext
4496 ac_cv_lib_ungif_DGifOpen=yes
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 ac_cv_lib_ungif_DGifOpen=no
4504 rm -rf conftest.dSYM
4505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4506 conftest$ac_exeext conftest.$ac_ext
4507 LIBS=$ac_check_lib_save_LIBS
4509 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4510 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4511 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4512 cat >>confdefs.h <<_ACEOF
4513 #define HAVE_LIBUNGIF 1
4516 LIBS="-lungif $LIBS"
4522 if test "$UNGIFMISSING";then
4525 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4526 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4527 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4528 $as_echo_n "(cached) " >&6
4530 ac_check_lib_save_LIBS=$LIBS
4532 cat >conftest.$ac_ext <<_ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4539 /* Override any GCC internal prototype to avoid an error.
4540 Use char because int might match the return type of a GCC
4541 builtin and then its argument prototype would still apply. */
4554 rm -f conftest.$ac_objext conftest$ac_exeext
4555 if { (ac_try="$ac_link"
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4561 $as_echo "$ac_try_echo") >&5
4562 (eval "$ac_link") 2>conftest.er1
4564 grep -v '^ *+' conftest.er1 >conftest.err
4566 cat conftest.err >&5
4567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && {
4569 test -z "$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 } && test -s conftest$ac_exeext && {
4572 test "$cross_compiling" = yes ||
4573 $as_test_x conftest$ac_exeext
4575 ac_cv_lib_gif_DGifOpen=yes
4577 $as_echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4580 ac_cv_lib_gif_DGifOpen=no
4583 rm -rf conftest.dSYM
4584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4585 conftest$ac_exeext conftest.$ac_ext
4586 LIBS=$ac_check_lib_save_LIBS
4588 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4589 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4590 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4591 cat >>confdefs.h <<_ACEOF
4592 #define HAVE_LIBGIF 1
4604 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4605 $as_echo_n "checking for byte order... " >&6; }
4606 if test "$cross_compiling" = yes; then
4609 cat >conftest.$ac_ext <<_ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4616 int main (int argc, char *argv[])
4623 rm -f conftest$ac_exeext
4624 if { (ac_try="$ac_link"
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4630 $as_echo "$ac_try_echo") >&5
4631 (eval "$ac_link") 2>&5
4633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4635 { (case "(($ac_try" in
4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4640 $as_echo "$ac_try_echo") >&5
4641 (eval "$ac_try") 2>&5
4643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4647 $as_echo "$as_me: program exited with status $ac_status" >&5
4648 $as_echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4654 rm -rf conftest.dSYM
4655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4661 if test "x${CROSSCOMPILE}" = "x1"; then
4662 { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4663 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4664 { $as_echo "$as_me:$LINENO: checking target system type" >&5
4665 $as_echo_n "checking target system type... " >&6; }
4666 if test "${ac_cv_target+set}" = set; then
4667 $as_echo_n "(cached) " >&6
4669 if test "x$target_alias" = x; then
4670 ac_cv_target=$ac_cv_host
4672 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4673 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4674 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4675 { (exit 1); exit 1; }; }
4679 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4680 $as_echo "$ac_cv_target" >&6; }
4681 case $ac_cv_target in
4683 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4684 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4685 { (exit 1); exit 1; }; };;
4687 target=$ac_cv_target
4688 ac_save_IFS=$IFS; IFS='-'
4694 # Remember, the first character of IFS is used to create $*,
4695 # except with old shells:
4698 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4701 # The aliases save the names the user supplied, while $host etc.
4702 # will get canonicalized.
4703 test -n "$target_alias" &&
4704 test "$program_prefix$program_suffix$program_transform_name" = \
4706 program_prefix=${target_alias}-
4707 { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4708 $as_echo_n "checking for byte order, try 2... " >&6; }
4713 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4720 if test "x${LITTLEENDIAN}" = "x1"; then
4721 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4722 $as_echo "little endian" >&6; }
4726 if test "x${BIGENDIAN}" = "x1"; then
4727 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4728 $as_echo "big endian" >&6; }
4731 export WORDS_BIGENDIAN
4733 cat >>confdefs.h <<\_ACEOF
4734 #define WORDS_BIGENDIAN 1
4738 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4739 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4740 $as_echo "unknown" >&6; }
4741 echo Byte order could not determined.
4747 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4748 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4749 if test "$cross_compiling" = yes; then
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4760 int main (int argc, char*argv[])
4762 return system("test `touch config.tmp2`");
4766 rm -f conftest$ac_exeext
4767 if { (ac_try="$ac_link"
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4773 $as_echo "$ac_try_echo") >&5
4774 (eval "$ac_link") 2>&5
4776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4778 { (case "(($ac_try" in
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4783 $as_echo "$ac_try_echo") >&5
4784 (eval "$ac_try") 2>&5
4786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4790 $as_echo "$as_me: program exited with status $ac_status" >&5
4791 $as_echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4795 rm -rf conftest.dSYM
4796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4801 if test "x${OK}" = "xOK";then
4802 test -f config.tmp2 || OK=
4805 if test "x${CROSSCOMPILE}" = "x1";then
4808 if test "x${OK}" = "xOK";then
4810 { $as_echo "$as_me:$LINENO: result: yes" >&5
4811 $as_echo "yes" >&6; }
4813 export SYSTEM_BACKTICKS
4815 cat >>confdefs.h <<\_ACEOF
4816 #define SYSTEM_BACKTICKS 1
4820 { $as_echo "$as_me:$LINENO: result: no" >&5
4821 $as_echo "no" >&6; }
4826 test "$program_prefix" != NONE &&
4827 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4828 # Use a double $ so make ignores it.
4829 test "$program_suffix" != NONE &&
4830 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4831 # Double any \ or $.
4832 # By default was `s,x,x', remove it if useless.
4833 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4834 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4837 ac_config_headers="$ac_config_headers config.h"
4845 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4846 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4847 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4848 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4850 $as_echo_n "(cached) " >&6
4852 cat >conftest.$ac_ext <<_ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #include <sys/types.h>
4870 rm -f conftest.$ac_objext
4871 if { (ac_try="$ac_compile"
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4877 $as_echo "$ac_try_echo") >&5
4878 (eval "$ac_compile") 2>conftest.er1
4880 grep -v '^ *+' conftest.er1 >conftest.err
4882 cat conftest.err >&5
4883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } && {
4885 test -z "$ac_c_werror_flag" ||
4886 test ! -s conftest.err
4887 } && test -s conftest.$ac_objext; then
4888 eval "$as_ac_Header=yes"
4890 $as_echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 eval "$as_ac_Header=no"
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 ac_res=`eval 'as_val=${'$as_ac_Header'}
4899 $as_echo "$as_val"'`
4900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4901 $as_echo "$ac_res" >&6; }
4902 as_val=`eval 'as_val=${'$as_ac_Header'}
4903 $as_echo "$as_val"'`
4904 if test "x$as_val" = x""yes; then
4905 cat >>confdefs.h <<_ACEOF
4906 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4909 ac_header_dirent=$ac_hdr; break
4913 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4914 if test $ac_header_dirent = dirent.h; then
4915 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4916 $as_echo_n "checking for library containing opendir... " >&6; }
4917 if test "${ac_cv_search_opendir+set}" = set; then
4918 $as_echo_n "(cached) " >&6
4920 ac_func_search_save_LIBS=$LIBS
4921 cat >conftest.$ac_ext <<_ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4928 /* Override any GCC internal prototype to avoid an error.
4929 Use char because int might match the return type of a GCC
4930 builtin and then its argument prototype would still apply. */
4943 for ac_lib in '' dir; do
4944 if test -z "$ac_lib"; then
4945 ac_res="none required"
4948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4950 rm -f conftest.$ac_objext conftest$ac_exeext
4951 if { (ac_try="$ac_link"
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4957 $as_echo "$ac_try_echo") >&5
4958 (eval "$ac_link") 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } && {
4965 test -z "$ac_c_werror_flag" ||
4966 test ! -s conftest.err
4967 } && test -s conftest$ac_exeext && {
4968 test "$cross_compiling" = yes ||
4969 $as_test_x conftest$ac_exeext
4971 ac_cv_search_opendir=$ac_res
4973 $as_echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4979 rm -rf conftest.dSYM
4980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4982 if test "${ac_cv_search_opendir+set}" = set; then
4986 if test "${ac_cv_search_opendir+set}" = set; then
4989 ac_cv_search_opendir=no
4992 LIBS=$ac_func_search_save_LIBS
4994 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4995 $as_echo "$ac_cv_search_opendir" >&6; }
4996 ac_res=$ac_cv_search_opendir
4997 if test "$ac_res" != no; then
4998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5003 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5004 $as_echo_n "checking for library containing opendir... " >&6; }
5005 if test "${ac_cv_search_opendir+set}" = set; then
5006 $as_echo_n "(cached) " >&6
5008 ac_func_search_save_LIBS=$LIBS
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any GCC internal prototype to avoid an error.
5017 Use char because int might match the return type of a GCC
5018 builtin and then its argument prototype would still apply. */
5031 for ac_lib in '' x; do
5032 if test -z "$ac_lib"; then
5033 ac_res="none required"
5036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5038 rm -f conftest.$ac_objext conftest$ac_exeext
5039 if { (ac_try="$ac_link"
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5045 $as_echo "$ac_try_echo") >&5
5046 (eval "$ac_link") 2>conftest.er1
5048 grep -v '^ *+' conftest.er1 >conftest.err
5050 cat conftest.err >&5
5051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } && {
5053 test -z "$ac_c_werror_flag" ||
5054 test ! -s conftest.err
5055 } && test -s conftest$ac_exeext && {
5056 test "$cross_compiling" = yes ||
5057 $as_test_x conftest$ac_exeext
5059 ac_cv_search_opendir=$ac_res
5061 $as_echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5067 rm -rf conftest.dSYM
5068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5070 if test "${ac_cv_search_opendir+set}" = set; then
5074 if test "${ac_cv_search_opendir+set}" = set; then
5077 ac_cv_search_opendir=no
5080 LIBS=$ac_func_search_save_LIBS
5082 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5083 $as_echo "$ac_cv_search_opendir" >&6; }
5084 ac_res=$ac_cv_search_opendir
5085 if test "$ac_res" != no; then
5086 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5093 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5094 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5095 if test "${ac_cv_path_GREP+set}" = set; then
5096 $as_echo_n "(cached) " >&6
5098 if test -z "$GREP"; then
5099 ac_path_GREP_found=false
5100 # Loop through the user's path and test for each of PROGNAME-LIST
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5105 test -z "$as_dir" && as_dir=.
5106 for ac_prog in grep ggrep; do
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5109 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5110 # Check for GNU ac_path_GREP and select it if it is found.
5111 # Check for GNU $ac_path_GREP
5112 case `"$ac_path_GREP" --version 2>&1` in
5114 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5117 $as_echo_n 0123456789 >"conftest.in"
5120 cat "conftest.in" "conftest.in" >"conftest.tmp"
5121 mv "conftest.tmp" "conftest.in"
5122 cp "conftest.in" "conftest.nl"
5123 $as_echo 'GREP' >> "conftest.nl"
5124 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5126 ac_count=`expr $ac_count + 1`
5127 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5128 # Best one so far, save it but keep looking for a better one
5129 ac_cv_path_GREP="$ac_path_GREP"
5130 ac_path_GREP_max=$ac_count
5132 # 10*(2^10) chars as input seems more than enough
5133 test $ac_count -gt 10 && break
5135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138 $ac_path_GREP_found && break 3
5143 if test -z "$ac_cv_path_GREP"; then
5144 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5145 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5146 { (exit 1); exit 1; }; }
5149 ac_cv_path_GREP=$GREP
5153 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5154 $as_echo "$ac_cv_path_GREP" >&6; }
5155 GREP="$ac_cv_path_GREP"
5158 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5159 $as_echo_n "checking for egrep... " >&6; }
5160 if test "${ac_cv_path_EGREP+set}" = set; then
5161 $as_echo_n "(cached) " >&6
5163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5164 then ac_cv_path_EGREP="$GREP -E"
5166 if test -z "$EGREP"; then
5167 ac_path_EGREP_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in egrep; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5178 # Check for GNU ac_path_EGREP and select it if it is found.
5179 # Check for GNU $ac_path_EGREP
5180 case `"$ac_path_EGREP" --version 2>&1` in
5182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5185 $as_echo_n 0123456789 >"conftest.in"
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 $as_echo 'EGREP' >> "conftest.nl"
5192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 ac_count=`expr $ac_count + 1`
5195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_EGREP="$ac_path_EGREP"
5198 ac_path_EGREP_max=$ac_count
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5206 $ac_path_EGREP_found && break 3
5211 if test -z "$ac_cv_path_EGREP"; then
5212 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5213 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5214 { (exit 1); exit 1; }; }
5217 ac_cv_path_EGREP=$EGREP
5222 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5223 $as_echo "$ac_cv_path_EGREP" >&6; }
5224 EGREP="$ac_cv_path_EGREP"
5227 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5228 $as_echo_n "checking for ANSI C header files... " >&6; }
5229 if test "${ac_cv_header_stdc+set}" = set; then
5230 $as_echo_n "(cached) " >&6
5232 cat >conftest.$ac_ext <<_ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5251 rm -f conftest.$ac_objext
5252 if { (ac_try="$ac_compile"
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5258 $as_echo "$ac_try_echo") >&5
5259 (eval "$ac_compile") 2>conftest.er1
5261 grep -v '^ *+' conftest.er1 >conftest.err
5263 cat conftest.err >&5
5264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } && {
5266 test -z "$ac_c_werror_flag" ||
5267 test ! -s conftest.err
5268 } && test -s conftest.$ac_objext; then
5269 ac_cv_header_stdc=yes
5271 $as_echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5274 ac_cv_header_stdc=no
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 if test $ac_cv_header_stdc = yes; then
5280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5281 cat >conftest.$ac_ext <<_ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291 $EGREP "memchr" >/dev/null 2>&1; then
5294 ac_cv_header_stdc=no
5300 if test $ac_cv_header_stdc = yes; then
5301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5302 cat >conftest.$ac_ext <<_ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5312 $EGREP "free" >/dev/null 2>&1; then
5315 ac_cv_header_stdc=no
5321 if test $ac_cv_header_stdc = yes; then
5322 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5323 if test "$cross_compiling" = yes; then
5326 cat >conftest.$ac_ext <<_ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5334 #if ((' ' & 0x0FF) == 0x020)
5335 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5336 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5338 # define ISLOWER(c) \
5339 (('a' <= (c) && (c) <= 'i') \
5340 || ('j' <= (c) && (c) <= 'r') \
5341 || ('s' <= (c) && (c) <= 'z'))
5342 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5345 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5350 for (i = 0; i < 256; i++)
5351 if (XOR (islower (i), ISLOWER (i))
5352 || toupper (i) != TOUPPER (i))
5357 rm -f conftest$ac_exeext
5358 if { (ac_try="$ac_link"
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_link") 2>&5
5367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5369 { (case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5374 $as_echo "$ac_try_echo") >&5
5375 (eval "$ac_try") 2>&5
5377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5381 $as_echo "$as_me: program exited with status $ac_status" >&5
5382 $as_echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5386 ac_cv_header_stdc=no
5388 rm -rf conftest.dSYM
5389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5395 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5396 $as_echo "$ac_cv_header_stdc" >&6; }
5397 if test $ac_cv_header_stdc = yes; then
5399 cat >>confdefs.h <<\_ACEOF
5400 #define STDC_HEADERS 1
5406 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5416 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5417 inttypes.h stdint.h unistd.h
5419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5420 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5421 $as_echo_n "checking for $ac_header... " >&6; }
5422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5423 $as_echo_n "(cached) " >&6
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 $ac_includes_default
5433 #include <$ac_header>
5435 rm -f conftest.$ac_objext
5436 if { (ac_try="$ac_compile"
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5442 $as_echo "$ac_try_echo") >&5
5443 (eval "$ac_compile") 2>conftest.er1
5445 grep -v '^ *+' conftest.er1 >conftest.err
5447 cat conftest.err >&5
5448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } && {
5450 test -z "$ac_c_werror_flag" ||
5451 test ! -s conftest.err
5452 } && test -s conftest.$ac_objext; then
5453 eval "$as_ac_Header=yes"
5455 $as_echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 eval "$as_ac_Header=no"
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 ac_res=`eval 'as_val=${'$as_ac_Header'}
5464 $as_echo "$as_val"'`
5465 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5466 $as_echo "$ac_res" >&6; }
5467 as_val=`eval 'as_val=${'$as_ac_Header'}
5468 $as_echo "$as_val"'`
5469 if test "x$as_val" = x""yes; then
5470 cat >>confdefs.h <<_ACEOF
5471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5499 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 pdflib.h
5501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5503 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5504 $as_echo_n "checking for $ac_header... " >&6; }
5505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5506 $as_echo_n "(cached) " >&6
5508 ac_res=`eval 'as_val=${'$as_ac_Header'}
5509 $as_echo "$as_val"'`
5510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5511 $as_echo "$ac_res" >&6; }
5513 # Is the header compilable?
5514 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5515 $as_echo_n "checking $ac_header usability... " >&6; }
5516 cat >conftest.$ac_ext <<_ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 $ac_includes_default
5523 #include <$ac_header>
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5532 $as_echo "$ac_try_echo") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_c_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest.$ac_objext; then
5543 ac_header_compiler=yes
5545 $as_echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5548 ac_header_compiler=no
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5553 $as_echo "$ac_header_compiler" >&6; }
5555 # Is the header present?
5556 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5557 $as_echo_n "checking $ac_header presence... " >&6; }
5558 cat >conftest.$ac_ext <<_ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 #include <$ac_header>
5566 if { (ac_try="$ac_cpp conftest.$ac_ext"
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5572 $as_echo "$ac_try_echo") >&5
5573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5575 grep -v '^ *+' conftest.er1 >conftest.err
5577 cat conftest.err >&5
5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } >/dev/null && {
5580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5583 ac_header_preproc=yes
5585 $as_echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5588 ac_header_preproc=no
5591 rm -f conftest.err conftest.$ac_ext
5592 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5593 $as_echo "$ac_header_preproc" >&6; }
5595 # So? What about this header?
5596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5599 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5602 ac_header_preproc=yes
5605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5606 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5608 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5610 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5612 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5616 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5621 $as_echo_n "checking for $ac_header... " >&6; }
5622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5623 $as_echo_n "(cached) " >&6
5625 eval "$as_ac_Header=\$ac_header_preproc"
5627 ac_res=`eval 'as_val=${'$as_ac_Header'}
5628 $as_echo "$as_val"'`
5629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5630 $as_echo "$ac_res" >&6; }
5633 as_val=`eval 'as_val=${'$as_ac_Header'}
5634 $as_echo "$as_val"'`
5635 if test "x$as_val" = x""yes; then
5636 cat >>confdefs.h <<_ACEOF
5637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5646 cat >>confdefs.h <<_ACEOF
5647 #define PACKAGE "$PACKAGE"
5651 cat >>confdefs.h <<_ACEOF
5652 #define VERSION "$VERSION"
5661 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5662 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5663 if test "${ac_cv_c_const+set}" = set; then
5664 $as_echo_n "(cached) " >&6
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5676 /* FIXME: Include the comments suggested by Paul. */
5678 /* Ultrix mips cc rejects this. */
5679 typedef int charset[2];
5681 /* SunOS 4.1.1 cc rejects this. */
5682 char const *const *pcpcc;
5684 /* NEC SVR4.0.2 mips cc rejects this. */
5685 struct point {int x, y;};
5686 static struct point const zero = {0,0};
5687 /* AIX XL C 1.02.0.0 rejects this.
5688 It does not let you subtract one const X* pointer from another in
5689 an arm of an if-expression whose if-part is not a constant
5691 const char *g = "string";
5692 pcpcc = &g + (g ? g-g : 0);
5693 /* HPUX 7.0 cc rejects these. */
5695 ppc = (char**) pcpcc;
5696 pcpcc = (char const *const *) ppc;
5697 { /* SCO 3.2v4 cc rejects this. */
5699 char const *s = 0 ? (char *) 0 : (char const *) 0;
5704 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5706 const int *foo = &x[0];
5709 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5710 typedef const int *iptr;
5714 { /* AIX XL C 1.02.0.0 rejects this saying
5715 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5716 struct s { int j; const int *ap[3]; };
5717 struct s *b; b->j = 5;
5719 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5723 return !cs[0] && !zero.x;
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5737 $as_echo "$ac_try_echo") >&5
5738 (eval "$ac_compile") 2>conftest.er1
5740 grep -v '^ *+' conftest.er1 >conftest.err
5742 cat conftest.err >&5
5743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && {
5745 test -z "$ac_c_werror_flag" ||
5746 test ! -s conftest.err
5747 } && test -s conftest.$ac_objext; then
5750 $as_echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5759 $as_echo "$ac_cv_c_const" >&6; }
5760 if test $ac_cv_c_const = no; then
5762 cat >>confdefs.h <<\_ACEOF
5768 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5769 $as_echo_n "checking for inline... " >&6; }
5770 if test "${ac_cv_c_inline+set}" = set; then
5771 $as_echo_n "(cached) " >&6
5774 for ac_kw in inline __inline__ __inline; do
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5783 static $ac_kw foo_t static_foo () {return 0; }
5784 $ac_kw foo_t foo () {return 0; }
5788 rm -f conftest.$ac_objext
5789 if { (ac_try="$ac_compile"
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5795 $as_echo "$ac_try_echo") >&5
5796 (eval "$ac_compile") 2>conftest.er1
5798 grep -v '^ *+' conftest.er1 >conftest.err
5800 cat conftest.err >&5
5801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } && {
5803 test -z "$ac_c_werror_flag" ||
5804 test ! -s conftest.err
5805 } && test -s conftest.$ac_objext; then
5806 ac_cv_c_inline=$ac_kw
5808 $as_echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 test "$ac_cv_c_inline" != no && break
5819 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5820 $as_echo "$ac_cv_c_inline" >&6; }
5823 case $ac_cv_c_inline in
5826 case $ac_cv_c_inline in
5828 *) ac_val=$ac_cv_c_inline;;
5830 cat >>confdefs.h <<_ACEOF
5832 #define inline $ac_val
5838 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5839 $as_echo_n "checking for off_t... " >&6; }
5840 if test "${ac_cv_type_off_t+set}" = set; then
5841 $as_echo_n "(cached) " >&6
5844 cat >conftest.$ac_ext <<_ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 $ac_includes_default
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5867 $as_echo "$ac_try_echo") >&5
5868 (eval "$ac_compile") 2>conftest.er1
5870 grep -v '^ *+' conftest.er1 >conftest.err
5872 cat conftest.err >&5
5873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } && {
5875 test -z "$ac_c_werror_flag" ||
5876 test ! -s conftest.err
5877 } && test -s conftest.$ac_objext; then
5878 cat >conftest.$ac_ext <<_ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 $ac_includes_default
5888 if (sizeof ((off_t)))
5894 rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5901 $as_echo "$ac_try_echo") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.$ac_objext; then
5914 $as_echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 ac_cv_type_off_t=yes
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 $as_echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5931 $as_echo "$ac_cv_type_off_t" >&6; }
5932 if test "x$ac_cv_type_off_t" = x""yes; then
5936 cat >>confdefs.h <<_ACEOF
5937 #define off_t long int
5942 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5943 $as_echo_n "checking for size_t... " >&6; }
5944 if test "${ac_cv_type_size_t+set}" = set; then
5945 $as_echo_n "(cached) " >&6
5947 ac_cv_type_size_t=no
5948 cat >conftest.$ac_ext <<_ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 $ac_includes_default
5958 if (sizeof (size_t))
5964 rm -f conftest.$ac_objext
5965 if { (ac_try="$ac_compile"
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5971 $as_echo "$ac_try_echo") >&5
5972 (eval "$ac_compile") 2>conftest.er1
5974 grep -v '^ *+' conftest.er1 >conftest.err
5976 cat conftest.err >&5
5977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } && {
5979 test -z "$ac_c_werror_flag" ||
5980 test ! -s conftest.err
5981 } && test -s conftest.$ac_objext; then
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5992 if (sizeof ((size_t)))
5998 rm -f conftest.$ac_objext
5999 if { (ac_try="$ac_compile"
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6005 $as_echo "$ac_try_echo") >&5
6006 (eval "$ac_compile") 2>conftest.er1
6008 grep -v '^ *+' conftest.er1 >conftest.err
6010 cat conftest.err >&5
6011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } && {
6013 test -z "$ac_c_werror_flag" ||
6014 test ! -s conftest.err
6015 } && test -s conftest.$ac_objext; then
6018 $as_echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 ac_cv_type_size_t=yes
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6035 $as_echo "$ac_cv_type_size_t" >&6; }
6036 if test "x$ac_cv_type_size_t" = x""yes; then
6040 cat >>confdefs.h <<_ACEOF
6041 #define size_t unsigned int
6046 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6047 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6048 if test "${ac_cv_struct_tm+set}" = set; then
6049 $as_echo_n "(cached) " >&6
6051 cat >conftest.$ac_ext <<_ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #include <sys/types.h>
6064 int *p = &tm.tm_sec;
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6077 $as_echo "$ac_try_echo") >&5
6078 (eval "$ac_compile") 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest.$ac_objext; then
6088 ac_cv_struct_tm=time.h
6090 $as_echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 ac_cv_struct_tm=sys/time.h
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6099 $as_echo "$ac_cv_struct_tm" >&6; }
6100 if test $ac_cv_struct_tm = sys/time.h; then
6102 cat >>confdefs.h <<\_ACEOF
6103 #define TM_IN_SYS_TIME 1
6108 { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6109 $as_echo_n "checking for boolean... " >&6; }
6110 if test "${ac_cv_type_boolean+set}" = set; then
6111 $as_echo_n "(cached) " >&6
6113 ac_cv_type_boolean=no
6114 cat >conftest.$ac_ext <<_ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 $ac_includes_default
6124 if (sizeof (boolean))
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 cat >conftest.$ac_ext <<_ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 $ac_includes_default
6158 if (sizeof ((boolean)))
6164 rm -f conftest.$ac_objext
6165 if { (ac_try="$ac_compile"
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6171 $as_echo "$ac_try_echo") >&5
6172 (eval "$ac_compile") 2>conftest.er1
6174 grep -v '^ *+' conftest.er1 >conftest.err
6176 cat conftest.err >&5
6177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } && {
6179 test -z "$ac_c_werror_flag" ||
6180 test ! -s conftest.err
6181 } && test -s conftest.$ac_objext; then
6184 $as_echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 ac_cv_type_boolean=yes
6190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192 $as_echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6201 $as_echo "$ac_cv_type_boolean" >&6; }
6202 if test "x$ac_cv_type_boolean" = x""yes; then
6206 cat >>confdefs.h <<_ACEOF
6227 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6230 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6231 $as_echo_n "checking for $ac_func... " >&6; }
6232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6233 $as_echo_n "(cached) " >&6
6235 cat >conftest.$ac_ext <<_ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6243 #define $ac_func innocuous_$ac_func
6245 /* System header to define __stub macros and hopefully few prototypes,
6246 which can conflict with char $ac_func (); below.
6247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6248 <limits.h> exists even on freestanding compilers. */
6251 # include <limits.h>
6253 # include <assert.h>
6258 /* Override any GCC internal prototype to avoid an error.
6259 Use char because int might match the return type of a GCC
6260 builtin and then its argument prototype would still apply. */
6265 /* The GNU C library defines this for functions which it implements
6266 to always fail with ENOSYS. Some functions are actually named
6267 something starting with __ and the normal name is an alias. */
6268 #if defined __stub_$ac_func || defined __stub___$ac_func
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (ac_try="$ac_link"
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6287 $as_echo "$ac_try_echo") >&5
6288 (eval "$ac_link") 2>conftest.er1
6290 grep -v '^ *+' conftest.er1 >conftest.err
6292 cat conftest.err >&5
6293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } && {
6295 test -z "$ac_c_werror_flag" ||
6296 test ! -s conftest.err
6297 } && test -s conftest$ac_exeext && {
6298 test "$cross_compiling" = yes ||
6299 $as_test_x conftest$ac_exeext
6301 eval "$as_ac_var=yes"
6303 $as_echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 eval "$as_ac_var=no"
6309 rm -rf conftest.dSYM
6310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6311 conftest$ac_exeext conftest.$ac_ext
6313 ac_res=`eval 'as_val=${'$as_ac_var'}
6314 $as_echo "$as_val"'`
6315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6316 $as_echo "$ac_res" >&6; }
6317 as_val=`eval 'as_val=${'$as_ac_var'}
6318 $as_echo "$as_val"'`
6319 if test "x$as_val" = x""yes; then
6320 cat >>confdefs.h <<_ACEOF
6321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6328 # The cast to long int works around a bug in the HP C Compiler
6329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6331 # This bug is HP SR number 8606223364.
6332 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6333 $as_echo_n "checking size of signed char... " >&6; }
6334 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6335 $as_echo_n "(cached) " >&6
6337 if test "$cross_compiling" = yes; then
6338 # Depending upon the size, compute the lo and hi bounds.
6339 cat >conftest.$ac_ext <<_ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6345 $ac_includes_default
6349 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
6356 rm -f conftest.$ac_objext
6357 if { (ac_try="$ac_compile"
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6363 $as_echo "$ac_try_echo") >&5
6364 (eval "$ac_compile") 2>conftest.er1
6366 grep -v '^ *+' conftest.er1 >conftest.err
6368 cat conftest.err >&5
6369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && {
6371 test -z "$ac_c_werror_flag" ||
6372 test ! -s conftest.err
6373 } && test -s conftest.$ac_objext; then
6376 cat >conftest.$ac_ext <<_ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 $ac_includes_default
6386 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6393 rm -f conftest.$ac_objext
6394 if { (ac_try="$ac_compile"
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6400 $as_echo "$ac_try_echo") >&5
6401 (eval "$ac_compile") 2>conftest.er1
6403 grep -v '^ *+' conftest.er1 >conftest.err
6405 cat conftest.err >&5
6406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && {
6408 test -z "$ac_c_werror_flag" ||
6409 test ! -s conftest.err
6410 } && test -s conftest.$ac_objext; then
6411 ac_hi=$ac_mid; break
6413 $as_echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6416 ac_lo=`expr $ac_mid + 1`
6417 if test $ac_lo -le $ac_mid; then
6421 ac_mid=`expr 2 '*' $ac_mid + 1`
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427 $as_echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6440 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6447 rm -f conftest.$ac_objext
6448 if { (ac_try="$ac_compile"
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6454 $as_echo "$ac_try_echo") >&5
6455 (eval "$ac_compile") 2>conftest.er1
6457 grep -v '^ *+' conftest.er1 >conftest.err
6459 cat conftest.err >&5
6460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } && {
6462 test -z "$ac_c_werror_flag" ||
6463 test ! -s conftest.err
6464 } && test -s conftest.$ac_objext; then
6467 cat >conftest.$ac_ext <<_ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 $ac_includes_default
6477 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6491 $as_echo "$ac_try_echo") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6494 grep -v '^ *+' conftest.er1 >conftest.err
6496 cat conftest.err >&5
6497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest.$ac_objext; then
6502 ac_lo=$ac_mid; break
6504 $as_echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6507 ac_hi=`expr '(' $ac_mid ')' - 1`
6508 if test $ac_mid -le $ac_hi; then
6512 ac_mid=`expr 2 '*' $ac_mid`
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 $as_echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 # Binary search between lo and hi bounds.
6529 while test "x$ac_lo" != "x$ac_hi"; do
6530 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6531 cat >conftest.$ac_ext <<_ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 $ac_includes_default
6541 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6548 rm -f conftest.$ac_objext
6549 if { (ac_try="$ac_compile"
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6555 $as_echo "$ac_try_echo") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6558 grep -v '^ *+' conftest.er1 >conftest.err
6560 cat conftest.err >&5
6561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && {
6563 test -z "$ac_c_werror_flag" ||
6564 test ! -s conftest.err
6565 } && test -s conftest.$ac_objext; then
6568 $as_echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6571 ac_lo=`expr '(' $ac_mid ')' + 1`
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6578 '') if test "$ac_cv_type_signed_char" = yes; then
6579 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6581 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6582 See \`config.log' for more details." >&5
6583 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6584 See \`config.log' for more details." >&2;}
6585 { (exit 77); exit 77; }; }; }
6587 ac_cv_sizeof_signed_char=0
6591 cat >conftest.$ac_ext <<_ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6597 $ac_includes_default
6598 static long int longval () { return (long int) (sizeof (signed char)); }
6599 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6606 FILE *f = fopen ("conftest.val", "w");
6609 if (((long int) (sizeof (signed char))) < 0)
6611 long int i = longval ();
6612 if (i != ((long int) (sizeof (signed char))))
6614 fprintf (f, "%ld", i);
6618 unsigned long int i = ulongval ();
6619 if (i != ((long int) (sizeof (signed char))))
6621 fprintf (f, "%lu", i);
6623 /* Do not output a trailing newline, as this causes \r\n confusion
6624 on some platforms. */
6625 return ferror (f) || fclose (f) != 0;
6631 rm -f conftest$ac_exeext
6632 if { (ac_try="$ac_link"
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6638 $as_echo "$ac_try_echo") >&5
6639 (eval "$ac_link") 2>&5
6641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6643 { (case "(($ac_try" in
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6648 $as_echo "$ac_try_echo") >&5
6649 (eval "$ac_try") 2>&5
6651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; }; then
6653 ac_cv_sizeof_signed_char=`cat conftest.val`
6655 $as_echo "$as_me: program exited with status $ac_status" >&5
6656 $as_echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6660 if test "$ac_cv_type_signed_char" = yes; then
6661 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6663 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6664 See \`config.log' for more details." >&5
6665 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6666 See \`config.log' for more details." >&2;}
6667 { (exit 77); exit 77; }; }; }
6669 ac_cv_sizeof_signed_char=0
6672 rm -rf conftest.dSYM
6673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6677 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6678 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6682 cat >>confdefs.h <<_ACEOF
6683 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6687 # The cast to long int works around a bug in the HP C Compiler
6688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6690 # This bug is HP SR number 8606223364.
6691 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6692 $as_echo_n "checking size of signed short... " >&6; }
6693 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6694 $as_echo_n "(cached) " >&6
6696 if test "$cross_compiling" = yes; then
6697 # Depending upon the size, compute the lo and hi bounds.
6698 cat >conftest.$ac_ext <<_ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6708 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6715 rm -f conftest.$ac_objext
6716 if { (ac_try="$ac_compile"
6718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719 *) ac_try_echo=$ac_try;;
6721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6722 $as_echo "$ac_try_echo") >&5
6723 (eval "$ac_compile") 2>conftest.er1
6725 grep -v '^ *+' conftest.er1 >conftest.err
6727 cat conftest.err >&5
6728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
6735 cat >conftest.$ac_ext <<_ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 $ac_includes_default
6745 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6752 rm -f conftest.$ac_objext
6753 if { (ac_try="$ac_compile"
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6759 $as_echo "$ac_try_echo") >&5
6760 (eval "$ac_compile") 2>conftest.er1
6762 grep -v '^ *+' conftest.er1 >conftest.err
6764 cat conftest.err >&5
6765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && {
6767 test -z "$ac_c_werror_flag" ||
6768 test ! -s conftest.err
6769 } && test -s conftest.$ac_objext; then
6770 ac_hi=$ac_mid; break
6772 $as_echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 ac_lo=`expr $ac_mid + 1`
6776 if test $ac_lo -le $ac_mid; then
6780 ac_mid=`expr 2 '*' $ac_mid + 1`
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 $as_echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6789 cat >conftest.$ac_ext <<_ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 $ac_includes_default
6799 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6806 rm -f conftest.$ac_objext
6807 if { (ac_try="$ac_compile"
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6813 $as_echo "$ac_try_echo") >&5
6814 (eval "$ac_compile") 2>conftest.er1
6816 grep -v '^ *+' conftest.er1 >conftest.err
6818 cat conftest.err >&5
6819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && {
6821 test -z "$ac_c_werror_flag" ||
6822 test ! -s conftest.err
6823 } && test -s conftest.$ac_objext; then
6826 cat >conftest.$ac_ext <<_ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 $ac_includes_default
6836 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6843 rm -f conftest.$ac_objext
6844 if { (ac_try="$ac_compile"
6846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847 *) ac_try_echo=$ac_try;;
6849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6850 $as_echo "$ac_try_echo") >&5
6851 (eval "$ac_compile") 2>conftest.er1
6853 grep -v '^ *+' conftest.er1 >conftest.err
6855 cat conftest.err >&5
6856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } && {
6858 test -z "$ac_c_werror_flag" ||
6859 test ! -s conftest.err
6860 } && test -s conftest.$ac_objext; then
6861 ac_lo=$ac_mid; break
6863 $as_echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6866 ac_hi=`expr '(' $ac_mid ')' - 1`
6867 if test $ac_mid -le $ac_hi; then
6871 ac_mid=`expr 2 '*' $ac_mid`
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877 $as_echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 # Binary search between lo and hi bounds.
6888 while test "x$ac_lo" != "x$ac_hi"; do
6889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6890 cat >conftest.$ac_ext <<_ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 $ac_includes_default
6900 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6907 rm -f conftest.$ac_objext
6908 if { (ac_try="$ac_compile"
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6914 $as_echo "$ac_try_echo") >&5
6915 (eval "$ac_compile") 2>conftest.er1
6917 grep -v '^ *+' conftest.er1 >conftest.err
6919 cat conftest.err >&5
6920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } && {
6922 test -z "$ac_c_werror_flag" ||
6923 test ! -s conftest.err
6924 } && test -s conftest.$ac_objext; then
6927 $as_echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 ac_lo=`expr '(' $ac_mid ')' + 1`
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6937 '') if test "$ac_cv_type_signed_short" = yes; then
6938 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6940 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6941 See \`config.log' for more details." >&5
6942 $as_echo "$as_me: error: cannot compute sizeof (signed short)
6943 See \`config.log' for more details." >&2;}
6944 { (exit 77); exit 77; }; }; }
6946 ac_cv_sizeof_signed_short=0
6950 cat >conftest.$ac_ext <<_ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 $ac_includes_default
6957 static long int longval () { return (long int) (sizeof (signed short)); }
6958 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
6965 FILE *f = fopen ("conftest.val", "w");
6968 if (((long int) (sizeof (signed short))) < 0)
6970 long int i = longval ();
6971 if (i != ((long int) (sizeof (signed short))))
6973 fprintf (f, "%ld", i);
6977 unsigned long int i = ulongval ();
6978 if (i != ((long int) (sizeof (signed short))))
6980 fprintf (f, "%lu", i);
6982 /* Do not output a trailing newline, as this causes \r\n confusion
6983 on some platforms. */
6984 return ferror (f) || fclose (f) != 0;
6990 rm -f conftest$ac_exeext
6991 if { (ac_try="$ac_link"
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998 (eval "$ac_link") 2>&5
7000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7002 { (case "(($ac_try" in
7003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004 *) ac_try_echo=$ac_try;;
7006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7007 $as_echo "$ac_try_echo") >&5
7008 (eval "$ac_try") 2>&5
7010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7012 ac_cv_sizeof_signed_short=`cat conftest.val`
7014 $as_echo "$as_me: program exited with status $ac_status" >&5
7015 $as_echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7019 if test "$ac_cv_type_signed_short" = yes; then
7020 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7022 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7023 See \`config.log' for more details." >&5
7024 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7025 See \`config.log' for more details." >&2;}
7026 { (exit 77); exit 77; }; }; }
7028 ac_cv_sizeof_signed_short=0
7031 rm -rf conftest.dSYM
7032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7036 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
7037 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
7041 cat >>confdefs.h <<_ACEOF
7042 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
7046 # The cast to long int works around a bug in the HP C Compiler
7047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7049 # This bug is HP SR number 8606223364.
7050 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
7051 $as_echo_n "checking size of signed... " >&6; }
7052 if test "${ac_cv_sizeof_signed+set}" = set; then
7053 $as_echo_n "(cached) " >&6
7055 if test "$cross_compiling" = yes; then
7056 # Depending upon the size, compute the lo and hi bounds.
7057 cat >conftest.$ac_ext <<_ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7067 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
7074 rm -f conftest.$ac_objext
7075 if { (ac_try="$ac_compile"
7077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7081 $as_echo "$ac_try_echo") >&5
7082 (eval "$ac_compile") 2>conftest.er1
7084 grep -v '^ *+' conftest.er1 >conftest.err
7086 cat conftest.err >&5
7087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest.$ac_objext; then
7094 cat >conftest.$ac_ext <<_ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 $ac_includes_default
7104 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7118 $as_echo "$ac_try_echo") >&5
7119 (eval "$ac_compile") 2>conftest.er1
7121 grep -v '^ *+' conftest.er1 >conftest.err
7123 cat conftest.err >&5
7124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } && {
7126 test -z "$ac_c_werror_flag" ||
7127 test ! -s conftest.err
7128 } && test -s conftest.$ac_objext; then
7129 ac_hi=$ac_mid; break
7131 $as_echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 ac_lo=`expr $ac_mid + 1`
7135 if test $ac_lo -le $ac_mid; then
7139 ac_mid=`expr 2 '*' $ac_mid + 1`
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 $as_echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7148 cat >conftest.$ac_ext <<_ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 $ac_includes_default
7158 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7165 rm -f conftest.$ac_objext
7166 if { (ac_try="$ac_compile"
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7172 $as_echo "$ac_try_echo") >&5
7173 (eval "$ac_compile") 2>conftest.er1
7175 grep -v '^ *+' conftest.er1 >conftest.err
7177 cat conftest.err >&5
7178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_c_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest.$ac_objext; then
7185 cat >conftest.$ac_ext <<_ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 $ac_includes_default
7195 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7209 $as_echo "$ac_try_echo") >&5
7210 (eval "$ac_compile") 2>conftest.er1
7212 grep -v '^ *+' conftest.er1 >conftest.err
7214 cat conftest.err >&5
7215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && {
7217 test -z "$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7219 } && test -s conftest.$ac_objext; then
7220 ac_lo=$ac_mid; break
7222 $as_echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7225 ac_hi=`expr '(' $ac_mid ')' - 1`
7226 if test $ac_mid -le $ac_hi; then
7230 ac_mid=`expr 2 '*' $ac_mid`
7233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236 $as_echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 # Binary search between lo and hi bounds.
7247 while test "x$ac_lo" != "x$ac_hi"; do
7248 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7249 cat >conftest.$ac_ext <<_ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 $ac_includes_default
7259 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7266 rm -f conftest.$ac_objext
7267 if { (ac_try="$ac_compile"
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7273 $as_echo "$ac_try_echo") >&5
7274 (eval "$ac_compile") 2>conftest.er1
7276 grep -v '^ *+' conftest.er1 >conftest.err
7278 cat conftest.err >&5
7279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } && {
7281 test -z "$ac_c_werror_flag" ||
7282 test ! -s conftest.err
7283 } && test -s conftest.$ac_objext; then
7286 $as_echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7289 ac_lo=`expr '(' $ac_mid ')' + 1`
7292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 ?*) ac_cv_sizeof_signed=$ac_lo;;
7296 '') if test "$ac_cv_type_signed" = yes; then
7297 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7299 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7300 See \`config.log' for more details." >&5
7301 $as_echo "$as_me: error: cannot compute sizeof (signed)
7302 See \`config.log' for more details." >&2;}
7303 { (exit 77); exit 77; }; }; }
7305 ac_cv_sizeof_signed=0
7309 cat >conftest.$ac_ext <<_ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 $ac_includes_default
7316 static long int longval () { return (long int) (sizeof (signed)); }
7317 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7324 FILE *f = fopen ("conftest.val", "w");
7327 if (((long int) (sizeof (signed))) < 0)
7329 long int i = longval ();
7330 if (i != ((long int) (sizeof (signed))))
7332 fprintf (f, "%ld", i);
7336 unsigned long int i = ulongval ();
7337 if (i != ((long int) (sizeof (signed))))
7339 fprintf (f, "%lu", i);
7341 /* Do not output a trailing newline, as this causes \r\n confusion
7342 on some platforms. */
7343 return ferror (f) || fclose (f) != 0;
7349 rm -f conftest$ac_exeext
7350 if { (ac_try="$ac_link"
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7356 $as_echo "$ac_try_echo") >&5
7357 (eval "$ac_link") 2>&5
7359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7361 { (case "(($ac_try" in
7362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7366 $as_echo "$ac_try_echo") >&5
7367 (eval "$ac_try") 2>&5
7369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_cv_sizeof_signed=`cat conftest.val`
7373 $as_echo "$as_me: program exited with status $ac_status" >&5
7374 $as_echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7378 if test "$ac_cv_type_signed" = yes; then
7379 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7381 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7382 See \`config.log' for more details." >&5
7383 $as_echo "$as_me: error: cannot compute sizeof (signed)
7384 See \`config.log' for more details." >&2;}
7385 { (exit 77); exit 77; }; }; }
7387 ac_cv_sizeof_signed=0
7390 rm -rf conftest.dSYM
7391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7395 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7396 $as_echo "$ac_cv_sizeof_signed" >&6; }
7400 cat >>confdefs.h <<_ACEOF
7401 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7405 # The cast to long int works around a bug in the HP C Compiler
7406 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7407 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7408 # This bug is HP SR number 8606223364.
7409 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7410 $as_echo_n "checking size of signed long long... " >&6; }
7411 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7412 $as_echo_n "(cached) " >&6
7414 if test "$cross_compiling" = yes; then
7415 # Depending upon the size, compute the lo and hi bounds.
7416 cat >conftest.$ac_ext <<_ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 $ac_includes_default
7426 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7433 rm -f conftest.$ac_objext
7434 if { (ac_try="$ac_compile"
7436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7440 $as_echo "$ac_try_echo") >&5
7441 (eval "$ac_compile") 2>conftest.er1
7443 grep -v '^ *+' conftest.er1 >conftest.err
7445 cat conftest.err >&5
7446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } && {
7448 test -z "$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 } && test -s conftest.$ac_objext; then
7453 cat >conftest.$ac_ext <<_ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 $ac_includes_default
7463 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7470 rm -f conftest.$ac_objext
7471 if { (ac_try="$ac_compile"
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7477 $as_echo "$ac_try_echo") >&5
7478 (eval "$ac_compile") 2>conftest.er1
7480 grep -v '^ *+' conftest.er1 >conftest.err
7482 cat conftest.err >&5
7483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } && {
7485 test -z "$ac_c_werror_flag" ||
7486 test ! -s conftest.err
7487 } && test -s conftest.$ac_objext; then
7488 ac_hi=$ac_mid; break
7490 $as_echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7493 ac_lo=`expr $ac_mid + 1`
7494 if test $ac_lo -le $ac_mid; then
7498 ac_mid=`expr 2 '*' $ac_mid + 1`
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 $as_echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7507 cat >conftest.$ac_ext <<_ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 $ac_includes_default
7517 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7524 rm -f conftest.$ac_objext
7525 if { (ac_try="$ac_compile"
7527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528 *) ac_try_echo=$ac_try;;
7530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7531 $as_echo "$ac_try_echo") >&5
7532 (eval "$ac_compile") 2>conftest.er1
7534 grep -v '^ *+' conftest.er1 >conftest.err
7536 cat conftest.err >&5
7537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } && {
7539 test -z "$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7541 } && test -s conftest.$ac_objext; then
7544 cat >conftest.$ac_ext <<_ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 $ac_includes_default
7554 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7568 $as_echo "$ac_try_echo") >&5
7569 (eval "$ac_compile") 2>conftest.er1
7571 grep -v '^ *+' conftest.er1 >conftest.err
7573 cat conftest.err >&5
7574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && {
7576 test -z "$ac_c_werror_flag" ||
7577 test ! -s conftest.err
7578 } && test -s conftest.$ac_objext; then
7579 ac_lo=$ac_mid; break
7581 $as_echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7584 ac_hi=`expr '(' $ac_mid ')' - 1`
7585 if test $ac_mid -le $ac_hi; then
7589 ac_mid=`expr 2 '*' $ac_mid`
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 $as_echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 # Binary search between lo and hi bounds.
7606 while test "x$ac_lo" != "x$ac_hi"; do
7607 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7608 cat >conftest.$ac_ext <<_ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 $ac_includes_default
7618 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7625 rm -f conftest.$ac_objext
7626 if { (ac_try="$ac_compile"
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7632 $as_echo "$ac_try_echo") >&5
7633 (eval "$ac_compile") 2>conftest.er1
7635 grep -v '^ *+' conftest.er1 >conftest.err
7637 cat conftest.err >&5
7638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } && {
7640 test -z "$ac_c_werror_flag" ||
7641 test ! -s conftest.err
7642 } && test -s conftest.$ac_objext; then
7645 $as_echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 ac_lo=`expr '(' $ac_mid ')' + 1`
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7655 '') if test "$ac_cv_type_signed_long_long" = yes; then
7656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7658 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7659 See \`config.log' for more details." >&5
7660 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7661 See \`config.log' for more details." >&2;}
7662 { (exit 77); exit 77; }; }; }
7664 ac_cv_sizeof_signed_long_long=0
7668 cat >conftest.$ac_ext <<_ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 $ac_includes_default
7675 static long int longval () { return (long int) (sizeof (signed long long)); }
7676 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7683 FILE *f = fopen ("conftest.val", "w");
7686 if (((long int) (sizeof (signed long long))) < 0)
7688 long int i = longval ();
7689 if (i != ((long int) (sizeof (signed long long))))
7691 fprintf (f, "%ld", i);
7695 unsigned long int i = ulongval ();
7696 if (i != ((long int) (sizeof (signed long long))))
7698 fprintf (f, "%lu", i);
7700 /* Do not output a trailing newline, as this causes \r\n confusion
7701 on some platforms. */
7702 return ferror (f) || fclose (f) != 0;
7708 rm -f conftest$ac_exeext
7709 if { (ac_try="$ac_link"
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7715 $as_echo "$ac_try_echo") >&5
7716 (eval "$ac_link") 2>&5
7718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7720 { (case "(($ac_try" in
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7725 $as_echo "$ac_try_echo") >&5
7726 (eval "$ac_try") 2>&5
7728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7732 $as_echo "$as_me: program exited with status $ac_status" >&5
7733 $as_echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7737 if test "$ac_cv_type_signed_long_long" = yes; then
7738 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7740 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7741 See \`config.log' for more details." >&5
7742 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7743 See \`config.log' for more details." >&2;}
7744 { (exit 77); exit 77; }; }; }
7746 ac_cv_sizeof_signed_long_long=0
7749 rm -rf conftest.dSYM
7750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7754 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7755 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7759 cat >>confdefs.h <<_ACEOF
7760 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7764 # The cast to long int works around a bug in the HP C Compiler
7765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7767 # This bug is HP SR number 8606223364.
7768 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7769 $as_echo_n "checking size of void*... " >&6; }
7770 if test "${ac_cv_sizeof_voidp+set}" = set; then
7771 $as_echo_n "(cached) " >&6
7773 if test "$cross_compiling" = yes; then
7774 # Depending upon the size, compute the lo and hi bounds.
7775 cat >conftest.$ac_ext <<_ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7781 $ac_includes_default
7785 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7799 $as_echo "$ac_try_echo") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7802 grep -v '^ *+' conftest.er1 >conftest.err
7804 cat conftest.err >&5
7805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7812 cat >conftest.$ac_ext <<_ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7818 $ac_includes_default
7822 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7829 rm -f conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7836 $as_echo "$ac_try_echo") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7839 grep -v '^ *+' conftest.er1 >conftest.err
7841 cat conftest.err >&5
7842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.$ac_objext; then
7847 ac_hi=$ac_mid; break
7849 $as_echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7852 ac_lo=`expr $ac_mid + 1`
7853 if test $ac_lo -le $ac_mid; then
7857 ac_mid=`expr 2 '*' $ac_mid + 1`
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 $as_echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7866 cat >conftest.$ac_ext <<_ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 $ac_includes_default
7876 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7883 rm -f conftest.$ac_objext
7884 if { (ac_try="$ac_compile"
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_compile") 2>conftest.er1
7893 grep -v '^ *+' conftest.er1 >conftest.err
7895 cat conftest.err >&5
7896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest.$ac_objext; then
7903 cat >conftest.$ac_ext <<_ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 $ac_includes_default
7913 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
7920 rm -f conftest.$ac_objext
7921 if { (ac_try="$ac_compile"
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7927 $as_echo "$ac_try_echo") >&5
7928 (eval "$ac_compile") 2>conftest.er1
7930 grep -v '^ *+' conftest.er1 >conftest.err
7932 cat conftest.err >&5
7933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest.$ac_objext; then
7938 ac_lo=$ac_mid; break
7940 $as_echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 ac_hi=`expr '(' $ac_mid ')' - 1`
7944 if test $ac_mid -le $ac_hi; then
7948 ac_mid=`expr 2 '*' $ac_mid`
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954 $as_echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 # Binary search between lo and hi bounds.
7965 while test "x$ac_lo" != "x$ac_hi"; do
7966 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 $ac_includes_default
7977 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7984 rm -f conftest.$ac_objext
7985 if { (ac_try="$ac_compile"
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7991 $as_echo "$ac_try_echo") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7994 grep -v '^ *+' conftest.er1 >conftest.err
7996 cat conftest.err >&5
7997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8004 $as_echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8007 ac_lo=`expr '(' $ac_mid ')' + 1`
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8014 '') if test "$ac_cv_type_voidp" = yes; then
8015 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8017 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8018 See \`config.log' for more details." >&5
8019 $as_echo "$as_me: error: cannot compute sizeof (void*)
8020 See \`config.log' for more details." >&2;}
8021 { (exit 77); exit 77; }; }; }
8023 ac_cv_sizeof_voidp=0
8027 cat >conftest.$ac_ext <<_ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8033 $ac_includes_default
8034 static long int longval () { return (long int) (sizeof (void*)); }
8035 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
8042 FILE *f = fopen ("conftest.val", "w");
8045 if (((long int) (sizeof (void*))) < 0)
8047 long int i = longval ();
8048 if (i != ((long int) (sizeof (void*))))
8050 fprintf (f, "%ld", i);
8054 unsigned long int i = ulongval ();
8055 if (i != ((long int) (sizeof (void*))))
8057 fprintf (f, "%lu", i);
8059 /* Do not output a trailing newline, as this causes \r\n confusion
8060 on some platforms. */
8061 return ferror (f) || fclose (f) != 0;
8067 rm -f conftest$ac_exeext
8068 if { (ac_try="$ac_link"
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8074 $as_echo "$ac_try_echo") >&5
8075 (eval "$ac_link") 2>&5
8077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8079 { (case "(($ac_try" in
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8084 $as_echo "$ac_try_echo") >&5
8085 (eval "$ac_try") 2>&5
8087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_sizeof_voidp=`cat conftest.val`
8091 $as_echo "$as_me: program exited with status $ac_status" >&5
8092 $as_echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8096 if test "$ac_cv_type_voidp" = yes; then
8097 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8099 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8100 See \`config.log' for more details." >&5
8101 $as_echo "$as_me: error: cannot compute sizeof (void*)
8102 See \`config.log' for more details." >&2;}
8103 { (exit 77); exit 77; }; }; }
8105 ac_cv_sizeof_voidp=0
8108 rm -rf conftest.dSYM
8109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8113 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8114 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8118 cat >>confdefs.h <<_ACEOF
8119 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8126 # Extract the first word of "freetype-config", so it can be a program name with args.
8127 set dummy freetype-config; ac_word=$2
8128 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8131 $as_echo_n "(cached) " >&6
8133 case $FREETYPE_CONFIG in
8135 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8140 for as_dir in $as_dummy
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8158 if test -n "$FREETYPE_CONFIG"; then
8159 { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8160 $as_echo "$FREETYPE_CONFIG" >&6; }
8162 { $as_echo "$as_me:$LINENO: result: no" >&5
8163 $as_echo "no" >&6; }
8168 OLDCPPFLAGS="${CPPFLAGS}"
8170 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8171 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8172 else if test -d /usr/include/freetype2; then
8173 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8174 else if test -d /usr/local/include/freetype2; then
8175 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8180 if test "x${FREETYPE_CONFIG}" '=' "x";then
8181 # if we didn't find the freetype-config program, we won't
8182 # know where the libs are expected to be. So just blindly
8183 # try to link against them.
8184 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8185 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8186 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8187 $as_echo_n "(cached) " >&6
8189 ac_check_lib_save_LIBS=$LIBS
8190 LIBS="-lfreetype $LIBS"
8191 cat >conftest.$ac_ext <<_ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8198 /* Override any GCC internal prototype to avoid an error.
8199 Use char because int might match the return type of a GCC
8200 builtin and then its argument prototype would still apply. */
8204 char FT_Init_FreeType ();
8208 return FT_Init_FreeType ();
8213 rm -f conftest.$ac_objext conftest$ac_exeext
8214 if { (ac_try="$ac_link"
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8220 $as_echo "$ac_try_echo") >&5
8221 (eval "$ac_link") 2>conftest.er1
8223 grep -v '^ *+' conftest.er1 >conftest.err
8225 cat conftest.err >&5
8226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } && {
8228 test -z "$ac_c_werror_flag" ||
8229 test ! -s conftest.err
8230 } && test -s conftest$ac_exeext && {
8231 test "$cross_compiling" = yes ||
8232 $as_test_x conftest$ac_exeext
8234 ac_cv_lib_freetype_FT_Init_FreeType=yes
8236 $as_echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_cv_lib_freetype_FT_Init_FreeType=no
8242 rm -rf conftest.dSYM
8243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8244 conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8248 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8249 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
8256 for ac_header in ft2build.h
8258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8260 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 $as_echo_n "checking for $ac_header... " >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263 $as_echo_n "(cached) " >&6
8265 ac_res=`eval 'as_val=${'$as_ac_Header'}
8266 $as_echo "$as_val"'`
8267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8268 $as_echo "$ac_res" >&6; }
8270 # Is the header compilable?
8271 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8272 $as_echo_n "checking $ac_header usability... " >&6; }
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 $ac_includes_default
8280 #include <$ac_header>
8282 rm -f conftest.$ac_objext
8283 if { (ac_try="$ac_compile"
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8289 $as_echo "$ac_try_echo") >&5
8290 (eval "$ac_compile") 2>conftest.er1
8292 grep -v '^ *+' conftest.er1 >conftest.err
8294 cat conftest.err >&5
8295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } && {
8297 test -z "$ac_c_werror_flag" ||
8298 test ! -s conftest.err
8299 } && test -s conftest.$ac_objext; then
8300 ac_header_compiler=yes
8302 $as_echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 ac_header_compiler=no
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8310 $as_echo "$ac_header_compiler" >&6; }
8312 # Is the header present?
8313 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8314 $as_echo_n "checking $ac_header presence... " >&6; }
8315 cat >conftest.$ac_ext <<_ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8321 #include <$ac_header>
8323 if { (ac_try="$ac_cpp conftest.$ac_ext"
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8329 $as_echo "$ac_try_echo") >&5
8330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8332 grep -v '^ *+' conftest.er1 >conftest.err
8334 cat conftest.err >&5
8335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } >/dev/null && {
8337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8338 test ! -s conftest.err
8340 ac_header_preproc=yes
8342 $as_echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 ac_header_preproc=no
8348 rm -f conftest.err conftest.$ac_ext
8349 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8350 $as_echo "$ac_header_preproc" >&6; }
8352 # So? What about this header?
8353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8356 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8359 ac_header_preproc=yes
8362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8363 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8365 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8367 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8369 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8371 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8373 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8378 $as_echo_n "checking for $ac_header... " >&6; }
8379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380 $as_echo_n "(cached) " >&6
8382 eval "$as_ac_Header=\$ac_header_preproc"
8384 ac_res=`eval 'as_val=${'$as_ac_Header'}
8385 $as_echo "$as_val"'`
8386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8387 $as_echo "$ac_res" >&6; }
8390 as_val=`eval 'as_val=${'$as_ac_Header'}
8391 $as_echo "$as_val"'`
8392 if test "x$as_val" = x""yes; then
8393 cat >>confdefs.h <<_ACEOF
8394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8401 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8403 for ac_header in freetype/freetype.h
8405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8407 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 $as_echo_n "checking for $ac_header... " >&6; }
8409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8410 $as_echo_n "(cached) " >&6
8412 ac_res=`eval 'as_val=${'$as_ac_Header'}
8413 $as_echo "$as_val"'`
8414 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8415 $as_echo "$ac_res" >&6; }
8417 # Is the header compilable?
8418 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8419 $as_echo_n "checking $ac_header usability... " >&6; }
8420 cat >conftest.$ac_ext <<_ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8427 #include <$ac_header>
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8436 $as_echo "$ac_try_echo") >&5
8437 (eval "$ac_compile") 2>conftest.er1
8439 grep -v '^ *+' conftest.er1 >conftest.err
8441 cat conftest.err >&5
8442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } && {
8444 test -z "$ac_c_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest.$ac_objext; then
8447 ac_header_compiler=yes
8449 $as_echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 ac_header_compiler=no
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8457 $as_echo "$ac_header_compiler" >&6; }
8459 # Is the header present?
8460 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8461 $as_echo_n "checking $ac_header presence... " >&6; }
8462 cat >conftest.$ac_ext <<_ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h. */
8468 #include <$ac_header>
8470 if { (ac_try="$ac_cpp conftest.$ac_ext"
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8476 $as_echo "$ac_try_echo") >&5
8477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } >/dev/null && {
8484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8485 test ! -s conftest.err
8487 ac_header_preproc=yes
8489 $as_echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8492 ac_header_preproc=no
8495 rm -f conftest.err conftest.$ac_ext
8496 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8497 $as_echo "$ac_header_preproc" >&6; }
8499 # So? What about this header?
8500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8503 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8505 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8506 ac_header_preproc=yes
8509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8510 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8511 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8512 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8514 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8516 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8518 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8520 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8525 $as_echo_n "checking for $ac_header... " >&6; }
8526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8527 $as_echo_n "(cached) " >&6
8529 eval "$as_ac_Header=\$ac_header_preproc"
8531 ac_res=`eval 'as_val=${'$as_ac_Header'}
8532 $as_echo "$as_val"'`
8533 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8534 $as_echo "$ac_res" >&6; }
8537 as_val=`eval 'as_val=${'$as_ac_Header'}
8538 $as_echo "$as_val"'`
8539 if test "x$as_val" = x""yes; then
8540 cat >>confdefs.h <<_ACEOF
8541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8543 HAVE_FREETYPE_FREETYPE_H=1
8550 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8551 "x${FREETYPE_CONFIG}" '!=' "x";then
8552 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8555 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8560 if test "x${HAVE_FREETYPE}" = "x1"; then
8561 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8562 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8564 LIBS="$LIBS -lfreetype"
8567 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8568 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8571 { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8572 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8574 cat > conftest.c << EOF
8575 $HAVE_FT2BUILD_H_DEFINE
8577 #ifdef HAVE_FT2BUILD_H
8578 #include <ft2build.h>
8579 #include FT_FREETYPE_H
8582 #include FT_SFNT_NAMES_H
8583 #include FT_TRUETYPE_IDS_H
8584 #include FT_OUTLINE_H
8586 #include <freetype/freetype.h>
8587 #include <freetype/ftglyph.h>
8588 #include <freetype/ftsizes.h>
8589 #include <freetype/ftsnames.h>
8590 #include <freetype/ttnameid.h>
8591 #include <freetype/ftoutln.h>
8596 FT_Library ftlibrary;
8608 FT_Init_FreeType(&ftlibrary);
8609 FT_New_Face(ftlibrary, "filename", 0, &face);
8610 i = face->num_glyphs - 1;
8611 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8612 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8613 FT_Get_Postscript_Name(face);
8614 FT_Get_Char_Index(face, 33);
8615 FT_Get_First_Char(face, &i);
8616 FT_Get_Next_Char(face, 33, &i);
8617 if(FT_HAS_GLYPH_NAMES(face)) {
8618 FT_Get_Glyph_Name(face, 33, name, 127);
8620 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8621 FT_Get_Glyph(face->glyph, &glyph);
8622 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8623 FT_Done_Glyph(glyph);
8625 FT_Done_FreeType(ftlibrary);
8630 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8631 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8632 { $as_echo "$as_me:$LINENO: result: yes" >&5
8633 $as_echo "yes" >&6; }
8635 cat >>confdefs.h <<\_ACEOF
8636 #define HAVE_FREETYPE 1
8640 cat >>confdefs.h <<\_ACEOF
8641 #define HAVE_FREETYPE_FREETYPE_H 1
8645 cat >>confdefs.h <<\_ACEOF
8646 #define USE_FREETYPE 1
8650 echo "configure: failed program was:" >&5
8653 { $as_echo "$as_me:$LINENO: result: no" >&5
8654 $as_echo "no" >&6; }
8659 # if the above didn't work out, reset all changes to the compiler variables.
8660 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8661 CPPFLAGS=$OLDCPPFLAGS
8667 OLDCPPFLAGS="${CPPFLAGS}"
8670 if test -d /usr/include/fontconfig; then
8671 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8674 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8675 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8676 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8677 $as_echo_n "(cached) " >&6
8679 ac_check_lib_save_LIBS=$LIBS
8680 LIBS="-lfontconfig $LIBS"
8681 cat >conftest.$ac_ext <<_ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8688 /* Override any GCC internal prototype to avoid an error.
8689 Use char because int might match the return type of a GCC
8690 builtin and then its argument prototype would still apply. */
8703 rm -f conftest.$ac_objext conftest$ac_exeext
8704 if { (ac_try="$ac_link"
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8710 $as_echo "$ac_try_echo") >&5
8711 (eval "$ac_link") 2>conftest.er1
8713 grep -v '^ *+' conftest.er1 >conftest.err
8715 cat conftest.err >&5
8716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } && {
8718 test -z "$ac_c_werror_flag" ||
8719 test ! -s conftest.err
8720 } && test -s conftest$ac_exeext && {
8721 test "$cross_compiling" = yes ||
8722 $as_test_x conftest$ac_exeext
8724 ac_cv_lib_fontconfig_FcInit=yes
8726 $as_echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 ac_cv_lib_fontconfig_FcInit=no
8732 rm -rf conftest.dSYM
8733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8734 conftest$ac_exeext conftest.$ac_ext
8735 LIBS=$ac_check_lib_save_LIBS
8737 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8738 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8739 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then
8740 HAVE_LIB_FONTCONFIG=1
8744 for ac_header in fontconfig.h
8746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8748 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8749 $as_echo_n "checking for $ac_header... " >&6; }
8750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8751 $as_echo_n "(cached) " >&6
8753 ac_res=`eval 'as_val=${'$as_ac_Header'}
8754 $as_echo "$as_val"'`
8755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8756 $as_echo "$ac_res" >&6; }
8758 # Is the header compilable?
8759 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8760 $as_echo_n "checking $ac_header usability... " >&6; }
8761 cat >conftest.$ac_ext <<_ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 $ac_includes_default
8768 #include <$ac_header>
8770 rm -f conftest.$ac_objext
8771 if { (ac_try="$ac_compile"
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8777 $as_echo "$ac_try_echo") >&5
8778 (eval "$ac_compile") 2>conftest.er1
8780 grep -v '^ *+' conftest.er1 >conftest.err
8782 cat conftest.err >&5
8783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } && {
8785 test -z "$ac_c_werror_flag" ||
8786 test ! -s conftest.err
8787 } && test -s conftest.$ac_objext; then
8788 ac_header_compiler=yes
8790 $as_echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8793 ac_header_compiler=no
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8798 $as_echo "$ac_header_compiler" >&6; }
8800 # Is the header present?
8801 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8802 $as_echo_n "checking $ac_header presence... " >&6; }
8803 cat >conftest.$ac_ext <<_ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 #include <$ac_header>
8811 if { (ac_try="$ac_cpp conftest.$ac_ext"
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8817 $as_echo "$ac_try_echo") >&5
8818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8820 grep -v '^ *+' conftest.er1 >conftest.err
8822 cat conftest.err >&5
8823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } >/dev/null && {
8825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8826 test ! -s conftest.err
8828 ac_header_preproc=yes
8830 $as_echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8833 ac_header_preproc=no
8836 rm -f conftest.err conftest.$ac_ext
8837 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8838 $as_echo "$ac_header_preproc" >&6; }
8840 # So? What about this header?
8841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8844 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8846 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8847 ac_header_preproc=yes
8850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8851 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8853 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8855 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8857 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8859 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8861 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8865 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8866 $as_echo_n "checking for $ac_header... " >&6; }
8867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8868 $as_echo_n "(cached) " >&6
8870 eval "$as_ac_Header=\$ac_header_preproc"
8872 ac_res=`eval 'as_val=${'$as_ac_Header'}
8873 $as_echo "$as_val"'`
8874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8875 $as_echo "$ac_res" >&6; }
8878 as_val=`eval 'as_val=${'$as_ac_Header'}
8879 $as_echo "$as_val"'`
8880 if test "x$as_val" = x""yes; then
8881 cat >>confdefs.h <<_ACEOF
8882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8890 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8891 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8896 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8897 LIBS="$LIBS -lfontconfig"
8898 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8899 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8901 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8902 #move freetype library to the end of libraries, otherwise fontconfig
8904 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8907 cat > conftest.c << EOF
8909 #include <fontconfig.h>
8913 FcPattern *pattern, *match;
8916 char*s1="abc",*s2="ABC";
8919 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8920 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8921 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8923 FcConfig*c = FcConfigCreate();
8924 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8925 FcConfigBuildFonts(c);
8926 FcConfigSetCurrent(c);
8928 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
8929 FcFontSetDestroy(set);
8931 FcConfigSubstitute(0, pattern, FcMatchPattern);
8932 FcDefaultSubstitute(pattern);
8933 match = FcFontMatch(0, pattern, &result);
8934 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8935 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8936 FcPatternPrint(pattern);
8937 FcPatternDestroy(pattern);
8938 FcPatternDestroy(match);
8944 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8945 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8946 { $as_echo "$as_me:$LINENO: result: yes" >&5
8947 $as_echo "yes" >&6; }
8949 cat >>confdefs.h <<\_ACEOF
8950 #define HAVE_FONTCONFIG 1
8954 echo "configure: failed program was:" >&5
8957 { $as_echo "$as_me:$LINENO: result: no" >&5
8958 $as_echo "no" >&6; }
8963 # if the above didn't work out, reset all changes to the compiler variables.
8964 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8965 CPPFLAGS=$OLDCPPFLAGS
8971 OLDCPPFLAGS="${CPPFLAGS}"
8974 { $as_echo "$as_me:$LINENO: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
8975 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
8976 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then
8977 $as_echo_n "(cached) " >&6
8979 ac_check_lib_save_LIBS=$LIBS
8980 LIBS="-lfftw3 $LIBS"
8981 cat >conftest.$ac_ext <<_ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8988 /* Override any GCC internal prototype to avoid an error.
8989 Use char because int might match the return type of a GCC
8990 builtin and then its argument prototype would still apply. */
8994 char fftw_plan_dft_r2c_2d ();
8998 return fftw_plan_dft_r2c_2d ();
9003 rm -f conftest.$ac_objext conftest$ac_exeext
9004 if { (ac_try="$ac_link"
9006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9010 $as_echo "$ac_try_echo") >&5
9011 (eval "$ac_link") 2>conftest.er1
9013 grep -v '^ *+' conftest.er1 >conftest.err
9015 cat conftest.err >&5
9016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && {
9018 test -z "$ac_c_werror_flag" ||
9019 test ! -s conftest.err
9020 } && test -s conftest$ac_exeext && {
9021 test "$cross_compiling" = yes ||
9022 $as_test_x conftest$ac_exeext
9024 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
9026 $as_echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9029 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
9032 rm -rf conftest.dSYM
9033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9034 conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9037 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
9038 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
9039 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then
9044 for ac_header in fftw3.h
9046 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9048 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9049 $as_echo_n "checking for $ac_header... " >&6; }
9050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9051 $as_echo_n "(cached) " >&6
9053 ac_res=`eval 'as_val=${'$as_ac_Header'}
9054 $as_echo "$as_val"'`
9055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9056 $as_echo "$ac_res" >&6; }
9058 # Is the header compilable?
9059 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9060 $as_echo_n "checking $ac_header usability... " >&6; }
9061 cat >conftest.$ac_ext <<_ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 $ac_includes_default
9068 #include <$ac_header>
9070 rm -f conftest.$ac_objext
9071 if { (ac_try="$ac_compile"
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9077 $as_echo "$ac_try_echo") >&5
9078 (eval "$ac_compile") 2>conftest.er1
9080 grep -v '^ *+' conftest.er1 >conftest.err
9082 cat conftest.err >&5
9083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } && {
9085 test -z "$ac_c_werror_flag" ||
9086 test ! -s conftest.err
9087 } && test -s conftest.$ac_objext; then
9088 ac_header_compiler=yes
9090 $as_echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 ac_header_compiler=no
9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9098 $as_echo "$ac_header_compiler" >&6; }
9100 # Is the header present?
9101 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9102 $as_echo_n "checking $ac_header presence... " >&6; }
9103 cat >conftest.$ac_ext <<_ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 #include <$ac_header>
9111 if { (ac_try="$ac_cpp conftest.$ac_ext"
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9117 $as_echo "$ac_try_echo") >&5
9118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9120 grep -v '^ *+' conftest.er1 >conftest.err
9122 cat conftest.err >&5
9123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } >/dev/null && {
9125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9126 test ! -s conftest.err
9128 ac_header_preproc=yes
9130 $as_echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 ac_header_preproc=no
9136 rm -f conftest.err conftest.$ac_ext
9137 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9138 $as_echo "$ac_header_preproc" >&6; }
9140 # So? What about this header?
9141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9144 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9146 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9147 ac_header_preproc=yes
9150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9151 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9153 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9155 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9157 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9159 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9161 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9166 $as_echo_n "checking for $ac_header... " >&6; }
9167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9168 $as_echo_n "(cached) " >&6
9170 eval "$as_ac_Header=\$ac_header_preproc"
9172 ac_res=`eval 'as_val=${'$as_ac_Header'}
9173 $as_echo "$as_val"'`
9174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9175 $as_echo "$ac_res" >&6; }
9178 as_val=`eval 'as_val=${'$as_ac_Header'}
9179 $as_echo "$as_val"'`
9180 if test "x$as_val" = x""yes; then
9181 cat >>confdefs.h <<_ACEOF
9182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9190 if test "x${HAVE_LIBFFTW3}" != "x";then
9191 if test "x${HAVE_FFTW3_H}" != "x";then
9196 if test "x${HAVE_FFTW3}" = "x1"; then
9197 LIBS="$LIBS -lfftw3"
9198 { $as_echo "$as_me:$LINENO: checking whether we can compile the fftw3 test program" >&5
9199 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
9201 cat > conftest.c << EOF
9207 fftw_plan plan = fftw_plan_dft_2d(600, 800, (fftw_complex*)data, (fftw_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
9208 plan = fftw_plan_dft_r2c_2d(600, 800, (double*)data, (fftw_complex*)data, FFTW_ESTIMATE);
9209 plan = fftw_plan_dft_c2r_2d(600, 800, (fftw_complex*)data, (double*)data, FFTW_ESTIMATE);
9211 fftw_destroy_plan(plan);
9215 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9216 if { (eval echo fftw3.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9217 { $as_echo "$as_me:$LINENO: result: yes" >&5
9218 $as_echo "yes" >&6; }
9220 cat >>confdefs.h <<\_ACEOF
9221 #define HAVE_FFTW3 1
9225 echo "configure: failed program was:" >&5
9228 { $as_echo "$as_me:$LINENO: result: no" >&5
9229 $as_echo "no" >&6; }
9234 # if the above didn't work out, reset all changes to the compiler variables.
9235 if test "x${HAVE_FFTW3}" "!=" "x1"; then
9236 CPPFLAGS=$OLDCPPFLAGS
9242 # if test "$HAVE_OPENGL";then
9243 # DEVICE_OPENGL='devices/opengl.$(O)'
9244 # AC_SUBST(DEVICE_OPENGL)
9250 if test "x${DISABLE_LAME}" = "xtrue"; then
9251 echo "*" Disabling lame support...
9253 # old lame code at lib/lame
9254 if test -f lib/lame/Makefile.in; then
9255 lame_in_source='$(lame_objects)'
9256 lame_makefile="lib/lame/Makefile"
9257 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9259 cat >>confdefs.h <<\_ACEOF
9264 if test -d /usr/include/lame; then
9265 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9267 if test -d /usr/local/include/lame; then
9268 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9272 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9273 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9274 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9275 $as_echo_n "(cached) " >&6
9277 ac_check_lib_save_LIBS=$LIBS
9278 LIBS="-lmp3lame $LIBS"
9279 cat >conftest.$ac_ext <<_ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9286 /* Override any GCC internal prototype to avoid an error.
9287 Use char because int might match the return type of a GCC
9288 builtin and then its argument prototype would still apply. */
9296 return lame_init ();
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (ac_try="$ac_link"
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9308 $as_echo "$ac_try_echo") >&5
9309 (eval "$ac_link") 2>conftest.er1
9311 grep -v '^ *+' conftest.er1 >conftest.err
9313 cat conftest.err >&5
9314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && {
9316 test -z "$ac_c_werror_flag" ||
9317 test ! -s conftest.err
9318 } && test -s conftest$ac_exeext && {
9319 test "$cross_compiling" = yes ||
9320 $as_test_x conftest$ac_exeext
9322 ac_cv_lib_mp3lame_lame_init=yes
9324 $as_echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 ac_cv_lib_mp3lame_lame_init=no
9330 rm -rf conftest.dSYM
9331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9332 conftest$ac_exeext conftest.$ac_ext
9333 LIBS=$ac_check_lib_save_LIBS
9335 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9336 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9337 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then
9338 cat >>confdefs.h <<_ACEOF
9339 #define HAVE_LIBMP3LAME 1
9342 LIBS="-lmp3lame $LIBS"
9350 for ac_header in lame.h
9352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9355 $as_echo_n "checking for $ac_header... " >&6; }
9356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9357 $as_echo_n "(cached) " >&6
9359 ac_res=`eval 'as_val=${'$as_ac_Header'}
9360 $as_echo "$as_val"'`
9361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9362 $as_echo "$ac_res" >&6; }
9364 # Is the header compilable?
9365 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9366 $as_echo_n "checking $ac_header usability... " >&6; }
9367 cat >conftest.$ac_ext <<_ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9374 #include <$ac_header>
9376 rm -f conftest.$ac_objext
9377 if { (ac_try="$ac_compile"
9379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380 *) ac_try_echo=$ac_try;;
9382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9383 $as_echo "$ac_try_echo") >&5
9384 (eval "$ac_compile") 2>conftest.er1
9386 grep -v '^ *+' conftest.er1 >conftest.err
9388 cat conftest.err >&5
9389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } && {
9391 test -z "$ac_c_werror_flag" ||
9392 test ! -s conftest.err
9393 } && test -s conftest.$ac_objext; then
9394 ac_header_compiler=yes
9396 $as_echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9399 ac_header_compiler=no
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9404 $as_echo "$ac_header_compiler" >&6; }
9406 # Is the header present?
9407 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9408 $as_echo_n "checking $ac_header presence... " >&6; }
9409 cat >conftest.$ac_ext <<_ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 #include <$ac_header>
9417 if { (ac_try="$ac_cpp conftest.$ac_ext"
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9423 $as_echo "$ac_try_echo") >&5
9424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9426 grep -v '^ *+' conftest.er1 >conftest.err
9428 cat conftest.err >&5
9429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } >/dev/null && {
9431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9434 ac_header_preproc=yes
9436 $as_echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_header_preproc=no
9442 rm -f conftest.err conftest.$ac_ext
9443 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9444 $as_echo "$ac_header_preproc" >&6; }
9446 # So? What about this header?
9447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9450 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9452 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9453 ac_header_preproc=yes
9456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9457 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9459 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9461 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9463 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9465 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9467 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9471 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9472 $as_echo_n "checking for $ac_header... " >&6; }
9473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9474 $as_echo_n "(cached) " >&6
9476 eval "$as_ac_Header=\$ac_header_preproc"
9478 ac_res=`eval 'as_val=${'$as_ac_Header'}
9479 $as_echo "$as_val"'`
9480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9481 $as_echo "$ac_res" >&6; }
9484 as_val=`eval 'as_val=${'$as_ac_Header'}
9485 $as_echo "$as_val"'`
9486 if test "x$as_val" = x""yes; then
9487 cat >>confdefs.h <<_ACEOF
9488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9495 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9496 cat >>confdefs.h <<\_ACEOF
9505 splash_in_source='$(splash_objects)'
9506 xpdf_in_source='$(xpdf_objects)'
9512 # ------------------------------------------------------------------
9515 { $as_echo "$as_me:$LINENO: checking whether the filesystem normalizes file names" >&5
9516 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
9518 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
9519 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9520 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
9521 { $as_echo "$as_me:$LINENO: result: yes" >&5
9522 $as_echo "yes" >&6; }
9524 cat >>confdefs.h <<\_ACEOF
9525 #define LOWERCASE_UPPERCASE 1
9529 { $as_echo "$as_me:$LINENO: result: no" >&5
9530 $as_echo "no" >&6; }
9533 rm -f __abcdefghijklmnopqrstuvwxyz.txt
9534 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9538 for ac_prog in avifile-config
9540 # Extract the first word of "$ac_prog", so it can be a program name with args.
9541 set dummy $ac_prog; ac_word=$2
9542 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9543 $as_echo_n "checking for $ac_word... " >&6; }
9544 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9545 $as_echo_n "(cached) " >&6
9547 if test -n "$AVIFILE_CONFIG"; then
9548 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9554 test -z "$as_dir" && as_dir=.
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9557 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9558 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9567 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9568 if test -n "$AVIFILE_CONFIG"; then
9569 { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9570 $as_echo "$AVIFILE_CONFIG" >&6; }
9572 { $as_echo "$as_me:$LINENO: result: no" >&5
9573 $as_echo "no" >&6; }
9577 test -n "$AVIFILE_CONFIG" && break
9581 if test "x$AVIFILE_CONFIG" '!=' "x";then
9582 OLDCPPFLAGS="$CPPFLAGS"
9583 # temporarily add avifile paths to CPPFLAGS...
9584 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9587 for ac_header in avifile/version.h version.h
9589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 $as_echo_n "checking for $ac_header... " >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594 $as_echo_n "(cached) " >&6
9596 ac_res=`eval 'as_val=${'$as_ac_Header'}
9597 $as_echo "$as_val"'`
9598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9599 $as_echo "$ac_res" >&6; }
9601 # Is the header compilable?
9602 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9603 $as_echo_n "checking $ac_header usability... " >&6; }
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 $ac_includes_default
9611 #include <$ac_header>
9613 rm -f conftest.$ac_objext
9614 if { (ac_try="$ac_compile"
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9620 $as_echo "$ac_try_echo") >&5
9621 (eval "$ac_compile") 2>conftest.er1
9623 grep -v '^ *+' conftest.er1 >conftest.err
9625 cat conftest.err >&5
9626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } && {
9628 test -z "$ac_c_werror_flag" ||
9629 test ! -s conftest.err
9630 } && test -s conftest.$ac_objext; then
9631 ac_header_compiler=yes
9633 $as_echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_header_compiler=no
9639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9641 $as_echo "$ac_header_compiler" >&6; }
9643 # Is the header present?
9644 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9645 $as_echo_n "checking $ac_header presence... " >&6; }
9646 cat >conftest.$ac_ext <<_ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 #include <$ac_header>
9654 if { (ac_try="$ac_cpp conftest.$ac_ext"
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9660 $as_echo "$ac_try_echo") >&5
9661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9663 grep -v '^ *+' conftest.er1 >conftest.err
9665 cat conftest.err >&5
9666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } >/dev/null && {
9668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9669 test ! -s conftest.err
9671 ac_header_preproc=yes
9673 $as_echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_header_preproc=no
9679 rm -f conftest.err conftest.$ac_ext
9680 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9681 $as_echo "$ac_header_preproc" >&6; }
9683 # So? What about this header?
9684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9687 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9689 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9690 ac_header_preproc=yes
9693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9694 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9696 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9698 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9700 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9702 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9704 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9708 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9709 $as_echo_n "checking for $ac_header... " >&6; }
9710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9711 $as_echo_n "(cached) " >&6
9713 eval "$as_ac_Header=\$ac_header_preproc"
9715 ac_res=`eval 'as_val=${'$as_ac_Header'}
9716 $as_echo "$as_val"'`
9717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9718 $as_echo "$ac_res" >&6; }
9721 as_val=`eval 'as_val=${'$as_ac_Header'}
9722 $as_echo "$as_val"'`
9723 if test "x$as_val" = x""yes; then
9724 cat >>confdefs.h <<_ACEOF
9725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9733 CPPFLAGS="$OLDCPPFLAGS"
9736 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9737 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
9739 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9740 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9742 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9743 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9746 cat > conftest.cpp << EOF
9748 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9749 // so we have to introduce them this way
9750 $HAVE_VERSION_H_DEFINE
9751 $HAVE_AVIFILE_VERSION_H_DEFINE
9753 #ifdef HAVE_VERSION_H
9754 #include <version.h>
9756 #ifdef HAVE_AVIFILE_VERSION_H
9757 #include <avifile/version.h>
9760 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9761 #include <avifile.h>
9762 #include <aviplay.h>
9763 #include <avm_fourcc.h>
9764 #include <avm_creators.h>
9765 #include <StreamInfo.h>
9768 #include <avifile.h>
9769 #include <aviplay.h>
9770 #include <aviutil.h>
9772 #define Height height
9779 IAviReadFile* player;
9780 IAviReadStream* astream;
9781 IAviReadStream* vstream;
9782 player = CreateIAviReadFile(0);
9783 astream = player->GetStream(0, AviStream::Audio);
9784 vstream = player->GetStream(0, AviStream::Video);
9785 vstream -> StartStreaming();
9786 astream -> StartStreaming();
9789 player->GetFileHeader(&head);
9790 head.dwMicroSecPerFrame;
9795 head.dwMicroSecPerFrame;
9796 astream->GetEndPos(),
9797 astream->GetEndTime());
9798 player->StreamCount();
9800 StreamInfo*audioinfo;
9801 StreamInfo*videoinfo;
9802 audioinfo = astream->GetStreamInfo();
9803 videoinfo = vstream->GetStreamInfo();
9804 videoinfo->GetVideoWidth();
9805 videoinfo->GetVideoHeight();
9806 audioinfo->GetAudioSamplesPerSec();
9807 videoinfo->GetFps();
9809 CImage*img = vstream->GetFrame();
9816 astream->GetAudioFormatInfo(&wave,0);
9818 astream->ReadFrames(0,0,0,a,b);
9820 int main (int argc, char*argv)
9826 if test "x$AVIFILE_CONFIG" '!=' "x";then
9827 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9828 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9829 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9830 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9831 { $as_echo "$as_me:$LINENO: result: yes" >&5
9832 $as_echo "yes" >&6; }
9836 cat >>confdefs.h <<\_ACEOF
9837 #define AVIFILE true
9841 echo "configure: failed program was:" >&5
9842 cat conftest.cpp >&5
9843 { $as_echo "$as_me:$LINENO: result: no" >&5
9844 $as_echo "no" >&6; }
9847 { $as_echo "$as_me:$LINENO: result: no" >&5
9848 $as_echo "no" >&6; }
9852 if test "x${AVIFILE}" = "xtrue"; then
9853 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9854 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9856 cat >>confdefs.h <<\_ACEOF
9857 #define HAVE_AVIFILE 1
9862 if test "x${WIN32}" != "x"; then
9863 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9864 #if test "x${AVIFIL32}" != "x"; then
9865 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9867 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9873 # ------------------------------------------------------------------
9875 if test "x${UNCOMPRESS}" = "xgzip"; then
9877 cat >>confdefs.h <<\_ACEOF
9884 # ------------------------------------------------------------------
9887 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
9888 $as_echo_n "checking for Python.h... " >&6; }
9890 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9893 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9894 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9896 # iterate through version 2.2 to 2.6
9897 for v in 2 3 4 5 6; do
9899 if test -f "/usr/include/python2.$v/Python.h";then
9901 PYTHON_LIB="-lpython$PY_VERSION"
9902 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9903 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9904 HAVE_PYTHON_IMAGING_LIB=1
9906 PYTHON_LIB2="$PYTHON_LIB"
9908 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9910 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9912 PYTHON_LIB="-framework Python"
9913 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
9914 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9915 HAVE_PYTHON_IMAGING_LIB=1
9917 PYTHON_LIB2="$PYTHON_LIB"
9919 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9921 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9922 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9923 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9925 -a -f "/sw/include/python2.$v/Python.h"; then
9927 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9928 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9929 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9930 HAVE_PYTHON_IMAGING_LIB=1
9932 PYTHON_LIB2="$PYTHON_LIB"
9934 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9939 if test "x$PY_VERSION" "!=" "x"; then
9940 { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9941 $as_echo "$PY_VERSION" >&6; }
9942 export PYTHON_INCLUDES PYTHON_LIB
9945 { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9946 $as_echo_n "checking whether we can compile the python test program... " >&6; }
9948 cat > conftest.c << EOF
9954 ret = Py_Main(0, 0);
9955 int x; // check also for gcc 2.95.x incompatibilities
9960 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9961 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9962 { $as_echo "$as_me:$LINENO: result: yes" >&5
9963 $as_echo "yes" >&6; }
9966 echo "configure: failed program was:" >&5
9968 { $as_echo "$as_me:$LINENO: result: no" >&5
9969 $as_echo "no" >&6; }
9972 if test "x$PYTHON_OK" = "xyes";then
9973 { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
9974 $as_echo_n "checking for Python-Imaging... " >&6; }
9975 cat > conftest.c << EOF
9977 #include <Imaging.h>
9985 if test "$HAVE_PYTHON_IMAGING_LIB"; then
9986 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9987 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9988 PYTHON_LIB="${PYTHON_LIB2}"
9990 cat >>confdefs.h <<\_ACEOF
9991 #define HAVE_PYTHON_IMAGING 1
9994 HAVE_PYTHON_IMAGING=yes
9995 export HAVE_PYTHON_IMAGING
9997 { $as_echo "$as_me:$LINENO: result: yes" >&5
9998 $as_echo "yes" >&6; }
10000 echo "configure: failed program was:" >&5
10002 { $as_echo "$as_me:$LINENO: result: no" >&5
10003 $as_echo "no" >&6; }
10006 echo "(didn't find the Python-Imaging libraries)" >&5
10007 { $as_echo "$as_me:$LINENO: result: no" >&5
10008 $as_echo "no" >&6; }
10013 { $as_echo "$as_me:$LINENO: result: nope" >&5
10014 $as_echo "nope" >&6; }
10018 if test "x$PYTHON_OK" '!=' "xyes";then
10019 echo all install uninstall clean: > lib/python/Makefile
10020 # fail silently- the most users won't have any need for the
10021 # python interface anyway
10023 pythonrfxswf="lib/python/Makefile"
10026 # ------------------------------------------------------------------
10028 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
10029 $as_echo_n "checking for missing libraries... " >&6; }
10031 if test "x$ZLIBMISSING" = "xtrue";then
10032 MISSINGLIBS="${MISSINGLIBS} zlib"
10033 DISABLEPNG2SWF=true
10036 if test "x$JPEGLIBMISSING" = "xtrue";then
10037 MISSINGLIBS="${MISSINGLIBS} jpeglib"
10038 DISABLEPDF2SWF=true
10039 DISABLEJPEG2SWF=true
10042 if test "x$PDFLIBMISSING" = "xtrue";then
10043 DISABLEPDF2PDF=true;
10045 #if test "x$T1LIBMISSING" = "xtrue";then
10046 # MISSINGLIBS="${MISSINGLIBS} t1lib"
10048 if test "x$UNGIFMISSING" = "xtrue";then
10049 DISABLEGIF2SWF=true
10050 MISSINGLIBS="${MISSINGLIBS} ungif"
10054 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
10055 DISABLEPDF2PDF=true;
10057 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10058 DISABLEPDF2SWF=true;
10059 DISABLEJPEG2SWF=true;
10060 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10063 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10064 DISABLEPDF2SWF=true;
10065 MISSINGLIBS="${MISSINGLIBS} freetype"
10068 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10069 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10071 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10072 DISABLEGIF2SWF=true
10073 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10076 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10077 DISABLEPNG2SWF=true;
10078 MISSINGLIBS="${MISSINGLIBS} zlib.h"
10081 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10082 # MISSINGLIBS="${MISSINGLIBS} avifile"
10085 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10086 $as_echo "${MISSINGLIBS}" >&6; }
10088 # ------------------------------------------------------------------
10090 if test "x${MISSINGLIBS}" '!=' "x"; then
10091 echo "***************************************************"
10092 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10095 avi2swf="avi2swf/Makefile"
10096 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10097 #don't whine, avi2swf is outdated anyway
10098 #echo "* Disabling avi2swf tool..."
10099 echo all install uninstall clean: > avi2swf/Makefile
10103 pdf2swf_makefile="lib/pdf/Makefile"
10104 PDF2SWF='pdf2swf$(E)'
10105 LIBPDF='libpdf$(A)'
10107 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10108 echo "* Disabling pdf2swf tool..."
10109 rm -f lib/pdf/Makefile
10110 echo all install uninstall clean libpdf: > lib/pdf/Makefile
10111 pdf2swf_makefile=""
10118 PDF2PDF='pdf2pdf$(E)'
10119 DEVICE_PDF='devices/pdf.$(O)'
10120 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
10121 #echo "* Disabling pdf2pdf tool..."
10128 if test "x${ZLIBMISSING}" = "xtrue"; then
10130 echo "* Warning! Without zlib, you will not be able to read"
10131 echo "* or write compressed Flash MX files!"
10134 JPEG2SWF='jpeg2swf$(E)'
10135 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10136 echo "* Disabling jpeg2swf tool..."
10142 GIF2SWF='gif2swf$(E)'
10143 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10144 echo "* Disabling gif2swf tool..."
10150 PNG2SWF='png2swf$(E)'
10151 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10152 echo "* Disabling png2swf tool..."
10158 if test "x${MISSINGLIBS}" '!=' "x"; then
10159 if test "x${PARTIAL}" '=' "x"; then
10160 echo "* (never mind)"
10162 echo "***************************************************"
10165 # ------------------------------------------------------------------
10173 if test -f "release.in"; then release_in="./release"; fi
10174 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10175 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"
10176 ac_config_files="$ac_config_files ${FILES}"
10178 cat >confcache <<\_ACEOF
10179 # This file is a shell script that caches the results of configure
10180 # tests run on this system so they can be shared between configure
10181 # scripts and configure runs, see configure's option --config-cache.
10182 # It is not useful on other systems. If it contains results you don't
10183 # want to keep, you may remove or edit it.
10185 # config.status only pays attention to the cache file if you give it
10186 # the --recheck option to rerun configure.
10188 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10189 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10190 # following values.
10194 # The following way of writing the cache mishandles newlines in values,
10195 # but we know of no workaround that is simple, portable, and efficient.
10196 # So, we kill variables containing newlines.
10197 # Ultrix sh set writes to stderr and can't be redirected directly,
10198 # and sets the high bit in the cache file unless we assign to the vars.
10200 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10201 eval ac_val=\$$ac_var
10205 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10206 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10209 _ | IFS | as_nl) ;; #(
10210 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10211 *) $as_unset $ac_var ;;
10217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10218 *${as_nl}ac_space=\ *)
10219 # `set' does not quote correctly, so add quotes (double-quote
10220 # substitution turns \\\\ into \\, and sed turns \\ into \).
10223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10226 # `set' quotes correctly as required by POSIX, so do not add quotes.
10227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10240 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10241 if test -w "$cache_file"; then
10242 test "x$cache_file" != "x/dev/null" &&
10243 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10244 $as_echo "$as_me: updating cache $cache_file" >&6;}
10245 cat confcache >$cache_file
10247 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10248 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10254 # Let make expand exec_prefix.
10255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10257 DEFS=-DHAVE_CONFIG_H
10261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10262 # 1. Remove the extension, and $U if already installed.
10263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10264 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10266 # will be set to the directory where LIBOBJS objects are built.
10267 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10268 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10270 LIBOBJS=$ac_libobjs
10272 LTLIBOBJS=$ac_ltlibobjs
10276 : ${CONFIG_STATUS=./config.status}
10278 ac_clean_files_save=$ac_clean_files
10279 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10280 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10281 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10282 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10284 # Generated by $as_me.
10285 # Run this file to recreate the current configuration.
10286 # Compiler output produced by configure, useful for debugging
10287 # configure, is in config.log if it exists.
10290 ac_cs_recheck=false
10292 SHELL=\${CONFIG_SHELL-$SHELL}
10295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10296 ## --------------------- ##
10297 ## M4sh Initialization. ##
10298 ## --------------------- ##
10300 # Be more Bourne compatible
10301 DUALCASE=1; export DUALCASE # for MKS sh
10302 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10305 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10306 # is contrary to our usage. Disable this feature.
10307 alias -g '${1+"$@"}'='"$@"'
10308 setopt NO_GLOB_SUBST
10310 case `(set -o) 2>/dev/null` in
10311 *posix*) set -o posix ;;
10320 # Avoid depending upon Character Ranges.
10321 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10322 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10323 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10324 as_cr_digits='0123456789'
10325 as_cr_alnum=$as_cr_Letters$as_cr_digits
10330 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10331 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10332 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10333 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10334 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10335 as_echo='printf %s\n'
10336 as_echo_n='printf %s'
10338 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10339 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10340 as_echo_n='/usr/ucb/echo -n'
10342 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10343 as_echo_n_body='eval
10347 expr "X$arg" : "X\\(.*\\)$as_nl";
10348 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10350 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10352 export as_echo_n_body
10353 as_echo_n='sh -c $as_echo_n_body as_echo'
10355 export as_echo_body
10356 as_echo='sh -c $as_echo_body as_echo'
10359 # The user is always right.
10360 if test "${PATH_SEPARATOR+set}" != set; then
10362 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10363 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10368 # Support unset when possible.
10369 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10377 # We need space, tab and new line, in precisely that order. Quoting is
10378 # there to prevent editors from complaining about space-tab.
10379 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10380 # splitting by setting IFS to empty value.)
10383 # Find who we are. Look in the path if we contain no directory separator.
10385 *[\\/]* ) as_myself=$0 ;;
10386 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387 for as_dir in $PATH
10390 test -z "$as_dir" && as_dir=.
10391 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10397 # We did not find ourselves, most probably we were run as `sh COMMAND'
10398 # in which case we are not to be found in the path.
10399 if test "x$as_myself" = x; then
10402 if test ! -f "$as_myself"; then
10403 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10404 { (exit 1); exit 1; }
10407 # Work around bugs in pre-3.0 UWIN ksh.
10408 for as_var in ENV MAIL MAILPATH
10409 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10421 # Required to use basename.
10422 if expr a : '\(a\)' >/dev/null 2>&1 &&
10423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10430 as_basename=basename
10436 # Name of the executable.
10437 as_me=`$as_basename -- "$0" ||
10438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10439 X"$0" : 'X\(//\)$' \| \
10440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10442 sed '/^.*\/\([^/][^/]*\)\/*$/{
10461 as_lineno_1=$LINENO
10462 as_lineno_2=$LINENO
10463 test "x$as_lineno_1" != "x$as_lineno_2" &&
10464 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10466 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10467 # uniformly replaced by the line number. The first 'sed' inserts a
10468 # line-number line after each line using $LINENO; the second 'sed'
10469 # does the real work. The second script uses 'N' to pair each
10470 # line-number line with the line containing $LINENO, and appends
10471 # trailing '-' during substitution so that $LINENO is not a special
10472 # case at line end.
10473 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10474 # scripts with optimization help from Paolo Bonzini. Blame Lee
10475 # E. McMahon (1931-1989) for sed's syntax. :-)
10487 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10490 ' >$as_me.lineno &&
10491 chmod +x "$as_me.lineno" ||
10492 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10493 { (exit 1); exit 1; }; }
10495 # Don't try to exec as it changes $[0], causing all sort of problems
10496 # (the dirname of $[0] is not the place where we might find the
10497 # original and so on. Autoconf is especially sensitive to this).
10498 . "./$as_me.lineno"
10499 # Exit status is that of the last command.
10504 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10510 ECHO_C= ECHO_N= ECHO_T=
10511 case `echo -n x` in
10513 case `echo 'x\c'` in
10514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10520 if expr a : '\(a\)' >/dev/null 2>&1 &&
10521 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10527 rm -f conf$$ conf$$.exe conf$$.file
10528 if test -d conf$$.dir; then
10529 rm -f conf$$.dir/conf$$.file
10532 mkdir conf$$.dir 2>/dev/null
10534 if (echo >conf$$.file) 2>/dev/null; then
10535 if ln -s conf$$.file conf$$ 2>/dev/null; then
10537 # ... but there are two gotchas:
10538 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10539 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10540 # In both cases, we have to default to `cp -p'.
10541 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10543 elif ln conf$$.file conf$$ 2>/dev/null; then
10551 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10552 rmdir conf$$.dir 2>/dev/null
10554 if mkdir -p . 2>/dev/null; then
10557 test -d ./-p && rmdir ./-p
10561 if test -x / >/dev/null 2>&1; then
10562 as_test_x='test -x'
10564 if ls -dL / >/dev/null 2>&1; then
10571 if test -d "$1"; then
10577 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10578 ???[sx]*):;;*)false;;esac;fi
10582 as_executable_p=$as_test_x
10584 # Sed expression to map a string onto a valid CPP name.
10585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10587 # Sed expression to map a string onto a valid variable name.
10588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10593 # Save the log message, to keep $[0] and so on meaningful, and to
10594 # report actual input values of CONFIG_FILES etc. instead of their
10595 # values after options handling.
10597 This file was extended by $as_me, which was
10598 generated by GNU Autoconf 2.63. Invocation command line was
10600 CONFIG_FILES = $CONFIG_FILES
10601 CONFIG_HEADERS = $CONFIG_HEADERS
10602 CONFIG_LINKS = $CONFIG_LINKS
10603 CONFIG_COMMANDS = $CONFIG_COMMANDS
10606 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10611 case $ac_config_files in *"
10612 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10615 case $ac_config_headers in *"
10616 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10621 # Files that config.status was made for.
10622 config_files="$ac_config_files"
10623 config_headers="$ac_config_headers"
10627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10629 \`$as_me' instantiates files from templates according to the
10630 current configuration.
10632 Usage: $0 [OPTION]... [FILE]...
10634 -h, --help print this help, then exit
10635 -V, --version print version number and configuration settings, then exit
10636 -q, --quiet, --silent
10637 do not print progress messages
10638 -d, --debug don't remove temporary files
10639 --recheck update $as_me by reconfiguring in the same conditions
10640 --file=FILE[:TEMPLATE]
10641 instantiate the configuration file FILE
10642 --header=FILE[:TEMPLATE]
10643 instantiate the configuration header FILE
10645 Configuration files:
10648 Configuration headers:
10651 Report bugs to <bug-autoconf@gnu.org>."
10654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10657 configured by $0, generated by GNU Autoconf 2.63,
10658 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10660 Copyright (C) 2008 Free Software Foundation, Inc.
10661 This config.status script is free software; the Free Software Foundation
10662 gives unlimited permission to copy, distribute and modify it."
10667 test -n "\$AWK" || AWK=awk
10670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10671 # The default lists apply if the user does not specify any file.
10677 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10678 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10689 # Handling of the options.
10690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10692 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10693 $as_echo "$ac_cs_version"; exit ;;
10694 --debug | --debu | --deb | --de | --d | -d )
10696 --file | --fil | --fi | --f )
10699 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10701 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10702 ac_need_defaults=false;;
10703 --header | --heade | --head | --hea )
10706 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10708 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10709 ac_need_defaults=false;;
10711 # Conflict between --help and --header
10712 { $as_echo "$as_me: error: ambiguous option: $1
10713 Try \`$0 --help' for more information." >&2
10714 { (exit 1); exit 1; }; };;
10715 --help | --hel | -h )
10716 $as_echo "$ac_cs_usage"; exit ;;
10717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10718 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10721 # This is an error.
10722 -*) { $as_echo "$as_me: error: unrecognized option: $1
10723 Try \`$0 --help' for more information." >&2
10724 { (exit 1); exit 1; }; } ;;
10726 *) ac_config_targets="$ac_config_targets $1"
10727 ac_need_defaults=false ;;
10733 ac_configure_extra_args=
10735 if $ac_cs_silent; then
10737 ac_configure_extra_args="$ac_configure_extra_args --silent"
10741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10742 if \$ac_cs_recheck; then
10743 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10745 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10746 CONFIG_SHELL='$SHELL'
10747 export CONFIG_SHELL
10752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10756 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10757 ## Running $as_me. ##
10763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10768 # Handling of arguments.
10769 for ac_config_target in $ac_config_targets
10771 case $ac_config_target in
10772 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10773 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10775 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10776 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10777 { (exit 1); exit 1; }; };;
10782 # If the user did not use the arguments to specify the items to instantiate,
10783 # then the envvar interface is used. Set only those that are not.
10784 # We use the long form for the default assignment because of an extremely
10785 # bizarre bug on SunOS 4.1.3.
10786 if $ac_need_defaults; then
10787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10788 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10791 # Have a temporary directory for convenience. Make it in the build tree
10792 # simply because there is no reason against having it here, and in addition,
10793 # creating and moving files from /tmp can sometimes cause problems.
10794 # Hook for its removal unless debugging.
10795 # Note that there is a small window in which the directory will not be cleaned:
10796 # after its creation but before its name has been assigned to `$tmp'.
10800 trap 'exit_status=$?
10801 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10803 trap '{ (exit 1); exit 1; }' 1 2 13 15
10805 # Create a (secure) tmp directory for tmp files.
10808 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10809 test -n "$tmp" && test -d "$tmp"
10812 tmp=./conf$$-$RANDOM
10813 (umask 077 && mkdir "$tmp")
10816 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10817 { (exit 1); exit 1; }
10820 # Set up the scripts for CONFIG_FILES section.
10821 # No need to generate them if there are no CONFIG_FILES.
10822 # This happens for instance with `./config.status config.h'.
10823 if test -n "$CONFIG_FILES"; then
10827 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10828 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10831 ac_cs_awk_cr=$ac_cr
10834 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10839 echo "cat >conf$$subs.awk <<_ACEOF" &&
10840 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10842 } >conf$$subs.sh ||
10843 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10844 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10845 { (exit 1); exit 1; }; }
10846 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10848 for ac_last_try in false false false false false :; do
10849 . ./conf$$subs.sh ||
10850 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10851 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10852 { (exit 1); exit 1; }; }
10854 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10855 if test $ac_delim_n = $ac_delim_num; then
10857 elif $ac_last_try; then
10858 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10859 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10860 { (exit 1); exit 1; }; }
10862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10865 rm -f conf$$subs.sh
10867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10868 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10872 s/^/S["/; s/!.*/"]=/
10882 s/\(.\{148\}\).*/\1/
10884 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10896 s/\(.\{148\}\).*/\1/
10898 s/["\\]/\\&/g; s/^/"/; s/$/"/
10902 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10907 ' <conf$$subs.awk | sed '
10912 ' >>$CONFIG_STATUS || ac_write_fail=1
10913 rm -f conf$$subs.awk
10914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10916 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10917 for (key in S) S_is_set[key] = 1
10923 nfields = split(line, field, "@")
10925 len = length(field[1])
10926 for (i = 2; i < nfields; i++) {
10928 keylen = length(key)
10929 if (S_is_set[key]) {
10931 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10932 len += length(value) + length(field[++i])
10943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10944 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10945 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10948 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10949 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10950 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10951 { (exit 1); exit 1; }; }
10954 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10955 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10956 # trailing colons and then remove the whole line if VPATH becomes empty
10957 # (actually we leave an empty line to preserve line numbers).
10958 if test "x$srcdir" = x.; then
10959 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10960 s/:*\$(srcdir):*/:/
10961 s/:*\${srcdir}:*/:/
10963 s/^\([^=]*=[ ]*\):*/\1/
10969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10970 fi # test -n "$CONFIG_FILES"
10972 # Set up the scripts for CONFIG_HEADERS section.
10973 # No need to generate them if there are no CONFIG_HEADERS.
10974 # This happens for instance with `./config.status Makefile'.
10975 if test -n "$CONFIG_HEADERS"; then
10976 cat >"$tmp/defines.awk" <<\_ACAWK ||
10980 # Transform confdefs.h into an awk script `defines.awk', embedded as
10981 # here-document in config.status, that substitutes the proper values into
10982 # config.h.in to produce config.h.
10984 # Create a delimiter string that does not exist in confdefs.h, to ease
10985 # handling of long lines.
10987 for ac_last_try in false false :; do
10988 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10989 if test -z "$ac_t"; then
10991 elif $ac_last_try; then
10992 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10993 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10994 { (exit 1); exit 1; }; }
10996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11000 # For the awk script, D is an array of macro values keyed by name,
11001 # likewise P contains macro parameters if any. Preserve backslash
11002 # newline sequences.
11004 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11006 s/.\{148\}/&'"$ac_delim"'/g
11009 s/^[ ]*#[ ]*define[ ][ ]*/ /
11016 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11018 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11022 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11023 D["\1"]=" \3\\\\\\n"\\/p
11025 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11030 s/.\{148\}/&'"$ac_delim"'/g
11035 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11038 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11040 ' <confdefs.h | sed '
11041 s/'"$ac_delim"'/"\\\
11042 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11045 for (key in D) D_is_set[key] = 1
11048 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11050 split(line, arg, " ")
11051 if (arg[1] == "#") {
11055 defundef = substr(arg[1], 2)
11058 split(mac1, mac2, "(") #)
11060 prefix = substr(line, 1, index(line, defundef) - 1)
11061 if (D_is_set[macro]) {
11062 # Preserve the white space surrounding the "#".
11063 print prefix "define", macro P[macro] D[macro]
11066 # Replace #undef with comments. This is necessary, for example,
11067 # in the case of _POSIX_SOURCE, which is predefined and required
11068 # on some systems where configure will not decide to define it.
11069 if (defundef == "undef") {
11070 print "/*", prefix defundef, macro, "*/"
11078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11079 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11080 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11081 { (exit 1); exit 1; }; }
11082 fi # test -n "$CONFIG_HEADERS"
11085 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11090 :[FHLC]) ac_mode=$ac_tag; continue;;
11092 case $ac_mode$ac_tag in
11094 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11095 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11096 { (exit 1); exit 1; }; };;
11097 :[FH]-) ac_tag=-:-;;
11098 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11115 -) ac_f="$tmp/stdin";;
11116 *) # Look for the file first in the build tree, then in the source tree
11117 # (if the path is not absolute). The absolute path cannot be DOS-style,
11118 # because $ac_f cannot contain `:'.
11122 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11124 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11125 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11126 { (exit 1); exit 1; }; };;
11128 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11129 ac_file_inputs="$ac_file_inputs '$ac_f'"
11132 # Let's still pretend it is `configure' which instantiates (i.e., don't
11133 # use $as_me), people would be surprised to read:
11134 # /* config.h. Generated by config.status. */
11135 configure_input='Generated from '`
11136 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11138 if test x"$ac_file" != x-; then
11139 configure_input="$ac_file. $configure_input"
11140 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11141 $as_echo "$as_me: creating $ac_file" >&6;}
11143 # Neutralize special characters interpreted by sed in replacement strings.
11144 case $configure_input in #(
11145 *\&* | *\|* | *\\* )
11146 ac_sed_conf_input=`$as_echo "$configure_input" |
11147 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11148 *) ac_sed_conf_input=$configure_input;;
11152 *:-:* | *:-) cat >"$tmp/stdin" \
11153 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11154 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11155 { (exit 1); exit 1; }; } ;;
11160 ac_dir=`$as_dirname -- "$ac_file" ||
11161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11162 X"$ac_file" : 'X\(//\)[^/]' \| \
11163 X"$ac_file" : 'X\(//\)$' \| \
11164 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11165 $as_echo X"$ac_file" |
11166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11170 /^X\(\/\/\)[^/].*/{
11185 -*) as_dir=./$as_dir;;
11187 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11191 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11192 *) as_qdir=$as_dir;;
11194 as_dirs="'$as_qdir' $as_dirs"
11195 as_dir=`$as_dirname -- "$as_dir" ||
11196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11197 X"$as_dir" : 'X\(//\)[^/]' \| \
11198 X"$as_dir" : 'X\(//\)$' \| \
11199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11200 $as_echo X"$as_dir" |
11201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11205 /^X\(\/\/\)[^/].*/{
11218 test -d "$as_dir" && break
11220 test -z "$as_dirs" || eval "mkdir $as_dirs"
11221 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11222 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11223 { (exit 1); exit 1; }; }; }
11227 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11229 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11230 # A ".." for each directory in $ac_dir_suffix.
11231 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11232 case $ac_top_builddir_sub in
11233 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11234 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11237 ac_abs_top_builddir=$ac_pwd
11238 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11239 # for backward compatibility:
11240 ac_top_builddir=$ac_top_build_prefix
11243 .) # We are building in place.
11245 ac_top_srcdir=$ac_top_builddir_sub
11246 ac_abs_top_srcdir=$ac_pwd ;;
11247 [\\/]* | ?:[\\/]* ) # Absolute name.
11248 ac_srcdir=$srcdir$ac_dir_suffix;
11249 ac_top_srcdir=$srcdir
11250 ac_abs_top_srcdir=$srcdir ;;
11251 *) # Relative name.
11252 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11253 ac_top_srcdir=$ac_top_build_prefix$srcdir
11254 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11256 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11266 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11267 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11272 # If the template does not know about datarootdir, expand it.
11273 # FIXME: This hack should be removed a few years after 2.60.
11274 ac_datarootdir_hack=; ac_datarootdir_seen=
11287 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11288 *datarootdir*) ac_datarootdir_seen=yes;;
11289 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11290 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11291 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11294 ac_datarootdir_hack='
11295 s&@datadir@&$datadir&g
11296 s&@docdir@&$docdir&g
11297 s&@infodir@&$infodir&g
11298 s&@localedir@&$localedir&g
11299 s&@mandir@&$mandir&g
11300 s&\\\${datarootdir}&$datarootdir&g' ;;
11304 # Neutralize VPATH when `$srcdir' = `.'.
11305 # Shell code in configure.ac might set extrasub.
11306 # FIXME: do we really want to maintain this feature?
11307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11308 ac_sed_extra="$ac_vpsub
11311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11314 s|@configure_input@|$ac_sed_conf_input|;t t
11315 s&@top_builddir@&$ac_top_builddir_sub&;t t
11316 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11317 s&@srcdir@&$ac_srcdir&;t t
11318 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11319 s&@top_srcdir@&$ac_top_srcdir&;t t
11320 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11321 s&@builddir@&$ac_builddir&;t t
11322 s&@abs_builddir@&$ac_abs_builddir&;t t
11323 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11324 s&@INSTALL@&$ac_INSTALL&;t t
11325 $ac_datarootdir_hack
11327 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11328 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11329 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11330 { (exit 1); exit 1; }; }
11332 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11333 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11334 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11335 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11336 which seems to be undefined. Please make sure it is defined." >&5
11337 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11338 which seems to be undefined. Please make sure it is defined." >&2;}
11342 -) cat "$tmp/out" && rm -f "$tmp/out";;
11343 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11345 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11346 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11347 { (exit 1); exit 1; }; }
11353 if test x"$ac_file" != x-; then
11355 $as_echo "/* $configure_input */" \
11356 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11357 } >"$tmp/config.h" \
11358 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11359 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11360 { (exit 1); exit 1; }; }
11361 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11362 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11363 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11366 mv "$tmp/config.h" "$ac_file" \
11367 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11368 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11369 { (exit 1); exit 1; }; }
11372 $as_echo "/* $configure_input */" \
11373 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11374 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11375 $as_echo "$as_me: error: could not create -" >&2;}
11376 { (exit 1); exit 1; }; }
11386 { (exit 0); exit 0; }
11388 chmod +x $CONFIG_STATUS
11389 ac_clean_files=$ac_clean_files_save
11391 test $ac_write_fail = 0 ||
11392 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11393 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11394 { (exit 1); exit 1; }; }
11397 # configure is writing to config.log, and then calls config.status.
11398 # config.status does its own redirection, appending to config.log.
11399 # Unfortunately, on DOS this fails, as config.log is still kept open
11400 # by configure, so config.status won't be able to write to it; its
11401 # output is simply discarded. So we exec the FD to /dev/null,
11402 # effectively closing config.log, so it can be properly (re)opened and
11403 # appended to by config.status. When coming back to configure, we
11404 # need to make the FD available again.
11405 if test "$no_create" != yes; then
11407 ac_config_status_args=
11408 test "$silent" = yes &&
11409 ac_config_status_args="$ac_config_status_args --quiet"
11411 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11413 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11414 # would make configure fail if this is the last instruction.
11415 $ac_cs_success || { (exit 1); exit 1; }
11417 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11418 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11419 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11425 # On development trees, create snapshots of config.status
11427 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11428 if test "x${MINGW}" = "xyes"; then
11429 echo cp config.status config.status.win32
11430 cp config.status config.status.win32
11432 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
11433 echo cp config.status config.status.linux
11434 cp config.status config.status.linux
11436 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
11437 echo cp config.status config.status.debug
11438 cp config.status config.status.debug
11440 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
11441 echo cp config.status config.status.optimize
11442 cp config.status config.status.optimize