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
718 am__fastdepCC_FOR_BUILD_TRUE
719 am__fastdepCC_FOR_BUILD_FALSE
738 am__fastdepOBJC_FALSE
757 GLIB_FOR_BUILD_CFLAGS
832 ac_precious_vars='build_alias
857 GLIB_FOR_BUILD_CFLAGS
873 # Initialize some variables set by options.
875 ac_init_version=false
876 # The variables have the same names as the options, with
877 # dashes changed to underlines.
885 program_transform_name=s,x,x,
893 # Installation directory options.
894 # These are left unexpanded so users can "make install exec_prefix=/foo"
895 # and all the variables that are supposed to be based on exec_prefix
896 # by default will actually change.
897 # Use braces instead of parens because sh, perl, etc. also accept them.
898 # (The list follows the same order as the GNU Coding Standards.)
899 bindir='${exec_prefix}/bin'
900 sbindir='${exec_prefix}/sbin'
901 libexecdir='${exec_prefix}/libexec'
902 datarootdir='${prefix}/share'
903 datadir='${datarootdir}'
904 sysconfdir='${prefix}/etc'
905 sharedstatedir='${prefix}/com'
906 localstatedir='${prefix}/var'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE}'
910 infodir='${datarootdir}/info'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
931 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 # Accept the important Cygnus configure options, so we can diagnose typos.
937 case $ac_dashdash$ac_option in
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 -build | --build | --buil | --bui | --bu)
947 ac_prev=build_alias ;;
948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949 build_alias=$ac_optarg ;;
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956 cache_file=$ac_optarg ;;
959 cache_file=config.cache ;;
961 -datadir | --datadir | --datadi | --datad)
963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
964 datadir=$ac_optarg ;;
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
973 -disable-* | --disable-*)
974 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
977 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
978 { (exit 1); exit 1; }; }
979 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
980 eval enable_$ac_feature=no ;;
982 -docdir | --docdir | --docdi | --doc | --do)
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 -enable-* | --enable-*)
993 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
996 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
997 { (exit 1); exit 1; }; }
998 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
999 eval enable_$ac_feature=\$ac_optarg ;;
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 htmldir=$ac_optarg ;;
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1044 -libdir | --libdir | --libdi | --libd)
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1135 -psdir | --psdir | --psdi | --psd | --ps)
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 sbindir=$ac_optarg ;;
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 sharedstatedir=$ac_optarg ;;
1161 -site | --site | --sit)
1163 -site=* | --site=* | --sit=*)
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1190 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid package name: $ac_package" >&2
1194 { (exit 1); exit 1; }; }
1195 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1196 eval with_$ac_package=\$ac_optarg ;;
1198 -without-* | --without-*)
1199 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 { echo "$as_me: error: invalid package name: $ac_package" >&2
1203 { (exit 1); exit 1; }; }
1204 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1205 eval with_$ac_package=no ;;
1208 # Obsolete; use --with-x.
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) { echo "$as_me: error: unrecognized option: $ac_option
1226 Try \`$0 --help' for more information." >&2
1227 { (exit 1); exit 1; }; }
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1234 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1235 { (exit 1); exit 1; }; }
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 { echo "$as_me: error: missing argument to $ac_option" >&2
1253 { (exit 1); exit 1; }; }
1256 # Be sure to have absolute directory names.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1262 eval ac_val=\$$ac_var
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1268 { (exit 1); exit 1; }; }
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1276 target=$target_alias
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1283 If a cross compiler is detected then cross compile mode will be used." >&2
1284 elif test "x$build_alias" != "x$host_alias"; then
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292 test "$silent" = yes && exec 6>/dev/null
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 { echo "$as_me: error: Working directory cannot be determined" >&2
1299 { (exit 1); exit 1; }; }
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 { echo "$as_me: error: pwd does not report name of working directory" >&2
1302 { (exit 1); exit 1; }; }
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$0" ||
1310 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$0" : 'X\(//\)[^/]' \| \
1312 X"$0" : 'X\(//\)$' \| \
1313 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1337 ac_srcdir_defaulted=no
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1342 { (exit 1); exit 1; }; }
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1347 { (exit 1); exit 1; }; }
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 # Report the --help message.
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1373 \`configure' configures this package to adapt to many kinds of systems.
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1380 Defaults for the options are specified in brackets.
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1404 For better control, use the options below.
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 if test -n "$ac_init_help"; then
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --enable-maintainer-mode enable make rules and dependencies not useful
1449 (and sometimes confusing) to the casual installer
1450 --disable-dependency-tracking speeds up one-time build
1451 --enable-dependency-tracking do not reject slow dependency extractors
1452 --enable-strict-warn Enable strict compilation warnings
1453 --disable-translator Disable the SH4 translator (Enabled by default)
1454 --disable-optimized Disable compile-time optimizations (Enabled by
1456 --enable-shared Build drivers as shared libraries (Enabled if
1458 --enable-profiled Enable profiling build
1459 --enable-trace Enable generation of IO traces (warning: hurts
1461 --enable-watch Enable watchpoints in the debugger (warning: hurts
1463 --enable-sh4stats Enable statistics on executed sh4 instructions
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-android=SDK Specify the location of the Android SDK
1469 --with-android-ndk=NDK Specify the location of the Android NDK
1470 --with-android-version Specify target Android SDK version
1471 --with-android-version Specify target Android NDK version
1472 --with-android-abi Specify target Android ABI
1473 --with-osmesa Build with the osmesa GL library (software
1475 --with-gtk Build with the GTK UI. Default on X11 systems
1476 --with-esd Build with support for the ESounD audio system
1477 --with-pulse Build with support for the PulseAudio audio system
1478 --with-sdl Build with support for SDL audio
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1489 OBJC Objective C compiler command
1490 OBJCFLAGS Objective C compiler flags
1491 CCAS assembler compiler command (defaults to CC)
1492 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1493 PKG_CONFIG path to pkg-config utility
1495 C compiler flags for LIBPNG, overriding pkg-config
1496 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1497 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1498 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1499 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1500 GTK_LIBS linker flags for GTK, overriding pkg-config
1501 GLIB_FOR_BUILD_CFLAGS
1502 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1504 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1506 C compiler flags for LIBISOFS, overriding pkg-config
1508 linker flags for LIBISOFS, overriding pkg-config
1510 C compiler flags for LIBGL, overriding pkg-config
1511 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1512 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1513 SDL_LIBS linker flags for SDL, overriding pkg-config
1515 C compiler flags for PULSE, overriding pkg-config
1516 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1518 C compiler flags for ESOUND, overriding pkg-config
1519 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1520 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1521 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" || continue
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1553 .) # We are building in place.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1587 generated by GNU Autoconf 2.61
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1596 cat >config.log <<_ACEOF
1597 This file contains any messages produced by compilers while
1598 running configure, to aid debugging if configure makes a mistake.
1600 It was created by $as_me, which was
1601 generated by GNU Autoconf 2.61. Invocation command line was
1613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1622 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1623 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1626 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1627 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1628 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir=.
1637 echo "PATH: $as_dir"
1653 # Keep a trace of the command line.
1654 # Strip out --no-create and --no-recursion so they do not pile up.
1655 # Strip out --silent because we don't want to record it for future runs.
1656 # Also quote any args containing shell meta-characters.
1657 # Make two passes to allow for proper duplicate-argument suppression.
1661 ac_must_keep_next=false
1667 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669 | -silent | --silent | --silen | --sile | --sil)
1672 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1677 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678 if test $ac_must_keep_next = true; then
1679 ac_must_keep_next=false # Got value, back to normal.
1682 *=* | --config-cache | -C | -disable-* | --disable-* \
1683 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685 | -with-* | --with-* | -without-* | --without-* | --x)
1686 case "$ac_configure_args0 " in
1687 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690 -* ) ac_must_keep_next=true ;;
1693 ac_configure_args="$ac_configure_args '$ac_arg'"
1698 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1701 # When interrupted or exit'd, cleanup temporary files, and complete
1702 # config.log. We remove comments because anyway the quotes in there
1703 # would cause problems or look ugly.
1704 # WARNING: Use '\'' to represent an apostrophe within the trap.
1705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706 trap 'exit_status=$?
1707 # Save into config.log some information that might help in debugging.
1712 ## ---------------- ##
1713 ## Cache variables. ##
1714 ## ---------------- ##
1717 # The following way of writing the cache mishandles newlines in values,
1719 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720 eval ac_val=\$$ac_var
1724 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728 _ | IFS | as_nl) ;; #(
1729 *) $as_unset $ac_var ;;
1734 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735 *${as_nl}ac_space=\ *)
1737 "s/'\''/'\''\\\\'\'''\''/g;
1738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749 ## ----------------- ##
1750 ## Output variables. ##
1751 ## ----------------- ##
1754 for ac_var in $ac_subst_vars
1756 eval ac_val=\$$ac_var
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 echo "$ac_var='\''$ac_val'\''"
1764 if test -n "$ac_subst_files"; then
1766 ## ------------------- ##
1767 ## File substitutions. ##
1768 ## ------------------- ##
1771 for ac_var in $ac_subst_files
1773 eval ac_val=\$$ac_var
1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 echo "$ac_var='\''$ac_val'\''"
1782 if test -s confdefs.h; then
1792 test "$ac_signal" != 0 &&
1793 echo "$as_me: caught signal $ac_signal"
1794 echo "$as_me: exit $exit_status"
1796 rm -f core *.core core.conftest.* &&
1797 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800 for ac_signal in 1 2 13 15; do
1801 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1805 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1806 rm -f -r conftest* confdefs.h
1808 # Predefined preprocessor variables.
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_NAME "$PACKAGE_NAME"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_STRING "$PACKAGE_STRING"
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1835 # Let the site file select an alternate cache file if it wants to.
1836 # Prefer explicitly selected file to automatically selected ones.
1837 if test -n "$CONFIG_SITE"; then
1838 set x "$CONFIG_SITE"
1839 elif test "x$prefix" != xNONE; then
1840 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1842 set x "$ac_default_prefix/share/config.site" \
1843 "$ac_default_prefix/etc/config.site"
1848 if test -r "$ac_site_file"; then
1849 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 echo "$as_me: loading site script $ac_site_file" >&6;}
1851 sed 's/^/| /' "$ac_site_file" >&5
1856 if test -r "$cache_file"; then
1857 # Some versions of bash will fail to source /dev/null (special
1858 # files actually), so we avoid doing that.
1859 if test -f "$cache_file"; then
1860 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 echo "$as_me: loading cache $cache_file" >&6;}
1863 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864 *) . "./$cache_file";;
1868 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 echo "$as_me: creating cache $cache_file" >&6;}
1873 # Check that the precious variables saved in the cache have kept the same
1875 ac_cache_corrupted=false
1876 for ac_var in $ac_precious_vars; do
1877 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878 eval ac_new_set=\$ac_env_${ac_var}_set
1879 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880 eval ac_new_val=\$ac_env_${ac_var}_value
1881 case $ac_old_set,$ac_new_set in
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1887 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1892 if test "x$ac_old_val" != "x$ac_new_val"; then
1893 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1896 echo "$as_me: former value: $ac_old_val" >&2;}
1897 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1898 echo "$as_me: current value: $ac_new_val" >&2;}
1899 ac_cache_corrupted=:
1902 # Pass precious variables to config.status.
1903 if test "$ac_new_set" = set; then
1905 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 *) ac_arg=$ac_var=$ac_new_val ;;
1908 case " $ac_configure_args " in
1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1914 if $ac_cache_corrupted; then
1915 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919 { (exit 1); exit 1; }; }
1939 ac_cpp='$CPP $CPPFLAGS'
1940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1945 am__api_version="1.9"
1947 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1948 if test -f "$ac_dir/install-sh"; then
1950 ac_install_sh="$ac_aux_dir/install-sh -c"
1952 elif test -f "$ac_dir/install.sh"; then
1954 ac_install_sh="$ac_aux_dir/install.sh -c"
1956 elif test -f "$ac_dir/shtool"; then
1958 ac_install_sh="$ac_aux_dir/shtool install -c"
1962 if test -z "$ac_aux_dir"; then
1963 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1964 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1965 { (exit 1); exit 1; }; }
1968 # These three variables are undocumented and unsupported,
1969 # and are intended to be withdrawn in a future Autoconf release.
1970 # They can cause serious problems if a builder's source tree is in a directory
1971 # whose full name contains unusual characters.
1972 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1973 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1974 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1977 # Find a good install program. We prefer a C program (faster),
1978 # so one script is as good as another. But avoid the broken or
1979 # incompatible versions:
1980 # SysV /etc/install, /usr/sbin/install
1981 # SunOS /usr/etc/install
1982 # IRIX /sbin/install
1984 # AmigaOS /C/install, which installs bootblocks on floppy discs
1985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1988 # OS/2's system install, which has a completely different semantic
1989 # ./install, which can be erroneously created by make from ./install.sh.
1990 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1991 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1992 if test -z "$INSTALL"; then
1993 if test "${ac_cv_path_install+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir=.
2001 # Account for people who put trailing slashes in PATH elements.
2003 ./ | .// | /cC/* | \
2004 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2005 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2008 # OSF1 and SCO ODT 3.0 have their own names for install.
2009 # Don't use installbsd from OSF since it installs stuff as root
2011 for ac_prog in ginstall scoinst install; do
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2014 if test $ac_prog = install &&
2015 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2016 # AIX install. It has an incompatible calling convention.
2018 elif test $ac_prog = install &&
2019 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2020 # program-specific install script used by HP pwplus--don't use.
2023 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2036 if test "${ac_cv_path_install+set}" = set; then
2037 INSTALL=$ac_cv_path_install
2039 # As a last resort, use the slow shell script. Don't cache a
2040 # value for INSTALL within a source directory, because that will
2041 # break other packages using the cache if that directory is
2042 # removed, or if the value is a relative name.
2043 INSTALL=$ac_install_sh
2046 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2047 echo "${ECHO_T}$INSTALL" >&6; }
2049 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2050 # It thinks the first close brace ends the variable substitution.
2051 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2053 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2055 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2057 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2058 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2061 echo timestamp > conftest.file
2062 # Do `set' in a subshell so we don't clobber the current shell's
2063 # arguments. Must try -L first in case configure is actually a
2064 # symlink; some systems play weird games with the mod time of symlinks
2065 # (eg FreeBSD returns the mod time of the symlink's containing
2068 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2069 if test "$*" = "X"; then
2071 set X `ls -t $srcdir/configure conftest.file`
2074 if test "$*" != "X $srcdir/configure conftest.file" \
2075 && test "$*" != "X conftest.file $srcdir/configure"; then
2077 # If neither matched, then we have a broken ls. This can happen
2078 # if, for instance, CONFIG_SHELL is bash and it inherits a
2079 # broken ls alias from the environment. This has actually
2080 # happened. Such a system could not be considered "sane".
2081 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2082 alias in your environment" >&5
2083 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2084 alias in your environment" >&2;}
2085 { (exit 1); exit 1; }; }
2088 test "$2" = conftest.file
2094 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2095 Check your system clock" >&5
2096 echo "$as_me: error: newly created file is older than distributed files!
2097 Check your system clock" >&2;}
2098 { (exit 1); exit 1; }; }
2100 { echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6; }
2102 test "$program_prefix" != NONE &&
2103 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2104 # Use a double $ so make ignores it.
2105 test "$program_suffix" != NONE &&
2106 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2107 # Double any \ or $. echo might interpret backslashes.
2108 # By default was `s,x,x', remove it if useless.
2109 cat <<\_ACEOF >conftest.sed
2110 s/[\\$]/&&/g;s/;s,x,x,$//
2112 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2115 # expand $ac_aux_dir to an absolute path
2116 am_aux_dir=`cd $ac_aux_dir && pwd`
2118 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2119 # Use eval to expand $SHELL
2120 if eval "$MISSING --run true"; then
2121 am_missing_run="$MISSING --run "
2124 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2125 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2128 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2129 # We used to keeping the `.' as first argument, in order to
2130 # allow $(mkdir_p) to be used without argument. As in
2131 # $(mkdir_p) $(somedir)
2132 # where $(somedir) is conditionally defined. However this is wrong
2134 # 1. if the package is installed by a user who cannot write `.'
2135 # make install will fail,
2136 # 2. the above comment should most certainly read
2137 # $(mkdir_p) $(DESTDIR)$(somedir)
2138 # so it does not work when $(somedir) is undefined and
2139 # $(DESTDIR) is not.
2140 # To support the latter case, we have to write
2141 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2142 # so the `.' trick is pointless.
2143 mkdir_p='mkdir -p --'
2145 # On NextStep and OpenStep, the `mkdir' command does not
2146 # recognize any option. It will interpret all options as
2147 # directories to create, and then abort because `.' already
2149 for d in ./-p ./--version;
2151 test -d $d && rmdir $d
2153 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2154 if test -f "$ac_aux_dir/mkinstalldirs"; then
2155 mkdir_p='$(mkinstalldirs)'
2157 mkdir_p='$(install_sh) -d'
2161 for ac_prog in gawk mawk nawk awk
2163 # Extract the first word of "$ac_prog", so it can be a program name with args.
2164 set dummy $ac_prog; ac_word=$2
2165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2167 if test "${ac_cv_prog_AWK+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 if test -n "$AWK"; then
2171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 test -z "$as_dir" && as_dir=.
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2180 ac_cv_prog_AWK="$ac_prog"
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 if test -n "$AWK"; then
2192 { echo "$as_me:$LINENO: result: $AWK" >&5
2193 echo "${ECHO_T}$AWK" >&6; }
2195 { echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6; }
2200 test -n "$AWK" && break
2203 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2204 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2205 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2206 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 cat >conftest.make <<\_ACEOF
2212 @echo '@@@%%%=$(MAKE)=@@@%%%'
2214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2215 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2217 eval ac_cv_prog_make_${ac_make}_set=yes;;
2219 eval ac_cv_prog_make_${ac_make}_set=no;;
2223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2224 { echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6; }
2228 { echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6; }
2230 SET_MAKE="MAKE=${MAKE-make}"
2233 rm -rf .tst 2>/dev/null
2234 mkdir .tst 2>/dev/null
2235 if test -d .tst; then
2240 rmdir .tst 2>/dev/null
2242 # test to see if srcdir already configured
2243 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2244 test -f $srcdir/config.status; then
2245 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2246 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2247 { (exit 1); exit 1; }; }
2250 # test whether we have cygpath
2251 if test -z "$CYGPATH_W"; then
2252 if (cygpath --version) >/dev/null 2>/dev/null; then
2253 CYGPATH_W='cygpath -w'
2260 # Define the identity of the package.
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE "$PACKAGE"
2270 cat >>confdefs.h <<_ACEOF
2271 #define VERSION "$VERSION"
2274 # Some tools Automake needs.
2276 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2279 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2282 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2285 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2288 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2290 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2292 # Installed binaries are usually stripped using `strip' when the user
2293 # run `make install-strip'. However `strip' might not be the right
2294 # tool to use in cross-compilation environments, therefore Automake
2295 # will honor the `STRIP' environment variable to overrule this program.
2296 if test "$cross_compiling" != no; then
2297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}strip; ac_word=$2
2300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2302 if test "${ac_cv_prog_STRIP+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 if test -n "$STRIP"; then
2306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 STRIP=$ac_cv_prog_STRIP
2326 if test -n "$STRIP"; then
2327 { echo "$as_me:$LINENO: result: $STRIP" >&5
2328 echo "${ECHO_T}$STRIP" >&6; }
2330 { echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6; }
2336 if test -z "$ac_cv_prog_STRIP"; then
2338 # Extract the first word of "strip", so it can be a program name with args.
2339 set dummy strip; ac_word=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 if test -n "$ac_ct_STRIP"; then
2346 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355 ac_cv_prog_ac_ct_STRIP="strip"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2366 if test -n "$ac_ct_STRIP"; then
2367 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2368 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2370 { echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6; }
2374 if test "x$ac_ct_STRIP" = x; then
2377 case $cross_compiling:$ac_tool_warned in
2379 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2380 whose name does not start with the host triplet. If you think this
2381 configuration is useful to you, please write to autoconf@gnu.org." >&5
2382 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2383 whose name does not start with the host triplet. If you think this
2384 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2385 ac_tool_warned=yes ;;
2390 STRIP="$ac_cv_prog_STRIP"
2394 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2396 # We need awk for the "check" target. The system "awk" is bad on
2398 # Always define AMTAR for backward compatibility.
2400 AMTAR=${AMTAR-"${am_missing_run}tar"}
2402 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2408 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2409 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2410 # Check whether --enable-maintainer-mode was given.
2411 if test "${enable_maintainer_mode+set}" = set; then
2412 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2414 USE_MAINTAINER_MODE=no
2417 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2418 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2421 if test $USE_MAINTAINER_MODE = yes; then
2422 MAINTAINER_MODE_TRUE=
2423 MAINTAINER_MODE_FALSE='#'
2425 MAINTAINER_MODE_TRUE='#'
2426 MAINTAINER_MODE_FALSE=
2429 MAINT=$MAINTAINER_MODE_TRUE
2432 ac_config_headers="$ac_config_headers config.h"
2435 # Make sure we can run config.sub.
2436 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2437 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2438 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2439 { (exit 1); exit 1; }; }
2441 { echo "$as_me:$LINENO: checking build system type" >&5
2442 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2443 if test "${ac_cv_build+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 ac_build_alias=$build_alias
2447 test "x$ac_build_alias" = x &&
2448 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2449 test "x$ac_build_alias" = x &&
2450 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2451 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2452 { (exit 1); exit 1; }; }
2453 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2454 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2455 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2456 { (exit 1); exit 1; }; }
2459 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2460 echo "${ECHO_T}$ac_cv_build" >&6; }
2461 case $ac_cv_build in
2463 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2464 echo "$as_me: error: invalid value of canonical build" >&2;}
2465 { (exit 1); exit 1; }; };;
2468 ac_save_IFS=$IFS; IFS='-'
2474 # Remember, the first character of IFS is used to create $*,
2475 # except with old shells:
2478 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2481 { echo "$as_me:$LINENO: checking host system type" >&5
2482 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2483 if test "${ac_cv_host+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 if test "x$host_alias" = x; then
2487 ac_cv_host=$ac_cv_build
2489 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2490 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2491 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2492 { (exit 1); exit 1; }; }
2496 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2497 echo "${ECHO_T}$ac_cv_host" >&6; }
2500 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2501 echo "$as_me: error: invalid value of canonical host" >&2;}
2502 { (exit 1); exit 1; }; };;
2505 ac_save_IFS=$IFS; IFS='-'
2511 # Remember, the first character of IFS is used to create $*,
2512 # except with old shells:
2515 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2527 # Defines --with-android, --with-android-ndk, and --with-android-version
2528 # If specified, checks for a working install, and sets build parameters
2529 # appropriately for an Android host.
2535 # Check whether --with-android was given.
2536 if test "${with_android+set}" = set; then
2537 withval=$with_android;
2541 # Check whether --with-android-ndk was given.
2542 if test "${with_android_ndk+set}" = set; then
2543 withval=$with_android_ndk;
2547 # Check whether --with-android-version was given.
2548 if test "${with_android_version+set}" = set; then
2549 withval=$with_android_version;
2551 with_android_version="android-11"
2555 # Check whether --with-android-ndk-version was given.
2556 if test "${with_android_ndk_version+set}" = set; then
2557 withval=$with_android_ndk_version;
2559 with_ndk_version="android-9"
2563 # Check whether --with-android-abi was given.
2564 if test "${with_android_abi+set}" = set; then
2565 withval=$with_android_abi;
2567 ANDROID_ABI="armeabi-v7a"
2571 if test "x$with_android" != "x"; then
2572 if test "$with_android" = "yes"; then
2573 { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
2574 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
2575 { (exit 1); exit 1; }; }
2577 if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
2578 { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
2579 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
2580 { (exit 1); exit 1; }; }
2583 ANDROID_SDK_HOME="$with_android"
2584 ANDROID_NDK_HOME="$with_android_ndk"
2585 ANDROID_SDK_VERSION="$with_android_version"
2586 ANDROID_NDK_VERSION="$with_ndk_version"
2588 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
2589 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
2590 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
2591 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 test "$cross_compiling" = yes &&
2595 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2596 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2597 { (exit 1); exit 1; }; }
2598 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
2599 eval "$as_ac_File=yes"
2601 eval "$as_ac_File=no"
2604 ac_res=`eval echo '${'$as_ac_File'}'`
2605 { echo "$as_me:$LINENO: result: $ac_res" >&5
2606 echo "${ECHO_T}$ac_res" >&6; }
2607 if test `eval echo '${'$as_ac_File'}'` = yes; then
2610 { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
2611 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
2612 { (exit 1); exit 1; }; }
2615 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
2616 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
2617 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
2618 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 test "$cross_compiling" = yes &&
2622 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2623 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2624 { (exit 1); exit 1; }; }
2625 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
2626 eval "$as_ac_File=yes"
2628 eval "$as_ac_File=no"
2631 ac_res=`eval echo '${'$as_ac_File'}'`
2632 { echo "$as_me:$LINENO: result: $ac_res" >&5
2633 echo "${ECHO_T}$ac_res" >&6; }
2634 if test `eval echo '${'$as_ac_File'}'` = yes; then
2637 { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
2638 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
2639 { (exit 1); exit 1; }; }
2642 as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
2643 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
2644 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
2645 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 test "$cross_compiling" = yes &&
2649 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2650 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2651 { (exit 1); exit 1; }; }
2652 if test -r "$ANDROID_NDK_HOME/toolchains"; then
2653 eval "$as_ac_File=yes"
2655 eval "$as_ac_File=no"
2658 ac_res=`eval echo '${'$as_ac_File'}'`
2659 { echo "$as_me:$LINENO: result: $ac_res" >&5
2660 echo "${ECHO_T}$ac_res" >&6; }
2661 if test `eval echo '${'$as_ac_File'}'` = yes; then
2664 { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
2665 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
2666 { (exit 1); exit 1; }; }
2670 TARGETFLAGS="-ffunction-sections -funwind-tables -fomit-frame-pointer -DANDROID -Wa,--noexecstack"
2672 case $ANDROID_ABI in
2673 armeabi | armeabi-v7a)
2674 host_alias="arm-linux-androideabi"
2676 host_vendor="unknown";
2677 host_os="linux-androideabi"
2678 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
2679 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
2680 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-arm"
2681 TARGETFLAGS="$TARGETFLAGS -fstack-protector -finline-limit=64 -fno-strict-aliasing -Wno-psabi -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__"
2682 if test "x$with_abi" = "armeabi"; then
2683 TARGETFLAGS="$TARGETFLAGS -march=armv5te -mtune=xscale -msoft-float"
2685 TARGETFLAGS="$TARGETFLAGS -march=armv7-a -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfp"
2689 host_alias="i686-android-linux"
2691 host_vendor="android"
2693 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
2694 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
2695 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-x86"
2696 TARGETFLAGS="$TARGETFLAGS -finline-limit=300 -fno-rtti -funswitch-loops -fstrict-aliasing"
2699 { { echo "$as_me:$LINENO: error: Unsupported android ABI $ANDROID_ABI" >&5
2700 echo "$as_me: error: Unsupported android ABI $ANDROID_ABI" >&2;}
2701 { (exit 1); exit 1; }; }
2705 # Extract the first word of "ant ", so it can be a program name with args.
2706 set dummy ant ; ac_word=$2
2707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2709 if test "${ac_cv_path_ANT+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 if test -n "$ANT"; then
2737 { echo "$as_me:$LINENO: result: $ANT" >&5
2738 echo "${ECHO_T}$ANT" >&6; }
2740 { echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6; }
2746 CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
2747 CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
2748 CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
2749 LD="$ANDROID_NDK_BIN/${host_alias}-ld"
2750 AR="$ANDROID_NDK_BIN/${host_alias}-ar"
2751 GDB="$ANDROID_NDK_BIN/${host_alias}-gdb"
2752 RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
2753 STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
2754 OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
2755 CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
2756 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"
2757 LIBS="$LIBS -liconv -landroid -llog -lgcc -lc -lm"
2773 if test "$ANDROID_BUILD" = "yes"; then
2775 GUI_ANDROID_FALSE='#'
2777 GUI_ANDROID_TRUE='#'
2784 DEPDIR="${am__leading_dot}deps"
2786 ac_config_commands="$ac_config_commands depfiles"
2789 am_make=${MAKE-make}
2790 cat > confinc << 'END'
2795 # If we don't find an include directive, just comment out the code.
2796 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2797 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2801 # First try GNU make style include.
2802 echo "include confinc" > confmf
2803 # We grep out `Entering directory' and `Leaving directory'
2804 # messages which can occur if `w' ends up in MAKEFLAGS.
2805 # In particular we don't look at `^make:' because GNU make might
2806 # be invoked under some other name (usually "gmake"), in which
2807 # case it prints its new name instead of `make'.
2808 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2813 # Now try BSD make style include.
2814 if test "$am__include" = "#"; then
2815 echo '.include "confinc"' > confmf
2816 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2817 am__include=.include
2824 { echo "$as_me:$LINENO: result: $_am_result" >&5
2825 echo "${ECHO_T}$_am_result" >&6; }
2826 rm -f confinc confmf
2828 # Check whether --enable-dependency-tracking was given.
2829 if test "${enable_dependency_tracking+set}" = set; then
2830 enableval=$enable_dependency_tracking;
2833 if test "x$enable_dependency_tracking" != xno; then
2834 am_depcomp="$ac_aux_dir/depcomp"
2839 if test "x$enable_dependency_tracking" != xno; then
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test -n "$CC"; then
2884 { echo "$as_me:$LINENO: result: $CC" >&5
2885 echo "${ECHO_T}$CC" >&6; }
2887 { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2893 if test -z "$ac_cv_prog_CC"; then
2895 # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc; ac_word=$2
2897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_ac_ct_CC="gcc"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2925 echo "${ECHO_T}$ac_ct_CC" >&6; }
2927 { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2931 if test "x$ac_ct_CC" = x; then
2934 case $cross_compiling:$ac_tool_warned in
2936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2937 whose name does not start with the host triplet. If you think this
2938 configuration is useful to you, please write to autoconf@gnu.org." >&5
2939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2940 whose name does not start with the host triplet. If you think this
2941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2942 ac_tool_warned=yes ;;
2950 if test -z "$CC"; then
2951 if test -n "$ac_tool_prefix"; then
2952 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2953 set dummy ${ac_tool_prefix}cc; ac_word=$2
2954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2956 if test "${ac_cv_prog_CC+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 if test -n "$CC"; then
2960 ac_cv_prog_CC="$CC" # Let the user override the test.
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_CC="${ac_tool_prefix}cc"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 if test -n "$CC"; then
2981 { echo "$as_me:$LINENO: result: $CC" >&5
2982 echo "${ECHO_T}$CC" >&6; }
2984 { echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6; }
2991 if test -z "$CC"; then
2992 # Extract the first word of "cc", so it can be a program name with args.
2993 set dummy cc; ac_word=$2
2994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2996 if test "${ac_cv_prog_CC+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 if test -n "$CC"; then
3000 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3011 ac_prog_rejected=yes
3015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 if test $ac_prog_rejected = yes; then
3023 # We found a bogon in the path, so make sure we never use it.
3024 set dummy $ac_cv_prog_CC
3026 if test $# != 0; then
3027 # We chose a different compiler from the bogus one.
3028 # However, it has the same basename, so the bogon will be chosen
3029 # first if we set CC to just the basename; use the full file name.
3031 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3037 if test -n "$CC"; then
3038 { echo "$as_me:$LINENO: result: $CC" >&5
3039 echo "${ECHO_T}$CC" >&6; }
3041 { echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6; }
3047 if test -z "$CC"; then
3048 if test -n "$ac_tool_prefix"; then
3049 for ac_prog in cl.exe
3051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3055 if test "${ac_cv_prog_CC+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 if test -n "$CC"; then
3080 { echo "$as_me:$LINENO: result: $CC" >&5
3081 echo "${ECHO_T}$CC" >&6; }
3083 { echo "$as_me:$LINENO: result: no" >&5
3084 echo "${ECHO_T}no" >&6; }
3088 test -n "$CC" && break
3091 if test -z "$CC"; then
3093 for ac_prog in cl.exe
3095 # Extract the first word of "$ac_prog", so it can be a program name with args.
3096 set dummy $ac_prog; ac_word=$2
3097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 if test -n "$ac_ct_CC"; then
3103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_ac_ct_CC="$ac_prog"
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123 if test -n "$ac_ct_CC"; then
3124 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3125 echo "${ECHO_T}$ac_ct_CC" >&6; }
3127 { echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6; }
3132 test -n "$ac_ct_CC" && break
3135 if test "x$ac_ct_CC" = x; then
3138 case $cross_compiling:$ac_tool_warned in
3140 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3141 whose name does not start with the host triplet. If you think this
3142 configuration is useful to you, please write to autoconf@gnu.org." >&5
3143 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3144 whose name does not start with the host triplet. If you think this
3145 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3146 ac_tool_warned=yes ;;
3155 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3156 See \`config.log' for more details." >&5
3157 echo "$as_me: error: no acceptable C compiler found in \$PATH
3158 See \`config.log' for more details." >&2;}
3159 { (exit 1); exit 1; }; }
3161 # Provide some information about the compiler.
3162 echo "$as_me:$LINENO: checking for C compiler version" >&5
3163 ac_compiler=`set X $ac_compile; echo $2`
3164 { (ac_try="$ac_compiler --version >&5"
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compiler --version >&5") 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }
3174 { (ac_try="$ac_compiler -v >&5"
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compiler -v >&5") 2>&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }
3184 { (ac_try="$ac_compiler -V >&5"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compiler -V >&5") 2>&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3210 ac_clean_files_save=$ac_clean_files
3211 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3212 # Try to create an executable without -o first, disregard a.out.
3213 # It will help us diagnose broken compilers, and finding out an intuition
3215 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3216 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3217 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3219 # List of possible output files, starting from the most likely.
3220 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3221 # only as a last resort. b.out is created by i960 compilers.
3222 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3224 # The IRIX 6 linker writes into existing files which may not be
3225 # executable, retaining their permissions. Remove them first so a
3226 # subsequent execution test works.
3228 for ac_file in $ac_files
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3232 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3237 if { (ac_try="$ac_link_default"
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_link_default") 2>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; then
3247 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3249 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3250 # so that the user can short-circuit this test for compilers unknown to
3252 for ac_file in $ac_files ''
3254 test -f "$ac_file" || continue
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3259 # We found the default executable, but exeext='' is most
3263 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3265 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3267 # We set ac_cv_exeext here because the later test for it is not
3268 # safe: cross compilers may not add the suffix if given an `-o'
3269 # argument, so we may need to know it at that point already.
3270 # Even if this section looks crufty: it has the advantage of
3277 test "$ac_cv_exeext" = no && ac_cv_exeext=
3283 { echo "$as_me:$LINENO: result: $ac_file" >&5
3284 echo "${ECHO_T}$ac_file" >&6; }
3285 if test -z "$ac_file"; then
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3289 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3290 See \`config.log' for more details." >&5
3291 echo "$as_me: error: C compiler cannot create executables
3292 See \`config.log' for more details." >&2;}
3293 { (exit 77); exit 77; }; }
3296 ac_exeext=$ac_cv_exeext
3298 # Check that the compiler produces executables we can run. If not, either
3299 # the compiler is broken, or we cross compile.
3300 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3301 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3302 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3303 # If not cross compiling, check that we can run a simple program.
3304 if test "$cross_compiling" != yes; then
3305 if { ac_try='./$ac_file'
3306 { (case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_try") 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3317 if test "$cross_compiling" = maybe; then
3320 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3321 If you meant to cross compile, use \`--host'.
3322 See \`config.log' for more details." >&5
3323 echo "$as_me: error: cannot run C compiled programs.
3324 If you meant to cross compile, use \`--host'.
3325 See \`config.log' for more details." >&2;}
3326 { (exit 1); exit 1; }; }
3330 { echo "$as_me:$LINENO: result: yes" >&5
3331 echo "${ECHO_T}yes" >&6; }
3333 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3334 ac_clean_files=$ac_clean_files_save
3335 # Check that the compiler produces executables we can run. If not, either
3336 # the compiler is broken, or we cross compile.
3337 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3338 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3339 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3340 echo "${ECHO_T}$cross_compiling" >&6; }
3342 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3343 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3344 if { (ac_try="$ac_link"
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_link") 2>&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; then
3354 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3355 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3356 # work properly (i.e., refer to `conftest.exe'), while it won't with
3358 for ac_file in conftest.exe conftest conftest.*; do
3359 test -f "$ac_file" || continue
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3362 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3369 See \`config.log' for more details." >&5
3370 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3371 See \`config.log' for more details." >&2;}
3372 { (exit 1); exit 1; }; }
3375 rm -f conftest$ac_cv_exeext
3376 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3377 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3379 rm -f conftest.$ac_ext
3380 EXEEXT=$ac_cv_exeext
3382 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3383 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3384 if test "${ac_cv_objext+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3402 rm -f conftest.o conftest.obj
3403 if { (ac_try="$ac_compile"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_compile") 2>&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; then
3413 for ac_file in conftest.o conftest.obj conftest.*; do
3414 test -f "$ac_file" || continue;
3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3417 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3426 See \`config.log' for more details." >&5
3427 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3428 See \`config.log' for more details." >&2;}
3429 { (exit 1); exit 1; }; }
3432 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3434 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3435 echo "${ECHO_T}$ac_cv_objext" >&6; }
3436 OBJEXT=$ac_cv_objext
3438 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3439 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3440 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 cat >conftest.$ac_ext <<_ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3461 rm -f conftest.$ac_objext
3462 if { (ac_try="$ac_compile"
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468 (eval "$ac_compile") 2>conftest.er1
3470 grep -v '^ *+' conftest.er1 >conftest.err
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } && {
3475 test -z "$ac_c_werror_flag" ||
3476 test ! -s conftest.err
3477 } && test -s conftest.$ac_objext; then
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3490 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3491 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3492 GCC=`test $ac_compiler_gnu = yes && echo yes`
3493 ac_test_CFLAGS=${CFLAGS+set}
3494 ac_save_CFLAGS=$CFLAGS
3495 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3496 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3497 if test "${ac_cv_prog_cc_g+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 ac_save_c_werror_flag=$ac_c_werror_flag
3501 ac_c_werror_flag=yes
3504 cat >conftest.$ac_ext <<_ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3519 rm -f conftest.$ac_objext
3520 if { (ac_try="$ac_compile"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_compile") 2>conftest.er1
3528 grep -v '^ *+' conftest.er1 >conftest.err
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } && {
3533 test -z "$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3535 } && test -s conftest.$ac_objext; then
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3542 cat >conftest.$ac_ext <<_ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3557 rm -f conftest.$ac_objext
3558 if { (ac_try="$ac_compile"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_compile") 2>conftest.er1
3566 grep -v '^ *+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } && {
3571 test -z "$ac_c_werror_flag" ||
3572 test ! -s conftest.err
3573 } && test -s conftest.$ac_objext; then
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 ac_c_werror_flag=$ac_save_c_werror_flag
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3596 rm -f conftest.$ac_objext
3597 if { (ac_try="$ac_compile"
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_compile") 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } && {
3610 test -z "$ac_c_werror_flag" ||
3611 test ! -s conftest.err
3612 } && test -s conftest.$ac_objext; then
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3630 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3631 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3632 if test "$ac_test_CFLAGS" = set; then
3633 CFLAGS=$ac_save_CFLAGS
3634 elif test $ac_cv_prog_cc_g = yes; then
3635 if test "$GCC" = yes; then
3641 if test "$GCC" = yes; then
3647 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3648 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3649 if test "${ac_cv_prog_cc_c89+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 ac_cv_prog_cc_c89=no
3654 cat >conftest.$ac_ext <<_ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3662 #include <sys/types.h>
3663 #include <sys/stat.h>
3664 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3665 struct buf { int x; };
3666 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3667 static char *e (p, i)
3673 static char *f (char * (*g) (char **, int), char **p, ...)
3678 s = g (p, va_arg (v,int));
3683 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3684 function prototypes and stuff, but not '\xHH' hex character constants.
3685 These don't provoke an error unfortunately, instead are silently treated
3686 as 'x'. The following induces an error, until -std is added to get
3687 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3688 array size at least. It's necessary to write '\x00'==0 to get something
3689 that's true only with -std. */
3690 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3692 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3693 inside strings and character constants. */
3695 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3697 int test (int i, double x);
3698 struct s1 {int (*f) (int a);};
3699 struct s2 {int (*f) (double a);};
3700 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3706 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3711 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3712 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3714 CC="$ac_save_CC $ac_arg"
3715 rm -f conftest.$ac_objext
3716 if { (ac_try="$ac_compile"
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_compile") 2>conftest.er1
3724 grep -v '^ *+' conftest.er1 >conftest.err
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } && {
3729 test -z "$ac_c_werror_flag" ||
3730 test ! -s conftest.err
3731 } && test -s conftest.$ac_objext; then
3732 ac_cv_prog_cc_c89=$ac_arg
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3740 rm -f core conftest.err conftest.$ac_objext
3741 test "x$ac_cv_prog_cc_c89" != "xno" && break
3743 rm -f conftest.$ac_ext
3748 case "x$ac_cv_prog_cc_c89" in
3750 { echo "$as_me:$LINENO: result: none needed" >&5
3751 echo "${ECHO_T}none needed" >&6; } ;;
3753 { echo "$as_me:$LINENO: result: unsupported" >&5
3754 echo "${ECHO_T}unsupported" >&6; } ;;
3756 CC="$CC $ac_cv_prog_cc_c89"
3757 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3758 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 depcc="$CC" am_compiler_list=
3770 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3771 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3772 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3776 # We make a subdir and do the tests there. Otherwise we can end up
3777 # making bogus files that we don't know about and never remove. For
3778 # instance it was reported that on HP-UX the gcc test will end up
3779 # making a dummy file named `D' -- because `-MD' means `put the output
3782 # Copy depcomp to subdir because otherwise we won't find it if we're
3783 # using a relative directory.
3784 cp "$am_depcomp" conftest.dir
3786 # We will build objects and dependencies in a subdirectory because
3787 # it helps to detect inapplicable dependency modes. For instance
3788 # both Tru64's cc and ICC support -MD to output dependencies as a
3789 # side effect of compilation, but ICC will put the dependencies in
3790 # the current directory while Tru64 will put them in the object
3794 am_cv_CC_dependencies_compiler_type=none
3795 if test "$am_compiler_list" = ""; then
3796 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3798 for depmode in $am_compiler_list; do
3799 # Setup a source with many dependencies, because some compilers
3800 # like to wrap large dependency lists on column 80 (with \), and
3801 # we should not choose a depcomp mode which is confused by this.
3803 # We need to recreate these files for each test, as the compiler may
3804 # overwrite some of them when testing with obscure command lines.
3805 # This happens at least with the AIX C compiler.
3807 for i in 1 2 3 4 5 6; do
3808 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3809 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3810 # Solaris 8's {/usr,}/bin/sh.
3811 touch sub/conftst$i.h
3813 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3817 # after this tag, mechanisms are not by side-effect, so they'll
3818 # only be used when explicitly requested
3819 if test "x$enable_dependency_tracking" = xyes; then
3827 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3828 # mode. It turns out that the SunPro C++ compiler does not properly
3829 # handle `-M -o', and we need to detect this.
3830 if depmode=$depmode \
3831 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3832 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3833 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3834 >/dev/null 2>conftest.err &&
3835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3836 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3838 # icc doesn't choke on unknown options, it will just issue warnings
3839 # or remarks (even with -Werror). So we grep stderr for any message
3840 # that says an option was ignored or not supported.
3841 # When given -MP, icc 7.0 and 7.1 complain thusly:
3842 # icc: Command line warning: ignoring option '-M'; no argument required
3843 # The diagnosis changed in icc 8.0:
3844 # icc: Command line remark: option '-MP' not supported
3845 if (grep 'ignoring option' conftest.err ||
3846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3847 am_cv_CC_dependencies_compiler_type=$depmode
3856 am_cv_CC_dependencies_compiler_type=none
3860 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3861 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3867 test "x$enable_dependency_tracking" != xno \
3868 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3870 am__fastdepCC_FALSE='#'
3872 am__fastdepCC_TRUE='#'
3873 am__fastdepCC_FALSE=
3879 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3880 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3881 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 ac_check_lib_save_LIBS=$LIBS
3885 LIBS="-lcposix $LIBS"
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3893 /* Override any GCC internal prototype to avoid an error.
3894 Use char because int might match the return type of a GCC
3895 builtin and then its argument prototype would still apply. */
3908 rm -f conftest.$ac_objext conftest$ac_exeext
3909 if { (ac_try="$ac_link"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_link") 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest$ac_exeext &&
3925 $as_test_x conftest$ac_exeext; then
3926 ac_cv_lib_cposix_strerror=yes
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 ac_cv_lib_cposix_strerror=no
3934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3935 conftest$ac_exeext conftest.$ac_ext
3936 LIBS=$ac_check_lib_save_LIBS
3938 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3939 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3940 if test $ac_cv_lib_cposix_strerror = yes; then
3941 LIBS="$LIBS -lcposix"
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 if test -n "$ac_tool_prefix"; then
3952 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3956 if test "${ac_cv_prog_CC+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 if test -n "$CC"; then
3960 ac_cv_prog_CC="$CC" # Let the user override the test.
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3969 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 if test -n "$CC"; then
3981 { echo "$as_me:$LINENO: result: $CC" >&5
3982 echo "${ECHO_T}$CC" >&6; }
3984 { echo "$as_me:$LINENO: result: no" >&5
3985 echo "${ECHO_T}no" >&6; }
3990 if test -z "$ac_cv_prog_CC"; then
3992 # Extract the first word of "gcc", so it can be a program name with args.
3993 set dummy gcc; ac_word=$2
3994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 if test -n "$ac_ct_CC"; then
4000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009 ac_cv_prog_ac_ct_CC="gcc"
4010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4020 if test -n "$ac_ct_CC"; then
4021 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4022 echo "${ECHO_T}$ac_ct_CC" >&6; }
4024 { echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6; }
4028 if test "x$ac_ct_CC" = x; then
4031 case $cross_compiling:$ac_tool_warned in
4033 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4034 whose name does not start with the host triplet. If you think this
4035 configuration is useful to you, please write to autoconf@gnu.org." >&5
4036 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4037 whose name does not start with the host triplet. If you think this
4038 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4039 ac_tool_warned=yes ;;
4047 if test -z "$CC"; then
4048 if test -n "$ac_tool_prefix"; then
4049 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4050 set dummy ${ac_tool_prefix}cc; ac_word=$2
4051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4053 if test "${ac_cv_prog_CC+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 if test -n "$CC"; then
4057 ac_cv_prog_CC="$CC" # Let the user override the test.
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 ac_cv_prog_CC="${ac_tool_prefix}cc"
4067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 if test -n "$CC"; then
4078 { echo "$as_me:$LINENO: result: $CC" >&5
4079 echo "${ECHO_T}$CC" >&6; }
4081 { echo "$as_me:$LINENO: result: no" >&5
4082 echo "${ECHO_T}no" >&6; }
4088 if test -z "$CC"; then
4089 # Extract the first word of "cc", so it can be a program name with args.
4090 set dummy cc; ac_word=$2
4091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4093 if test "${ac_cv_prog_CC+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4108 ac_prog_rejected=yes
4112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 if test $ac_prog_rejected = yes; then
4120 # We found a bogon in the path, so make sure we never use it.
4121 set dummy $ac_cv_prog_CC
4123 if test $# != 0; then
4124 # We chose a different compiler from the bogus one.
4125 # However, it has the same basename, so the bogon will be chosen
4126 # first if we set CC to just the basename; use the full file name.
4128 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4134 if test -n "$CC"; then
4135 { echo "$as_me:$LINENO: result: $CC" >&5
4136 echo "${ECHO_T}$CC" >&6; }
4138 { echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6; }
4144 if test -z "$CC"; then
4145 if test -n "$ac_tool_prefix"; then
4146 for ac_prog in cl.exe
4148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4152 if test "${ac_cv_prog_CC+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 if test -n "$CC"; then
4156 ac_cv_prog_CC="$CC" # Let the user override the test.
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 if test -n "$CC"; then
4177 { echo "$as_me:$LINENO: result: $CC" >&5
4178 echo "${ECHO_T}$CC" >&6; }
4180 { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4185 test -n "$CC" && break
4188 if test -z "$CC"; then
4190 for ac_prog in cl.exe
4192 # Extract the first word of "$ac_prog", so it can be a program name with args.
4193 set dummy $ac_prog; ac_word=$2
4194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 if test -n "$ac_ct_CC"; then
4200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209 ac_cv_prog_ac_ct_CC="$ac_prog"
4210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4220 if test -n "$ac_ct_CC"; then
4221 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4222 echo "${ECHO_T}$ac_ct_CC" >&6; }
4224 { echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6; }
4229 test -n "$ac_ct_CC" && break
4232 if test "x$ac_ct_CC" = x; then
4235 case $cross_compiling:$ac_tool_warned in
4237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4238 whose name does not start with the host triplet. If you think this
4239 configuration is useful to you, please write to autoconf@gnu.org." >&5
4240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4241 whose name does not start with the host triplet. If you think this
4242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4243 ac_tool_warned=yes ;;
4252 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4253 See \`config.log' for more details." >&5
4254 echo "$as_me: error: no acceptable C compiler found in \$PATH
4255 See \`config.log' for more details." >&2;}
4256 { (exit 1); exit 1; }; }
4258 # Provide some information about the compiler.
4259 echo "$as_me:$LINENO: checking for C compiler version" >&5
4260 ac_compiler=`set X $ac_compile; echo $2`
4261 { (ac_try="$ac_compiler --version >&5"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_compiler --version >&5") 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }
4271 { (ac_try="$ac_compiler -v >&5"
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_compiler -v >&5") 2>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }
4281 { (ac_try="$ac_compiler -V >&5"
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_compiler -V >&5") 2>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }
4292 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 cat >conftest.$ac_ext <<_ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4315 rm -f conftest.$ac_objext
4316 if { (ac_try="$ac_compile"
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_compile") 2>conftest.er1
4324 grep -v '^ *+' conftest.er1 >conftest.err
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && {
4329 test -z "$ac_c_werror_flag" ||
4330 test ! -s conftest.err
4331 } && test -s conftest.$ac_objext; then
4334 echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4344 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4345 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4346 GCC=`test $ac_compiler_gnu = yes && echo yes`
4347 ac_test_CFLAGS=${CFLAGS+set}
4348 ac_save_CFLAGS=$CFLAGS
4349 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4350 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4351 if test "${ac_cv_prog_cc_g+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 ac_save_c_werror_flag=$ac_c_werror_flag
4355 ac_c_werror_flag=yes
4358 cat >conftest.$ac_ext <<_ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } && {
4387 test -z "$ac_c_werror_flag" ||
4388 test ! -s conftest.err
4389 } && test -s conftest.$ac_objext; then
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4396 cat >conftest.$ac_ext <<_ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4411 rm -f conftest.$ac_objext
4412 if { (ac_try="$ac_compile"
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_compile") 2>conftest.er1
4420 grep -v '^ *+' conftest.er1 >conftest.err
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } && {
4425 test -z "$ac_c_werror_flag" ||
4426 test ! -s conftest.err
4427 } && test -s conftest.$ac_objext; then
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 ac_c_werror_flag=$ac_save_c_werror_flag
4435 cat >conftest.$ac_ext <<_ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4450 rm -f conftest.$ac_objext
4451 if { (ac_try="$ac_compile"
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_compile") 2>conftest.er1
4459 grep -v '^ *+' conftest.er1 >conftest.err
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } && {
4464 test -z "$ac_c_werror_flag" ||
4465 test ! -s conftest.err
4466 } && test -s conftest.$ac_objext; then
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 ac_c_werror_flag=$ac_save_c_werror_flag
4484 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4486 if test "$ac_test_CFLAGS" = set; then
4487 CFLAGS=$ac_save_CFLAGS
4488 elif test $ac_cv_prog_cc_g = yes; then
4489 if test "$GCC" = yes; then
4495 if test "$GCC" = yes; then
4501 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4502 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4503 if test "${ac_cv_prog_cc_c89+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 ac_cv_prog_cc_c89=no
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4516 #include <sys/types.h>
4517 #include <sys/stat.h>
4518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4519 struct buf { int x; };
4520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4521 static char *e (p, i)
4527 static char *f (char * (*g) (char **, int), char **p, ...)
4532 s = g (p, va_arg (v,int));
4537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4538 function prototypes and stuff, but not '\xHH' hex character constants.
4539 These don't provoke an error unfortunately, instead are silently treated
4540 as 'x'. The following induces an error, until -std is added to get
4541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4542 array size at least. It's necessary to write '\x00'==0 to get something
4543 that's true only with -std. */
4544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4547 inside strings and character constants. */
4549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4551 int test (int i, double x);
4552 struct s1 {int (*f) (int a);};
4553 struct s2 {int (*f) (double a);};
4554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4568 CC="$ac_save_CC $ac_arg"
4569 rm -f conftest.$ac_objext
4570 if { (ac_try="$ac_compile"
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_compile") 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } && {
4583 test -z "$ac_c_werror_flag" ||
4584 test ! -s conftest.err
4585 } && test -s conftest.$ac_objext; then
4586 ac_cv_prog_cc_c89=$ac_arg
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4594 rm -f core conftest.err conftest.$ac_objext
4595 test "x$ac_cv_prog_cc_c89" != "xno" && break
4597 rm -f conftest.$ac_ext
4602 case "x$ac_cv_prog_cc_c89" in
4604 { echo "$as_me:$LINENO: result: none needed" >&5
4605 echo "${ECHO_T}none needed" >&6; } ;;
4607 { echo "$as_me:$LINENO: result: unsupported" >&5
4608 echo "${ECHO_T}unsupported" >&6; } ;;
4610 CC="$CC $ac_cv_prog_cc_c89"
4611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4612 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4617 ac_cpp='$CPP $CPPFLAGS'
4618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 depcc="$CC" am_compiler_list=
4624 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4625 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4626 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4630 # We make a subdir and do the tests there. Otherwise we can end up
4631 # making bogus files that we don't know about and never remove. For
4632 # instance it was reported that on HP-UX the gcc test will end up
4633 # making a dummy file named `D' -- because `-MD' means `put the output
4636 # Copy depcomp to subdir because otherwise we won't find it if we're
4637 # using a relative directory.
4638 cp "$am_depcomp" conftest.dir
4640 # We will build objects and dependencies in a subdirectory because
4641 # it helps to detect inapplicable dependency modes. For instance
4642 # both Tru64's cc and ICC support -MD to output dependencies as a
4643 # side effect of compilation, but ICC will put the dependencies in
4644 # the current directory while Tru64 will put them in the object
4648 am_cv_CC_dependencies_compiler_type=none
4649 if test "$am_compiler_list" = ""; then
4650 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4652 for depmode in $am_compiler_list; do
4653 # Setup a source with many dependencies, because some compilers
4654 # like to wrap large dependency lists on column 80 (with \), and
4655 # we should not choose a depcomp mode which is confused by this.
4657 # We need to recreate these files for each test, as the compiler may
4658 # overwrite some of them when testing with obscure command lines.
4659 # This happens at least with the AIX C compiler.
4661 for i in 1 2 3 4 5 6; do
4662 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4663 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4664 # Solaris 8's {/usr,}/bin/sh.
4665 touch sub/conftst$i.h
4667 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4671 # after this tag, mechanisms are not by side-effect, so they'll
4672 # only be used when explicitly requested
4673 if test "x$enable_dependency_tracking" = xyes; then
4681 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4682 # mode. It turns out that the SunPro C++ compiler does not properly
4683 # handle `-M -o', and we need to detect this.
4684 if depmode=$depmode \
4685 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4686 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4687 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4688 >/dev/null 2>conftest.err &&
4689 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4690 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4691 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4692 # icc doesn't choke on unknown options, it will just issue warnings
4693 # or remarks (even with -Werror). So we grep stderr for any message
4694 # that says an option was ignored or not supported.
4695 # When given -MP, icc 7.0 and 7.1 complain thusly:
4696 # icc: Command line warning: ignoring option '-M'; no argument required
4697 # The diagnosis changed in icc 8.0:
4698 # icc: Command line remark: option '-MP' not supported
4699 if (grep 'ignoring option' conftest.err ||
4700 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4701 am_cv_CC_dependencies_compiler_type=$depmode
4710 am_cv_CC_dependencies_compiler_type=none
4714 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4715 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4716 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4721 test "x$enable_dependency_tracking" != xno \
4722 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4724 am__fastdepCC_FALSE='#'
4726 am__fastdepCC_TRUE='#'
4727 am__fastdepCC_FALSE=
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736 if test -n "$ac_tool_prefix"; then
4737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_prog_CC+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 if test -n "$CC"; then
4745 ac_cv_prog_CC="$CC" # Let the user override the test.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 if test -n "$CC"; then
4766 { echo "$as_me:$LINENO: result: $CC" >&5
4767 echo "${ECHO_T}$CC" >&6; }
4769 { echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6; }
4775 if test -z "$ac_cv_prog_CC"; then
4777 # Extract the first word of "gcc", so it can be a program name with args.
4778 set dummy gcc; ac_word=$2
4779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 if test -n "$ac_ct_CC"; then
4785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_ac_ct_CC="gcc"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4805 if test -n "$ac_ct_CC"; then
4806 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4807 echo "${ECHO_T}$ac_ct_CC" >&6; }
4809 { echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6; }
4813 if test "x$ac_ct_CC" = x; then
4816 case $cross_compiling:$ac_tool_warned in
4818 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4819 whose name does not start with the host triplet. If you think this
4820 configuration is useful to you, please write to autoconf@gnu.org." >&5
4821 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4822 whose name does not start with the host triplet. If you think this
4823 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4824 ac_tool_warned=yes ;;
4832 if test -z "$CC"; then
4833 if test -n "$ac_tool_prefix"; then
4834 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4835 set dummy ${ac_tool_prefix}cc; ac_word=$2
4836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4838 if test "${ac_cv_prog_CC+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 if test -n "$CC"; then
4842 ac_cv_prog_CC="$CC" # Let the user override the test.
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4851 ac_cv_prog_CC="${ac_tool_prefix}cc"
4852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 if test -n "$CC"; then
4863 { echo "$as_me:$LINENO: result: $CC" >&5
4864 echo "${ECHO_T}$CC" >&6; }
4866 { echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6; }
4873 if test -z "$CC"; then
4874 # Extract the first word of "cc", so it can be a program name with args.
4875 set dummy cc; ac_word=$2
4876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4878 if test "${ac_cv_prog_CC+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 if test -n "$CC"; then
4882 ac_cv_prog_CC="$CC" # Let the user override the test.
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4893 ac_prog_rejected=yes
4897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 if test $ac_prog_rejected = yes; then
4905 # We found a bogon in the path, so make sure we never use it.
4906 set dummy $ac_cv_prog_CC
4908 if test $# != 0; then
4909 # We chose a different compiler from the bogus one.
4910 # However, it has the same basename, so the bogon will be chosen
4911 # first if we set CC to just the basename; use the full file name.
4913 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4919 if test -n "$CC"; then
4920 { echo "$as_me:$LINENO: result: $CC" >&5
4921 echo "${ECHO_T}$CC" >&6; }
4923 { echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6; }
4929 if test -z "$CC"; then
4930 if test -n "$ac_tool_prefix"; then
4931 for ac_prog in cl.exe
4933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_CC+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test -n "$CC"; then
4941 ac_cv_prog_CC="$CC" # Let the user override the test.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 if test -n "$CC"; then
4962 { echo "$as_me:$LINENO: result: $CC" >&5
4963 echo "${ECHO_T}$CC" >&6; }
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4970 test -n "$CC" && break
4973 if test -z "$CC"; then
4975 for ac_prog in cl.exe
4977 # Extract the first word of "$ac_prog", so it can be a program name with args.
4978 set dummy $ac_prog; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 if test -n "$ac_ct_CC"; then
4985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994 ac_cv_prog_ac_ct_CC="$ac_prog"
4995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5005 if test -n "$ac_ct_CC"; then
5006 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5007 echo "${ECHO_T}$ac_ct_CC" >&6; }
5009 { echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6; }
5014 test -n "$ac_ct_CC" && break
5017 if test "x$ac_ct_CC" = x; then
5020 case $cross_compiling:$ac_tool_warned in
5022 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5023 whose name does not start with the host triplet. If you think this
5024 configuration is useful to you, please write to autoconf@gnu.org." >&5
5025 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5026 whose name does not start with the host triplet. If you think this
5027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5028 ac_tool_warned=yes ;;
5037 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5038 See \`config.log' for more details." >&5
5039 echo "$as_me: error: no acceptable C compiler found in \$PATH
5040 See \`config.log' for more details." >&2;}
5041 { (exit 1); exit 1; }; }
5043 # Provide some information about the compiler.
5044 echo "$as_me:$LINENO: checking for C compiler version" >&5
5045 ac_compiler=`set X $ac_compile; echo $2`
5046 { (ac_try="$ac_compiler --version >&5"
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_compiler --version >&5") 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }
5056 { (ac_try="$ac_compiler -v >&5"
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_compiler -v >&5") 2>&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }
5066 { (ac_try="$ac_compiler -V >&5"
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072 (eval "$ac_compiler -V >&5") 2>&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }
5077 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5078 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5079 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 cat >conftest.$ac_ext <<_ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5100 rm -f conftest.$ac_objext
5101 if { (ac_try="$ac_compile"
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_compile") 2>conftest.er1
5109 grep -v '^ *+' conftest.er1 >conftest.err
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } && {
5114 test -z "$ac_c_werror_flag" ||
5115 test ! -s conftest.err
5116 } && test -s conftest.$ac_objext; then
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5126 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5129 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5130 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5131 GCC=`test $ac_compiler_gnu = yes && echo yes`
5132 ac_test_CFLAGS=${CFLAGS+set}
5133 ac_save_CFLAGS=$CFLAGS
5134 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5135 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5136 if test "${ac_cv_prog_cc_g+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 ac_save_c_werror_flag=$ac_c_werror_flag
5140 ac_c_werror_flag=yes
5143 cat >conftest.$ac_ext <<_ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5158 rm -f conftest.$ac_objext
5159 if { (ac_try="$ac_compile"
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165 (eval "$ac_compile") 2>conftest.er1
5167 grep -v '^ *+' conftest.er1 >conftest.err
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } && {
5172 test -z "$ac_c_werror_flag" ||
5173 test ! -s conftest.err
5174 } && test -s conftest.$ac_objext; then
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5181 cat >conftest.$ac_ext <<_ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5196 rm -f conftest.$ac_objext
5197 if { (ac_try="$ac_compile"
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_compile") 2>conftest.er1
5205 grep -v '^ *+' conftest.er1 >conftest.err
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } && {
5210 test -z "$ac_c_werror_flag" ||
5211 test ! -s conftest.err
5212 } && test -s conftest.$ac_objext; then
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 ac_c_werror_flag=$ac_save_c_werror_flag
5220 cat >conftest.$ac_ext <<_ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5235 rm -f conftest.$ac_objext
5236 if { (ac_try="$ac_compile"
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_compile") 2>conftest.er1
5244 grep -v '^ *+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } && {
5249 test -z "$ac_c_werror_flag" ||
5250 test ! -s conftest.err
5251 } && test -s conftest.$ac_objext; then
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 ac_c_werror_flag=$ac_save_c_werror_flag
5269 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5270 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5271 if test "$ac_test_CFLAGS" = set; then
5272 CFLAGS=$ac_save_CFLAGS
5273 elif test $ac_cv_prog_cc_g = yes; then
5274 if test "$GCC" = yes; then
5280 if test "$GCC" = yes; then
5286 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5287 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5288 if test "${ac_cv_prog_cc_c89+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 ac_cv_prog_cc_c89=no
5293 cat >conftest.$ac_ext <<_ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5301 #include <sys/types.h>
5302 #include <sys/stat.h>
5303 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5304 struct buf { int x; };
5305 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5306 static char *e (p, i)
5312 static char *f (char * (*g) (char **, int), char **p, ...)
5317 s = g (p, va_arg (v,int));
5322 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5323 function prototypes and stuff, but not '\xHH' hex character constants.
5324 These don't provoke an error unfortunately, instead are silently treated
5325 as 'x'. The following induces an error, until -std is added to get
5326 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5327 array size at least. It's necessary to write '\x00'==0 to get something
5328 that's true only with -std. */
5329 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5331 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5332 inside strings and character constants. */
5334 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5336 int test (int i, double x);
5337 struct s1 {int (*f) (int a);};
5338 struct s2 {int (*f) (double a);};
5339 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5345 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5350 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5351 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5353 CC="$ac_save_CC $ac_arg"
5354 rm -f conftest.$ac_objext
5355 if { (ac_try="$ac_compile"
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5363 grep -v '^ *+' conftest.er1 >conftest.err
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && {
5368 test -z "$ac_c_werror_flag" ||
5369 test ! -s conftest.err
5370 } && test -s conftest.$ac_objext; then
5371 ac_cv_prog_cc_c89=$ac_arg
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5379 rm -f core conftest.err conftest.$ac_objext
5380 test "x$ac_cv_prog_cc_c89" != "xno" && break
5382 rm -f conftest.$ac_ext
5387 case "x$ac_cv_prog_cc_c89" in
5389 { echo "$as_me:$LINENO: result: none needed" >&5
5390 echo "${ECHO_T}none needed" >&6; } ;;
5392 { echo "$as_me:$LINENO: result: unsupported" >&5
5393 echo "${ECHO_T}unsupported" >&6; } ;;
5395 CC="$CC $ac_cv_prog_cc_c89"
5396 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5397 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5402 ac_cpp='$CPP $CPPFLAGS'
5403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407 depcc="$CC" am_compiler_list=
5409 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5410 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5411 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5415 # We make a subdir and do the tests there. Otherwise we can end up
5416 # making bogus files that we don't know about and never remove. For
5417 # instance it was reported that on HP-UX the gcc test will end up
5418 # making a dummy file named `D' -- because `-MD' means `put the output
5421 # Copy depcomp to subdir because otherwise we won't find it if we're
5422 # using a relative directory.
5423 cp "$am_depcomp" conftest.dir
5425 # We will build objects and dependencies in a subdirectory because
5426 # it helps to detect inapplicable dependency modes. For instance
5427 # both Tru64's cc and ICC support -MD to output dependencies as a
5428 # side effect of compilation, but ICC will put the dependencies in
5429 # the current directory while Tru64 will put them in the object
5433 am_cv_CC_dependencies_compiler_type=none
5434 if test "$am_compiler_list" = ""; then
5435 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5437 for depmode in $am_compiler_list; do
5438 # Setup a source with many dependencies, because some compilers
5439 # like to wrap large dependency lists on column 80 (with \), and
5440 # we should not choose a depcomp mode which is confused by this.
5442 # We need to recreate these files for each test, as the compiler may
5443 # overwrite some of them when testing with obscure command lines.
5444 # This happens at least with the AIX C compiler.
5446 for i in 1 2 3 4 5 6; do
5447 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5448 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5449 # Solaris 8's {/usr,}/bin/sh.
5450 touch sub/conftst$i.h
5452 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5456 # after this tag, mechanisms are not by side-effect, so they'll
5457 # only be used when explicitly requested
5458 if test "x$enable_dependency_tracking" = xyes; then
5466 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5467 # mode. It turns out that the SunPro C++ compiler does not properly
5468 # handle `-M -o', and we need to detect this.
5469 if depmode=$depmode \
5470 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5472 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5473 >/dev/null 2>conftest.err &&
5474 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5475 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5476 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5477 # icc doesn't choke on unknown options, it will just issue warnings
5478 # or remarks (even with -Werror). So we grep stderr for any message
5479 # that says an option was ignored or not supported.
5480 # When given -MP, icc 7.0 and 7.1 complain thusly:
5481 # icc: Command line warning: ignoring option '-M'; no argument required
5482 # The diagnosis changed in icc 8.0:
5483 # icc: Command line remark: option '-MP' not supported
5484 if (grep 'ignoring option' conftest.err ||
5485 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5486 am_cv_CC_dependencies_compiler_type=$depmode
5495 am_cv_CC_dependencies_compiler_type=none
5499 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5500 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5501 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5506 test "x$enable_dependency_tracking" != xno \
5507 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5509 am__fastdepCC_FALSE='#'
5511 am__fastdepCC_TRUE='#'
5512 am__fastdepCC_FALSE=
5517 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5520 ac_cpp='$CPP $CPPFLAGS'
5521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5526 # On Suns, sometimes $CPP names a directory.
5527 if test -n "$CPP" && test -d "$CPP"; then
5530 if test -z "$CPP"; then
5531 if test "${ac_cv_prog_CPP+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 # Double quotes because CPP needs to be expanded
5535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5538 for ac_c_preproc_warn_flag in '' yes
5540 # Use a header file that comes with gcc, so configuring glibc
5541 # with a fresh cross-compiler works.
5542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5543 # <limits.h> exists even on freestanding compilers.
5544 # On the NeXT, cc -E runs the code through the compiler's parser,
5545 # not just through cpp. "Syntax error" is here to catch this case.
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5553 # include <limits.h>
5555 # include <assert.h>
5559 if { (ac_try="$ac_cpp conftest.$ac_ext"
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5567 grep -v '^ *+' conftest.er1 >conftest.err
5569 cat conftest.err >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } >/dev/null && {
5572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5573 test ! -s conftest.err
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 # Broken: fails on valid input.
5584 rm -f conftest.err conftest.$ac_ext
5586 # OK, works on sane cases. Now check whether nonexistent headers
5587 # can be detected and how.
5588 cat >conftest.$ac_ext <<_ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 #include <ac_nonexistent.h>
5596 if { (ac_try="$ac_cpp conftest.$ac_ext"
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null && {
5609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5610 test ! -s conftest.err
5612 # Broken: success on invalid input.
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5618 # Passes both tests.
5623 rm -f conftest.err conftest.$ac_ext
5626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5627 rm -f conftest.err conftest.$ac_ext
5628 if $ac_preproc_ok; then
5640 { echo "$as_me:$LINENO: result: $CPP" >&5
5641 echo "${ECHO_T}$CPP" >&6; }
5643 for ac_c_preproc_warn_flag in '' yes
5645 # Use a header file that comes with gcc, so configuring glibc
5646 # with a fresh cross-compiler works.
5647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5648 # <limits.h> exists even on freestanding compilers.
5649 # On the NeXT, cc -E runs the code through the compiler's parser,
5650 # not just through cpp. "Syntax error" is here to catch this case.
5651 cat >conftest.$ac_ext <<_ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5658 # include <limits.h>
5660 # include <assert.h>
5664 if { (ac_try="$ac_cpp conftest.$ac_ext"
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5672 grep -v '^ *+' conftest.er1 >conftest.err
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } >/dev/null && {
5677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5678 test ! -s conftest.err
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 # Broken: fails on valid input.
5689 rm -f conftest.err conftest.$ac_ext
5691 # OK, works on sane cases. Now check whether nonexistent headers
5692 # can be detected and how.
5693 cat >conftest.$ac_ext <<_ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 #include <ac_nonexistent.h>
5701 if { (ac_try="$ac_cpp conftest.$ac_ext"
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5709 grep -v '^ *+' conftest.er1 >conftest.err
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } >/dev/null && {
5714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5715 test ! -s conftest.err
5717 # Broken: success on invalid input.
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5723 # Passes both tests.
5728 rm -f conftest.err conftest.$ac_ext
5731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5732 rm -f conftest.err conftest.$ac_ext
5733 if $ac_preproc_ok; then
5736 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5737 See \`config.log' for more details." >&5
5738 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5739 See \`config.log' for more details." >&2;}
5740 { (exit 1); exit 1; }; }
5744 ac_cpp='$CPP $CPPFLAGS'
5745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5751 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5753 if test -z "$CC_FOR_BUILD"; then
5754 if test "$#" = yes; then
5755 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5756 See \`config.log' for more details." >&5
5757 echo "$as_me: error: cannot run test program while cross compiling
5758 See \`config.log' for more details." >&2;}
5759 { (exit 1); exit 1; }; }
5761 cat >conftest.$ac_ext <<_ACEOF
5762 int main(){return 0;}
5764 rm -f conftest$ac_exeext
5765 if { (ac_try="$ac_link"
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_link") 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5775 { (case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_try") 2>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5786 echo "$as_me: program exited with status $ac_status" >&5
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5799 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5800 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5801 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5803 if test -n "$ac_build_tool_prefix"; then
5804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5805 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 if test -n "$CC_FOR_BUILD"; then
5812 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5832 if test -n "$CC_FOR_BUILD"; then
5833 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5834 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5836 { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5842 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5843 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5844 # Extract the first word of "gcc", so it can be a program name with args.
5845 set dummy gcc; ac_word=$2
5846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5848 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 if test -n "$ac_ct_CC_FOR_BUILD"; then
5852 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5872 if test -n "$ac_ct_CC_FOR_BUILD"; then
5873 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5874 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5876 { echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6; }
5880 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5883 case $#:$ac_tool_warned in
5885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5886 whose name does not start with the build triplet. If you think this
5887 configuration is useful to you, please write to autoconf@gnu.org." >&5
5888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5889 whose name does not start with the build triplet. If you think this
5890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5891 ac_tool_warned=yes ;;
5893 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5896 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5899 if test -z "$CC_FOR_BUILD"; then
5900 if test -n "$ac_build_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5902 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 if test -n "$CC_FOR_BUILD"; then
5909 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5929 if test -n "$CC_FOR_BUILD"; then
5930 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5931 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5933 { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5940 if test -z "$CC_FOR_BUILD"; then
5941 # Extract the first word of "cc", so it can be a program name with args.
5942 set dummy cc; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 if test -n "$CC_FOR_BUILD"; then
5949 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5960 ac_prog_rejected=yes
5963 ac_cv_prog_CC_FOR_BUILD="cc"
5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 if test $ac_prog_rejected = yes; then
5972 # We found a bogon in the path, so make sure we never use it.
5973 set dummy $ac_cv_prog_CC_FOR_BUILD
5975 if test $# != 0; then
5976 # We chose a different compiler from the bogus one.
5977 # However, it has the same basename, so the bogon will be chosen
5978 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5980 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5985 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5986 if test -n "$CC_FOR_BUILD"; then
5987 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5988 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5990 { echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6; }
5996 if test -z "$CC_FOR_BUILD"; then
5997 if test -n "$ac_build_tool_prefix"; then
5998 for ac_prog in cl.exe
6000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6001 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 if test -n "$CC_FOR_BUILD"; then
6008 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6028 if test -n "$CC_FOR_BUILD"; then
6029 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
6030 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
6032 { echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6; }
6037 test -n "$CC_FOR_BUILD" && break
6040 if test -z "$CC_FOR_BUILD"; then
6041 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6042 for ac_prog in cl.exe
6044 # Extract the first word of "$ac_prog", so it can be a program name with args.
6045 set dummy $ac_prog; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 if test -n "$ac_ct_CC_FOR_BUILD"; then
6052 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6061 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
6062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6072 if test -n "$ac_ct_CC_FOR_BUILD"; then
6073 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
6074 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
6076 { echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6; }
6081 test -n "$ac_ct_CC_FOR_BUILD" && break
6084 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6087 case $#:$ac_tool_warned in
6089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6090 whose name does not start with the build triplet. If you think this
6091 configuration is useful to you, please write to autoconf@gnu.org." >&5
6092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6093 whose name does not start with the build triplet. If you think this
6094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6095 ac_tool_warned=yes ;;
6097 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6104 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6105 See \`config.log' for more details." >&5
6106 echo "$as_me: error: no acceptable C compiler found in \$PATH
6107 See \`config.log' for more details." >&2;}
6108 { (exit 1); exit 1; }; }
6110 # Provide some information about the compiler.
6111 echo "$as_me:$LINENO: checking for C compiler version" >&5
6112 ac_compiler=`set X $ac_build_compile; echo $2`
6113 { (ac_try="$ac_compiler --version >&5"
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_compiler --version >&5") 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }
6123 { (ac_try="$ac_compiler -v >&5"
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_compiler -v >&5") 2>&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }
6133 { (ac_try="$ac_compiler -V >&5"
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_compiler -V >&5") 2>&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }
6144 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6145 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6146 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6167 rm -f conftest.$ac_build_objext
6168 if { (ac_try="$ac_build_compile"
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_build_compile") 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_c_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_build_objext; then
6184 ac_build_compiler_gnu=yes
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 ac_build_compiler_gnu=no
6192 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6193 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
6196 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6197 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6198 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
6199 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
6200 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
6201 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
6202 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
6203 if test "${ac_cv_build_prog_cc_g+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 ac_save_c_werror_flag=$ac_c_werror_flag
6207 ac_c_werror_flag=yes
6208 ac_cv_build_prog_cc_g=no
6209 CFLAGS_FOR_BUILD="-g"
6210 cat >conftest.$ac_ext <<_ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6225 rm -f conftest.$ac_build_objext
6226 if { (ac_try="$ac_build_compile"
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232 (eval "$ac_build_compile") 2>conftest.er1
6234 grep -v '^ *+' conftest.er1 >conftest.err
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } && {
6239 test -z "$ac_c_werror_flag" ||
6240 test ! -s conftest.err
6241 } && test -s conftest.$ac_build_objext; then
6242 ac_cv_build_prog_cc_g=yes
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6248 cat >conftest.$ac_ext <<_ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6263 rm -f conftest.$ac_build_objext
6264 if { (ac_try="$ac_build_compile"
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_build_compile") 2>conftest.er1
6272 grep -v '^ *+' conftest.er1 >conftest.err
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } && {
6277 test -z "$ac_c_werror_flag" ||
6278 test ! -s conftest.err
6279 } && test -s conftest.$ac_build_objext; then
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6285 ac_c_werror_flag=$ac_save_c_werror_flag
6286 CFLAGS_FOR_BUILD="-g"
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6302 rm -f conftest.$ac_build_objext
6303 if { (ac_try="$ac_build_compile"
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_build_compile") 2>conftest.er1
6311 grep -v '^ *+' conftest.er1 >conftest.err
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } && {
6316 test -z "$ac_c_werror_flag" ||
6317 test ! -s conftest.err
6318 } && test -s conftest.$ac_build_objext; then
6319 ac_cv_build_prog_cc_g=yes
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6327 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6330 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6333 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6334 ac_c_werror_flag=$ac_save_c_werror_flag
6336 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6337 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6338 if test "$ac_test_CFLAGS" = set; then
6339 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6340 elif test $ac_cv_build_prog_cc_g = yes; then
6341 if test "$GCC" = yes; then
6342 CFLAGS_FOR_BUILD="-g -O2"
6344 CFLAGS_FOR_BUILD="-g"
6347 if test "$GCC" = yes; then
6348 CFLAGS_FOR_BUILD="-O2"
6353 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6354 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6355 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 ac_cv_build_prog_cc_stdc=no
6359 ac_save_CC=$CC_FOR_BUILD
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6368 #include <sys/types.h>
6369 #include <sys/stat.h>
6370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6371 struct buf { int x; };
6372 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6373 static char *e (p, i)
6379 static char *f (char * (*g) (char **, int), char **p, ...)
6384 s = g (p, va_arg (v,int));
6389 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6390 function prototypes and stuff, but not '\xHH' hex character constants.
6391 These don't provoke an error unfortunately, instead are silently treated
6392 as 'x'. The following induces an error, until -std is added to get
6393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6394 array size at least. It's necessary to write '\x00'==0 to get something
6395 that's true only with -std. */
6396 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6398 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6399 inside strings and character constants. */
6401 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6403 int test (int i, double x);
6404 struct s1 {int (*f) (int a);};
6405 struct s2 {int (*f) (double a);};
6406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6412 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6417 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6420 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6421 rm -f conftest.$ac_build_objext
6422 if { (ac_try="$ac_build_compile"
6424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6425 *) ac_try_echo=$ac_try;;
6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428 (eval "$ac_build_compile") 2>conftest.er1
6430 grep -v '^ *+' conftest.er1 >conftest.err
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && {
6435 test -z "$ac_c_werror_flag" ||
6436 test ! -s conftest.err
6437 } && test -s conftest.$ac_build_objext; then
6438 ac_cv_build_prog_cc_stdc=$ac_arg
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6446 rm -f core conftest.err conftest.$ac_build_objext
6447 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6449 rm -f conftest.$ac_ext
6450 CC_FOR_BUILD=$ac_save_CC
6454 case "x$ac_cv_build_prog_cc_stdc" in
6456 { echo "$as_me:$LINENO: result: none needed" >&5
6457 echo "${ECHO_T}none needed" >&6; } ;;
6459 { echo "$as_me:$LINENO: result: unsupported" >&5
6460 echo "${ECHO_T}unsupported" >&6; } ;;
6462 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6463 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6464 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6469 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6470 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6471 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6472 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6474 depcc="$CC_FOR_BUILD" am_compiler_list=
6476 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6477 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6478 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6482 # We make a subdir and do the tests there. Otherwise we can end up
6483 # making bogus files that we don't know about and never remove. For
6484 # instance it was reported that on HP-UX the gcc test will end up
6485 # making a dummy file named `D' -- because `-MD' means `put the output
6488 # Copy depcomp to subdir because otherwise we won't find it if we're
6489 # using a relative directory.
6490 cp "$am_depcomp" conftest.dir
6492 # We will build objects and dependencies in a subdirectory because
6493 # it helps to detect inapplicable dependency modes. For instance
6494 # both Tru64's cc and ICC support -MD to output dependencies as a
6495 # side effect of compilation, but ICC will put the dependencies in
6496 # the current directory while Tru64 will put them in the object
6500 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6501 if test "$am_compiler_list" = ""; then
6502 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6504 for depmode in $am_compiler_list; do
6505 # Setup a source with many dependencies, because some compilers
6506 # like to wrap large dependency lists on column 80 (with \), and
6507 # we should not choose a depcomp mode which is confused by this.
6509 # We need to recreate these files for each test, as the compiler may
6510 # overwrite some of them when testing with obscure command lines.
6511 # This happens at least with the AIX C compiler.
6513 for i in 1 2 3 4 5 6; do
6514 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6515 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6516 # Solaris 8's {/usr,}/bin/sh.
6517 touch sub/conftst$i.h
6519 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6523 # after this tag, mechanisms are not by side-effect, so they'll
6524 # only be used when explicitly requested
6525 if test "x$enable_dependency_tracking" = xyes; then
6533 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6534 # mode. It turns out that the SunPro C++ compiler does not properly
6535 # handle `-M -o', and we need to detect this.
6536 if depmode=$depmode \
6537 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6539 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6540 >/dev/null 2>conftest.err &&
6541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6542 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6544 # icc doesn't choke on unknown options, it will just issue warnings
6545 # or remarks (even with -Werror). So we grep stderr for any message
6546 # that says an option was ignored or not supported.
6547 # When given -MP, icc 7.0 and 7.1 complain thusly:
6548 # icc: Command line warning: ignoring option '-M'; no argument required
6549 # The diagnosis changed in icc 8.0:
6550 # icc: Command line remark: option '-MP' not supported
6551 if (grep 'ignoring option' conftest.err ||
6552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6553 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6562 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6566 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6567 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6568 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6573 test "x$enable_dependency_tracking" != xno \
6574 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6575 am__fastdepCC_FOR_BUILD_TRUE=
6576 am__fastdepCC_FOR_BUILD_FALSE='#'
6578 am__fastdepCC_FOR_BUILD_TRUE='#'
6579 am__fastdepCC_FOR_BUILD_FALSE=
6583 case $ac_cv_build_prog_cc_stdc in
6584 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6585 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6586 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6587 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_cv_build_prog_cc_stdc=no
6591 ac_save_CC=$CC_FOR_BUILD
6592 cat >conftest.$ac_ext <<_ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6599 #include <stdbool.h>
6604 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6605 #define debug(...) fprintf (stderr, __VA_ARGS__)
6606 #define showlist(...) puts (#__VA_ARGS__)
6607 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6609 test_varargs_macros (void)
6614 debug ("X = %d\n", x);
6615 showlist (The first, second, and third items.);
6616 report (x>y, "x is %d but y is %d", x, y);
6619 // Check long long types.
6620 #define BIG64 18446744073709551615ull
6621 #define BIG32 4294967295ul
6622 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6624 your preprocessor is broken;
6628 your preprocessor is broken;
6630 static long long int bignum = -9223372036854775807LL;
6631 static unsigned long long int ubignum = BIG64;
6633 struct incomplete_array
6641 const wchar_t *name;
6645 typedef const char *ccp;
6648 test_restrict (ccp restrict text)
6650 // See if C++-style comments work.
6651 // Iterate through items via the restricted pointer.
6652 // Also check for declarations in for loops.
6653 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6658 // Check varargs and va_copy.
6660 test_varargs (const char *format, ...)
6663 va_start (args, format);
6665 va_copy (args_copy, args);
6676 str = va_arg (args_copy, const char *);
6679 number = va_arg (args_copy, int);
6682 fnumber = va_arg (args_copy, double);
6697 _Bool success = false;
6700 if (test_restrict ("String literal") == 0)
6702 char *restrict newvar = "Another string";
6705 test_varargs ("s, d' f .", "string", 65, 34.234);
6706 test_varargs_macros ();
6708 // Check flexible array members.
6709 struct incomplete_array *ia =
6710 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6712 for (int i = 0; i < ia->datasize; ++i)
6713 ia->data[i] = i * 1.234;
6715 // Check named initializers.
6716 struct named_init ni = {
6718 .name = L"Test wide string",
6719 .average = 543.34343,
6724 int dynamic_array[ni.number];
6725 dynamic_array[ni.number - 1] = 543;
6727 // work around unused variable warnings
6728 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6729 || dynamic_array[ni.number - 1] != 543);
6735 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6737 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6738 rm -f conftest.$ac_build_objext
6739 if { (ac_try="$ac_build_compile"
6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742 *) ac_try_echo=$ac_try;;
6744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6745 (eval "$ac_build_compile") 2>conftest.er1
6747 grep -v '^ *+' conftest.er1 >conftest.err
6749 cat conftest.err >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } && {
6752 test -z "$ac_c_werror_flag" ||
6753 test ! -s conftest.err
6754 } && test -s conftest.$ac_build_objext; then
6755 ac_cv_build_prog_cc_stdc=$ac_arg
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6763 rm -f core conftest.err conftest.$ac_build_objext
6764 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6766 rm -f conftest.$ac_ext
6767 CC_FOR_BUILD=$ac_save_CC
6771 case "x$ac_cv_build_prog_cc_stdc" in
6773 { echo "$as_me:$LINENO: result: none needed" >&5
6774 echo "${ECHO_T}none needed" >&6; } ;;
6776 { echo "$as_me:$LINENO: result: unsupported" >&5
6777 echo "${ECHO_T}unsupported" >&6; } ;;
6779 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6780 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6781 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6783 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6784 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6786 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6787 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6788 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 ac_cv_build_prog_cc_stdc=no
6792 ac_save_CC=$CC_FOR_BUILD
6793 cat >conftest.$ac_ext <<_ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6801 #include <sys/types.h>
6802 #include <sys/stat.h>
6803 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6804 struct buf { int x; };
6805 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6806 static char *e (p, i)
6812 static char *f (char * (*g) (char **, int), char **p, ...)
6817 s = g (p, va_arg (v,int));
6822 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6823 function prototypes and stuff, but not '\xHH' hex character constants.
6824 These don't provoke an error unfortunately, instead are silently treated
6825 as 'x'. The following induces an error, until -std is added to get
6826 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6827 array size at least. It's necessary to write '\x00'==0 to get something
6828 that's true only with -std. */
6829 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6831 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6832 inside strings and character constants. */
6834 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6836 int test (int i, double x);
6837 struct s1 {int (*f) (int a);};
6838 struct s2 {int (*f) (double a);};
6839 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6845 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6850 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6851 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6853 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6854 rm -f conftest.$ac_build_objext
6855 if { (ac_try="$ac_build_compile"
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858 *) ac_try_echo=$ac_try;;
6860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6861 (eval "$ac_build_compile") 2>conftest.er1
6863 grep -v '^ *+' conftest.er1 >conftest.err
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } && {
6868 test -z "$ac_c_werror_flag" ||
6869 test ! -s conftest.err
6870 } && test -s conftest.$ac_build_objext; then
6871 ac_cv_build_prog_cc_stdc=$ac_arg
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6879 rm -f core conftest.err conftest.$ac_build_objext
6880 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6882 rm -f conftest.$ac_ext
6883 CC_FOR_BUILD=$ac_save_CC
6887 case "x$ac_cv_build_prog_cc_stdc" in
6889 { echo "$as_me:$LINENO: result: none needed" >&5
6890 echo "${ECHO_T}none needed" >&6; } ;;
6892 { echo "$as_me:$LINENO: result: unsupported" >&5
6893 echo "${ECHO_T}unsupported" >&6; } ;;
6895 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6896 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6897 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6899 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6900 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6902 ac_cv_build_prog_cc_stdc=no
6910 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6911 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6912 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 case $ac_cv_build_prog_cc_stdc in
6917 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6918 echo "${ECHO_T}unsupported" >&6; } ;;
6919 '') { echo "$as_me:$LINENO: result: none needed" >&5
6920 echo "${ECHO_T}none needed" >&6; } ;;
6921 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6922 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6927 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6928 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6929 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6931 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6932 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6933 # On Suns, sometimes $CPP names a directory.
6934 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6937 if test -z "$CPP_FOR_BUILD"; then
6938 if test "${ac_cv_build_prog_CPP+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 # Double quotes because CPP needs to be expanded
6942 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6945 for ac_c_preproc_warn_flag in '' yes
6947 # Use a header file that comes with gcc, so configuring glibc
6948 # with a fresh cross-compiler works.
6949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6950 # <limits.h> exists even on freestanding compilers.
6951 # On the NeXT, cc -E runs the code through the compiler's parser,
6952 # not just through cpp. "Syntax error" is here to catch this case.
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6960 # include <limits.h>
6962 # include <assert.h>
6966 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6969 *) ac_try_echo=$ac_try;;
6971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6972 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6974 grep -v '^ *+' conftest.er1 >conftest.err
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } >/dev/null && {
6979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6980 test ! -s conftest.err
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 # Broken: fails on valid input.
6991 rm -f conftest.err conftest.$ac_ext
6993 # OK, works on sane cases. Now check whether nonexistent headers
6994 # can be detected and how.
6995 cat >conftest.$ac_ext <<_ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 #include <ac_nonexistent.h>
7003 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7011 grep -v '^ *+' conftest.er1 >conftest.err
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } >/dev/null && {
7016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7017 test ! -s conftest.err
7019 # Broken: success on invalid input.
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 # Passes both tests.
7030 rm -f conftest.err conftest.$ac_ext
7033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7034 rm -f conftest.err conftest.$ac_ext
7035 if $ac_preproc_ok; then
7040 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7043 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
7045 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7047 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
7048 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
7050 for ac_c_preproc_warn_flag in '' yes
7052 # Use a header file that comes with gcc, so configuring glibc
7053 # with a fresh cross-compiler works.
7054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7055 # <limits.h> exists even on freestanding compilers.
7056 # On the NeXT, cc -E runs the code through the compiler's parser,
7057 # not just through cpp. "Syntax error" is here to catch this case.
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7065 # include <limits.h>
7067 # include <assert.h>
7071 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7079 grep -v '^ *+' conftest.er1 >conftest.err
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } >/dev/null && {
7084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7085 test ! -s conftest.err
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 # Broken: fails on valid input.
7096 rm -f conftest.err conftest.$ac_ext
7098 # OK, works on sane cases. Now check whether nonexistent headers
7099 # can be detected and how.
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 #include <ac_nonexistent.h>
7108 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7116 grep -v '^ *+' conftest.er1 >conftest.err
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } >/dev/null && {
7121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7124 # Broken: success on invalid input.
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7130 # Passes both tests.
7135 rm -f conftest.err conftest.$ac_ext
7138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7139 rm -f conftest.err conftest.$ac_ext
7140 if $ac_preproc_ok; then
7143 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7144 See \`config.log' for more details." >&5
7145 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7146 See \`config.log' for more details." >&2;}
7147 { (exit 1); exit 1; }; }
7151 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7152 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7153 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
7159 BUILD_EXEEXT=$ac_build_exeext
7160 BUILD_OBJEXT=$ac_build_objext
7163 ac_cpp='$OBJCPP $CPPFLAGS'
7164 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7165 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7166 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7167 if test -n "$ac_tool_prefix"; then
7168 for ac_prog in gcc objcc objc cc CC
7170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_prog_OBJC+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 if test -n "$OBJC"; then
7178 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7187 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 OBJC=$ac_cv_prog_OBJC
7198 if test -n "$OBJC"; then
7199 { echo "$as_me:$LINENO: result: $OBJC" >&5
7200 echo "${ECHO_T}$OBJC" >&6; }
7202 { echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6; }
7207 test -n "$OBJC" && break
7210 if test -z "$OBJC"; then
7212 for ac_prog in gcc objcc objc cc CC
7214 # Extract the first word of "$ac_prog", so it can be a program name with args.
7215 set dummy $ac_prog; ac_word=$2
7216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 if test -n "$ac_ct_OBJC"; then
7222 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7242 if test -n "$ac_ct_OBJC"; then
7243 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7244 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7251 test -n "$ac_ct_OBJC" && break
7254 if test "x$ac_ct_OBJC" = x; then
7257 case $cross_compiling:$ac_tool_warned in
7259 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7260 whose name does not start with the host triplet. If you think this
7261 configuration is useful to you, please write to autoconf@gnu.org." >&5
7262 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7263 whose name does not start with the host triplet. If you think this
7264 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7265 ac_tool_warned=yes ;;
7271 # Provide some information about the compiler.
7272 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7273 ac_compiler=`set X $ac_compile; echo $2`
7274 { (ac_try="$ac_compiler --version >&5"
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280 (eval "$ac_compiler --version >&5") 2>&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }
7284 { (ac_try="$ac_compiler -v >&5"
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290 (eval "$ac_compiler -v >&5") 2>&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }
7294 { (ac_try="$ac_compiler -V >&5"
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_compiler -V >&5") 2>&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }
7305 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7306 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
7307 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 cat >conftest.$ac_ext <<_ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7328 rm -f conftest.$ac_objext
7329 if { (ac_try="$ac_compile"
7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335 (eval "$ac_compile") 2>conftest.er1
7337 grep -v '^ *+' conftest.er1 >conftest.err
7339 cat conftest.err >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } && {
7342 test -z "$ac_objc_werror_flag" ||
7343 test ! -s conftest.err
7344 } && test -s conftest.$ac_objext; then
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7357 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7358 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
7359 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
7360 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7361 ac_save_OBJCFLAGS=$OBJCFLAGS
7362 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7363 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
7364 if test "${ac_cv_prog_objc_g+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 ac_save_objc_werror_flag=$ac_objc_werror_flag
7368 ac_objc_werror_flag=yes
7369 ac_cv_prog_objc_g=no
7371 cat >conftest.$ac_ext <<_ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7386 rm -f conftest.$ac_objext
7387 if { (ac_try="$ac_compile"
7389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7390 *) ac_try_echo=$ac_try;;
7392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7393 (eval "$ac_compile") 2>conftest.er1
7395 grep -v '^ *+' conftest.er1 >conftest.err
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } && {
7400 test -z "$ac_objc_werror_flag" ||
7401 test ! -s conftest.err
7402 } && test -s conftest.$ac_objext; then
7403 ac_cv_prog_objc_g=yes
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7409 cat >conftest.$ac_ext <<_ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7424 rm -f conftest.$ac_objext
7425 if { (ac_try="$ac_compile"
7427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7428 *) ac_try_echo=$ac_try;;
7430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7431 (eval "$ac_compile") 2>conftest.er1
7433 grep -v '^ *+' conftest.er1 >conftest.err
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } && {
7438 test -z "$ac_objc_werror_flag" ||
7439 test ! -s conftest.err
7440 } && test -s conftest.$ac_objext; then
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7446 ac_objc_werror_flag=$ac_save_objc_werror_flag
7448 cat >conftest.$ac_ext <<_ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7463 rm -f conftest.$ac_objext
7464 if { (ac_try="$ac_compile"
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470 (eval "$ac_compile") 2>conftest.er1
7472 grep -v '^ *+' conftest.er1 >conftest.err
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } && {
7477 test -z "$ac_objc_werror_flag" ||
7478 test ! -s conftest.err
7479 } && test -s conftest.$ac_objext; then
7480 ac_cv_prog_objc_g=yes
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 ac_objc_werror_flag=$ac_save_objc_werror_flag
7497 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7498 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
7499 if test "$ac_test_OBJCFLAGS" = set; then
7500 OBJCFLAGS=$ac_save_OBJCFLAGS
7501 elif test $ac_cv_prog_objc_g = yes; then
7502 if test "$GOBJC" = yes; then
7508 if test "$GOBJC" = yes; then
7515 ac_cpp='$CPP $CPPFLAGS'
7516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7520 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7521 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7522 if test "${ac_cv_path_SED+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7526 for ac_i in 1 2 3 4 5 6 7; do
7527 ac_script="$ac_script$as_nl$ac_script"
7529 echo "$ac_script" | sed 99q >conftest.sed
7530 $as_unset ac_script || ac_script=
7531 # Extract the first word of "sed gsed" to use in msg output
7532 if test -z "$SED"; then
7533 set dummy sed gsed; ac_prog_name=$2
7534 if test "${ac_cv_path_SED+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 ac_path_SED_found=false
7538 # Loop through the user's path and test for each of PROGNAME-LIST
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir=.
7544 for ac_prog in sed gsed; do
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7547 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7548 # Check for GNU ac_path_SED and select it if it is found.
7549 # Check for GNU $ac_path_SED
7550 case `"$ac_path_SED" --version 2>&1` in
7552 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7555 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7558 cat "conftest.in" "conftest.in" >"conftest.tmp"
7559 mv "conftest.tmp" "conftest.in"
7560 cp "conftest.in" "conftest.nl"
7561 echo '' >> "conftest.nl"
7562 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7564 ac_count=`expr $ac_count + 1`
7565 if test $ac_count -gt ${ac_path_SED_max-0}; then
7566 # Best one so far, save it but keep looking for a better one
7567 ac_cv_path_SED="$ac_path_SED"
7568 ac_path_SED_max=$ac_count
7570 # 10*(2^10) chars as input seems more than enough
7571 test $ac_count -gt 10 && break
7573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7577 $ac_path_SED_found && break 3
7587 SED="$ac_cv_path_SED"
7588 if test -z "$SED"; then
7589 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
7590 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
7591 { (exit 1); exit 1; }; }
7599 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7600 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
7601 SED="$ac_cv_path_SED"
7604 # By default we simply use the C compiler to build assembly code.
7606 test "${CCAS+set}" = set || CCAS=$CC
7607 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7611 if test -n "$ac_tool_prefix"; then
7612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7616 if test "${ac_cv_prog_RANLIB+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 if test -n "$RANLIB"; then
7620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 RANLIB=$ac_cv_prog_RANLIB
7640 if test -n "$RANLIB"; then
7641 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7642 echo "${ECHO_T}$RANLIB" >&6; }
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7650 if test -z "$ac_cv_prog_RANLIB"; then
7651 ac_ct_RANLIB=$RANLIB
7652 # Extract the first word of "ranlib", so it can be a program name with args.
7653 set dummy ranlib; ac_word=$2
7654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7656 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 if test -n "$ac_ct_RANLIB"; then
7660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 ac_cv_prog_ac_ct_RANLIB="ranlib"
7670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7680 if test -n "$ac_ct_RANLIB"; then
7681 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7682 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7684 { echo "$as_me:$LINENO: result: no" >&5
7685 echo "${ECHO_T}no" >&6; }
7688 if test "x$ac_ct_RANLIB" = x; then
7691 case $cross_compiling:$ac_tool_warned in
7693 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7694 whose name does not start with the host triplet. If you think this
7695 configuration is useful to you, please write to autoconf@gnu.org." >&5
7696 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7697 whose name does not start with the host triplet. If you think this
7698 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7699 ac_tool_warned=yes ;;
7701 RANLIB=$ac_ct_RANLIB
7704 RANLIB="$ac_cv_prog_RANLIB"
7708 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7709 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7710 if test "${ac_cv_path_GREP+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 # Extract the first word of "grep ggrep" to use in msg output
7714 if test -z "$GREP"; then
7715 set dummy grep ggrep; ac_prog_name=$2
7716 if test "${ac_cv_path_GREP+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 ac_path_GREP_found=false
7720 # Loop through the user's path and test for each of PROGNAME-LIST
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7725 test -z "$as_dir" && as_dir=.
7726 for ac_prog in grep ggrep; do
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7729 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7730 # Check for GNU ac_path_GREP and select it if it is found.
7731 # Check for GNU $ac_path_GREP
7732 case `"$ac_path_GREP" --version 2>&1` in
7734 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7737 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7740 cat "conftest.in" "conftest.in" >"conftest.tmp"
7741 mv "conftest.tmp" "conftest.in"
7742 cp "conftest.in" "conftest.nl"
7743 echo 'GREP' >> "conftest.nl"
7744 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7746 ac_count=`expr $ac_count + 1`
7747 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7748 # Best one so far, save it but keep looking for a better one
7749 ac_cv_path_GREP="$ac_path_GREP"
7750 ac_path_GREP_max=$ac_count
7752 # 10*(2^10) chars as input seems more than enough
7753 test $ac_count -gt 10 && break
7755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7759 $ac_path_GREP_found && break 3
7769 GREP="$ac_cv_path_GREP"
7770 if test -z "$GREP"; then
7771 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7772 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7773 { (exit 1); exit 1; }; }
7777 ac_cv_path_GREP=$GREP
7782 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7783 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7784 GREP="$ac_cv_path_GREP"
7787 { echo "$as_me:$LINENO: checking for egrep" >&5
7788 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7789 if test "${ac_cv_path_EGREP+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7793 then ac_cv_path_EGREP="$GREP -E"
7795 # Extract the first word of "egrep" to use in msg output
7796 if test -z "$EGREP"; then
7797 set dummy egrep; ac_prog_name=$2
7798 if test "${ac_cv_path_EGREP+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 ac_path_EGREP_found=false
7802 # Loop through the user's path and test for each of PROGNAME-LIST
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7807 test -z "$as_dir" && as_dir=.
7808 for ac_prog in egrep; do
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7811 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7812 # Check for GNU ac_path_EGREP and select it if it is found.
7813 # Check for GNU $ac_path_EGREP
7814 case `"$ac_path_EGREP" --version 2>&1` in
7816 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7819 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7822 cat "conftest.in" "conftest.in" >"conftest.tmp"
7823 mv "conftest.tmp" "conftest.in"
7824 cp "conftest.in" "conftest.nl"
7825 echo 'EGREP' >> "conftest.nl"
7826 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7828 ac_count=`expr $ac_count + 1`
7829 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7830 # Best one so far, save it but keep looking for a better one
7831 ac_cv_path_EGREP="$ac_path_EGREP"
7832 ac_path_EGREP_max=$ac_count
7834 # 10*(2^10) chars as input seems more than enough
7835 test $ac_count -gt 10 && break
7837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7841 $ac_path_EGREP_found && break 3
7851 EGREP="$ac_cv_path_EGREP"
7852 if test -z "$EGREP"; then
7853 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7854 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7855 { (exit 1); exit 1; }; }
7859 ac_cv_path_EGREP=$EGREP
7865 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7866 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7867 EGREP="$ac_cv_path_EGREP"
7870 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7871 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7872 if test "${ac_cv_header_stdc+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 cat >conftest.$ac_ext <<_ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7894 rm -f conftest.$ac_objext
7895 if { (ac_try="$ac_compile"
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_compile") 2>conftest.er1
7903 grep -v '^ *+' conftest.er1 >conftest.err
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } && {
7908 test -z "$ac_c_werror_flag" ||
7909 test ! -s conftest.err
7910 } && test -s conftest.$ac_objext; then
7911 ac_cv_header_stdc=yes
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7916 ac_cv_header_stdc=no
7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921 if test $ac_cv_header_stdc = yes; then
7922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7923 cat >conftest.$ac_ext <<_ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7933 $EGREP "memchr" >/dev/null 2>&1; then
7936 ac_cv_header_stdc=no
7942 if test $ac_cv_header_stdc = yes; then
7943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7944 cat >conftest.$ac_ext <<_ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7954 $EGREP "free" >/dev/null 2>&1; then
7957 ac_cv_header_stdc=no
7963 if test $ac_cv_header_stdc = yes; then
7964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7965 if test "$cross_compiling" = yes; then
7968 cat >conftest.$ac_ext <<_ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7976 #if ((' ' & 0x0FF) == 0x020)
7977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7980 # define ISLOWER(c) \
7981 (('a' <= (c) && (c) <= 'i') \
7982 || ('j' <= (c) && (c) <= 'r') \
7983 || ('s' <= (c) && (c) <= 'z'))
7984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7992 for (i = 0; i < 256; i++)
7993 if (XOR (islower (i), ISLOWER (i))
7994 || toupper (i) != TOUPPER (i))
7999 rm -f conftest$ac_exeext
8000 if { (ac_try="$ac_link"
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_link") 2>&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8010 { (case "(($ac_try" in
8011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8012 *) ac_try_echo=$ac_try;;
8014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8015 (eval "$ac_try") 2>&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8021 echo "$as_me: program exited with status $ac_status" >&5
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8026 ac_cv_header_stdc=no
8028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8034 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8035 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8036 if test $ac_cv_header_stdc = yes; then
8038 cat >>confdefs.h <<\_ACEOF
8039 #define STDC_HEADERS 1
8044 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8054 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8055 inttypes.h stdint.h unistd.h
8057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 cat >conftest.$ac_ext <<_ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 $ac_includes_default
8071 #include <$ac_header>
8073 rm -f conftest.$ac_objext
8074 if { (ac_try="$ac_compile"
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080 (eval "$ac_compile") 2>conftest.er1
8082 grep -v '^ *+' conftest.er1 >conftest.err
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } && {
8087 test -z "$ac_c_werror_flag" ||
8088 test ! -s conftest.err
8089 } && test -s conftest.$ac_objext; then
8090 eval "$as_ac_Header=yes"
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8095 eval "$as_ac_Header=no"
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 ac_res=`eval echo '${'$as_ac_Header'}'`
8101 { echo "$as_me:$LINENO: result: $ac_res" >&5
8102 echo "${ECHO_T}$ac_res" >&6; }
8103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8104 cat >>confdefs.h <<_ACEOF
8105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8113 { echo "$as_me:$LINENO: checking for void *" >&5
8114 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8115 if test "${ac_cv_type_void_p+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 cat >conftest.$ac_ext <<_ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8124 $ac_includes_default
8125 typedef void * ac__type_new_;
8129 if ((ac__type_new_ *) 0)
8131 if (sizeof (ac__type_new_))
8137 rm -f conftest.$ac_objext
8138 if { (ac_try="$ac_compile"
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_compile") 2>conftest.er1
8146 grep -v '^ *+' conftest.er1 >conftest.err
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && {
8151 test -z "$ac_c_werror_flag" ||
8152 test ! -s conftest.err
8153 } && test -s conftest.$ac_objext; then
8154 ac_cv_type_void_p=yes
8156 echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8159 ac_cv_type_void_p=no
8162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8164 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8165 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8167 # The cast to long int works around a bug in the HP C Compiler
8168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8170 # This bug is HP SR number 8606223364.
8171 { echo "$as_me:$LINENO: checking size of void *" >&5
8172 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8173 if test "${ac_cv_sizeof_void_p+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 if test "$cross_compiling" = yes; then
8177 # Depending upon the size, compute the lo and hi bounds.
8178 cat >conftest.$ac_ext <<_ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8184 $ac_includes_default
8185 typedef void * ac__type_sizeof_;
8189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8196 rm -f conftest.$ac_objext
8197 if { (ac_try="$ac_compile"
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_compile") 2>conftest.er1
8205 grep -v '^ *+' conftest.er1 >conftest.err
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } && {
8210 test -z "$ac_c_werror_flag" ||
8211 test ! -s conftest.err
8212 } && test -s conftest.$ac_objext; then
8215 cat >conftest.$ac_ext <<_ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8221 $ac_includes_default
8222 typedef void * ac__type_sizeof_;
8226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8233 rm -f conftest.$ac_objext
8234 if { (ac_try="$ac_compile"
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_compile") 2>conftest.er1
8242 grep -v '^ *+' conftest.er1 >conftest.err
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest.$ac_objext; then
8250 ac_hi=$ac_mid; break
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8255 ac_lo=`expr $ac_mid + 1`
8256 if test $ac_lo -le $ac_mid; then
8260 ac_mid=`expr 2 '*' $ac_mid + 1`
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 $ac_includes_default
8276 typedef void * ac__type_sizeof_;
8280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8287 rm -f conftest.$ac_objext
8288 if { (ac_try="$ac_compile"
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_compile") 2>conftest.er1
8296 grep -v '^ *+' conftest.er1 >conftest.err
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && {
8301 test -z "$ac_c_werror_flag" ||
8302 test ! -s conftest.err
8303 } && test -s conftest.$ac_objext; then
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 $ac_includes_default
8313 typedef void * ac__type_sizeof_;
8317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8324 rm -f conftest.$ac_objext
8325 if { (ac_try="$ac_compile"
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_compile") 2>conftest.er1
8333 grep -v '^ *+' conftest.er1 >conftest.err
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } && {
8338 test -z "$ac_c_werror_flag" ||
8339 test ! -s conftest.err
8340 } && test -s conftest.$ac_objext; then
8341 ac_lo=$ac_mid; break
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8346 ac_hi=`expr '(' $ac_mid ')' - 1`
8347 if test $ac_mid -le $ac_hi; then
8351 ac_mid=`expr 2 '*' $ac_mid`
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367 # Binary search between lo and hi bounds.
8368 while test "x$ac_lo" != "x$ac_hi"; do
8369 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 $ac_includes_default
8377 typedef void * ac__type_sizeof_;
8381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest.$ac_objext; then
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 ac_lo=`expr '(' $ac_mid ')' + 1`
8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8417 '') if test "$ac_cv_type_void_p" = yes; then
8418 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8419 See \`config.log' for more details." >&5
8420 echo "$as_me: error: cannot compute sizeof (void *)
8421 See \`config.log' for more details." >&2;}
8422 { (exit 77); exit 77; }; }
8424 ac_cv_sizeof_void_p=0
8428 cat >conftest.$ac_ext <<_ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 $ac_includes_default
8435 typedef void * ac__type_sizeof_;
8436 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8437 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8444 FILE *f = fopen ("conftest.val", "w");
8447 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8449 long int i = longval ();
8450 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8452 fprintf (f, "%ld\n", i);
8456 unsigned long int i = ulongval ();
8457 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8459 fprintf (f, "%lu\n", i);
8461 return ferror (f) || fclose (f) != 0;
8467 rm -f conftest$ac_exeext
8468 if { (ac_try="$ac_link"
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_link") 2>&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8478 { (case "(($ac_try" in
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_try") 2>&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; }; then
8487 ac_cv_sizeof_void_p=`cat conftest.val`
8489 echo "$as_me: program exited with status $ac_status" >&5
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8494 if test "$ac_cv_type_void_p" = yes; then
8495 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8496 See \`config.log' for more details." >&5
8497 echo "$as_me: error: cannot compute sizeof (void *)
8498 See \`config.log' for more details." >&2;}
8499 { (exit 77); exit 77; }; }
8501 ac_cv_sizeof_void_p=0
8504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8508 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8509 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8513 cat >>confdefs.h <<_ACEOF
8514 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8518 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8519 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8520 if test "${ac_cv_header_stdc+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8542 rm -f conftest.$ac_objext
8543 if { (ac_try="$ac_compile"
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 (eval "$ac_compile") 2>conftest.er1
8551 grep -v '^ *+' conftest.er1 >conftest.err
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } && {
8556 test -z "$ac_c_werror_flag" ||
8557 test ! -s conftest.err
8558 } && test -s conftest.$ac_objext; then
8559 ac_cv_header_stdc=yes
8561 echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8564 ac_cv_header_stdc=no
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569 if test $ac_cv_header_stdc = yes; then
8570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8571 cat >conftest.$ac_ext <<_ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8581 $EGREP "memchr" >/dev/null 2>&1; then
8584 ac_cv_header_stdc=no
8590 if test $ac_cv_header_stdc = yes; then
8591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8592 cat >conftest.$ac_ext <<_ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8602 $EGREP "free" >/dev/null 2>&1; then
8605 ac_cv_header_stdc=no
8611 if test $ac_cv_header_stdc = yes; then
8612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8613 if test "$cross_compiling" = yes; then
8616 cat >conftest.$ac_ext <<_ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8624 #if ((' ' & 0x0FF) == 0x020)
8625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8628 # define ISLOWER(c) \
8629 (('a' <= (c) && (c) <= 'i') \
8630 || ('j' <= (c) && (c) <= 'r') \
8631 || ('s' <= (c) && (c) <= 'z'))
8632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8640 for (i = 0; i < 256; i++)
8641 if (XOR (islower (i), ISLOWER (i))
8642 || toupper (i) != TOUPPER (i))
8647 rm -f conftest$ac_exeext
8648 if { (ac_try="$ac_link"
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_link") 2>&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8658 { (case "(($ac_try" in
8659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660 *) ac_try_echo=$ac_try;;
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663 (eval "$ac_try") 2>&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8669 echo "$as_me: program exited with status $ac_status" >&5
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8674 ac_cv_header_stdc=no
8676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8682 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8683 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8684 if test $ac_cv_header_stdc = yes; then
8686 cat >>confdefs.h <<\_ACEOF
8687 #define STDC_HEADERS 1
8694 depcc="$OBJC" am_compiler_list='gcc3 gcc'
8696 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8697 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8698 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8702 # We make a subdir and do the tests there. Otherwise we can end up
8703 # making bogus files that we don't know about and never remove. For
8704 # instance it was reported that on HP-UX the gcc test will end up
8705 # making a dummy file named `D' -- because `-MD' means `put the output
8708 # Copy depcomp to subdir because otherwise we won't find it if we're
8709 # using a relative directory.
8710 cp "$am_depcomp" conftest.dir
8712 # We will build objects and dependencies in a subdirectory because
8713 # it helps to detect inapplicable dependency modes. For instance
8714 # both Tru64's cc and ICC support -MD to output dependencies as a
8715 # side effect of compilation, but ICC will put the dependencies in
8716 # the current directory while Tru64 will put them in the object
8720 am_cv_OBJC_dependencies_compiler_type=none
8721 if test "$am_compiler_list" = ""; then
8722 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8724 for depmode in $am_compiler_list; do
8725 # Setup a source with many dependencies, because some compilers
8726 # like to wrap large dependency lists on column 80 (with \), and
8727 # we should not choose a depcomp mode which is confused by this.
8729 # We need to recreate these files for each test, as the compiler may
8730 # overwrite some of them when testing with obscure command lines.
8731 # This happens at least with the AIX C compiler.
8733 for i in 1 2 3 4 5 6; do
8734 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8736 # Solaris 8's {/usr,}/bin/sh.
8737 touch sub/conftst$i.h
8739 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8743 # after this tag, mechanisms are not by side-effect, so they'll
8744 # only be used when explicitly requested
8745 if test "x$enable_dependency_tracking" = xyes; then
8753 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8754 # mode. It turns out that the SunPro C++ compiler does not properly
8755 # handle `-M -o', and we need to detect this.
8756 if depmode=$depmode \
8757 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8758 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8759 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8760 >/dev/null 2>conftest.err &&
8761 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8762 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8763 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8764 # icc doesn't choke on unknown options, it will just issue warnings
8765 # or remarks (even with -Werror). So we grep stderr for any message
8766 # that says an option was ignored or not supported.
8767 # When given -MP, icc 7.0 and 7.1 complain thusly:
8768 # icc: Command line warning: ignoring option '-M'; no argument required
8769 # The diagnosis changed in icc 8.0:
8770 # icc: Command line remark: option '-MP' not supported
8771 if (grep 'ignoring option' conftest.err ||
8772 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8773 am_cv_OBJC_dependencies_compiler_type=$depmode
8782 am_cv_OBJC_dependencies_compiler_type=none
8786 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
8787 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
8788 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
8793 test "x$enable_dependency_tracking" != xno \
8794 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
8795 am__fastdepOBJC_TRUE=
8796 am__fastdepOBJC_FALSE='#'
8798 am__fastdepOBJC_TRUE='#'
8799 am__fastdepOBJC_FALSE=
8804 # Extract the first word of "pod2man", so it can be a program name with args.
8805 set dummy pod2man; ac_word=$2
8806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8808 if test "${ac_cv_path_POD2MAN+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8823 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8834 POD2MAN=$ac_cv_path_POD2MAN
8835 if test -n "$POD2MAN"; then
8836 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8837 echo "${ECHO_T}$POD2MAN" >&6; }
8839 { echo "$as_me:$LINENO: result: no" >&5
8840 echo "${ECHO_T}no" >&6; }
8844 # Extract the first word of "pod2html", so it can be a program name with args.
8845 set dummy pod2html; ac_word=$2
8846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8848 if test "${ac_cv_path_POD2HTML+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860 test -z "$as_dir" && as_dir=.
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8863 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 POD2HTML=$ac_cv_path_POD2HTML
8875 if test -n "$POD2HTML"; then
8876 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8877 echo "${ECHO_T}$POD2HTML" >&6; }
8879 { echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6; }
8886 cat >>confdefs.h <<_ACEOF
8887 #define BUILD_SED_PROG "${SED}"
8891 cat >>confdefs.h <<_ACEOF
8892 #define BUILD_CPP_PROG "${CPP}"
8897 # Check whether --enable-strict-warn was given.
8898 if test "${enable_strict_warn+set}" = set; then
8899 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
8900 enable_strictwarn=yes
8904 # Check whether --enable-translator was given.
8905 if test "${enable_translator+set}" = set; then
8906 enableval=$enable_translator; true
8908 enable_translator=yes
8911 # Check whether --enable-optimized was given.
8912 if test "${enable_optimized+set}" = set; then
8913 enableval=$enable_optimized; true
8915 enable_optimized=yes
8918 # Check whether --enable-shared was given.
8919 if test "${enable_shared+set}" = set; then
8920 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
8925 # Check whether --enable-profiled was given.
8926 if test "${enable_profiled+set}" = set; then
8927 enableval=$enable_profiled; if test "$enableval" == "yes"; then
8928 enable_profiled=yes;
8932 # Check whether --enable-trace was given.
8933 if test "${enable_trace+set}" = set; then
8934 enableval=$enable_trace; if test "$enableval" == "yes"; then
8936 cat >>confdefs.h <<\_ACEOF
8937 #define ENABLE_TRACE_IO 1
8943 # Check whether --enable-watch was given.
8944 if test "${enable_watch+set}" = set; then
8945 enableval=$enable_watch; if test "$enableval" == "yes"; then
8947 cat >>confdefs.h <<\_ACEOF
8948 #define ENABLE_WATCH 1
8954 # Check whether --enable-sh4stats was given.
8955 if test "${enable_sh4stats+set}" = set; then
8956 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
8958 cat >>confdefs.h <<\_ACEOF
8959 #define ENABLE_SH4STATS 1
8966 # Check whether --with-osmesa was given.
8967 if test "${with_osmesa+set}" = set; then
8968 withval=$with_osmesa;
8974 # Check whether --with-gtk was given.
8975 if test "${with_gtk+set}" = set; then
8976 withval=$with_gtk; with_gtk=yes
8982 # Check whether --with-esd was given.
8983 if test "${with_esd+set}" = set; then
8988 # Check whether --with-pulse was given.
8989 if test "${with_pulse+set}" = set; then
8990 withval=$with_pulse;
8994 # Check whether --with-sdl was given.
8995 if test "${with_sdl+set}" = set; then
9001 if test "$ANDROID_BUILD" = "yes"; then
9003 EXTRA_OUTPUT_FILES="src/android/build.properties"
9004 LIBS="-lEGL -lGLESv2 $LIBS"
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_GLES2 1
9017 ac_cpp='$OBJCPP $CPPFLAGS'
9018 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9019 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9020 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9021 if test -n "$ac_tool_prefix"; then
9022 for ac_prog in gcc objcc objc cc CC
9024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9028 if test "${ac_cv_prog_OBJC+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 if test -n "$OBJC"; then
9032 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
9034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 test -z "$as_dir" && as_dir=.
9039 for ac_exec_ext in '' $ac_executable_extensions; do
9040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9041 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
9042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9051 OBJC=$ac_cv_prog_OBJC
9052 if test -n "$OBJC"; then
9053 { echo "$as_me:$LINENO: result: $OBJC" >&5
9054 echo "${ECHO_T}$OBJC" >&6; }
9056 { echo "$as_me:$LINENO: result: no" >&5
9057 echo "${ECHO_T}no" >&6; }
9061 test -n "$OBJC" && break
9064 if test -z "$OBJC"; then
9066 for ac_prog in gcc objcc objc cc CC
9068 # Extract the first word of "$ac_prog", so it can be a program name with args.
9069 set dummy $ac_prog; ac_word=$2
9070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9072 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 if test -n "$ac_ct_OBJC"; then
9076 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_prog_ac_ct_OBJC="$ac_prog"
9086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
9096 if test -n "$ac_ct_OBJC"; then
9097 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
9098 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
9100 { echo "$as_me:$LINENO: result: no" >&5
9101 echo "${ECHO_T}no" >&6; }
9105 test -n "$ac_ct_OBJC" && break
9108 if test "x$ac_ct_OBJC" = x; then
9111 case $cross_compiling:$ac_tool_warned in
9113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9114 whose name does not start with the host triplet. If you think this
9115 configuration is useful to you, please write to autoconf@gnu.org." >&5
9116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9117 whose name does not start with the host triplet. If you think this
9118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9119 ac_tool_warned=yes ;;
9125 # Provide some information about the compiler.
9126 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
9127 ac_compiler=`set X $ac_compile; echo $2`
9128 { (ac_try="$ac_compiler --version >&5"
9130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131 *) ac_try_echo=$ac_try;;
9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134 (eval "$ac_compiler --version >&5") 2>&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }
9138 { (ac_try="$ac_compiler -v >&5"
9140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9141 *) ac_try_echo=$ac_try;;
9143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9144 (eval "$ac_compiler -v >&5") 2>&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }
9148 { (ac_try="$ac_compiler -V >&5"
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_compiler -V >&5") 2>&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }
9159 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
9160 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
9161 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 cat >conftest.$ac_ext <<_ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9182 rm -f conftest.$ac_objext
9183 if { (ac_try="$ac_compile"
9185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9186 *) ac_try_echo=$ac_try;;
9188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9189 (eval "$ac_compile") 2>conftest.er1
9191 grep -v '^ *+' conftest.er1 >conftest.err
9193 cat conftest.err >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } && {
9196 test -z "$ac_objc_werror_flag" ||
9197 test ! -s conftest.err
9198 } && test -s conftest.$ac_objext; then
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9208 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
9211 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
9212 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
9213 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
9214 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
9215 ac_save_OBJCFLAGS=$OBJCFLAGS
9216 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
9217 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
9218 if test "${ac_cv_prog_objc_g+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 ac_save_objc_werror_flag=$ac_objc_werror_flag
9222 ac_objc_werror_flag=yes
9223 ac_cv_prog_objc_g=no
9225 cat >conftest.$ac_ext <<_ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9240 rm -f conftest.$ac_objext
9241 if { (ac_try="$ac_compile"
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_compile") 2>conftest.er1
9249 grep -v '^ *+' conftest.er1 >conftest.err
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } && {
9254 test -z "$ac_objc_werror_flag" ||
9255 test ! -s conftest.err
9256 } && test -s conftest.$ac_objext; then
9257 ac_cv_prog_objc_g=yes
9259 echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9278 rm -f conftest.$ac_objext
9279 if { (ac_try="$ac_compile"
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_compile") 2>conftest.er1
9287 grep -v '^ *+' conftest.er1 >conftest.err
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && {
9292 test -z "$ac_objc_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest.$ac_objext; then
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_objc_werror_flag=$ac_save_objc_werror_flag
9302 cat >conftest.$ac_ext <<_ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9317 rm -f conftest.$ac_objext
9318 if { (ac_try="$ac_compile"
9320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9321 *) ac_try_echo=$ac_try;;
9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9324 (eval "$ac_compile") 2>conftest.er1
9326 grep -v '^ *+' conftest.er1 >conftest.err
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } && {
9331 test -z "$ac_objc_werror_flag" ||
9332 test ! -s conftest.err
9333 } && test -s conftest.$ac_objext; then
9334 ac_cv_prog_objc_g=yes
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9349 ac_objc_werror_flag=$ac_save_objc_werror_flag
9351 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
9352 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
9353 if test "$ac_test_OBJCFLAGS" = set; then
9354 OBJCFLAGS=$ac_save_OBJCFLAGS
9355 elif test $ac_cv_prog_objc_g = yes; then
9356 if test "$GOBJC" = yes; then
9362 if test "$GOBJC" = yes; then
9369 ac_cpp='$CPP $CPPFLAGS'
9370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9374 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
9375 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
9377 ac_cpp='$OBJCPP $CPPFLAGS'
9378 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9379 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9380 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9381 cat >conftest.$ac_ext <<_ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9396 rm -f conftest.$ac_objext
9397 if { (ac_try="$ac_compile"
9399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9400 *) ac_try_echo=$ac_try;;
9402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9403 (eval "$ac_compile") 2>conftest.er1
9405 grep -v '^ *+' conftest.er1 >conftest.err
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } && {
9410 test -z "$ac_objc_werror_flag" ||
9411 test ! -s conftest.err
9412 } && test -s conftest.$ac_objext; then
9413 { echo "$as_me:$LINENO: result: yes" >&5
9414 echo "${ECHO_T}yes" >&6; }
9416 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
9417 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
9418 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 cat >conftest.$ac_ext <<_ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 $ac_includes_default
9429 #include <Cocoa/Cocoa.h>
9431 rm -f conftest.$ac_objext
9432 if { (ac_try="$ac_compile"
9434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435 *) ac_try_echo=$ac_try;;
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438 (eval "$ac_compile") 2>conftest.er1
9440 grep -v '^ *+' conftest.er1 >conftest.err
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } && {
9445 test -z "$ac_objc_werror_flag" ||
9446 test ! -s conftest.err
9447 } && test -s conftest.$ac_objext; then
9448 ac_cv_header_Cocoa_Cocoa_h=yes
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 ac_cv_header_Cocoa_Cocoa_h=no
9456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
9459 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
9460 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
9464 LIBS="$LIBS -framework AppKit -framework Carbon"
9465 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"
9466 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
9467 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
9469 cat >>confdefs.h <<\_ACEOF
9470 #define HAVE_COCOA 1
9474 cat >>confdefs.h <<\_ACEOF
9475 #define APPLE_BUILD 1
9479 if test "x$with_gtk" = "xx11"; then
9488 { echo "$as_me:$LINENO: checking OBJC version" >&5
9489 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
9490 if test -n "$OBJC"; then
9491 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
9492 if test -n "$_GOBJC_VERSION"; then
9493 { echo "$as_me:$LINENO: result: GCC" >&5
9494 echo "${ECHO_T}GCC" >&6; }
9496 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
9498 { echo "$as_me:$LINENO: result: Unknown" >&5
9499 echo "${ECHO_T}Unknown" >&6; }
9503 { echo "$as_me:$LINENO: result: None" >&5
9504 echo "${ECHO_T}None" >&6; }
9510 ac_cpp='$OBJCPP $CPPFLAGS'
9511 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9512 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9513 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9515 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
9516 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
9517 save_OBJCFLAGS="$OBJCFLAGS"
9518 OBJCFLAGS="-msse2 $OBJCFLAGS"
9519 cat >conftest.$ac_ext <<_ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 int main() { return 0; }
9528 rm -f conftest.$ac_objext
9529 if { (ac_try="$ac_compile"
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_compile") 2>conftest.er1
9537 grep -v '^ *+' conftest.er1 >conftest.err
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } && {
9542 test -z "$ac_objc_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest.$ac_objext; then
9546 { echo "$as_me:$LINENO: result: yes" >&5
9547 echo "${ECHO_T}yes" >&6; }
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9554 OBJCFLAGS="$save_OBJCFLAGS"
9555 { echo "$as_me:$LINENO: result: no" >&5
9556 echo "${ECHO_T}no" >&6; }
9560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562 ac_cpp='$OBJCPP $CPPFLAGS'
9563 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9564 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9565 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9570 ac_cpp='$OBJCPP $CPPFLAGS'
9571 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9572 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9573 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9575 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
9576 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
9577 save_OBJCFLAGS="$OBJCFLAGS"
9578 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
9579 cat >conftest.$ac_ext <<_ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 int main() { return 0; }
9588 rm -f conftest.$ac_objext
9589 if { (ac_try="$ac_compile"
9591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592 *) ac_try_echo=$ac_try;;
9594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595 (eval "$ac_compile") 2>conftest.er1
9597 grep -v '^ *+' conftest.er1 >conftest.err
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } && {
9602 test -z "$ac_objc_werror_flag" ||
9603 test ! -s conftest.err
9604 } && test -s conftest.$ac_objext; then
9606 { echo "$as_me:$LINENO: result: yes" >&5
9607 echo "${ECHO_T}yes" >&6; }
9610 echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.$ac_ext >&5
9614 OBJCFLAGS="$save_OBJCFLAGS"
9615 { echo "$as_me:$LINENO: result: no" >&5
9616 echo "${ECHO_T}no" >&6; }
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9622 ac_cpp='$OBJCPP $CPPFLAGS'
9623 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9624 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9625 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9633 { echo "$as_me:$LINENO: result: No" >&5
9634 echo "${ECHO_T}No" >&6; }
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
9640 ac_cpp='$CPP $CPPFLAGS'
9641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9650 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
9658 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
9660 cat >>confdefs.h <<\_ACEOF
9661 #define OSX_BUNDLE 1
9666 CFLAGS_FOR_BUILD="-O2 -std=c99"
9667 CFLAGS="-g -fexceptions"
9668 OBJCFLAGS="-g -fexceptions"
9670 cat >>confdefs.h <<\_ACEOF
9671 #define HAVE_EXCEPTIONS 1
9677 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
9678 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
9679 { echo "$as_me:$LINENO: checking CC version" >&5
9680 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
9681 if test -n "$_ICC_VERSION"; then
9682 { echo "$as_me:$LINENO: result: ICC" >&5
9683 echo "${ECHO_T}ICC" >&6; }
9684 CCOPT="$CFLAGS -fast"
9685 CFLAGS="$CFLAGS -fno-strict-aliasing"
9686 elif test -n "$_GCC_VERSION"; then
9687 { echo "$as_me:$LINENO: result: GCC" >&5
9688 echo "${ECHO_T}GCC" >&6; }
9690 CFLAGS="$CFLAGS -fno-strict-aliasing"
9692 { echo "$as_me:$LINENO: result: Unknown" >&5
9693 echo "${ECHO_T}Unknown" >&6; }
9699 ac_cpp='$CPP $CPPFLAGS'
9700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9704 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
9705 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
9706 save_CFLAGS="$CFLAGS"
9707 CFLAGS="-msse2 $CFLAGS"
9708 cat >conftest.$ac_ext <<_ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 int main() { return 0; }
9717 rm -f conftest.$ac_objext
9718 if { (ac_try="$ac_compile"
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_compile") 2>conftest.er1
9726 grep -v '^ *+' conftest.er1 >conftest.err
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } && {
9731 test -z "$ac_c_werror_flag" ||
9732 test ! -s conftest.err
9733 } && test -s conftest.$ac_objext; then
9735 { echo "$as_me:$LINENO: result: yes" >&5
9736 echo "${ECHO_T}yes" >&6; }
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9743 CFLAGS="$save_CFLAGS"
9744 { echo "$as_me:$LINENO: result: no" >&5
9745 echo "${ECHO_T}no" >&6; }
9749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751 ac_cpp='$CPP $CPPFLAGS'
9752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9759 ac_cpp='$CPP $CPPFLAGS'
9760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9764 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
9765 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
9766 save_CFLAGS="$CFLAGS"
9767 CFLAGS="-mfpmath=sse $CFLAGS"
9768 cat >conftest.$ac_ext <<_ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 int main() { return 0; }
9777 rm -f conftest.$ac_objext
9778 if { (ac_try="$ac_compile"
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_compile") 2>conftest.er1
9786 grep -v '^ *+' conftest.er1 >conftest.err
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } && {
9791 test -z "$ac_c_werror_flag" ||
9792 test ! -s conftest.err
9793 } && test -s conftest.$ac_objext; then
9795 { echo "$as_me:$LINENO: result: yes" >&5
9796 echo "${ECHO_T}yes" >&6; }
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9803 CFLAGS="$save_CFLAGS"
9804 { echo "$as_me:$LINENO: result: no" >&5
9805 echo "${ECHO_T}no" >&6; }
9809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9811 ac_cpp='$CPP $CPPFLAGS'
9812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9818 if test "x$enable_optimized" = "xyes"; then
9819 CFLAGS="$CFLAGS $CCOPT"
9820 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
9821 if test "x$enable_profiled" != "xyes"; then
9822 CFLAGS="$CFLAGS -fomit-frame-pointer"
9823 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
9826 CFLAGS="$CFLAGS -g3"
9827 OBJCFLAGS="$OBJCFLAGS -g3"
9830 if test "x$enable_profiled" = "xyes"; then
9831 CFLAGS="$CFLAGS -pg"
9832 LDFLAGS="$LDFLAGS -pg";
9833 OBJCFLAGS="$OBJCFLAGS -pg";
9836 if test "x$enable_strictwarn" = "xyes"; then
9837 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
9838 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
9841 if test "x$enable_shared" != "xno"; then
9842 if test "x$APPLE_BUILD" = "xyes"; then
9844 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
9847 PLUGINLDFLAGS="-shared"
9849 PLUGINCFLAGS="-fPIC"
9851 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9852 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9853 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9854 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9858 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9860 # Is the header compilable?
9861 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9862 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
9863 cat >conftest.$ac_ext <<_ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h. */
9869 $ac_includes_default
9872 rm -f conftest.$ac_objext
9873 if { (ac_try="$ac_compile"
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_compile") 2>conftest.er1
9881 grep -v '^ *+' conftest.er1 >conftest.err
9883 cat conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } && {
9886 test -z "$ac_c_werror_flag" ||
9887 test ! -s conftest.err
9888 } && test -s conftest.$ac_objext; then
9889 ac_header_compiler=yes
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9894 ac_header_compiler=no
9897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9899 echo "${ECHO_T}$ac_header_compiler" >&6; }
9901 # Is the header present?
9902 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9903 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
9904 cat >conftest.$ac_ext <<_ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9912 if { (ac_try="$ac_cpp conftest.$ac_ext"
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9920 grep -v '^ *+' conftest.er1 >conftest.err
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } >/dev/null && {
9925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9926 test ! -s conftest.err
9928 ac_header_preproc=yes
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9933 ac_header_preproc=no
9936 rm -f conftest.err conftest.$ac_ext
9937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9938 echo "${ECHO_T}$ac_header_preproc" >&6; }
9940 # So? What about this header?
9941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9943 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9944 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9946 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9947 ac_header_preproc=yes
9950 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9951 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9952 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9953 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9954 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9955 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9956 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9957 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9958 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9959 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9961 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9965 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9966 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9967 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 ac_cv_header_dlfcn_h=$ac_header_preproc
9972 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9973 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9976 if test $ac_cv_header_dlfcn_h = yes; then
9978 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9979 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9980 if test "${ac_cv_search_dlopen+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 ac_func_search_save_LIBS=$LIBS
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9991 /* Override any GCC internal prototype to avoid an error.
9992 Use char because int might match the return type of a GCC
9993 builtin and then its argument prototype would still apply. */
10006 for ac_lib in '' dl; do
10007 if test -z "$ac_lib"; then
10008 ac_res="none required"
10011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (ac_try="$ac_link"
10015 case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_link") 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } && {
10027 test -z "$ac_c_werror_flag" ||
10028 test ! -s conftest.err
10029 } && test -s conftest$ac_exeext &&
10030 $as_test_x conftest$ac_exeext; then
10031 ac_cv_search_dlopen=$ac_res
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10041 if test "${ac_cv_search_dlopen+set}" = set; then
10045 if test "${ac_cv_search_dlopen+set}" = set; then
10048 ac_cv_search_dlopen=no
10050 rm conftest.$ac_ext
10051 LIBS=$ac_func_search_save_LIBS
10053 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10054 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
10055 ac_res=$ac_cv_search_dlopen
10056 if test "$ac_res" != no; then
10057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10064 if test "x$have_dlopen" != "xyes"; then
10065 if test "x$enable_shared" == "xyes"; then
10066 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
10067 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
10068 { (exit 1); exit 1; }; }
10070 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
10071 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
10075 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
10076 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
10077 old_LDFLAGS="$LDFLAGS"
10078 LDFLAGS="$LDFLAGS -rdynamic"
10079 cat >conftest.$ac_ext <<_ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 int main() { return 0; }
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (ac_try="$ac_link"
10089 case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_link") 2>conftest.er1
10096 grep -v '^ *+' conftest.er1 >conftest.err
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && {
10101 test -z "$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 } && test -s conftest$ac_exeext &&
10104 $as_test_x conftest$ac_exeext; then
10106 LXDREAMLDFLAGS="-rdynamic"
10107 { echo "$as_me:$LINENO: result: yes" >&5
10108 echo "${ECHO_T}yes" >&6; }
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10116 { echo "$as_me:$LINENO: result: no" >&5
10117 echo "${ECHO_T}no" >&6; }
10120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10121 conftest$ac_exeext conftest.$ac_ext
10122 LDFLAGS="$old_LDFLAGS"
10129 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
10131 cat >>confdefs.h <<\_ACEOF
10132 #define BUILD_PLUGINS 1
10138 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
10139 BUILD_PLUGINS_TRUE=
10140 BUILD_PLUGINS_FALSE='#'
10142 BUILD_PLUGINS_TRUE='#'
10143 BUILD_PLUGINS_FALSE=
10148 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
10149 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
10150 save_CFLAGS="$CFLAGS"
10151 CFLAGS="-Werror $save_CFLAGS"
10152 if test "$cross_compiling" = yes; then
10154 { echo "$as_me:$LINENO: result: no" >&5
10155 echo "${ECHO_T}no" >&6; }
10158 cat >conftest.$ac_ext <<_ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10166 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
10168 int main(int argc, char *argv[])
10170 return foo( 1, 2 ) == 3 ? 0 : 1;
10173 rm -f conftest$ac_exeext
10174 if { (ac_try="$ac_link"
10175 case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_link") 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10184 { (case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_try") 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; }; then
10194 { echo "$as_me:$LINENO: result: yes" >&5
10195 echo "${ECHO_T}yes" >&6; }
10198 cat >>confdefs.h <<\_ACEOF
10199 #define HAVE_FASTCALL 1
10204 echo "$as_me: program exited with status $ac_status" >&5
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10208 ( exit $ac_status )
10210 { echo "$as_me:$LINENO: result: no" >&5
10211 echo "${ECHO_T}no" >&6; }
10214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10218 CFLAGS="$save_CFLAGS"
10221 { echo "$as_me:$LINENO: checking support for force inlining" >&5
10222 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
10223 cat >conftest.$ac_ext <<_ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10231 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
10233 int main(int argc, char *argv[])
10235 return foo( 1, 2 ) == 3 ? 0 : 1;
10238 rm -f conftest.$ac_objext
10239 if { (ac_try="$ac_compile"
10240 case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_compile") 2>conftest.er1
10247 grep -v '^ *+' conftest.er1 >conftest.err
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } && {
10252 test -z "$ac_c_werror_flag" ||
10253 test ! -s conftest.err
10254 } && test -s conftest.$ac_objext; then
10256 FORCEINLINE="__attribute__((always_inline))"
10257 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
10258 echo "${ECHO_T}$FORCEINLINE" >&6; }
10261 echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10266 { echo "$as_me:$LINENO: result: no" >&5
10267 echo "${ECHO_T}no" >&6; }
10271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274 cat >>confdefs.h <<_ACEOF
10275 #define FORCEINLINE $FORCEINLINE
10279 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
10280 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
10281 if test "$cross_compiling" = yes; then
10283 { echo "$as_me:$LINENO: result: no" >&5
10284 echo "${ECHO_T}no" >&6; }
10285 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10286 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10288 cat >conftest.$ac_ext <<_ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10296 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
10297 int __attribute__((noinline)) foo( int arg, void *exc )
10300 *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
10305 int main(int argc, char *argv[])
10307 goto *first_arg(&&start, &&except);
10310 return foo( argc, &&except ) + 1;
10316 rm -f conftest$ac_exeext
10317 if { (ac_try="$ac_link"
10318 case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323 (eval "$ac_link") 2>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10327 { (case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_try") 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
10337 { echo "$as_me:$LINENO: result: yes" >&5
10338 echo "${ECHO_T}yes" >&6; }
10341 cat >>confdefs.h <<\_ACEOF
10342 #define HAVE_FRAME_ADDRESS 1
10347 echo "$as_me: program exited with status $ac_status" >&5
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 ( exit $ac_status )
10353 { echo "$as_me:$LINENO: result: no" >&5
10354 echo "${ECHO_T}no" >&6; }
10355 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10356 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10365 { echo "$as_me:$LINENO: checking for library containing listen" >&5
10366 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
10367 if test "${ac_cv_search_listen+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 ac_func_search_save_LIBS=$LIBS
10371 cat >conftest.$ac_ext <<_ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10378 /* Override any GCC internal prototype to avoid an error.
10379 Use char because int might match the return type of a GCC
10380 builtin and then its argument prototype would still apply. */
10393 for ac_lib in '' socket; do
10394 if test -z "$ac_lib"; then
10395 ac_res="none required"
10398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_link") 2>conftest.er1
10409 grep -v '^ *+' conftest.er1 >conftest.err
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && {
10414 test -z "$ac_c_werror_flag" ||
10415 test ! -s conftest.err
10416 } && test -s conftest$ac_exeext &&
10417 $as_test_x conftest$ac_exeext; then
10418 ac_cv_search_listen=$ac_res
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10428 if test "${ac_cv_search_listen+set}" = set; then
10432 if test "${ac_cv_search_listen+set}" = set; then
10435 ac_cv_search_listen=no
10437 rm conftest.$ac_ext
10438 LIBS=$ac_func_search_save_LIBS
10440 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
10441 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
10442 ac_res=$ac_cv_search_listen
10443 if test "$ac_res" != no; then
10444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10448 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
10449 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
10450 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 ac_func_search_save_LIBS=$LIBS
10454 cat >conftest.$ac_ext <<_ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10461 /* Override any GCC internal prototype to avoid an error.
10462 Use char because int might match the return type of a GCC
10463 builtin and then its argument prototype would still apply. */
10471 return inet_ntoa ();
10476 for ac_lib in '' nsl; do
10477 if test -z "$ac_lib"; then
10478 ac_res="none required"
10481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10483 rm -f conftest.$ac_objext conftest$ac_exeext
10484 if { (ac_try="$ac_link"
10485 case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_link") 2>conftest.er1
10492 grep -v '^ *+' conftest.er1 >conftest.err
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && {
10497 test -z "$ac_c_werror_flag" ||
10498 test ! -s conftest.err
10499 } && test -s conftest$ac_exeext &&
10500 $as_test_x conftest$ac_exeext; then
10501 ac_cv_search_inet_ntoa=$ac_res
10503 echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10515 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10518 ac_cv_search_inet_ntoa=no
10520 rm conftest.$ac_ext
10521 LIBS=$ac_func_search_save_LIBS
10523 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
10524 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
10525 ac_res=$ac_cv_search_inet_ntoa
10526 if test "$ac_res" != no; then
10527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10534 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10535 if test -n "$ac_tool_prefix"; then
10536 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10537 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10540 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 case $PKG_CONFIG in
10545 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549 for as_dir in $PATH
10552 test -z "$as_dir" && as_dir=.
10553 for ac_exec_ext in '' $ac_executable_extensions; do
10554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10555 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10567 if test -n "$PKG_CONFIG"; then
10568 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10569 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10571 { echo "$as_me:$LINENO: result: no" >&5
10572 echo "${ECHO_T}no" >&6; }
10577 if test -z "$ac_cv_path_PKG_CONFIG"; then
10578 ac_pt_PKG_CONFIG=$PKG_CONFIG
10579 # Extract the first word of "pkg-config", so it can be a program name with args.
10580 set dummy pkg-config; ac_word=$2
10581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10583 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 case $ac_pt_PKG_CONFIG in
10588 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592 for as_dir in $PATH
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10598 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10610 if test -n "$ac_pt_PKG_CONFIG"; then
10611 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
10612 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
10614 { echo "$as_me:$LINENO: result: no" >&5
10615 echo "${ECHO_T}no" >&6; }
10618 if test "x$ac_pt_PKG_CONFIG" = x; then
10621 case $cross_compiling:$ac_tool_warned in
10623 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10624 whose name does not start with the host triplet. If you think this
10625 configuration is useful to you, please write to autoconf@gnu.org." >&5
10626 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10627 whose name does not start with the host triplet. If you think this
10628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10629 ac_tool_warned=yes ;;
10631 PKG_CONFIG=$ac_pt_PKG_CONFIG
10634 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10638 if test -n "$PKG_CONFIG"; then
10639 _pkg_min_version=0.9.0
10640 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
10641 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
10642 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10643 { echo "$as_me:$LINENO: result: yes" >&5
10644 echo "${ECHO_T}yes" >&6; }
10646 { echo "$as_me:$LINENO: result: no" >&5
10647 echo "${ECHO_T}no" >&6; }
10654 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
10655 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
10657 if test -n "$LIBPNG_CFLAGS"; then
10658 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
10659 elif test -n "$PKG_CONFIG"; then
10660 if test -n "$PKG_CONFIG" && \
10661 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10662 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; then
10666 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
10673 if test -n "$LIBPNG_LIBS"; then
10674 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
10675 elif test -n "$PKG_CONFIG"; then
10676 if test -n "$PKG_CONFIG" && \
10677 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10678 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; then
10682 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
10692 if test $pkg_failed = yes; then
10694 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10695 _pkg_short_errors_supported=yes
10697 _pkg_short_errors_supported=no
10699 if test $_pkg_short_errors_supported = yes; then
10700 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
10702 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
10704 # Put the nasty error message in config.log where it belongs
10705 echo "$LIBPNG_PKG_ERRORS" >&5
10707 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
10711 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10712 installed software in a non-standard prefix.
10714 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10715 and LIBPNG_LIBS to avoid the need to call pkg-config.
10716 See the pkg-config man page for more details.
10718 echo "$as_me: error: Package requirements (libpng ) were not met:
10722 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10723 installed software in a non-standard prefix.
10725 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10726 and LIBPNG_LIBS to avoid the need to call pkg-config.
10727 See the pkg-config man page for more details.
10729 { (exit 1); exit 1; }; }
10730 elif test $pkg_failed = untried; then
10731 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10732 is in your PATH or set the PKG_CONFIG environment variable to the full
10733 path to pkg-config.
10735 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10736 and LIBPNG_LIBS to avoid the need to call pkg-config.
10737 See the pkg-config man page for more details.
10739 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10740 See \`config.log' for more details." >&5
10741 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10742 is in your PATH or set the PKG_CONFIG environment variable to the full
10743 path to pkg-config.
10745 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10746 and LIBPNG_LIBS to avoid the need to call pkg-config.
10747 See the pkg-config man page for more details.
10749 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10750 See \`config.log' for more details." >&2;}
10751 { (exit 1); exit 1; }; }
10753 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
10754 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
10755 { echo "$as_me:$LINENO: result: yes" >&5
10756 echo "${ECHO_T}yes" >&6; }
10761 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
10762 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
10763 if test "${ac_cv_lib_z_uncompress+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 ac_check_lib_save_LIBS=$LIBS
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10781 char uncompress ();
10785 return uncompress ();
10790 rm -f conftest.$ac_objext conftest$ac_exeext
10791 if { (ac_try="$ac_link"
10792 case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_link") 2>conftest.er1
10799 grep -v '^ *+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && {
10804 test -z "$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10806 } && test -s conftest$ac_exeext &&
10807 $as_test_x conftest$ac_exeext; then
10808 ac_cv_lib_z_uncompress=yes
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ac_cv_lib_z_uncompress=no
10816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10820 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
10821 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
10822 if test $ac_cv_lib_z_uncompress = yes; then
10823 cat >>confdefs.h <<_ACEOF
10824 #define HAVE_LIBZ 1
10831 echo "Zlib (libz.so) could not be found, but is required."
10837 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10838 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
10839 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 ac_check_lib_save_LIBS=$LIBS
10844 cat >conftest.$ac_ext <<_ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10851 /* Override any GCC internal prototype to avoid an error.
10852 Use char because int might match the return type of a GCC
10853 builtin and then its argument prototype would still apply. */
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (ac_try="$ac_link"
10868 case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_link") 2>conftest.er1
10875 grep -v '^ *+' conftest.er1 >conftest.err
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } && {
10880 test -z "$ac_c_werror_flag" ||
10881 test ! -s conftest.err
10882 } && test -s conftest$ac_exeext &&
10883 $as_test_x conftest$ac_exeext; then
10884 ac_cv_lib_m_sqrt=yes
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ac_cv_lib_m_sqrt=no
10892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10893 conftest$ac_exeext conftest.$ac_ext
10894 LIBS=$ac_check_lib_save_LIBS
10896 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10897 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
10898 if test $ac_cv_lib_m_sqrt = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define HAVE_LIBM 1
10908 if test "x$with_gtk" = "xno"; then
10911 { echo "$as_me:$LINENO: checking for GLIB" >&5
10912 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10914 if test -n "$GLIB_CFLAGS"; then
10915 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10916 elif test -n "$PKG_CONFIG"; then
10917 if test -n "$PKG_CONFIG" && \
10918 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10919 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; then
10923 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10930 if test -n "$GLIB_LIBS"; then
10931 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10932 elif test -n "$PKG_CONFIG"; then
10933 if test -n "$PKG_CONFIG" && \
10934 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10935 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; then
10939 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10949 if test $pkg_failed = yes; then
10951 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10952 _pkg_short_errors_supported=yes
10954 _pkg_short_errors_supported=no
10956 if test $_pkg_short_errors_supported = yes; then
10957 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10959 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10961 # Put the nasty error message in config.log where it belongs
10962 echo "$GLIB_PKG_ERRORS" >&5
10964 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10968 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10969 installed software in a non-standard prefix.
10971 Alternatively, you may set the environment variables GLIB_CFLAGS
10972 and GLIB_LIBS to avoid the need to call pkg-config.
10973 See the pkg-config man page for more details.
10975 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10979 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10980 installed software in a non-standard prefix.
10982 Alternatively, you may set the environment variables GLIB_CFLAGS
10983 and GLIB_LIBS to avoid the need to call pkg-config.
10984 See the pkg-config man page for more details.
10986 { (exit 1); exit 1; }; }
10987 elif test $pkg_failed = untried; then
10988 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10989 is in your PATH or set the PKG_CONFIG environment variable to the full
10990 path to pkg-config.
10992 Alternatively, you may set the environment variables GLIB_CFLAGS
10993 and GLIB_LIBS to avoid the need to call pkg-config.
10994 See the pkg-config man page for more details.
10996 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10997 See \`config.log' for more details." >&5
10998 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10999 is in your PATH or set the PKG_CONFIG environment variable to the full
11000 path to pkg-config.
11002 Alternatively, you may set the environment variables GLIB_CFLAGS
11003 and GLIB_LIBS to avoid the need to call pkg-config.
11004 See the pkg-config man page for more details.
11006 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11007 See \`config.log' for more details." >&2;}
11008 { (exit 1); exit 1; }; }
11010 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
11011 GLIB_LIBS=$pkg_cv_GLIB_LIBS
11012 { echo "$as_me:$LINENO: result: yes" >&5
11013 echo "${ECHO_T}yes" >&6; }
11019 { echo "$as_me:$LINENO: checking for GTK" >&5
11020 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
11022 if test -n "$GTK_CFLAGS"; then
11023 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
11024 elif test -n "$PKG_CONFIG"; then
11025 if test -n "$PKG_CONFIG" && \
11026 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
11027 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; then
11031 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
11038 if test -n "$GTK_LIBS"; then
11039 pkg_cv_GTK_LIBS="$GTK_LIBS"
11040 elif test -n "$PKG_CONFIG"; then
11041 if test -n "$PKG_CONFIG" && \
11042 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
11043 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; then
11047 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
11057 if test $pkg_failed = yes; then
11059 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11060 _pkg_short_errors_supported=yes
11062 _pkg_short_errors_supported=no
11064 if test $_pkg_short_errors_supported = yes; then
11065 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
11067 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
11069 # Put the nasty error message in config.log where it belongs
11070 echo "$GTK_PKG_ERRORS" >&5
11072 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
11076 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11077 installed software in a non-standard prefix.
11079 Alternatively, you may set the environment variables GTK_CFLAGS
11080 and GTK_LIBS to avoid the need to call pkg-config.
11081 See the pkg-config man page for more details.
11083 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
11087 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11088 installed software in a non-standard prefix.
11090 Alternatively, you may set the environment variables GTK_CFLAGS
11091 and GTK_LIBS to avoid the need to call pkg-config.
11092 See the pkg-config man page for more details.
11094 { (exit 1); exit 1; }; }
11095 elif test $pkg_failed = untried; then
11096 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11097 is in your PATH or set the PKG_CONFIG environment variable to the full
11098 path to pkg-config.
11100 Alternatively, you may set the environment variables GTK_CFLAGS
11101 and GTK_LIBS to avoid the need to call pkg-config.
11102 See the pkg-config man page for more details.
11104 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11105 See \`config.log' for more details." >&5
11106 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11107 is in your PATH or set the PKG_CONFIG environment variable to the full
11108 path to pkg-config.
11110 Alternatively, you may set the environment variables GTK_CFLAGS
11111 and GTK_LIBS to avoid the need to call pkg-config.
11112 See the pkg-config man page for more details.
11114 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11115 See \`config.log' for more details." >&2;}
11116 { (exit 1); exit 1; }; }
11118 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
11119 GTK_LIBS=$pkg_cv_GTK_LIBS
11120 { echo "$as_me:$LINENO: result: yes" >&5
11121 echo "${ECHO_T}yes" >&6; }
11125 cat >>confdefs.h <<\_ACEOF
11133 LIBS="$LIBS $GTK_LIBS"
11134 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
11135 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
11136 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 cat >conftest.$ac_ext <<_ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
11146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11147 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
11149 /* System header to define __stub macros and hopefully few prototypes,
11150 which can conflict with char gdk_x11_display_get_xdisplay (); below.
11151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11152 <limits.h> exists even on freestanding compilers. */
11155 # include <limits.h>
11157 # include <assert.h>
11160 #undef gdk_x11_display_get_xdisplay
11162 /* Override any GCC internal prototype to avoid an error.
11163 Use char because int might match the return type of a GCC
11164 builtin and then its argument prototype would still apply. */
11168 char gdk_x11_display_get_xdisplay ();
11169 /* The GNU C library defines this for functions which it implements
11170 to always fail with ENOSYS. Some functions are actually named
11171 something starting with __ and the normal name is an alias. */
11172 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
11179 return gdk_x11_display_get_xdisplay ();
11184 rm -f conftest.$ac_objext conftest$ac_exeext
11185 if { (ac_try="$ac_link"
11186 case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_link") 2>conftest.er1
11193 grep -v '^ *+' conftest.er1 >conftest.err
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && {
11198 test -z "$ac_c_werror_flag" ||
11199 test ! -s conftest.err
11200 } && test -s conftest$ac_exeext &&
11201 $as_test_x conftest$ac_exeext; then
11202 ac_cv_func_gdk_x11_display_get_xdisplay=yes
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 ac_cv_func_gdk_x11_display_get_xdisplay=no
11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11211 conftest$ac_exeext conftest.$ac_ext
11213 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
11214 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
11215 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
11219 cat >>confdefs.h <<\_ACEOF
11220 #define HAVE_GTK_X11 1
11225 GTK_LIBS="$GTK_LIBS -lX11"
11227 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
11228 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
11229 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 cat >conftest.$ac_ext <<_ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
11239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11240 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
11242 /* System header to define __stub macros and hopefully few prototypes,
11243 which can conflict with char gdk_quartz_window_get_nsview (); below.
11244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11245 <limits.h> exists even on freestanding compilers. */
11248 # include <limits.h>
11250 # include <assert.h>
11253 #undef gdk_quartz_window_get_nsview
11255 /* Override any GCC internal prototype to avoid an error.
11256 Use char because int might match the return type of a GCC
11257 builtin and then its argument prototype would still apply. */
11261 char gdk_quartz_window_get_nsview ();
11262 /* The GNU C library defines this for functions which it implements
11263 to always fail with ENOSYS. Some functions are actually named
11264 something starting with __ and the normal name is an alias. */
11265 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
11272 return gdk_quartz_window_get_nsview ();
11277 rm -f conftest.$ac_objext conftest$ac_exeext
11278 if { (ac_try="$ac_link"
11279 case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_link") 2>conftest.er1
11286 grep -v '^ *+' conftest.er1 >conftest.err
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && {
11291 test -z "$ac_c_werror_flag" ||
11292 test ! -s conftest.err
11293 } && test -s conftest$ac_exeext &&
11294 $as_test_x conftest$ac_exeext; then
11295 ac_cv_func_gdk_quartz_window_get_nsview=yes
11297 echo "$as_me: failed program was:" >&5
11298 sed 's/^/| /' conftest.$ac_ext >&5
11300 ac_cv_func_gdk_quartz_window_get_nsview=no
11303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11304 conftest$ac_exeext conftest.$ac_ext
11306 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
11307 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
11308 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
11312 cat >>confdefs.h <<\_ACEOF
11313 #define HAVE_GTK_OSX 1
11318 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
11319 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
11320 See \`config.log' for more details." >&5
11321 echo "$as_me: error: Unable to identify GTK platform
11322 See \`config.log' for more details." >&2;}
11323 { (exit 1); exit 1; }; }
11330 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
11331 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
11333 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
11334 pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
11335 elif test -n "$PKG_CONFIG"; then
11336 if test -n "$PKG_CONFIG" && \
11337 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
11338 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; then
11342 pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
11349 if test -n "$GLIB_FOR_BUILD_LIBS"; then
11350 pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
11351 elif test -n "$PKG_CONFIG"; then
11352 if test -n "$PKG_CONFIG" && \
11353 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
11354 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; then
11358 pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
11368 if test $pkg_failed = yes; then
11370 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11371 _pkg_short_errors_supported=yes
11373 _pkg_short_errors_supported=no
11375 if test $_pkg_short_errors_supported = yes; then
11376 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
11378 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
11380 # Put the nasty error message in config.log where it belongs
11381 echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
11383 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
11385 $GLIB_FOR_BUILD_PKG_ERRORS
11387 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11388 installed software in a non-standard prefix.
11390 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11391 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11392 See the pkg-config man page for more details.
11394 echo "$as_me: error: Package requirements (glib-2.0) were not met:
11396 $GLIB_FOR_BUILD_PKG_ERRORS
11398 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11399 installed software in a non-standard prefix.
11401 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11402 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11403 See the pkg-config man page for more details.
11405 { (exit 1); exit 1; }; }
11406 elif test $pkg_failed = untried; then
11407 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11408 is in your PATH or set the PKG_CONFIG environment variable to the full
11409 path to pkg-config.
11411 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11412 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11413 See the pkg-config man page for more details.
11415 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11416 See \`config.log' for more details." >&5
11417 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11418 is in your PATH or set the PKG_CONFIG environment variable to the full
11419 path to pkg-config.
11421 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11422 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11423 See the pkg-config man page for more details.
11425 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11426 See \`config.log' for more details." >&2;}
11427 { (exit 1); exit 1; }; }
11429 GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
11430 GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
11431 { echo "$as_me:$LINENO: result: yes" >&5
11432 echo "${ECHO_T}yes" >&6; }
11439 if test "$HAVE_GTK" = 'yes'; then
11450 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
11451 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
11453 if test -n "$LIBISOFS_CFLAGS"; then
11454 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
11455 elif test -n "$PKG_CONFIG"; then
11456 if test -n "$PKG_CONFIG" && \
11457 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11458 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; then
11462 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
11469 if test -n "$LIBISOFS_LIBS"; then
11470 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
11471 elif test -n "$PKG_CONFIG"; then
11472 if test -n "$PKG_CONFIG" && \
11473 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11474 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; then
11478 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
11488 if test $pkg_failed = yes; then
11490 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11491 _pkg_short_errors_supported=yes
11493 _pkg_short_errors_supported=no
11495 if test $_pkg_short_errors_supported = yes; then
11496 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
11498 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
11500 # Put the nasty error message in config.log where it belongs
11501 echo "$LIBISOFS_PKG_ERRORS" >&5
11503 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
11505 $LIBISOFS_PKG_ERRORS
11507 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11508 installed software in a non-standard prefix.
11510 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11511 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11512 See the pkg-config man page for more details.
11514 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
11516 $LIBISOFS_PKG_ERRORS
11518 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11519 installed software in a non-standard prefix.
11521 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11522 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11523 See the pkg-config man page for more details.
11525 { (exit 1); exit 1; }; }
11526 elif test $pkg_failed = untried; then
11527 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11528 is in your PATH or set the PKG_CONFIG environment variable to the full
11529 path to pkg-config.
11531 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11532 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11533 See the pkg-config man page for more details.
11535 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11536 See \`config.log' for more details." >&5
11537 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11538 is in your PATH or set the PKG_CONFIG environment variable to the full
11539 path to pkg-config.
11541 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11542 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11543 See the pkg-config man page for more details.
11545 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11546 See \`config.log' for more details." >&2;}
11547 { (exit 1); exit 1; }; }
11549 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
11550 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
11551 { echo "$as_me:$LINENO: result: yes" >&5
11552 echo "${ECHO_T}yes" >&6; }
11556 if test "x$with_osmesa" != xno; then
11560 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
11561 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
11562 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 ac_check_lib_save_LIBS=$LIBS
11566 LIBS="-lOSMesa $LIBS"
11567 cat >conftest.$ac_ext <<_ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11574 /* Override any GCC internal prototype to avoid an error.
11575 Use char because int might match the return type of a GCC
11576 builtin and then its argument prototype would still apply. */
11580 char OSMesaCreateContext ();
11584 return OSMesaCreateContext ();
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (ac_try="$ac_link"
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_link") 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); } && {
11603 test -z "$ac_c_werror_flag" ||
11604 test ! -s conftest.err
11605 } && test -s conftest$ac_exeext &&
11606 $as_test_x conftest$ac_exeext; then
11607 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
11609 echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11612 ac_cv_lib_OSMesa_OSMesaCreateContext=no
11615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11616 conftest$ac_exeext conftest.$ac_ext
11617 LIBS=$ac_check_lib_save_LIBS
11619 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
11620 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
11621 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
11622 cat >>confdefs.h <<_ACEOF
11623 #define HAVE_LIBOSMESA 1
11626 LIBS="-lOSMesa $LIBS"
11629 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
11630 See \`config.log' for more details." >&5
11631 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
11632 See \`config.log' for more details." >&2;}
11633 { (exit 1); exit 1; }; }
11636 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11637 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11638 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11639 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11643 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11645 # Is the header compilable?
11646 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
11647 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 $ac_includes_default
11655 #include <GL/osmesa.h>
11657 rm -f conftest.$ac_objext
11658 if { (ac_try="$ac_compile"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_compile") 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest.$ac_objext; then
11674 ac_header_compiler=yes
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11679 ac_header_compiler=no
11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11684 echo "${ECHO_T}$ac_header_compiler" >&6; }
11686 # Is the header present?
11687 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
11688 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
11689 cat >conftest.$ac_ext <<_ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 #include <GL/osmesa.h>
11697 if { (ac_try="$ac_cpp conftest.$ac_ext"
11698 case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11705 grep -v '^ *+' conftest.er1 >conftest.err
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } >/dev/null && {
11710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11713 ac_header_preproc=yes
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 ac_header_preproc=no
11721 rm -f conftest.err conftest.$ac_ext
11722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11723 echo "${ECHO_T}$ac_header_preproc" >&6; }
11725 # So? What about this header?
11726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11728 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
11729 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
11731 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
11732 ac_header_preproc=yes
11735 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
11736 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
11738 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
11740 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
11741 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
11742 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
11743 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
11744 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
11746 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
11750 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11751 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11752 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 ac_cv_header_GL_osmesa_h=$ac_header_preproc
11757 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11758 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11761 if test $ac_cv_header_GL_osmesa_h = yes; then
11764 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
11765 See \`config.log' for more details." >&5
11766 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
11767 See \`config.log' for more details." >&2;}
11768 { (exit 1); exit 1; }; }
11773 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
11775 cat >>confdefs.h <<\_ACEOF
11776 #define HAVE_OSMESA 1
11782 if test "x$APPLE_BUILD" != 'xyes' -a "x$ANDROID_BUILD" != 'xyes'; then
11785 { echo "$as_me:$LINENO: checking for LIBGL" >&5
11786 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
11788 if test -n "$LIBGL_CFLAGS"; then
11789 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
11790 elif test -n "$PKG_CONFIG"; then
11791 if test -n "$PKG_CONFIG" && \
11792 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11793 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; then
11797 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
11804 if test -n "$LIBGL_LIBS"; then
11805 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
11806 elif test -n "$PKG_CONFIG"; then
11807 if test -n "$PKG_CONFIG" && \
11808 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11809 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; then
11813 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
11823 if test $pkg_failed = yes; then
11825 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11826 _pkg_short_errors_supported=yes
11828 _pkg_short_errors_supported=no
11830 if test $_pkg_short_errors_supported = yes; then
11831 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
11833 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
11835 # Put the nasty error message in config.log where it belongs
11836 echo "$LIBGL_PKG_ERRORS" >&5
11838 { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
11842 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11843 installed software in a non-standard prefix.
11845 Alternatively, you may set the environment variables LIBGL_CFLAGS
11846 and LIBGL_LIBS to avoid the need to call pkg-config.
11847 See the pkg-config man page for more details.
11849 echo "$as_me: error: Package requirements (gl ) were not met:
11853 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11854 installed software in a non-standard prefix.
11856 Alternatively, you may set the environment variables LIBGL_CFLAGS
11857 and LIBGL_LIBS to avoid the need to call pkg-config.
11858 See the pkg-config man page for more details.
11860 { (exit 1); exit 1; }; }
11861 elif test $pkg_failed = untried; then
11862 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11863 is in your PATH or set the PKG_CONFIG environment variable to the full
11864 path to pkg-config.
11866 Alternatively, you may set the environment variables LIBGL_CFLAGS
11867 and LIBGL_LIBS to avoid the need to call pkg-config.
11868 See the pkg-config man page for more details.
11870 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11871 See \`config.log' for more details." >&5
11872 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11873 is in your PATH or set the PKG_CONFIG environment variable to the full
11874 path to pkg-config.
11876 Alternatively, you may set the environment variables LIBGL_CFLAGS
11877 and LIBGL_LIBS to avoid the need to call pkg-config.
11878 See the pkg-config man page for more details.
11880 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11881 See \`config.log' for more details." >&2;}
11882 { (exit 1); exit 1; }; }
11884 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
11885 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
11886 { echo "$as_me:$LINENO: result: yes" >&5
11887 echo "${ECHO_T}yes" >&6; }
11890 LIBS="$LIBS $LIBGL_LIBS";
11891 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
11893 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
11894 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
11895 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 cat >conftest.$ac_ext <<_ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
11905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11906 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
11908 /* System header to define __stub macros and hopefully few prototypes,
11909 which can conflict with char NSOpenGLGetVersion (); below.
11910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11911 <limits.h> exists even on freestanding compilers. */
11914 # include <limits.h>
11916 # include <assert.h>
11919 #undef NSOpenGLGetVersion
11921 /* Override any GCC internal prototype to avoid an error.
11922 Use char because int might match the return type of a GCC
11923 builtin and then its argument prototype would still apply. */
11927 char NSOpenGLGetVersion ();
11928 /* The GNU C library defines this for functions which it implements
11929 to always fail with ENOSYS. Some functions are actually named
11930 something starting with __ and the normal name is an alias. */
11931 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
11938 return NSOpenGLGetVersion ();
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (ac_try="$ac_link"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_link") 2>conftest.er1
11952 grep -v '^ *+' conftest.er1 >conftest.err
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } && {
11957 test -z "$ac_c_werror_flag" ||
11958 test ! -s conftest.err
11959 } && test -s conftest$ac_exeext &&
11960 $as_test_x conftest$ac_exeext; then
11961 ac_cv_func_NSOpenGLGetVersion=yes
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 ac_cv_func_NSOpenGLGetVersion=no
11969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11970 conftest$ac_exeext conftest.$ac_ext
11972 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
11973 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
11974 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
11977 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
11979 cat >>confdefs.h <<\_ACEOF
11980 #define HAVE_NSGL 1
11987 if test "x$HAVE_GTK_X11" = "xyes"; then
11988 if test "x$APPLE_BUILD" = "xyes"; then
11989 LIBS="$LIBS -L/usr/X11/lib -lGL"
11991 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
11992 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
11993 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 cat >conftest.$ac_ext <<_ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12002 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
12003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12004 #define glXQueryVersion innocuous_glXQueryVersion
12006 /* System header to define __stub macros and hopefully few prototypes,
12007 which can conflict with char glXQueryVersion (); below.
12008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12009 <limits.h> exists even on freestanding compilers. */
12012 # include <limits.h>
12014 # include <assert.h>
12017 #undef glXQueryVersion
12019 /* Override any GCC internal prototype to avoid an error.
12020 Use char because int might match the return type of a GCC
12021 builtin and then its argument prototype would still apply. */
12025 char glXQueryVersion ();
12026 /* The GNU C library defines this for functions which it implements
12027 to always fail with ENOSYS. Some functions are actually named
12028 something starting with __ and the normal name is an alias. */
12029 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
12036 return glXQueryVersion ();
12041 rm -f conftest.$ac_objext conftest$ac_exeext
12042 if { (ac_try="$ac_link"
12043 case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_link") 2>conftest.er1
12050 grep -v '^ *+' conftest.er1 >conftest.err
12052 cat conftest.err >&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && {
12055 test -z "$ac_c_werror_flag" ||
12056 test ! -s conftest.err
12057 } && test -s conftest$ac_exeext &&
12058 $as_test_x conftest$ac_exeext; then
12059 ac_cv_func_glXQueryVersion=yes
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 ac_cv_func_glXQueryVersion=no
12067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12068 conftest$ac_exeext conftest.$ac_ext
12070 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
12071 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
12072 if test $ac_cv_func_glXQueryVersion = yes; then
12075 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
12077 cat >>confdefs.h <<\_ACEOF
12093 if test "x$HAVE_OSMESA" = "xyes"; then
12095 VIDEO_OSMESA_FALSE='#'
12097 VIDEO_OSMESA_TRUE='#'
12098 VIDEO_OSMESA_FALSE=
12103 if test "x$HAVE_GLX" = "xyes"; then
12105 VIDEO_GLX_FALSE='#'
12113 if test "x$HAVE_NSGL" = "xyes"; then
12115 VIDEO_NSGL_FALSE='#'
12117 VIDEO_NSGL_TRUE='#'
12122 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
12123 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
12124 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 cat >conftest.$ac_ext <<_ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
12134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12135 #define glGenFramebuffers innocuous_glGenFramebuffers
12137 /* System header to define __stub macros and hopefully few prototypes,
12138 which can conflict with char glGenFramebuffers (); below.
12139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12140 <limits.h> exists even on freestanding compilers. */
12143 # include <limits.h>
12145 # include <assert.h>
12148 #undef glGenFramebuffers
12150 /* Override any GCC internal prototype to avoid an error.
12151 Use char because int might match the return type of a GCC
12152 builtin and then its argument prototype would still apply. */
12156 char glGenFramebuffers ();
12157 /* The GNU C library defines this for functions which it implements
12158 to always fail with ENOSYS. Some functions are actually named
12159 something starting with __ and the normal name is an alias. */
12160 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
12167 return glGenFramebuffers ();
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_link") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } && {
12186 test -z "$ac_c_werror_flag" ||
12187 test ! -s conftest.err
12188 } && test -s conftest$ac_exeext &&
12189 $as_test_x conftest$ac_exeext; then
12190 ac_cv_func_glGenFramebuffers=yes
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 ac_cv_func_glGenFramebuffers=no
12198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12199 conftest$ac_exeext conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
12202 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
12203 if test $ac_cv_func_glGenFramebuffers = yes; then
12205 cat >>confdefs.h <<\_ACEOF
12206 #define HAVE_OPENGL_FBO 1
12211 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
12212 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
12213 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 cat >conftest.$ac_ext <<_ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
12223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12224 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
12226 /* System header to define __stub macros and hopefully few prototypes,
12227 which can conflict with char glGenFramebuffersEXT (); below.
12228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12229 <limits.h> exists even on freestanding compilers. */
12232 # include <limits.h>
12234 # include <assert.h>
12237 #undef glGenFramebuffersEXT
12239 /* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12245 char glGenFramebuffersEXT ();
12246 /* The GNU C library defines this for functions which it implements
12247 to always fail with ENOSYS. Some functions are actually named
12248 something starting with __ and the normal name is an alias. */
12249 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
12256 return glGenFramebuffersEXT ();
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (ac_try="$ac_link"
12263 case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_link") 2>conftest.er1
12270 grep -v '^ *+' conftest.er1 >conftest.err
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } && {
12275 test -z "$ac_c_werror_flag" ||
12276 test ! -s conftest.err
12277 } && test -s conftest$ac_exeext &&
12278 $as_test_x conftest$ac_exeext; then
12279 ac_cv_func_glGenFramebuffersEXT=yes
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12284 ac_cv_func_glGenFramebuffersEXT=no
12287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12288 conftest$ac_exeext conftest.$ac_ext
12290 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
12291 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
12292 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
12294 cat >>confdefs.h <<\_ACEOF
12295 #define HAVE_OPENGL_FBO_EXT 1
12300 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
12301 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
12302 if test "${ac_cv_func_glCreateShader+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 cat >conftest.$ac_ext <<_ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
12312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12313 #define glCreateShader innocuous_glCreateShader
12315 /* System header to define __stub macros and hopefully few prototypes,
12316 which can conflict with char glCreateShader (); below.
12317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12318 <limits.h> exists even on freestanding compilers. */
12321 # include <limits.h>
12323 # include <assert.h>
12326 #undef glCreateShader
12328 /* Override any GCC internal prototype to avoid an error.
12329 Use char because int might match the return type of a GCC
12330 builtin and then its argument prototype would still apply. */
12334 char glCreateShader ();
12335 /* The GNU C library defines this for functions which it implements
12336 to always fail with ENOSYS. Some functions are actually named
12337 something starting with __ and the normal name is an alias. */
12338 #if defined __stub_glCreateShader || defined __stub___glCreateShader
12345 return glCreateShader ();
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (ac_try="$ac_link"
12352 case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_link") 2>conftest.er1
12359 grep -v '^ *+' conftest.er1 >conftest.err
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } && {
12364 test -z "$ac_c_werror_flag" ||
12365 test ! -s conftest.err
12366 } && test -s conftest$ac_exeext &&
12367 $as_test_x conftest$ac_exeext; then
12368 ac_cv_func_glCreateShader=yes
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12373 ac_cv_func_glCreateShader=no
12376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12377 conftest$ac_exeext conftest.$ac_ext
12379 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
12380 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
12381 if test $ac_cv_func_glCreateShader = yes; then
12383 cat >>confdefs.h <<\_ACEOF
12384 #define HAVE_OPENGL_SHADER 1
12389 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
12390 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
12391 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 cat >conftest.$ac_ext <<_ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
12401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12402 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
12404 /* System header to define __stub macros and hopefully few prototypes,
12405 which can conflict with char glCreateShaderObjectARB (); below.
12406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12407 <limits.h> exists even on freestanding compilers. */
12410 # include <limits.h>
12412 # include <assert.h>
12415 #undef glCreateShaderObjectARB
12417 /* Override any GCC internal prototype to avoid an error.
12418 Use char because int might match the return type of a GCC
12419 builtin and then its argument prototype would still apply. */
12423 char glCreateShaderObjectARB ();
12424 /* The GNU C library defines this for functions which it implements
12425 to always fail with ENOSYS. Some functions are actually named
12426 something starting with __ and the normal name is an alias. */
12427 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
12434 return glCreateShaderObjectARB ();
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (ac_try="$ac_link"
12441 case "(($ac_try" in
12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443 *) ac_try_echo=$ac_try;;
12445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446 (eval "$ac_link") 2>conftest.er1
12448 grep -v '^ *+' conftest.er1 >conftest.err
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } && {
12453 test -z "$ac_c_werror_flag" ||
12454 test ! -s conftest.err
12455 } && test -s conftest$ac_exeext &&
12456 $as_test_x conftest$ac_exeext; then
12457 ac_cv_func_glCreateShaderObjectARB=yes
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12462 ac_cv_func_glCreateShaderObjectARB=no
12465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12466 conftest$ac_exeext conftest.$ac_ext
12468 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
12469 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
12470 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
12472 cat >>confdefs.h <<\_ACEOF
12473 #define HAVE_OPENGL_SHADER_ARB 1
12478 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
12479 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
12480 if test "${ac_cv_func_glClampColorARB+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 cat >conftest.$ac_ext <<_ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
12490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12491 #define glClampColorARB innocuous_glClampColorARB
12493 /* System header to define __stub macros and hopefully few prototypes,
12494 which can conflict with char glClampColorARB (); below.
12495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12496 <limits.h> exists even on freestanding compilers. */
12499 # include <limits.h>
12501 # include <assert.h>
12504 #undef glClampColorARB
12506 /* Override any GCC internal prototype to avoid an error.
12507 Use char because int might match the return type of a GCC
12508 builtin and then its argument prototype would still apply. */
12512 char glClampColorARB ();
12513 /* The GNU C library defines this for functions which it implements
12514 to always fail with ENOSYS. Some functions are actually named
12515 something starting with __ and the normal name is an alias. */
12516 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
12523 return glClampColorARB ();
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (ac_try="$ac_link"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_link") 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } && {
12542 test -z "$ac_c_werror_flag" ||
12543 test ! -s conftest.err
12544 } && test -s conftest$ac_exeext &&
12545 $as_test_x conftest$ac_exeext; then
12546 ac_cv_func_glClampColorARB=yes
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12551 ac_cv_func_glClampColorARB=no
12554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12555 conftest$ac_exeext conftest.$ac_ext
12557 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
12558 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
12559 if test $ac_cv_func_glClampColorARB = yes; then
12561 cat >>confdefs.h <<\_ACEOF
12562 #define HAVE_OPENGL_CLAMP_COLOR 1
12567 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
12568 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
12569 if test "${ac_cv_func_glClearDepthf+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 cat >conftest.$ac_ext <<_ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12578 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
12579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12580 #define glClearDepthf innocuous_glClearDepthf
12582 /* System header to define __stub macros and hopefully few prototypes,
12583 which can conflict with char glClearDepthf (); below.
12584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12585 <limits.h> exists even on freestanding compilers. */
12588 # include <limits.h>
12590 # include <assert.h>
12593 #undef glClearDepthf
12595 /* Override any GCC internal prototype to avoid an error.
12596 Use char because int might match the return type of a GCC
12597 builtin and then its argument prototype would still apply. */
12601 char glClearDepthf ();
12602 /* The GNU C library defines this for functions which it implements
12603 to always fail with ENOSYS. Some functions are actually named
12604 something starting with __ and the normal name is an alias. */
12605 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
12612 return glClearDepthf ();
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624 (eval "$ac_link") 2>conftest.er1
12626 grep -v '^ *+' conftest.er1 >conftest.err
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } && {
12631 test -z "$ac_c_werror_flag" ||
12632 test ! -s conftest.err
12633 } && test -s conftest$ac_exeext &&
12634 $as_test_x conftest$ac_exeext; then
12635 ac_cv_func_glClearDepthf=yes
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12640 ac_cv_func_glClearDepthf=no
12643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12644 conftest$ac_exeext conftest.$ac_ext
12646 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
12647 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
12648 if test $ac_cv_func_glClearDepthf = yes; then
12650 cat >>confdefs.h <<\_ACEOF
12651 #define HAVE_OPENGL_CLEAR_DEPTHF 1
12656 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
12657 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
12658 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 cat >conftest.$ac_ext <<_ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12667 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
12668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12669 #define glAreTexturesResident innocuous_glAreTexturesResident
12671 /* System header to define __stub macros and hopefully few prototypes,
12672 which can conflict with char glAreTexturesResident (); below.
12673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12674 <limits.h> exists even on freestanding compilers. */
12677 # include <limits.h>
12679 # include <assert.h>
12682 #undef glAreTexturesResident
12684 /* Override any GCC internal prototype to avoid an error.
12685 Use char because int might match the return type of a GCC
12686 builtin and then its argument prototype would still apply. */
12690 char glAreTexturesResident ();
12691 /* The GNU C library defines this for functions which it implements
12692 to always fail with ENOSYS. Some functions are actually named
12693 something starting with __ and the normal name is an alias. */
12694 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
12701 return glAreTexturesResident ();
12706 rm -f conftest.$ac_objext conftest$ac_exeext
12707 if { (ac_try="$ac_link"
12708 case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713 (eval "$ac_link") 2>conftest.er1
12715 grep -v '^ *+' conftest.er1 >conftest.err
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && {
12720 test -z "$ac_c_werror_flag" ||
12721 test ! -s conftest.err
12722 } && test -s conftest$ac_exeext &&
12723 $as_test_x conftest$ac_exeext; then
12724 ac_cv_func_glAreTexturesResident=yes
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12729 ac_cv_func_glAreTexturesResident=no
12732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12733 conftest$ac_exeext conftest.$ac_ext
12735 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
12736 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
12737 if test $ac_cv_func_glAreTexturesResident = yes; then
12739 cat >>confdefs.h <<\_ACEOF
12740 #define HAVE_OPENGL_TEX_RESIDENT 1
12745 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
12746 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
12747 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 cat >conftest.$ac_ext <<_ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
12757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12758 #define glDrawBuffer innocuous_glDrawBuffer
12760 /* System header to define __stub macros and hopefully few prototypes,
12761 which can conflict with char glDrawBuffer (); below.
12762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12763 <limits.h> exists even on freestanding compilers. */
12766 # include <limits.h>
12768 # include <assert.h>
12771 #undef glDrawBuffer
12773 /* Override any GCC internal prototype to avoid an error.
12774 Use char because int might match the return type of a GCC
12775 builtin and then its argument prototype would still apply. */
12779 char glDrawBuffer ();
12780 /* The GNU C library defines this for functions which it implements
12781 to always fail with ENOSYS. Some functions are actually named
12782 something starting with __ and the normal name is an alias. */
12783 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
12790 return glDrawBuffer ();
12795 rm -f conftest.$ac_objext conftest$ac_exeext
12796 if { (ac_try="$ac_link"
12797 case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_link") 2>conftest.er1
12804 grep -v '^ *+' conftest.er1 >conftest.err
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } && {
12809 test -z "$ac_c_werror_flag" ||
12810 test ! -s conftest.err
12811 } && test -s conftest$ac_exeext &&
12812 $as_test_x conftest$ac_exeext; then
12813 ac_cv_func_glDrawBuffer=yes
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12818 ac_cv_func_glDrawBuffer=no
12821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12822 conftest$ac_exeext conftest.$ac_ext
12824 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
12825 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
12826 if test $ac_cv_func_glDrawBuffer = yes; then
12828 cat >>confdefs.h <<\_ACEOF
12829 #define HAVE_OPENGL_DRAW_BUFFER 1
12834 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
12835 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
12836 if test "${ac_cv_func_glTexEnvi+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 cat >conftest.$ac_ext <<_ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12845 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
12846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12847 #define glTexEnvi innocuous_glTexEnvi
12849 /* System header to define __stub macros and hopefully few prototypes,
12850 which can conflict with char glTexEnvi (); below.
12851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12852 <limits.h> exists even on freestanding compilers. */
12855 # include <limits.h>
12857 # include <assert.h>
12862 /* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
12869 /* The GNU C library defines this for functions which it implements
12870 to always fail with ENOSYS. Some functions are actually named
12871 something starting with __ and the normal name is an alias. */
12872 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
12879 return glTexEnvi ();
12884 rm -f conftest.$ac_objext conftest$ac_exeext
12885 if { (ac_try="$ac_link"
12886 case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_link") 2>conftest.er1
12893 grep -v '^ *+' conftest.er1 >conftest.err
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } && {
12898 test -z "$ac_c_werror_flag" ||
12899 test ! -s conftest.err
12900 } && test -s conftest$ac_exeext &&
12901 $as_test_x conftest$ac_exeext; then
12902 ac_cv_func_glTexEnvi=yes
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12907 ac_cv_func_glTexEnvi=no
12910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12911 conftest$ac_exeext conftest.$ac_ext
12913 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
12914 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
12915 if test $ac_cv_func_glTexEnvi = yes; then
12917 cat >>confdefs.h <<\_ACEOF
12918 #define HAVE_OPENGL_FIXEDFUNC 1
12924 if test "x$enable_translator" != "xno"; then
12926 i386|i486|i586|i686|x86_64)
12927 SH4_TRANSLATOR="x86"
12929 cat >>confdefs.h <<_ACEOF
12930 #define SH4_TRANSLATOR TARGET_X86
12937 if test "$SH4_TRANSLATOR" = "x86"; then
12939 BUILD_SH4X86_FALSE='#'
12941 BUILD_SH4X86_TRUE='#'
12942 BUILD_SH4X86_FALSE=
12946 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12947 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12948 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12949 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12953 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12955 # Is the header compilable?
12956 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
12957 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
12958 cat >conftest.$ac_ext <<_ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964 $ac_includes_default
12965 #include <CoreAudio/CoreAudio.h>
12967 rm -f conftest.$ac_objext
12968 if { (ac_try="$ac_compile"
12969 case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_compile") 2>conftest.er1
12976 grep -v '^ *+' conftest.er1 >conftest.err
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } && {
12981 test -z "$ac_c_werror_flag" ||
12982 test ! -s conftest.err
12983 } && test -s conftest.$ac_objext; then
12984 ac_header_compiler=yes
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12989 ac_header_compiler=no
12992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12994 echo "${ECHO_T}$ac_header_compiler" >&6; }
12996 # Is the header present?
12997 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
12998 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 #include <CoreAudio/CoreAudio.h>
13007 if { (ac_try="$ac_cpp conftest.$ac_ext"
13008 case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13015 grep -v '^ *+' conftest.er1 >conftest.err
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } >/dev/null && {
13020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13021 test ! -s conftest.err
13023 ac_header_preproc=yes
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 ac_header_preproc=no
13031 rm -f conftest.err conftest.$ac_ext
13032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13033 echo "${ECHO_T}$ac_header_preproc" >&6; }
13035 # So? What about this header?
13036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13038 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13039 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13040 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
13041 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
13042 ac_header_preproc=yes
13045 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
13046 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
13048 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
13049 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
13050 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
13051 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
13052 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13053 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
13054 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
13055 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
13056 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
13060 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
13061 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
13062 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
13067 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
13068 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
13071 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
13073 HAVE_CORE_AUDIO=yes
13074 LIBS="$LIBS -framework CoreAudio"
13075 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
13077 cat >>confdefs.h <<\_ACEOF
13078 #define HAVE_CORE_AUDIO 1
13088 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
13090 AUDIO_OSX_FALSE='#'
13097 if test "x$with_sdl" != "xno"; then
13100 { echo "$as_me:$LINENO: checking for SDL" >&5
13101 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
13103 if test -n "$SDL_CFLAGS"; then
13104 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13105 elif test -n "$PKG_CONFIG"; then
13106 if test -n "$PKG_CONFIG" && \
13107 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
13108 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; then
13112 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13119 if test -n "$SDL_LIBS"; then
13120 pkg_cv_SDL_LIBS="$SDL_LIBS"
13121 elif test -n "$PKG_CONFIG"; then
13122 if test -n "$PKG_CONFIG" && \
13123 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
13124 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; then
13128 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13138 if test $pkg_failed = yes; then
13140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13141 _pkg_short_errors_supported=yes
13143 _pkg_short_errors_supported=no
13145 if test $_pkg_short_errors_supported = yes; then
13146 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
13148 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
13150 # Put the nasty error message in config.log where it belongs
13151 echo "$SDL_PKG_ERRORS" >&5
13153 { echo "$as_me:$LINENO: result: no" >&5
13154 echo "${ECHO_T}no" >&6; }
13156 if test "x$with_sdl" = "xyes"; then
13157 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
13158 See \`config.log' for more details." >&5
13159 echo "$as_me: error: \"SDL libraries could not be found (but were required)
13160 See \`config.log' for more details." >&2;}
13161 { (exit 1); exit 1; }; }
13164 elif test $pkg_failed = untried; then
13166 if test "x$with_sdl" = "xyes"; then
13167 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
13168 See \`config.log' for more details." >&5
13169 echo "$as_me: error: \"SDL libraries could not be found (but were required)
13170 See \`config.log' for more details." >&2;}
13171 { (exit 1); exit 1; }; }
13175 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13176 SDL_LIBS=$pkg_cv_SDL_LIBS
13177 { echo "$as_me:$LINENO: result: yes" >&5
13178 echo "${ECHO_T}yes" >&6; }
13181 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
13183 cat >>confdefs.h <<\_ACEOF
13192 if test "$HAVE_SDL" = 'yes' ; then
13194 AUDIO_SDL_FALSE='#'
13201 if test "x$with_pulse" != "xno"; then
13204 { echo "$as_me:$LINENO: checking for PULSE" >&5
13205 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
13207 if test -n "$PULSE_CFLAGS"; then
13208 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
13209 elif test -n "$PKG_CONFIG"; then
13210 if test -n "$PKG_CONFIG" && \
13211 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
13212 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; then
13216 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
13223 if test -n "$PULSE_LIBS"; then
13224 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
13225 elif test -n "$PKG_CONFIG"; then
13226 if test -n "$PKG_CONFIG" && \
13227 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
13228 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; then
13232 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
13242 if test $pkg_failed = yes; then
13244 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13245 _pkg_short_errors_supported=yes
13247 _pkg_short_errors_supported=no
13249 if test $_pkg_short_errors_supported = yes; then
13250 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
13252 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
13254 # Put the nasty error message in config.log where it belongs
13255 echo "$PULSE_PKG_ERRORS" >&5
13257 { echo "$as_me:$LINENO: result: no" >&5
13258 echo "${ECHO_T}no" >&6; }
13260 if test "x$with_pulse" = "xyes"; then
13261 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
13262 See \`config.log' for more details." >&5
13263 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
13264 See \`config.log' for more details." >&2;}
13265 { (exit 1); exit 1; }; }
13268 elif test $pkg_failed = untried; then
13270 if test "x$with_pulse" = "xyes"; then
13271 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
13272 See \`config.log' for more details." >&5
13273 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
13274 See \`config.log' for more details." >&2;}
13275 { (exit 1); exit 1; }; }
13279 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
13280 PULSE_LIBS=$pkg_cv_PULSE_LIBS
13281 { echo "$as_me:$LINENO: result: yes" >&5
13282 echo "${ECHO_T}yes" >&6; }
13285 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_PULSE 1
13296 if test "$HAVE_PULSE" = 'yes' ; then
13298 AUDIO_PULSE_FALSE='#'
13300 AUDIO_PULSE_TRUE='#'
13305 if test "x$with_esd" != "xno"; then
13308 { echo "$as_me:$LINENO: checking for ESOUND" >&5
13309 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
13311 if test -n "$ESOUND_CFLAGS"; then
13312 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
13313 elif test -n "$PKG_CONFIG"; then
13314 if test -n "$PKG_CONFIG" && \
13315 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
13316 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; then
13320 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
13327 if test -n "$ESOUND_LIBS"; then
13328 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
13329 elif test -n "$PKG_CONFIG"; then
13330 if test -n "$PKG_CONFIG" && \
13331 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
13332 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; then
13336 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
13346 if test $pkg_failed = yes; then
13348 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13349 _pkg_short_errors_supported=yes
13351 _pkg_short_errors_supported=no
13353 if test $_pkg_short_errors_supported = yes; then
13354 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
13356 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
13358 # Put the nasty error message in config.log where it belongs
13359 echo "$ESOUND_PKG_ERRORS" >&5
13361 { echo "$as_me:$LINENO: result: no" >&5
13362 echo "${ECHO_T}no" >&6; }
13364 if test "x$with_esd" = "xyes"; then
13365 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13366 See \`config.log' for more details." >&5
13367 echo "$as_me: error: ESounD audio package could not be found (but was required)
13368 See \`config.log' for more details." >&2;}
13369 { (exit 1); exit 1; }; }
13372 elif test $pkg_failed = untried; then
13374 if test "x$with_esd" = "xyes"; then
13375 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13376 See \`config.log' for more details." >&5
13377 echo "$as_me: error: ESounD audio package could not be found (but was required)
13378 See \`config.log' for more details." >&2;}
13379 { (exit 1); exit 1; }; }
13383 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
13384 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
13385 { echo "$as_me:$LINENO: result: yes" >&5
13386 echo "${ECHO_T}yes" >&6; }
13389 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
13391 cat >>confdefs.h <<\_ACEOF
13392 #define HAVE_ESOUND 1
13400 if test "$HAVE_ESOUND" = 'yes' ; then
13402 AUDIO_ESOUND_FALSE='#'
13404 AUDIO_ESOUND_TRUE='#'
13405 AUDIO_ESOUND_FALSE=
13411 { echo "$as_me:$LINENO: checking for ALSA" >&5
13412 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
13414 if test -n "$ALSA_CFLAGS"; then
13415 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
13416 elif test -n "$PKG_CONFIG"; then
13417 if test -n "$PKG_CONFIG" && \
13418 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13419 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; then
13423 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
13430 if test -n "$ALSA_LIBS"; then
13431 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
13432 elif test -n "$PKG_CONFIG"; then
13433 if test -n "$PKG_CONFIG" && \
13434 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13435 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; then
13439 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
13449 if test $pkg_failed = yes; then
13451 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13452 _pkg_short_errors_supported=yes
13454 _pkg_short_errors_supported=no
13456 if test $_pkg_short_errors_supported = yes; then
13457 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
13459 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
13461 # Put the nasty error message in config.log where it belongs
13462 echo "$ALSA_PKG_ERRORS" >&5
13464 { echo "$as_me:$LINENO: result: no" >&5
13465 echo "${ECHO_T}no" >&6; }
13467 elif test $pkg_failed = untried; then
13470 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
13471 ALSA_LIBS=$pkg_cv_ALSA_LIBS
13472 { echo "$as_me:$LINENO: result: yes" >&5
13473 echo "${ECHO_T}yes" >&6; }
13476 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
13478 cat >>confdefs.h <<\_ACEOF
13479 #define HAVE_ALSA 1
13485 if test "$HAVE_ALSA" = 'yes' ; then
13487 AUDIO_ALSA_FALSE='#'
13489 AUDIO_ALSA_TRUE='#'
13495 if test "$ANDROID_BUILD" != "yes"; then
13496 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13497 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13498 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13499 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13503 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13505 # Is the header compilable?
13506 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
13507 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
13508 cat >conftest.$ac_ext <<_ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13514 $ac_includes_default
13515 #include <linux/cdrom.h>
13517 rm -f conftest.$ac_objext
13518 if { (ac_try="$ac_compile"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_compile") 2>conftest.er1
13526 grep -v '^ *+' conftest.er1 >conftest.err
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } && {
13531 test -z "$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13533 } && test -s conftest.$ac_objext; then
13534 ac_header_compiler=yes
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_header_compiler=no
13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13544 echo "${ECHO_T}$ac_header_compiler" >&6; }
13546 # Is the header present?
13547 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
13548 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
13549 cat >conftest.$ac_ext <<_ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 #include <linux/cdrom.h>
13557 if { (ac_try="$ac_cpp conftest.$ac_ext"
13558 case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13565 grep -v '^ *+' conftest.er1 >conftest.err
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } >/dev/null && {
13570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13571 test ! -s conftest.err
13573 ac_header_preproc=yes
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 ac_header_preproc=no
13581 rm -f conftest.err conftest.$ac_ext
13582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13583 echo "${ECHO_T}$ac_header_preproc" >&6; }
13585 # So? What about this header?
13586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13588 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
13589 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
13591 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
13592 ac_header_preproc=yes
13595 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
13596 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
13597 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
13598 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
13600 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
13602 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
13603 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
13604 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
13605 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
13606 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
13610 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13611 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13612 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 ac_cv_header_linux_cdrom_h=$ac_header_preproc
13617 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13618 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13621 if test $ac_cv_header_linux_cdrom_h = yes; then
13624 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
13625 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
13626 old_CFLAGS="$CFLAGS"
13627 CFLAGS="$CFLAGS $STDCFLAG"
13628 cat >conftest.$ac_ext <<_ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h. */
13634 #include <linux/cdrom.h>
13643 rm -f conftest.$ac_objext
13644 if { (ac_try="$ac_compile"
13645 case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_compile") 2>conftest.er1
13652 grep -v '^ *+' conftest.er1 >conftest.err
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } && {
13657 test -z "$ac_c_werror_flag" ||
13658 test ! -s conftest.err
13659 } && test -s conftest.$ac_objext; then
13660 { echo "$as_me:$LINENO: result: Yes" >&5
13661 echo "${ECHO_T}Yes" >&6; }
13663 echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13667 { echo "$as_me:$LINENO: result: No" >&5
13668 echo "${ECHO_T}No" >&6; }
13669 STDCFLAG="-std=gnu99"
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673 CFLAGS="$old_CFLAGS"
13680 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13681 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13682 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13683 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13687 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13689 # Is the header compilable?
13690 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
13691 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
13692 cat >conftest.$ac_ext <<_ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13698 $ac_includes_default
13699 #include <IOKit/IOKitLib.h>
13701 rm -f conftest.$ac_objext
13702 if { (ac_try="$ac_compile"
13703 case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_compile") 2>conftest.er1
13710 grep -v '^ *+' conftest.er1 >conftest.err
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } && {
13715 test -z "$ac_c_werror_flag" ||
13716 test ! -s conftest.err
13717 } && test -s conftest.$ac_objext; then
13718 ac_header_compiler=yes
13720 echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13723 ac_header_compiler=no
13726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13728 echo "${ECHO_T}$ac_header_compiler" >&6; }
13730 # Is the header present?
13731 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
13732 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
13733 cat >conftest.$ac_ext <<_ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13739 #include <IOKit/IOKitLib.h>
13741 if { (ac_try="$ac_cpp conftest.$ac_ext"
13742 case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13749 grep -v '^ *+' conftest.er1 >conftest.err
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } >/dev/null && {
13754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13755 test ! -s conftest.err
13757 ac_header_preproc=yes
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_header_preproc=no
13765 rm -f conftest.err conftest.$ac_ext
13766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13767 echo "${ECHO_T}$ac_header_preproc" >&6; }
13769 # So? What about this header?
13770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13772 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13773 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
13775 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
13776 ac_header_preproc=yes
13779 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
13780 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
13781 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
13782 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
13783 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
13784 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
13786 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
13788 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
13790 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
13794 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13795 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13796 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13797 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
13801 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13802 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13805 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
13808 LIBS="$LIBS -framework IOKit"
13817 if test "x$CDROM_DRIVER" = "xlinux"; then
13819 CDROM_LINUX_FALSE='#'
13821 CDROM_LINUX_TRUE='#'
13827 if test "x$CDROM_DRIVER" = "xosx"; then
13829 CDROM_OSX_FALSE='#'
13837 if test "x$CDROM_DRIVER" = "x"; then
13839 CDROM_NONE_FALSE='#'
13841 CDROM_NONE_TRUE='#'
13845 if test "x$CDROM_DRIVER" = "xlinux"; then
13847 cat >>confdefs.h <<\_ACEOF
13848 #define HAVE_LINUX_CDROM 1
13853 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13854 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13855 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13856 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13860 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13862 # Is the header compilable?
13863 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
13864 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
13865 cat >conftest.$ac_ext <<_ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13871 $ac_includes_default
13872 #include <linux/joystick.h>
13874 rm -f conftest.$ac_objext
13875 if { (ac_try="$ac_compile"
13876 case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_compile") 2>conftest.er1
13883 grep -v '^ *+' conftest.er1 >conftest.err
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } && {
13888 test -z "$ac_c_werror_flag" ||
13889 test ! -s conftest.err
13890 } && test -s conftest.$ac_objext; then
13891 ac_header_compiler=yes
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13896 ac_header_compiler=no
13899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13901 echo "${ECHO_T}$ac_header_compiler" >&6; }
13903 # Is the header present?
13904 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
13905 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 #include <linux/joystick.h>
13914 if { (ac_try="$ac_cpp conftest.$ac_ext"
13915 case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13922 grep -v '^ *+' conftest.er1 >conftest.err
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } >/dev/null && {
13927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13928 test ! -s conftest.err
13930 ac_header_preproc=yes
13932 echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13935 ac_header_preproc=no
13938 rm -f conftest.err conftest.$ac_ext
13939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13940 echo "${ECHO_T}$ac_header_preproc" >&6; }
13942 # So? What about this header?
13943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13945 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
13946 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13947 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
13948 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
13949 ac_header_preproc=yes
13952 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
13953 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
13954 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
13955 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
13956 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
13957 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
13958 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
13959 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
13960 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
13961 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
13963 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
13967 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13968 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13969 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 ac_cv_header_linux_joystick_h=$ac_header_preproc
13974 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13975 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13978 if test $ac_cv_header_linux_joystick_h = yes; then
13980 HAVE_LINUX_JOYSTICK_H=yes
13982 cat >>confdefs.h <<\_ACEOF
13983 #define HAVE_LINUX_JOYSTICK 1
13986 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
13988 echo "Linux Joystick support not found, building without it."
13994 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
13996 JOY_LINUX_FALSE='#'
14003 if test "x$with_lirc" != "xno"; then
14004 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14005 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14006 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
14007 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14011 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
14013 # Is the header compilable?
14014 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
14015 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
14016 cat >conftest.$ac_ext <<_ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14022 $ac_includes_default
14023 #include <lirc/lirc_client.h>
14025 rm -f conftest.$ac_objext
14026 if { (ac_try="$ac_compile"
14027 case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 (eval "$ac_compile") 2>conftest.er1
14034 grep -v '^ *+' conftest.er1 >conftest.err
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } && {
14039 test -z "$ac_c_werror_flag" ||
14040 test ! -s conftest.err
14041 } && test -s conftest.$ac_objext; then
14042 ac_header_compiler=yes
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ac_header_compiler=no
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14052 echo "${ECHO_T}$ac_header_compiler" >&6; }
14054 # Is the header present?
14055 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
14056 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #include <lirc/lirc_client.h>
14065 if { (ac_try="$ac_cpp conftest.$ac_ext"
14066 case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14073 grep -v '^ *+' conftest.er1 >conftest.err
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } >/dev/null && {
14078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14079 test ! -s conftest.err
14081 ac_header_preproc=yes
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_header_preproc=no
14089 rm -f conftest.err conftest.$ac_ext
14090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14091 echo "${ECHO_T}$ac_header_preproc" >&6; }
14093 # So? What about this header?
14094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14096 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
14097 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
14099 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
14100 ac_header_preproc=yes
14103 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
14104 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
14105 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
14106 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
14107 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
14108 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
14109 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
14110 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
14111 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14112 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
14114 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
14118 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14119 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
14120 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
14125 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14126 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
14129 if test $ac_cv_header_lirc_lirc_client_h = yes; then
14131 HAVE_LIRC_CLIENT_H=yes
14133 cat >>confdefs.h <<\_ACEOF
14134 #define HAVE_LIRC 1
14137 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
14140 echo "LIRC support not found, building without it."
14147 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
14149 INPUT_LIRC_FALSE='#'
14151 INPUT_LIRC_TRUE='#'
14156 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
14157 set dummy sh-elf-gcc; ac_word=$2
14158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14160 if test "${ac_cv_path_SHCC+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
14168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14169 for as_dir in $PATH
14172 test -z "$as_dir" && as_dir=.
14173 for ac_exec_ext in '' $ac_executable_extensions; do
14174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14175 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
14176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14186 SHCC=$ac_cv_path_SHCC
14187 if test -n "$SHCC"; then
14188 { echo "$as_me:$LINENO: result: $SHCC" >&5
14189 echo "${ECHO_T}$SHCC" >&6; }
14191 { echo "$as_me:$LINENO: result: no" >&5
14192 echo "${ECHO_T}no" >&6; }
14196 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
14197 set dummy sh-elf-ld; ac_word=$2
14198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14200 if test "${ac_cv_path_SHLD+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
14208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14209 for as_dir in $PATH
14212 test -z "$as_dir" && as_dir=.
14213 for ac_exec_ext in '' $ac_executable_extensions; do
14214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14215 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
14216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14226 SHLD=$ac_cv_path_SHLD
14227 if test -n "$SHLD"; then
14228 { echo "$as_me:$LINENO: result: $SHLD" >&5
14229 echo "${ECHO_T}$SHLD" >&6; }
14231 { echo "$as_me:$LINENO: result: no" >&5
14232 echo "${ECHO_T}no" >&6; }
14236 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
14237 set dummy sh-elf-objcopy; ac_word=$2
14238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14240 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
14248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249 for as_dir in $PATH
14252 test -z "$as_dir" && as_dir=.
14253 for ac_exec_ext in '' $ac_executable_extensions; do
14254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14255 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
14267 if test -n "$SHOBJCOPY"; then
14268 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
14269 echo "${ECHO_T}$SHOBJCOPY" >&6; }
14271 { echo "$as_me:$LINENO: result: no" >&5
14272 echo "${ECHO_T}no" >&6; }
14276 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
14277 set dummy arm-elf-gcc; ac_word=$2
14278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14280 if test "${ac_cv_path_ARMCC+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
14288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14289 for as_dir in $PATH
14292 test -z "$as_dir" && as_dir=.
14293 for ac_exec_ext in '' $ac_executable_extensions; do
14294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14295 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
14296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14306 ARMCC=$ac_cv_path_ARMCC
14307 if test -n "$ARMCC"; then
14308 { echo "$as_me:$LINENO: result: $ARMCC" >&5
14309 echo "${ECHO_T}$ARMCC" >&6; }
14311 { echo "$as_me:$LINENO: result: no" >&5
14312 echo "${ECHO_T}no" >&6; }
14316 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
14317 set dummy arm-elf-ld; ac_word=$2
14318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14320 if test "${ac_cv_path_ARMLD+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
14328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329 for as_dir in $PATH
14332 test -z "$as_dir" && as_dir=.
14333 for ac_exec_ext in '' $ac_executable_extensions; do
14334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14335 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
14336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14346 ARMLD=$ac_cv_path_ARMLD
14347 if test -n "$ARMLD"; then
14348 { echo "$as_me:$LINENO: result: $ARMLD" >&5
14349 echo "${ECHO_T}$ARMLD" >&6; }
14351 { echo "$as_me:$LINENO: result: no" >&5
14352 echo "${ECHO_T}no" >&6; }
14356 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
14357 set dummy arm-elf-objcopy; ac_word=$2
14358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14360 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 case $ARMOBJCOPY in
14365 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
14368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14369 for as_dir in $PATH
14372 test -z "$as_dir" && as_dir=.
14373 for ac_exec_ext in '' $ac_executable_extensions; do
14374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14375 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14386 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
14387 if test -n "$ARMOBJCOPY"; then
14388 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
14389 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
14391 { echo "$as_me:$LINENO: result: no" >&5
14392 echo "${ECHO_T}no" >&6; }
14397 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
14399 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
14403 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
14405 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
14411 if test "$BUILD_SH" = "yes"; then
14412 BUILD_SYSTEST_TRUE=
14413 BUILD_SYSTEST_FALSE='#'
14415 BUILD_SYSTEST_TRUE='#'
14416 BUILD_SYSTEST_FALSE=
14421 if test "$BUILD_ARM" = "yes"; then
14422 BUILD_ARMTEST_TRUE=
14423 BUILD_ARMTEST_FALSE='#'
14425 BUILD_ARMTEST_TRUE='#'
14426 BUILD_ARMTEST_FALSE=
14430 CFLAGS="$CFLAGS $STDCFLAG"
14432 GETTEXT_PACKAGE=lxdream
14433 LXDREAM_LIBS="$LIBS"
14438 cat >>confdefs.h <<_ACEOF
14439 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14443 ALL_LINGUAS="de es it nl pt_BR"
14446 for ac_header in locale.h
14448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 ac_res=`eval echo '${'$as_ac_Header'}'`
14456 { echo "$as_me:$LINENO: result: $ac_res" >&5
14457 echo "${ECHO_T}$ac_res" >&6; }
14459 # Is the header compilable?
14460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14462 cat >conftest.$ac_ext <<_ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14468 $ac_includes_default
14469 #include <$ac_header>
14471 rm -f conftest.$ac_objext
14472 if { (ac_try="$ac_compile"
14473 case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_compile") 2>conftest.er1
14480 grep -v '^ *+' conftest.er1 >conftest.err
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && {
14485 test -z "$ac_c_werror_flag" ||
14486 test ! -s conftest.err
14487 } && test -s conftest.$ac_objext; then
14488 ac_header_compiler=yes
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 ac_header_compiler=no
14496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14498 echo "${ECHO_T}$ac_header_compiler" >&6; }
14500 # Is the header present?
14501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14503 cat >conftest.$ac_ext <<_ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 #include <$ac_header>
14511 if { (ac_try="$ac_cpp conftest.$ac_ext"
14512 case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } >/dev/null && {
14524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14527 ac_header_preproc=yes
14529 echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14532 ac_header_preproc=no
14535 rm -f conftest.err conftest.$ac_ext
14536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14537 echo "${ECHO_T}$ac_header_preproc" >&6; }
14539 # So? What about this header?
14540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14546 ac_header_preproc=yes
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 eval "$as_ac_Header=\$ac_header_preproc"
14571 ac_res=`eval echo '${'$as_ac_Header'}'`
14572 { echo "$as_me:$LINENO: result: $ac_res" >&5
14573 echo "${ECHO_T}$ac_res" >&6; }
14576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14577 cat >>confdefs.h <<_ACEOF
14578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14585 if test $ac_cv_header_locale_h = yes; then
14586 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14587 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
14588 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 cat >conftest.$ac_ext <<_ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 #include <locale.h>
14606 rm -f conftest.$ac_objext conftest$ac_exeext
14607 if { (ac_try="$ac_link"
14608 case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_link") 2>conftest.er1
14615 grep -v '^ *+' conftest.er1 >conftest.err
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } && {
14620 test -z "$ac_c_werror_flag" ||
14621 test ! -s conftest.err
14622 } && test -s conftest$ac_exeext &&
14623 $as_test_x conftest$ac_exeext; then
14624 am_cv_val_LC_MESSAGES=yes
14626 echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14629 am_cv_val_LC_MESSAGES=no
14632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14633 conftest$ac_exeext conftest.$ac_ext
14635 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14636 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
14637 if test $am_cv_val_LC_MESSAGES = yes; then
14639 cat >>confdefs.h <<\_ACEOF
14640 #define HAVE_LC_MESSAGES 1
14648 gt_cv_have_gettext=no
14654 if test "${ac_cv_header_libintl_h+set}" = set; then
14655 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14656 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14657 if test "${ac_cv_header_libintl_h+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14661 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14663 # Is the header compilable?
14664 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
14665 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
14666 cat >conftest.$ac_ext <<_ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14672 $ac_includes_default
14673 #include <libintl.h>
14675 rm -f conftest.$ac_objext
14676 if { (ac_try="$ac_compile"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_compile") 2>conftest.er1
14684 grep -v '^ *+' conftest.er1 >conftest.err
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } && {
14689 test -z "$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14691 } && test -s conftest.$ac_objext; then
14692 ac_header_compiler=yes
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14697 ac_header_compiler=no
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14702 echo "${ECHO_T}$ac_header_compiler" >&6; }
14704 # Is the header present?
14705 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
14706 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
14707 cat >conftest.$ac_ext <<_ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 #include <libintl.h>
14715 if { (ac_try="$ac_cpp conftest.$ac_ext"
14716 case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14723 grep -v '^ *+' conftest.er1 >conftest.err
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } >/dev/null && {
14728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14729 test ! -s conftest.err
14731 ac_header_preproc=yes
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_header_preproc=no
14739 rm -f conftest.err conftest.$ac_ext
14740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14741 echo "${ECHO_T}$ac_header_preproc" >&6; }
14743 # So? What about this header?
14744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14746 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14747 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
14749 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
14750 ac_header_preproc=yes
14753 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14754 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14755 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14756 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14757 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
14758 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
14760 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14762 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
14764 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
14768 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14769 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14770 if test "${ac_cv_header_libintl_h+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 ac_cv_header_libintl_h=$ac_header_preproc
14775 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14776 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14779 if test $ac_cv_header_libintl_h = yes; then
14780 gt_cv_func_dgettext_libintl="no"
14781 libintl_extra_libs=""
14784 # First check in libc
14786 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
14787 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
14788 if test "${gt_cv_func_ngettext_libc+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 cat >conftest.$ac_ext <<_ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14798 #include <libintl.h>
14803 return !ngettext ("","", 1)
14808 rm -f conftest.$ac_objext conftest$ac_exeext
14809 if { (ac_try="$ac_link"
14810 case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_link") 2>conftest.er1
14817 grep -v '^ *+' conftest.er1 >conftest.err
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } && {
14822 test -z "$ac_c_werror_flag" ||
14823 test ! -s conftest.err
14824 } && test -s conftest$ac_exeext &&
14825 $as_test_x conftest$ac_exeext; then
14826 gt_cv_func_ngettext_libc=yes
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14831 gt_cv_func_ngettext_libc=no
14834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14835 conftest$ac_exeext conftest.$ac_ext
14838 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
14839 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
14841 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14842 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
14843 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
14844 if test "${gt_cv_func_dgettext_libc+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 cat >conftest.$ac_ext <<_ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14854 #include <libintl.h>
14859 return !dgettext ("","")
14864 rm -f conftest.$ac_objext conftest$ac_exeext
14865 if { (ac_try="$ac_link"
14866 case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_link") 2>conftest.er1
14873 grep -v '^ *+' conftest.er1 >conftest.err
14875 cat conftest.err >&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } && {
14878 test -z "$ac_c_werror_flag" ||
14879 test ! -s conftest.err
14880 } && test -s conftest$ac_exeext &&
14881 $as_test_x conftest$ac_exeext; then
14882 gt_cv_func_dgettext_libc=yes
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14887 gt_cv_func_dgettext_libc=no
14890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14891 conftest$ac_exeext conftest.$ac_ext
14894 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
14895 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
14898 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14900 for ac_func in bind_textdomain_codeset
14902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 cat >conftest.$ac_ext <<_ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14916 #define $ac_func innocuous_$ac_func
14918 /* System header to define __stub macros and hopefully few prototypes,
14919 which can conflict with char $ac_func (); below.
14920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14921 <limits.h> exists even on freestanding compilers. */
14924 # include <limits.h>
14926 # include <assert.h>
14931 /* Override any GCC internal prototype to avoid an error.
14932 Use char because int might match the return type of a GCC
14933 builtin and then its argument prototype would still apply. */
14938 /* The GNU C library defines this for functions which it implements
14939 to always fail with ENOSYS. Some functions are actually named
14940 something starting with __ and the normal name is an alias. */
14941 #if defined __stub_$ac_func || defined __stub___$ac_func
14948 return $ac_func ();
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (ac_try="$ac_link"
14955 case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_link") 2>conftest.er1
14962 grep -v '^ *+' conftest.er1 >conftest.err
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } && {
14967 test -z "$ac_c_werror_flag" ||
14968 test ! -s conftest.err
14969 } && test -s conftest$ac_exeext &&
14970 $as_test_x conftest$ac_exeext; then
14971 eval "$as_ac_var=yes"
14973 echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14976 eval "$as_ac_var=no"
14979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14980 conftest$ac_exeext conftest.$ac_ext
14982 ac_res=`eval echo '${'$as_ac_var'}'`
14983 { echo "$as_me:$LINENO: result: $ac_res" >&5
14984 echo "${ECHO_T}$ac_res" >&6; }
14985 if test `eval echo '${'$as_ac_var'}'` = yes; then
14986 cat >>confdefs.h <<_ACEOF
14987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14996 # If we don't have everything we want, check in libintl
14998 if test "$gt_cv_func_dgettext_libc" != "yes" \
14999 || test "$gt_cv_func_ngettext_libc" != "yes" \
15000 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
15002 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
15003 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
15004 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 ac_check_lib_save_LIBS=$LIBS
15008 LIBS="-lintl $LIBS"
15009 cat >conftest.$ac_ext <<_ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15016 /* Override any GCC internal prototype to avoid an error.
15017 Use char because int might match the return type of a GCC
15018 builtin and then its argument prototype would still apply. */
15022 char bindtextdomain ();
15026 return bindtextdomain ();
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (ac_try="$ac_link"
15033 case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_link") 2>conftest.er1
15040 grep -v '^ *+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && {
15045 test -z "$ac_c_werror_flag" ||
15046 test ! -s conftest.err
15047 } && test -s conftest$ac_exeext &&
15048 $as_test_x conftest$ac_exeext; then
15049 ac_cv_lib_intl_bindtextdomain=yes
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 ac_cv_lib_intl_bindtextdomain=no
15057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15058 conftest$ac_exeext conftest.$ac_ext
15059 LIBS=$ac_check_lib_save_LIBS
15061 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
15062 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
15063 if test $ac_cv_lib_intl_bindtextdomain = yes; then
15064 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
15065 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
15066 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 ac_check_lib_save_LIBS=$LIBS
15070 LIBS="-lintl $LIBS"
15071 cat >conftest.$ac_ext <<_ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15078 /* Override any GCC internal prototype to avoid an error.
15079 Use char because int might match the return type of a GCC
15080 builtin and then its argument prototype would still apply. */
15088 return ngettext ();
15093 rm -f conftest.$ac_objext conftest$ac_exeext
15094 if { (ac_try="$ac_link"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_link") 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && {
15107 test -z "$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 } && test -s conftest$ac_exeext &&
15110 $as_test_x conftest$ac_exeext; then
15111 ac_cv_lib_intl_ngettext=yes
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 ac_cv_lib_intl_ngettext=no
15119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15120 conftest$ac_exeext conftest.$ac_ext
15121 LIBS=$ac_check_lib_save_LIBS
15123 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
15124 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
15125 if test $ac_cv_lib_intl_ngettext = yes; then
15126 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
15127 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
15128 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15131 ac_check_lib_save_LIBS=$LIBS
15132 LIBS="-lintl $LIBS"
15133 cat >conftest.$ac_ext <<_ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15140 /* Override any GCC internal prototype to avoid an error.
15141 Use char because int might match the return type of a GCC
15142 builtin and then its argument prototype would still apply. */
15150 return dgettext ();
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_link") 2>conftest.er1
15164 grep -v '^ *+' conftest.er1 >conftest.err
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } && {
15169 test -z "$ac_c_werror_flag" ||
15170 test ! -s conftest.err
15171 } && test -s conftest$ac_exeext &&
15172 $as_test_x conftest$ac_exeext; then
15173 ac_cv_lib_intl_dgettext=yes
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15178 ac_cv_lib_intl_dgettext=no
15181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15182 conftest$ac_exeext conftest.$ac_ext
15183 LIBS=$ac_check_lib_save_LIBS
15185 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
15186 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
15187 if test $ac_cv_lib_intl_dgettext = yes; then
15188 gt_cv_func_dgettext_libintl=yes
15196 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
15197 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
15198 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
15199 { echo "$as_me:$LINENO: result: " >&5
15200 echo "${ECHO_T}" >&6; }
15201 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
15202 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
15203 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 ac_check_lib_save_LIBS=$LIBS
15207 LIBS="-lintl -liconv $LIBS"
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15215 /* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply. */
15225 return ngettext ();
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } && {
15244 test -z "$ac_c_werror_flag" ||
15245 test ! -s conftest.err
15246 } && test -s conftest$ac_exeext &&
15247 $as_test_x conftest$ac_exeext; then
15248 ac_cv_lib_intl_ngettext=yes
15250 echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15253 ac_cv_lib_intl_ngettext=no
15256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15257 conftest$ac_exeext conftest.$ac_ext
15258 LIBS=$ac_check_lib_save_LIBS
15260 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
15261 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
15262 if test $ac_cv_lib_intl_ngettext = yes; then
15263 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
15264 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
15265 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 ac_check_lib_save_LIBS=$LIBS
15269 LIBS="-lintl -liconv $LIBS"
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15277 /* Override any GCC internal prototype to avoid an error.
15278 Use char because int might match the return type of a GCC
15279 builtin and then its argument prototype would still apply. */
15287 return dcgettext ();
15292 rm -f conftest.$ac_objext conftest$ac_exeext
15293 if { (ac_try="$ac_link"
15294 case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_link") 2>conftest.er1
15301 grep -v '^ *+' conftest.er1 >conftest.err
15303 cat conftest.err >&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } && {
15306 test -z "$ac_c_werror_flag" ||
15307 test ! -s conftest.err
15308 } && test -s conftest$ac_exeext &&
15309 $as_test_x conftest$ac_exeext; then
15310 ac_cv_lib_intl_dcgettext=yes
15312 echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15315 ac_cv_lib_intl_dcgettext=no
15318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15319 conftest$ac_exeext conftest.$ac_ext
15320 LIBS=$ac_check_lib_save_LIBS
15322 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
15323 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
15324 if test $ac_cv_lib_intl_dcgettext = yes; then
15325 gt_cv_func_dgettext_libintl=yes
15326 libintl_extra_libs=-liconv
15338 # If we found libintl, then check in it for bind_textdomain_codeset();
15339 # we'll prefer libc if neither have bind_textdomain_codeset(),
15340 # and both have dgettext and ngettext
15342 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
15343 glib_save_LIBS="$LIBS"
15344 LIBS="$LIBS -lintl $libintl_extra_libs"
15345 unset ac_cv_func_bind_textdomain_codeset
15347 for ac_func in bind_textdomain_codeset
15349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15363 #define $ac_func innocuous_$ac_func
15365 /* System header to define __stub macros and hopefully few prototypes,
15366 which can conflict with char $ac_func (); below.
15367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15368 <limits.h> exists even on freestanding compilers. */
15371 # include <limits.h>
15373 # include <assert.h>
15378 /* Override any GCC internal prototype to avoid an error.
15379 Use char because int might match the return type of a GCC
15380 builtin and then its argument prototype would still apply. */
15385 /* The GNU C library defines this for functions which it implements
15386 to always fail with ENOSYS. Some functions are actually named
15387 something starting with __ and the normal name is an alias. */
15388 #if defined __stub_$ac_func || defined __stub___$ac_func
15395 return $ac_func ();
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407 (eval "$ac_link") 2>conftest.er1
15409 grep -v '^ *+' conftest.er1 >conftest.err
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } && {
15414 test -z "$ac_c_werror_flag" ||
15415 test ! -s conftest.err
15416 } && test -s conftest$ac_exeext &&
15417 $as_test_x conftest$ac_exeext; then
15418 eval "$as_ac_var=yes"
15420 echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15423 eval "$as_ac_var=no"
15426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15427 conftest$ac_exeext conftest.$ac_ext
15429 ac_res=`eval echo '${'$as_ac_var'}'`
15430 { echo "$as_me:$LINENO: result: $ac_res" >&5
15431 echo "${ECHO_T}$ac_res" >&6; }
15432 if test `eval echo '${'$as_ac_var'}'` = yes; then
15433 cat >>confdefs.h <<_ACEOF
15434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15440 LIBS="$glib_save_LIBS"
15442 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
15443 gt_cv_func_dgettext_libc=no
15445 if test "$gt_cv_func_dgettext_libc" = "yes" \
15446 && test "$gt_cv_func_ngettext_libc" = "yes"; then
15447 gt_cv_func_dgettext_libintl=no
15453 if test "$gt_cv_func_dgettext_libc" = "yes" \
15454 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
15455 gt_cv_have_gettext=yes
15458 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
15459 INTLLIBS="-lintl $libintl_extra_libs"
15462 if test "$gt_cv_have_gettext" = "yes"; then
15464 cat >>confdefs.h <<\_ACEOF
15465 #define HAVE_GETTEXT 1
15468 # Extract the first word of "msgfmt", so it can be a program name with args.
15469 set dummy msgfmt; ac_word=$2
15470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15472 if test "${ac_cv_path_MSGFMT+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15481 for ac_dir in $PATH; do
15482 test -z "$ac_dir" && ac_dir=.
15483 if test -f $ac_dir/$ac_word; then
15484 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
15485 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15491 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
15495 MSGFMT="$ac_cv_path_MSGFMT"
15496 if test "$MSGFMT" != "no"; then
15497 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15498 echo "${ECHO_T}$MSGFMT" >&6; }
15500 { echo "$as_me:$LINENO: result: no" >&5
15501 echo "${ECHO_T}no" >&6; }
15503 if test "$MSGFMT" != "no"; then
15504 glib_save_LIBS="$LIBS"
15505 LIBS="$LIBS $INTLLIBS"
15507 for ac_func in dcgettext
15509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 cat >conftest.$ac_ext <<_ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15523 #define $ac_func innocuous_$ac_func
15525 /* System header to define __stub macros and hopefully few prototypes,
15526 which can conflict with char $ac_func (); below.
15527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15528 <limits.h> exists even on freestanding compilers. */
15531 # include <limits.h>
15533 # include <assert.h>
15538 /* Override any GCC internal prototype to avoid an error.
15539 Use char because int might match the return type of a GCC
15540 builtin and then its argument prototype would still apply. */
15545 /* The GNU C library defines this for functions which it implements
15546 to always fail with ENOSYS. Some functions are actually named
15547 something starting with __ and the normal name is an alias. */
15548 #if defined __stub_$ac_func || defined __stub___$ac_func
15555 return $ac_func ();
15560 rm -f conftest.$ac_objext conftest$ac_exeext
15561 if { (ac_try="$ac_link"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_link") 2>conftest.er1
15569 grep -v '^ *+' conftest.er1 >conftest.err
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } && {
15574 test -z "$ac_c_werror_flag" ||
15575 test ! -s conftest.err
15576 } && test -s conftest$ac_exeext &&
15577 $as_test_x conftest$ac_exeext; then
15578 eval "$as_ac_var=yes"
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15583 eval "$as_ac_var=no"
15586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15587 conftest$ac_exeext conftest.$ac_ext
15589 ac_res=`eval echo '${'$as_ac_var'}'`
15590 { echo "$as_me:$LINENO: result: $ac_res" >&5
15591 echo "${ECHO_T}$ac_res" >&6; }
15592 if test `eval echo '${'$as_ac_var'}'` = yes; then
15593 cat >>confdefs.h <<_ACEOF
15594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15601 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
15602 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
15603 cat >conftest.foo <<_ACEOF
15607 "Content-Type: text/plain; charset=UTF-8\n"
15608 "Project-Id-Version: test 1.0\n"
15609 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
15610 "Last-Translator: test <foo@bar.xx>\n"
15611 "Language-Team: C <LL@li.org>\n"
15612 "MIME-Version: 1.0\n"
15613 "Content-Transfer-Encoding: 8bit\n"
15616 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
15617 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; then
15621 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
15622 echo "${ECHO_T}yes" >&6; }
15623 else { echo "$as_me:$LINENO: result: no" >&5
15624 echo "${ECHO_T}no" >&6; }
15625 echo "$as_me: failed input was:" >&5
15626 sed 's/^/| /' conftest.foo >&5
15629 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15630 set dummy gmsgfmt; ac_word=$2
15631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15633 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15642 for as_dir in $PATH
15645 test -z "$as_dir" && as_dir=.
15646 for ac_exec_ext in '' $ac_executable_extensions; do
15647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15648 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15656 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15660 GMSGFMT=$ac_cv_path_GMSGFMT
15661 if test -n "$GMSGFMT"; then
15662 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15663 echo "${ECHO_T}$GMSGFMT" >&6; }
15665 { echo "$as_me:$LINENO: result: no" >&5
15666 echo "${ECHO_T}no" >&6; }
15670 # Extract the first word of "xgettext", so it can be a program name with args.
15671 set dummy xgettext; ac_word=$2
15672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15674 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 case "$XGETTEXT" in
15679 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15683 for ac_dir in $PATH; do
15684 test -z "$ac_dir" && ac_dir=.
15685 if test -f $ac_dir/$ac_word; then
15686 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15687 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15693 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15697 XGETTEXT="$ac_cv_path_XGETTEXT"
15698 if test "$XGETTEXT" != ":"; then
15699 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15700 echo "${ECHO_T}$XGETTEXT" >&6; }
15702 { echo "$as_me:$LINENO: result: no" >&5
15703 echo "${ECHO_T}no" >&6; }
15706 cat >conftest.$ac_ext <<_ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15716 extern int _nl_msg_cat_cntr;
15717 return _nl_msg_cat_cntr
15722 rm -f conftest.$ac_objext conftest$ac_exeext
15723 if { (ac_try="$ac_link"
15724 case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_link") 2>conftest.er1
15731 grep -v '^ *+' conftest.er1 >conftest.err
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } && {
15736 test -z "$ac_c_werror_flag" ||
15737 test ! -s conftest.err
15738 } && test -s conftest$ac_exeext &&
15739 $as_test_x conftest$ac_exeext; then
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15748 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
15749 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
15750 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 cat >conftest.$ac_ext <<_ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15759 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
15760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15761 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
15763 /* System header to define __stub macros and hopefully few prototypes,
15764 which can conflict with char bind_textdomain_codeset (); below.
15765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15766 <limits.h> exists even on freestanding compilers. */
15769 # include <limits.h>
15771 # include <assert.h>
15774 #undef bind_textdomain_codeset
15776 /* Override any GCC internal prototype to avoid an error.
15777 Use char because int might match the return type of a GCC
15778 builtin and then its argument prototype would still apply. */
15782 char bind_textdomain_codeset ();
15783 /* The GNU C library defines this for functions which it implements
15784 to always fail with ENOSYS. Some functions are actually named
15785 something starting with __ and the normal name is an alias. */
15786 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
15793 return bind_textdomain_codeset ();
15798 rm -f conftest.$ac_objext conftest$ac_exeext
15799 if { (ac_try="$ac_link"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_link") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest$ac_exeext &&
15815 $as_test_x conftest$ac_exeext; then
15816 ac_cv_func_bind_textdomain_codeset=yes
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 ac_cv_func_bind_textdomain_codeset=no
15824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15825 conftest$ac_exeext conftest.$ac_ext
15827 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
15828 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
15829 if test $ac_cv_func_bind_textdomain_codeset = yes; then
15845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15846 conftest$ac_exeext conftest.$ac_ext
15847 LIBS="$glib_save_LIBS"
15850 gt_cv_have_gettext=no
15858 if test "$gt_cv_have_gettext" = "yes" ; then
15860 cat >>confdefs.h <<\_ACEOF
15861 #define ENABLE_NLS 1
15866 if test "$XGETTEXT" != ":"; then
15867 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15870 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15871 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
15876 # We need to process the po/ directory.
15879 ac_config_commands="$ac_config_commands default-1"
15882 for lang in $ALL_LINGUAS; do
15883 GMOFILES="$GMOFILES $lang.gmo"
15884 POFILES="$POFILES $lang.po"
15899 if test "$gt_cv_have_gettext" = "yes"; then
15900 if test "x$ALL_LINGUAS" = "x"; then
15903 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15904 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
15906 for presentlang in $ALL_LINGUAS; do
15908 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15909 desiredlanguages="$LINGUAS"
15911 desiredlanguages="$ALL_LINGUAS"
15913 for desiredlang in $desiredlanguages; do
15914 # Use the presentlang catalog if desiredlang is
15915 # a. equal to presentlang, or
15916 # b. a variant of presentlang (because in this case,
15917 # presentlang can be used as a fallback for messages
15918 # which are not translated in the desiredlang catalog).
15919 case "$desiredlang" in
15920 "$presentlang"*) useit=yes;;
15923 if test $useit = yes; then
15924 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15927 LINGUAS=$NEW_LINGUAS
15928 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
15929 echo "${ECHO_T}$LINGUAS" >&6; }
15932 if test -n "$LINGUAS"; then
15933 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15938 if test -n "$ac_aux_dir"; then
15939 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15941 if test -z "$MKINSTALLDIRS"; then
15942 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15946 test -d po || mkdir po
15947 if test "x$srcdir" != "x."; then
15948 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15949 posrcprefix="$srcdir/"
15951 posrcprefix="../$srcdir/"
15957 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15958 < $srcdir/po/POTFILES.in > po/POTFILES
15961 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
15963 cat >confcache <<\_ACEOF
15964 # This file is a shell script that caches the results of configure
15965 # tests run on this system so they can be shared between configure
15966 # scripts and configure runs, see configure's option --config-cache.
15967 # It is not useful on other systems. If it contains results you don't
15968 # want to keep, you may remove or edit it.
15970 # config.status only pays attention to the cache file if you give it
15971 # the --recheck option to rerun configure.
15973 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15975 # following values.
15979 # The following way of writing the cache mishandles newlines in values,
15980 # but we know of no workaround that is simple, portable, and efficient.
15981 # So, we kill variables containing newlines.
15982 # Ultrix sh set writes to stderr and can't be redirected directly,
15983 # and sets the high bit in the cache file unless we assign to the vars.
15985 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15986 eval ac_val=\$$ac_var
15990 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15991 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15994 _ | IFS | as_nl) ;; #(
15995 *) $as_unset $ac_var ;;
16001 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16002 *${as_nl}ac_space=\ *)
16003 # `set' does not quote correctly, so add quotes (double-quote
16004 # substitution turns \\\\ into \\, and sed turns \\ into \).
16007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16010 # `set' quotes correctly as required by POSIX, so do not add quotes.
16011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16022 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16024 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16025 if test -w "$cache_file"; then
16026 test "x$cache_file" != "x/dev/null" &&
16027 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16028 echo "$as_me: updating cache $cache_file" >&6;}
16029 cat confcache >$cache_file
16031 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16032 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16038 # Let make expand exec_prefix.
16039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16041 DEFS=-DHAVE_CONFIG_H
16045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16046 # 1. Remove the extension, and $U if already installed.
16047 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16048 ac_i=`echo "$ac_i" | sed "$ac_script"`
16049 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16050 # will be set to the directory where LIBOBJS objects are built.
16051 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16052 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16054 LIBOBJS=$ac_libobjs
16056 LTLIBOBJS=$ac_ltlibobjs
16059 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16060 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16061 Usually this means the macro was only invoked conditionally." >&5
16062 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16063 Usually this means the macro was only invoked conditionally." >&2;}
16064 { (exit 1); exit 1; }; }
16066 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
16067 { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
16068 Usually this means the macro was only invoked conditionally." >&5
16069 echo "$as_me: error: conditional \"GUI_ANDROID\" was never defined.
16070 Usually this means the macro was only invoked conditionally." >&2;}
16071 { (exit 1); exit 1; }; }
16073 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16074 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16075 Usually this means the macro was only invoked conditionally." >&5
16076 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16077 Usually this means the macro was only invoked conditionally." >&2;}
16078 { (exit 1); exit 1; }; }
16080 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16081 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16082 Usually this means the macro was only invoked conditionally." >&5
16083 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16084 Usually this means the macro was only invoked conditionally." >&2;}
16085 { (exit 1); exit 1; }; }
16087 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16088 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16089 Usually this means the macro was only invoked conditionally." >&5
16090 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16091 Usually this means the macro was only invoked conditionally." >&2;}
16092 { (exit 1); exit 1; }; }
16094 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16095 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16096 Usually this means the macro was only invoked conditionally." >&5
16097 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16098 Usually this means the macro was only invoked conditionally." >&2;}
16099 { (exit 1); exit 1; }; }
16101 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
16102 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
16103 Usually this means the macro was only invoked conditionally." >&5
16104 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
16105 Usually this means the macro was only invoked conditionally." >&2;}
16106 { (exit 1); exit 1; }; }
16108 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
16109 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
16110 Usually this means the macro was only invoked conditionally." >&5
16111 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
16112 Usually this means the macro was only invoked conditionally." >&2;}
16113 { (exit 1); exit 1; }; }
16115 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
16116 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
16117 Usually this means the macro was only invoked conditionally." >&5
16118 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
16119 Usually this means the macro was only invoked conditionally." >&2;}
16120 { (exit 1); exit 1; }; }
16122 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
16123 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
16124 Usually this means the macro was only invoked conditionally." >&5
16125 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
16126 Usually this means the macro was only invoked conditionally." >&2;}
16127 { (exit 1); exit 1; }; }
16129 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
16130 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
16131 Usually this means the macro was only invoked conditionally." >&5
16132 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
16133 Usually this means the macro was only invoked conditionally." >&2;}
16134 { (exit 1); exit 1; }; }
16136 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
16137 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
16138 Usually this means the macro was only invoked conditionally." >&5
16139 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
16140 Usually this means the macro was only invoked conditionally." >&2;}
16141 { (exit 1); exit 1; }; }
16143 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
16144 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
16145 Usually this means the macro was only invoked conditionally." >&5
16146 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
16147 Usually this means the macro was only invoked conditionally." >&2;}
16148 { (exit 1); exit 1; }; }
16150 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
16151 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
16152 Usually this means the macro was only invoked conditionally." >&5
16153 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
16154 Usually this means the macro was only invoked conditionally." >&2;}
16155 { (exit 1); exit 1; }; }
16157 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
16158 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
16159 Usually this means the macro was only invoked conditionally." >&5
16160 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
16161 Usually this means the macro was only invoked conditionally." >&2;}
16162 { (exit 1); exit 1; }; }
16164 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
16165 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
16166 Usually this means the macro was only invoked conditionally." >&5
16167 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
16168 Usually this means the macro was only invoked conditionally." >&2;}
16169 { (exit 1); exit 1; }; }
16171 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
16172 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
16173 Usually this means the macro was only invoked conditionally." >&5
16174 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
16175 Usually this means the macro was only invoked conditionally." >&2;}
16176 { (exit 1); exit 1; }; }
16178 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
16179 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
16180 Usually this means the macro was only invoked conditionally." >&5
16181 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
16182 Usually this means the macro was only invoked conditionally." >&2;}
16183 { (exit 1); exit 1; }; }
16185 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
16186 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
16187 Usually this means the macro was only invoked conditionally." >&5
16188 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
16189 Usually this means the macro was only invoked conditionally." >&2;}
16190 { (exit 1); exit 1; }; }
16192 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
16193 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
16194 Usually this means the macro was only invoked conditionally." >&5
16195 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
16196 Usually this means the macro was only invoked conditionally." >&2;}
16197 { (exit 1); exit 1; }; }
16199 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
16200 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
16201 Usually this means the macro was only invoked conditionally." >&5
16202 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
16203 Usually this means the macro was only invoked conditionally." >&2;}
16204 { (exit 1); exit 1; }; }
16206 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
16207 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
16208 Usually this means the macro was only invoked conditionally." >&5
16209 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
16210 Usually this means the macro was only invoked conditionally." >&2;}
16211 { (exit 1); exit 1; }; }
16213 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
16214 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
16215 Usually this means the macro was only invoked conditionally." >&5
16216 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
16217 Usually this means the macro was only invoked conditionally." >&2;}
16218 { (exit 1); exit 1; }; }
16220 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
16221 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
16222 Usually this means the macro was only invoked conditionally." >&5
16223 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
16224 Usually this means the macro was only invoked conditionally." >&2;}
16225 { (exit 1); exit 1; }; }
16227 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
16228 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
16229 Usually this means the macro was only invoked conditionally." >&5
16230 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
16231 Usually this means the macro was only invoked conditionally." >&2;}
16232 { (exit 1); exit 1; }; }
16234 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
16235 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
16236 Usually this means the macro was only invoked conditionally." >&5
16237 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
16238 Usually this means the macro was only invoked conditionally." >&2;}
16239 { (exit 1); exit 1; }; }
16241 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
16242 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
16243 Usually this means the macro was only invoked conditionally." >&5
16244 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
16245 Usually this means the macro was only invoked conditionally." >&2;}
16246 { (exit 1); exit 1; }; }
16249 : ${CONFIG_STATUS=./config.status}
16250 ac_clean_files_save=$ac_clean_files
16251 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16252 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16253 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16254 cat >$CONFIG_STATUS <<_ACEOF
16256 # Generated by $as_me.
16257 # Run this file to recreate the current configuration.
16258 # Compiler output produced by configure, useful for debugging
16259 # configure, is in config.log if it exists.
16262 ac_cs_recheck=false
16264 SHELL=\${CONFIG_SHELL-$SHELL}
16267 cat >>$CONFIG_STATUS <<\_ACEOF
16268 ## --------------------- ##
16269 ## M4sh Initialization. ##
16270 ## --------------------- ##
16272 # Be more Bourne compatible
16273 DUALCASE=1; export DUALCASE # for MKS sh
16274 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16277 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16278 # is contrary to our usage. Disable this feature.
16279 alias -g '${1+"$@"}'='"$@"'
16280 setopt NO_GLOB_SUBST
16282 case `(set -o) 2>/dev/null` in
16283 *posix*) set -o posix ;;
16292 # Avoid depending upon Character Ranges.
16293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16296 as_cr_digits='0123456789'
16297 as_cr_alnum=$as_cr_Letters$as_cr_digits
16299 # The user is always right.
16300 if test "${PATH_SEPARATOR+set}" != set; then
16301 echo "#! /bin/sh" >conf$$.sh
16302 echo "exit 0" >>conf$$.sh
16304 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16312 # Support unset when possible.
16313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16321 # We need space, tab and new line, in precisely that order. Quoting is
16322 # there to prevent editors from complaining about space-tab.
16323 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16324 # splitting by setting IFS to empty value.)
16329 # Find who we are. Look in the path if we contain no directory separator.
16331 *[\\/]* ) as_myself=$0 ;;
16332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16333 for as_dir in $PATH
16336 test -z "$as_dir" && as_dir=.
16337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16343 # We did not find ourselves, most probably we were run as `sh COMMAND'
16344 # in which case we are not to be found in the path.
16345 if test "x$as_myself" = x; then
16348 if test ! -f "$as_myself"; then
16349 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16350 { (exit 1); exit 1; }
16353 # Work around bugs in pre-3.0 UWIN ksh.
16354 for as_var in ENV MAIL MAILPATH
16355 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16363 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16364 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16365 LC_TELEPHONE LC_TIME
16367 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16368 eval $as_var=C; export $as_var
16370 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16374 # Required to use basename.
16375 if expr a : '\(a\)' >/dev/null 2>&1 &&
16376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16383 as_basename=basename
16389 # Name of the executable.
16390 as_me=`$as_basename -- "$0" ||
16391 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16392 X"$0" : 'X\(//\)$' \| \
16393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16395 sed '/^.*\/\([^/][^/]*\)\/*$/{
16414 as_lineno_1=$LINENO
16415 as_lineno_2=$LINENO
16416 test "x$as_lineno_1" != "x$as_lineno_2" &&
16417 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16419 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16420 # uniformly replaced by the line number. The first 'sed' inserts a
16421 # line-number line after each line using $LINENO; the second 'sed'
16422 # does the real work. The second script uses 'N' to pair each
16423 # line-number line with the line containing $LINENO, and appends
16424 # trailing '-' during substitution so that $LINENO is not a special
16425 # case at line end.
16426 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16427 # scripts with optimization help from Paolo Bonzini. Blame Lee
16428 # E. McMahon (1931-1989) for sed's syntax. :-)
16440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16443 ' >$as_me.lineno &&
16444 chmod +x "$as_me.lineno" ||
16445 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16446 { (exit 1); exit 1; }; }
16448 # Don't try to exec as it changes $[0], causing all sort of problems
16449 # (the dirname of $[0] is not the place where we might find the
16450 # original and so on. Autoconf is especially sensitive to this).
16451 . "./$as_me.lineno"
16452 # Exit status is that of the last command.
16457 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16463 ECHO_C= ECHO_N= ECHO_T=
16464 case `echo -n x` in
16466 case `echo 'x\c'` in
16467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16474 if expr a : '\(a\)' >/dev/null 2>&1 &&
16475 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16481 rm -f conf$$ conf$$.exe conf$$.file
16482 if test -d conf$$.dir; then
16483 rm -f conf$$.dir/conf$$.file
16489 if ln -s conf$$.file conf$$ 2>/dev/null; then
16491 # ... but there are two gotchas:
16492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16494 # In both cases, we have to default to `cp -p'.
16495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16497 elif ln conf$$.file conf$$ 2>/dev/null; then
16502 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16503 rmdir conf$$.dir 2>/dev/null
16505 if mkdir -p . 2>/dev/null; then
16508 test -d ./-p && rmdir ./-p
16512 if test -x / >/dev/null 2>&1; then
16513 as_test_x='test -x'
16515 if ls -dL / >/dev/null 2>&1; then
16522 if test -d "$1"; then
16528 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16529 ???[sx]*):;;*)false;;esac;fi
16533 as_executable_p=$as_test_x
16535 # Sed expression to map a string onto a valid CPP name.
16536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16538 # Sed expression to map a string onto a valid variable name.
16539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16544 # Save the log message, to keep $[0] and so on meaningful, and to
16545 # report actual input values of CONFIG_FILES etc. instead of their
16546 # values after options handling.
16548 This file was extended by $as_me, which was
16549 generated by GNU Autoconf 2.61. Invocation command line was
16551 CONFIG_FILES = $CONFIG_FILES
16552 CONFIG_HEADERS = $CONFIG_HEADERS
16553 CONFIG_LINKS = $CONFIG_LINKS
16554 CONFIG_COMMANDS = $CONFIG_COMMANDS
16557 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16562 cat >>$CONFIG_STATUS <<_ACEOF
16563 # Files that config.status was made for.
16564 config_files="$ac_config_files"
16565 config_headers="$ac_config_headers"
16566 config_commands="$ac_config_commands"
16570 cat >>$CONFIG_STATUS <<\_ACEOF
16572 \`$as_me' instantiates files from templates according to the
16573 current configuration.
16575 Usage: $0 [OPTIONS] [FILE]...
16577 -h, --help print this help, then exit
16578 -V, --version print version number and configuration settings, then exit
16579 -q, --quiet do not print progress messages
16580 -d, --debug don't remove temporary files
16581 --recheck update $as_me by reconfiguring in the same conditions
16582 --file=FILE[:TEMPLATE]
16583 instantiate the configuration file FILE
16584 --header=FILE[:TEMPLATE]
16585 instantiate the configuration header FILE
16587 Configuration files:
16590 Configuration headers:
16593 Configuration commands:
16596 Report bugs to <bug-autoconf@gnu.org>."
16599 cat >>$CONFIG_STATUS <<_ACEOF
16602 configured by $0, generated by GNU Autoconf 2.61,
16603 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16605 Copyright (C) 2006 Free Software Foundation, Inc.
16606 This config.status script is free software; the Free Software Foundation
16607 gives unlimited permission to copy, distribute and modify it."
16614 cat >>$CONFIG_STATUS <<\_ACEOF
16615 # If no file are specified by the user, then we need to provide default
16616 # value. By we need to know if files were specified by the user.
16622 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16623 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16634 # Handling of the options.
16635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16637 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16638 echo "$ac_cs_version"; exit ;;
16639 --debug | --debu | --deb | --de | --d | -d )
16641 --file | --fil | --fi | --f )
16643 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16644 ac_need_defaults=false;;
16645 --header | --heade | --head | --hea )
16647 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16648 ac_need_defaults=false;;
16650 # Conflict between --help and --header
16651 { echo "$as_me: error: ambiguous option: $1
16652 Try \`$0 --help' for more information." >&2
16653 { (exit 1); exit 1; }; };;
16654 --help | --hel | -h )
16655 echo "$ac_cs_usage"; exit ;;
16656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16660 # This is an error.
16661 -*) { echo "$as_me: error: unrecognized option: $1
16662 Try \`$0 --help' for more information." >&2
16663 { (exit 1); exit 1; }; } ;;
16665 *) ac_config_targets="$ac_config_targets $1"
16666 ac_need_defaults=false ;;
16672 ac_configure_extra_args=
16674 if $ac_cs_silent; then
16676 ac_configure_extra_args="$ac_configure_extra_args --silent"
16680 cat >>$CONFIG_STATUS <<_ACEOF
16681 if \$ac_cs_recheck; then
16682 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16683 CONFIG_SHELL=$SHELL
16684 export CONFIG_SHELL
16685 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16689 cat >>$CONFIG_STATUS <<\_ACEOF
16693 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16694 ## Running $as_me. ##
16700 cat >>$CONFIG_STATUS <<_ACEOF
16704 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16709 cat >>$CONFIG_STATUS <<\_ACEOF
16711 # Handling of arguments.
16712 for ac_config_target in $ac_config_targets
16714 case $ac_config_target in
16715 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16716 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16717 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16718 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16719 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16720 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16721 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16722 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16723 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
16725 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16726 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16727 { (exit 1); exit 1; }; };;
16732 # If the user did not use the arguments to specify the items to instantiate,
16733 # then the envvar interface is used. Set only those that are not.
16734 # We use the long form for the default assignment because of an extremely
16735 # bizarre bug on SunOS 4.1.3.
16736 if $ac_need_defaults; then
16737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16742 # Have a temporary directory for convenience. Make it in the build tree
16743 # simply because there is no reason against having it here, and in addition,
16744 # creating and moving files from /tmp can sometimes cause problems.
16745 # Hook for its removal unless debugging.
16746 # Note that there is a small window in which the directory will not be cleaned:
16747 # after its creation but before its name has been assigned to `$tmp'.
16751 trap 'exit_status=$?
16752 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16754 trap '{ (exit 1); exit 1; }' 1 2 13 15
16756 # Create a (secure) tmp directory for tmp files.
16759 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16760 test -n "$tmp" && test -d "$tmp"
16763 tmp=./conf$$-$RANDOM
16764 (umask 077 && mkdir "$tmp")
16767 echo "$me: cannot create a temporary directory in ." >&2
16768 { (exit 1); exit 1; }
16772 # Set up the sed scripts for CONFIG_FILES section.
16775 # No need to generate the scripts if there are no CONFIG_FILES.
16776 # This happens for instance when ./config.status config.h
16777 if test -n "$CONFIG_FILES"; then
16784 for ac_last_try in false false false false false :; do
16785 cat >conf$$subs.sed <<_ACEOF
16786 SHELL!$SHELL$ac_delim
16787 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16788 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16789 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16790 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16791 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16792 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16793 exec_prefix!$exec_prefix$ac_delim
16794 prefix!$prefix$ac_delim
16795 program_transform_name!$program_transform_name$ac_delim
16796 bindir!$bindir$ac_delim
16797 sbindir!$sbindir$ac_delim
16798 libexecdir!$libexecdir$ac_delim
16799 datarootdir!$datarootdir$ac_delim
16800 datadir!$datadir$ac_delim
16801 sysconfdir!$sysconfdir$ac_delim
16802 sharedstatedir!$sharedstatedir$ac_delim
16803 localstatedir!$localstatedir$ac_delim
16804 includedir!$includedir$ac_delim
16805 oldincludedir!$oldincludedir$ac_delim
16806 docdir!$docdir$ac_delim
16807 infodir!$infodir$ac_delim
16808 htmldir!$htmldir$ac_delim
16809 dvidir!$dvidir$ac_delim
16810 pdfdir!$pdfdir$ac_delim
16811 psdir!$psdir$ac_delim
16812 libdir!$libdir$ac_delim
16813 localedir!$localedir$ac_delim
16814 mandir!$mandir$ac_delim
16815 DEFS!$DEFS$ac_delim
16816 ECHO_C!$ECHO_C$ac_delim
16817 ECHO_N!$ECHO_N$ac_delim
16818 ECHO_T!$ECHO_T$ac_delim
16819 LIBS!$LIBS$ac_delim
16820 build_alias!$build_alias$ac_delim
16821 host_alias!$host_alias$ac_delim
16822 target_alias!$target_alias$ac_delim
16823 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16824 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16825 INSTALL_DATA!$INSTALL_DATA$ac_delim
16826 CYGPATH_W!$CYGPATH_W$ac_delim
16827 PACKAGE!$PACKAGE$ac_delim
16828 VERSION!$VERSION$ac_delim
16829 ACLOCAL!$ACLOCAL$ac_delim
16830 AUTOCONF!$AUTOCONF$ac_delim
16831 AUTOMAKE!$AUTOMAKE$ac_delim
16832 AUTOHEADER!$AUTOHEADER$ac_delim
16833 MAKEINFO!$MAKEINFO$ac_delim
16834 install_sh!$install_sh$ac_delim
16835 STRIP!$STRIP$ac_delim
16836 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16837 mkdir_p!$mkdir_p$ac_delim
16839 SET_MAKE!$SET_MAKE$ac_delim
16840 am__leading_dot!$am__leading_dot$ac_delim
16841 AMTAR!$AMTAR$ac_delim
16842 am__tar!$am__tar$ac_delim
16843 am__untar!$am__untar$ac_delim
16844 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16845 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16846 MAINT!$MAINT$ac_delim
16847 build!$build$ac_delim
16848 build_cpu!$build_cpu$ac_delim
16849 build_vendor!$build_vendor$ac_delim
16850 build_os!$build_os$ac_delim
16851 host!$host$ac_delim
16852 host_cpu!$host_cpu$ac_delim
16853 host_vendor!$host_vendor$ac_delim
16854 host_os!$host_os$ac_delim
16856 ANDROID_ABI!$ANDROID_ABI$ac_delim
16857 ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
16858 ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
16859 ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
16860 ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
16861 ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
16863 GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
16864 GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
16866 CFLAGS!$CFLAGS$ac_delim
16867 LDFLAGS!$LDFLAGS$ac_delim
16868 CPPFLAGS!$CPPFLAGS$ac_delim
16869 ac_ct_CC!$ac_ct_CC$ac_delim
16870 EXEEXT!$EXEEXT$ac_delim
16871 OBJEXT!$OBJEXT$ac_delim
16872 DEPDIR!$DEPDIR$ac_delim
16873 am__include!$am__include$ac_delim
16874 am__quote!$am__quote$ac_delim
16875 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16876 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16877 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16878 CCDEPMODE!$CCDEPMODE$ac_delim
16879 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16880 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16885 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16887 elif $ac_last_try; then
16888 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16889 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16890 { (exit 1); exit 1; }; }
16892 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16896 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16897 if test -n "$ac_eof"; then
16898 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16899 ac_eof=`expr $ac_eof + 1`
16902 cat >>$CONFIG_STATUS <<_ACEOF
16903 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16907 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16908 s/^/s,@/; s/!/@,|#_!!_#|/
16911 s/'"$ac_delim"'$/,g/; t
16913 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16914 ' >>$CONFIG_STATUS <conf$$subs.sed
16915 rm -f conf$$subs.sed
16916 cat >>$CONFIG_STATUS <<_ACEOF
16922 for ac_last_try in false false false false false :; do
16923 cat >conf$$subs.sed <<_ACEOF
16924 CFLAGS!$CFLAGS$ac_delim
16925 CPPFLAGS!$CPPFLAGS$ac_delim
16926 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
16927 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
16928 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
16929 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
16930 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
16932 CPPFLAGS!$CPPFLAGS$ac_delim
16933 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
16934 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
16935 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
16936 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
16937 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
16938 OBJC!$OBJC$ac_delim
16939 OBJCFLAGS!$OBJCFLAGS$ac_delim
16940 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
16942 CCAS!$CCAS$ac_delim
16943 CCASFLAGS!$CCASFLAGS$ac_delim
16944 RANLIB!$RANLIB$ac_delim
16945 GREP!$GREP$ac_delim
16946 EGREP!$EGREP$ac_delim
16947 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
16948 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
16949 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
16950 POD2MAN!$POD2MAN$ac_delim
16951 POD2HTML!$POD2HTML$ac_delim
16952 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
16953 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
16954 SOEXT!$SOEXT$ac_delim
16955 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
16956 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
16957 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
16958 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
16959 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
16960 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
16961 PKG_CONFIG!$PKG_CONFIG$ac_delim
16962 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
16963 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
16964 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
16965 GLIB_LIBS!$GLIB_LIBS$ac_delim
16966 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
16967 GTK_LIBS!$GTK_LIBS$ac_delim
16968 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
16969 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
16970 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
16971 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
16972 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
16973 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
16974 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
16975 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
16976 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
16977 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
16978 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
16979 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
16980 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
16981 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
16982 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
16983 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
16984 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
16985 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
16986 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
16987 SDL_LIBS!$SDL_LIBS$ac_delim
16988 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
16989 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
16990 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
16991 PULSE_LIBS!$PULSE_LIBS$ac_delim
16992 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
16993 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
16994 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
16995 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
16996 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
16997 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
16998 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
16999 ALSA_LIBS!$ALSA_LIBS$ac_delim
17000 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
17001 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
17002 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
17003 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
17004 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
17005 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
17006 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
17007 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
17008 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
17009 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
17010 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
17011 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
17012 SHCC!$SHCC$ac_delim
17013 SHLD!$SHLD$ac_delim
17014 SHOBJCOPY!$SHOBJCOPY$ac_delim
17015 ARMCC!$ARMCC$ac_delim
17016 ARMLD!$ARMLD$ac_delim
17017 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
17018 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
17019 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
17020 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
17023 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17025 elif $ac_last_try; then
17026 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17027 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17028 { (exit 1); exit 1; }; }
17030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17034 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17035 if test -n "$ac_eof"; then
17036 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17037 ac_eof=`expr $ac_eof + 1`
17040 cat >>$CONFIG_STATUS <<_ACEOF
17041 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17045 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17046 s/^/s,@/; s/!/@,|#_!!_#|/
17049 s/'"$ac_delim"'$/,g/; t
17051 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17052 ' >>$CONFIG_STATUS <conf$$subs.sed
17053 rm -f conf$$subs.sed
17054 cat >>$CONFIG_STATUS <<_ACEOF
17060 for ac_last_try in false false false false false :; do
17061 cat >conf$$subs.sed <<_ACEOF
17062 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
17063 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
17064 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
17065 USE_NLS!$USE_NLS$ac_delim
17066 MSGFMT!$MSGFMT$ac_delim
17067 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
17068 GMSGFMT!$GMSGFMT$ac_delim
17069 XGETTEXT!$XGETTEXT$ac_delim
17070 CATALOGS!$CATALOGS$ac_delim
17071 CATOBJEXT!$CATOBJEXT$ac_delim
17072 DATADIRNAME!$DATADIRNAME$ac_delim
17073 GMOFILES!$GMOFILES$ac_delim
17074 INSTOBJEXT!$INSTOBJEXT$ac_delim
17075 INTLLIBS!$INTLLIBS$ac_delim
17076 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
17077 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
17078 POFILES!$POFILES$ac_delim
17079 POSUB!$POSUB$ac_delim
17080 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
17081 LIBOBJS!$LIBOBJS$ac_delim
17082 LTLIBOBJS!$LTLIBOBJS$ac_delim
17085 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
17087 elif $ac_last_try; then
17088 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17089 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17090 { (exit 1); exit 1; }; }
17092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17096 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17097 if test -n "$ac_eof"; then
17098 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17099 ac_eof=`expr $ac_eof + 1`
17102 cat >>$CONFIG_STATUS <<_ACEOF
17103 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
17104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17107 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17108 s/^/s,@/; s/!/@,|#_!!_#|/
17111 s/'"$ac_delim"'$/,g/; t
17113 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17114 ' >>$CONFIG_STATUS <conf$$subs.sed
17115 rm -f conf$$subs.sed
17116 cat >>$CONFIG_STATUS <<_ACEOF
17123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17125 # trailing colons and then remove the whole line if VPATH becomes empty
17126 # (actually we leave an empty line to preserve line numbers).
17127 if test "x$srcdir" = x.; then
17128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17129 s/:*\$(srcdir):*/:/
17130 s/:*\${srcdir}:*/:/
17132 s/^\([^=]*=[ ]*\):*/\1/
17138 cat >>$CONFIG_STATUS <<\_ACEOF
17139 fi # test -n "$CONFIG_FILES"
17142 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
17145 :[FHLC]) ac_mode=$ac_tag; continue;;
17147 case $ac_mode$ac_tag in
17149 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17150 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17151 { (exit 1); exit 1; }; };;
17152 :[FH]-) ac_tag=-:-;;
17153 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17170 -) ac_f="$tmp/stdin";;
17171 *) # Look for the file first in the build tree, then in the source tree
17172 # (if the path is not absolute). The absolute path cannot be DOS-style,
17173 # because $ac_f cannot contain `:'.
17177 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17179 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17180 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17181 { (exit 1); exit 1; }; };;
17183 ac_file_inputs="$ac_file_inputs $ac_f"
17186 # Let's still pretend it is `configure' which instantiates (i.e., don't
17187 # use $as_me), people would be surprised to read:
17188 # /* config.h. Generated by config.status. */
17189 configure_input="Generated from "`IFS=:
17190 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17191 if test x"$ac_file" != x-; then
17192 configure_input="$ac_file. $configure_input"
17193 { echo "$as_me:$LINENO: creating $ac_file" >&5
17194 echo "$as_me: creating $ac_file" >&6;}
17198 *:-:* | *:-) cat >"$tmp/stdin";;
17203 ac_dir=`$as_dirname -- "$ac_file" ||
17204 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17205 X"$ac_file" : 'X\(//\)[^/]' \| \
17206 X"$ac_file" : 'X\(//\)$' \| \
17207 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17213 /^X\(\/\/\)[^/].*/{
17228 -*) as_dir=./$as_dir;;
17230 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17234 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17235 *) as_qdir=$as_dir;;
17237 as_dirs="'$as_qdir' $as_dirs"
17238 as_dir=`$as_dirname -- "$as_dir" ||
17239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17240 X"$as_dir" : 'X\(//\)[^/]' \| \
17241 X"$as_dir" : 'X\(//\)$' \| \
17242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17248 /^X\(\/\/\)[^/].*/{
17261 test -d "$as_dir" && break
17263 test -z "$as_dirs" || eval "mkdir $as_dirs"
17264 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17265 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17266 { (exit 1); exit 1; }; }; }
17270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17272 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17273 # A ".." for each directory in $ac_dir_suffix.
17274 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17275 case $ac_top_builddir_sub in
17276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17280 ac_abs_top_builddir=$ac_pwd
17281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17282 # for backward compatibility:
17283 ac_top_builddir=$ac_top_build_prefix
17286 .) # We are building in place.
17288 ac_top_srcdir=$ac_top_builddir_sub
17289 ac_abs_top_srcdir=$ac_pwd ;;
17290 [\\/]* | ?:[\\/]* ) # Absolute name.
17291 ac_srcdir=$srcdir$ac_dir_suffix;
17292 ac_top_srcdir=$srcdir
17293 ac_abs_top_srcdir=$srcdir ;;
17294 *) # Relative name.
17295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17296 ac_top_srcdir=$ac_top_build_prefix$srcdir
17297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17310 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17314 cat >>$CONFIG_STATUS <<\_ACEOF
17315 # If the template does not know about datarootdir, expand it.
17316 # FIXME: This hack should be removed a few years after 2.60.
17317 ac_datarootdir_hack=; ac_datarootdir_seen=
17319 case `sed -n '/datarootdir/ {
17328 ' $ac_file_inputs` in
17329 *datarootdir*) ac_datarootdir_seen=yes;;
17330 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17331 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17332 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17334 cat >>$CONFIG_STATUS <<_ACEOF
17335 ac_datarootdir_hack='
17336 s&@datadir@&$datadir&g
17337 s&@docdir@&$docdir&g
17338 s&@infodir@&$infodir&g
17339 s&@localedir@&$localedir&g
17340 s&@mandir@&$mandir&g
17341 s&\\\${datarootdir}&$datarootdir&g' ;;
17345 # Neutralize VPATH when `$srcdir' = `.'.
17346 # Shell code in configure.ac might set extrasub.
17347 # FIXME: do we really want to maintain this feature?
17348 cat >>$CONFIG_STATUS <<_ACEOF
17352 cat >>$CONFIG_STATUS <<\_ACEOF
17354 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17355 s&@configure_input@&$configure_input&;t t
17356 s&@top_builddir@&$ac_top_builddir_sub&;t t
17357 s&@srcdir@&$ac_srcdir&;t t
17358 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17359 s&@top_srcdir@&$ac_top_srcdir&;t t
17360 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17361 s&@builddir@&$ac_builddir&;t t
17362 s&@abs_builddir@&$ac_abs_builddir&;t t
17363 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17364 s&@INSTALL@&$ac_INSTALL&;t t
17365 $ac_datarootdir_hack
17366 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
17368 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17369 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17370 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17371 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17372 which seems to be undefined. Please make sure it is defined." >&5
17373 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17374 which seems to be undefined. Please make sure it is defined." >&2;}
17378 -) cat "$tmp/out"; rm -f "$tmp/out";;
17379 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17388 # Transform confdefs.h into a sed script `conftest.defines', that
17389 # substitutes the proper values into config.h.in to produce config.h.
17390 rm -f conftest.defines conftest.tail
17391 # First, append a space to every undef/define line, to ease matching.
17392 echo 's/$/ /' >conftest.defines
17393 # Then, protect against being on the right side of a sed subst, or in
17394 # an unquoted here document, in config.status. If some macros were
17395 # called several times there might be several #defines for the same
17396 # symbol, which is useless. But do not sort them, since the last
17397 # AC_DEFINE must be honored.
17398 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17399 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17400 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17401 # PARAMS is the parameter list in the macro definition--in most cases, it's
17402 # just an empty string.
17403 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17404 ac_dB='\\)[ (].*,\\1define\\2'
17412 s/^[ ]*#[ ]*define[ ][ ]*//
17417 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17418 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17419 ' >>conftest.defines
17421 # Remove the space that was appended to ease matching.
17422 # Then replace #undef with comments. This is necessary, for
17423 # example, in the case of _POSIX_SOURCE, which is predefined and required
17424 # on some systems where configure will not decide to define it.
17425 # (The regexp can be short, since the line contains either #define or #undef.)
17427 s,^[ #]*u.*,/* & */,' >>conftest.defines
17429 # Break up conftest.defines:
17430 ac_max_sed_lines=50
17432 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17433 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17434 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17436 ac_in='$ac_file_inputs'
17437 ac_out='"$tmp/out1"'
17438 ac_nxt='"$tmp/out2"'
17442 # Write a here document:
17443 cat >>$CONFIG_STATUS <<_ACEOF
17444 # First, check the format of the line:
17445 cat >"\$tmp/defines.sed" <<\\CEOF
17446 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17447 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17451 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17453 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17454 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17455 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17456 grep . conftest.tail >/dev/null || break
17457 rm -f conftest.defines
17458 mv conftest.tail conftest.defines
17460 rm -f conftest.defines conftest.tail
17462 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17463 cat >>$CONFIG_STATUS <<\_ACEOF
17464 if test x"$ac_file" != x-; then
17465 echo "/* $configure_input */" >"$tmp/config.h"
17466 cat "$ac_result" >>"$tmp/config.h"
17467 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17468 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17469 echo "$as_me: $ac_file is unchanged" >&6;}
17472 mv "$tmp/config.h" $ac_file
17475 echo "/* $configure_input */"
17479 # Compute $ac_file's index in $config_headers.
17481 for _am_header in $config_headers :; do
17482 case $_am_header in
17483 $ac_file | $ac_file:* )
17486 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17489 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
17490 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17491 X$ac_file : 'X\(//\)[^/]' \| \
17492 X$ac_file : 'X\(//\)$' \| \
17493 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
17495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17499 /^X\(\/\/\)[^/].*/{
17511 s/.*/./; q'`/stamp-h$_am_stamp_count
17514 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17515 echo "$as_me: executing $ac_file commands" >&6;}
17520 case $ac_file$ac_mode in
17521 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17522 # Strip MF so we end up with the name of the file.
17523 mf=`echo "$mf" | sed -e 's/:.*$//'`
17524 # Check whether this is an Automake generated Makefile or not.
17525 # We used to match only the files named `Makefile.in', but
17526 # some people rename them; so instead we look at the file content.
17527 # Grep'ing the first line is not enough: some people post-process
17528 # each Makefile.in and add a new line on top of each file to say so.
17529 # So let's grep whole file.
17530 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17531 dirpart=`$as_dirname -- "$mf" ||
17532 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17533 X"$mf" : 'X\(//\)[^/]' \| \
17534 X"$mf" : 'X\(//\)$' \| \
17535 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17541 /^X\(\/\/\)[^/].*/{
17557 # Extract the definition of DEPDIR, am__include, and am__quote
17558 # from the Makefile without running `make'.
17559 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17560 test -z "$DEPDIR" && continue
17561 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17562 test -z "am__include" && continue
17563 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17564 # When using ansi2knr, U may be empty or an underscore; expand it
17565 U=`sed -n 's/^U = //p' < "$mf"`
17566 # Find all dependency output files, they are included files with
17567 # $(DEPDIR) in their names. We invoke sed twice because it is the
17568 # simplest approach to changing $(DEPDIR) to its actual value in the
17570 for file in `sed -n "
17571 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17572 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17573 # Make sure the directory exists.
17574 test -f "$dirpart/$file" && continue
17575 fdir=`$as_dirname -- "$file" ||
17576 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17577 X"$file" : 'X\(//\)[^/]' \| \
17578 X"$file" : 'X\(//\)$' \| \
17579 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17585 /^X\(\/\/\)[^/].*/{
17598 { as_dir=$dirpart/$fdir
17600 -*) as_dir=./$as_dir;;
17602 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17606 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17607 *) as_qdir=$as_dir;;
17609 as_dirs="'$as_qdir' $as_dirs"
17610 as_dir=`$as_dirname -- "$as_dir" ||
17611 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17612 X"$as_dir" : 'X\(//\)[^/]' \| \
17613 X"$as_dir" : 'X\(//\)$' \| \
17614 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17620 /^X\(\/\/\)[^/].*/{
17633 test -d "$as_dir" && break
17635 test -z "$as_dirs" || eval "mkdir $as_dirs"
17636 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17637 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17638 { (exit 1); exit 1; }; }; }
17639 # echo "creating $dirpart/$file"
17640 echo '# dummy' > "$dirpart/$file"
17644 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17645 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17652 { (exit 0); exit 0; }
17654 chmod +x $CONFIG_STATUS
17655 ac_clean_files=$ac_clean_files_save
17658 # configure is writing to config.log, and then calls config.status.
17659 # config.status does its own redirection, appending to config.log.
17660 # Unfortunately, on DOS this fails, as config.log is still kept open
17661 # by configure, so config.status won't be able to write to it; its
17662 # output is simply discarded. So we exec the FD to /dev/null,
17663 # effectively closing config.log, so it can be properly (re)opened and
17664 # appended to by config.status. When coming back to configure, we
17665 # need to make the FD available again.
17666 if test "$no_create" != yes; then
17668 ac_config_status_args=
17669 test "$silent" = yes &&
17670 ac_config_status_args="$ac_config_status_args --quiet"
17672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17675 # would make configure fail if this is the last instruction.
17676 $ac_cs_success || { (exit 1); exit 1; }
17681 -*) as_dir=./$as_dir;;
17683 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17687 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17688 *) as_qdir=$as_dir;;
17690 as_dirs="'$as_qdir' $as_dirs"
17691 as_dir=`$as_dirname -- "$as_dir" ||
17692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17693 X"$as_dir" : 'X\(//\)[^/]' \| \
17694 X"$as_dir" : 'X\(//\)$' \| \
17695 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17701 /^X\(\/\/\)[^/].*/{
17714 test -d "$as_dir" && break
17716 test -z "$as_dirs" || eval "mkdir $as_dirs"
17717 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17718 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17719 { (exit 1); exit 1; }; }; }
17723 echo "Configuration complete"
17726 if test "x$UI_DRIVER" = x; then
17727 echo " User interface: none"
17729 echo " User interface: $UI_DRIVER"
17732 if test "x$SH4_TRANSLATOR" = "x"; then
17733 echo " SH4 translator: none (emulation core only)"
17735 echo " SH4 translator: $SH4_TRANSLATOR"
17738 if test "x$VIDEO_DRIVERS" = "x"; then
17739 echo " Video drivers: none (no supported GL found)"
17741 echo " Video drivers: $VIDEO_DRIVERS"
17744 if test "x$AUDIO_DRIVERS" = "x"; then
17745 echo " Audio drivers: none (no supported output devices found)"
17747 echo " Audio drivers: $AUDIO_DRIVERS"
17750 if test "x$INPUT_DRIVERS" = "x"; then
17751 echo " Input drivers: none (no supported input devices found)"
17753 echo " Input drivers: $INPUT_DRIVERS"
17756 if test "x$CDROM_DRIVER" = "x"; then
17757 echo " CD-ROM driver: none (no supported cd-rom devices found)"
17759 echo " CD-ROM driver: $CDROM_DRIVER"
.