2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
666 INSTALL_STRIP_PROGRAM
675 MAINTAINER_MODE_FALSE
715 am__fastdepCC_FOR_BUILD_TRUE
716 am__fastdepCC_FOR_BUILD_FALSE
735 am__fastdepOBJC_FALSE
754 GLIB_FOR_BUILD_CFLAGS
829 ac_precious_vars='build_alias
854 GLIB_FOR_BUILD_CFLAGS
870 # Initialize some variables set by options.
872 ac_init_version=false
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
882 program_transform_name=s,x,x,
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE}'
907 infodir='${datarootdir}/info'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\$ac_option
928 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 # Accept the important Cygnus configure options, so we can diagnose typos.
934 case $ac_dashdash$ac_option in
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
956 cache_file=config.cache ;;
958 -datadir | --datadir | --datadi | --datad)
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
970 -disable-* | --disable-*)
971 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
974 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
975 { (exit 1); exit 1; }; }
976 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
977 eval enable_$ac_feature=no ;;
979 -docdir | --docdir | --docdi | --doc | --do)
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 -enable-* | --enable-*)
990 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
993 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
994 { (exit 1); exit 1; }; }
995 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
996 eval enable_$ac_feature=\$ac_optarg ;;
998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000 | --exec | --exe | --ex)
1001 ac_prev=exec_prefix ;;
1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004 | --exec=* | --exe=* | --ex=*)
1005 exec_prefix=$ac_optarg ;;
1007 -gas | --gas | --ga | --g)
1008 # Obsolete; use --with-gas.
1011 -help | --help | --hel | --he | -h)
1012 ac_init_help=long ;;
1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014 ac_init_help=recursive ;;
1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016 ac_init_help=short ;;
1018 -host | --host | --hos | --ho)
1019 ac_prev=host_alias ;;
1020 -host=* | --host=* | --hos=* | --ho=*)
1021 host_alias=$ac_optarg ;;
1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 htmldir=$ac_optarg ;;
1029 -includedir | --includedir | --includedi | --included | --include \
1030 | --includ | --inclu | --incl | --inc)
1031 ac_prev=includedir ;;
1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033 | --includ=* | --inclu=* | --incl=* | --inc=*)
1034 includedir=$ac_optarg ;;
1036 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039 infodir=$ac_optarg ;;
1041 -libdir | --libdir | --libdi | --libd)
1043 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044 libdir=$ac_optarg ;;
1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047 | --libexe | --libex | --libe)
1048 ac_prev=libexecdir ;;
1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050 | --libexe=* | --libex=* | --libe=*)
1051 libexecdir=$ac_optarg ;;
1053 -localedir | --localedir | --localedi | --localed | --locale)
1054 ac_prev=localedir ;;
1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056 localedir=$ac_optarg ;;
1058 -localstatedir | --localstatedir | --localstatedi | --localstated \
1059 | --localstate | --localstat | --localsta | --localst | --locals)
1060 ac_prev=localstatedir ;;
1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063 localstatedir=$ac_optarg ;;
1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068 mandir=$ac_optarg ;;
1070 -nfp | --nfp | --nf)
1071 # Obsolete; use --without-fp.
1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 | --no-cr | --no-c | -n)
1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084 | --oldin | --oldi | --old | --ol | --o)
1085 ac_prev=oldincludedir ;;
1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089 oldincludedir=$ac_optarg ;;
1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094 prefix=$ac_optarg ;;
1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097 | --program-pre | --program-pr | --program-p)
1098 ac_prev=program_prefix ;;
1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101 program_prefix=$ac_optarg ;;
1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104 | --program-suf | --program-su | --program-s)
1105 ac_prev=program_suffix ;;
1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108 program_suffix=$ac_optarg ;;
1110 -program-transform-name | --program-transform-name \
1111 | --program-transform-nam | --program-transform-na \
1112 | --program-transform-n | --program-transform- \
1113 | --program-transform | --program-transfor \
1114 | --program-transfo | --program-transf \
1115 | --program-trans | --program-tran \
1116 | --progr-tra | --program-tr | --program-t)
1117 ac_prev=program_transform_name ;;
1118 -program-transform-name=* | --program-transform-name=* \
1119 | --program-transform-nam=* | --program-transform-na=* \
1120 | --program-transform-n=* | --program-transform-=* \
1121 | --program-transform=* | --program-transfor=* \
1122 | --program-transfo=* | --program-transf=* \
1123 | --program-trans=* | --program-tran=* \
1124 | --progr-tra=* | --program-tr=* | --program-t=*)
1125 program_transform_name=$ac_optarg ;;
1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130 pdfdir=$ac_optarg ;;
1132 -psdir | --psdir | --psdi | --psd | --ps)
1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 sbindir=$ac_optarg ;;
1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149 | --sharedst | --shareds | --shared | --share | --shar \
1151 ac_prev=sharedstatedir ;;
1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 sharedstatedir=$ac_optarg ;;
1158 -site | --site | --sit)
1160 -site=* | --site=* | --sit=*)
1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166 srcdir=$ac_optarg ;;
1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169 | --syscon | --sysco | --sysc | --sys | --sy)
1170 ac_prev=sysconfdir ;;
1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173 sysconfdir=$ac_optarg ;;
1175 -target | --target | --targe | --targ | --tar | --ta | --t)
1176 ac_prev=target_alias ;;
1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178 target_alias=$ac_optarg ;;
1180 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 -version | --version | --versio | --versi | --vers | -V)
1184 ac_init_version=: ;;
1187 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid package name: $ac_package" >&2
1191 { (exit 1); exit 1; }; }
1192 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1193 eval with_$ac_package=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 { echo "$as_me: error: invalid package name: $ac_package" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1202 eval with_$ac_package=no ;;
1205 # Obsolete; use --with-x.
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1222 -*) { echo "$as_me: error: unrecognized option: $ac_option
1223 Try \`$0 --help' for more information." >&2
1224 { (exit 1); exit 1; }; }
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1232 { (exit 1); exit 1; }; }
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 { echo "$as_me: error: missing argument to $ac_option" >&2
1250 { (exit 1); exit 1; }; }
1253 # Be sure to have absolute directory names.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
1259 eval ac_val=\$$ac_var
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1265 { (exit 1); exit 1; }; }
1268 # There might be people who depend on the old broken behavior: `$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1273 target=$target_alias
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x; then
1277 if test "x$build_alias" = x; then
1278 cross_compiling=maybe
1279 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1280 If a cross compiler is detected then cross compile mode will be used." >&2
1281 elif test "x$build_alias" != "x$host_alias"; then
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289 test "$silent" = yes && exec 6>/dev/null
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 { echo "$as_me: error: Working directory cannot be determined" >&2
1296 { (exit 1); exit 1; }; }
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 { echo "$as_me: error: pwd does not report name of working directory" >&2
1299 { (exit 1); exit 1; }; }
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$0" ||
1307 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$0" : 'X\(//\)[^/]' \| \
1309 X"$0" : 'X\(//\)$' \| \
1310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1334 ac_srcdir_defaulted=no
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1339 { (exit 1); exit 1; }; }
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1344 { (exit 1); exit 1; }; }
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 # Report the --help message.
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1370 \`configure' configures this package to adapt to many kinds of systems.
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1377 Defaults for the options are specified in brackets.
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1401 For better control, use the options below.
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433 --build=BUILD configure for building on BUILD [guessed]
1434 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 if test -n "$ac_init_help"; then
1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1445 --enable-maintainer-mode enable make rules and dependencies not useful
1446 (and sometimes confusing) to the casual installer
1447 --disable-dependency-tracking speeds up one-time build
1448 --enable-dependency-tracking do not reject slow dependency extractors
1449 --enable-strict-warn Enable strict compilation warnings
1450 --disable-translator Disable the SH4 translator (Enabled by default)
1451 --disable-optimized Disable compile-time optimizations (Enabled by
1453 --enable-shared Build drivers as shared libraries (Enabled if
1455 --enable-profiled Enable profiling build
1456 --enable-trace Enable generation of IO traces (warning: hurts
1458 --enable-watch Enable watchpoints in the debugger (warning: hurts
1460 --enable-sh4stats Enable statistics on executed sh4 instructions
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-android=SDK Specify the location of the Android SDK
1466 --with-android-ndk=NDK Specify the location of the Android NDK
1467 --with-android-version Specify target Android SDK version
1468 --with-osmesa Build with the osmesa GL library (software
1470 --with-gtk Build with the GTK UI. Default on X11 systems
1471 --with-esd Build with support for the ESounD audio system
1472 --with-pulse Build with support for the PulseAudio audio system
1473 --with-sdl Build with support for SDL audio
1475 Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1484 OBJC Objective C compiler command
1485 OBJCFLAGS Objective C compiler flags
1486 CCAS assembler compiler command (defaults to CC)
1487 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1488 PKG_CONFIG path to pkg-config utility
1490 C compiler flags for LIBPNG, overriding pkg-config
1491 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1492 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1493 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1494 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1495 GTK_LIBS linker flags for GTK, overriding pkg-config
1496 GLIB_FOR_BUILD_CFLAGS
1497 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1499 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1501 C compiler flags for LIBISOFS, overriding pkg-config
1503 linker flags for LIBISOFS, overriding pkg-config
1505 C compiler flags for LIBGL, overriding pkg-config
1506 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1507 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1508 SDL_LIBS linker flags for SDL, overriding pkg-config
1510 C compiler flags for PULSE, overriding pkg-config
1511 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1513 C compiler flags for ESOUND, overriding pkg-config
1514 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1515 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1516 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" || continue
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1548 .) # We are building in place.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1572 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1582 generated by GNU Autoconf 2.61
1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1585 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1591 cat >config.log <<_ACEOF
1592 This file contains any messages produced by compilers while
1593 running configure, to aid debugging if configure makes a mistake.
1595 It was created by $as_me, which was
1596 generated by GNU Autoconf 2.61. Invocation command line was
1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1617 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1618 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1621 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1622 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1623 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 test -z "$as_dir" && as_dir=.
1632 echo "PATH: $as_dir"
1648 # Keep a trace of the command line.
1649 # Strip out --no-create and --no-recursion so they do not pile up.
1650 # Strip out --silent because we don't want to record it for future runs.
1651 # Also quote any args containing shell meta-characters.
1652 # Make two passes to allow for proper duplicate-argument suppression.
1656 ac_must_keep_next=false
1662 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664 | -silent | --silent | --silen | --sile | --sil)
1667 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1672 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673 if test $ac_must_keep_next = true; then
1674 ac_must_keep_next=false # Got value, back to normal.
1677 *=* | --config-cache | -C | -disable-* | --disable-* \
1678 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680 | -with-* | --with-* | -without-* | --without-* | --x)
1681 case "$ac_configure_args0 " in
1682 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685 -* ) ac_must_keep_next=true ;;
1688 ac_configure_args="$ac_configure_args '$ac_arg'"
1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1696 # When interrupted or exit'd, cleanup temporary files, and complete
1697 # config.log. We remove comments because anyway the quotes in there
1698 # would cause problems or look ugly.
1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701 trap 'exit_status=$?
1702 # Save into config.log some information that might help in debugging.
1707 ## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##
1712 # The following way of writing the cache mishandles newlines in values,
1714 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715 eval ac_val=\$$ac_var
1719 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723 _ | IFS | as_nl) ;; #(
1724 *) $as_unset $ac_var ;;
1729 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730 *${as_nl}ac_space=\ *)
1732 "s/'\''/'\''\\\\'\'''\''/g;
1733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1744 ## ----------------- ##
1745 ## Output variables. ##
1746 ## ----------------- ##
1749 for ac_var in $ac_subst_vars
1751 eval ac_val=\$$ac_var
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 echo "$ac_var='\''$ac_val'\''"
1759 if test -n "$ac_subst_files"; then
1761 ## ------------------- ##
1762 ## File substitutions. ##
1763 ## ------------------- ##
1766 for ac_var in $ac_subst_files
1768 eval ac_val=\$$ac_var
1770 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 echo "$ac_var='\''$ac_val'\''"
1777 if test -s confdefs.h; then
1787 test "$ac_signal" != 0 &&
1788 echo "$as_me: caught signal $ac_signal"
1789 echo "$as_me: exit $exit_status"
1791 rm -f core *.core core.conftest.* &&
1792 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795 for ac_signal in 1 2 13 15; do
1796 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1800 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1801 rm -f -r conftest* confdefs.h
1803 # Predefined preprocessor variables.
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_NAME "$PACKAGE_NAME"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_STRING "$PACKAGE_STRING"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1830 # Let the site file select an alternate cache file if it wants to.
1831 # Prefer explicitly selected file to automatically selected ones.
1832 if test -n "$CONFIG_SITE"; then
1833 set x "$CONFIG_SITE"
1834 elif test "x$prefix" != xNONE; then
1835 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1837 set x "$ac_default_prefix/share/config.site" \
1838 "$ac_default_prefix/etc/config.site"
1843 if test -r "$ac_site_file"; then
1844 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845 echo "$as_me: loading site script $ac_site_file" >&6;}
1846 sed 's/^/| /' "$ac_site_file" >&5
1851 if test -r "$cache_file"; then
1852 # Some versions of bash will fail to source /dev/null (special
1853 # files actually), so we avoid doing that.
1854 if test -f "$cache_file"; then
1855 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856 echo "$as_me: loading cache $cache_file" >&6;}
1858 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859 *) . "./$cache_file";;
1863 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864 echo "$as_me: creating cache $cache_file" >&6;}
1868 # Check that the precious variables saved in the cache have kept the same
1870 ac_cache_corrupted=false
1871 for ac_var in $ac_precious_vars; do
1872 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873 eval ac_new_set=\$ac_env_${ac_var}_set
1874 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875 eval ac_new_val=\$ac_env_${ac_var}_value
1876 case $ac_old_set,$ac_new_set in
1878 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880 ac_cache_corrupted=: ;;
1882 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1887 if test "x$ac_old_val" != "x$ac_new_val"; then
1888 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1891 echo "$as_me: former value: $ac_old_val" >&2;}
1892 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1893 echo "$as_me: current value: $ac_new_val" >&2;}
1894 ac_cache_corrupted=:
1897 # Pass precious variables to config.status.
1898 if test "$ac_new_set" = set; then
1900 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1901 *) ac_arg=$ac_var=$ac_new_val ;;
1903 case " $ac_configure_args " in
1904 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1905 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1909 if $ac_cache_corrupted; then
1910 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914 { (exit 1); exit 1; }; }
1934 ac_cpp='$CPP $CPPFLAGS'
1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940 am__api_version="1.9"
1942 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1943 if test -f "$ac_dir/install-sh"; then
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 elif test -f "$ac_dir/install.sh"; then
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 elif test -f "$ac_dir/shtool"; then
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 if test -z "$ac_aux_dir"; then
1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1960 { (exit 1); exit 1; }; }
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1972 # Find a good install program. We prefer a C program (faster),
1973 # so one script is as good as another. But avoid the broken or
1974 # incompatible versions:
1975 # SysV /etc/install, /usr/sbin/install
1976 # SunOS /usr/etc/install
1977 # IRIX /sbin/install
1979 # AmigaOS /C/install, which installs bootblocks on floppy discs
1980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1983 # OS/2's system install, which has a completely different semantic
1984 # ./install, which can be erroneously created by make from ./install.sh.
1985 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1987 if test -z "$INSTALL"; then
1988 if test "${ac_cv_path_install+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 # Account for people who put trailing slashes in PATH elements.
1998 ./ | .// | /cC/* | \
1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 # OSF1 and SCO ODT 3.0 have their own names for install.
2004 # Don't use installbsd from OSF since it installs stuff as root
2006 for ac_prog in ginstall scoinst install; do
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2009 if test $ac_prog = install &&
2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # AIX install. It has an incompatible calling convention.
2013 elif test $ac_prog = install &&
2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # program-specific install script used by HP pwplus--don't use.
2018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2031 if test "${ac_cv_path_install+set}" = set; then
2032 INSTALL=$ac_cv_path_install
2034 # As a last resort, use the slow shell script. Don't cache a
2035 # value for INSTALL within a source directory, because that will
2036 # break other packages using the cache if that directory is
2037 # removed, or if the value is a relative name.
2038 INSTALL=$ac_install_sh
2041 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2042 echo "${ECHO_T}$INSTALL" >&6; }
2044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2045 # It thinks the first close brace ends the variable substitution.
2046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2053 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2056 echo timestamp > conftest.file
2057 # Do `set' in a subshell so we don't clobber the current shell's
2058 # arguments. Must try -L first in case configure is actually a
2059 # symlink; some systems play weird games with the mod time of symlinks
2060 # (eg FreeBSD returns the mod time of the symlink's containing
2063 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2064 if test "$*" = "X"; then
2066 set X `ls -t $srcdir/configure conftest.file`
2069 if test "$*" != "X $srcdir/configure conftest.file" \
2070 && test "$*" != "X conftest.file $srcdir/configure"; then
2072 # If neither matched, then we have a broken ls. This can happen
2073 # if, for instance, CONFIG_SHELL is bash and it inherits a
2074 # broken ls alias from the environment. This has actually
2075 # happened. Such a system could not be considered "sane".
2076 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2077 alias in your environment" >&5
2078 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" >&2;}
2080 { (exit 1); exit 1; }; }
2083 test "$2" = conftest.file
2089 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2090 Check your system clock" >&5
2091 echo "$as_me: error: newly created file is older than distributed files!
2092 Check your system clock" >&2;}
2093 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: yes" >&5
2096 echo "${ECHO_T}yes" >&6; }
2097 test "$program_prefix" != NONE &&
2098 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2099 # Use a double $ so make ignores it.
2100 test "$program_suffix" != NONE &&
2101 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2102 # Double any \ or $. echo might interpret backslashes.
2103 # By default was `s,x,x', remove it if useless.
2104 cat <<\_ACEOF >conftest.sed
2105 s/[\\$]/&&/g;s/;s,x,x,$//
2107 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2110 # expand $ac_aux_dir to an absolute path
2111 am_aux_dir=`cd $ac_aux_dir && pwd`
2113 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2114 # Use eval to expand $SHELL
2115 if eval "$MISSING --run true"; then
2116 am_missing_run="$MISSING --run "
2119 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2120 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2123 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2124 # We used to keeping the `.' as first argument, in order to
2125 # allow $(mkdir_p) to be used without argument. As in
2126 # $(mkdir_p) $(somedir)
2127 # where $(somedir) is conditionally defined. However this is wrong
2129 # 1. if the package is installed by a user who cannot write `.'
2130 # make install will fail,
2131 # 2. the above comment should most certainly read
2132 # $(mkdir_p) $(DESTDIR)$(somedir)
2133 # so it does not work when $(somedir) is undefined and
2134 # $(DESTDIR) is not.
2135 # To support the latter case, we have to write
2136 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2137 # so the `.' trick is pointless.
2138 mkdir_p='mkdir -p --'
2140 # On NextStep and OpenStep, the `mkdir' command does not
2141 # recognize any option. It will interpret all options as
2142 # directories to create, and then abort because `.' already
2144 for d in ./-p ./--version;
2146 test -d $d && rmdir $d
2148 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2149 if test -f "$ac_aux_dir/mkinstalldirs"; then
2150 mkdir_p='$(mkinstalldirs)'
2152 mkdir_p='$(install_sh) -d'
2156 for ac_prog in gawk mawk nawk awk
2158 # Extract the first word of "$ac_prog", so it can be a program name with args.
2159 set dummy $ac_prog; ac_word=$2
2160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2162 if test "${ac_cv_prog_AWK+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 if test -n "$AWK"; then
2166 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2175 ac_cv_prog_AWK="$ac_prog"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 if test -n "$AWK"; then
2187 { echo "$as_me:$LINENO: result: $AWK" >&5
2188 echo "${ECHO_T}$AWK" >&6; }
2190 { echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6; }
2195 test -n "$AWK" && break
2198 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2199 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2200 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2201 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 cat >conftest.make <<\_ACEOF
2207 @echo '@@@%%%=$(MAKE)=@@@%%%'
2209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2210 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2212 eval ac_cv_prog_make_${ac_make}_set=yes;;
2214 eval ac_cv_prog_make_${ac_make}_set=no;;
2218 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2219 { echo "$as_me:$LINENO: result: yes" >&5
2220 echo "${ECHO_T}yes" >&6; }
2223 { echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6; }
2225 SET_MAKE="MAKE=${MAKE-make}"
2228 rm -rf .tst 2>/dev/null
2229 mkdir .tst 2>/dev/null
2230 if test -d .tst; then
2235 rmdir .tst 2>/dev/null
2237 # test to see if srcdir already configured
2238 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2239 test -f $srcdir/config.status; then
2240 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2241 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2242 { (exit 1); exit 1; }; }
2245 # test whether we have cygpath
2246 if test -z "$CYGPATH_W"; then
2247 if (cygpath --version) >/dev/null 2>/dev/null; then
2248 CYGPATH_W='cygpath -w'
2255 # Define the identity of the package.
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE "$PACKAGE"
2265 cat >>confdefs.h <<_ACEOF
2266 #define VERSION "$VERSION"
2269 # Some tools Automake needs.
2271 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2274 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2277 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2280 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2283 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2285 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2287 # Installed binaries are usually stripped using `strip' when the user
2288 # run `make install-strip'. However `strip' might not be the right
2289 # tool to use in cross-compilation environments, therefore Automake
2290 # will honor the `STRIP' environment variable to overrule this program.
2291 if test "$cross_compiling" != no; then
2292 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2294 set dummy ${ac_tool_prefix}strip; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_prog_STRIP+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 if test -n "$STRIP"; then
2301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 STRIP=$ac_cv_prog_STRIP
2321 if test -n "$STRIP"; then
2322 { echo "$as_me:$LINENO: result: $STRIP" >&5
2323 echo "${ECHO_T}$STRIP" >&6; }
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2331 if test -z "$ac_cv_prog_STRIP"; then
2333 # Extract the first word of "strip", so it can be a program name with args.
2334 set dummy strip; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$ac_ct_STRIP"; then
2341 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_ac_ct_STRIP="strip"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2361 if test -n "$ac_ct_STRIP"; then
2362 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2363 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2369 if test "x$ac_ct_STRIP" = x; then
2372 case $cross_compiling:$ac_tool_warned in
2374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet. If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
2377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet. If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2380 ac_tool_warned=yes ;;
2385 STRIP="$ac_cv_prog_STRIP"
2389 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2391 # We need awk for the "check" target. The system "awk" is bad on
2393 # Always define AMTAR for backward compatibility.
2395 AMTAR=${AMTAR-"${am_missing_run}tar"}
2397 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2403 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2404 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2405 # Check whether --enable-maintainer-mode was given.
2406 if test "${enable_maintainer_mode+set}" = set; then
2407 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2409 USE_MAINTAINER_MODE=no
2412 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2413 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2416 if test $USE_MAINTAINER_MODE = yes; then
2417 MAINTAINER_MODE_TRUE=
2418 MAINTAINER_MODE_FALSE='#'
2420 MAINTAINER_MODE_TRUE='#'
2421 MAINTAINER_MODE_FALSE=
2424 MAINT=$MAINTAINER_MODE_TRUE
2427 ac_config_headers="$ac_config_headers config.h"
2430 # Make sure we can run config.sub.
2431 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2432 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2433 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2434 { (exit 1); exit 1; }; }
2436 { echo "$as_me:$LINENO: checking build system type" >&5
2437 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2438 if test "${ac_cv_build+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 ac_build_alias=$build_alias
2442 test "x$ac_build_alias" = x &&
2443 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2444 test "x$ac_build_alias" = x &&
2445 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2446 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2447 { (exit 1); exit 1; }; }
2448 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2449 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2450 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2451 { (exit 1); exit 1; }; }
2454 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2455 echo "${ECHO_T}$ac_cv_build" >&6; }
2456 case $ac_cv_build in
2458 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2459 echo "$as_me: error: invalid value of canonical build" >&2;}
2460 { (exit 1); exit 1; }; };;
2463 ac_save_IFS=$IFS; IFS='-'
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2473 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2476 { echo "$as_me:$LINENO: checking host system type" >&5
2477 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2478 if test "${ac_cv_host+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test "x$host_alias" = x; then
2482 ac_cv_host=$ac_cv_build
2484 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2485 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2486 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2487 { (exit 1); exit 1; }; }
2491 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2492 echo "${ECHO_T}$ac_cv_host" >&6; }
2495 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2496 echo "$as_me: error: invalid value of canonical host" >&2;}
2497 { (exit 1); exit 1; }; };;
2500 ac_save_IFS=$IFS; IFS='-'
2506 # Remember, the first character of IFS is used to create $*,
2507 # except with old shells:
2510 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2522 # Defines --with-android, --with-android-ndk, and --with-android-version
2523 # If specified, checks for a working install, and sets build parameters
2524 # appropriately for an Android host.
2530 # Check whether --with-android was given.
2531 if test "${with_android+set}" = set; then
2532 withval=$with_android;
2536 # Check whether --with-android-ndk was given.
2537 if test "${with_android_ndk+set}" = set; then
2538 withval=$with_android_ndk;
2542 # Check whether --with-android-version was given.
2543 if test "${with_android_version+set}" = set; then
2544 withval=$with_android_version;
2546 with_android_version="android-8"
2550 if test "x$with_android" != "x"; then
2551 if test "$with_android" = "yes"; then
2552 { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
2553 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
2554 { (exit 1); exit 1; }; }
2556 if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
2557 { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
2558 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
2559 { (exit 1); exit 1; }; }
2562 ANDROID_SDK_HOME="$with_android"
2563 ANDROID_NDK_HOME="$with_android_ndk"
2564 ANDROID_SDK_VERSION="$with_android_version"
2566 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
2567 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
2568 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
2569 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 test "$cross_compiling" = yes &&
2573 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2574 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2575 { (exit 1); exit 1; }; }
2576 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
2577 eval "$as_ac_File=yes"
2579 eval "$as_ac_File=no"
2582 ac_res=`eval echo '${'$as_ac_File'}'`
2583 { echo "$as_me:$LINENO: result: $ac_res" >&5
2584 echo "${ECHO_T}$ac_res" >&6; }
2585 if test `eval echo '${'$as_ac_File'}'` = yes; then
2588 { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
2589 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
2590 { (exit 1); exit 1; }; }
2593 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
2594 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
2595 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
2596 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 test "$cross_compiling" = yes &&
2600 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2601 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2602 { (exit 1); exit 1; }; }
2603 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
2604 eval "$as_ac_File=yes"
2606 eval "$as_ac_File=no"
2609 ac_res=`eval echo '${'$as_ac_File'}'`
2610 { echo "$as_me:$LINENO: result: $ac_res" >&5
2611 echo "${ECHO_T}$ac_res" >&6; }
2612 if test `eval echo '${'$as_ac_File'}'` = yes; then
2615 { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
2616 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
2617 { (exit 1); exit 1; }; }
2620 as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
2621 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
2622 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
2623 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 test "$cross_compiling" = yes &&
2627 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2628 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2629 { (exit 1); exit 1; }; }
2630 if test -r "$ANDROID_NDK_HOME/toolchains"; then
2631 eval "$as_ac_File=yes"
2633 eval "$as_ac_File=no"
2636 ac_res=`eval echo '${'$as_ac_File'}'`
2637 { echo "$as_me:$LINENO: result: $ac_res" >&5
2638 echo "${ECHO_T}$ac_res" >&6; }
2639 if test `eval echo '${'$as_ac_File'}'` = yes; then
2642 { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
2643 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
2644 { (exit 1); exit 1; }; }
2650 host_alias="arm-linux-androideabi"
2652 host_vendor="unknown";
2653 host_os="linux-androideabi"
2654 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
2655 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
2656 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_SDK_VERSION/arch-arm"
2657 TARGETFLAGS="-ffunction-sections -funwind-tables -fstack-protector -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wno-psabi -Wa,--noexecstack"
2658 TARGETFLAGS="$TARGETFLAGS -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -march=armv5te -mtune=xscale -msoft-float -mthumb -Os"
2661 host_alias="i686-android-linux"
2663 host_vendor="android"
2665 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
2666 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
2667 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_SDK_VERSION/arch-x86"
2671 { { echo "$as_me:$LINENO: error: Unsupported android host $host_alias" >&5
2672 echo "$as_me: error: Unsupported android host $host_alias" >&2;}
2673 { (exit 1); exit 1; }; }
2677 # Extract the first word of "ant ", so it can be a program name with args.
2678 set dummy ant ; ac_word=$2
2679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2681 if test "${ac_cv_path_ANT+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 if test -n "$ANT"; then
2709 { echo "$as_me:$LINENO: result: $ANT" >&5
2710 echo "${ECHO_T}$ANT" >&6; }
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2718 CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
2719 CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
2720 CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
2721 LD="$ANDROID_NDK_BIN/${host_alias}-ld"
2722 AR="$ANDROID_NDK_BIN/${host_alias}-ar"
2723 RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
2724 STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
2725 OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
2726 CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
2727 LDFLAGS="-nostdlib -Wl,--no-undefined -L${ANDROID_SYSROOT}/usr/lib -Wl,-rpath-link,${ANDROID_SYSROOT}/usr/lib -Wl,-allow-shlib-undefined -Wl,-z,noexecstack $LDFLAGS"
2728 LIBS="$LIBS -liconv -llog -lgcc -lc"
2741 if test "$ANDROID_BUILD" = "yes"; then
2743 GUI_ANDROID_FALSE='#'
2745 GUI_ANDROID_TRUE='#'
2752 DEPDIR="${am__leading_dot}deps"
2754 ac_config_commands="$ac_config_commands depfiles"
2757 am_make=${MAKE-make}
2758 cat > confinc << 'END'
2763 # If we don't find an include directive, just comment out the code.
2764 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2765 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2769 # First try GNU make style include.
2770 echo "include confinc" > confmf
2771 # We grep out `Entering directory' and `Leaving directory'
2772 # messages which can occur if `w' ends up in MAKEFLAGS.
2773 # In particular we don't look at `^make:' because GNU make might
2774 # be invoked under some other name (usually "gmake"), in which
2775 # case it prints its new name instead of `make'.
2776 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2781 # Now try BSD make style include.
2782 if test "$am__include" = "#"; then
2783 echo '.include "confinc"' > confmf
2784 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2785 am__include=.include
2792 { echo "$as_me:$LINENO: result: $_am_result" >&5
2793 echo "${ECHO_T}$_am_result" >&6; }
2794 rm -f confinc confmf
2796 # Check whether --enable-dependency-tracking was given.
2797 if test "${enable_dependency_tracking+set}" = set; then
2798 enableval=$enable_dependency_tracking;
2801 if test "x$enable_dependency_tracking" != xno; then
2802 am_depcomp="$ac_aux_dir/depcomp"
2807 if test "x$enable_dependency_tracking" != xno; then
2818 ac_cpp='$CPP $CPPFLAGS'
2819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822 if test -n "$ac_tool_prefix"; then
2823 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2824 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_CC+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 if test -n "$CC"; then
2831 ac_cv_prog_CC="$CC" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 if test -n "$CC"; then
2852 { echo "$as_me:$LINENO: result: $CC" >&5
2853 echo "${ECHO_T}$CC" >&6; }
2855 { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2861 if test -z "$ac_cv_prog_CC"; then
2863 # Extract the first word of "gcc", so it can be a program name with args.
2864 set dummy gcc; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 if test -n "$ac_ct_CC"; then
2871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_ac_ct_CC="gcc"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2891 if test -n "$ac_ct_CC"; then
2892 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2893 echo "${ECHO_T}$ac_ct_CC" >&6; }
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2899 if test "x$ac_ct_CC" = x; then
2902 case $cross_compiling:$ac_tool_warned in
2904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2905 whose name does not start with the host triplet. If you think this
2906 configuration is useful to you, please write to autoconf@gnu.org." >&5
2907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2908 whose name does not start with the host triplet. If you think this
2909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2910 ac_tool_warned=yes ;;
2918 if test -z "$CC"; then
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}cc; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC="${ac_tool_prefix}cc"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 if test -n "$CC"; then
2949 { echo "$as_me:$LINENO: result: $CC" >&5
2950 echo "${ECHO_T}$CC" >&6; }
2952 { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2959 if test -z "$CC"; then
2960 # Extract the first word of "cc", so it can be a program name with args.
2961 set dummy cc; ac_word=$2
2962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_CC+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2979 ac_prog_rejected=yes
2983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 if test $ac_prog_rejected = yes; then
2991 # We found a bogon in the path, so make sure we never use it.
2992 set dummy $ac_cv_prog_CC
2994 if test $# != 0; then
2995 # We chose a different compiler from the bogus one.
2996 # However, it has the same basename, so the bogon will be chosen
2997 # first if we set CC to just the basename; use the full file name.
2999 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3005 if test -n "$CC"; then
3006 { echo "$as_me:$LINENO: result: $CC" >&5
3007 echo "${ECHO_T}$CC" >&6; }
3009 { echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6; }
3015 if test -z "$CC"; then
3016 if test -n "$ac_tool_prefix"; then
3017 for ac_prog in cl.exe
3019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_CC+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 if test -n "$CC"; then
3048 { echo "$as_me:$LINENO: result: $CC" >&5
3049 echo "${ECHO_T}$CC" >&6; }
3051 { echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6; }
3056 test -n "$CC" && break
3059 if test -z "$CC"; then
3061 for ac_prog in cl.exe
3063 # Extract the first word of "$ac_prog", so it can be a program name with args.
3064 set dummy $ac_prog; ac_word=$2
3065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 if test -n "$ac_ct_CC"; then
3071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_ac_ct_CC="$ac_prog"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3091 if test -n "$ac_ct_CC"; then
3092 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3093 echo "${ECHO_T}$ac_ct_CC" >&6; }
3095 { echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6; }
3100 test -n "$ac_ct_CC" && break
3103 if test "x$ac_ct_CC" = x; then
3106 case $cross_compiling:$ac_tool_warned in
3108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3109 whose name does not start with the host triplet. If you think this
3110 configuration is useful to you, please write to autoconf@gnu.org." >&5
3111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3112 whose name does not start with the host triplet. If you think this
3113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3114 ac_tool_warned=yes ;;
3123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: no acceptable C compiler found in \$PATH
3126 See \`config.log' for more details." >&2;}
3127 { (exit 1); exit 1; }; }
3129 # Provide some information about the compiler.
3130 echo "$as_me:$LINENO: checking for C compiler version" >&5
3131 ac_compiler=`set X $ac_compile; echo $2`
3132 { (ac_try="$ac_compiler --version >&5"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compiler --version >&5") 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }
3142 { (ac_try="$ac_compiler -v >&5"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compiler -v >&5") 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }
3152 { (ac_try="$ac_compiler -V >&5"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compiler -V >&5") 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }
3163 cat >conftest.$ac_ext <<_ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3178 ac_clean_files_save=$ac_clean_files
3179 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3180 # Try to create an executable without -o first, disregard a.out.
3181 # It will help us diagnose broken compilers, and finding out an intuition
3183 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3184 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3185 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3187 # List of possible output files, starting from the most likely.
3188 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3189 # only as a last resort. b.out is created by i960 compilers.
3190 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3192 # The IRIX 6 linker writes into existing files which may not be
3193 # executable, retaining their permissions. Remove them first so a
3194 # subsequent execution test works.
3196 for ac_file in $ac_files
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3200 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3205 if { (ac_try="$ac_link_default"
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_link_default") 2>&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; then
3215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3218 # so that the user can short-circuit this test for compilers unknown to
3220 for ac_file in $ac_files ''
3222 test -f "$ac_file" || continue
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3227 # We found the default executable, but exeext='' is most
3231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235 # We set ac_cv_exeext here because the later test for it is not
3236 # safe: cross compilers may not add the suffix if given an `-o'
3237 # argument, so we may need to know it at that point already.
3238 # Even if this section looks crufty: it has the advantage of
3245 test "$ac_cv_exeext" = no && ac_cv_exeext=
3251 { echo "$as_me:$LINENO: result: $ac_file" >&5
3252 echo "${ECHO_T}$ac_file" >&6; }
3253 if test -z "$ac_file"; then
3254 echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3257 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3258 See \`config.log' for more details." >&5
3259 echo "$as_me: error: C compiler cannot create executables
3260 See \`config.log' for more details." >&2;}
3261 { (exit 77); exit 77; }; }
3264 ac_exeext=$ac_cv_exeext
3266 # Check that the compiler produces executables we can run. If not, either
3267 # the compiler is broken, or we cross compile.
3268 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3269 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3270 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3271 # If not cross compiling, check that we can run a simple program.
3272 if test "$cross_compiling" != yes; then
3273 if { ac_try='./$ac_file'
3274 { (case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_try") 2>&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3285 if test "$cross_compiling" = maybe; then
3288 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3289 If you meant to cross compile, use \`--host'.
3290 See \`config.log' for more details." >&5
3291 echo "$as_me: error: cannot run C compiled programs.
3292 If you meant to cross compile, use \`--host'.
3293 See \`config.log' for more details." >&2;}
3294 { (exit 1); exit 1; }; }
3298 { echo "$as_me:$LINENO: result: yes" >&5
3299 echo "${ECHO_T}yes" >&6; }
3301 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3302 ac_clean_files=$ac_clean_files_save
3303 # Check that the compiler produces executables we can run. If not, either
3304 # the compiler is broken, or we cross compile.
3305 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3306 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3307 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3308 echo "${ECHO_T}$cross_compiling" >&6; }
3310 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3311 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3312 if { (ac_try="$ac_link"
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_link") 2>&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; then
3322 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3323 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3324 # work properly (i.e., refer to `conftest.exe'), while it won't with
3326 for ac_file in conftest.exe conftest conftest.*; do
3327 test -f "$ac_file" || continue
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3337 See \`config.log' for more details." >&5
3338 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3339 See \`config.log' for more details." >&2;}
3340 { (exit 1); exit 1; }; }
3343 rm -f conftest$ac_cv_exeext
3344 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3345 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3347 rm -f conftest.$ac_ext
3348 EXEEXT=$ac_cv_exeext
3350 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3351 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3352 if test "${ac_cv_objext+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 cat >conftest.$ac_ext <<_ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3370 rm -f conftest.o conftest.obj
3371 if { (ac_try="$ac_compile"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_compile") 2>&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; then
3381 for ac_file in conftest.o conftest.obj conftest.*; do
3382 test -f "$ac_file" || continue;
3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3385 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3394 See \`config.log' for more details." >&5
3395 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3396 See \`config.log' for more details." >&2;}
3397 { (exit 1); exit 1; }; }
3400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3402 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3403 echo "${ECHO_T}$ac_cv_objext" >&6; }
3404 OBJEXT=$ac_cv_objext
3406 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3407 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3408 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 cat >conftest.$ac_ext <<_ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3429 rm -f conftest.$ac_objext
3430 if { (ac_try="$ac_compile"
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_compile") 2>conftest.er1
3438 grep -v '^ *+' conftest.er1 >conftest.err
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } && {
3443 test -z "$ac_c_werror_flag" ||
3444 test ! -s conftest.err
3445 } && test -s conftest.$ac_objext; then
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3458 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3460 GCC=`test $ac_compiler_gnu = yes && echo yes`
3461 ac_test_CFLAGS=${CFLAGS+set}
3462 ac_save_CFLAGS=$CFLAGS
3463 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3464 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3465 if test "${ac_cv_prog_cc_g+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 ac_save_c_werror_flag=$ac_c_werror_flag
3469 ac_c_werror_flag=yes
3472 cat >conftest.$ac_ext <<_ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3487 rm -f conftest.$ac_objext
3488 if { (ac_try="$ac_compile"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_compile") 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } && {
3501 test -z "$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3503 } && test -s conftest.$ac_objext; then
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3510 cat >conftest.$ac_ext <<_ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compile") 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } && {
3539 test -z "$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 } && test -s conftest.$ac_objext; then
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3564 rm -f conftest.$ac_objext
3565 if { (ac_try="$ac_compile"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3599 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3600 if test "$ac_test_CFLAGS" = set; then
3601 CFLAGS=$ac_save_CFLAGS
3602 elif test $ac_cv_prog_cc_g = yes; then
3603 if test "$GCC" = yes; then
3609 if test "$GCC" = yes; then
3615 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3616 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3617 if test "${ac_cv_prog_cc_c89+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 ac_cv_prog_cc_c89=no
3622 cat >conftest.$ac_ext <<_ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3630 #include <sys/types.h>
3631 #include <sys/stat.h>
3632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3633 struct buf { int x; };
3634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635 static char *e (p, i)
3641 static char *f (char * (*g) (char **, int), char **p, ...)
3646 s = g (p, va_arg (v,int));
3651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3652 function prototypes and stuff, but not '\xHH' hex character constants.
3653 These don't provoke an error unfortunately, instead are silently treated
3654 as 'x'. The following induces an error, until -std is added to get
3655 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3656 array size at least. It's necessary to write '\x00'==0 to get something
3657 that's true only with -std. */
3658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3661 inside strings and character constants. */
3663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3665 int test (int i, double x);
3666 struct s1 {int (*f) (int a);};
3667 struct s2 {int (*f) (double a);};
3668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3674 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3680 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3682 CC="$ac_save_CC $ac_arg"
3683 rm -f conftest.$ac_objext
3684 if { (ac_try="$ac_compile"
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_compile") 2>conftest.er1
3692 grep -v '^ *+' conftest.er1 >conftest.err
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } && {
3697 test -z "$ac_c_werror_flag" ||
3698 test ! -s conftest.err
3699 } && test -s conftest.$ac_objext; then
3700 ac_cv_prog_cc_c89=$ac_arg
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3708 rm -f core conftest.err conftest.$ac_objext
3709 test "x$ac_cv_prog_cc_c89" != "xno" && break
3711 rm -f conftest.$ac_ext
3716 case "x$ac_cv_prog_cc_c89" in
3718 { echo "$as_me:$LINENO: result: none needed" >&5
3719 echo "${ECHO_T}none needed" >&6; } ;;
3721 { echo "$as_me:$LINENO: result: unsupported" >&5
3722 echo "${ECHO_T}unsupported" >&6; } ;;
3724 CC="$CC $ac_cv_prog_cc_c89"
3725 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3726 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3731 ac_cpp='$CPP $CPPFLAGS'
3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736 depcc="$CC" am_compiler_list=
3738 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3739 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3740 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3744 # We make a subdir and do the tests there. Otherwise we can end up
3745 # making bogus files that we don't know about and never remove. For
3746 # instance it was reported that on HP-UX the gcc test will end up
3747 # making a dummy file named `D' -- because `-MD' means `put the output
3750 # Copy depcomp to subdir because otherwise we won't find it if we're
3751 # using a relative directory.
3752 cp "$am_depcomp" conftest.dir
3754 # We will build objects and dependencies in a subdirectory because
3755 # it helps to detect inapplicable dependency modes. For instance
3756 # both Tru64's cc and ICC support -MD to output dependencies as a
3757 # side effect of compilation, but ICC will put the dependencies in
3758 # the current directory while Tru64 will put them in the object
3762 am_cv_CC_dependencies_compiler_type=none
3763 if test "$am_compiler_list" = ""; then
3764 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3766 for depmode in $am_compiler_list; do
3767 # Setup a source with many dependencies, because some compilers
3768 # like to wrap large dependency lists on column 80 (with \), and
3769 # we should not choose a depcomp mode which is confused by this.
3771 # We need to recreate these files for each test, as the compiler may
3772 # overwrite some of them when testing with obscure command lines.
3773 # This happens at least with the AIX C compiler.
3775 for i in 1 2 3 4 5 6; do
3776 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3777 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3778 # Solaris 8's {/usr,}/bin/sh.
3779 touch sub/conftst$i.h
3781 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3785 # after this tag, mechanisms are not by side-effect, so they'll
3786 # only be used when explicitly requested
3787 if test "x$enable_dependency_tracking" = xyes; then
3795 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3796 # mode. It turns out that the SunPro C++ compiler does not properly
3797 # handle `-M -o', and we need to detect this.
3798 if depmode=$depmode \
3799 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3800 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3801 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3802 >/dev/null 2>conftest.err &&
3803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3804 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3806 # icc doesn't choke on unknown options, it will just issue warnings
3807 # or remarks (even with -Werror). So we grep stderr for any message
3808 # that says an option was ignored or not supported.
3809 # When given -MP, icc 7.0 and 7.1 complain thusly:
3810 # icc: Command line warning: ignoring option '-M'; no argument required
3811 # The diagnosis changed in icc 8.0:
3812 # icc: Command line remark: option '-MP' not supported
3813 if (grep 'ignoring option' conftest.err ||
3814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3815 am_cv_CC_dependencies_compiler_type=$depmode
3824 am_cv_CC_dependencies_compiler_type=none
3828 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3829 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3830 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3835 test "x$enable_dependency_tracking" != xno \
3836 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3838 am__fastdepCC_FALSE='#'
3840 am__fastdepCC_TRUE='#'
3841 am__fastdepCC_FALSE=
3847 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3848 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3849 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 ac_check_lib_save_LIBS=$LIBS
3853 LIBS="-lcposix $LIBS"
3854 cat >conftest.$ac_ext <<_ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3861 /* Override any GCC internal prototype to avoid an error.
3862 Use char because int might match the return type of a GCC
3863 builtin and then its argument prototype would still apply. */
3876 rm -f conftest.$ac_objext conftest$ac_exeext
3877 if { (ac_try="$ac_link"
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_link") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest$ac_exeext &&
3893 $as_test_x conftest$ac_exeext; then
3894 ac_cv_lib_cposix_strerror=yes
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3899 ac_cv_lib_cposix_strerror=no
3902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3903 conftest$ac_exeext conftest.$ac_ext
3904 LIBS=$ac_check_lib_save_LIBS
3906 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3907 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3908 if test $ac_cv_lib_cposix_strerror = yes; then
3909 LIBS="$LIBS -lcposix"
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3924 if test "${ac_cv_prog_CC+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC="$CC" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 if test -n "$CC"; then
3949 { echo "$as_me:$LINENO: result: $CC" >&5
3950 echo "${ECHO_T}$CC" >&6; }
3952 { echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6; }
3958 if test -z "$ac_cv_prog_CC"; then
3960 # Extract the first word of "gcc", so it can be a program name with args.
3961 set dummy gcc; ac_word=$2
3962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 if test -n "$ac_ct_CC"; then
3968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3977 ac_cv_prog_ac_ct_CC="gcc"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3988 if test -n "$ac_ct_CC"; then
3989 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3990 echo "${ECHO_T}$ac_ct_CC" >&6; }
3992 { echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6; }
3996 if test "x$ac_ct_CC" = x; then
3999 case $cross_compiling:$ac_tool_warned in
4001 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4002 whose name does not start with the host triplet. If you think this
4003 configuration is useful to you, please write to autoconf@gnu.org." >&5
4004 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4005 whose name does not start with the host triplet. If you think this
4006 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4007 ac_tool_warned=yes ;;
4015 if test -z "$CC"; then
4016 if test -n "$ac_tool_prefix"; then
4017 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4018 set dummy ${ac_tool_prefix}cc; ac_word=$2
4019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4021 if test "${ac_cv_prog_CC+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 if test -n "$CC"; then
4025 ac_cv_prog_CC="$CC" # Let the user override the test.
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 test -z "$as_dir" && as_dir=.
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4034 ac_cv_prog_CC="${ac_tool_prefix}cc"
4035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 if test -n "$CC"; then
4046 { echo "$as_me:$LINENO: result: $CC" >&5
4047 echo "${ECHO_T}$CC" >&6; }
4049 { echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6; }
4056 if test -z "$CC"; then
4057 # Extract the first word of "cc", so it can be a program name with args.
4058 set dummy cc; ac_word=$2
4059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4061 if test "${ac_cv_prog_CC+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 if test -n "$CC"; then
4065 ac_cv_prog_CC="$CC" # Let the user override the test.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4076 ac_prog_rejected=yes
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 if test $ac_prog_rejected = yes; then
4088 # We found a bogon in the path, so make sure we never use it.
4089 set dummy $ac_cv_prog_CC
4091 if test $# != 0; then
4092 # We chose a different compiler from the bogus one.
4093 # However, it has the same basename, so the bogon will be chosen
4094 # first if we set CC to just the basename; use the full file name.
4096 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4102 if test -n "$CC"; then
4103 { echo "$as_me:$LINENO: result: $CC" >&5
4104 echo "${ECHO_T}$CC" >&6; }
4106 { echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6; }
4112 if test -z "$CC"; then
4113 if test -n "$ac_tool_prefix"; then
4114 for ac_prog in cl.exe
4116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4120 if test "${ac_cv_prog_CC+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 if test -n "$CC"; then
4124 ac_cv_prog_CC="$CC" # Let the user override the test.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 if test -n "$CC"; then
4145 { echo "$as_me:$LINENO: result: $CC" >&5
4146 echo "${ECHO_T}$CC" >&6; }
4148 { echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6; }
4153 test -n "$CC" && break
4156 if test -z "$CC"; then
4158 for ac_prog in cl.exe
4160 # Extract the first word of "$ac_prog", so it can be a program name with args.
4161 set dummy $ac_prog; ac_word=$2
4162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 if test -n "$ac_ct_CC"; then
4168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_ac_ct_CC="$ac_prog"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4188 if test -n "$ac_ct_CC"; then
4189 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4190 echo "${ECHO_T}$ac_ct_CC" >&6; }
4192 { echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6; }
4197 test -n "$ac_ct_CC" && break
4200 if test "x$ac_ct_CC" = x; then
4203 case $cross_compiling:$ac_tool_warned in
4205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4206 whose name does not start with the host triplet. If you think this
4207 configuration is useful to you, please write to autoconf@gnu.org." >&5
4208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4209 whose name does not start with the host triplet. If you think this
4210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4211 ac_tool_warned=yes ;;
4220 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4221 See \`config.log' for more details." >&5
4222 echo "$as_me: error: no acceptable C compiler found in \$PATH
4223 See \`config.log' for more details." >&2;}
4224 { (exit 1); exit 1; }; }
4226 # Provide some information about the compiler.
4227 echo "$as_me:$LINENO: checking for C compiler version" >&5
4228 ac_compiler=`set X $ac_compile; echo $2`
4229 { (ac_try="$ac_compiler --version >&5"
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_compiler --version >&5") 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }
4239 { (ac_try="$ac_compiler -v >&5"
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compiler -v >&5") 2>&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }
4249 { (ac_try="$ac_compiler -V >&5"
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_compiler -V >&5") 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }
4260 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4261 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4262 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 cat >conftest.$ac_ext <<_ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4283 rm -f conftest.$ac_objext
4284 if { (ac_try="$ac_compile"
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } && {
4297 test -z "$ac_c_werror_flag" ||
4298 test ! -s conftest.err
4299 } && test -s conftest.$ac_objext; then
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4312 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4313 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4314 GCC=`test $ac_compiler_gnu = yes && echo yes`
4315 ac_test_CFLAGS=${CFLAGS+set}
4316 ac_save_CFLAGS=$CFLAGS
4317 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4318 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4319 if test "${ac_cv_prog_cc_g+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 ac_save_c_werror_flag=$ac_c_werror_flag
4323 ac_c_werror_flag=yes
4326 cat >conftest.$ac_ext <<_ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } && {
4355 test -z "$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 } && test -s conftest.$ac_objext; then
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4379 rm -f conftest.$ac_objext
4380 if { (ac_try="$ac_compile"
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386 (eval "$ac_compile") 2>conftest.er1
4388 grep -v '^ *+' conftest.er1 >conftest.err
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } && {
4393 test -z "$ac_c_werror_flag" ||
4394 test ! -s conftest.err
4395 } && test -s conftest.$ac_objext; then
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 ac_c_werror_flag=$ac_save_c_werror_flag
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4418 rm -f conftest.$ac_objext
4419 if { (ac_try="$ac_compile"
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_compile") 2>conftest.er1
4427 grep -v '^ *+' conftest.er1 >conftest.err
4429 cat conftest.err >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && {
4432 test -z "$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 } && test -s conftest.$ac_objext; then
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 ac_c_werror_flag=$ac_save_c_werror_flag
4452 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4453 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4454 if test "$ac_test_CFLAGS" = set; then
4455 CFLAGS=$ac_save_CFLAGS
4456 elif test $ac_cv_prog_cc_g = yes; then
4457 if test "$GCC" = yes; then
4463 if test "$GCC" = yes; then
4469 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4470 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4471 if test "${ac_cv_prog_cc_c89+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 ac_cv_prog_cc_c89=no
4476 cat >conftest.$ac_ext <<_ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4484 #include <sys/types.h>
4485 #include <sys/stat.h>
4486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4487 struct buf { int x; };
4488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4489 static char *e (p, i)
4495 static char *f (char * (*g) (char **, int), char **p, ...)
4500 s = g (p, va_arg (v,int));
4505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4506 function prototypes and stuff, but not '\xHH' hex character constants.
4507 These don't provoke an error unfortunately, instead are silently treated
4508 as 'x'. The following induces an error, until -std is added to get
4509 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4510 array size at least. It's necessary to write '\x00'==0 to get something
4511 that's true only with -std. */
4512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4514 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4515 inside strings and character constants. */
4517 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4519 int test (int i, double x);
4520 struct s1 {int (*f) (int a);};
4521 struct s2 {int (*f) (double a);};
4522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4528 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4533 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4534 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4536 CC="$ac_save_CC $ac_arg"
4537 rm -f conftest.$ac_objext
4538 if { (ac_try="$ac_compile"
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_compile") 2>conftest.er1
4546 grep -v '^ *+' conftest.er1 >conftest.err
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } && {
4551 test -z "$ac_c_werror_flag" ||
4552 test ! -s conftest.err
4553 } && test -s conftest.$ac_objext; then
4554 ac_cv_prog_cc_c89=$ac_arg
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4562 rm -f core conftest.err conftest.$ac_objext
4563 test "x$ac_cv_prog_cc_c89" != "xno" && break
4565 rm -f conftest.$ac_ext
4570 case "x$ac_cv_prog_cc_c89" in
4572 { echo "$as_me:$LINENO: result: none needed" >&5
4573 echo "${ECHO_T}none needed" >&6; } ;;
4575 { echo "$as_me:$LINENO: result: unsupported" >&5
4576 echo "${ECHO_T}unsupported" >&6; } ;;
4578 CC="$CC $ac_cv_prog_cc_c89"
4579 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4580 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590 depcc="$CC" am_compiler_list=
4592 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4593 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4594 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4598 # We make a subdir and do the tests there. Otherwise we can end up
4599 # making bogus files that we don't know about and never remove. For
4600 # instance it was reported that on HP-UX the gcc test will end up
4601 # making a dummy file named `D' -- because `-MD' means `put the output
4604 # Copy depcomp to subdir because otherwise we won't find it if we're
4605 # using a relative directory.
4606 cp "$am_depcomp" conftest.dir
4608 # We will build objects and dependencies in a subdirectory because
4609 # it helps to detect inapplicable dependency modes. For instance
4610 # both Tru64's cc and ICC support -MD to output dependencies as a
4611 # side effect of compilation, but ICC will put the dependencies in
4612 # the current directory while Tru64 will put them in the object
4616 am_cv_CC_dependencies_compiler_type=none
4617 if test "$am_compiler_list" = ""; then
4618 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4620 for depmode in $am_compiler_list; do
4621 # Setup a source with many dependencies, because some compilers
4622 # like to wrap large dependency lists on column 80 (with \), and
4623 # we should not choose a depcomp mode which is confused by this.
4625 # We need to recreate these files for each test, as the compiler may
4626 # overwrite some of them when testing with obscure command lines.
4627 # This happens at least with the AIX C compiler.
4629 for i in 1 2 3 4 5 6; do
4630 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4631 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4632 # Solaris 8's {/usr,}/bin/sh.
4633 touch sub/conftst$i.h
4635 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4639 # after this tag, mechanisms are not by side-effect, so they'll
4640 # only be used when explicitly requested
4641 if test "x$enable_dependency_tracking" = xyes; then
4649 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4650 # mode. It turns out that the SunPro C++ compiler does not properly
4651 # handle `-M -o', and we need to detect this.
4652 if depmode=$depmode \
4653 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4654 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4655 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4656 >/dev/null 2>conftest.err &&
4657 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4658 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4659 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4660 # icc doesn't choke on unknown options, it will just issue warnings
4661 # or remarks (even with -Werror). So we grep stderr for any message
4662 # that says an option was ignored or not supported.
4663 # When given -MP, icc 7.0 and 7.1 complain thusly:
4664 # icc: Command line warning: ignoring option '-M'; no argument required
4665 # The diagnosis changed in icc 8.0:
4666 # icc: Command line remark: option '-MP' not supported
4667 if (grep 'ignoring option' conftest.err ||
4668 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4669 am_cv_CC_dependencies_compiler_type=$depmode
4678 am_cv_CC_dependencies_compiler_type=none
4682 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4683 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4684 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4689 test "x$enable_dependency_tracking" != xno \
4690 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4692 am__fastdepCC_FALSE='#'
4694 am__fastdepCC_TRUE='#'
4695 am__fastdepCC_FALSE=
4700 ac_cpp='$CPP $CPPFLAGS'
4701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4704 if test -n "$ac_tool_prefix"; then
4705 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4706 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_prog_CC+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 if test -n "$CC"; then
4713 ac_cv_prog_CC="$CC" # Let the user override the test.
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 if test -n "$CC"; then
4734 { echo "$as_me:$LINENO: result: $CC" >&5
4735 echo "${ECHO_T}$CC" >&6; }
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4743 if test -z "$ac_cv_prog_CC"; then
4745 # Extract the first word of "gcc", so it can be a program name with args.
4746 set dummy gcc; ac_word=$2
4747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 if test -n "$ac_ct_CC"; then
4753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_prog_ac_ct_CC="gcc"
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4773 if test -n "$ac_ct_CC"; then
4774 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4775 echo "${ECHO_T}$ac_ct_CC" >&6; }
4777 { echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6; }
4781 if test "x$ac_ct_CC" = x; then
4784 case $cross_compiling:$ac_tool_warned in
4786 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4787 whose name does not start with the host triplet. If you think this
4788 configuration is useful to you, please write to autoconf@gnu.org." >&5
4789 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4790 whose name does not start with the host triplet. If you think this
4791 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4792 ac_tool_warned=yes ;;
4800 if test -z "$CC"; then
4801 if test -n "$ac_tool_prefix"; then
4802 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4803 set dummy ${ac_tool_prefix}cc; ac_word=$2
4804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4806 if test "${ac_cv_prog_CC+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 if test -n "$CC"; then
4810 ac_cv_prog_CC="$CC" # Let the user override the test.
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_CC="${ac_tool_prefix}cc"
4820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 if test -n "$CC"; then
4831 { echo "$as_me:$LINENO: result: $CC" >&5
4832 echo "${ECHO_T}$CC" >&6; }
4834 { echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6; }
4841 if test -z "$CC"; then
4842 # Extract the first word of "cc", so it can be a program name with args.
4843 set dummy cc; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_prog_CC+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 if test -n "$CC"; then
4850 ac_cv_prog_CC="$CC" # Let the user override the test.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4861 ac_prog_rejected=yes
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 if test $ac_prog_rejected = yes; then
4873 # We found a bogon in the path, so make sure we never use it.
4874 set dummy $ac_cv_prog_CC
4876 if test $# != 0; then
4877 # We chose a different compiler from the bogus one.
4878 # However, it has the same basename, so the bogon will be chosen
4879 # first if we set CC to just the basename; use the full file name.
4881 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4887 if test -n "$CC"; then
4888 { echo "$as_me:$LINENO: result: $CC" >&5
4889 echo "${ECHO_T}$CC" >&6; }
4891 { echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6; }
4897 if test -z "$CC"; then
4898 if test -n "$ac_tool_prefix"; then
4899 for ac_prog in cl.exe
4901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_prog_CC+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 if test -n "$CC"; then
4909 ac_cv_prog_CC="$CC" # Let the user override the test.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 if test -n "$CC"; then
4930 { echo "$as_me:$LINENO: result: $CC" >&5
4931 echo "${ECHO_T}$CC" >&6; }
4933 { echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6; }
4938 test -n "$CC" && break
4941 if test -z "$CC"; then
4943 for ac_prog in cl.exe
4945 # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 if test -n "$ac_ct_CC"; then
4953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_ac_ct_CC="$ac_prog"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4973 if test -n "$ac_ct_CC"; then
4974 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4975 echo "${ECHO_T}$ac_ct_CC" >&6; }
4977 { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4982 test -n "$ac_ct_CC" && break
4985 if test "x$ac_ct_CC" = x; then
4988 case $cross_compiling:$ac_tool_warned in
4990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4991 whose name does not start with the host triplet. If you think this
4992 configuration is useful to you, please write to autoconf@gnu.org." >&5
4993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4994 whose name does not start with the host triplet. If you think this
4995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4996 ac_tool_warned=yes ;;
5005 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5006 See \`config.log' for more details." >&5
5007 echo "$as_me: error: no acceptable C compiler found in \$PATH
5008 See \`config.log' for more details." >&2;}
5009 { (exit 1); exit 1; }; }
5011 # Provide some information about the compiler.
5012 echo "$as_me:$LINENO: checking for C compiler version" >&5
5013 ac_compiler=`set X $ac_compile; echo $2`
5014 { (ac_try="$ac_compiler --version >&5"
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020 (eval "$ac_compiler --version >&5") 2>&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }
5024 { (ac_try="$ac_compiler -v >&5"
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_compiler -v >&5") 2>&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }
5034 { (ac_try="$ac_compiler -V >&5"
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_compiler -V >&5") 2>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }
5045 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5046 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5047 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 cat >conftest.$ac_ext <<_ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5068 rm -f conftest.$ac_objext
5069 if { (ac_try="$ac_compile"
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075 (eval "$ac_compile") 2>conftest.er1
5077 grep -v '^ *+' conftest.er1 >conftest.err
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } && {
5082 test -z "$ac_c_werror_flag" ||
5083 test ! -s conftest.err
5084 } && test -s conftest.$ac_objext; then
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5097 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5099 GCC=`test $ac_compiler_gnu = yes && echo yes`
5100 ac_test_CFLAGS=${CFLAGS+set}
5101 ac_save_CFLAGS=$CFLAGS
5102 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5103 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5104 if test "${ac_cv_prog_cc_g+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 ac_save_c_werror_flag=$ac_c_werror_flag
5108 ac_c_werror_flag=yes
5111 cat >conftest.$ac_ext <<_ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_compile") 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && {
5140 test -z "$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 } && test -s conftest.$ac_objext; then
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5164 rm -f conftest.$ac_objext
5165 if { (ac_try="$ac_compile"
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171 (eval "$ac_compile") 2>conftest.er1
5173 grep -v '^ *+' conftest.er1 >conftest.err
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } && {
5178 test -z "$ac_c_werror_flag" ||
5179 test ! -s conftest.err
5180 } && test -s conftest.$ac_objext; then
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 ac_c_werror_flag=$ac_save_c_werror_flag
5188 cat >conftest.$ac_ext <<_ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5203 rm -f conftest.$ac_objext
5204 if { (ac_try="$ac_compile"
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_compile") 2>conftest.er1
5212 grep -v '^ *+' conftest.er1 >conftest.err
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } && {
5217 test -z "$ac_c_werror_flag" ||
5218 test ! -s conftest.err
5219 } && test -s conftest.$ac_objext; then
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 ac_c_werror_flag=$ac_save_c_werror_flag
5237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5239 if test "$ac_test_CFLAGS" = set; then
5240 CFLAGS=$ac_save_CFLAGS
5241 elif test $ac_cv_prog_cc_g = yes; then
5242 if test "$GCC" = yes; then
5248 if test "$GCC" = yes; then
5254 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5255 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5256 if test "${ac_cv_prog_cc_c89+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 ac_cv_prog_cc_c89=no
5261 cat >conftest.$ac_ext <<_ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5269 #include <sys/types.h>
5270 #include <sys/stat.h>
5271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5272 struct buf { int x; };
5273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5274 static char *e (p, i)
5280 static char *f (char * (*g) (char **, int), char **p, ...)
5285 s = g (p, va_arg (v,int));
5290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5291 function prototypes and stuff, but not '\xHH' hex character constants.
5292 These don't provoke an error unfortunately, instead are silently treated
5293 as 'x'. The following induces an error, until -std is added to get
5294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5295 array size at least. It's necessary to write '\x00'==0 to get something
5296 that's true only with -std. */
5297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5300 inside strings and character constants. */
5302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5304 int test (int i, double x);
5305 struct s1 {int (*f) (int a);};
5306 struct s2 {int (*f) (double a);};
5307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5321 CC="$ac_save_CC $ac_arg"
5322 rm -f conftest.$ac_objext
5323 if { (ac_try="$ac_compile"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_compile") 2>conftest.er1
5331 grep -v '^ *+' conftest.er1 >conftest.err
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } && {
5336 test -z "$ac_c_werror_flag" ||
5337 test ! -s conftest.err
5338 } && test -s conftest.$ac_objext; then
5339 ac_cv_prog_cc_c89=$ac_arg
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5347 rm -f core conftest.err conftest.$ac_objext
5348 test "x$ac_cv_prog_cc_c89" != "xno" && break
5350 rm -f conftest.$ac_ext
5355 case "x$ac_cv_prog_cc_c89" in
5357 { echo "$as_me:$LINENO: result: none needed" >&5
5358 echo "${ECHO_T}none needed" >&6; } ;;
5360 { echo "$as_me:$LINENO: result: unsupported" >&5
5361 echo "${ECHO_T}unsupported" >&6; } ;;
5363 CC="$CC $ac_cv_prog_cc_c89"
5364 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5365 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5370 ac_cpp='$CPP $CPPFLAGS'
5371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375 depcc="$CC" am_compiler_list=
5377 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5378 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5379 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5383 # We make a subdir and do the tests there. Otherwise we can end up
5384 # making bogus files that we don't know about and never remove. For
5385 # instance it was reported that on HP-UX the gcc test will end up
5386 # making a dummy file named `D' -- because `-MD' means `put the output
5389 # Copy depcomp to subdir because otherwise we won't find it if we're
5390 # using a relative directory.
5391 cp "$am_depcomp" conftest.dir
5393 # We will build objects and dependencies in a subdirectory because
5394 # it helps to detect inapplicable dependency modes. For instance
5395 # both Tru64's cc and ICC support -MD to output dependencies as a
5396 # side effect of compilation, but ICC will put the dependencies in
5397 # the current directory while Tru64 will put them in the object
5401 am_cv_CC_dependencies_compiler_type=none
5402 if test "$am_compiler_list" = ""; then
5403 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5405 for depmode in $am_compiler_list; do
5406 # Setup a source with many dependencies, because some compilers
5407 # like to wrap large dependency lists on column 80 (with \), and
5408 # we should not choose a depcomp mode which is confused by this.
5410 # We need to recreate these files for each test, as the compiler may
5411 # overwrite some of them when testing with obscure command lines.
5412 # This happens at least with the AIX C compiler.
5414 for i in 1 2 3 4 5 6; do
5415 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5416 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5417 # Solaris 8's {/usr,}/bin/sh.
5418 touch sub/conftst$i.h
5420 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5424 # after this tag, mechanisms are not by side-effect, so they'll
5425 # only be used when explicitly requested
5426 if test "x$enable_dependency_tracking" = xyes; then
5434 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5435 # mode. It turns out that the SunPro C++ compiler does not properly
5436 # handle `-M -o', and we need to detect this.
5437 if depmode=$depmode \
5438 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5439 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5440 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5441 >/dev/null 2>conftest.err &&
5442 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5443 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5444 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5445 # icc doesn't choke on unknown options, it will just issue warnings
5446 # or remarks (even with -Werror). So we grep stderr for any message
5447 # that says an option was ignored or not supported.
5448 # When given -MP, icc 7.0 and 7.1 complain thusly:
5449 # icc: Command line warning: ignoring option '-M'; no argument required
5450 # The diagnosis changed in icc 8.0:
5451 # icc: Command line remark: option '-MP' not supported
5452 if (grep 'ignoring option' conftest.err ||
5453 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5454 am_cv_CC_dependencies_compiler_type=$depmode
5463 am_cv_CC_dependencies_compiler_type=none
5467 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5468 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5469 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5474 test "x$enable_dependency_tracking" != xno \
5475 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5477 am__fastdepCC_FALSE='#'
5479 am__fastdepCC_TRUE='#'
5480 am__fastdepCC_FALSE=
5485 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5488 ac_cpp='$CPP $CPPFLAGS'
5489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5492 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5493 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5494 # On Suns, sometimes $CPP names a directory.
5495 if test -n "$CPP" && test -d "$CPP"; then
5498 if test -z "$CPP"; then
5499 if test "${ac_cv_prog_CPP+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 # Double quotes because CPP needs to be expanded
5503 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5506 for ac_c_preproc_warn_flag in '' yes
5508 # Use a header file that comes with gcc, so configuring glibc
5509 # with a fresh cross-compiler works.
5510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5511 # <limits.h> exists even on freestanding compilers.
5512 # On the NeXT, cc -E runs the code through the compiler's parser,
5513 # not just through cpp. "Syntax error" is here to catch this case.
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5521 # include <limits.h>
5523 # include <assert.h>
5527 if { (ac_try="$ac_cpp conftest.$ac_ext"
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } >/dev/null && {
5540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5541 test ! -s conftest.err
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5548 # Broken: fails on valid input.
5552 rm -f conftest.err conftest.$ac_ext
5554 # OK, works on sane cases. Now check whether nonexistent headers
5555 # can be detected and how.
5556 cat >conftest.$ac_ext <<_ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 #include <ac_nonexistent.h>
5564 if { (ac_try="$ac_cpp conftest.$ac_ext"
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5572 grep -v '^ *+' conftest.er1 >conftest.err
5574 cat conftest.err >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } >/dev/null && {
5577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5578 test ! -s conftest.err
5580 # Broken: success on invalid input.
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5586 # Passes both tests.
5591 rm -f conftest.err conftest.$ac_ext
5594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5595 rm -f conftest.err conftest.$ac_ext
5596 if $ac_preproc_ok; then
5608 { echo "$as_me:$LINENO: result: $CPP" >&5
5609 echo "${ECHO_T}$CPP" >&6; }
5611 for ac_c_preproc_warn_flag in '' yes
5613 # Use a header file that comes with gcc, so configuring glibc
5614 # with a fresh cross-compiler works.
5615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5616 # <limits.h> exists even on freestanding compilers.
5617 # On the NeXT, cc -E runs the code through the compiler's parser,
5618 # not just through cpp. "Syntax error" is here to catch this case.
5619 cat >conftest.$ac_ext <<_ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5626 # include <limits.h>
5628 # include <assert.h>
5632 if { (ac_try="$ac_cpp conftest.$ac_ext"
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5640 grep -v '^ *+' conftest.er1 >conftest.err
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } >/dev/null && {
5645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5653 # Broken: fails on valid input.
5657 rm -f conftest.err conftest.$ac_ext
5659 # OK, works on sane cases. Now check whether nonexistent headers
5660 # can be detected and how.
5661 cat >conftest.$ac_ext <<_ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 #include <ac_nonexistent.h>
5669 if { (ac_try="$ac_cpp conftest.$ac_ext"
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5677 grep -v '^ *+' conftest.er1 >conftest.err
5679 cat conftest.err >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } >/dev/null && {
5682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5683 test ! -s conftest.err
5685 # Broken: success on invalid input.
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5691 # Passes both tests.
5696 rm -f conftest.err conftest.$ac_ext
5699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5700 rm -f conftest.err conftest.$ac_ext
5701 if $ac_preproc_ok; then
5704 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5705 See \`config.log' for more details." >&5
5706 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5707 See \`config.log' for more details." >&2;}
5708 { (exit 1); exit 1; }; }
5712 ac_cpp='$CPP $CPPFLAGS'
5713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5719 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5721 if test -z "$CC_FOR_BUILD"; then
5722 if test "$#" = yes; then
5723 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5724 See \`config.log' for more details." >&5
5725 echo "$as_me: error: cannot run test program while cross compiling
5726 See \`config.log' for more details." >&2;}
5727 { (exit 1); exit 1; }; }
5729 cat >conftest.$ac_ext <<_ACEOF
5730 int main(){return 0;}
5732 rm -f conftest$ac_exeext
5733 if { (ac_try="$ac_link"
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_link") 2>&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5743 { (case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_try") 2>&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5754 echo "$as_me: program exited with status $ac_status" >&5
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5767 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5768 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5769 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5770 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5771 if test -n "$ac_build_tool_prefix"; then
5772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5773 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5776 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 if test -n "$CC_FOR_BUILD"; then
5780 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5800 if test -n "$CC_FOR_BUILD"; then
5801 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5802 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5804 { echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6; }
5810 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5811 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5812 # Extract the first word of "gcc", so it can be a program name with args.
5813 set dummy gcc; ac_word=$2
5814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5816 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 if test -n "$ac_ct_CC_FOR_BUILD"; then
5820 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5840 if test -n "$ac_ct_CC_FOR_BUILD"; then
5841 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5842 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5844 { echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6; }
5848 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5851 case $#:$ac_tool_warned in
5853 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5854 whose name does not start with the build triplet. If you think this
5855 configuration is useful to you, please write to autoconf@gnu.org." >&5
5856 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5857 whose name does not start with the build triplet. If you think this
5858 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5859 ac_tool_warned=yes ;;
5861 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5864 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5867 if test -z "$CC_FOR_BUILD"; then
5868 if test -n "$ac_build_tool_prefix"; then
5869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5870 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 if test -n "$CC_FOR_BUILD"; then
5877 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5897 if test -n "$CC_FOR_BUILD"; then
5898 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5899 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5901 { echo "$as_me:$LINENO: result: no" >&5
5902 echo "${ECHO_T}no" >&6; }
5908 if test -z "$CC_FOR_BUILD"; then
5909 # Extract the first word of "cc", so it can be a program name with args.
5910 set dummy cc; ac_word=$2
5911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5913 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 if test -n "$CC_FOR_BUILD"; then
5917 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5928 ac_prog_rejected=yes
5931 ac_cv_prog_CC_FOR_BUILD="cc"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 if test $ac_prog_rejected = yes; then
5940 # We found a bogon in the path, so make sure we never use it.
5941 set dummy $ac_cv_prog_CC_FOR_BUILD
5943 if test $# != 0; then
5944 # We chose a different compiler from the bogus one.
5945 # However, it has the same basename, so the bogon will be chosen
5946 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5948 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5953 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5954 if test -n "$CC_FOR_BUILD"; then
5955 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5956 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5958 { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5964 if test -z "$CC_FOR_BUILD"; then
5965 if test -n "$ac_build_tool_prefix"; then
5966 for ac_prog in cl.exe
5968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5969 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 if test -n "$CC_FOR_BUILD"; then
5976 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5996 if test -n "$CC_FOR_BUILD"; then
5997 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5998 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
6000 { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6005 test -n "$CC_FOR_BUILD" && break
6008 if test -z "$CC_FOR_BUILD"; then
6009 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6010 for ac_prog in cl.exe
6012 # Extract the first word of "$ac_prog", so it can be a program name with args.
6013 set dummy $ac_prog; ac_word=$2
6014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6016 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 if test -n "$ac_ct_CC_FOR_BUILD"; then
6020 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
6030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6040 if test -n "$ac_ct_CC_FOR_BUILD"; then
6041 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
6042 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
6044 { echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6; }
6049 test -n "$ac_ct_CC_FOR_BUILD" && break
6052 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6055 case $#:$ac_tool_warned in
6057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6058 whose name does not start with the build triplet. If you think this
6059 configuration is useful to you, please write to autoconf@gnu.org." >&5
6060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6061 whose name does not start with the build triplet. If you think this
6062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6063 ac_tool_warned=yes ;;
6065 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6072 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6073 See \`config.log' for more details." >&5
6074 echo "$as_me: error: no acceptable C compiler found in \$PATH
6075 See \`config.log' for more details." >&2;}
6076 { (exit 1); exit 1; }; }
6078 # Provide some information about the compiler.
6079 echo "$as_me:$LINENO: checking for C compiler version" >&5
6080 ac_compiler=`set X $ac_build_compile; echo $2`
6081 { (ac_try="$ac_compiler --version >&5"
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_compiler --version >&5") 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }
6091 { (ac_try="$ac_compiler -v >&5"
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_compiler -v >&5") 2>&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }
6101 { (ac_try="$ac_compiler -V >&5"
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_compiler -V >&5") 2>&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }
6112 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6113 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6114 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 cat >conftest.$ac_ext <<_ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6135 rm -f conftest.$ac_build_objext
6136 if { (ac_try="$ac_build_compile"
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_build_compile") 2>conftest.er1
6144 grep -v '^ *+' conftest.er1 >conftest.err
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } && {
6149 test -z "$ac_c_werror_flag" ||
6150 test ! -s conftest.err
6151 } && test -s conftest.$ac_build_objext; then
6152 ac_build_compiler_gnu=yes
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6157 ac_build_compiler_gnu=no
6160 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6161 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
6164 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6165 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6166 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
6167 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
6168 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
6169 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
6170 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
6171 if test "${ac_cv_build_prog_cc_g+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 ac_save_c_werror_flag=$ac_c_werror_flag
6175 ac_c_werror_flag=yes
6176 ac_cv_build_prog_cc_g=no
6177 CFLAGS_FOR_BUILD="-g"
6178 cat >conftest.$ac_ext <<_ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6193 rm -f conftest.$ac_build_objext
6194 if { (ac_try="$ac_build_compile"
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_build_compile") 2>conftest.er1
6202 grep -v '^ *+' conftest.er1 >conftest.err
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } && {
6207 test -z "$ac_c_werror_flag" ||
6208 test ! -s conftest.err
6209 } && test -s conftest.$ac_build_objext; then
6210 ac_cv_build_prog_cc_g=yes
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6216 cat >conftest.$ac_ext <<_ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6231 rm -f conftest.$ac_build_objext
6232 if { (ac_try="$ac_build_compile"
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_build_compile") 2>conftest.er1
6240 grep -v '^ *+' conftest.er1 >conftest.err
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } && {
6245 test -z "$ac_c_werror_flag" ||
6246 test ! -s conftest.err
6247 } && test -s conftest.$ac_build_objext; then
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 ac_c_werror_flag=$ac_save_c_werror_flag
6254 CFLAGS_FOR_BUILD="-g"
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6270 rm -f conftest.$ac_build_objext
6271 if { (ac_try="$ac_build_compile"
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_build_compile") 2>conftest.er1
6279 grep -v '^ *+' conftest.er1 >conftest.err
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest.$ac_build_objext; then
6287 ac_cv_build_prog_cc_g=yes
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6295 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6298 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6301 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6302 ac_c_werror_flag=$ac_save_c_werror_flag
6304 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6305 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6306 if test "$ac_test_CFLAGS" = set; then
6307 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6308 elif test $ac_cv_build_prog_cc_g = yes; then
6309 if test "$GCC" = yes; then
6310 CFLAGS_FOR_BUILD="-g -O2"
6312 CFLAGS_FOR_BUILD="-g"
6315 if test "$GCC" = yes; then
6316 CFLAGS_FOR_BUILD="-O2"
6321 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6322 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6323 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 ac_cv_build_prog_cc_stdc=no
6327 ac_save_CC=$CC_FOR_BUILD
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6336 #include <sys/types.h>
6337 #include <sys/stat.h>
6338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6339 struct buf { int x; };
6340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6341 static char *e (p, i)
6347 static char *f (char * (*g) (char **, int), char **p, ...)
6352 s = g (p, va_arg (v,int));
6357 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6358 function prototypes and stuff, but not '\xHH' hex character constants.
6359 These don't provoke an error unfortunately, instead are silently treated
6360 as 'x'. The following induces an error, until -std is added to get
6361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6362 array size at least. It's necessary to write '\x00'==0 to get something
6363 that's true only with -std. */
6364 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6366 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6367 inside strings and character constants. */
6369 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6371 int test (int i, double x);
6372 struct s1 {int (*f) (int a);};
6373 struct s2 {int (*f) (double a);};
6374 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6380 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6385 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6386 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6388 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6389 rm -f conftest.$ac_build_objext
6390 if { (ac_try="$ac_build_compile"
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_build_compile") 2>conftest.er1
6398 grep -v '^ *+' conftest.er1 >conftest.err
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } && {
6403 test -z "$ac_c_werror_flag" ||
6404 test ! -s conftest.err
6405 } && test -s conftest.$ac_build_objext; then
6406 ac_cv_build_prog_cc_stdc=$ac_arg
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6414 rm -f core conftest.err conftest.$ac_build_objext
6415 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6417 rm -f conftest.$ac_ext
6418 CC_FOR_BUILD=$ac_save_CC
6422 case "x$ac_cv_build_prog_cc_stdc" in
6424 { echo "$as_me:$LINENO: result: none needed" >&5
6425 echo "${ECHO_T}none needed" >&6; } ;;
6427 { echo "$as_me:$LINENO: result: unsupported" >&5
6428 echo "${ECHO_T}unsupported" >&6; } ;;
6430 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6431 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6432 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6437 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6438 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6439 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6442 depcc="$CC_FOR_BUILD" am_compiler_list=
6444 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6445 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6446 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6450 # We make a subdir and do the tests there. Otherwise we can end up
6451 # making bogus files that we don't know about and never remove. For
6452 # instance it was reported that on HP-UX the gcc test will end up
6453 # making a dummy file named `D' -- because `-MD' means `put the output
6456 # Copy depcomp to subdir because otherwise we won't find it if we're
6457 # using a relative directory.
6458 cp "$am_depcomp" conftest.dir
6460 # We will build objects and dependencies in a subdirectory because
6461 # it helps to detect inapplicable dependency modes. For instance
6462 # both Tru64's cc and ICC support -MD to output dependencies as a
6463 # side effect of compilation, but ICC will put the dependencies in
6464 # the current directory while Tru64 will put them in the object
6468 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6469 if test "$am_compiler_list" = ""; then
6470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6472 for depmode in $am_compiler_list; do
6473 # Setup a source with many dependencies, because some compilers
6474 # like to wrap large dependency lists on column 80 (with \), and
6475 # we should not choose a depcomp mode which is confused by this.
6477 # We need to recreate these files for each test, as the compiler may
6478 # overwrite some of them when testing with obscure command lines.
6479 # This happens at least with the AIX C compiler.
6481 for i in 1 2 3 4 5 6; do
6482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6484 # Solaris 8's {/usr,}/bin/sh.
6485 touch sub/conftst$i.h
6487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6491 # after this tag, mechanisms are not by side-effect, so they'll
6492 # only be used when explicitly requested
6493 if test "x$enable_dependency_tracking" = xyes; then
6501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6502 # mode. It turns out that the SunPro C++ compiler does not properly
6503 # handle `-M -o', and we need to detect this.
6504 if depmode=$depmode \
6505 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6507 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6508 >/dev/null 2>conftest.err &&
6509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6510 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6512 # icc doesn't choke on unknown options, it will just issue warnings
6513 # or remarks (even with -Werror). So we grep stderr for any message
6514 # that says an option was ignored or not supported.
6515 # When given -MP, icc 7.0 and 7.1 complain thusly:
6516 # icc: Command line warning: ignoring option '-M'; no argument required
6517 # The diagnosis changed in icc 8.0:
6518 # icc: Command line remark: option '-MP' not supported
6519 if (grep 'ignoring option' conftest.err ||
6520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6521 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6530 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6534 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6535 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6536 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6541 test "x$enable_dependency_tracking" != xno \
6542 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6543 am__fastdepCC_FOR_BUILD_TRUE=
6544 am__fastdepCC_FOR_BUILD_FALSE='#'
6546 am__fastdepCC_FOR_BUILD_TRUE='#'
6547 am__fastdepCC_FOR_BUILD_FALSE=
6551 case $ac_cv_build_prog_cc_stdc in
6552 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6553 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6554 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6555 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 ac_cv_build_prog_cc_stdc=no
6559 ac_save_CC=$CC_FOR_BUILD
6560 cat >conftest.$ac_ext <<_ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6567 #include <stdbool.h>
6572 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6573 #define debug(...) fprintf (stderr, __VA_ARGS__)
6574 #define showlist(...) puts (#__VA_ARGS__)
6575 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6577 test_varargs_macros (void)
6582 debug ("X = %d\n", x);
6583 showlist (The first, second, and third items.);
6584 report (x>y, "x is %d but y is %d", x, y);
6587 // Check long long types.
6588 #define BIG64 18446744073709551615ull
6589 #define BIG32 4294967295ul
6590 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6592 your preprocessor is broken;
6596 your preprocessor is broken;
6598 static long long int bignum = -9223372036854775807LL;
6599 static unsigned long long int ubignum = BIG64;
6601 struct incomplete_array
6609 const wchar_t *name;
6613 typedef const char *ccp;
6616 test_restrict (ccp restrict text)
6618 // See if C++-style comments work.
6619 // Iterate through items via the restricted pointer.
6620 // Also check for declarations in for loops.
6621 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6626 // Check varargs and va_copy.
6628 test_varargs (const char *format, ...)
6631 va_start (args, format);
6633 va_copy (args_copy, args);
6644 str = va_arg (args_copy, const char *);
6647 number = va_arg (args_copy, int);
6650 fnumber = va_arg (args_copy, double);
6665 _Bool success = false;
6668 if (test_restrict ("String literal") == 0)
6670 char *restrict newvar = "Another string";
6673 test_varargs ("s, d' f .", "string", 65, 34.234);
6674 test_varargs_macros ();
6676 // Check flexible array members.
6677 struct incomplete_array *ia =
6678 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6680 for (int i = 0; i < ia->datasize; ++i)
6681 ia->data[i] = i * 1.234;
6683 // Check named initializers.
6684 struct named_init ni = {
6686 .name = L"Test wide string",
6687 .average = 543.34343,
6692 int dynamic_array[ni.number];
6693 dynamic_array[ni.number - 1] = 543;
6695 // work around unused variable warnings
6696 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6697 || dynamic_array[ni.number - 1] != 543);
6703 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6705 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6706 rm -f conftest.$ac_build_objext
6707 if { (ac_try="$ac_build_compile"
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_build_compile") 2>conftest.er1
6715 grep -v '^ *+' conftest.er1 >conftest.err
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } && {
6720 test -z "$ac_c_werror_flag" ||
6721 test ! -s conftest.err
6722 } && test -s conftest.$ac_build_objext; then
6723 ac_cv_build_prog_cc_stdc=$ac_arg
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6731 rm -f core conftest.err conftest.$ac_build_objext
6732 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6734 rm -f conftest.$ac_ext
6735 CC_FOR_BUILD=$ac_save_CC
6739 case "x$ac_cv_build_prog_cc_stdc" in
6741 { echo "$as_me:$LINENO: result: none needed" >&5
6742 echo "${ECHO_T}none needed" >&6; } ;;
6744 { echo "$as_me:$LINENO: result: unsupported" >&5
6745 echo "${ECHO_T}unsupported" >&6; } ;;
6747 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6748 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6749 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6751 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6752 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6754 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6755 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6756 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 ac_cv_build_prog_cc_stdc=no
6760 ac_save_CC=$CC_FOR_BUILD
6761 cat >conftest.$ac_ext <<_ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6769 #include <sys/types.h>
6770 #include <sys/stat.h>
6771 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6772 struct buf { int x; };
6773 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6774 static char *e (p, i)
6780 static char *f (char * (*g) (char **, int), char **p, ...)
6785 s = g (p, va_arg (v,int));
6790 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6791 function prototypes and stuff, but not '\xHH' hex character constants.
6792 These don't provoke an error unfortunately, instead are silently treated
6793 as 'x'. The following induces an error, until -std is added to get
6794 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6795 array size at least. It's necessary to write '\x00'==0 to get something
6796 that's true only with -std. */
6797 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6799 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6800 inside strings and character constants. */
6802 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6804 int test (int i, double x);
6805 struct s1 {int (*f) (int a);};
6806 struct s2 {int (*f) (double a);};
6807 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6813 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6818 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6819 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6821 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6822 rm -f conftest.$ac_build_objext
6823 if { (ac_try="$ac_build_compile"
6825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6826 *) ac_try_echo=$ac_try;;
6828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6829 (eval "$ac_build_compile") 2>conftest.er1
6831 grep -v '^ *+' conftest.er1 >conftest.err
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } && {
6836 test -z "$ac_c_werror_flag" ||
6837 test ! -s conftest.err
6838 } && test -s conftest.$ac_build_objext; then
6839 ac_cv_build_prog_cc_stdc=$ac_arg
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6847 rm -f core conftest.err conftest.$ac_build_objext
6848 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6850 rm -f conftest.$ac_ext
6851 CC_FOR_BUILD=$ac_save_CC
6855 case "x$ac_cv_build_prog_cc_stdc" in
6857 { echo "$as_me:$LINENO: result: none needed" >&5
6858 echo "${ECHO_T}none needed" >&6; } ;;
6860 { echo "$as_me:$LINENO: result: unsupported" >&5
6861 echo "${ECHO_T}unsupported" >&6; } ;;
6863 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6864 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6865 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6867 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6868 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6870 ac_cv_build_prog_cc_stdc=no
6878 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6879 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6880 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 case $ac_cv_build_prog_cc_stdc in
6885 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6886 echo "${ECHO_T}unsupported" >&6; } ;;
6887 '') { echo "$as_me:$LINENO: result: none needed" >&5
6888 echo "${ECHO_T}none needed" >&6; } ;;
6889 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6890 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6895 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6896 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6897 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6898 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6899 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6900 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6901 # On Suns, sometimes $CPP names a directory.
6902 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6905 if test -z "$CPP_FOR_BUILD"; then
6906 if test "${ac_cv_build_prog_CPP+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 # Double quotes because CPP needs to be expanded
6910 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6913 for ac_c_preproc_warn_flag in '' yes
6915 # Use a header file that comes with gcc, so configuring glibc
6916 # with a fresh cross-compiler works.
6917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6918 # <limits.h> exists even on freestanding compilers.
6919 # On the NeXT, cc -E runs the code through the compiler's parser,
6920 # not just through cpp. "Syntax error" is here to catch this case.
6921 cat >conftest.$ac_ext <<_ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6928 # include <limits.h>
6930 # include <assert.h>
6934 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6942 grep -v '^ *+' conftest.er1 >conftest.err
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } >/dev/null && {
6947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6948 test ! -s conftest.err
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6955 # Broken: fails on valid input.
6959 rm -f conftest.err conftest.$ac_ext
6961 # OK, works on sane cases. Now check whether nonexistent headers
6962 # can be detected and how.
6963 cat >conftest.$ac_ext <<_ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 #include <ac_nonexistent.h>
6971 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6979 grep -v '^ *+' conftest.er1 >conftest.err
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } >/dev/null && {
6984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6987 # Broken: success on invalid input.
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 # Passes both tests.
6998 rm -f conftest.err conftest.$ac_ext
7001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7002 rm -f conftest.err conftest.$ac_ext
7003 if $ac_preproc_ok; then
7008 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7011 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
7013 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7015 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
7016 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
7018 for ac_c_preproc_warn_flag in '' yes
7020 # Use a header file that comes with gcc, so configuring glibc
7021 # with a fresh cross-compiler works.
7022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7023 # <limits.h> exists even on freestanding compilers.
7024 # On the NeXT, cc -E runs the code through the compiler's parser,
7025 # not just through cpp. "Syntax error" is here to catch this case.
7026 cat >conftest.$ac_ext <<_ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7033 # include <limits.h>
7035 # include <assert.h>
7039 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7047 grep -v '^ *+' conftest.er1 >conftest.err
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } >/dev/null && {
7052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7053 test ! -s conftest.err
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 # Broken: fails on valid input.
7064 rm -f conftest.err conftest.$ac_ext
7066 # OK, works on sane cases. Now check whether nonexistent headers
7067 # can be detected and how.
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 #include <ac_nonexistent.h>
7076 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7084 grep -v '^ *+' conftest.er1 >conftest.err
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } >/dev/null && {
7089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7092 # Broken: success on invalid input.
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7098 # Passes both tests.
7103 rm -f conftest.err conftest.$ac_ext
7106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7107 rm -f conftest.err conftest.$ac_ext
7108 if $ac_preproc_ok; then
7111 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7112 See \`config.log' for more details." >&5
7113 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7114 See \`config.log' for more details." >&2;}
7115 { (exit 1); exit 1; }; }
7119 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7120 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7121 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
7127 BUILD_EXEEXT=$ac_build_exeext
7128 BUILD_OBJEXT=$ac_build_objext
7131 ac_cpp='$OBJCPP $CPPFLAGS'
7132 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7133 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7134 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7135 if test -n "$ac_tool_prefix"; then
7136 for ac_prog in gcc objcc objc cc CC
7138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142 if test "${ac_cv_prog_OBJC+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 if test -n "$OBJC"; then
7146 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 OBJC=$ac_cv_prog_OBJC
7166 if test -n "$OBJC"; then
7167 { echo "$as_me:$LINENO: result: $OBJC" >&5
7168 echo "${ECHO_T}$OBJC" >&6; }
7170 { echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6; }
7175 test -n "$OBJC" && break
7178 if test -z "$OBJC"; then
7180 for ac_prog in gcc objcc objc cc CC
7182 # Extract the first word of "$ac_prog", so it can be a program name with args.
7183 set dummy $ac_prog; ac_word=$2
7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 if test -n "$ac_ct_OBJC"; then
7190 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7199 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7210 if test -n "$ac_ct_OBJC"; then
7211 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7212 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
7214 { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7219 test -n "$ac_ct_OBJC" && break
7222 if test "x$ac_ct_OBJC" = x; then
7225 case $cross_compiling:$ac_tool_warned in
7227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7228 whose name does not start with the host triplet. If you think this
7229 configuration is useful to you, please write to autoconf@gnu.org." >&5
7230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7231 whose name does not start with the host triplet. If you think this
7232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7233 ac_tool_warned=yes ;;
7239 # Provide some information about the compiler.
7240 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7241 ac_compiler=`set X $ac_compile; echo $2`
7242 { (ac_try="$ac_compiler --version >&5"
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_compiler --version >&5") 2>&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }
7252 { (ac_try="$ac_compiler -v >&5"
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258 (eval "$ac_compiler -v >&5") 2>&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }
7262 { (ac_try="$ac_compiler -V >&5"
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compiler -V >&5") 2>&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }
7273 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7274 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
7275 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7296 rm -f conftest.$ac_objext
7297 if { (ac_try="$ac_compile"
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303 (eval "$ac_compile") 2>conftest.er1
7305 grep -v '^ *+' conftest.er1 >conftest.err
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } && {
7310 test -z "$ac_objc_werror_flag" ||
7311 test ! -s conftest.err
7312 } && test -s conftest.$ac_objext; then
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7325 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7326 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
7327 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
7328 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7329 ac_save_OBJCFLAGS=$OBJCFLAGS
7330 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7331 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
7332 if test "${ac_cv_prog_objc_g+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 ac_save_objc_werror_flag=$ac_objc_werror_flag
7336 ac_objc_werror_flag=yes
7337 ac_cv_prog_objc_g=no
7339 cat >conftest.$ac_ext <<_ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7354 rm -f conftest.$ac_objext
7355 if { (ac_try="$ac_compile"
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7363 grep -v '^ *+' conftest.er1 >conftest.err
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_objc_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.$ac_objext; then
7371 ac_cv_prog_objc_g=yes
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7377 cat >conftest.$ac_ext <<_ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7392 rm -f conftest.$ac_objext
7393 if { (ac_try="$ac_compile"
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7401 grep -v '^ *+' conftest.er1 >conftest.err
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_objc_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 ac_objc_werror_flag=$ac_save_objc_werror_flag
7416 cat >conftest.$ac_ext <<_ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7431 rm -f conftest.$ac_objext
7432 if { (ac_try="$ac_compile"
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_compile") 2>conftest.er1
7440 grep -v '^ *+' conftest.er1 >conftest.err
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } && {
7445 test -z "$ac_objc_werror_flag" ||
7446 test ! -s conftest.err
7447 } && test -s conftest.$ac_objext; then
7448 ac_cv_prog_objc_g=yes
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 ac_objc_werror_flag=$ac_save_objc_werror_flag
7465 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7466 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
7467 if test "$ac_test_OBJCFLAGS" = set; then
7468 OBJCFLAGS=$ac_save_OBJCFLAGS
7469 elif test $ac_cv_prog_objc_g = yes; then
7470 if test "$GOBJC" = yes; then
7476 if test "$GOBJC" = yes; then
7483 ac_cpp='$CPP $CPPFLAGS'
7484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7488 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7489 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7490 if test "${ac_cv_path_SED+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7494 for ac_i in 1 2 3 4 5 6 7; do
7495 ac_script="$ac_script$as_nl$ac_script"
7497 echo "$ac_script" | sed 99q >conftest.sed
7498 $as_unset ac_script || ac_script=
7499 # Extract the first word of "sed gsed" to use in msg output
7500 if test -z "$SED"; then
7501 set dummy sed gsed; ac_prog_name=$2
7502 if test "${ac_cv_path_SED+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 ac_path_SED_found=false
7506 # Loop through the user's path and test for each of PROGNAME-LIST
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_prog in sed gsed; do
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7515 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7516 # Check for GNU ac_path_SED and select it if it is found.
7517 # Check for GNU $ac_path_SED
7518 case `"$ac_path_SED" --version 2>&1` in
7520 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7523 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7526 cat "conftest.in" "conftest.in" >"conftest.tmp"
7527 mv "conftest.tmp" "conftest.in"
7528 cp "conftest.in" "conftest.nl"
7529 echo '' >> "conftest.nl"
7530 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7532 ac_count=`expr $ac_count + 1`
7533 if test $ac_count -gt ${ac_path_SED_max-0}; then
7534 # Best one so far, save it but keep looking for a better one
7535 ac_cv_path_SED="$ac_path_SED"
7536 ac_path_SED_max=$ac_count
7538 # 10*(2^10) chars as input seems more than enough
7539 test $ac_count -gt 10 && break
7541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7545 $ac_path_SED_found && break 3
7555 SED="$ac_cv_path_SED"
7556 if test -z "$SED"; then
7557 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
7558 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
7559 { (exit 1); exit 1; }; }
7567 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7568 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
7569 SED="$ac_cv_path_SED"
7572 # By default we simply use the C compiler to build assembly code.
7574 test "${CCAS+set}" = set || CCAS=$CC
7575 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7579 if test -n "$ac_tool_prefix"; then
7580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_prog_RANLIB+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 if test -n "$RANLIB"; then
7588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 RANLIB=$ac_cv_prog_RANLIB
7608 if test -n "$RANLIB"; then
7609 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7610 echo "${ECHO_T}$RANLIB" >&6; }
7612 { echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6; }
7618 if test -z "$ac_cv_prog_RANLIB"; then
7619 ac_ct_RANLIB=$RANLIB
7620 # Extract the first word of "ranlib", so it can be a program name with args.
7621 set dummy ranlib; ac_word=$2
7622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 if test -n "$ac_ct_RANLIB"; then
7628 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 ac_cv_prog_ac_ct_RANLIB="ranlib"
7638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7648 if test -n "$ac_ct_RANLIB"; then
7649 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7650 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7652 { echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6; }
7656 if test "x$ac_ct_RANLIB" = x; then
7659 case $cross_compiling:$ac_tool_warned in
7661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7662 whose name does not start with the host triplet. If you think this
7663 configuration is useful to you, please write to autoconf@gnu.org." >&5
7664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7665 whose name does not start with the host triplet. If you think this
7666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7667 ac_tool_warned=yes ;;
7669 RANLIB=$ac_ct_RANLIB
7672 RANLIB="$ac_cv_prog_RANLIB"
7676 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7677 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7678 if test "${ac_cv_path_GREP+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 # Extract the first word of "grep ggrep" to use in msg output
7682 if test -z "$GREP"; then
7683 set dummy grep ggrep; ac_prog_name=$2
7684 if test "${ac_cv_path_GREP+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 ac_path_GREP_found=false
7688 # Loop through the user's path and test for each of PROGNAME-LIST
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7693 test -z "$as_dir" && as_dir=.
7694 for ac_prog in grep ggrep; do
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7697 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7698 # Check for GNU ac_path_GREP and select it if it is found.
7699 # Check for GNU $ac_path_GREP
7700 case `"$ac_path_GREP" --version 2>&1` in
7702 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7705 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7708 cat "conftest.in" "conftest.in" >"conftest.tmp"
7709 mv "conftest.tmp" "conftest.in"
7710 cp "conftest.in" "conftest.nl"
7711 echo 'GREP' >> "conftest.nl"
7712 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7714 ac_count=`expr $ac_count + 1`
7715 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7716 # Best one so far, save it but keep looking for a better one
7717 ac_cv_path_GREP="$ac_path_GREP"
7718 ac_path_GREP_max=$ac_count
7720 # 10*(2^10) chars as input seems more than enough
7721 test $ac_count -gt 10 && break
7723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7727 $ac_path_GREP_found && break 3
7737 GREP="$ac_cv_path_GREP"
7738 if test -z "$GREP"; then
7739 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7740 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7741 { (exit 1); exit 1; }; }
7745 ac_cv_path_GREP=$GREP
7750 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7751 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7752 GREP="$ac_cv_path_GREP"
7755 { echo "$as_me:$LINENO: checking for egrep" >&5
7756 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7757 if test "${ac_cv_path_EGREP+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7761 then ac_cv_path_EGREP="$GREP -E"
7763 # Extract the first word of "egrep" to use in msg output
7764 if test -z "$EGREP"; then
7765 set dummy egrep; ac_prog_name=$2
7766 if test "${ac_cv_path_EGREP+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 ac_path_EGREP_found=false
7770 # Loop through the user's path and test for each of PROGNAME-LIST
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7775 test -z "$as_dir" && as_dir=.
7776 for ac_prog in egrep; do
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7779 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7780 # Check for GNU ac_path_EGREP and select it if it is found.
7781 # Check for GNU $ac_path_EGREP
7782 case `"$ac_path_EGREP" --version 2>&1` in
7784 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7787 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7790 cat "conftest.in" "conftest.in" >"conftest.tmp"
7791 mv "conftest.tmp" "conftest.in"
7792 cp "conftest.in" "conftest.nl"
7793 echo 'EGREP' >> "conftest.nl"
7794 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7796 ac_count=`expr $ac_count + 1`
7797 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7798 # Best one so far, save it but keep looking for a better one
7799 ac_cv_path_EGREP="$ac_path_EGREP"
7800 ac_path_EGREP_max=$ac_count
7802 # 10*(2^10) chars as input seems more than enough
7803 test $ac_count -gt 10 && break
7805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7809 $ac_path_EGREP_found && break 3
7819 EGREP="$ac_cv_path_EGREP"
7820 if test -z "$EGREP"; then
7821 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7822 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7823 { (exit 1); exit 1; }; }
7827 ac_cv_path_EGREP=$EGREP
7833 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7834 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7835 EGREP="$ac_cv_path_EGREP"
7838 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7839 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7840 if test "${ac_cv_header_stdc+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 cat >conftest.$ac_ext <<_ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7862 rm -f conftest.$ac_objext
7863 if { (ac_try="$ac_compile"
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_compile") 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest.$ac_objext; then
7879 ac_cv_header_stdc=yes
7881 echo "$as_me: failed program was:" >&5
7882 sed 's/^/| /' conftest.$ac_ext >&5
7884 ac_cv_header_stdc=no
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889 if test $ac_cv_header_stdc = yes; then
7890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7891 cat >conftest.$ac_ext <<_ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h. */
7900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7901 $EGREP "memchr" >/dev/null 2>&1; then
7904 ac_cv_header_stdc=no
7910 if test $ac_cv_header_stdc = yes; then
7911 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7912 cat >conftest.$ac_ext <<_ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7922 $EGREP "free" >/dev/null 2>&1; then
7925 ac_cv_header_stdc=no
7931 if test $ac_cv_header_stdc = yes; then
7932 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7933 if test "$cross_compiling" = yes; then
7936 cat >conftest.$ac_ext <<_ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7944 #if ((' ' & 0x0FF) == 0x020)
7945 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7946 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7948 # define ISLOWER(c) \
7949 (('a' <= (c) && (c) <= 'i') \
7950 || ('j' <= (c) && (c) <= 'r') \
7951 || ('s' <= (c) && (c) <= 'z'))
7952 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7960 for (i = 0; i < 256; i++)
7961 if (XOR (islower (i), ISLOWER (i))
7962 || toupper (i) != TOUPPER (i))
7967 rm -f conftest$ac_exeext
7968 if { (ac_try="$ac_link"
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_link") 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7978 { (case "(($ac_try" in
7979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7980 *) ac_try_echo=$ac_try;;
7982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7983 (eval "$ac_try") 2>&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7989 echo "$as_me: program exited with status $ac_status" >&5
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7994 ac_cv_header_stdc=no
7996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8002 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8003 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8004 if test $ac_cv_header_stdc = yes; then
8006 cat >>confdefs.h <<\_ACEOF
8007 #define STDC_HEADERS 1
8012 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8022 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8023 inttypes.h stdint.h unistd.h
8025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 cat >conftest.$ac_ext <<_ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 $ac_includes_default
8039 #include <$ac_header>
8041 rm -f conftest.$ac_objext
8042 if { (ac_try="$ac_compile"
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048 (eval "$ac_compile") 2>conftest.er1
8050 grep -v '^ *+' conftest.er1 >conftest.err
8052 cat conftest.err >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); } && {
8055 test -z "$ac_c_werror_flag" ||
8056 test ! -s conftest.err
8057 } && test -s conftest.$ac_objext; then
8058 eval "$as_ac_Header=yes"
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8063 eval "$as_ac_Header=no"
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 ac_res=`eval echo '${'$as_ac_Header'}'`
8069 { echo "$as_me:$LINENO: result: $ac_res" >&5
8070 echo "${ECHO_T}$ac_res" >&6; }
8071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8072 cat >>confdefs.h <<_ACEOF
8073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8081 { echo "$as_me:$LINENO: checking for void *" >&5
8082 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8083 if test "${ac_cv_type_void_p+set}" = set; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 cat >conftest.$ac_ext <<_ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 $ac_includes_default
8093 typedef void * ac__type_new_;
8097 if ((ac__type_new_ *) 0)
8099 if (sizeof (ac__type_new_))
8105 rm -f conftest.$ac_objext
8106 if { (ac_try="$ac_compile"
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_compile") 2>conftest.er1
8114 grep -v '^ *+' conftest.er1 >conftest.err
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest.$ac_objext; then
8122 ac_cv_type_void_p=yes
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 ac_cv_type_void_p=no
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8133 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8135 # The cast to long int works around a bug in the HP C Compiler
8136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8138 # This bug is HP SR number 8606223364.
8139 { echo "$as_me:$LINENO: checking size of void *" >&5
8140 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8141 if test "${ac_cv_sizeof_void_p+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 if test "$cross_compiling" = yes; then
8145 # Depending upon the size, compute the lo and hi bounds.
8146 cat >conftest.$ac_ext <<_ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 $ac_includes_default
8153 typedef void * ac__type_sizeof_;
8157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8164 rm -f conftest.$ac_objext
8165 if { (ac_try="$ac_compile"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest.$ac_objext; then
8183 cat >conftest.$ac_ext <<_ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8189 $ac_includes_default
8190 typedef void * ac__type_sizeof_;
8194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8201 rm -f conftest.$ac_objext
8202 if { (ac_try="$ac_compile"
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208 (eval "$ac_compile") 2>conftest.er1
8210 grep -v '^ *+' conftest.er1 >conftest.err
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } && {
8215 test -z "$ac_c_werror_flag" ||
8216 test ! -s conftest.err
8217 } && test -s conftest.$ac_objext; then
8218 ac_hi=$ac_mid; break
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 ac_lo=`expr $ac_mid + 1`
8224 if test $ac_lo -le $ac_mid; then
8228 ac_mid=`expr 2 '*' $ac_mid + 1`
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8237 cat >conftest.$ac_ext <<_ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 $ac_includes_default
8244 typedef void * ac__type_sizeof_;
8248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_compile") 2>conftest.er1
8264 grep -v '^ *+' conftest.er1 >conftest.err
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } && {
8269 test -z "$ac_c_werror_flag" ||
8270 test ! -s conftest.err
8271 } && test -s conftest.$ac_objext; then
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 $ac_includes_default
8281 typedef void * ac__type_sizeof_;
8285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8301 grep -v '^ *+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 ac_lo=$ac_mid; break
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 ac_hi=`expr '(' $ac_mid ')' - 1`
8315 if test $ac_mid -le $ac_hi; then
8319 ac_mid=`expr 2 '*' $ac_mid`
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 # Binary search between lo and hi bounds.
8336 while test "x$ac_lo" != "x$ac_hi"; do
8337 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8338 cat >conftest.$ac_ext <<_ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 $ac_includes_default
8345 typedef void * ac__type_sizeof_;
8349 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8356 rm -f conftest.$ac_objext
8357 if { (ac_try="$ac_compile"
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_compile") 2>conftest.er1
8365 grep -v '^ *+' conftest.er1 >conftest.err
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } && {
8370 test -z "$ac_c_werror_flag" ||
8371 test ! -s conftest.err
8372 } && test -s conftest.$ac_objext; then
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8378 ac_lo=`expr '(' $ac_mid ')' + 1`
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8385 '') if test "$ac_cv_type_void_p" = yes; then
8386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8387 See \`config.log' for more details." >&5
8388 echo "$as_me: error: cannot compute sizeof (void *)
8389 See \`config.log' for more details." >&2;}
8390 { (exit 77); exit 77; }; }
8392 ac_cv_sizeof_void_p=0
8396 cat >conftest.$ac_ext <<_ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 $ac_includes_default
8403 typedef void * ac__type_sizeof_;
8404 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8405 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8412 FILE *f = fopen ("conftest.val", "w");
8415 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8417 long int i = longval ();
8418 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8420 fprintf (f, "%ld\n", i);
8424 unsigned long int i = ulongval ();
8425 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8427 fprintf (f, "%lu\n", i);
8429 return ferror (f) || fclose (f) != 0;
8435 rm -f conftest$ac_exeext
8436 if { (ac_try="$ac_link"
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_link") 2>&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8446 { (case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_try") 2>&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; }; then
8455 ac_cv_sizeof_void_p=`cat conftest.val`
8457 echo "$as_me: program exited with status $ac_status" >&5
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8462 if test "$ac_cv_type_void_p" = yes; then
8463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8464 See \`config.log' for more details." >&5
8465 echo "$as_me: error: cannot compute sizeof (void *)
8466 See \`config.log' for more details." >&2;}
8467 { (exit 77); exit 77; }; }
8469 ac_cv_sizeof_void_p=0
8472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8476 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8477 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8481 cat >>confdefs.h <<_ACEOF
8482 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8486 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8487 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8488 if test "${ac_cv_header_stdc+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 cat >conftest.$ac_ext <<_ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_compile") 2>conftest.er1
8519 grep -v '^ *+' conftest.er1 >conftest.err
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest.$ac_objext; then
8527 ac_cv_header_stdc=yes
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 ac_cv_header_stdc=no
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 if test $ac_cv_header_stdc = yes; then
8538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8539 cat >conftest.$ac_ext <<_ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8549 $EGREP "memchr" >/dev/null 2>&1; then
8552 ac_cv_header_stdc=no
8558 if test $ac_cv_header_stdc = yes; then
8559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8560 cat >conftest.$ac_ext <<_ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8570 $EGREP "free" >/dev/null 2>&1; then
8573 ac_cv_header_stdc=no
8579 if test $ac_cv_header_stdc = yes; then
8580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8581 if test "$cross_compiling" = yes; then
8584 cat >conftest.$ac_ext <<_ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8592 #if ((' ' & 0x0FF) == 0x020)
8593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8596 # define ISLOWER(c) \
8597 (('a' <= (c) && (c) <= 'i') \
8598 || ('j' <= (c) && (c) <= 'r') \
8599 || ('s' <= (c) && (c) <= 'z'))
8600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8608 for (i = 0; i < 256; i++)
8609 if (XOR (islower (i), ISLOWER (i))
8610 || toupper (i) != TOUPPER (i))
8615 rm -f conftest$ac_exeext
8616 if { (ac_try="$ac_link"
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_link") 2>&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8637 echo "$as_me: program exited with status $ac_status" >&5
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8642 ac_cv_header_stdc=no
8644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8650 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8651 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8652 if test $ac_cv_header_stdc = yes; then
8654 cat >>confdefs.h <<\_ACEOF
8655 #define STDC_HEADERS 1
8662 depcc="$OBJC" am_compiler_list='gcc3 gcc'
8664 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8665 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8666 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8670 # We make a subdir and do the tests there. Otherwise we can end up
8671 # making bogus files that we don't know about and never remove. For
8672 # instance it was reported that on HP-UX the gcc test will end up
8673 # making a dummy file named `D' -- because `-MD' means `put the output
8676 # Copy depcomp to subdir because otherwise we won't find it if we're
8677 # using a relative directory.
8678 cp "$am_depcomp" conftest.dir
8680 # We will build objects and dependencies in a subdirectory because
8681 # it helps to detect inapplicable dependency modes. For instance
8682 # both Tru64's cc and ICC support -MD to output dependencies as a
8683 # side effect of compilation, but ICC will put the dependencies in
8684 # the current directory while Tru64 will put them in the object
8688 am_cv_OBJC_dependencies_compiler_type=none
8689 if test "$am_compiler_list" = ""; then
8690 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8692 for depmode in $am_compiler_list; do
8693 # Setup a source with many dependencies, because some compilers
8694 # like to wrap large dependency lists on column 80 (with \), and
8695 # we should not choose a depcomp mode which is confused by this.
8697 # We need to recreate these files for each test, as the compiler may
8698 # overwrite some of them when testing with obscure command lines.
8699 # This happens at least with the AIX C compiler.
8701 for i in 1 2 3 4 5 6; do
8702 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8703 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8704 # Solaris 8's {/usr,}/bin/sh.
8705 touch sub/conftst$i.h
8707 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8711 # after this tag, mechanisms are not by side-effect, so they'll
8712 # only be used when explicitly requested
8713 if test "x$enable_dependency_tracking" = xyes; then
8721 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8722 # mode. It turns out that the SunPro C++ compiler does not properly
8723 # handle `-M -o', and we need to detect this.
8724 if depmode=$depmode \
8725 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8726 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8727 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8728 >/dev/null 2>conftest.err &&
8729 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8730 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8731 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8732 # icc doesn't choke on unknown options, it will just issue warnings
8733 # or remarks (even with -Werror). So we grep stderr for any message
8734 # that says an option was ignored or not supported.
8735 # When given -MP, icc 7.0 and 7.1 complain thusly:
8736 # icc: Command line warning: ignoring option '-M'; no argument required
8737 # The diagnosis changed in icc 8.0:
8738 # icc: Command line remark: option '-MP' not supported
8739 if (grep 'ignoring option' conftest.err ||
8740 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8741 am_cv_OBJC_dependencies_compiler_type=$depmode
8750 am_cv_OBJC_dependencies_compiler_type=none
8754 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
8755 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
8756 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
8761 test "x$enable_dependency_tracking" != xno \
8762 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
8763 am__fastdepOBJC_TRUE=
8764 am__fastdepOBJC_FALSE='#'
8766 am__fastdepOBJC_TRUE='#'
8767 am__fastdepOBJC_FALSE=
8772 # Extract the first word of "pod2man", so it can be a program name with args.
8773 set dummy pod2man; ac_word=$2
8774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8776 if test "${ac_cv_path_POD2MAN+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 POD2MAN=$ac_cv_path_POD2MAN
8803 if test -n "$POD2MAN"; then
8804 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8805 echo "${ECHO_T}$POD2MAN" >&6; }
8807 { echo "$as_me:$LINENO: result: no" >&5
8808 echo "${ECHO_T}no" >&6; }
8812 # Extract the first word of "pod2html", so it can be a program name with args.
8813 set dummy pod2html; ac_word=$2
8814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8816 if test "${ac_cv_path_POD2HTML+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 POD2HTML=$ac_cv_path_POD2HTML
8843 if test -n "$POD2HTML"; then
8844 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8845 echo "${ECHO_T}$POD2HTML" >&6; }
8847 { echo "$as_me:$LINENO: result: no" >&5
8848 echo "${ECHO_T}no" >&6; }
8854 cat >>confdefs.h <<_ACEOF
8855 #define BUILD_SED_PROG "${SED}"
8859 cat >>confdefs.h <<_ACEOF
8860 #define BUILD_CPP_PROG "${CPP}"
8865 # Check whether --enable-strict-warn was given.
8866 if test "${enable_strict_warn+set}" = set; then
8867 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
8868 enable_strictwarn=yes
8872 # Check whether --enable-translator was given.
8873 if test "${enable_translator+set}" = set; then
8874 enableval=$enable_translator; true
8876 enable_translator=yes
8879 # Check whether --enable-optimized was given.
8880 if test "${enable_optimized+set}" = set; then
8881 enableval=$enable_optimized; true
8883 enable_optimized=yes
8886 # Check whether --enable-shared was given.
8887 if test "${enable_shared+set}" = set; then
8888 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
8893 # Check whether --enable-profiled was given.
8894 if test "${enable_profiled+set}" = set; then
8895 enableval=$enable_profiled; if test "$enableval" == "yes"; then
8896 enable_profiled=yes;
8900 # Check whether --enable-trace was given.
8901 if test "${enable_trace+set}" = set; then
8902 enableval=$enable_trace; if test "$enableval" == "yes"; then
8904 cat >>confdefs.h <<\_ACEOF
8905 #define ENABLE_TRACE_IO 1
8911 # Check whether --enable-watch was given.
8912 if test "${enable_watch+set}" = set; then
8913 enableval=$enable_watch; if test "$enableval" == "yes"; then
8915 cat >>confdefs.h <<\_ACEOF
8916 #define ENABLE_WATCH 1
8922 # Check whether --enable-sh4stats was given.
8923 if test "${enable_sh4stats+set}" = set; then
8924 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
8926 cat >>confdefs.h <<\_ACEOF
8927 #define ENABLE_SH4STATS 1
8934 # Check whether --with-osmesa was given.
8935 if test "${with_osmesa+set}" = set; then
8936 withval=$with_osmesa;
8942 # Check whether --with-gtk was given.
8943 if test "${with_gtk+set}" = set; then
8944 withval=$with_gtk; with_gtk=yes
8950 # Check whether --with-esd was given.
8951 if test "${with_esd+set}" = set; then
8956 # Check whether --with-pulse was given.
8957 if test "${with_pulse+set}" = set; then
8958 withval=$with_pulse;
8962 # Check whether --with-sdl was given.
8963 if test "${with_sdl+set}" = set; then
8970 if test "$ANDROID_BUILD" = "yes"; then
8972 EXTRA_OUTPUT_FILES="src/android/build.properties"
8973 LIBS="-lGLESv2 $LIBS"
8975 cat >>confdefs.h <<\_ACEOF
8976 #define HAVE_GLES2 1
8984 ac_cpp='$OBJCPP $CPPFLAGS'
8985 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8986 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8987 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8988 if test -n "$ac_tool_prefix"; then
8989 for ac_prog in gcc objcc objc cc CC
8991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8995 if test "${ac_cv_prog_OBJC+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 if test -n "$OBJC"; then
8999 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 test -z "$as_dir" && as_dir=.
9006 for ac_exec_ext in '' $ac_executable_extensions; do
9007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9008 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
9009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9018 OBJC=$ac_cv_prog_OBJC
9019 if test -n "$OBJC"; then
9020 { echo "$as_me:$LINENO: result: $OBJC" >&5
9021 echo "${ECHO_T}$OBJC" >&6; }
9023 { echo "$as_me:$LINENO: result: no" >&5
9024 echo "${ECHO_T}no" >&6; }
9028 test -n "$OBJC" && break
9031 if test -z "$OBJC"; then
9033 for ac_prog in gcc objcc objc cc CC
9035 # Extract the first word of "$ac_prog", so it can be a program name with args.
9036 set dummy $ac_prog; ac_word=$2
9037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9039 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 if test -n "$ac_ct_OBJC"; then
9043 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
9051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9052 ac_cv_prog_ac_ct_OBJC="$ac_prog"
9053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
9063 if test -n "$ac_ct_OBJC"; then
9064 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
9065 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
9067 { echo "$as_me:$LINENO: result: no" >&5
9068 echo "${ECHO_T}no" >&6; }
9072 test -n "$ac_ct_OBJC" && break
9075 if test "x$ac_ct_OBJC" = x; then
9078 case $cross_compiling:$ac_tool_warned in
9080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9081 whose name does not start with the host triplet. If you think this
9082 configuration is useful to you, please write to autoconf@gnu.org." >&5
9083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9084 whose name does not start with the host triplet. If you think this
9085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9086 ac_tool_warned=yes ;;
9092 # Provide some information about the compiler.
9093 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
9094 ac_compiler=`set X $ac_compile; echo $2`
9095 { (ac_try="$ac_compiler --version >&5"
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_compiler --version >&5") 2>&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }
9105 { (ac_try="$ac_compiler -v >&5"
9107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111 (eval "$ac_compiler -v >&5") 2>&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }
9115 { (ac_try="$ac_compiler -V >&5"
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_compiler -V >&5") 2>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }
9126 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
9127 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
9128 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 cat >conftest.$ac_ext <<_ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9149 rm -f conftest.$ac_objext
9150 if { (ac_try="$ac_compile"
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156 (eval "$ac_compile") 2>conftest.er1
9158 grep -v '^ *+' conftest.er1 >conftest.err
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } && {
9163 test -z "$ac_objc_werror_flag" ||
9164 test ! -s conftest.err
9165 } && test -s conftest.$ac_objext; then
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9175 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
9178 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
9179 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
9180 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
9181 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
9182 ac_save_OBJCFLAGS=$OBJCFLAGS
9183 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
9184 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
9185 if test "${ac_cv_prog_objc_g+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 ac_save_objc_werror_flag=$ac_objc_werror_flag
9189 ac_objc_werror_flag=yes
9190 ac_cv_prog_objc_g=no
9192 cat >conftest.$ac_ext <<_ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9207 rm -f conftest.$ac_objext
9208 if { (ac_try="$ac_compile"
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214 (eval "$ac_compile") 2>conftest.er1
9216 grep -v '^ *+' conftest.er1 >conftest.err
9218 cat conftest.err >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } && {
9221 test -z "$ac_objc_werror_flag" ||
9222 test ! -s conftest.err
9223 } && test -s conftest.$ac_objext; then
9224 ac_cv_prog_objc_g=yes
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9230 cat >conftest.$ac_ext <<_ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9245 rm -f conftest.$ac_objext
9246 if { (ac_try="$ac_compile"
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_compile") 2>conftest.er1
9254 grep -v '^ *+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } && {
9259 test -z "$ac_objc_werror_flag" ||
9260 test ! -s conftest.err
9261 } && test -s conftest.$ac_objext; then
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 ac_objc_werror_flag=$ac_save_objc_werror_flag
9269 cat >conftest.$ac_ext <<_ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9284 rm -f conftest.$ac_objext
9285 if { (ac_try="$ac_compile"
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_compile") 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } && {
9298 test -z "$ac_objc_werror_flag" ||
9299 test ! -s conftest.err
9300 } && test -s conftest.$ac_objext; then
9301 ac_cv_prog_objc_g=yes
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 ac_objc_werror_flag=$ac_save_objc_werror_flag
9318 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
9319 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
9320 if test "$ac_test_OBJCFLAGS" = set; then
9321 OBJCFLAGS=$ac_save_OBJCFLAGS
9322 elif test $ac_cv_prog_objc_g = yes; then
9323 if test "$GOBJC" = yes; then
9329 if test "$GOBJC" = yes; then
9336 ac_cpp='$CPP $CPPFLAGS'
9337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9341 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
9342 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
9344 ac_cpp='$OBJCPP $CPPFLAGS'
9345 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9346 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9347 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9348 cat >conftest.$ac_ext <<_ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9363 rm -f conftest.$ac_objext
9364 if { (ac_try="$ac_compile"
9366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_compile") 2>conftest.er1
9372 grep -v '^ *+' conftest.er1 >conftest.err
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && {
9377 test -z "$ac_objc_werror_flag" ||
9378 test ! -s conftest.err
9379 } && test -s conftest.$ac_objext; then
9380 { echo "$as_me:$LINENO: result: yes" >&5
9381 echo "${ECHO_T}yes" >&6; }
9383 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
9384 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
9385 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 cat >conftest.$ac_ext <<_ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 $ac_includes_default
9396 #include <Cocoa/Cocoa.h>
9398 rm -f conftest.$ac_objext
9399 if { (ac_try="$ac_compile"
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_compile") 2>conftest.er1
9407 grep -v '^ *+' conftest.er1 >conftest.err
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && {
9412 test -z "$ac_objc_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest.$ac_objext; then
9415 ac_cv_header_Cocoa_Cocoa_h=yes
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9420 ac_cv_header_Cocoa_Cocoa_h=no
9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
9426 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
9427 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
9431 LIBS="$LIBS -framework AppKit -framework Carbon"
9432 LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
9433 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
9434 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
9436 cat >>confdefs.h <<\_ACEOF
9437 #define HAVE_COCOA 1
9441 cat >>confdefs.h <<\_ACEOF
9442 #define APPLE_BUILD 1
9445 if test "x$with_gtk" = "xx11"; then
9454 { echo "$as_me:$LINENO: checking OBJC version" >&5
9455 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
9456 if test -n "$OBJC"; then
9457 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
9458 if test -n "$_GOBJC_VERSION"; then
9459 { echo "$as_me:$LINENO: result: GCC" >&5
9460 echo "${ECHO_T}GCC" >&6; }
9462 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
9464 { echo "$as_me:$LINENO: result: Unknown" >&5
9465 echo "${ECHO_T}Unknown" >&6; }
9469 { echo "$as_me:$LINENO: result: None" >&5
9470 echo "${ECHO_T}None" >&6; }
9476 ac_cpp='$OBJCPP $CPPFLAGS'
9477 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9478 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9479 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9481 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
9482 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
9483 save_OBJCFLAGS="$OBJCFLAGS"
9484 OBJCFLAGS="-msse2 $OBJCFLAGS"
9485 cat >conftest.$ac_ext <<_ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492 int main() { return 0; }
9494 rm -f conftest.$ac_objext
9495 if { (ac_try="$ac_compile"
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_compile") 2>conftest.er1
9503 grep -v '^ *+' conftest.er1 >conftest.err
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && {
9508 test -z "$ac_objc_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest.$ac_objext; then
9512 { echo "$as_me:$LINENO: result: yes" >&5
9513 echo "${ECHO_T}yes" >&6; }
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9520 OBJCFLAGS="$save_OBJCFLAGS"
9521 { echo "$as_me:$LINENO: result: no" >&5
9522 echo "${ECHO_T}no" >&6; }
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528 ac_cpp='$OBJCPP $CPPFLAGS'
9529 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9530 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9531 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9536 ac_cpp='$OBJCPP $CPPFLAGS'
9537 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9538 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9539 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9541 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
9542 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
9543 save_OBJCFLAGS="$OBJCFLAGS"
9544 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
9545 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 int main() { return 0; }
9554 rm -f conftest.$ac_objext
9555 if { (ac_try="$ac_compile"
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_compile") 2>conftest.er1
9563 grep -v '^ *+' conftest.er1 >conftest.err
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } && {
9568 test -z "$ac_objc_werror_flag" ||
9569 test ! -s conftest.err
9570 } && test -s conftest.$ac_objext; then
9572 { echo "$as_me:$LINENO: result: yes" >&5
9573 echo "${ECHO_T}yes" >&6; }
9576 echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9580 OBJCFLAGS="$save_OBJCFLAGS"
9581 { echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6; }
9586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9588 ac_cpp='$OBJCPP $CPPFLAGS'
9589 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9590 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9591 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9596 echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 { echo "$as_me:$LINENO: result: No" >&5
9600 echo "${ECHO_T}No" >&6; }
9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
9606 ac_cpp='$CPP $CPPFLAGS'
9607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9616 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
9624 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
9626 cat >>confdefs.h <<\_ACEOF
9627 #define OSX_BUNDLE 1
9632 CFLAGS_FOR_BUILD="-O2 -std=c99"
9633 CFLAGS="-g -fexceptions"
9634 OBJCFLAGS="-g -fexceptions"
9636 cat >>confdefs.h <<\_ACEOF
9637 #define HAVE_EXCEPTIONS 1
9643 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
9644 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
9645 { echo "$as_me:$LINENO: checking CC version" >&5
9646 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
9647 if test -n "$_ICC_VERSION"; then
9648 { echo "$as_me:$LINENO: result: ICC" >&5
9649 echo "${ECHO_T}ICC" >&6; }
9650 CCOPT="$CFLAGS -fast"
9651 CFLAGS="$CFLAGS -fno-strict-aliasing"
9652 elif test -n "$_GCC_VERSION"; then
9653 { echo "$as_me:$LINENO: result: GCC" >&5
9654 echo "${ECHO_T}GCC" >&6; }
9656 CFLAGS="$CFLAGS -fno-strict-aliasing"
9658 { echo "$as_me:$LINENO: result: Unknown" >&5
9659 echo "${ECHO_T}Unknown" >&6; }
9665 ac_cpp='$CPP $CPPFLAGS'
9666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9670 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
9671 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
9672 save_CFLAGS="$CFLAGS"
9673 CFLAGS="-msse2 $CFLAGS"
9674 cat >conftest.$ac_ext <<_ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9681 int main() { return 0; }
9683 rm -f conftest.$ac_objext
9684 if { (ac_try="$ac_compile"
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_compile") 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest.$ac_objext; then
9701 { echo "$as_me:$LINENO: result: yes" >&5
9702 echo "${ECHO_T}yes" >&6; }
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9709 CFLAGS="$save_CFLAGS"
9710 { echo "$as_me:$LINENO: result: no" >&5
9711 echo "${ECHO_T}no" >&6; }
9715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717 ac_cpp='$CPP $CPPFLAGS'
9718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9725 ac_cpp='$CPP $CPPFLAGS'
9726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9730 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
9731 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
9732 save_CFLAGS="$CFLAGS"
9733 CFLAGS="-mfpmath=sse $CFLAGS"
9734 cat >conftest.$ac_ext <<_ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 int main() { return 0; }
9743 rm -f conftest.$ac_objext
9744 if { (ac_try="$ac_compile"
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_compile") 2>conftest.er1
9752 grep -v '^ *+' conftest.er1 >conftest.err
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } && {
9757 test -z "$ac_c_werror_flag" ||
9758 test ! -s conftest.err
9759 } && test -s conftest.$ac_objext; then
9761 { echo "$as_me:$LINENO: result: yes" >&5
9762 echo "${ECHO_T}yes" >&6; }
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9769 CFLAGS="$save_CFLAGS"
9770 { echo "$as_me:$LINENO: result: no" >&5
9771 echo "${ECHO_T}no" >&6; }
9775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9777 ac_cpp='$CPP $CPPFLAGS'
9778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9784 if test "x$enable_optimized" = "xyes"; then
9785 CFLAGS="$CFLAGS $CCOPT"
9786 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
9787 if test "x$enable_profiled" != "xyes"; then
9788 CFLAGS="$CFLAGS -fomit-frame-pointer"
9789 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
9792 CFLAGS="$CFLAGS -g3"
9793 OBJCFLAGS="$OBJCFLAGS -g3"
9796 if test "x$enable_profiled" = "xyes"; then
9797 CFLAGS="$CFLAGS -pg"
9798 LDFLAGS="$LDFLAGS -pg";
9799 OBJCFLAGS="$OBJCFLAGS -pg";
9802 if test "x$enable_strictwarn" = "xyes"; then
9803 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
9804 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
9807 if test "x$enable_shared" != "xno"; then
9808 if test "x$APPLE_BUILD" = "xyes"; then
9810 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
9813 PLUGINLDFLAGS="-shared"
9815 PLUGINCFLAGS="-fPIC"
9817 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9818 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9819 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9820 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9824 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9826 # Is the header compilable?
9827 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9828 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
9829 cat >conftest.$ac_ext <<_ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 $ac_includes_default
9838 rm -f conftest.$ac_objext
9839 if { (ac_try="$ac_compile"
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_compile") 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } && {
9852 test -z "$ac_c_werror_flag" ||
9853 test ! -s conftest.err
9854 } && test -s conftest.$ac_objext; then
9855 ac_header_compiler=yes
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 ac_header_compiler=no
9863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9865 echo "${ECHO_T}$ac_header_compiler" >&6; }
9867 # Is the header present?
9868 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9869 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
9870 cat >conftest.$ac_ext <<_ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9878 if { (ac_try="$ac_cpp conftest.$ac_ext"
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9886 grep -v '^ *+' conftest.er1 >conftest.err
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } >/dev/null && {
9891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9892 test ! -s conftest.err
9894 ac_header_preproc=yes
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9899 ac_header_preproc=no
9902 rm -f conftest.err conftest.$ac_ext
9903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9904 echo "${ECHO_T}$ac_header_preproc" >&6; }
9906 # So? What about this header?
9907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9909 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9910 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9912 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9913 ac_header_preproc=yes
9916 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9917 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9919 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9921 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9923 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9925 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9927 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9931 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9932 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9933 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 ac_cv_header_dlfcn_h=$ac_header_preproc
9938 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9939 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9942 if test $ac_cv_header_dlfcn_h = yes; then
9944 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9945 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9946 if test "${ac_cv_search_dlopen+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 ac_func_search_save_LIBS=$LIBS
9950 cat >conftest.$ac_ext <<_ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9957 /* Override any GCC internal prototype to avoid an error.
9958 Use char because int might match the return type of a GCC
9959 builtin and then its argument prototype would still apply. */
9972 for ac_lib in '' dl; do
9973 if test -z "$ac_lib"; then
9974 ac_res="none required"
9977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9979 rm -f conftest.$ac_objext conftest$ac_exeext
9980 if { (ac_try="$ac_link"
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_link") 2>conftest.er1
9988 grep -v '^ *+' conftest.er1 >conftest.err
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } && {
9993 test -z "$ac_c_werror_flag" ||
9994 test ! -s conftest.err
9995 } && test -s conftest$ac_exeext &&
9996 $as_test_x conftest$ac_exeext; then
9997 ac_cv_search_dlopen=$ac_res
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10007 if test "${ac_cv_search_dlopen+set}" = set; then
10011 if test "${ac_cv_search_dlopen+set}" = set; then
10014 ac_cv_search_dlopen=no
10016 rm conftest.$ac_ext
10017 LIBS=$ac_func_search_save_LIBS
10019 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10020 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
10021 ac_res=$ac_cv_search_dlopen
10022 if test "$ac_res" != no; then
10023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10030 if test "x$have_dlopen" != "xyes"; then
10031 if test "x$enable_shared" == "xyes"; then
10032 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
10033 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
10034 { (exit 1); exit 1; }; }
10036 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
10037 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
10041 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
10042 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
10043 old_LDFLAGS="$LDFLAGS"
10044 LDFLAGS="$LDFLAGS -rdynamic"
10045 cat >conftest.$ac_ext <<_ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 int main() { return 0; }
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_link") 2>conftest.er1
10062 grep -v '^ *+' conftest.er1 >conftest.err
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } && {
10067 test -z "$ac_c_werror_flag" ||
10068 test ! -s conftest.err
10069 } && test -s conftest$ac_exeext &&
10070 $as_test_x conftest$ac_exeext; then
10072 LXDREAMLDFLAGS="-rdynamic"
10073 { echo "$as_me:$LINENO: result: yes" >&5
10074 echo "${ECHO_T}yes" >&6; }
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10082 { echo "$as_me:$LINENO: result: no" >&5
10083 echo "${ECHO_T}no" >&6; }
10086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LDFLAGS="$old_LDFLAGS"
10095 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
10097 cat >>confdefs.h <<\_ACEOF
10098 #define BUILD_PLUGINS 1
10104 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
10105 BUILD_PLUGINS_TRUE=
10106 BUILD_PLUGINS_FALSE='#'
10108 BUILD_PLUGINS_TRUE='#'
10109 BUILD_PLUGINS_FALSE=
10114 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
10115 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
10116 save_CFLAGS="$CFLAGS"
10117 CFLAGS="-Werror $save_CFLAGS"
10118 if test "$cross_compiling" = yes; then
10120 { echo "$as_me:$LINENO: result: no" >&5
10121 echo "${ECHO_T}no" >&6; }
10124 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10132 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
10134 int main(int argc, char *argv[])
10136 return foo( 1, 2 ) == 3 ? 0 : 1;
10139 rm -f conftest$ac_exeext
10140 if { (ac_try="$ac_link"
10141 case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_link") 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10150 { (case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_try") 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10160 { echo "$as_me:$LINENO: result: yes" >&5
10161 echo "${ECHO_T}yes" >&6; }
10164 cat >>confdefs.h <<\_ACEOF
10165 #define HAVE_FASTCALL 1
10170 echo "$as_me: program exited with status $ac_status" >&5
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ( exit $ac_status )
10176 { echo "$as_me:$LINENO: result: no" >&5
10177 echo "${ECHO_T}no" >&6; }
10180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10184 CFLAGS="$save_CFLAGS"
10187 { echo "$as_me:$LINENO: checking support for force inlining" >&5
10188 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
10189 cat >conftest.$ac_ext <<_ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10197 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
10199 int main(int argc, char *argv[])
10201 return foo( 1, 2 ) == 3 ? 0 : 1;
10204 rm -f conftest.$ac_objext
10205 if { (ac_try="$ac_compile"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && {
10218 test -z "$ac_c_werror_flag" ||
10219 test ! -s conftest.err
10220 } && test -s conftest.$ac_objext; then
10222 FORCEINLINE="__attribute__((always_inline))"
10223 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
10224 echo "${ECHO_T}$FORCEINLINE" >&6; }
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10232 { echo "$as_me:$LINENO: result: no" >&5
10233 echo "${ECHO_T}no" >&6; }
10237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10240 cat >>confdefs.h <<_ACEOF
10241 #define FORCEINLINE $FORCEINLINE
10245 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
10246 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
10247 if test "$cross_compiling" = yes; then
10249 { echo "$as_me:$LINENO: result: no" >&5
10250 echo "${ECHO_T}no" >&6; }
10251 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10252 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10254 cat >conftest.$ac_ext <<_ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10262 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
10263 int __attribute__((noinline)) foo( int arg, void *exc )
10266 *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
10271 int main(int argc, char *argv[])
10273 goto *first_arg(&&start, &&except);
10276 return foo( argc, &&except ) + 1;
10282 rm -f conftest$ac_exeext
10283 if { (ac_try="$ac_link"
10284 case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_link") 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10293 { (case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_try") 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10303 { echo "$as_me:$LINENO: result: yes" >&5
10304 echo "${ECHO_T}yes" >&6; }
10307 cat >>confdefs.h <<\_ACEOF
10308 #define HAVE_FRAME_ADDRESS 1
10313 echo "$as_me: program exited with status $ac_status" >&5
10314 echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10317 ( exit $ac_status )
10319 { echo "$as_me:$LINENO: result: no" >&5
10320 echo "${ECHO_T}no" >&6; }
10321 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10322 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10331 { echo "$as_me:$LINENO: checking for library containing listen" >&5
10332 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
10333 if test "${ac_cv_search_listen+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 ac_func_search_save_LIBS=$LIBS
10337 cat >conftest.$ac_ext <<_ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10344 /* Override any GCC internal prototype to avoid an error.
10345 Use char because int might match the return type of a GCC
10346 builtin and then its argument prototype would still apply. */
10359 for ac_lib in '' socket; do
10360 if test -z "$ac_lib"; then
10361 ac_res="none required"
10364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10366 rm -f conftest.$ac_objext conftest$ac_exeext
10367 if { (ac_try="$ac_link"
10368 case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_link") 2>conftest.er1
10375 grep -v '^ *+' conftest.er1 >conftest.err
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } && {
10380 test -z "$ac_c_werror_flag" ||
10381 test ! -s conftest.err
10382 } && test -s conftest$ac_exeext &&
10383 $as_test_x conftest$ac_exeext; then
10384 ac_cv_search_listen=$ac_res
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10394 if test "${ac_cv_search_listen+set}" = set; then
10398 if test "${ac_cv_search_listen+set}" = set; then
10401 ac_cv_search_listen=no
10403 rm conftest.$ac_ext
10404 LIBS=$ac_func_search_save_LIBS
10406 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
10407 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
10408 ac_res=$ac_cv_search_listen
10409 if test "$ac_res" != no; then
10410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10414 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
10415 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
10416 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 ac_func_search_save_LIBS=$LIBS
10420 cat >conftest.$ac_ext <<_ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10427 /* Override any GCC internal prototype to avoid an error.
10428 Use char because int might match the return type of a GCC
10429 builtin and then its argument prototype would still apply. */
10437 return inet_ntoa ();
10442 for ac_lib in '' nsl; do
10443 if test -z "$ac_lib"; then
10444 ac_res="none required"
10447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>conftest.er1
10458 grep -v '^ *+' conftest.er1 >conftest.err
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } && {
10463 test -z "$ac_c_werror_flag" ||
10464 test ! -s conftest.err
10465 } && test -s conftest$ac_exeext &&
10466 $as_test_x conftest$ac_exeext; then
10467 ac_cv_search_inet_ntoa=$ac_res
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10477 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10481 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10484 ac_cv_search_inet_ntoa=no
10486 rm conftest.$ac_ext
10487 LIBS=$ac_func_search_save_LIBS
10489 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
10490 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
10491 ac_res=$ac_cv_search_inet_ntoa
10492 if test "$ac_res" != no; then
10493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10500 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10501 if test -n "$ac_tool_prefix"; then
10502 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10503 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10506 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 case $PKG_CONFIG in
10511 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515 for as_dir in $PATH
10518 test -z "$as_dir" && as_dir=.
10519 for ac_exec_ext in '' $ac_executable_extensions; do
10520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10521 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10533 if test -n "$PKG_CONFIG"; then
10534 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10535 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10537 { echo "$as_me:$LINENO: result: no" >&5
10538 echo "${ECHO_T}no" >&6; }
10543 if test -z "$ac_cv_path_PKG_CONFIG"; then
10544 ac_pt_PKG_CONFIG=$PKG_CONFIG
10545 # Extract the first word of "pkg-config", so it can be a program name with args.
10546 set dummy pkg-config; ac_word=$2
10547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10549 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 case $ac_pt_PKG_CONFIG in
10554 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558 for as_dir in $PATH
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10564 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10576 if test -n "$ac_pt_PKG_CONFIG"; then
10577 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
10578 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
10580 { echo "$as_me:$LINENO: result: no" >&5
10581 echo "${ECHO_T}no" >&6; }
10584 if test "x$ac_pt_PKG_CONFIG" = x; then
10587 case $cross_compiling:$ac_tool_warned in
10589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10590 whose name does not start with the host triplet. If you think this
10591 configuration is useful to you, please write to autoconf@gnu.org." >&5
10592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10593 whose name does not start with the host triplet. If you think this
10594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10595 ac_tool_warned=yes ;;
10597 PKG_CONFIG=$ac_pt_PKG_CONFIG
10600 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10604 if test -n "$PKG_CONFIG"; then
10605 _pkg_min_version=0.9.0
10606 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
10607 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
10608 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10609 { echo "$as_me:$LINENO: result: yes" >&5
10610 echo "${ECHO_T}yes" >&6; }
10612 { echo "$as_me:$LINENO: result: no" >&5
10613 echo "${ECHO_T}no" >&6; }
10620 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
10621 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
10623 if test -n "$LIBPNG_CFLAGS"; then
10624 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
10625 elif test -n "$PKG_CONFIG"; then
10626 if test -n "$PKG_CONFIG" && \
10627 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10628 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; then
10632 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
10639 if test -n "$LIBPNG_LIBS"; then
10640 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
10641 elif test -n "$PKG_CONFIG"; then
10642 if test -n "$PKG_CONFIG" && \
10643 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10644 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; then
10648 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
10658 if test $pkg_failed = yes; then
10660 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10661 _pkg_short_errors_supported=yes
10663 _pkg_short_errors_supported=no
10665 if test $_pkg_short_errors_supported = yes; then
10666 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
10668 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
10670 # Put the nasty error message in config.log where it belongs
10671 echo "$LIBPNG_PKG_ERRORS" >&5
10673 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
10677 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10678 installed software in a non-standard prefix.
10680 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10681 and LIBPNG_LIBS to avoid the need to call pkg-config.
10682 See the pkg-config man page for more details.
10684 echo "$as_me: error: Package requirements (libpng ) were not met:
10688 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10689 installed software in a non-standard prefix.
10691 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10692 and LIBPNG_LIBS to avoid the need to call pkg-config.
10693 See the pkg-config man page for more details.
10695 { (exit 1); exit 1; }; }
10696 elif test $pkg_failed = untried; then
10697 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10698 is in your PATH or set the PKG_CONFIG environment variable to the full
10699 path to pkg-config.
10701 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10702 and LIBPNG_LIBS to avoid the need to call pkg-config.
10703 See the pkg-config man page for more details.
10705 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10706 See \`config.log' for more details." >&5
10707 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10708 is in your PATH or set the PKG_CONFIG environment variable to the full
10709 path to pkg-config.
10711 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10712 and LIBPNG_LIBS to avoid the need to call pkg-config.
10713 See the pkg-config man page for more details.
10715 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10716 See \`config.log' for more details." >&2;}
10717 { (exit 1); exit 1; }; }
10719 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
10720 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
10721 { echo "$as_me:$LINENO: result: yes" >&5
10722 echo "${ECHO_T}yes" >&6; }
10727 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
10728 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
10729 if test "${ac_cv_lib_z_uncompress+set}" = set; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 ac_check_lib_save_LIBS=$LIBS
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10741 /* Override any GCC internal prototype to avoid an error.
10742 Use char because int might match the return type of a GCC
10743 builtin and then its argument prototype would still apply. */
10747 char uncompress ();
10751 return uncompress ();
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (ac_try="$ac_link"
10758 case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_link") 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && {
10770 test -z "$ac_c_werror_flag" ||
10771 test ! -s conftest.err
10772 } && test -s conftest$ac_exeext &&
10773 $as_test_x conftest$ac_exeext; then
10774 ac_cv_lib_z_uncompress=yes
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 ac_cv_lib_z_uncompress=no
10782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10783 conftest$ac_exeext conftest.$ac_ext
10784 LIBS=$ac_check_lib_save_LIBS
10786 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
10787 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
10788 if test $ac_cv_lib_z_uncompress = yes; then
10789 cat >>confdefs.h <<_ACEOF
10790 #define HAVE_LIBZ 1
10797 echo "Zlib (libz.so) could not be found, but is required."
10802 if test "x$with_gtk" = "xno"; then
10805 { echo "$as_me:$LINENO: checking for GLIB" >&5
10806 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10808 if test -n "$GLIB_CFLAGS"; then
10809 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10810 elif test -n "$PKG_CONFIG"; then
10811 if test -n "$PKG_CONFIG" && \
10812 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10813 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; then
10817 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10824 if test -n "$GLIB_LIBS"; then
10825 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10826 elif test -n "$PKG_CONFIG"; then
10827 if test -n "$PKG_CONFIG" && \
10828 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10829 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; then
10833 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10843 if test $pkg_failed = yes; then
10845 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10846 _pkg_short_errors_supported=yes
10848 _pkg_short_errors_supported=no
10850 if test $_pkg_short_errors_supported = yes; then
10851 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10853 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10855 # Put the nasty error message in config.log where it belongs
10856 echo "$GLIB_PKG_ERRORS" >&5
10858 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10862 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10863 installed software in a non-standard prefix.
10865 Alternatively, you may set the environment variables GLIB_CFLAGS
10866 and GLIB_LIBS to avoid the need to call pkg-config.
10867 See the pkg-config man page for more details.
10869 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10873 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10874 installed software in a non-standard prefix.
10876 Alternatively, you may set the environment variables GLIB_CFLAGS
10877 and GLIB_LIBS to avoid the need to call pkg-config.
10878 See the pkg-config man page for more details.
10880 { (exit 1); exit 1; }; }
10881 elif test $pkg_failed = untried; then
10882 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10883 is in your PATH or set the PKG_CONFIG environment variable to the full
10884 path to pkg-config.
10886 Alternatively, you may set the environment variables GLIB_CFLAGS
10887 and GLIB_LIBS to avoid the need to call pkg-config.
10888 See the pkg-config man page for more details.
10890 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10891 See \`config.log' for more details." >&5
10892 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10893 is in your PATH or set the PKG_CONFIG environment variable to the full
10894 path to pkg-config.
10896 Alternatively, you may set the environment variables GLIB_CFLAGS
10897 and GLIB_LIBS to avoid the need to call pkg-config.
10898 See the pkg-config man page for more details.
10900 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10901 See \`config.log' for more details." >&2;}
10902 { (exit 1); exit 1; }; }
10904 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10905 GLIB_LIBS=$pkg_cv_GLIB_LIBS
10906 { echo "$as_me:$LINENO: result: yes" >&5
10907 echo "${ECHO_T}yes" >&6; }
10913 { echo "$as_me:$LINENO: checking for GTK" >&5
10914 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
10916 if test -n "$GTK_CFLAGS"; then
10917 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
10918 elif test -n "$PKG_CONFIG"; then
10919 if test -n "$PKG_CONFIG" && \
10920 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10921 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; then
10925 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
10932 if test -n "$GTK_LIBS"; then
10933 pkg_cv_GTK_LIBS="$GTK_LIBS"
10934 elif test -n "$PKG_CONFIG"; then
10935 if test -n "$PKG_CONFIG" && \
10936 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10937 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; then
10941 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
10951 if test $pkg_failed = yes; then
10953 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10954 _pkg_short_errors_supported=yes
10956 _pkg_short_errors_supported=no
10958 if test $_pkg_short_errors_supported = yes; then
10959 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
10961 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
10963 # Put the nasty error message in config.log where it belongs
10964 echo "$GTK_PKG_ERRORS" >&5
10966 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
10970 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10971 installed software in a non-standard prefix.
10973 Alternatively, you may set the environment variables GTK_CFLAGS
10974 and GTK_LIBS to avoid the need to call pkg-config.
10975 See the pkg-config man page for more details.
10977 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
10981 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10982 installed software in a non-standard prefix.
10984 Alternatively, you may set the environment variables GTK_CFLAGS
10985 and GTK_LIBS to avoid the need to call pkg-config.
10986 See the pkg-config man page for more details.
10988 { (exit 1); exit 1; }; }
10989 elif test $pkg_failed = untried; then
10990 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10991 is in your PATH or set the PKG_CONFIG environment variable to the full
10992 path to pkg-config.
10994 Alternatively, you may set the environment variables GTK_CFLAGS
10995 and GTK_LIBS to avoid the need to call pkg-config.
10996 See the pkg-config man page for more details.
10998 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10999 See \`config.log' for more details." >&5
11000 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11001 is in your PATH or set the PKG_CONFIG environment variable to the full
11002 path to pkg-config.
11004 Alternatively, you may set the environment variables GTK_CFLAGS
11005 and GTK_LIBS to avoid the need to call pkg-config.
11006 See the pkg-config man page for more details.
11008 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11009 See \`config.log' for more details." >&2;}
11010 { (exit 1); exit 1; }; }
11012 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
11013 GTK_LIBS=$pkg_cv_GTK_LIBS
11014 { echo "$as_me:$LINENO: result: yes" >&5
11015 echo "${ECHO_T}yes" >&6; }
11019 cat >>confdefs.h <<\_ACEOF
11026 LIBS="$LIBS $GTK_LIBS"
11027 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
11028 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
11029 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 cat >conftest.$ac_ext <<_ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
11039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11040 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
11042 /* System header to define __stub macros and hopefully few prototypes,
11043 which can conflict with char gdk_x11_display_get_xdisplay (); below.
11044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11045 <limits.h> exists even on freestanding compilers. */
11048 # include <limits.h>
11050 # include <assert.h>
11053 #undef gdk_x11_display_get_xdisplay
11055 /* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11061 char gdk_x11_display_get_xdisplay ();
11062 /* The GNU C library defines this for functions which it implements
11063 to always fail with ENOSYS. Some functions are actually named
11064 something starting with __ and the normal name is an alias. */
11065 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
11072 return gdk_x11_display_get_xdisplay ();
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (ac_try="$ac_link"
11079 case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_link") 2>conftest.er1
11086 grep -v '^ *+' conftest.er1 >conftest.err
11088 cat conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } && {
11091 test -z "$ac_c_werror_flag" ||
11092 test ! -s conftest.err
11093 } && test -s conftest$ac_exeext &&
11094 $as_test_x conftest$ac_exeext; then
11095 ac_cv_func_gdk_x11_display_get_xdisplay=yes
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100 ac_cv_func_gdk_x11_display_get_xdisplay=no
11103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104 conftest$ac_exeext conftest.$ac_ext
11106 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
11107 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
11108 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
11112 cat >>confdefs.h <<\_ACEOF
11113 #define HAVE_GTK_X11 1
11118 GTK_LIBS="$GTK_LIBS -lX11"
11120 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
11121 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
11122 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 cat >conftest.$ac_ext <<_ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
11132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11133 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
11135 /* System header to define __stub macros and hopefully few prototypes,
11136 which can conflict with char gdk_quartz_window_get_nsview (); below.
11137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11138 <limits.h> exists even on freestanding compilers. */
11141 # include <limits.h>
11143 # include <assert.h>
11146 #undef gdk_quartz_window_get_nsview
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11154 char gdk_quartz_window_get_nsview ();
11155 /* The GNU C library defines this for functions which it implements
11156 to always fail with ENOSYS. Some functions are actually named
11157 something starting with __ and the normal name is an alias. */
11158 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
11165 return gdk_quartz_window_get_nsview ();
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (ac_try="$ac_link"
11172 case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_link") 2>conftest.er1
11179 grep -v '^ *+' conftest.er1 >conftest.err
11181 cat conftest.err >&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && {
11184 test -z "$ac_c_werror_flag" ||
11185 test ! -s conftest.err
11186 } && test -s conftest$ac_exeext &&
11187 $as_test_x conftest$ac_exeext; then
11188 ac_cv_func_gdk_quartz_window_get_nsview=yes
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_cv_func_gdk_quartz_window_get_nsview=no
11196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11197 conftest$ac_exeext conftest.$ac_ext
11199 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
11200 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
11201 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
11205 cat >>confdefs.h <<\_ACEOF
11206 #define HAVE_GTK_OSX 1
11211 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
11212 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
11213 See \`config.log' for more details." >&5
11214 echo "$as_me: error: Unable to identify GTK platform
11215 See \`config.log' for more details." >&2;}
11216 { (exit 1); exit 1; }; }
11223 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
11224 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
11226 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
11227 pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
11228 elif test -n "$PKG_CONFIG"; then
11229 if test -n "$PKG_CONFIG" && \
11230 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
11231 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; then
11235 pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
11242 if test -n "$GLIB_FOR_BUILD_LIBS"; then
11243 pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
11244 elif test -n "$PKG_CONFIG"; then
11245 if test -n "$PKG_CONFIG" && \
11246 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
11247 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; then
11251 pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
11261 if test $pkg_failed = yes; then
11263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11264 _pkg_short_errors_supported=yes
11266 _pkg_short_errors_supported=no
11268 if test $_pkg_short_errors_supported = yes; then
11269 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
11271 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
11273 # Put the nasty error message in config.log where it belongs
11274 echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
11276 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
11278 $GLIB_FOR_BUILD_PKG_ERRORS
11280 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11281 installed software in a non-standard prefix.
11283 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11284 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11285 See the pkg-config man page for more details.
11287 echo "$as_me: error: Package requirements (glib-2.0) were not met:
11289 $GLIB_FOR_BUILD_PKG_ERRORS
11291 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11292 installed software in a non-standard prefix.
11294 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11295 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11296 See the pkg-config man page for more details.
11298 { (exit 1); exit 1; }; }
11299 elif test $pkg_failed = untried; then
11300 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11301 is in your PATH or set the PKG_CONFIG environment variable to the full
11302 path to pkg-config.
11304 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11305 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11306 See the pkg-config man page for more details.
11308 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11309 See \`config.log' for more details." >&5
11310 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11311 is in your PATH or set the PKG_CONFIG environment variable to the full
11312 path to pkg-config.
11314 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11315 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11316 See the pkg-config man page for more details.
11318 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11319 See \`config.log' for more details." >&2;}
11320 { (exit 1); exit 1; }; }
11322 GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
11323 GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
11324 { echo "$as_me:$LINENO: result: yes" >&5
11325 echo "${ECHO_T}yes" >&6; }
11332 if test "$HAVE_GTK" = 'yes'; then
11343 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
11344 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
11346 if test -n "$LIBISOFS_CFLAGS"; then
11347 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
11348 elif test -n "$PKG_CONFIG"; then
11349 if test -n "$PKG_CONFIG" && \
11350 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11351 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; then
11355 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
11362 if test -n "$LIBISOFS_LIBS"; then
11363 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
11364 elif test -n "$PKG_CONFIG"; then
11365 if test -n "$PKG_CONFIG" && \
11366 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11367 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; then
11371 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
11381 if test $pkg_failed = yes; then
11383 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11384 _pkg_short_errors_supported=yes
11386 _pkg_short_errors_supported=no
11388 if test $_pkg_short_errors_supported = yes; then
11389 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
11391 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
11393 # Put the nasty error message in config.log where it belongs
11394 echo "$LIBISOFS_PKG_ERRORS" >&5
11396 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
11398 $LIBISOFS_PKG_ERRORS
11400 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11401 installed software in a non-standard prefix.
11403 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11404 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11405 See the pkg-config man page for more details.
11407 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
11409 $LIBISOFS_PKG_ERRORS
11411 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11412 installed software in a non-standard prefix.
11414 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11415 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11416 See the pkg-config man page for more details.
11418 { (exit 1); exit 1; }; }
11419 elif test $pkg_failed = untried; then
11420 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11421 is in your PATH or set the PKG_CONFIG environment variable to the full
11422 path to pkg-config.
11424 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11425 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11426 See the pkg-config man page for more details.
11428 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11429 See \`config.log' for more details." >&5
11430 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11431 is in your PATH or set the PKG_CONFIG environment variable to the full
11432 path to pkg-config.
11434 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11435 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11436 See the pkg-config man page for more details.
11438 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11439 See \`config.log' for more details." >&2;}
11440 { (exit 1); exit 1; }; }
11442 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
11443 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
11444 { echo "$as_me:$LINENO: result: yes" >&5
11445 echo "${ECHO_T}yes" >&6; }
11449 if test "x$with_osmesa" != xno; then
11453 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
11454 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
11455 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 ac_check_lib_save_LIBS=$LIBS
11459 LIBS="-lOSMesa $LIBS"
11460 cat >conftest.$ac_ext <<_ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11473 char OSMesaCreateContext ();
11477 return OSMesaCreateContext ();
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (ac_try="$ac_link"
11484 case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_link") 2>conftest.er1
11491 grep -v '^ *+' conftest.er1 >conftest.err
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && {
11496 test -z "$ac_c_werror_flag" ||
11497 test ! -s conftest.err
11498 } && test -s conftest$ac_exeext &&
11499 $as_test_x conftest$ac_exeext; then
11500 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11505 ac_cv_lib_OSMesa_OSMesaCreateContext=no
11508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11509 conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11512 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
11513 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
11514 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
11515 cat >>confdefs.h <<_ACEOF
11516 #define HAVE_LIBOSMESA 1
11519 LIBS="-lOSMesa $LIBS"
11522 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
11523 See \`config.log' for more details." >&5
11524 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
11525 See \`config.log' for more details." >&2;}
11526 { (exit 1); exit 1; }; }
11529 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11530 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11531 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11532 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11536 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11538 # Is the header compilable?
11539 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
11540 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
11541 cat >conftest.$ac_ext <<_ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 $ac_includes_default
11548 #include <GL/osmesa.h>
11550 rm -f conftest.$ac_objext
11551 if { (ac_try="$ac_compile"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_compile") 2>conftest.er1
11559 grep -v '^ *+' conftest.er1 >conftest.err
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } && {
11564 test -z "$ac_c_werror_flag" ||
11565 test ! -s conftest.err
11566 } && test -s conftest.$ac_objext; then
11567 ac_header_compiler=yes
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_header_compiler=no
11575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11577 echo "${ECHO_T}$ac_header_compiler" >&6; }
11579 # Is the header present?
11580 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
11581 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
11582 cat >conftest.$ac_ext <<_ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 #include <GL/osmesa.h>
11590 if { (ac_try="$ac_cpp conftest.$ac_ext"
11591 case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11598 grep -v '^ *+' conftest.er1 >conftest.err
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } >/dev/null && {
11603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11604 test ! -s conftest.err
11606 ac_header_preproc=yes
11608 echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11611 ac_header_preproc=no
11614 rm -f conftest.err conftest.$ac_ext
11615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11616 echo "${ECHO_T}$ac_header_preproc" >&6; }
11618 # So? What about this header?
11619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11621 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
11622 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
11624 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
11625 ac_header_preproc=yes
11628 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
11629 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
11631 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
11632 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
11633 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
11635 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
11637 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
11638 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
11639 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
11643 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11644 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11645 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 ac_cv_header_GL_osmesa_h=$ac_header_preproc
11650 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11651 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11654 if test $ac_cv_header_GL_osmesa_h = yes; then
11657 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
11658 See \`config.log' for more details." >&5
11659 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
11660 See \`config.log' for more details." >&2;}
11661 { (exit 1); exit 1; }; }
11666 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
11668 cat >>confdefs.h <<\_ACEOF
11669 #define HAVE_OSMESA 1
11675 if test "x$APPLE_BUILD" != 'xyes' -a "x$ANDROID_BUILD" != 'xyes'; then
11678 { echo "$as_me:$LINENO: checking for LIBGL" >&5
11679 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
11681 if test -n "$LIBGL_CFLAGS"; then
11682 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
11683 elif test -n "$PKG_CONFIG"; then
11684 if test -n "$PKG_CONFIG" && \
11685 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11686 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; then
11690 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
11697 if test -n "$LIBGL_LIBS"; then
11698 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
11699 elif test -n "$PKG_CONFIG"; then
11700 if test -n "$PKG_CONFIG" && \
11701 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11702 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; then
11706 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
11716 if test $pkg_failed = yes; then
11718 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11719 _pkg_short_errors_supported=yes
11721 _pkg_short_errors_supported=no
11723 if test $_pkg_short_errors_supported = yes; then
11724 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
11726 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
11728 # Put the nasty error message in config.log where it belongs
11729 echo "$LIBGL_PKG_ERRORS" >&5
11731 { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
11735 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11736 installed software in a non-standard prefix.
11738 Alternatively, you may set the environment variables LIBGL_CFLAGS
11739 and LIBGL_LIBS to avoid the need to call pkg-config.
11740 See the pkg-config man page for more details.
11742 echo "$as_me: error: Package requirements (gl ) were not met:
11746 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11747 installed software in a non-standard prefix.
11749 Alternatively, you may set the environment variables LIBGL_CFLAGS
11750 and LIBGL_LIBS to avoid the need to call pkg-config.
11751 See the pkg-config man page for more details.
11753 { (exit 1); exit 1; }; }
11754 elif test $pkg_failed = untried; then
11755 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11756 is in your PATH or set the PKG_CONFIG environment variable to the full
11757 path to pkg-config.
11759 Alternatively, you may set the environment variables LIBGL_CFLAGS
11760 and LIBGL_LIBS to avoid the need to call pkg-config.
11761 See the pkg-config man page for more details.
11763 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11764 See \`config.log' for more details." >&5
11765 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11766 is in your PATH or set the PKG_CONFIG environment variable to the full
11767 path to pkg-config.
11769 Alternatively, you may set the environment variables LIBGL_CFLAGS
11770 and LIBGL_LIBS to avoid the need to call pkg-config.
11771 See the pkg-config man page for more details.
11773 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11774 See \`config.log' for more details." >&2;}
11775 { (exit 1); exit 1; }; }
11777 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
11778 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
11779 { echo "$as_me:$LINENO: result: yes" >&5
11780 echo "${ECHO_T}yes" >&6; }
11783 LIBS="$LIBS $LIBGL_LIBS";
11784 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
11786 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
11787 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
11788 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 cat >conftest.$ac_ext <<_ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
11798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11799 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
11801 /* System header to define __stub macros and hopefully few prototypes,
11802 which can conflict with char NSOpenGLGetVersion (); below.
11803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804 <limits.h> exists even on freestanding compilers. */
11807 # include <limits.h>
11809 # include <assert.h>
11812 #undef NSOpenGLGetVersion
11814 /* Override any GCC internal prototype to avoid an error.
11815 Use char because int might match the return type of a GCC
11816 builtin and then its argument prototype would still apply. */
11820 char NSOpenGLGetVersion ();
11821 /* The GNU C library defines this for functions which it implements
11822 to always fail with ENOSYS. Some functions are actually named
11823 something starting with __ and the normal name is an alias. */
11824 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
11831 return NSOpenGLGetVersion ();
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_link") 2>conftest.er1
11845 grep -v '^ *+' conftest.er1 >conftest.err
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && {
11850 test -z "$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11852 } && test -s conftest$ac_exeext &&
11853 $as_test_x conftest$ac_exeext; then
11854 ac_cv_func_NSOpenGLGetVersion=yes
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11859 ac_cv_func_NSOpenGLGetVersion=no
11862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11863 conftest$ac_exeext conftest.$ac_ext
11865 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
11866 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
11867 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
11870 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
11872 cat >>confdefs.h <<\_ACEOF
11873 #define HAVE_NSGL 1
11880 if test "x$HAVE_GTK_X11" = "xyes"; then
11881 if test "x$APPLE_BUILD" = "xyes"; then
11882 LIBS="$LIBS -L/usr/X11/lib -lGL"
11884 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
11885 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
11886 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 cat >conftest.$ac_ext <<_ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
11896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11897 #define glXQueryVersion innocuous_glXQueryVersion
11899 /* System header to define __stub macros and hopefully few prototypes,
11900 which can conflict with char glXQueryVersion (); below.
11901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11902 <limits.h> exists even on freestanding compilers. */
11905 # include <limits.h>
11907 # include <assert.h>
11910 #undef glXQueryVersion
11912 /* Override any GCC internal prototype to avoid an error.
11913 Use char because int might match the return type of a GCC
11914 builtin and then its argument prototype would still apply. */
11918 char glXQueryVersion ();
11919 /* The GNU C library defines this for functions which it implements
11920 to always fail with ENOSYS. Some functions are actually named
11921 something starting with __ and the normal name is an alias. */
11922 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
11929 return glXQueryVersion ();
11934 rm -f conftest.$ac_objext conftest$ac_exeext
11935 if { (ac_try="$ac_link"
11936 case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941 (eval "$ac_link") 2>conftest.er1
11943 grep -v '^ *+' conftest.er1 >conftest.err
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } && {
11948 test -z "$ac_c_werror_flag" ||
11949 test ! -s conftest.err
11950 } && test -s conftest$ac_exeext &&
11951 $as_test_x conftest$ac_exeext; then
11952 ac_cv_func_glXQueryVersion=yes
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_cv_func_glXQueryVersion=no
11960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11961 conftest$ac_exeext conftest.$ac_ext
11963 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
11964 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
11965 if test $ac_cv_func_glXQueryVersion = yes; then
11968 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
11970 cat >>confdefs.h <<\_ACEOF
11986 if test "x$HAVE_OSMESA" = "xyes"; then
11988 VIDEO_OSMESA_FALSE='#'
11990 VIDEO_OSMESA_TRUE='#'
11991 VIDEO_OSMESA_FALSE=
11996 if test "x$HAVE_GLX" = "xyes"; then
11998 VIDEO_GLX_FALSE='#'
12006 if test "x$HAVE_NSGL" = "xyes"; then
12008 VIDEO_NSGL_FALSE='#'
12010 VIDEO_NSGL_TRUE='#'
12015 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
12016 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
12017 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 cat >conftest.$ac_ext <<_ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12026 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
12027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12028 #define glGenFramebuffers innocuous_glGenFramebuffers
12030 /* System header to define __stub macros and hopefully few prototypes,
12031 which can conflict with char glGenFramebuffers (); below.
12032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12033 <limits.h> exists even on freestanding compilers. */
12036 # include <limits.h>
12038 # include <assert.h>
12041 #undef glGenFramebuffers
12043 /* Override any GCC internal prototype to avoid an error.
12044 Use char because int might match the return type of a GCC
12045 builtin and then its argument prototype would still apply. */
12049 char glGenFramebuffers ();
12050 /* The GNU C library defines this for functions which it implements
12051 to always fail with ENOSYS. Some functions are actually named
12052 something starting with __ and the normal name is an alias. */
12053 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
12060 return glGenFramebuffers ();
12065 rm -f conftest.$ac_objext conftest$ac_exeext
12066 if { (ac_try="$ac_link"
12067 case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_link") 2>conftest.er1
12074 grep -v '^ *+' conftest.er1 >conftest.err
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } && {
12079 test -z "$ac_c_werror_flag" ||
12080 test ! -s conftest.err
12081 } && test -s conftest$ac_exeext &&
12082 $as_test_x conftest$ac_exeext; then
12083 ac_cv_func_glGenFramebuffers=yes
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 ac_cv_func_glGenFramebuffers=no
12091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12092 conftest$ac_exeext conftest.$ac_ext
12094 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
12095 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
12096 if test $ac_cv_func_glGenFramebuffers = yes; then
12098 cat >>confdefs.h <<\_ACEOF
12099 #define HAVE_OPENGL_FBO 1
12104 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
12105 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
12106 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 cat >conftest.$ac_ext <<_ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
12116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12117 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
12119 /* System header to define __stub macros and hopefully few prototypes,
12120 which can conflict with char glGenFramebuffersEXT (); below.
12121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122 <limits.h> exists even on freestanding compilers. */
12125 # include <limits.h>
12127 # include <assert.h>
12130 #undef glGenFramebuffersEXT
12132 /* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12138 char glGenFramebuffersEXT ();
12139 /* The GNU C library defines this for functions which it implements
12140 to always fail with ENOSYS. Some functions are actually named
12141 something starting with __ and the normal name is an alias. */
12142 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
12149 return glGenFramebuffersEXT ();
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (ac_try="$ac_link"
12156 case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_link") 2>conftest.er1
12163 grep -v '^ *+' conftest.er1 >conftest.err
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } && {
12168 test -z "$ac_c_werror_flag" ||
12169 test ! -s conftest.err
12170 } && test -s conftest$ac_exeext &&
12171 $as_test_x conftest$ac_exeext; then
12172 ac_cv_func_glGenFramebuffersEXT=yes
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12177 ac_cv_func_glGenFramebuffersEXT=no
12180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12181 conftest$ac_exeext conftest.$ac_ext
12183 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
12184 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
12185 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
12187 cat >>confdefs.h <<\_ACEOF
12188 #define HAVE_OPENGL_FBO_EXT 1
12193 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
12194 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
12195 if test "${ac_cv_func_glCreateShader+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 cat >conftest.$ac_ext <<_ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
12205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12206 #define glCreateShader innocuous_glCreateShader
12208 /* System header to define __stub macros and hopefully few prototypes,
12209 which can conflict with char glCreateShader (); below.
12210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12211 <limits.h> exists even on freestanding compilers. */
12214 # include <limits.h>
12216 # include <assert.h>
12219 #undef glCreateShader
12221 /* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
12227 char glCreateShader ();
12228 /* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231 #if defined __stub_glCreateShader || defined __stub___glCreateShader
12238 return glCreateShader ();
12243 rm -f conftest.$ac_objext conftest$ac_exeext
12244 if { (ac_try="$ac_link"
12245 case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_link") 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest$ac_exeext &&
12260 $as_test_x conftest$ac_exeext; then
12261 ac_cv_func_glCreateShader=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_cv_func_glCreateShader=no
12269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12270 conftest$ac_exeext conftest.$ac_ext
12272 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
12273 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
12274 if test $ac_cv_func_glCreateShader = yes; then
12276 cat >>confdefs.h <<\_ACEOF
12277 #define HAVE_OPENGL_SHADER 1
12282 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
12283 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
12284 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 cat >conftest.$ac_ext <<_ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
12294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12295 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
12297 /* System header to define __stub macros and hopefully few prototypes,
12298 which can conflict with char glCreateShaderObjectARB (); below.
12299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12300 <limits.h> exists even on freestanding compilers. */
12303 # include <limits.h>
12305 # include <assert.h>
12308 #undef glCreateShaderObjectARB
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12316 char glCreateShaderObjectARB ();
12317 /* The GNU C library defines this for functions which it implements
12318 to always fail with ENOSYS. Some functions are actually named
12319 something starting with __ and the normal name is an alias. */
12320 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
12327 return glCreateShaderObjectARB ();
12332 rm -f conftest.$ac_objext conftest$ac_exeext
12333 if { (ac_try="$ac_link"
12334 case "(($ac_try" in
12335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339 (eval "$ac_link") 2>conftest.er1
12341 grep -v '^ *+' conftest.er1 >conftest.err
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && {
12346 test -z "$ac_c_werror_flag" ||
12347 test ! -s conftest.err
12348 } && test -s conftest$ac_exeext &&
12349 $as_test_x conftest$ac_exeext; then
12350 ac_cv_func_glCreateShaderObjectARB=yes
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_cv_func_glCreateShaderObjectARB=no
12358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12359 conftest$ac_exeext conftest.$ac_ext
12361 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
12362 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
12363 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
12365 cat >>confdefs.h <<\_ACEOF
12366 #define HAVE_OPENGL_SHADER_ARB 1
12371 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
12372 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
12373 if test "${ac_cv_func_glClampColorARB+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 cat >conftest.$ac_ext <<_ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
12383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12384 #define glClampColorARB innocuous_glClampColorARB
12386 /* System header to define __stub macros and hopefully few prototypes,
12387 which can conflict with char glClampColorARB (); below.
12388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12389 <limits.h> exists even on freestanding compilers. */
12392 # include <limits.h>
12394 # include <assert.h>
12397 #undef glClampColorARB
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12405 char glClampColorARB ();
12406 /* The GNU C library defines this for functions which it implements
12407 to always fail with ENOSYS. Some functions are actually named
12408 something starting with __ and the normal name is an alias. */
12409 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
12416 return glClampColorARB ();
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_link") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest$ac_exeext &&
12438 $as_test_x conftest$ac_exeext; then
12439 ac_cv_func_glClampColorARB=yes
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ac_cv_func_glClampColorARB=no
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448 conftest$ac_exeext conftest.$ac_ext
12450 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
12451 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
12452 if test $ac_cv_func_glClampColorARB = yes; then
12454 cat >>confdefs.h <<\_ACEOF
12455 #define HAVE_OPENGL_CLAMP_COLOR 1
12460 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
12461 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
12462 if test "${ac_cv_func_glClearDepthf+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 cat >conftest.$ac_ext <<_ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
12472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12473 #define glClearDepthf innocuous_glClearDepthf
12475 /* System header to define __stub macros and hopefully few prototypes,
12476 which can conflict with char glClearDepthf (); below.
12477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12478 <limits.h> exists even on freestanding compilers. */
12481 # include <limits.h>
12483 # include <assert.h>
12486 #undef glClearDepthf
12488 /* Override any GCC internal prototype to avoid an error.
12489 Use char because int might match the return type of a GCC
12490 builtin and then its argument prototype would still apply. */
12494 char glClearDepthf ();
12495 /* The GNU C library defines this for functions which it implements
12496 to always fail with ENOSYS. Some functions are actually named
12497 something starting with __ and the normal name is an alias. */
12498 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
12505 return glClearDepthf ();
12510 rm -f conftest.$ac_objext conftest$ac_exeext
12511 if { (ac_try="$ac_link"
12512 case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_link") 2>conftest.er1
12519 grep -v '^ *+' conftest.er1 >conftest.err
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } && {
12524 test -z "$ac_c_werror_flag" ||
12525 test ! -s conftest.err
12526 } && test -s conftest$ac_exeext &&
12527 $as_test_x conftest$ac_exeext; then
12528 ac_cv_func_glClearDepthf=yes
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 ac_cv_func_glClearDepthf=no
12536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12537 conftest$ac_exeext conftest.$ac_ext
12539 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
12540 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
12541 if test $ac_cv_func_glClearDepthf = yes; then
12543 cat >>confdefs.h <<\_ACEOF
12544 #define HAVE_OPENGL_CLEAR_DEPTHF 1
12549 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
12550 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
12551 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 cat >conftest.$ac_ext <<_ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12560 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
12561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12562 #define glAreTexturesResident innocuous_glAreTexturesResident
12564 /* System header to define __stub macros and hopefully few prototypes,
12565 which can conflict with char glAreTexturesResident (); below.
12566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12567 <limits.h> exists even on freestanding compilers. */
12570 # include <limits.h>
12572 # include <assert.h>
12575 #undef glAreTexturesResident
12577 /* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12583 char glAreTexturesResident ();
12584 /* The GNU C library defines this for functions which it implements
12585 to always fail with ENOSYS. Some functions are actually named
12586 something starting with __ and the normal name is an alias. */
12587 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
12594 return glAreTexturesResident ();
12599 rm -f conftest.$ac_objext conftest$ac_exeext
12600 if { (ac_try="$ac_link"
12601 case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_link") 2>conftest.er1
12608 grep -v '^ *+' conftest.er1 >conftest.err
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest$ac_exeext &&
12616 $as_test_x conftest$ac_exeext; then
12617 ac_cv_func_glAreTexturesResident=yes
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12622 ac_cv_func_glAreTexturesResident=no
12625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12626 conftest$ac_exeext conftest.$ac_ext
12628 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
12629 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
12630 if test $ac_cv_func_glAreTexturesResident = yes; then
12632 cat >>confdefs.h <<\_ACEOF
12633 #define HAVE_OPENGL_TEX_RESIDENT 1
12638 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
12639 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
12640 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 cat >conftest.$ac_ext <<_ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12649 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
12650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12651 #define glDrawBuffer innocuous_glDrawBuffer
12653 /* System header to define __stub macros and hopefully few prototypes,
12654 which can conflict with char glDrawBuffer (); below.
12655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12656 <limits.h> exists even on freestanding compilers. */
12659 # include <limits.h>
12661 # include <assert.h>
12664 #undef glDrawBuffer
12666 /* Override any GCC internal prototype to avoid an error.
12667 Use char because int might match the return type of a GCC
12668 builtin and then its argument prototype would still apply. */
12672 char glDrawBuffer ();
12673 /* The GNU C library defines this for functions which it implements
12674 to always fail with ENOSYS. Some functions are actually named
12675 something starting with __ and the normal name is an alias. */
12676 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
12683 return glDrawBuffer ();
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (ac_try="$ac_link"
12690 case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_link") 2>conftest.er1
12697 grep -v '^ *+' conftest.er1 >conftest.err
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } && {
12702 test -z "$ac_c_werror_flag" ||
12703 test ! -s conftest.err
12704 } && test -s conftest$ac_exeext &&
12705 $as_test_x conftest$ac_exeext; then
12706 ac_cv_func_glDrawBuffer=yes
12708 echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12711 ac_cv_func_glDrawBuffer=no
12714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12715 conftest$ac_exeext conftest.$ac_ext
12717 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
12718 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
12719 if test $ac_cv_func_glDrawBuffer = yes; then
12721 cat >>confdefs.h <<\_ACEOF
12722 #define HAVE_OPENGL_DRAW_BUFFER 1
12727 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
12728 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
12729 if test "${ac_cv_func_glTexEnvi+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 cat >conftest.$ac_ext <<_ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12738 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
12739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12740 #define glTexEnvi innocuous_glTexEnvi
12742 /* System header to define __stub macros and hopefully few prototypes,
12743 which can conflict with char glTexEnvi (); below.
12744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12745 <limits.h> exists even on freestanding compilers. */
12748 # include <limits.h>
12750 # include <assert.h>
12755 /* Override any GCC internal prototype to avoid an error.
12756 Use char because int might match the return type of a GCC
12757 builtin and then its argument prototype would still apply. */
12762 /* The GNU C library defines this for functions which it implements
12763 to always fail with ENOSYS. Some functions are actually named
12764 something starting with __ and the normal name is an alias. */
12765 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
12772 return glTexEnvi ();
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (ac_try="$ac_link"
12779 case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_link") 2>conftest.er1
12786 grep -v '^ *+' conftest.er1 >conftest.err
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && {
12791 test -z "$ac_c_werror_flag" ||
12792 test ! -s conftest.err
12793 } && test -s conftest$ac_exeext &&
12794 $as_test_x conftest$ac_exeext; then
12795 ac_cv_func_glTexEnvi=yes
12797 echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12800 ac_cv_func_glTexEnvi=no
12803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12804 conftest$ac_exeext conftest.$ac_ext
12806 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
12807 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
12808 if test $ac_cv_func_glTexEnvi = yes; then
12810 cat >>confdefs.h <<\_ACEOF
12811 #define HAVE_OPENGL_FIXEDFUNC 1
12817 if test "x$enable_translator" != "xno"; then
12819 i386|i486|i586|i686|x86_64)
12820 SH4_TRANSLATOR="x86"
12822 cat >>confdefs.h <<_ACEOF
12823 #define SH4_TRANSLATOR TARGET_X86
12830 if test "$SH4_TRANSLATOR" = "x86"; then
12832 BUILD_SH4X86_FALSE='#'
12834 BUILD_SH4X86_TRUE='#'
12835 BUILD_SH4X86_FALSE=
12839 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12840 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12841 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12842 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12846 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12848 # Is the header compilable?
12849 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
12850 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
12851 cat >conftest.$ac_ext <<_ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857 $ac_includes_default
12858 #include <CoreAudio/CoreAudio.h>
12860 rm -f conftest.$ac_objext
12861 if { (ac_try="$ac_compile"
12862 case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_compile") 2>conftest.er1
12869 grep -v '^ *+' conftest.er1 >conftest.err
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } && {
12874 test -z "$ac_c_werror_flag" ||
12875 test ! -s conftest.err
12876 } && test -s conftest.$ac_objext; then
12877 ac_header_compiler=yes
12879 echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12882 ac_header_compiler=no
12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12887 echo "${ECHO_T}$ac_header_compiler" >&6; }
12889 # Is the header present?
12890 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
12891 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
12892 cat >conftest.$ac_ext <<_ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12898 #include <CoreAudio/CoreAudio.h>
12900 if { (ac_try="$ac_cpp conftest.$ac_ext"
12901 case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12908 grep -v '^ *+' conftest.er1 >conftest.err
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } >/dev/null && {
12913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12916 ac_header_preproc=yes
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 ac_header_preproc=no
12924 rm -f conftest.err conftest.$ac_ext
12925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12926 echo "${ECHO_T}$ac_header_preproc" >&6; }
12928 # So? What about this header?
12929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12931 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12932 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12933 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
12934 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
12935 ac_header_preproc=yes
12938 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
12939 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
12941 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
12942 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
12943 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
12944 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
12945 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
12947 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
12948 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
12949 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
12953 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12954 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12955 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
12960 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12961 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12964 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
12966 HAVE_CORE_AUDIO=yes
12967 LIBS="$LIBS -framework CoreAudio"
12968 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
12970 cat >>confdefs.h <<\_ACEOF
12971 #define HAVE_CORE_AUDIO 1
12981 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
12983 AUDIO_OSX_FALSE='#'
12990 if test "x$with_sdl" != "xno"; then
12993 { echo "$as_me:$LINENO: checking for SDL" >&5
12994 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
12996 if test -n "$SDL_CFLAGS"; then
12997 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12998 elif test -n "$PKG_CONFIG"; then
12999 if test -n "$PKG_CONFIG" && \
13000 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
13001 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; then
13005 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13012 if test -n "$SDL_LIBS"; then
13013 pkg_cv_SDL_LIBS="$SDL_LIBS"
13014 elif test -n "$PKG_CONFIG"; then
13015 if test -n "$PKG_CONFIG" && \
13016 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
13017 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; then
13021 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13031 if test $pkg_failed = yes; then
13033 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13034 _pkg_short_errors_supported=yes
13036 _pkg_short_errors_supported=no
13038 if test $_pkg_short_errors_supported = yes; then
13039 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
13041 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
13043 # Put the nasty error message in config.log where it belongs
13044 echo "$SDL_PKG_ERRORS" >&5
13046 { echo "$as_me:$LINENO: result: no" >&5
13047 echo "${ECHO_T}no" >&6; }
13049 if test "x$with_sdl" = "xyes"; then
13050 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
13051 See \`config.log' for more details." >&5
13052 echo "$as_me: error: \"SDL libraries could not be found (but were required)
13053 See \`config.log' for more details." >&2;}
13054 { (exit 1); exit 1; }; }
13057 elif test $pkg_failed = untried; then
13059 if test "x$with_sdl" = "xyes"; then
13060 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
13061 See \`config.log' for more details." >&5
13062 echo "$as_me: error: \"SDL libraries could not be found (but were required)
13063 See \`config.log' for more details." >&2;}
13064 { (exit 1); exit 1; }; }
13068 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13069 SDL_LIBS=$pkg_cv_SDL_LIBS
13070 { echo "$as_me:$LINENO: result: yes" >&5
13071 echo "${ECHO_T}yes" >&6; }
13074 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
13076 cat >>confdefs.h <<\_ACEOF
13085 if test "$HAVE_SDL" = 'yes' ; then
13087 AUDIO_SDL_FALSE='#'
13094 if test "x$with_pulse" != "xno"; then
13097 { echo "$as_me:$LINENO: checking for PULSE" >&5
13098 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
13100 if test -n "$PULSE_CFLAGS"; then
13101 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
13102 elif test -n "$PKG_CONFIG"; then
13103 if test -n "$PKG_CONFIG" && \
13104 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
13105 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; then
13109 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
13116 if test -n "$PULSE_LIBS"; then
13117 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
13118 elif test -n "$PKG_CONFIG"; then
13119 if test -n "$PKG_CONFIG" && \
13120 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
13121 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; then
13125 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
13135 if test $pkg_failed = yes; then
13137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13138 _pkg_short_errors_supported=yes
13140 _pkg_short_errors_supported=no
13142 if test $_pkg_short_errors_supported = yes; then
13143 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
13145 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
13147 # Put the nasty error message in config.log where it belongs
13148 echo "$PULSE_PKG_ERRORS" >&5
13150 { echo "$as_me:$LINENO: result: no" >&5
13151 echo "${ECHO_T}no" >&6; }
13153 if test "x$with_pulse" = "xyes"; then
13154 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
13155 See \`config.log' for more details." >&5
13156 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
13157 See \`config.log' for more details." >&2;}
13158 { (exit 1); exit 1; }; }
13161 elif test $pkg_failed = untried; then
13163 if test "x$with_pulse" = "xyes"; then
13164 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
13165 See \`config.log' for more details." >&5
13166 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
13167 See \`config.log' for more details." >&2;}
13168 { (exit 1); exit 1; }; }
13172 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
13173 PULSE_LIBS=$pkg_cv_PULSE_LIBS
13174 { echo "$as_me:$LINENO: result: yes" >&5
13175 echo "${ECHO_T}yes" >&6; }
13178 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
13180 cat >>confdefs.h <<\_ACEOF
13181 #define HAVE_PULSE 1
13189 if test "$HAVE_PULSE" = 'yes' ; then
13191 AUDIO_PULSE_FALSE='#'
13193 AUDIO_PULSE_TRUE='#'
13198 if test "x$with_esd" != "xno"; then
13201 { echo "$as_me:$LINENO: checking for ESOUND" >&5
13202 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
13204 if test -n "$ESOUND_CFLAGS"; then
13205 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
13206 elif test -n "$PKG_CONFIG"; then
13207 if test -n "$PKG_CONFIG" && \
13208 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
13209 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; then
13213 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
13220 if test -n "$ESOUND_LIBS"; then
13221 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
13222 elif test -n "$PKG_CONFIG"; then
13223 if test -n "$PKG_CONFIG" && \
13224 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
13225 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; then
13229 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
13239 if test $pkg_failed = yes; then
13241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13242 _pkg_short_errors_supported=yes
13244 _pkg_short_errors_supported=no
13246 if test $_pkg_short_errors_supported = yes; then
13247 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
13249 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
13251 # Put the nasty error message in config.log where it belongs
13252 echo "$ESOUND_PKG_ERRORS" >&5
13254 { echo "$as_me:$LINENO: result: no" >&5
13255 echo "${ECHO_T}no" >&6; }
13257 if test "x$with_esd" = "xyes"; then
13258 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13259 See \`config.log' for more details." >&5
13260 echo "$as_me: error: ESounD audio package could not be found (but was required)
13261 See \`config.log' for more details." >&2;}
13262 { (exit 1); exit 1; }; }
13265 elif test $pkg_failed = untried; then
13267 if test "x$with_esd" = "xyes"; then
13268 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13269 See \`config.log' for more details." >&5
13270 echo "$as_me: error: ESounD audio package could not be found (but was required)
13271 See \`config.log' for more details." >&2;}
13272 { (exit 1); exit 1; }; }
13276 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
13277 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
13278 { echo "$as_me:$LINENO: result: yes" >&5
13279 echo "${ECHO_T}yes" >&6; }
13282 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
13284 cat >>confdefs.h <<\_ACEOF
13285 #define HAVE_ESOUND 1
13293 if test "$HAVE_ESOUND" = 'yes' ; then
13295 AUDIO_ESOUND_FALSE='#'
13297 AUDIO_ESOUND_TRUE='#'
13298 AUDIO_ESOUND_FALSE=
13304 { echo "$as_me:$LINENO: checking for ALSA" >&5
13305 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
13307 if test -n "$ALSA_CFLAGS"; then
13308 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
13309 elif test -n "$PKG_CONFIG"; then
13310 if test -n "$PKG_CONFIG" && \
13311 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13312 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; then
13316 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
13323 if test -n "$ALSA_LIBS"; then
13324 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
13325 elif test -n "$PKG_CONFIG"; then
13326 if test -n "$PKG_CONFIG" && \
13327 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13328 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; then
13332 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
13342 if test $pkg_failed = yes; then
13344 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13345 _pkg_short_errors_supported=yes
13347 _pkg_short_errors_supported=no
13349 if test $_pkg_short_errors_supported = yes; then
13350 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
13352 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
13354 # Put the nasty error message in config.log where it belongs
13355 echo "$ALSA_PKG_ERRORS" >&5
13357 { echo "$as_me:$LINENO: result: no" >&5
13358 echo "${ECHO_T}no" >&6; }
13360 elif test $pkg_failed = untried; then
13363 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
13364 ALSA_LIBS=$pkg_cv_ALSA_LIBS
13365 { echo "$as_me:$LINENO: result: yes" >&5
13366 echo "${ECHO_T}yes" >&6; }
13369 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
13371 cat >>confdefs.h <<\_ACEOF
13372 #define HAVE_ALSA 1
13378 if test "$HAVE_ALSA" = 'yes' ; then
13380 AUDIO_ALSA_FALSE='#'
13382 AUDIO_ALSA_TRUE='#'
13388 if test "$ANDROID_BUILD" != "yes"; then
13389 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13390 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13391 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13392 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13396 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13398 # Is the header compilable?
13399 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
13400 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
13401 cat >conftest.$ac_ext <<_ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13407 $ac_includes_default
13408 #include <linux/cdrom.h>
13410 rm -f conftest.$ac_objext
13411 if { (ac_try="$ac_compile"
13412 case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_compile") 2>conftest.er1
13419 grep -v '^ *+' conftest.er1 >conftest.err
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } && {
13424 test -z "$ac_c_werror_flag" ||
13425 test ! -s conftest.err
13426 } && test -s conftest.$ac_objext; then
13427 ac_header_compiler=yes
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 ac_header_compiler=no
13435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13437 echo "${ECHO_T}$ac_header_compiler" >&6; }
13439 # Is the header present?
13440 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
13441 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
13442 cat >conftest.$ac_ext <<_ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13448 #include <linux/cdrom.h>
13450 if { (ac_try="$ac_cpp conftest.$ac_ext"
13451 case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13458 grep -v '^ *+' conftest.er1 >conftest.err
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } >/dev/null && {
13463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13464 test ! -s conftest.err
13466 ac_header_preproc=yes
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 ac_header_preproc=no
13474 rm -f conftest.err conftest.$ac_ext
13475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13476 echo "${ECHO_T}$ac_header_preproc" >&6; }
13478 # So? What about this header?
13479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13481 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
13482 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
13484 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
13485 ac_header_preproc=yes
13488 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
13489 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
13490 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
13491 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
13492 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
13493 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
13494 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
13495 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
13496 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
13497 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
13498 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
13499 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
13503 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13504 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13505 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 ac_cv_header_linux_cdrom_h=$ac_header_preproc
13510 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13511 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13514 if test $ac_cv_header_linux_cdrom_h = yes; then
13517 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
13518 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
13519 old_CFLAGS="$CFLAGS"
13520 CFLAGS="$CFLAGS $STDCFLAG"
13521 cat >conftest.$ac_ext <<_ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 #include <linux/cdrom.h>
13536 rm -f conftest.$ac_objext
13537 if { (ac_try="$ac_compile"
13538 case "(($ac_try" in
13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540 *) ac_try_echo=$ac_try;;
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_compile") 2>conftest.er1
13545 grep -v '^ *+' conftest.er1 >conftest.err
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } && {
13550 test -z "$ac_c_werror_flag" ||
13551 test ! -s conftest.err
13552 } && test -s conftest.$ac_objext; then
13553 { echo "$as_me:$LINENO: result: Yes" >&5
13554 echo "${ECHO_T}Yes" >&6; }
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13560 { echo "$as_me:$LINENO: result: No" >&5
13561 echo "${ECHO_T}No" >&6; }
13562 STDCFLAG="-std=gnu99"
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 CFLAGS="$old_CFLAGS"
13573 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13574 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13575 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13576 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13580 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13582 # Is the header compilable?
13583 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
13584 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
13585 cat >conftest.$ac_ext <<_ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 $ac_includes_default
13592 #include <IOKit/IOKitLib.h>
13594 rm -f conftest.$ac_objext
13595 if { (ac_try="$ac_compile"
13596 case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_compile") 2>conftest.er1
13603 grep -v '^ *+' conftest.er1 >conftest.err
13605 cat conftest.err >&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } && {
13608 test -z "$ac_c_werror_flag" ||
13609 test ! -s conftest.err
13610 } && test -s conftest.$ac_objext; then
13611 ac_header_compiler=yes
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13616 ac_header_compiler=no
13619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13621 echo "${ECHO_T}$ac_header_compiler" >&6; }
13623 # Is the header present?
13624 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
13625 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
13626 cat >conftest.$ac_ext <<_ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13632 #include <IOKit/IOKitLib.h>
13634 if { (ac_try="$ac_cpp conftest.$ac_ext"
13635 case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13642 grep -v '^ *+' conftest.er1 >conftest.err
13644 cat conftest.err >&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } >/dev/null && {
13647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13648 test ! -s conftest.err
13650 ac_header_preproc=yes
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13655 ac_header_preproc=no
13658 rm -f conftest.err conftest.$ac_ext
13659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13660 echo "${ECHO_T}$ac_header_preproc" >&6; }
13662 # So? What about this header?
13663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13665 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13666 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
13668 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
13669 ac_header_preproc=yes
13672 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
13673 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
13674 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
13675 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
13676 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
13677 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
13678 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
13679 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13680 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
13681 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
13682 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
13683 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
13687 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13688 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13689 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
13694 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13695 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13698 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
13701 LIBS="$LIBS -framework IOKit"
13710 if test "x$CDROM_DRIVER" = "xlinux"; then
13712 CDROM_LINUX_FALSE='#'
13714 CDROM_LINUX_TRUE='#'
13720 if test "x$CDROM_DRIVER" = "xosx"; then
13722 CDROM_OSX_FALSE='#'
13730 if test "x$CDROM_DRIVER" = "x"; then
13732 CDROM_NONE_FALSE='#'
13734 CDROM_NONE_TRUE='#'
13738 if test "x$CDROM_DRIVER" = "xlinux"; then
13740 cat >>confdefs.h <<\_ACEOF
13741 #define HAVE_LINUX_CDROM 1
13746 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13747 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13748 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13749 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13753 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13755 # Is the header compilable?
13756 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
13757 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
13758 cat >conftest.$ac_ext <<_ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13764 $ac_includes_default
13765 #include <linux/joystick.h>
13767 rm -f conftest.$ac_objext
13768 if { (ac_try="$ac_compile"
13769 case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_compile") 2>conftest.er1
13776 grep -v '^ *+' conftest.er1 >conftest.err
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } && {
13781 test -z "$ac_c_werror_flag" ||
13782 test ! -s conftest.err
13783 } && test -s conftest.$ac_objext; then
13784 ac_header_compiler=yes
13786 echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13789 ac_header_compiler=no
13792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13794 echo "${ECHO_T}$ac_header_compiler" >&6; }
13796 # Is the header present?
13797 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
13798 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
13799 cat >conftest.$ac_ext <<_ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 #include <linux/joystick.h>
13807 if { (ac_try="$ac_cpp conftest.$ac_ext"
13808 case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13815 grep -v '^ *+' conftest.er1 >conftest.err
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } >/dev/null && {
13820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13821 test ! -s conftest.err
13823 ac_header_preproc=yes
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 ac_header_preproc=no
13831 rm -f conftest.err conftest.$ac_ext
13832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13833 echo "${ECHO_T}$ac_header_preproc" >&6; }
13835 # So? What about this header?
13836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13838 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
13839 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
13841 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
13842 ac_header_preproc=yes
13845 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
13846 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
13848 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
13850 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
13852 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
13854 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
13855 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
13856 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
13860 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13861 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13862 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 ac_cv_header_linux_joystick_h=$ac_header_preproc
13867 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13868 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13871 if test $ac_cv_header_linux_joystick_h = yes; then
13873 HAVE_LINUX_JOYSTICK_H=yes
13875 cat >>confdefs.h <<\_ACEOF
13876 #define HAVE_LINUX_JOYSTICK 1
13879 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
13881 echo "Linux Joystick support not found, building without it."
13887 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
13889 JOY_LINUX_FALSE='#'
13896 if test "x$with_lirc" != "xno"; then
13897 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13898 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13899 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
13900 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13904 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
13906 # Is the header compilable?
13907 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
13908 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
13909 cat >conftest.$ac_ext <<_ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13915 $ac_includes_default
13916 #include <lirc/lirc_client.h>
13918 rm -f conftest.$ac_objext
13919 if { (ac_try="$ac_compile"
13920 case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_compile") 2>conftest.er1
13927 grep -v '^ *+' conftest.er1 >conftest.err
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } && {
13932 test -z "$ac_c_werror_flag" ||
13933 test ! -s conftest.err
13934 } && test -s conftest.$ac_objext; then
13935 ac_header_compiler=yes
13937 echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13940 ac_header_compiler=no
13943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13945 echo "${ECHO_T}$ac_header_compiler" >&6; }
13947 # Is the header present?
13948 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
13949 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
13950 cat >conftest.$ac_ext <<_ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h. */
13956 #include <lirc/lirc_client.h>
13958 if { (ac_try="$ac_cpp conftest.$ac_ext"
13959 case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13966 grep -v '^ *+' conftest.er1 >conftest.err
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } >/dev/null && {
13971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13972 test ! -s conftest.err
13974 ac_header_preproc=yes
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_header_preproc=no
13982 rm -f conftest.err conftest.$ac_ext
13983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13984 echo "${ECHO_T}$ac_header_preproc" >&6; }
13986 # So? What about this header?
13987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13989 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
13990 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
13992 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
13993 ac_header_preproc=yes
13996 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
13997 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
13998 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
13999 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
14000 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
14001 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
14003 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14005 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
14007 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
14011 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14012 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
14013 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
14018 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14019 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
14022 if test $ac_cv_header_lirc_lirc_client_h = yes; then
14024 HAVE_LIRC_CLIENT_H=yes
14026 cat >>confdefs.h <<\_ACEOF
14027 #define HAVE_LIRC 1
14030 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
14033 echo "LIRC support not found, building without it."
14040 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
14042 INPUT_LIRC_FALSE='#'
14044 INPUT_LIRC_TRUE='#'
14049 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
14050 set dummy sh-elf-gcc; ac_word=$2
14051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14053 if test "${ac_cv_path_SHCC+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
14061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14062 for as_dir in $PATH
14065 test -z "$as_dir" && as_dir=.
14066 for ac_exec_ext in '' $ac_executable_extensions; do
14067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14068 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
14069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14079 SHCC=$ac_cv_path_SHCC
14080 if test -n "$SHCC"; then
14081 { echo "$as_me:$LINENO: result: $SHCC" >&5
14082 echo "${ECHO_T}$SHCC" >&6; }
14084 { echo "$as_me:$LINENO: result: no" >&5
14085 echo "${ECHO_T}no" >&6; }
14089 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
14090 set dummy sh-elf-ld; ac_word=$2
14091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14093 if test "${ac_cv_path_SHLD+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
14101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102 for as_dir in $PATH
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
14107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14108 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
14109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14119 SHLD=$ac_cv_path_SHLD
14120 if test -n "$SHLD"; then
14121 { echo "$as_me:$LINENO: result: $SHLD" >&5
14122 echo "${ECHO_T}$SHLD" >&6; }
14124 { echo "$as_me:$LINENO: result: no" >&5
14125 echo "${ECHO_T}no" >&6; }
14129 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
14130 set dummy sh-elf-objcopy; ac_word=$2
14131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14133 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
14141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in $PATH
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
14147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14148 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14159 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
14160 if test -n "$SHOBJCOPY"; then
14161 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
14162 echo "${ECHO_T}$SHOBJCOPY" >&6; }
14164 { echo "$as_me:$LINENO: result: no" >&5
14165 echo "${ECHO_T}no" >&6; }
14169 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
14170 set dummy arm-elf-gcc; ac_word=$2
14171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14173 if test "${ac_cv_path_ARMCC+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
14181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14182 for as_dir in $PATH
14185 test -z "$as_dir" && as_dir=.
14186 for ac_exec_ext in '' $ac_executable_extensions; do
14187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14188 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
14189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 ARMCC=$ac_cv_path_ARMCC
14200 if test -n "$ARMCC"; then
14201 { echo "$as_me:$LINENO: result: $ARMCC" >&5
14202 echo "${ECHO_T}$ARMCC" >&6; }
14204 { echo "$as_me:$LINENO: result: no" >&5
14205 echo "${ECHO_T}no" >&6; }
14209 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
14210 set dummy arm-elf-ld; ac_word=$2
14211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14213 if test "${ac_cv_path_ARMLD+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222 for as_dir in $PATH
14225 test -z "$as_dir" && as_dir=.
14226 for ac_exec_ext in '' $ac_executable_extensions; do
14227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14228 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
14229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14239 ARMLD=$ac_cv_path_ARMLD
14240 if test -n "$ARMLD"; then
14241 { echo "$as_me:$LINENO: result: $ARMLD" >&5
14242 echo "${ECHO_T}$ARMLD" >&6; }
14244 { echo "$as_me:$LINENO: result: no" >&5
14245 echo "${ECHO_T}no" >&6; }
14249 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
14250 set dummy arm-elf-objcopy; ac_word=$2
14251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14253 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14256 case $ARMOBJCOPY in
14258 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
14261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14262 for as_dir in $PATH
14265 test -z "$as_dir" && as_dir=.
14266 for ac_exec_ext in '' $ac_executable_extensions; do
14267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14268 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14279 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
14280 if test -n "$ARMOBJCOPY"; then
14281 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
14282 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
14284 { echo "$as_me:$LINENO: result: no" >&5
14285 echo "${ECHO_T}no" >&6; }
14290 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
14292 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
14296 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
14298 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
14304 if test "$BUILD_SH" = "yes"; then
14305 BUILD_SYSTEST_TRUE=
14306 BUILD_SYSTEST_FALSE='#'
14308 BUILD_SYSTEST_TRUE='#'
14309 BUILD_SYSTEST_FALSE=
14314 if test "$BUILD_ARM" = "yes"; then
14315 BUILD_ARMTEST_TRUE=
14316 BUILD_ARMTEST_FALSE='#'
14318 BUILD_ARMTEST_TRUE='#'
14319 BUILD_ARMTEST_FALSE=
14323 CFLAGS="$CFLAGS $STDCFLAG"
14325 GETTEXT_PACKAGE=lxdream
14326 LXDREAM_LIBS="$LIBS"
14331 cat >>confdefs.h <<_ACEOF
14332 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14336 ALL_LINGUAS="de es it nl pt_BR"
14339 for ac_header in locale.h
14341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 ac_res=`eval echo '${'$as_ac_Header'}'`
14349 { echo "$as_me:$LINENO: result: $ac_res" >&5
14350 echo "${ECHO_T}$ac_res" >&6; }
14352 # Is the header compilable?
14353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14355 cat >conftest.$ac_ext <<_ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 $ac_includes_default
14362 #include <$ac_header>
14364 rm -f conftest.$ac_objext
14365 if { (ac_try="$ac_compile"
14366 case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_compile") 2>conftest.er1
14373 grep -v '^ *+' conftest.er1 >conftest.err
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } && {
14378 test -z "$ac_c_werror_flag" ||
14379 test ! -s conftest.err
14380 } && test -s conftest.$ac_objext; then
14381 ac_header_compiler=yes
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ac_header_compiler=no
14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14391 echo "${ECHO_T}$ac_header_compiler" >&6; }
14393 # Is the header present?
14394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14396 cat >conftest.$ac_ext <<_ACEOF
14399 cat confdefs.h >>conftest.$ac_ext
14400 cat >>conftest.$ac_ext <<_ACEOF
14401 /* end confdefs.h. */
14402 #include <$ac_header>
14404 if { (ac_try="$ac_cpp conftest.$ac_ext"
14405 case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14412 grep -v '^ *+' conftest.er1 >conftest.err
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } >/dev/null && {
14417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14418 test ! -s conftest.err
14420 ac_header_preproc=yes
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14425 ac_header_preproc=no
14428 rm -f conftest.err conftest.$ac_ext
14429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14430 echo "${ECHO_T}$ac_header_preproc" >&6; }
14432 # So? What about this header?
14433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14439 ac_header_preproc=yes
14442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 eval "$as_ac_Header=\$ac_header_preproc"
14464 ac_res=`eval echo '${'$as_ac_Header'}'`
14465 { echo "$as_me:$LINENO: result: $ac_res" >&5
14466 echo "${ECHO_T}$ac_res" >&6; }
14469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14470 cat >>confdefs.h <<_ACEOF
14471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14478 if test $ac_cv_header_locale_h = yes; then
14479 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14480 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
14481 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 cat >conftest.$ac_ext <<_ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14490 #include <locale.h>
14499 rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (ac_try="$ac_link"
14501 case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_link") 2>conftest.er1
14508 grep -v '^ *+' conftest.er1 >conftest.err
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } && {
14513 test -z "$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14515 } && test -s conftest$ac_exeext &&
14516 $as_test_x conftest$ac_exeext; then
14517 am_cv_val_LC_MESSAGES=yes
14519 echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14522 am_cv_val_LC_MESSAGES=no
14525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14526 conftest$ac_exeext conftest.$ac_ext
14528 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14529 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
14530 if test $am_cv_val_LC_MESSAGES = yes; then
14532 cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_LC_MESSAGES 1
14541 gt_cv_have_gettext=no
14547 if test "${ac_cv_header_libintl_h+set}" = set; then
14548 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14549 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14550 if test "${ac_cv_header_libintl_h+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14554 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14556 # Is the header compilable?
14557 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
14558 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
14559 cat >conftest.$ac_ext <<_ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 $ac_includes_default
14566 #include <libintl.h>
14568 rm -f conftest.$ac_objext
14569 if { (ac_try="$ac_compile"
14570 case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_compile") 2>conftest.er1
14577 grep -v '^ *+' conftest.er1 >conftest.err
14579 cat conftest.err >&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } && {
14582 test -z "$ac_c_werror_flag" ||
14583 test ! -s conftest.err
14584 } && test -s conftest.$ac_objext; then
14585 ac_header_compiler=yes
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14590 ac_header_compiler=no
14593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14595 echo "${ECHO_T}$ac_header_compiler" >&6; }
14597 # Is the header present?
14598 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
14599 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
14600 cat >conftest.$ac_ext <<_ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 #include <libintl.h>
14608 if { (ac_try="$ac_cpp conftest.$ac_ext"
14609 case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14616 grep -v '^ *+' conftest.er1 >conftest.err
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } >/dev/null && {
14621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14622 test ! -s conftest.err
14624 ac_header_preproc=yes
14626 echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14629 ac_header_preproc=no
14632 rm -f conftest.err conftest.$ac_ext
14633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14634 echo "${ECHO_T}$ac_header_preproc" >&6; }
14636 # So? What about this header?
14637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14639 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14640 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
14642 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
14643 ac_header_preproc=yes
14646 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14647 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14649 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
14651 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
14653 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14654 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14655 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
14657 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
14661 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14662 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14663 if test "${ac_cv_header_libintl_h+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 ac_cv_header_libintl_h=$ac_header_preproc
14668 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14669 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14672 if test $ac_cv_header_libintl_h = yes; then
14673 gt_cv_func_dgettext_libintl="no"
14674 libintl_extra_libs=""
14677 # First check in libc
14679 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
14680 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
14681 if test "${gt_cv_func_ngettext_libc+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 cat >conftest.$ac_ext <<_ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14691 #include <libintl.h>
14696 return !ngettext ("","", 1)
14701 rm -f conftest.$ac_objext conftest$ac_exeext
14702 if { (ac_try="$ac_link"
14703 case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_link") 2>conftest.er1
14710 grep -v '^ *+' conftest.er1 >conftest.err
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } && {
14715 test -z "$ac_c_werror_flag" ||
14716 test ! -s conftest.err
14717 } && test -s conftest$ac_exeext &&
14718 $as_test_x conftest$ac_exeext; then
14719 gt_cv_func_ngettext_libc=yes
14721 echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 gt_cv_func_ngettext_libc=no
14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14731 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
14732 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
14734 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14735 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
14736 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
14737 if test "${gt_cv_func_dgettext_libc+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 cat >conftest.$ac_ext <<_ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14747 #include <libintl.h>
14752 return !dgettext ("","")
14757 rm -f conftest.$ac_objext conftest$ac_exeext
14758 if { (ac_try="$ac_link"
14759 case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_link") 2>conftest.er1
14766 grep -v '^ *+' conftest.er1 >conftest.err
14768 cat conftest.err >&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } && {
14771 test -z "$ac_c_werror_flag" ||
14772 test ! -s conftest.err
14773 } && test -s conftest$ac_exeext &&
14774 $as_test_x conftest$ac_exeext; then
14775 gt_cv_func_dgettext_libc=yes
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 gt_cv_func_dgettext_libc=no
14783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14784 conftest$ac_exeext conftest.$ac_ext
14787 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
14788 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
14791 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14793 for ac_func in bind_textdomain_codeset
14795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14799 echo $ECHO_N "(cached) $ECHO_C" >&6
14801 cat >conftest.$ac_ext <<_ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14809 #define $ac_func innocuous_$ac_func
14811 /* System header to define __stub macros and hopefully few prototypes,
14812 which can conflict with char $ac_func (); below.
14813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14814 <limits.h> exists even on freestanding compilers. */
14817 # include <limits.h>
14819 # include <assert.h>
14824 /* Override any GCC internal prototype to avoid an error.
14825 Use char because int might match the return type of a GCC
14826 builtin and then its argument prototype would still apply. */
14831 /* The GNU C library defines this for functions which it implements
14832 to always fail with ENOSYS. Some functions are actually named
14833 something starting with __ and the normal name is an alias. */
14834 #if defined __stub_$ac_func || defined __stub___$ac_func
14841 return $ac_func ();
14846 rm -f conftest.$ac_objext conftest$ac_exeext
14847 if { (ac_try="$ac_link"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_link") 2>conftest.er1
14855 grep -v '^ *+' conftest.er1 >conftest.err
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } && {
14860 test -z "$ac_c_werror_flag" ||
14861 test ! -s conftest.err
14862 } && test -s conftest$ac_exeext &&
14863 $as_test_x conftest$ac_exeext; then
14864 eval "$as_ac_var=yes"
14866 echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14869 eval "$as_ac_var=no"
14872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14873 conftest$ac_exeext conftest.$ac_ext
14875 ac_res=`eval echo '${'$as_ac_var'}'`
14876 { echo "$as_me:$LINENO: result: $ac_res" >&5
14877 echo "${ECHO_T}$ac_res" >&6; }
14878 if test `eval echo '${'$as_ac_var'}'` = yes; then
14879 cat >>confdefs.h <<_ACEOF
14880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14889 # If we don't have everything we want, check in libintl
14891 if test "$gt_cv_func_dgettext_libc" != "yes" \
14892 || test "$gt_cv_func_ngettext_libc" != "yes" \
14893 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
14895 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
14896 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
14897 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 ac_check_lib_save_LIBS=$LIBS
14901 LIBS="-lintl $LIBS"
14902 cat >conftest.$ac_ext <<_ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14909 /* Override any GCC internal prototype to avoid an error.
14910 Use char because int might match the return type of a GCC
14911 builtin and then its argument prototype would still apply. */
14915 char bindtextdomain ();
14919 return bindtextdomain ();
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (ac_try="$ac_link"
14926 case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_link") 2>conftest.er1
14933 grep -v '^ *+' conftest.er1 >conftest.err
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } && {
14938 test -z "$ac_c_werror_flag" ||
14939 test ! -s conftest.err
14940 } && test -s conftest$ac_exeext &&
14941 $as_test_x conftest$ac_exeext; then
14942 ac_cv_lib_intl_bindtextdomain=yes
14944 echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14947 ac_cv_lib_intl_bindtextdomain=no
14950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14951 conftest$ac_exeext conftest.$ac_ext
14952 LIBS=$ac_check_lib_save_LIBS
14954 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
14955 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
14956 if test $ac_cv_lib_intl_bindtextdomain = yes; then
14957 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
14958 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
14959 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 ac_check_lib_save_LIBS=$LIBS
14963 LIBS="-lintl $LIBS"
14964 cat >conftest.$ac_ext <<_ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14971 /* Override any GCC internal prototype to avoid an error.
14972 Use char because int might match the return type of a GCC
14973 builtin and then its argument prototype would still apply. */
14981 return ngettext ();
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (ac_try="$ac_link"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_link") 2>conftest.er1
14995 grep -v '^ *+' conftest.er1 >conftest.err
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest$ac_exeext &&
15003 $as_test_x conftest$ac_exeext; then
15004 ac_cv_lib_intl_ngettext=yes
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15009 ac_cv_lib_intl_ngettext=no
15012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15013 conftest$ac_exeext conftest.$ac_ext
15014 LIBS=$ac_check_lib_save_LIBS
15016 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
15017 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
15018 if test $ac_cv_lib_intl_ngettext = yes; then
15019 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
15020 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
15021 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 ac_check_lib_save_LIBS=$LIBS
15025 LIBS="-lintl $LIBS"
15026 cat >conftest.$ac_ext <<_ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15033 /* Override any GCC internal prototype to avoid an error.
15034 Use char because int might match the return type of a GCC
15035 builtin and then its argument prototype would still apply. */
15043 return dgettext ();
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (ac_try="$ac_link"
15050 case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_link") 2>conftest.er1
15057 grep -v '^ *+' conftest.er1 >conftest.err
15059 cat conftest.err >&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } && {
15062 test -z "$ac_c_werror_flag" ||
15063 test ! -s conftest.err
15064 } && test -s conftest$ac_exeext &&
15065 $as_test_x conftest$ac_exeext; then
15066 ac_cv_lib_intl_dgettext=yes
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_cv_lib_intl_dgettext=no
15074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15075 conftest$ac_exeext conftest.$ac_ext
15076 LIBS=$ac_check_lib_save_LIBS
15078 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
15079 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
15080 if test $ac_cv_lib_intl_dgettext = yes; then
15081 gt_cv_func_dgettext_libintl=yes
15089 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
15090 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
15091 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
15092 { echo "$as_me:$LINENO: result: " >&5
15093 echo "${ECHO_T}" >&6; }
15094 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
15095 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
15096 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 ac_check_lib_save_LIBS=$LIBS
15100 LIBS="-lintl -liconv $LIBS"
15101 cat >conftest.$ac_ext <<_ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15108 /* Override any GCC internal prototype to avoid an error.
15109 Use char because int might match the return type of a GCC
15110 builtin and then its argument prototype would still apply. */
15118 return ngettext ();
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (ac_try="$ac_link"
15125 case "(($ac_try" in
15126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130 (eval "$ac_link") 2>conftest.er1
15132 grep -v '^ *+' conftest.er1 >conftest.err
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } && {
15137 test -z "$ac_c_werror_flag" ||
15138 test ! -s conftest.err
15139 } && test -s conftest$ac_exeext &&
15140 $as_test_x conftest$ac_exeext; then
15141 ac_cv_lib_intl_ngettext=yes
15143 echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15146 ac_cv_lib_intl_ngettext=no
15149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15150 conftest$ac_exeext conftest.$ac_ext
15151 LIBS=$ac_check_lib_save_LIBS
15153 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
15154 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
15155 if test $ac_cv_lib_intl_ngettext = yes; then
15156 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
15157 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
15158 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6
15161 ac_check_lib_save_LIBS=$LIBS
15162 LIBS="-lintl -liconv $LIBS"
15163 cat >conftest.$ac_ext <<_ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15170 /* Override any GCC internal prototype to avoid an error.
15171 Use char because int might match the return type of a GCC
15172 builtin and then its argument prototype would still apply. */
15180 return dcgettext ();
15185 rm -f conftest.$ac_objext conftest$ac_exeext
15186 if { (ac_try="$ac_link"
15187 case "(($ac_try" in
15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189 *) ac_try_echo=$ac_try;;
15191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192 (eval "$ac_link") 2>conftest.er1
15194 grep -v '^ *+' conftest.er1 >conftest.err
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } && {
15199 test -z "$ac_c_werror_flag" ||
15200 test ! -s conftest.err
15201 } && test -s conftest$ac_exeext &&
15202 $as_test_x conftest$ac_exeext; then
15203 ac_cv_lib_intl_dcgettext=yes
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15208 ac_cv_lib_intl_dcgettext=no
15211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15212 conftest$ac_exeext conftest.$ac_ext
15213 LIBS=$ac_check_lib_save_LIBS
15215 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
15216 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
15217 if test $ac_cv_lib_intl_dcgettext = yes; then
15218 gt_cv_func_dgettext_libintl=yes
15219 libintl_extra_libs=-liconv
15231 # If we found libintl, then check in it for bind_textdomain_codeset();
15232 # we'll prefer libc if neither have bind_textdomain_codeset(),
15233 # and both have dgettext and ngettext
15235 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
15236 glib_save_LIBS="$LIBS"
15237 LIBS="$LIBS -lintl $libintl_extra_libs"
15238 unset ac_cv_func_bind_textdomain_codeset
15240 for ac_func in bind_textdomain_codeset
15242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 cat >conftest.$ac_ext <<_ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15256 #define $ac_func innocuous_$ac_func
15258 /* System header to define __stub macros and hopefully few prototypes,
15259 which can conflict with char $ac_func (); below.
15260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15261 <limits.h> exists even on freestanding compilers. */
15264 # include <limits.h>
15266 # include <assert.h>
15271 /* Override any GCC internal prototype to avoid an error.
15272 Use char because int might match the return type of a GCC
15273 builtin and then its argument prototype would still apply. */
15278 /* The GNU C library defines this for functions which it implements
15279 to always fail with ENOSYS. Some functions are actually named
15280 something starting with __ and the normal name is an alias. */
15281 #if defined __stub_$ac_func || defined __stub___$ac_func
15288 return $ac_func ();
15293 rm -f conftest.$ac_objext conftest$ac_exeext
15294 if { (ac_try="$ac_link"
15295 case "(($ac_try" in
15296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297 *) ac_try_echo=$ac_try;;
15299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300 (eval "$ac_link") 2>conftest.er1
15302 grep -v '^ *+' conftest.er1 >conftest.err
15304 cat conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } && {
15307 test -z "$ac_c_werror_flag" ||
15308 test ! -s conftest.err
15309 } && test -s conftest$ac_exeext &&
15310 $as_test_x conftest$ac_exeext; then
15311 eval "$as_ac_var=yes"
15313 echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15316 eval "$as_ac_var=no"
15319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15320 conftest$ac_exeext conftest.$ac_ext
15322 ac_res=`eval echo '${'$as_ac_var'}'`
15323 { echo "$as_me:$LINENO: result: $ac_res" >&5
15324 echo "${ECHO_T}$ac_res" >&6; }
15325 if test `eval echo '${'$as_ac_var'}'` = yes; then
15326 cat >>confdefs.h <<_ACEOF
15327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15333 LIBS="$glib_save_LIBS"
15335 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
15336 gt_cv_func_dgettext_libc=no
15338 if test "$gt_cv_func_dgettext_libc" = "yes" \
15339 && test "$gt_cv_func_ngettext_libc" = "yes"; then
15340 gt_cv_func_dgettext_libintl=no
15346 if test "$gt_cv_func_dgettext_libc" = "yes" \
15347 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
15348 gt_cv_have_gettext=yes
15351 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
15352 INTLLIBS="-lintl $libintl_extra_libs"
15355 if test "$gt_cv_have_gettext" = "yes"; then
15357 cat >>confdefs.h <<\_ACEOF
15358 #define HAVE_GETTEXT 1
15361 # Extract the first word of "msgfmt", so it can be a program name with args.
15362 set dummy msgfmt; ac_word=$2
15363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15365 if test "${ac_cv_path_MSGFMT+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15374 for ac_dir in $PATH; do
15375 test -z "$ac_dir" && ac_dir=.
15376 if test -f $ac_dir/$ac_word; then
15377 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
15378 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15384 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
15388 MSGFMT="$ac_cv_path_MSGFMT"
15389 if test "$MSGFMT" != "no"; then
15390 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15391 echo "${ECHO_T}$MSGFMT" >&6; }
15393 { echo "$as_me:$LINENO: result: no" >&5
15394 echo "${ECHO_T}no" >&6; }
15396 if test "$MSGFMT" != "no"; then
15397 glib_save_LIBS="$LIBS"
15398 LIBS="$LIBS $INTLLIBS"
15400 for ac_func in dcgettext
15402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 cat >conftest.$ac_ext <<_ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15416 #define $ac_func innocuous_$ac_func
15418 /* System header to define __stub macros and hopefully few prototypes,
15419 which can conflict with char $ac_func (); below.
15420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15421 <limits.h> exists even on freestanding compilers. */
15424 # include <limits.h>
15426 # include <assert.h>
15431 /* Override any GCC internal prototype to avoid an error.
15432 Use char because int might match the return type of a GCC
15433 builtin and then its argument prototype would still apply. */
15438 /* The GNU C library defines this for functions which it implements
15439 to always fail with ENOSYS. Some functions are actually named
15440 something starting with __ and the normal name is an alias. */
15441 #if defined __stub_$ac_func || defined __stub___$ac_func
15448 return $ac_func ();
15453 rm -f conftest.$ac_objext conftest$ac_exeext
15454 if { (ac_try="$ac_link"
15455 case "(($ac_try" in
15456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15457 *) ac_try_echo=$ac_try;;
15459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15460 (eval "$ac_link") 2>conftest.er1
15462 grep -v '^ *+' conftest.er1 >conftest.err
15464 cat conftest.err >&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); } && {
15467 test -z "$ac_c_werror_flag" ||
15468 test ! -s conftest.err
15469 } && test -s conftest$ac_exeext &&
15470 $as_test_x conftest$ac_exeext; then
15471 eval "$as_ac_var=yes"
15473 echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15476 eval "$as_ac_var=no"
15479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15480 conftest$ac_exeext conftest.$ac_ext
15482 ac_res=`eval echo '${'$as_ac_var'}'`
15483 { echo "$as_me:$LINENO: result: $ac_res" >&5
15484 echo "${ECHO_T}$ac_res" >&6; }
15485 if test `eval echo '${'$as_ac_var'}'` = yes; then
15486 cat >>confdefs.h <<_ACEOF
15487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15494 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
15495 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
15496 cat >conftest.foo <<_ACEOF
15500 "Content-Type: text/plain; charset=UTF-8\n"
15501 "Project-Id-Version: test 1.0\n"
15502 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
15503 "Last-Translator: test <foo@bar.xx>\n"
15504 "Language-Team: C <LL@li.org>\n"
15505 "MIME-Version: 1.0\n"
15506 "Content-Transfer-Encoding: 8bit\n"
15509 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
15510 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; then
15514 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
15515 echo "${ECHO_T}yes" >&6; }
15516 else { echo "$as_me:$LINENO: result: no" >&5
15517 echo "${ECHO_T}no" >&6; }
15518 echo "$as_me: failed input was:" >&5
15519 sed 's/^/| /' conftest.foo >&5
15522 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15523 set dummy gmsgfmt; ac_word=$2
15524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15526 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15535 for as_dir in $PATH
15538 test -z "$as_dir" && as_dir=.
15539 for ac_exec_ext in '' $ac_executable_extensions; do
15540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15541 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15549 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15553 GMSGFMT=$ac_cv_path_GMSGFMT
15554 if test -n "$GMSGFMT"; then
15555 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15556 echo "${ECHO_T}$GMSGFMT" >&6; }
15558 { echo "$as_me:$LINENO: result: no" >&5
15559 echo "${ECHO_T}no" >&6; }
15563 # Extract the first word of "xgettext", so it can be a program name with args.
15564 set dummy xgettext; ac_word=$2
15565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15567 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 case "$XGETTEXT" in
15572 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15576 for ac_dir in $PATH; do
15577 test -z "$ac_dir" && ac_dir=.
15578 if test -f $ac_dir/$ac_word; then
15579 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15580 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15586 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15590 XGETTEXT="$ac_cv_path_XGETTEXT"
15591 if test "$XGETTEXT" != ":"; then
15592 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15593 echo "${ECHO_T}$XGETTEXT" >&6; }
15595 { echo "$as_me:$LINENO: result: no" >&5
15596 echo "${ECHO_T}no" >&6; }
15599 cat >conftest.$ac_ext <<_ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15609 extern int _nl_msg_cat_cntr;
15610 return _nl_msg_cat_cntr
15615 rm -f conftest.$ac_objext conftest$ac_exeext
15616 if { (ac_try="$ac_link"
15617 case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622 (eval "$ac_link") 2>conftest.er1
15624 grep -v '^ *+' conftest.er1 >conftest.err
15626 cat conftest.err >&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } && {
15629 test -z "$ac_c_werror_flag" ||
15630 test ! -s conftest.err
15631 } && test -s conftest$ac_exeext &&
15632 $as_test_x conftest$ac_exeext; then
15636 echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15641 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
15642 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
15643 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 cat >conftest.$ac_ext <<_ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15652 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
15653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15654 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
15656 /* System header to define __stub macros and hopefully few prototypes,
15657 which can conflict with char bind_textdomain_codeset (); below.
15658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15659 <limits.h> exists even on freestanding compilers. */
15662 # include <limits.h>
15664 # include <assert.h>
15667 #undef bind_textdomain_codeset
15669 /* Override any GCC internal prototype to avoid an error.
15670 Use char because int might match the return type of a GCC
15671 builtin and then its argument prototype would still apply. */
15675 char bind_textdomain_codeset ();
15676 /* The GNU C library defines this for functions which it implements
15677 to always fail with ENOSYS. Some functions are actually named
15678 something starting with __ and the normal name is an alias. */
15679 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
15686 return bind_textdomain_codeset ();
15691 rm -f conftest.$ac_objext conftest$ac_exeext
15692 if { (ac_try="$ac_link"
15693 case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_link") 2>conftest.er1
15700 grep -v '^ *+' conftest.er1 >conftest.err
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } && {
15705 test -z "$ac_c_werror_flag" ||
15706 test ! -s conftest.err
15707 } && test -s conftest$ac_exeext &&
15708 $as_test_x conftest$ac_exeext; then
15709 ac_cv_func_bind_textdomain_codeset=yes
15711 echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15714 ac_cv_func_bind_textdomain_codeset=no
15717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15718 conftest$ac_exeext conftest.$ac_ext
15720 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
15721 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
15722 if test $ac_cv_func_bind_textdomain_codeset = yes; then
15738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15739 conftest$ac_exeext conftest.$ac_ext
15740 LIBS="$glib_save_LIBS"
15743 gt_cv_have_gettext=no
15751 if test "$gt_cv_have_gettext" = "yes" ; then
15753 cat >>confdefs.h <<\_ACEOF
15754 #define ENABLE_NLS 1
15759 if test "$XGETTEXT" != ":"; then
15760 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15763 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15764 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
15769 # We need to process the po/ directory.
15772 ac_config_commands="$ac_config_commands default-1"
15775 for lang in $ALL_LINGUAS; do
15776 GMOFILES="$GMOFILES $lang.gmo"
15777 POFILES="$POFILES $lang.po"
15792 if test "$gt_cv_have_gettext" = "yes"; then
15793 if test "x$ALL_LINGUAS" = "x"; then
15796 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15797 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
15799 for presentlang in $ALL_LINGUAS; do
15801 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15802 desiredlanguages="$LINGUAS"
15804 desiredlanguages="$ALL_LINGUAS"
15806 for desiredlang in $desiredlanguages; do
15807 # Use the presentlang catalog if desiredlang is
15808 # a. equal to presentlang, or
15809 # b. a variant of presentlang (because in this case,
15810 # presentlang can be used as a fallback for messages
15811 # which are not translated in the desiredlang catalog).
15812 case "$desiredlang" in
15813 "$presentlang"*) useit=yes;;
15816 if test $useit = yes; then
15817 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15820 LINGUAS=$NEW_LINGUAS
15821 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
15822 echo "${ECHO_T}$LINGUAS" >&6; }
15825 if test -n "$LINGUAS"; then
15826 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15831 if test -n "$ac_aux_dir"; then
15832 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15834 if test -z "$MKINSTALLDIRS"; then
15835 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15839 test -d po || mkdir po
15840 if test "x$srcdir" != "x."; then
15841 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15842 posrcprefix="$srcdir/"
15844 posrcprefix="../$srcdir/"
15850 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15851 < $srcdir/po/POTFILES.in > po/POTFILES
15854 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
15856 cat >confcache <<\_ACEOF
15857 # This file is a shell script that caches the results of configure
15858 # tests run on this system so they can be shared between configure
15859 # scripts and configure runs, see configure's option --config-cache.
15860 # It is not useful on other systems. If it contains results you don't
15861 # want to keep, you may remove or edit it.
15863 # config.status only pays attention to the cache file if you give it
15864 # the --recheck option to rerun configure.
15866 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15868 # following values.
15872 # The following way of writing the cache mishandles newlines in values,
15873 # but we know of no workaround that is simple, portable, and efficient.
15874 # So, we kill variables containing newlines.
15875 # Ultrix sh set writes to stderr and can't be redirected directly,
15876 # and sets the high bit in the cache file unless we assign to the vars.
15878 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15879 eval ac_val=\$$ac_var
15883 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15884 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15887 _ | IFS | as_nl) ;; #(
15888 *) $as_unset $ac_var ;;
15894 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15895 *${as_nl}ac_space=\ *)
15896 # `set' does not quote correctly, so add quotes (double-quote
15897 # substitution turns \\\\ into \\, and sed turns \\ into \).
15900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15903 # `set' quotes correctly as required by POSIX, so do not add quotes.
15904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15915 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15917 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15918 if test -w "$cache_file"; then
15919 test "x$cache_file" != "x/dev/null" &&
15920 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15921 echo "$as_me: updating cache $cache_file" >&6;}
15922 cat confcache >$cache_file
15924 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15925 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15930 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15931 # Let make expand exec_prefix.
15932 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15934 DEFS=-DHAVE_CONFIG_H
15938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15939 # 1. Remove the extension, and $U if already installed.
15940 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15941 ac_i=`echo "$ac_i" | sed "$ac_script"`
15942 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15943 # will be set to the directory where LIBOBJS objects are built.
15944 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15945 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15947 LIBOBJS=$ac_libobjs
15949 LTLIBOBJS=$ac_ltlibobjs
15952 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15953 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15954 Usually this means the macro was only invoked conditionally." >&5
15955 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15956 Usually this means the macro was only invoked conditionally." >&2;}
15957 { (exit 1); exit 1; }; }
15959 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
15960 { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
15961 Usually this means the macro was only invoked conditionally." >&5
15962 echo "$as_me: error: conditional \"GUI_ANDROID\" was never defined.
15963 Usually this means the macro was only invoked conditionally." >&2;}
15964 { (exit 1); exit 1; }; }
15966 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15967 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15968 Usually this means the macro was only invoked conditionally." >&5
15969 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15970 Usually this means the macro was only invoked conditionally." >&2;}
15971 { (exit 1); exit 1; }; }
15973 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15974 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15975 Usually this means the macro was only invoked conditionally." >&5
15976 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15977 Usually this means the macro was only invoked conditionally." >&2;}
15978 { (exit 1); exit 1; }; }
15980 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15981 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15982 Usually this means the macro was only invoked conditionally." >&5
15983 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15984 Usually this means the macro was only invoked conditionally." >&2;}
15985 { (exit 1); exit 1; }; }
15987 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15988 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15989 Usually this means the macro was only invoked conditionally." >&5
15990 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15991 Usually this means the macro was only invoked conditionally." >&2;}
15992 { (exit 1); exit 1; }; }
15994 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
15995 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
15996 Usually this means the macro was only invoked conditionally." >&5
15997 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
15998 Usually this means the macro was only invoked conditionally." >&2;}
15999 { (exit 1); exit 1; }; }
16001 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
16002 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
16003 Usually this means the macro was only invoked conditionally." >&5
16004 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
16005 Usually this means the macro was only invoked conditionally." >&2;}
16006 { (exit 1); exit 1; }; }
16008 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
16009 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
16010 Usually this means the macro was only invoked conditionally." >&5
16011 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
16012 Usually this means the macro was only invoked conditionally." >&2;}
16013 { (exit 1); exit 1; }; }
16015 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
16016 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
16017 Usually this means the macro was only invoked conditionally." >&5
16018 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
16019 Usually this means the macro was only invoked conditionally." >&2;}
16020 { (exit 1); exit 1; }; }
16022 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
16023 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
16024 Usually this means the macro was only invoked conditionally." >&5
16025 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
16026 Usually this means the macro was only invoked conditionally." >&2;}
16027 { (exit 1); exit 1; }; }
16029 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
16030 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
16031 Usually this means the macro was only invoked conditionally." >&5
16032 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
16033 Usually this means the macro was only invoked conditionally." >&2;}
16034 { (exit 1); exit 1; }; }
16036 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
16037 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
16038 Usually this means the macro was only invoked conditionally." >&5
16039 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
16040 Usually this means the macro was only invoked conditionally." >&2;}
16041 { (exit 1); exit 1; }; }
16043 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
16044 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
16045 Usually this means the macro was only invoked conditionally." >&5
16046 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
16047 Usually this means the macro was only invoked conditionally." >&2;}
16048 { (exit 1); exit 1; }; }
16050 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
16051 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
16052 Usually this means the macro was only invoked conditionally." >&5
16053 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
16054 Usually this means the macro was only invoked conditionally." >&2;}
16055 { (exit 1); exit 1; }; }
16057 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
16058 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
16059 Usually this means the macro was only invoked conditionally." >&5
16060 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
16061 Usually this means the macro was only invoked conditionally." >&2;}
16062 { (exit 1); exit 1; }; }
16064 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
16065 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
16066 Usually this means the macro was only invoked conditionally." >&5
16067 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
16068 Usually this means the macro was only invoked conditionally." >&2;}
16069 { (exit 1); exit 1; }; }
16071 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
16072 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
16073 Usually this means the macro was only invoked conditionally." >&5
16074 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
16075 Usually this means the macro was only invoked conditionally." >&2;}
16076 { (exit 1); exit 1; }; }
16078 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
16079 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
16080 Usually this means the macro was only invoked conditionally." >&5
16081 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
16082 Usually this means the macro was only invoked conditionally." >&2;}
16083 { (exit 1); exit 1; }; }
16085 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
16086 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
16087 Usually this means the macro was only invoked conditionally." >&5
16088 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
16089 Usually this means the macro was only invoked conditionally." >&2;}
16090 { (exit 1); exit 1; }; }
16092 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
16093 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
16094 Usually this means the macro was only invoked conditionally." >&5
16095 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
16096 Usually this means the macro was only invoked conditionally." >&2;}
16097 { (exit 1); exit 1; }; }
16099 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
16100 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
16101 Usually this means the macro was only invoked conditionally." >&5
16102 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
16103 Usually this means the macro was only invoked conditionally." >&2;}
16104 { (exit 1); exit 1; }; }
16106 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
16107 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
16108 Usually this means the macro was only invoked conditionally." >&5
16109 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
16110 Usually this means the macro was only invoked conditionally." >&2;}
16111 { (exit 1); exit 1; }; }
16113 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
16114 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
16115 Usually this means the macro was only invoked conditionally." >&5
16116 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
16117 Usually this means the macro was only invoked conditionally." >&2;}
16118 { (exit 1); exit 1; }; }
16120 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
16121 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
16122 Usually this means the macro was only invoked conditionally." >&5
16123 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
16124 Usually this means the macro was only invoked conditionally." >&2;}
16125 { (exit 1); exit 1; }; }
16127 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
16128 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
16129 Usually this means the macro was only invoked conditionally." >&5
16130 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
16131 Usually this means the macro was only invoked conditionally." >&2;}
16132 { (exit 1); exit 1; }; }
16134 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
16135 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
16136 Usually this means the macro was only invoked conditionally." >&5
16137 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
16138 Usually this means the macro was only invoked conditionally." >&2;}
16139 { (exit 1); exit 1; }; }
16142 : ${CONFIG_STATUS=./config.status}
16143 ac_clean_files_save=$ac_clean_files
16144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16145 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16146 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16147 cat >$CONFIG_STATUS <<_ACEOF
16149 # Generated by $as_me.
16150 # Run this file to recreate the current configuration.
16151 # Compiler output produced by configure, useful for debugging
16152 # configure, is in config.log if it exists.
16155 ac_cs_recheck=false
16157 SHELL=\${CONFIG_SHELL-$SHELL}
16160 cat >>$CONFIG_STATUS <<\_ACEOF
16161 ## --------------------- ##
16162 ## M4sh Initialization. ##
16163 ## --------------------- ##
16165 # Be more Bourne compatible
16166 DUALCASE=1; export DUALCASE # for MKS sh
16167 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16170 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16171 # is contrary to our usage. Disable this feature.
16172 alias -g '${1+"$@"}'='"$@"'
16173 setopt NO_GLOB_SUBST
16175 case `(set -o) 2>/dev/null` in
16176 *posix*) set -o posix ;;
16185 # Avoid depending upon Character Ranges.
16186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16189 as_cr_digits='0123456789'
16190 as_cr_alnum=$as_cr_Letters$as_cr_digits
16192 # The user is always right.
16193 if test "${PATH_SEPARATOR+set}" != set; then
16194 echo "#! /bin/sh" >conf$$.sh
16195 echo "exit 0" >>conf$$.sh
16197 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16205 # Support unset when possible.
16206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16214 # We need space, tab and new line, in precisely that order. Quoting is
16215 # there to prevent editors from complaining about space-tab.
16216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16217 # splitting by setting IFS to empty value.)
16222 # Find who we are. Look in the path if we contain no directory separator.
16224 *[\\/]* ) as_myself=$0 ;;
16225 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16226 for as_dir in $PATH
16229 test -z "$as_dir" && as_dir=.
16230 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16236 # We did not find ourselves, most probably we were run as `sh COMMAND'
16237 # in which case we are not to be found in the path.
16238 if test "x$as_myself" = x; then
16241 if test ! -f "$as_myself"; then
16242 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16243 { (exit 1); exit 1; }
16246 # Work around bugs in pre-3.0 UWIN ksh.
16247 for as_var in ENV MAIL MAILPATH
16248 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16256 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16257 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16258 LC_TELEPHONE LC_TIME
16260 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16261 eval $as_var=C; export $as_var
16263 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16267 # Required to use basename.
16268 if expr a : '\(a\)' >/dev/null 2>&1 &&
16269 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16276 as_basename=basename
16282 # Name of the executable.
16283 as_me=`$as_basename -- "$0" ||
16284 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16285 X"$0" : 'X\(//\)$' \| \
16286 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16288 sed '/^.*\/\([^/][^/]*\)\/*$/{
16307 as_lineno_1=$LINENO
16308 as_lineno_2=$LINENO
16309 test "x$as_lineno_1" != "x$as_lineno_2" &&
16310 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16312 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16313 # uniformly replaced by the line number. The first 'sed' inserts a
16314 # line-number line after each line using $LINENO; the second 'sed'
16315 # does the real work. The second script uses 'N' to pair each
16316 # line-number line with the line containing $LINENO, and appends
16317 # trailing '-' during substitution so that $LINENO is not a special
16318 # case at line end.
16319 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16320 # scripts with optimization help from Paolo Bonzini. Blame Lee
16321 # E. McMahon (1931-1989) for sed's syntax. :-)
16333 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16336 ' >$as_me.lineno &&
16337 chmod +x "$as_me.lineno" ||
16338 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16339 { (exit 1); exit 1; }; }
16341 # Don't try to exec as it changes $[0], causing all sort of problems
16342 # (the dirname of $[0] is not the place where we might find the
16343 # original and so on. Autoconf is especially sensitive to this).
16344 . "./$as_me.lineno"
16345 # Exit status is that of the last command.
16350 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16356 ECHO_C= ECHO_N= ECHO_T=
16357 case `echo -n x` in
16359 case `echo 'x\c'` in
16360 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16367 if expr a : '\(a\)' >/dev/null 2>&1 &&
16368 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16374 rm -f conf$$ conf$$.exe conf$$.file
16375 if test -d conf$$.dir; then
16376 rm -f conf$$.dir/conf$$.file
16382 if ln -s conf$$.file conf$$ 2>/dev/null; then
16384 # ... but there are two gotchas:
16385 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16386 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16387 # In both cases, we have to default to `cp -p'.
16388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16390 elif ln conf$$.file conf$$ 2>/dev/null; then
16395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16396 rmdir conf$$.dir 2>/dev/null
16398 if mkdir -p . 2>/dev/null; then
16401 test -d ./-p && rmdir ./-p
16405 if test -x / >/dev/null 2>&1; then
16406 as_test_x='test -x'
16408 if ls -dL / >/dev/null 2>&1; then
16415 if test -d "$1"; then
16421 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16422 ???[sx]*):;;*)false;;esac;fi
16426 as_executable_p=$as_test_x
16428 # Sed expression to map a string onto a valid CPP name.
16429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16431 # Sed expression to map a string onto a valid variable name.
16432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16437 # Save the log message, to keep $[0] and so on meaningful, and to
16438 # report actual input values of CONFIG_FILES etc. instead of their
16439 # values after options handling.
16441 This file was extended by $as_me, which was
16442 generated by GNU Autoconf 2.61. Invocation command line was
16444 CONFIG_FILES = $CONFIG_FILES
16445 CONFIG_HEADERS = $CONFIG_HEADERS
16446 CONFIG_LINKS = $CONFIG_LINKS
16447 CONFIG_COMMANDS = $CONFIG_COMMANDS
16450 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16455 cat >>$CONFIG_STATUS <<_ACEOF
16456 # Files that config.status was made for.
16457 config_files="$ac_config_files"
16458 config_headers="$ac_config_headers"
16459 config_commands="$ac_config_commands"
16463 cat >>$CONFIG_STATUS <<\_ACEOF
16465 \`$as_me' instantiates files from templates according to the
16466 current configuration.
16468 Usage: $0 [OPTIONS] [FILE]...
16470 -h, --help print this help, then exit
16471 -V, --version print version number and configuration settings, then exit
16472 -q, --quiet do not print progress messages
16473 -d, --debug don't remove temporary files
16474 --recheck update $as_me by reconfiguring in the same conditions
16475 --file=FILE[:TEMPLATE]
16476 instantiate the configuration file FILE
16477 --header=FILE[:TEMPLATE]
16478 instantiate the configuration header FILE
16480 Configuration files:
16483 Configuration headers:
16486 Configuration commands:
16489 Report bugs to <bug-autoconf@gnu.org>."
16492 cat >>$CONFIG_STATUS <<_ACEOF
16495 configured by $0, generated by GNU Autoconf 2.61,
16496 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16498 Copyright (C) 2006 Free Software Foundation, Inc.
16499 This config.status script is free software; the Free Software Foundation
16500 gives unlimited permission to copy, distribute and modify it."
16507 cat >>$CONFIG_STATUS <<\_ACEOF
16508 # If no file are specified by the user, then we need to provide default
16509 # value. By we need to know if files were specified by the user.
16515 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16516 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16527 # Handling of the options.
16528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16530 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16531 echo "$ac_cs_version"; exit ;;
16532 --debug | --debu | --deb | --de | --d | -d )
16534 --file | --fil | --fi | --f )
16536 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16537 ac_need_defaults=false;;
16538 --header | --heade | --head | --hea )
16540 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16541 ac_need_defaults=false;;
16543 # Conflict between --help and --header
16544 { echo "$as_me: error: ambiguous option: $1
16545 Try \`$0 --help' for more information." >&2
16546 { (exit 1); exit 1; }; };;
16547 --help | --hel | -h )
16548 echo "$ac_cs_usage"; exit ;;
16549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16550 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16553 # This is an error.
16554 -*) { echo "$as_me: error: unrecognized option: $1
16555 Try \`$0 --help' for more information." >&2
16556 { (exit 1); exit 1; }; } ;;
16558 *) ac_config_targets="$ac_config_targets $1"
16559 ac_need_defaults=false ;;
16565 ac_configure_extra_args=
16567 if $ac_cs_silent; then
16569 ac_configure_extra_args="$ac_configure_extra_args --silent"
16573 cat >>$CONFIG_STATUS <<_ACEOF
16574 if \$ac_cs_recheck; then
16575 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16576 CONFIG_SHELL=$SHELL
16577 export CONFIG_SHELL
16578 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16582 cat >>$CONFIG_STATUS <<\_ACEOF
16586 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16587 ## Running $as_me. ##
16593 cat >>$CONFIG_STATUS <<_ACEOF
16597 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16602 cat >>$CONFIG_STATUS <<\_ACEOF
16604 # Handling of arguments.
16605 for ac_config_target in $ac_config_targets
16607 case $ac_config_target in
16608 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16609 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16610 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16611 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16612 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16613 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16614 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16615 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16616 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
16618 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16619 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16620 { (exit 1); exit 1; }; };;
16625 # If the user did not use the arguments to specify the items to instantiate,
16626 # then the envvar interface is used. Set only those that are not.
16627 # We use the long form for the default assignment because of an extremely
16628 # bizarre bug on SunOS 4.1.3.
16629 if $ac_need_defaults; then
16630 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16631 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16632 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16635 # Have a temporary directory for convenience. Make it in the build tree
16636 # simply because there is no reason against having it here, and in addition,
16637 # creating and moving files from /tmp can sometimes cause problems.
16638 # Hook for its removal unless debugging.
16639 # Note that there is a small window in which the directory will not be cleaned:
16640 # after its creation but before its name has been assigned to `$tmp'.
16644 trap 'exit_status=$?
16645 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16647 trap '{ (exit 1); exit 1; }' 1 2 13 15
16649 # Create a (secure) tmp directory for tmp files.
16652 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16653 test -n "$tmp" && test -d "$tmp"
16656 tmp=./conf$$-$RANDOM
16657 (umask 077 && mkdir "$tmp")
16660 echo "$me: cannot create a temporary directory in ." >&2
16661 { (exit 1); exit 1; }
16665 # Set up the sed scripts for CONFIG_FILES section.
16668 # No need to generate the scripts if there are no CONFIG_FILES.
16669 # This happens for instance when ./config.status config.h
16670 if test -n "$CONFIG_FILES"; then
16677 for ac_last_try in false false false false false :; do
16678 cat >conf$$subs.sed <<_ACEOF
16679 SHELL!$SHELL$ac_delim
16680 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16681 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16682 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16683 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16684 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16685 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16686 exec_prefix!$exec_prefix$ac_delim
16687 prefix!$prefix$ac_delim
16688 program_transform_name!$program_transform_name$ac_delim
16689 bindir!$bindir$ac_delim
16690 sbindir!$sbindir$ac_delim
16691 libexecdir!$libexecdir$ac_delim
16692 datarootdir!$datarootdir$ac_delim
16693 datadir!$datadir$ac_delim
16694 sysconfdir!$sysconfdir$ac_delim
16695 sharedstatedir!$sharedstatedir$ac_delim
16696 localstatedir!$localstatedir$ac_delim
16697 includedir!$includedir$ac_delim
16698 oldincludedir!$oldincludedir$ac_delim
16699 docdir!$docdir$ac_delim
16700 infodir!$infodir$ac_delim
16701 htmldir!$htmldir$ac_delim
16702 dvidir!$dvidir$ac_delim
16703 pdfdir!$pdfdir$ac_delim
16704 psdir!$psdir$ac_delim
16705 libdir!$libdir$ac_delim
16706 localedir!$localedir$ac_delim
16707 mandir!$mandir$ac_delim
16708 DEFS!$DEFS$ac_delim
16709 ECHO_C!$ECHO_C$ac_delim
16710 ECHO_N!$ECHO_N$ac_delim
16711 ECHO_T!$ECHO_T$ac_delim
16712 LIBS!$LIBS$ac_delim
16713 build_alias!$build_alias$ac_delim
16714 host_alias!$host_alias$ac_delim
16715 target_alias!$target_alias$ac_delim
16716 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16717 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16718 INSTALL_DATA!$INSTALL_DATA$ac_delim
16719 CYGPATH_W!$CYGPATH_W$ac_delim
16720 PACKAGE!$PACKAGE$ac_delim
16721 VERSION!$VERSION$ac_delim
16722 ACLOCAL!$ACLOCAL$ac_delim
16723 AUTOCONF!$AUTOCONF$ac_delim
16724 AUTOMAKE!$AUTOMAKE$ac_delim
16725 AUTOHEADER!$AUTOHEADER$ac_delim
16726 MAKEINFO!$MAKEINFO$ac_delim
16727 install_sh!$install_sh$ac_delim
16728 STRIP!$STRIP$ac_delim
16729 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16730 mkdir_p!$mkdir_p$ac_delim
16732 SET_MAKE!$SET_MAKE$ac_delim
16733 am__leading_dot!$am__leading_dot$ac_delim
16734 AMTAR!$AMTAR$ac_delim
16735 am__tar!$am__tar$ac_delim
16736 am__untar!$am__untar$ac_delim
16737 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16738 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16739 MAINT!$MAINT$ac_delim
16740 build!$build$ac_delim
16741 build_cpu!$build_cpu$ac_delim
16742 build_vendor!$build_vendor$ac_delim
16743 build_os!$build_os$ac_delim
16744 host!$host$ac_delim
16745 host_cpu!$host_cpu$ac_delim
16746 host_vendor!$host_vendor$ac_delim
16747 host_os!$host_os$ac_delim
16749 ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
16750 ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
16751 ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
16752 ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
16753 GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
16754 GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
16756 CFLAGS!$CFLAGS$ac_delim
16757 LDFLAGS!$LDFLAGS$ac_delim
16758 CPPFLAGS!$CPPFLAGS$ac_delim
16759 ac_ct_CC!$ac_ct_CC$ac_delim
16760 EXEEXT!$EXEEXT$ac_delim
16761 OBJEXT!$OBJEXT$ac_delim
16762 DEPDIR!$DEPDIR$ac_delim
16763 am__include!$am__include$ac_delim
16764 am__quote!$am__quote$ac_delim
16765 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16766 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16767 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16768 CCDEPMODE!$CCDEPMODE$ac_delim
16769 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16770 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16773 CFLAGS!$CFLAGS$ac_delim
16774 CPPFLAGS!$CPPFLAGS$ac_delim
16775 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
16778 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16780 elif $ac_last_try; then
16781 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16782 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16783 { (exit 1); exit 1; }; }
16785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16789 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16790 if test -n "$ac_eof"; then
16791 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16792 ac_eof=`expr $ac_eof + 1`
16795 cat >>$CONFIG_STATUS <<_ACEOF
16796 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16800 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16801 s/^/s,@/; s/!/@,|#_!!_#|/
16804 s/'"$ac_delim"'$/,g/; t
16806 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16807 ' >>$CONFIG_STATUS <conf$$subs.sed
16808 rm -f conf$$subs.sed
16809 cat >>$CONFIG_STATUS <<_ACEOF
16815 for ac_last_try in false false false false false :; do
16816 cat >conf$$subs.sed <<_ACEOF
16817 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
16818 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
16819 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
16820 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
16822 CPPFLAGS!$CPPFLAGS$ac_delim
16823 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
16824 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
16825 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
16826 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
16827 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
16828 OBJC!$OBJC$ac_delim
16829 OBJCFLAGS!$OBJCFLAGS$ac_delim
16830 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
16832 CCAS!$CCAS$ac_delim
16833 CCASFLAGS!$CCASFLAGS$ac_delim
16834 RANLIB!$RANLIB$ac_delim
16835 GREP!$GREP$ac_delim
16836 EGREP!$EGREP$ac_delim
16837 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
16838 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
16839 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
16840 POD2MAN!$POD2MAN$ac_delim
16841 POD2HTML!$POD2HTML$ac_delim
16842 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
16843 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
16844 SOEXT!$SOEXT$ac_delim
16845 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
16846 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
16847 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
16848 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
16849 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
16850 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
16851 PKG_CONFIG!$PKG_CONFIG$ac_delim
16852 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
16853 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
16854 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
16855 GLIB_LIBS!$GLIB_LIBS$ac_delim
16856 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
16857 GTK_LIBS!$GTK_LIBS$ac_delim
16858 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
16859 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
16860 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
16861 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
16862 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
16863 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
16864 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
16865 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
16866 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
16867 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
16868 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
16869 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
16870 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
16871 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
16872 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
16873 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
16874 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
16875 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
16876 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
16877 SDL_LIBS!$SDL_LIBS$ac_delim
16878 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
16879 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
16880 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
16881 PULSE_LIBS!$PULSE_LIBS$ac_delim
16882 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
16883 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
16884 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
16885 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
16886 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
16887 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
16888 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
16889 ALSA_LIBS!$ALSA_LIBS$ac_delim
16890 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
16891 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
16892 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
16893 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
16894 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
16895 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
16896 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
16897 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
16898 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
16899 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
16900 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
16901 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
16902 SHCC!$SHCC$ac_delim
16903 SHLD!$SHLD$ac_delim
16904 SHOBJCOPY!$SHOBJCOPY$ac_delim
16905 ARMCC!$ARMCC$ac_delim
16906 ARMLD!$ARMLD$ac_delim
16907 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
16908 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
16909 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
16910 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
16911 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
16912 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
16913 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16916 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16918 elif $ac_last_try; then
16919 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16920 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16921 { (exit 1); exit 1; }; }
16923 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16927 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16928 if test -n "$ac_eof"; then
16929 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16930 ac_eof=`expr $ac_eof + 1`
16933 cat >>$CONFIG_STATUS <<_ACEOF
16934 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16938 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16939 s/^/s,@/; s/!/@,|#_!!_#|/
16942 s/'"$ac_delim"'$/,g/; t
16944 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16945 ' >>$CONFIG_STATUS <conf$$subs.sed
16946 rm -f conf$$subs.sed
16947 cat >>$CONFIG_STATUS <<_ACEOF
16953 for ac_last_try in false false false false false :; do
16954 cat >conf$$subs.sed <<_ACEOF
16955 USE_NLS!$USE_NLS$ac_delim
16956 MSGFMT!$MSGFMT$ac_delim
16957 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
16958 GMSGFMT!$GMSGFMT$ac_delim
16959 XGETTEXT!$XGETTEXT$ac_delim
16960 CATALOGS!$CATALOGS$ac_delim
16961 CATOBJEXT!$CATOBJEXT$ac_delim
16962 DATADIRNAME!$DATADIRNAME$ac_delim
16963 GMOFILES!$GMOFILES$ac_delim
16964 INSTOBJEXT!$INSTOBJEXT$ac_delim
16965 INTLLIBS!$INTLLIBS$ac_delim
16966 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
16967 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
16968 POFILES!$POFILES$ac_delim
16969 POSUB!$POSUB$ac_delim
16970 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16971 LIBOBJS!$LIBOBJS$ac_delim
16972 LTLIBOBJS!$LTLIBOBJS$ac_delim
16975 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
16977 elif $ac_last_try; then
16978 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16979 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16980 { (exit 1); exit 1; }; }
16982 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16986 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16987 if test -n "$ac_eof"; then
16988 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16989 ac_eof=`expr $ac_eof + 1`
16992 cat >>$CONFIG_STATUS <<_ACEOF
16993 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
16994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16997 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16998 s/^/s,@/; s/!/@,|#_!!_#|/
17001 s/'"$ac_delim"'$/,g/; t
17003 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17004 ' >>$CONFIG_STATUS <conf$$subs.sed
17005 rm -f conf$$subs.sed
17006 cat >>$CONFIG_STATUS <<_ACEOF
17013 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17014 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17015 # trailing colons and then remove the whole line if VPATH becomes empty
17016 # (actually we leave an empty line to preserve line numbers).
17017 if test "x$srcdir" = x.; then
17018 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17019 s/:*\$(srcdir):*/:/
17020 s/:*\${srcdir}:*/:/
17022 s/^\([^=]*=[ ]*\):*/\1/
17028 cat >>$CONFIG_STATUS <<\_ACEOF
17029 fi # test -n "$CONFIG_FILES"
17032 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
17035 :[FHLC]) ac_mode=$ac_tag; continue;;
17037 case $ac_mode$ac_tag in
17039 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17040 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17041 { (exit 1); exit 1; }; };;
17042 :[FH]-) ac_tag=-:-;;
17043 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17060 -) ac_f="$tmp/stdin";;
17061 *) # Look for the file first in the build tree, then in the source tree
17062 # (if the path is not absolute). The absolute path cannot be DOS-style,
17063 # because $ac_f cannot contain `:'.
17067 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17069 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17070 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17071 { (exit 1); exit 1; }; };;
17073 ac_file_inputs="$ac_file_inputs $ac_f"
17076 # Let's still pretend it is `configure' which instantiates (i.e., don't
17077 # use $as_me), people would be surprised to read:
17078 # /* config.h. Generated by config.status. */
17079 configure_input="Generated from "`IFS=:
17080 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17081 if test x"$ac_file" != x-; then
17082 configure_input="$ac_file. $configure_input"
17083 { echo "$as_me:$LINENO: creating $ac_file" >&5
17084 echo "$as_me: creating $ac_file" >&6;}
17088 *:-:* | *:-) cat >"$tmp/stdin";;
17093 ac_dir=`$as_dirname -- "$ac_file" ||
17094 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17095 X"$ac_file" : 'X\(//\)[^/]' \| \
17096 X"$ac_file" : 'X\(//\)$' \| \
17097 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17103 /^X\(\/\/\)[^/].*/{
17118 -*) as_dir=./$as_dir;;
17120 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17124 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17125 *) as_qdir=$as_dir;;
17127 as_dirs="'$as_qdir' $as_dirs"
17128 as_dir=`$as_dirname -- "$as_dir" ||
17129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17130 X"$as_dir" : 'X\(//\)[^/]' \| \
17131 X"$as_dir" : 'X\(//\)$' \| \
17132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17138 /^X\(\/\/\)[^/].*/{
17151 test -d "$as_dir" && break
17153 test -z "$as_dirs" || eval "mkdir $as_dirs"
17154 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17155 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17156 { (exit 1); exit 1; }; }; }
17160 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17162 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17163 # A ".." for each directory in $ac_dir_suffix.
17164 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17165 case $ac_top_builddir_sub in
17166 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17167 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17170 ac_abs_top_builddir=$ac_pwd
17171 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17172 # for backward compatibility:
17173 ac_top_builddir=$ac_top_build_prefix
17176 .) # We are building in place.
17178 ac_top_srcdir=$ac_top_builddir_sub
17179 ac_abs_top_srcdir=$ac_pwd ;;
17180 [\\/]* | ?:[\\/]* ) # Absolute name.
17181 ac_srcdir=$srcdir$ac_dir_suffix;
17182 ac_top_srcdir=$srcdir
17183 ac_abs_top_srcdir=$srcdir ;;
17184 *) # Relative name.
17185 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17186 ac_top_srcdir=$ac_top_build_prefix$srcdir
17187 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17189 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17199 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17200 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17204 cat >>$CONFIG_STATUS <<\_ACEOF
17205 # If the template does not know about datarootdir, expand it.
17206 # FIXME: This hack should be removed a few years after 2.60.
17207 ac_datarootdir_hack=; ac_datarootdir_seen=
17209 case `sed -n '/datarootdir/ {
17218 ' $ac_file_inputs` in
17219 *datarootdir*) ac_datarootdir_seen=yes;;
17220 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17221 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17222 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17224 cat >>$CONFIG_STATUS <<_ACEOF
17225 ac_datarootdir_hack='
17226 s&@datadir@&$datadir&g
17227 s&@docdir@&$docdir&g
17228 s&@infodir@&$infodir&g
17229 s&@localedir@&$localedir&g
17230 s&@mandir@&$mandir&g
17231 s&\\\${datarootdir}&$datarootdir&g' ;;
17235 # Neutralize VPATH when `$srcdir' = `.'.
17236 # Shell code in configure.ac might set extrasub.
17237 # FIXME: do we really want to maintain this feature?
17238 cat >>$CONFIG_STATUS <<_ACEOF
17242 cat >>$CONFIG_STATUS <<\_ACEOF
17244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17245 s&@configure_input@&$configure_input&;t t
17246 s&@top_builddir@&$ac_top_builddir_sub&;t t
17247 s&@srcdir@&$ac_srcdir&;t t
17248 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17249 s&@top_srcdir@&$ac_top_srcdir&;t t
17250 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17251 s&@builddir@&$ac_builddir&;t t
17252 s&@abs_builddir@&$ac_abs_builddir&;t t
17253 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17254 s&@INSTALL@&$ac_INSTALL&;t t
17255 $ac_datarootdir_hack
17256 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
17258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17259 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17260 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17261 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17262 which seems to be undefined. Please make sure it is defined." >&5
17263 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17264 which seems to be undefined. Please make sure it is defined." >&2;}
17268 -) cat "$tmp/out"; rm -f "$tmp/out";;
17269 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17278 # Transform confdefs.h into a sed script `conftest.defines', that
17279 # substitutes the proper values into config.h.in to produce config.h.
17280 rm -f conftest.defines conftest.tail
17281 # First, append a space to every undef/define line, to ease matching.
17282 echo 's/$/ /' >conftest.defines
17283 # Then, protect against being on the right side of a sed subst, or in
17284 # an unquoted here document, in config.status. If some macros were
17285 # called several times there might be several #defines for the same
17286 # symbol, which is useless. But do not sort them, since the last
17287 # AC_DEFINE must be honored.
17288 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17289 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17290 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17291 # PARAMS is the parameter list in the macro definition--in most cases, it's
17292 # just an empty string.
17293 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17294 ac_dB='\\)[ (].*,\\1define\\2'
17302 s/^[ ]*#[ ]*define[ ][ ]*//
17307 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17308 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17309 ' >>conftest.defines
17311 # Remove the space that was appended to ease matching.
17312 # Then replace #undef with comments. This is necessary, for
17313 # example, in the case of _POSIX_SOURCE, which is predefined and required
17314 # on some systems where configure will not decide to define it.
17315 # (The regexp can be short, since the line contains either #define or #undef.)
17317 s,^[ #]*u.*,/* & */,' >>conftest.defines
17319 # Break up conftest.defines:
17320 ac_max_sed_lines=50
17322 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17323 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17324 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17326 ac_in='$ac_file_inputs'
17327 ac_out='"$tmp/out1"'
17328 ac_nxt='"$tmp/out2"'
17332 # Write a here document:
17333 cat >>$CONFIG_STATUS <<_ACEOF
17334 # First, check the format of the line:
17335 cat >"\$tmp/defines.sed" <<\\CEOF
17336 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17337 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17341 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17343 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17344 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17345 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17346 grep . conftest.tail >/dev/null || break
17347 rm -f conftest.defines
17348 mv conftest.tail conftest.defines
17350 rm -f conftest.defines conftest.tail
17352 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17353 cat >>$CONFIG_STATUS <<\_ACEOF
17354 if test x"$ac_file" != x-; then
17355 echo "/* $configure_input */" >"$tmp/config.h"
17356 cat "$ac_result" >>"$tmp/config.h"
17357 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17358 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17359 echo "$as_me: $ac_file is unchanged" >&6;}
17362 mv "$tmp/config.h" $ac_file
17365 echo "/* $configure_input */"
17369 # Compute $ac_file's index in $config_headers.
17371 for _am_header in $config_headers :; do
17372 case $_am_header in
17373 $ac_file | $ac_file:* )
17376 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17379 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
17380 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17381 X$ac_file : 'X\(//\)[^/]' \| \
17382 X$ac_file : 'X\(//\)$' \| \
17383 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
17385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17389 /^X\(\/\/\)[^/].*/{
17401 s/.*/./; q'`/stamp-h$_am_stamp_count
17404 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17405 echo "$as_me: executing $ac_file commands" >&6;}
17410 case $ac_file$ac_mode in
17411 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17412 # Strip MF so we end up with the name of the file.
17413 mf=`echo "$mf" | sed -e 's/:.*$//'`
17414 # Check whether this is an Automake generated Makefile or not.
17415 # We used to match only the files named `Makefile.in', but
17416 # some people rename them; so instead we look at the file content.
17417 # Grep'ing the first line is not enough: some people post-process
17418 # each Makefile.in and add a new line on top of each file to say so.
17419 # So let's grep whole file.
17420 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17421 dirpart=`$as_dirname -- "$mf" ||
17422 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17423 X"$mf" : 'X\(//\)[^/]' \| \
17424 X"$mf" : 'X\(//\)$' \| \
17425 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17431 /^X\(\/\/\)[^/].*/{
17447 # Extract the definition of DEPDIR, am__include, and am__quote
17448 # from the Makefile without running `make'.
17449 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17450 test -z "$DEPDIR" && continue
17451 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17452 test -z "am__include" && continue
17453 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17454 # When using ansi2knr, U may be empty or an underscore; expand it
17455 U=`sed -n 's/^U = //p' < "$mf"`
17456 # Find all dependency output files, they are included files with
17457 # $(DEPDIR) in their names. We invoke sed twice because it is the
17458 # simplest approach to changing $(DEPDIR) to its actual value in the
17460 for file in `sed -n "
17461 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17462 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17463 # Make sure the directory exists.
17464 test -f "$dirpart/$file" && continue
17465 fdir=`$as_dirname -- "$file" ||
17466 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17467 X"$file" : 'X\(//\)[^/]' \| \
17468 X"$file" : 'X\(//\)$' \| \
17469 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17475 /^X\(\/\/\)[^/].*/{
17488 { as_dir=$dirpart/$fdir
17490 -*) as_dir=./$as_dir;;
17492 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17496 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17497 *) as_qdir=$as_dir;;
17499 as_dirs="'$as_qdir' $as_dirs"
17500 as_dir=`$as_dirname -- "$as_dir" ||
17501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17502 X"$as_dir" : 'X\(//\)[^/]' \| \
17503 X"$as_dir" : 'X\(//\)$' \| \
17504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17510 /^X\(\/\/\)[^/].*/{
17523 test -d "$as_dir" && break
17525 test -z "$as_dirs" || eval "mkdir $as_dirs"
17526 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17527 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17528 { (exit 1); exit 1; }; }; }
17529 # echo "creating $dirpart/$file"
17530 echo '# dummy' > "$dirpart/$file"
17534 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17535 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17542 { (exit 0); exit 0; }
17544 chmod +x $CONFIG_STATUS
17545 ac_clean_files=$ac_clean_files_save
17548 # configure is writing to config.log, and then calls config.status.
17549 # config.status does its own redirection, appending to config.log.
17550 # Unfortunately, on DOS this fails, as config.log is still kept open
17551 # by configure, so config.status won't be able to write to it; its
17552 # output is simply discarded. So we exec the FD to /dev/null,
17553 # effectively closing config.log, so it can be properly (re)opened and
17554 # appended to by config.status. When coming back to configure, we
17555 # need to make the FD available again.
17556 if test "$no_create" != yes; then
17558 ac_config_status_args=
17559 test "$silent" = yes &&
17560 ac_config_status_args="$ac_config_status_args --quiet"
17562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17565 # would make configure fail if this is the last instruction.
17566 $ac_cs_success || { (exit 1); exit 1; }
17571 -*) as_dir=./$as_dir;;
17573 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17577 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17578 *) as_qdir=$as_dir;;
17580 as_dirs="'$as_qdir' $as_dirs"
17581 as_dir=`$as_dirname -- "$as_dir" ||
17582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17583 X"$as_dir" : 'X\(//\)[^/]' \| \
17584 X"$as_dir" : 'X\(//\)$' \| \
17585 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17591 /^X\(\/\/\)[^/].*/{
17604 test -d "$as_dir" && break
17606 test -z "$as_dirs" || eval "mkdir $as_dirs"
17607 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17608 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17609 { (exit 1); exit 1; }; }; }
17613 echo "Configuration complete"
17616 if test "x$HAVE_GTK" = x; then
17617 if test "x$HAVE_COCOA" = x; then
17618 echo " User interface: none"
17620 echo " User interface: Cocoa"
17623 echo " User interface: GTK"
17626 if test "x$SH4_TRANSLATOR" = "x"; then
17627 echo " SH4 translator: None (emulation core only)"
17629 echo " SH4 translator: $SH4_TRANSLATOR"
17632 if test "x$VIDEO_DRIVERS" = "x"; then
17633 echo " Video drivers: none (no supported GL found)"
17635 echo " Video drivers: $VIDEO_DRIVERS"
17638 if test "x$AUDIO_DRIVERS" = "x"; then
17639 echo " Audio drivers: none (no supported output devices found)"
17641 echo " Audio drivers: $AUDIO_DRIVERS"
17644 if test "x$INPUT_DRIVERS" = "x"; then
17645 echo " Input drivers: none (no supported input devices found)"
17647 echo " Input drivers: $INPUT_DRIVERS"
17650 if test "x$CDROM_DRIVER" = "x"; then
17651 echo " CD-ROM driver: none (no supported cd-rom devices found)"
17653 echo " CD-ROM driver: $CDROM_DRIVER"
.