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
716 am__fastdepCC_FOR_BUILD_TRUE
717 am__fastdepCC_FOR_BUILD_FALSE
736 am__fastdepOBJC_FALSE
755 GLIB_FOR_BUILD_CFLAGS
830 ac_precious_vars='build_alias
855 GLIB_FOR_BUILD_CFLAGS
871 # Initialize some variables set by options.
873 ac_init_version=false
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
883 program_transform_name=s,x,x,
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE}'
908 infodir='${datarootdir}/info'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
929 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 # Accept the important Cygnus configure options, so we can diagnose typos.
935 case $ac_dashdash$ac_option in
939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944 -build | --build | --buil | --bui | --bu)
945 ac_prev=build_alias ;;
946 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947 build_alias=$ac_optarg ;;
949 -cache-file | --cache-file | --cache-fil | --cache-fi \
950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951 ac_prev=cache_file ;;
952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954 cache_file=$ac_optarg ;;
957 cache_file=config.cache ;;
959 -datadir | --datadir | --datadi | --datad)
961 -datadir=* | --datadir=* | --datadi=* | --datad=*)
962 datadir=$ac_optarg ;;
964 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965 | --dataroo | --dataro | --datar)
966 ac_prev=datarootdir ;;
967 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969 datarootdir=$ac_optarg ;;
971 -disable-* | --disable-*)
972 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
975 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
976 { (exit 1); exit 1; }; }
977 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
978 eval enable_$ac_feature=no ;;
980 -docdir | --docdir | --docdi | --doc | --do)
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990 -enable-* | --enable-*)
991 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
994 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
995 { (exit 1); exit 1; }; }
996 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
997 eval enable_$ac_feature=\$ac_optarg ;;
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 htmldir=$ac_optarg ;;
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1042 -libdir | --libdir | --libdi | --libd)
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1133 -psdir | --psdir | --psdi | --psd | --ps)
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 sbindir=$ac_optarg ;;
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 sharedstatedir=$ac_optarg ;;
1159 -site | --site | --sit)
1161 -site=* | --site=* | --sit=*)
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1188 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid package name: $ac_package" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1194 eval with_$ac_package=\$ac_optarg ;;
1196 -without-* | --without-*)
1197 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 { echo "$as_me: error: invalid package name: $ac_package" >&2
1201 { (exit 1); exit 1; }; }
1202 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1203 eval with_$ac_package=no ;;
1206 # Obsolete; use --with-x.
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) { echo "$as_me: error: unrecognized option: $ac_option
1224 Try \`$0 --help' for more information." >&2
1225 { (exit 1); exit 1; }; }
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1232 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1233 { (exit 1); exit 1; }; }
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 { echo "$as_me: error: missing argument to $ac_option" >&2
1251 { (exit 1); exit 1; }; }
1254 # Be sure to have absolute directory names.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1260 eval ac_val=\$$ac_var
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1266 { (exit 1); exit 1; }; }
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1274 target=$target_alias
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
1280 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290 test "$silent" = yes && exec 6>/dev/null
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 { echo "$as_me: error: Working directory cannot be determined" >&2
1297 { (exit 1); exit 1; }; }
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 { echo "$as_me: error: pwd does not report name of working directory" >&2
1300 { (exit 1); exit 1; }; }
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$0" ||
1308 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$0" : 'X\(//\)[^/]' \| \
1310 X"$0" : 'X\(//\)$' \| \
1311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1340 { (exit 1); exit 1; }; }
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1345 { (exit 1); exit 1; }; }
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 # Report the --help message.
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1371 \`configure' configures this package to adapt to many kinds of systems.
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1378 Defaults for the options are specified in brackets.
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1402 For better control, use the options below.
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 if test -n "$ac_init_help"; then
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-maintainer-mode enable make rules and dependencies not useful
1447 (and sometimes confusing) to the casual installer
1448 --disable-dependency-tracking speeds up one-time build
1449 --enable-dependency-tracking do not reject slow dependency extractors
1450 --enable-strict-warn Enable strict compilation warnings
1451 --disable-translator Disable the SH4 translator (Enabled by default)
1452 --disable-optimized Disable compile-time optimizations (Enabled by
1454 --enable-shared Build drivers as shared libraries (Enabled if
1456 --enable-profiled Enable profiling build
1457 --enable-trace Enable generation of IO traces (warning: hurts
1459 --enable-watch Enable watchpoints in the debugger (warning: hurts
1461 --enable-sh4stats Enable statistics on executed sh4 instructions
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-android=SDK Specify the location of the Android SDK
1467 --with-android-ndk=NDK Specify the location of the Android NDK
1468 --with-android-version Specify target Android SDK version
1469 --with-android-version Specify target Android NDK version
1470 --with-osmesa Build with the osmesa GL library (software
1472 --with-gtk Build with the GTK UI. Default on X11 systems
1473 --with-esd Build with support for the ESounD audio system
1474 --with-pulse Build with support for the PulseAudio audio system
1475 --with-sdl Build with support for SDL audio
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1486 OBJC Objective C compiler command
1487 OBJCFLAGS Objective C compiler flags
1488 CCAS assembler compiler command (defaults to CC)
1489 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1490 PKG_CONFIG path to pkg-config utility
1492 C compiler flags for LIBPNG, overriding pkg-config
1493 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1494 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1495 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1496 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1497 GTK_LIBS linker flags for GTK, overriding pkg-config
1498 GLIB_FOR_BUILD_CFLAGS
1499 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1501 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1503 C compiler flags for LIBISOFS, overriding pkg-config
1505 linker flags for LIBISOFS, overriding pkg-config
1507 C compiler flags for LIBGL, overriding pkg-config
1508 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1509 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1510 SDL_LIBS linker flags for SDL, overriding pkg-config
1512 C compiler flags for PULSE, overriding pkg-config
1513 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1515 C compiler flags for ESOUND, overriding pkg-config
1516 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1517 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1518 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" || continue
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1550 .) # We are building in place.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1584 generated by GNU Autoconf 2.61
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1597 It was created by $as_me, which was
1598 generated by GNU Autoconf 2.61. Invocation command line was
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 echo "PATH: $as_dir"
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_must_keep_next=false
1664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666 | -silent | --silent | --silen | --sile | --sil)
1669 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1674 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true; then
1676 ac_must_keep_next=false # Got value, back to normal.
1679 *=* | --config-cache | -C | -disable-* | --disable-* \
1680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682 | -with-* | --with-* | -without-* | --without-* | --x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687 -* ) ac_must_keep_next=true ;;
1690 ac_configure_args="$ac_configure_args '$ac_arg'"
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1714 # The following way of writing the cache mishandles newlines in values,
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1721 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725 _ | IFS | as_nl) ;; #(
1726 *) $as_unset $ac_var ;;
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1751 for ac_var in $ac_subst_vars
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1761 if test -n "$ac_subst_files"; then
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1768 for ac_var in $ac_subst_files
1770 eval ac_val=\$$ac_var
1772 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 echo "$ac_var='\''$ac_val'\''"
1779 if test -s confdefs.h; then
1789 test "$ac_signal" != 0 &&
1790 echo "$as_me: caught signal $ac_signal"
1791 echo "$as_me: exit $exit_status"
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797 for ac_signal in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1805 # Predefined preprocessor variables.
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835 set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1839 set x "$ac_default_prefix/share/config.site" \
1840 "$ac_default_prefix/etc/config.site"
1845 if test -r "$ac_site_file"; then
1846 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848 sed 's/^/| /' "$ac_site_file" >&5
1853 if test -r "$cache_file"; then
1854 # Some versions of bash will fail to source /dev/null (special
1855 # files actually), so we avoid doing that.
1856 if test -f "$cache_file"; then
1857 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1860 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861 *) . "./$cache_file";;
1865 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1870 # Check that the precious variables saved in the cache have kept the same
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875 eval ac_new_set=\$ac_env_${ac_var}_set
1876 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877 eval ac_new_val=\$ac_env_${ac_var}_value
1878 case $ac_old_set,$ac_new_set in
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1884 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886 ac_cache_corrupted=: ;;
1889 if test "x$ac_old_val" != "x$ac_new_val"; then
1890 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1893 echo "$as_me: former value: $ac_old_val" >&2;}
1894 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1895 echo "$as_me: current value: $ac_new_val" >&2;}
1896 ac_cache_corrupted=:
1899 # Pass precious variables to config.status.
1900 if test "$ac_new_set" = set; then
1902 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 *) ac_arg=$ac_var=$ac_new_val ;;
1905 case " $ac_configure_args " in
1906 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1907 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911 if $ac_cache_corrupted; then
1912 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916 { (exit 1); exit 1; }; }
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 am__api_version="1.9"
1944 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1945 if test -f "$ac_dir/install-sh"; then
1947 ac_install_sh="$ac_aux_dir/install-sh -c"
1949 elif test -f "$ac_dir/install.sh"; then
1951 ac_install_sh="$ac_aux_dir/install.sh -c"
1953 elif test -f "$ac_dir/shtool"; then
1955 ac_install_sh="$ac_aux_dir/shtool install -c"
1959 if test -z "$ac_aux_dir"; then
1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1974 # Find a good install program. We prefer a C program (faster),
1975 # so one script is as good as another. But avoid the broken or
1976 # incompatible versions:
1977 # SysV /etc/install, /usr/sbin/install
1978 # SunOS /usr/etc/install
1979 # IRIX /sbin/install
1981 # AmigaOS /C/install, which installs bootblocks on floppy discs
1982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1985 # OS/2's system install, which has a completely different semantic
1986 # ./install, which can be erroneously created by make from ./install.sh.
1987 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1989 if test -z "$INSTALL"; then
1990 if test "${ac_cv_path_install+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 # Account for people who put trailing slashes in PATH elements.
2000 ./ | .// | /cC/* | \
2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2005 # OSF1 and SCO ODT 3.0 have their own names for install.
2006 # Don't use installbsd from OSF since it installs stuff as root
2008 for ac_prog in ginstall scoinst install; do
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2011 if test $ac_prog = install &&
2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013 # AIX install. It has an incompatible calling convention.
2015 elif test $ac_prog = install &&
2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017 # program-specific install script used by HP pwplus--don't use.
2020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2033 if test "${ac_cv_path_install+set}" = set; then
2034 INSTALL=$ac_cv_path_install
2036 # As a last resort, use the slow shell script. Don't cache a
2037 # value for INSTALL within a source directory, because that will
2038 # break other packages using the cache if that directory is
2039 # removed, or if the value is a relative name.
2040 INSTALL=$ac_install_sh
2043 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2044 echo "${ECHO_T}$INSTALL" >&6; }
2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047 # It thinks the first close brace ends the variable substitution.
2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2054 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2055 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2058 echo timestamp > conftest.file
2059 # Do `set' in a subshell so we don't clobber the current shell's
2060 # arguments. Must try -L first in case configure is actually a
2061 # symlink; some systems play weird games with the mod time of symlinks
2062 # (eg FreeBSD returns the mod time of the symlink's containing
2065 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2066 if test "$*" = "X"; then
2068 set X `ls -t $srcdir/configure conftest.file`
2071 if test "$*" != "X $srcdir/configure conftest.file" \
2072 && test "$*" != "X conftest.file $srcdir/configure"; then
2074 # If neither matched, then we have a broken ls. This can happen
2075 # if, for instance, CONFIG_SHELL is bash and it inherits a
2076 # broken ls alias from the environment. This has actually
2077 # happened. Such a system could not be considered "sane".
2078 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" >&5
2080 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&2;}
2082 { (exit 1); exit 1; }; }
2085 test "$2" = conftest.file
2091 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2092 Check your system clock" >&5
2093 echo "$as_me: error: newly created file is older than distributed files!
2094 Check your system clock" >&2;}
2095 { (exit 1); exit 1; }; }
2097 { echo "$as_me:$LINENO: result: yes" >&5
2098 echo "${ECHO_T}yes" >&6; }
2099 test "$program_prefix" != NONE &&
2100 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2101 # Use a double $ so make ignores it.
2102 test "$program_suffix" != NONE &&
2103 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2104 # Double any \ or $. echo might interpret backslashes.
2105 # By default was `s,x,x', remove it if useless.
2106 cat <<\_ACEOF >conftest.sed
2107 s/[\\$]/&&/g;s/;s,x,x,$//
2109 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2112 # expand $ac_aux_dir to an absolute path
2113 am_aux_dir=`cd $ac_aux_dir && pwd`
2115 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2116 # Use eval to expand $SHELL
2117 if eval "$MISSING --run true"; then
2118 am_missing_run="$MISSING --run "
2121 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2122 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2125 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2126 # We used to keeping the `.' as first argument, in order to
2127 # allow $(mkdir_p) to be used without argument. As in
2128 # $(mkdir_p) $(somedir)
2129 # where $(somedir) is conditionally defined. However this is wrong
2131 # 1. if the package is installed by a user who cannot write `.'
2132 # make install will fail,
2133 # 2. the above comment should most certainly read
2134 # $(mkdir_p) $(DESTDIR)$(somedir)
2135 # so it does not work when $(somedir) is undefined and
2136 # $(DESTDIR) is not.
2137 # To support the latter case, we have to write
2138 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2139 # so the `.' trick is pointless.
2140 mkdir_p='mkdir -p --'
2142 # On NextStep and OpenStep, the `mkdir' command does not
2143 # recognize any option. It will interpret all options as
2144 # directories to create, and then abort because `.' already
2146 for d in ./-p ./--version;
2148 test -d $d && rmdir $d
2150 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2151 if test -f "$ac_aux_dir/mkinstalldirs"; then
2152 mkdir_p='$(mkinstalldirs)'
2154 mkdir_p='$(install_sh) -d'
2158 for ac_prog in gawk mawk nawk awk
2160 # Extract the first word of "$ac_prog", so it can be a program name with args.
2161 set dummy $ac_prog; ac_word=$2
2162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2164 if test "${ac_cv_prog_AWK+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test -n "$AWK"; then
2168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2177 ac_cv_prog_AWK="$ac_prog"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188 if test -n "$AWK"; then
2189 { echo "$as_me:$LINENO: result: $AWK" >&5
2190 echo "${ECHO_T}$AWK" >&6; }
2192 { echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6; }
2197 test -n "$AWK" && break
2200 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2201 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2202 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2203 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 cat >conftest.make <<\_ACEOF
2209 @echo '@@@%%%=$(MAKE)=@@@%%%'
2211 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2212 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2214 eval ac_cv_prog_make_${ac_make}_set=yes;;
2216 eval ac_cv_prog_make_${ac_make}_set=no;;
2220 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2221 { echo "$as_me:$LINENO: result: yes" >&5
2222 echo "${ECHO_T}yes" >&6; }
2225 { echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6; }
2227 SET_MAKE="MAKE=${MAKE-make}"
2230 rm -rf .tst 2>/dev/null
2231 mkdir .tst 2>/dev/null
2232 if test -d .tst; then
2237 rmdir .tst 2>/dev/null
2239 # test to see if srcdir already configured
2240 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2241 test -f $srcdir/config.status; then
2242 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2243 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2244 { (exit 1); exit 1; }; }
2247 # test whether we have cygpath
2248 if test -z "$CYGPATH_W"; then
2249 if (cygpath --version) >/dev/null 2>/dev/null; then
2250 CYGPATH_W='cygpath -w'
2257 # Define the identity of the package.
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE "$PACKAGE"
2267 cat >>confdefs.h <<_ACEOF
2268 #define VERSION "$VERSION"
2271 # Some tools Automake needs.
2273 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2276 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2279 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2282 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2285 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2287 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2289 # Installed binaries are usually stripped using `strip' when the user
2290 # run `make install-strip'. However `strip' might not be the right
2291 # tool to use in cross-compilation environments, therefore Automake
2292 # will honor the `STRIP' environment variable to overrule this program.
2293 if test "$cross_compiling" != no; then
2294 if test -n "$ac_tool_prefix"; then
2295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2296 set dummy ${ac_tool_prefix}strip; ac_word=$2
2297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2299 if test "${ac_cv_prog_STRIP+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 if test -n "$STRIP"; then
2303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 STRIP=$ac_cv_prog_STRIP
2323 if test -n "$STRIP"; then
2324 { echo "$as_me:$LINENO: result: $STRIP" >&5
2325 echo "${ECHO_T}$STRIP" >&6; }
2327 { echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6; }
2333 if test -z "$ac_cv_prog_STRIP"; then
2335 # Extract the first word of "strip", so it can be a program name with args.
2336 set dummy strip; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$ac_ct_STRIP"; then
2343 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_ac_ct_STRIP="strip"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2363 if test -n "$ac_ct_STRIP"; then
2364 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2365 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2371 if test "x$ac_ct_STRIP" = x; then
2374 case $cross_compiling:$ac_tool_warned in
2376 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2377 whose name does not start with the host triplet. If you think this
2378 configuration is useful to you, please write to autoconf@gnu.org." >&5
2379 echo "$as_me: 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." >&2;}
2382 ac_tool_warned=yes ;;
2387 STRIP="$ac_cv_prog_STRIP"
2391 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2393 # We need awk for the "check" target. The system "awk" is bad on
2395 # Always define AMTAR for backward compatibility.
2397 AMTAR=${AMTAR-"${am_missing_run}tar"}
2399 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2405 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2406 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2407 # Check whether --enable-maintainer-mode was given.
2408 if test "${enable_maintainer_mode+set}" = set; then
2409 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2411 USE_MAINTAINER_MODE=no
2414 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2415 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2418 if test $USE_MAINTAINER_MODE = yes; then
2419 MAINTAINER_MODE_TRUE=
2420 MAINTAINER_MODE_FALSE='#'
2422 MAINTAINER_MODE_TRUE='#'
2423 MAINTAINER_MODE_FALSE=
2426 MAINT=$MAINTAINER_MODE_TRUE
2429 ac_config_headers="$ac_config_headers config.h"
2432 # Make sure we can run config.sub.
2433 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2434 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2435 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2436 { (exit 1); exit 1; }; }
2438 { echo "$as_me:$LINENO: checking build system type" >&5
2439 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2440 if test "${ac_cv_build+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 ac_build_alias=$build_alias
2444 test "x$ac_build_alias" = x &&
2445 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2446 test "x$ac_build_alias" = x &&
2447 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2448 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2449 { (exit 1); exit 1; }; }
2450 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2451 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2452 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2453 { (exit 1); exit 1; }; }
2456 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2457 echo "${ECHO_T}$ac_cv_build" >&6; }
2458 case $ac_cv_build in
2460 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2461 echo "$as_me: error: invalid value of canonical build" >&2;}
2462 { (exit 1); exit 1; }; };;
2465 ac_save_IFS=$IFS; IFS='-'
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2475 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2478 { echo "$as_me:$LINENO: checking host system type" >&5
2479 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2480 if test "${ac_cv_host+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test "x$host_alias" = x; then
2484 ac_cv_host=$ac_cv_build
2486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2487 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2488 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2489 { (exit 1); exit 1; }; }
2493 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2494 echo "${ECHO_T}$ac_cv_host" >&6; }
2497 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2498 echo "$as_me: error: invalid value of canonical host" >&2;}
2499 { (exit 1); exit 1; }; };;
2502 ac_save_IFS=$IFS; IFS='-'
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2512 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2524 # Defines --with-android, --with-android-ndk, and --with-android-version
2525 # If specified, checks for a working install, and sets build parameters
2526 # appropriately for an Android host.
2532 # Check whether --with-android was given.
2533 if test "${with_android+set}" = set; then
2534 withval=$with_android;
2538 # Check whether --with-android-ndk was given.
2539 if test "${with_android_ndk+set}" = set; then
2540 withval=$with_android_ndk;
2544 # Check whether --with-android-version was given.
2545 if test "${with_android_version+set}" = set; then
2546 withval=$with_android_version;
2548 with_android_version="android-11"
2552 # Check whether --with-android-ndk-version was given.
2553 if test "${with_android_ndk_version+set}" = set; then
2554 withval=$with_android_ndk_version;
2556 with_ndk_version="android-9"
2560 if test "x$with_android" != "x"; then
2561 if test "$with_android" = "yes"; then
2562 { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
2563 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
2564 { (exit 1); exit 1; }; }
2566 if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
2567 { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
2568 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
2569 { (exit 1); exit 1; }; }
2572 ANDROID_SDK_HOME="$with_android"
2573 ANDROID_NDK_HOME="$with_android_ndk"
2574 ANDROID_SDK_VERSION="$with_android_version"
2575 ANDROID_NDK_VERSION="$with_ndk_version"
2577 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
2578 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
2579 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
2580 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 test "$cross_compiling" = yes &&
2584 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2585 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2586 { (exit 1); exit 1; }; }
2587 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
2588 eval "$as_ac_File=yes"
2590 eval "$as_ac_File=no"
2593 ac_res=`eval echo '${'$as_ac_File'}'`
2594 { echo "$as_me:$LINENO: result: $ac_res" >&5
2595 echo "${ECHO_T}$ac_res" >&6; }
2596 if test `eval echo '${'$as_ac_File'}'` = yes; then
2599 { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
2600 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
2601 { (exit 1); exit 1; }; }
2604 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
2605 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
2606 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
2607 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 test "$cross_compiling" = yes &&
2611 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2612 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2613 { (exit 1); exit 1; }; }
2614 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
2615 eval "$as_ac_File=yes"
2617 eval "$as_ac_File=no"
2620 ac_res=`eval echo '${'$as_ac_File'}'`
2621 { echo "$as_me:$LINENO: result: $ac_res" >&5
2622 echo "${ECHO_T}$ac_res" >&6; }
2623 if test `eval echo '${'$as_ac_File'}'` = yes; then
2626 { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
2627 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
2628 { (exit 1); exit 1; }; }
2631 as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
2632 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
2633 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
2634 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 test "$cross_compiling" = yes &&
2638 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2639 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2640 { (exit 1); exit 1; }; }
2641 if test -r "$ANDROID_NDK_HOME/toolchains"; then
2642 eval "$as_ac_File=yes"
2644 eval "$as_ac_File=no"
2647 ac_res=`eval echo '${'$as_ac_File'}'`
2648 { echo "$as_me:$LINENO: result: $ac_res" >&5
2649 echo "${ECHO_T}$ac_res" >&6; }
2650 if test `eval echo '${'$as_ac_File'}'` = yes; then
2653 { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
2654 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
2655 { (exit 1); exit 1; }; }
2661 host_alias="arm-linux-androideabi"
2663 host_vendor="unknown";
2664 host_os="linux-androideabi"
2665 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
2666 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
2667 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-arm"
2668 TARGETFLAGS="-ffunction-sections -funwind-tables -fstack-protector -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wno-psabi -Wa,--noexecstack"
2669 TARGETFLAGS="$TARGETFLAGS -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -march=armv5te -mtune=xscale -msoft-float -mthumb -Os"
2672 host_alias="i686-android-linux"
2674 host_vendor="android"
2676 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
2677 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
2678 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-x86"
2682 { { echo "$as_me:$LINENO: error: Unsupported android host $host_alias" >&5
2683 echo "$as_me: error: Unsupported android host $host_alias" >&2;}
2684 { (exit 1); exit 1; }; }
2688 # Extract the first word of "ant ", so it can be a program name with args.
2689 set dummy ant ; ac_word=$2
2690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2692 if test "${ac_cv_path_ANT+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
2708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 if test -n "$ANT"; then
2720 { echo "$as_me:$LINENO: result: $ANT" >&5
2721 echo "${ECHO_T}$ANT" >&6; }
2723 { echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6; }
2729 CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
2730 CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
2731 CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
2732 LD="$ANDROID_NDK_BIN/${host_alias}-ld"
2733 AR="$ANDROID_NDK_BIN/${host_alias}-ar"
2734 RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
2735 STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
2736 OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
2737 CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
2738 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"
2739 LIBS="$LIBS -liconv -landroid -llog -lgcc -lc -lm"
2753 if test "$ANDROID_BUILD" = "yes"; then
2755 GUI_ANDROID_FALSE='#'
2757 GUI_ANDROID_TRUE='#'
2764 DEPDIR="${am__leading_dot}deps"
2766 ac_config_commands="$ac_config_commands depfiles"
2769 am_make=${MAKE-make}
2770 cat > confinc << 'END'
2775 # If we don't find an include directive, just comment out the code.
2776 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2777 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2781 # First try GNU make style include.
2782 echo "include confinc" > confmf
2783 # We grep out `Entering directory' and `Leaving directory'
2784 # messages which can occur if `w' ends up in MAKEFLAGS.
2785 # In particular we don't look at `^make:' because GNU make might
2786 # be invoked under some other name (usually "gmake"), in which
2787 # case it prints its new name instead of `make'.
2788 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2793 # Now try BSD make style include.
2794 if test "$am__include" = "#"; then
2795 echo '.include "confinc"' > confmf
2796 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2797 am__include=.include
2804 { echo "$as_me:$LINENO: result: $_am_result" >&5
2805 echo "${ECHO_T}$_am_result" >&6; }
2806 rm -f confinc confmf
2808 # Check whether --enable-dependency-tracking was given.
2809 if test "${enable_dependency_tracking+set}" = set; then
2810 enableval=$enable_dependency_tracking;
2813 if test "x$enable_dependency_tracking" != xno; then
2814 am_depcomp="$ac_aux_dir/depcomp"
2819 if test "x$enable_dependency_tracking" != xno; then
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_CC+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 if test -n "$CC"; then
2864 { echo "$as_me:$LINENO: result: $CC" >&5
2865 echo "${ECHO_T}$CC" >&6; }
2867 { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2873 if test -z "$ac_cv_prog_CC"; then
2875 # Extract the first word of "gcc", so it can be a program name with args.
2876 set dummy gcc; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_ac_ct_CC="gcc"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903 if test -n "$ac_ct_CC"; then
2904 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2905 echo "${ECHO_T}$ac_ct_CC" >&6; }
2907 { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2911 if test "x$ac_ct_CC" = x; then
2914 case $cross_compiling:$ac_tool_warned in
2916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2917 whose name does not start with the host triplet. If you think this
2918 configuration is useful to you, please write to autoconf@gnu.org." >&5
2919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2920 whose name does not start with the host triplet. If you think this
2921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2922 ac_tool_warned=yes ;;
2930 if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_CC="${ac_tool_prefix}cc"
2950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 if test -n "$CC"; then
2961 { echo "$as_me:$LINENO: result: $CC" >&5
2962 echo "${ECHO_T}$CC" >&6; }
2964 { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2971 if test -z "$CC"; then
2972 # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2976 if test "${ac_cv_prog_CC+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991 ac_prog_rejected=yes
2995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 if test $ac_prog_rejected = yes; then
3003 # We found a bogon in the path, so make sure we never use it.
3004 set dummy $ac_cv_prog_CC
3006 if test $# != 0; then
3007 # We chose a different compiler from the bogus one.
3008 # However, it has the same basename, so the bogon will be chosen
3009 # first if we set CC to just the basename; use the full file name.
3011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3017 if test -n "$CC"; then
3018 { echo "$as_me:$LINENO: result: $CC" >&5
3019 echo "${ECHO_T}$CC" >&6; }
3021 { echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6; }
3027 if test -z "$CC"; then
3028 if test -n "$ac_tool_prefix"; then
3029 for ac_prog in cl.exe
3031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 { echo "$as_me:$LINENO: result: $CC" >&5
3061 echo "${ECHO_T}$CC" >&6; }
3063 { echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6; }
3068 test -n "$CC" && break
3071 if test -z "$CC"; then
3073 for ac_prog in cl.exe
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 if test -n "$ac_ct_CC"; then
3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_ac_ct_CC="$ac_prog"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3105 echo "${ECHO_T}$ac_ct_CC" >&6; }
3107 { echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6; }
3112 test -n "$ac_ct_CC" && break
3115 if test "x$ac_ct_CC" = x; then
3118 case $cross_compiling:$ac_tool_warned in
3120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3121 whose name does not start with the host triplet. If you think this
3122 configuration is useful to you, please write to autoconf@gnu.org." >&5
3123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3124 whose name does not start with the host triplet. If you think this
3125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3126 ac_tool_warned=yes ;;
3135 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3136 See \`config.log' for more details." >&5
3137 echo "$as_me: error: no acceptable C compiler found in \$PATH
3138 See \`config.log' for more details." >&2;}
3139 { (exit 1); exit 1; }; }
3141 # Provide some information about the compiler.
3142 echo "$as_me:$LINENO: checking for C compiler version" >&5
3143 ac_compiler=`set X $ac_compile; echo $2`
3144 { (ac_try="$ac_compiler --version >&5"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compiler --version >&5") 2>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }
3154 { (ac_try="$ac_compiler -v >&5"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_compiler -v >&5") 2>&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }
3164 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3190 ac_clean_files_save=$ac_clean_files
3191 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3192 # Try to create an executable without -o first, disregard a.out.
3193 # It will help us diagnose broken compilers, and finding out an intuition
3195 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3196 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3197 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3199 # List of possible output files, starting from the most likely.
3200 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3201 # only as a last resort. b.out is created by i960 compilers.
3202 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3204 # The IRIX 6 linker writes into existing files which may not be
3205 # executable, retaining their permissions. Remove them first so a
3206 # subsequent execution test works.
3208 for ac_file in $ac_files
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3212 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3217 if { (ac_try="$ac_link_default"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_link_default") 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; then
3227 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3228 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3229 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3230 # so that the user can short-circuit this test for compilers unknown to
3232 for ac_file in $ac_files ''
3234 test -f "$ac_file" || continue
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3239 # We found the default executable, but exeext='' is most
3243 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3245 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247 # We set ac_cv_exeext here because the later test for it is not
3248 # safe: cross compilers may not add the suffix if given an `-o'
3249 # argument, so we may need to know it at that point already.
3250 # Even if this section looks crufty: it has the advantage of
3257 test "$ac_cv_exeext" = no && ac_cv_exeext=
3263 { echo "$as_me:$LINENO: result: $ac_file" >&5
3264 echo "${ECHO_T}$ac_file" >&6; }
3265 if test -z "$ac_file"; then
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3270 See \`config.log' for more details." >&5
3271 echo "$as_me: error: C compiler cannot create executables
3272 See \`config.log' for more details." >&2;}
3273 { (exit 77); exit 77; }; }
3276 ac_exeext=$ac_cv_exeext
3278 # Check that the compiler produces executables we can run. If not, either
3279 # the compiler is broken, or we cross compile.
3280 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3281 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3282 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3283 # If not cross compiling, check that we can run a simple program.
3284 if test "$cross_compiling" != yes; then
3285 if { ac_try='./$ac_file'
3286 { (case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_try") 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3297 if test "$cross_compiling" = maybe; then
3300 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3301 If you meant to cross compile, use \`--host'.
3302 See \`config.log' for more details." >&5
3303 echo "$as_me: error: cannot run C compiled programs.
3304 If you meant to cross compile, use \`--host'.
3305 See \`config.log' for more details." >&2;}
3306 { (exit 1); exit 1; }; }
3310 { echo "$as_me:$LINENO: result: yes" >&5
3311 echo "${ECHO_T}yes" >&6; }
3313 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3314 ac_clean_files=$ac_clean_files_save
3315 # Check that the compiler produces executables we can run. If not, either
3316 # the compiler is broken, or we cross compile.
3317 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3318 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3319 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3320 echo "${ECHO_T}$cross_compiling" >&6; }
3322 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3323 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3324 if { (ac_try="$ac_link"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_link") 2>&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; then
3334 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3335 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3336 # work properly (i.e., refer to `conftest.exe'), while it won't with
3338 for ac_file in conftest.exe conftest conftest.*; do
3339 test -f "$ac_file" || continue
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3349 See \`config.log' for more details." >&5
3350 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3351 See \`config.log' for more details." >&2;}
3352 { (exit 1); exit 1; }; }
3355 rm -f conftest$ac_cv_exeext
3356 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3357 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3359 rm -f conftest.$ac_ext
3360 EXEEXT=$ac_cv_exeext
3362 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3363 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3364 if test "${ac_cv_objext+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 cat >conftest.$ac_ext <<_ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3382 rm -f conftest.o conftest.obj
3383 if { (ac_try="$ac_compile"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_compile") 2>&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; then
3393 for ac_file in conftest.o conftest.obj conftest.*; do
3394 test -f "$ac_file" || continue;
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3397 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3406 See \`config.log' for more details." >&5
3407 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3408 See \`config.log' for more details." >&2;}
3409 { (exit 1); exit 1; }; }
3412 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3414 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3415 echo "${ECHO_T}$ac_cv_objext" >&6; }
3416 OBJEXT=$ac_cv_objext
3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3419 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3420 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3470 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3471 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3472 GCC=`test $ac_compiler_gnu = yes && echo yes`
3473 ac_test_CFLAGS=${CFLAGS+set}
3474 ac_save_CFLAGS=$CFLAGS
3475 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3476 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3477 if test "${ac_cv_prog_cc_g+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 ac_save_c_werror_flag=$ac_c_werror_flag
3481 ac_c_werror_flag=yes
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_compile") 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } && {
3513 test -z "$ac_c_werror_flag" ||
3514 test ! -s conftest.err
3515 } && test -s conftest.$ac_objext; then
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_compile") 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } && {
3551 test -z "$ac_c_werror_flag" ||
3552 test ! -s conftest.err
3553 } && test -s conftest.$ac_objext; then
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 ac_c_werror_flag=$ac_save_c_werror_flag
3561 cat >conftest.$ac_ext <<_ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_c_werror_flag=$ac_save_c_werror_flag
3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3611 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613 CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615 if test "$GCC" = yes; then
3621 if test "$GCC" = yes; then
3627 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3628 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3629 if test "${ac_cv_prog_cc_c89+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 ac_cv_prog_cc_c89=no
3634 cat >conftest.$ac_ext <<_ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3642 #include <sys/types.h>
3643 #include <sys/stat.h>
3644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3645 struct buf { int x; };
3646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3647 static char *e (p, i)
3653 static char *f (char * (*g) (char **, int), char **p, ...)
3658 s = g (p, va_arg (v,int));
3663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3664 function prototypes and stuff, but not '\xHH' hex character constants.
3665 These don't provoke an error unfortunately, instead are silently treated
3666 as 'x'. The following induces an error, until -std is added to get
3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3668 array size at least. It's necessary to write '\x00'==0 to get something
3669 that's true only with -std. */
3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673 inside strings and character constants. */
3675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3694 CC="$ac_save_CC $ac_arg"
3695 rm -f conftest.$ac_objext
3696 if { (ac_try="$ac_compile"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_compile") 2>conftest.er1
3704 grep -v '^ *+' conftest.er1 >conftest.err
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } && {
3709 test -z "$ac_c_werror_flag" ||
3710 test ! -s conftest.err
3711 } && test -s conftest.$ac_objext; then
3712 ac_cv_prog_cc_c89=$ac_arg
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3720 rm -f core conftest.err conftest.$ac_objext
3721 test "x$ac_cv_prog_cc_c89" != "xno" && break
3723 rm -f conftest.$ac_ext
3728 case "x$ac_cv_prog_cc_c89" in
3730 { echo "$as_me:$LINENO: result: none needed" >&5
3731 echo "${ECHO_T}none needed" >&6; } ;;
3733 { echo "$as_me:$LINENO: result: unsupported" >&5
3734 echo "${ECHO_T}unsupported" >&6; } ;;
3736 CC="$CC $ac_cv_prog_cc_c89"
3737 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3738 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 depcc="$CC" am_compiler_list=
3750 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3751 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3752 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3756 # We make a subdir and do the tests there. Otherwise we can end up
3757 # making bogus files that we don't know about and never remove. For
3758 # instance it was reported that on HP-UX the gcc test will end up
3759 # making a dummy file named `D' -- because `-MD' means `put the output
3762 # Copy depcomp to subdir because otherwise we won't find it if we're
3763 # using a relative directory.
3764 cp "$am_depcomp" conftest.dir
3766 # We will build objects and dependencies in a subdirectory because
3767 # it helps to detect inapplicable dependency modes. For instance
3768 # both Tru64's cc and ICC support -MD to output dependencies as a
3769 # side effect of compilation, but ICC will put the dependencies in
3770 # the current directory while Tru64 will put them in the object
3774 am_cv_CC_dependencies_compiler_type=none
3775 if test "$am_compiler_list" = ""; then
3776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3778 for depmode in $am_compiler_list; do
3779 # Setup a source with many dependencies, because some compilers
3780 # like to wrap large dependency lists on column 80 (with \), and
3781 # we should not choose a depcomp mode which is confused by this.
3783 # We need to recreate these files for each test, as the compiler may
3784 # overwrite some of them when testing with obscure command lines.
3785 # This happens at least with the AIX C compiler.
3787 for i in 1 2 3 4 5 6; do
3788 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3789 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3790 # Solaris 8's {/usr,}/bin/sh.
3791 touch sub/conftst$i.h
3793 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3797 # after this tag, mechanisms are not by side-effect, so they'll
3798 # only be used when explicitly requested
3799 if test "x$enable_dependency_tracking" = xyes; then
3807 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3808 # mode. It turns out that the SunPro C++ compiler does not properly
3809 # handle `-M -o', and we need to detect this.
3810 if depmode=$depmode \
3811 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3812 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3813 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3814 >/dev/null 2>conftest.err &&
3815 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3816 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3817 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3818 # icc doesn't choke on unknown options, it will just issue warnings
3819 # or remarks (even with -Werror). So we grep stderr for any message
3820 # that says an option was ignored or not supported.
3821 # When given -MP, icc 7.0 and 7.1 complain thusly:
3822 # icc: Command line warning: ignoring option '-M'; no argument required
3823 # The diagnosis changed in icc 8.0:
3824 # icc: Command line remark: option '-MP' not supported
3825 if (grep 'ignoring option' conftest.err ||
3826 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3827 am_cv_CC_dependencies_compiler_type=$depmode
3836 am_cv_CC_dependencies_compiler_type=none
3840 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3841 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3842 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3847 test "x$enable_dependency_tracking" != xno \
3848 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3850 am__fastdepCC_FALSE='#'
3852 am__fastdepCC_TRUE='#'
3853 am__fastdepCC_FALSE=
3859 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3860 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3861 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 ac_check_lib_save_LIBS=$LIBS
3865 LIBS="-lcposix $LIBS"
3866 cat >conftest.$ac_ext <<_ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3873 /* Override any GCC internal prototype to avoid an error.
3874 Use char because int might match the return type of a GCC
3875 builtin and then its argument prototype would still apply. */
3888 rm -f conftest.$ac_objext conftest$ac_exeext
3889 if { (ac_try="$ac_link"
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_link") 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } && {
3902 test -z "$ac_c_werror_flag" ||
3903 test ! -s conftest.err
3904 } && test -s conftest$ac_exeext &&
3905 $as_test_x conftest$ac_exeext; then
3906 ac_cv_lib_cposix_strerror=yes
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 ac_cv_lib_cposix_strerror=no
3914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3915 conftest$ac_exeext conftest.$ac_ext
3916 LIBS=$ac_check_lib_save_LIBS
3918 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3919 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3920 if test $ac_cv_lib_cposix_strerror = yes; then
3921 LIBS="$LIBS -lcposix"
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 if test -n "$ac_tool_prefix"; then
3932 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3933 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3936 if test "${ac_cv_prog_CC+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 if test -n "$CC"; then
3940 ac_cv_prog_CC="$CC" # Let the user override the test.
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3949 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 if test -n "$CC"; then
3961 { echo "$as_me:$LINENO: result: $CC" >&5
3962 echo "${ECHO_T}$CC" >&6; }
3964 { echo "$as_me:$LINENO: result: no" >&5
3965 echo "${ECHO_T}no" >&6; }
3970 if test -z "$ac_cv_prog_CC"; then
3972 # Extract the first word of "gcc", so it can be a program name with args.
3973 set dummy gcc; ac_word=$2
3974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 if test -n "$ac_ct_CC"; then
3980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989 ac_cv_prog_ac_ct_CC="gcc"
3990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4000 if test -n "$ac_ct_CC"; then
4001 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4002 echo "${ECHO_T}$ac_ct_CC" >&6; }
4004 { echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6; }
4008 if test "x$ac_ct_CC" = x; then
4011 case $cross_compiling:$ac_tool_warned in
4013 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4014 whose name does not start with the host triplet. If you think this
4015 configuration is useful to you, please write to autoconf@gnu.org." >&5
4016 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4017 whose name does not start with the host triplet. If you think this
4018 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4019 ac_tool_warned=yes ;;
4027 if test -z "$CC"; then
4028 if test -n "$ac_tool_prefix"; then
4029 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4030 set dummy ${ac_tool_prefix}cc; ac_word=$2
4031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4033 if test "${ac_cv_prog_CC+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if test -n "$CC"; then
4037 ac_cv_prog_CC="$CC" # Let the user override the test.
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_prog_CC="${ac_tool_prefix}cc"
4047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 if test -n "$CC"; then
4058 { echo "$as_me:$LINENO: result: $CC" >&5
4059 echo "${ECHO_T}$CC" >&6; }
4061 { echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6; }
4068 if test -z "$CC"; then
4069 # Extract the first word of "cc", so it can be a program name with args.
4070 set dummy cc; ac_word=$2
4071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4073 if test "${ac_cv_prog_CC+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 if test -n "$CC"; then
4077 ac_cv_prog_CC="$CC" # Let the user override the test.
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 test -z "$as_dir" && as_dir=.
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4087 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4088 ac_prog_rejected=yes
4092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 if test $ac_prog_rejected = yes; then
4100 # We found a bogon in the path, so make sure we never use it.
4101 set dummy $ac_cv_prog_CC
4103 if test $# != 0; then
4104 # We chose a different compiler from the bogus one.
4105 # However, it has the same basename, so the bogon will be chosen
4106 # first if we set CC to just the basename; use the full file name.
4108 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4114 if test -n "$CC"; then
4115 { echo "$as_me:$LINENO: result: $CC" >&5
4116 echo "${ECHO_T}$CC" >&6; }
4118 { echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6; }
4124 if test -z "$CC"; then
4125 if test -n "$ac_tool_prefix"; then
4126 for ac_prog in cl.exe
4128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4132 if test "${ac_cv_prog_CC+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 if test -n "$CC"; then
4157 { echo "$as_me:$LINENO: result: $CC" >&5
4158 echo "${ECHO_T}$CC" >&6; }
4160 { echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6; }
4165 test -n "$CC" && break
4168 if test -z "$CC"; then
4170 for ac_prog in cl.exe
4172 # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy $ac_prog; ac_word=$2
4174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 if test -n "$ac_ct_CC"; then
4180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189 ac_cv_prog_ac_ct_CC="$ac_prog"
4190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4200 if test -n "$ac_ct_CC"; then
4201 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4202 echo "${ECHO_T}$ac_ct_CC" >&6; }
4204 { echo "$as_me:$LINENO: result: no" >&5
4205 echo "${ECHO_T}no" >&6; }
4209 test -n "$ac_ct_CC" && break
4212 if test "x$ac_ct_CC" = x; then
4215 case $cross_compiling:$ac_tool_warned in
4217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4218 whose name does not start with the host triplet. If you think this
4219 configuration is useful to you, please write to autoconf@gnu.org." >&5
4220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4221 whose name does not start with the host triplet. If you think this
4222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4223 ac_tool_warned=yes ;;
4232 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4233 See \`config.log' for more details." >&5
4234 echo "$as_me: error: no acceptable C compiler found in \$PATH
4235 See \`config.log' for more details." >&2;}
4236 { (exit 1); exit 1; }; }
4238 # Provide some information about the compiler.
4239 echo "$as_me:$LINENO: checking for C compiler version" >&5
4240 ac_compiler=`set X $ac_compile; echo $2`
4241 { (ac_try="$ac_compiler --version >&5"
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_compiler --version >&5") 2>&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }
4251 { (ac_try="$ac_compiler -v >&5"
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_compiler -v >&5") 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }
4261 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }
4272 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 cat >conftest.$ac_ext <<_ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4295 rm -f conftest.$ac_objext
4296 if { (ac_try="$ac_compile"
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_compile") 2>conftest.er1
4304 grep -v '^ *+' conftest.er1 >conftest.err
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } && {
4309 test -z "$ac_c_werror_flag" ||
4310 test ! -s conftest.err
4311 } && test -s conftest.$ac_objext; then
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4324 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4325 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4326 GCC=`test $ac_compiler_gnu = yes && echo yes`
4327 ac_test_CFLAGS=${CFLAGS+set}
4328 ac_save_CFLAGS=$CFLAGS
4329 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4330 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4331 if test "${ac_cv_prog_cc_g+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 ac_save_c_werror_flag=$ac_c_werror_flag
4335 ac_c_werror_flag=yes
4338 cat >conftest.$ac_ext <<_ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4353 rm -f conftest.$ac_objext
4354 if { (ac_try="$ac_compile"
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_compile") 2>conftest.er1
4362 grep -v '^ *+' conftest.er1 >conftest.err
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest.$ac_objext; then
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4376 cat >conftest.$ac_ext <<_ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4391 rm -f conftest.$ac_objext
4392 if { (ac_try="$ac_compile"
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_compile") 2>conftest.er1
4400 grep -v '^ *+' conftest.er1 >conftest.err
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } && {
4405 test -z "$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4407 } && test -s conftest.$ac_objext; then
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_c_werror_flag=$ac_save_c_werror_flag
4415 cat >conftest.$ac_ext <<_ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4430 rm -f conftest.$ac_objext
4431 if { (ac_try="$ac_compile"
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_compile") 2>conftest.er1
4439 grep -v '^ *+' conftest.er1 >conftest.err
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } && {
4444 test -z "$ac_c_werror_flag" ||
4445 test ! -s conftest.err
4446 } && test -s conftest.$ac_objext; then
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462 ac_c_werror_flag=$ac_save_c_werror_flag
4464 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4465 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4466 if test "$ac_test_CFLAGS" = set; then
4467 CFLAGS=$ac_save_CFLAGS
4468 elif test $ac_cv_prog_cc_g = yes; then
4469 if test "$GCC" = yes; then
4475 if test "$GCC" = yes; then
4481 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4482 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4483 if test "${ac_cv_prog_cc_c89+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 ac_cv_prog_cc_c89=no
4488 cat >conftest.$ac_ext <<_ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4496 #include <sys/types.h>
4497 #include <sys/stat.h>
4498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4499 struct buf { int x; };
4500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4501 static char *e (p, i)
4507 static char *f (char * (*g) (char **, int), char **p, ...)
4512 s = g (p, va_arg (v,int));
4517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4518 function prototypes and stuff, but not '\xHH' hex character constants.
4519 These don't provoke an error unfortunately, instead are silently treated
4520 as 'x'. The following induces an error, until -std is added to get
4521 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4522 array size at least. It's necessary to write '\x00'==0 to get something
4523 that's true only with -std. */
4524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4526 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4527 inside strings and character constants. */
4529 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4531 int test (int i, double x);
4532 struct s1 {int (*f) (int a);};
4533 struct s2 {int (*f) (double a);};
4534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4546 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4548 CC="$ac_save_CC $ac_arg"
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_compile") 2>conftest.er1
4558 grep -v '^ *+' conftest.er1 >conftest.err
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } && {
4563 test -z "$ac_c_werror_flag" ||
4564 test ! -s conftest.err
4565 } && test -s conftest.$ac_objext; then
4566 ac_cv_prog_cc_c89=$ac_arg
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4574 rm -f core conftest.err conftest.$ac_objext
4575 test "x$ac_cv_prog_cc_c89" != "xno" && break
4577 rm -f conftest.$ac_ext
4582 case "x$ac_cv_prog_cc_c89" in
4584 { echo "$as_me:$LINENO: result: none needed" >&5
4585 echo "${ECHO_T}none needed" >&6; } ;;
4587 { echo "$as_me:$LINENO: result: unsupported" >&5
4588 echo "${ECHO_T}unsupported" >&6; } ;;
4590 CC="$CC $ac_cv_prog_cc_c89"
4591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4592 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4597 ac_cpp='$CPP $CPPFLAGS'
4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 depcc="$CC" am_compiler_list=
4604 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4605 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4606 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4610 # We make a subdir and do the tests there. Otherwise we can end up
4611 # making bogus files that we don't know about and never remove. For
4612 # instance it was reported that on HP-UX the gcc test will end up
4613 # making a dummy file named `D' -- because `-MD' means `put the output
4616 # Copy depcomp to subdir because otherwise we won't find it if we're
4617 # using a relative directory.
4618 cp "$am_depcomp" conftest.dir
4620 # We will build objects and dependencies in a subdirectory because
4621 # it helps to detect inapplicable dependency modes. For instance
4622 # both Tru64's cc and ICC support -MD to output dependencies as a
4623 # side effect of compilation, but ICC will put the dependencies in
4624 # the current directory while Tru64 will put them in the object
4628 am_cv_CC_dependencies_compiler_type=none
4629 if test "$am_compiler_list" = ""; then
4630 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4632 for depmode in $am_compiler_list; do
4633 # Setup a source with many dependencies, because some compilers
4634 # like to wrap large dependency lists on column 80 (with \), and
4635 # we should not choose a depcomp mode which is confused by this.
4637 # We need to recreate these files for each test, as the compiler may
4638 # overwrite some of them when testing with obscure command lines.
4639 # This happens at least with the AIX C compiler.
4641 for i in 1 2 3 4 5 6; do
4642 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4643 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4644 # Solaris 8's {/usr,}/bin/sh.
4645 touch sub/conftst$i.h
4647 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4651 # after this tag, mechanisms are not by side-effect, so they'll
4652 # only be used when explicitly requested
4653 if test "x$enable_dependency_tracking" = xyes; then
4661 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4662 # mode. It turns out that the SunPro C++ compiler does not properly
4663 # handle `-M -o', and we need to detect this.
4664 if depmode=$depmode \
4665 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4667 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4668 >/dev/null 2>conftest.err &&
4669 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4670 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4671 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4672 # icc doesn't choke on unknown options, it will just issue warnings
4673 # or remarks (even with -Werror). So we grep stderr for any message
4674 # that says an option was ignored or not supported.
4675 # When given -MP, icc 7.0 and 7.1 complain thusly:
4676 # icc: Command line warning: ignoring option '-M'; no argument required
4677 # The diagnosis changed in icc 8.0:
4678 # icc: Command line remark: option '-MP' not supported
4679 if (grep 'ignoring option' conftest.err ||
4680 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4681 am_cv_CC_dependencies_compiler_type=$depmode
4690 am_cv_CC_dependencies_compiler_type=none
4694 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4695 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4696 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4701 test "x$enable_dependency_tracking" != xno \
4702 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4704 am__fastdepCC_FALSE='#'
4706 am__fastdepCC_TRUE='#'
4707 am__fastdepCC_FALSE=
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716 if test -n "$ac_tool_prefix"; then
4717 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_prog_CC+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 if test -n "$CC"; then
4725 ac_cv_prog_CC="$CC" # Let the user override the test.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 if test -n "$CC"; then
4746 { echo "$as_me:$LINENO: result: $CC" >&5
4747 echo "${ECHO_T}$CC" >&6; }
4749 { echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6; }
4755 if test -z "$ac_cv_prog_CC"; then
4757 # Extract the first word of "gcc", so it can be a program name with args.
4758 set dummy gcc; ac_word=$2
4759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4761 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 if test -n "$ac_ct_CC"; then
4765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_prog_ac_ct_CC="gcc"
4775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4785 if test -n "$ac_ct_CC"; then
4786 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4787 echo "${ECHO_T}$ac_ct_CC" >&6; }
4789 { echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6; }
4793 if test "x$ac_ct_CC" = x; then
4796 case $cross_compiling:$ac_tool_warned in
4798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4799 whose name does not start with the host triplet. If you think this
4800 configuration is useful to you, please write to autoconf@gnu.org." >&5
4801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4802 whose name does not start with the host triplet. If you think this
4803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4804 ac_tool_warned=yes ;;
4812 if test -z "$CC"; then
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}cc; ac_word=$2
4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818 if test "${ac_cv_prog_CC+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 if test -n "$CC"; then
4822 ac_cv_prog_CC="$CC" # Let the user override the test.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_CC="${ac_tool_prefix}cc"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 if test -n "$CC"; then
4843 { echo "$as_me:$LINENO: result: $CC" >&5
4844 echo "${ECHO_T}$CC" >&6; }
4846 { echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6; }
4853 if test -z "$CC"; then
4854 # Extract the first word of "cc", so it can be a program name with args.
4855 set dummy cc; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_prog_CC+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 if test -n "$CC"; then
4862 ac_cv_prog_CC="$CC" # Let the user override the test.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4873 ac_prog_rejected=yes
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 if test $ac_prog_rejected = yes; then
4885 # We found a bogon in the path, so make sure we never use it.
4886 set dummy $ac_cv_prog_CC
4888 if test $# != 0; then
4889 # We chose a different compiler from the bogus one.
4890 # However, it has the same basename, so the bogon will be chosen
4891 # first if we set CC to just the basename; use the full file name.
4893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4899 if test -n "$CC"; then
4900 { echo "$as_me:$LINENO: result: $CC" >&5
4901 echo "${ECHO_T}$CC" >&6; }
4903 { echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6; }
4909 if test -z "$CC"; then
4910 if test -n "$ac_tool_prefix"; then
4911 for ac_prog in cl.exe
4913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4917 if test "${ac_cv_prog_CC+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 if test -n "$CC"; then
4921 ac_cv_prog_CC="$CC" # Let the user override the test.
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 if test -n "$CC"; then
4942 { echo "$as_me:$LINENO: result: $CC" >&5
4943 echo "${ECHO_T}$CC" >&6; }
4945 { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4950 test -n "$CC" && break
4953 if test -z "$CC"; then
4955 for ac_prog in cl.exe
4957 # Extract the first word of "$ac_prog", so it can be a program name with args.
4958 set dummy $ac_prog; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 if test -n "$ac_ct_CC"; then
4965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974 ac_cv_prog_ac_ct_CC="$ac_prog"
4975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4985 if test -n "$ac_ct_CC"; then
4986 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4987 echo "${ECHO_T}$ac_ct_CC" >&6; }
4989 { echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6; }
4994 test -n "$ac_ct_CC" && break
4997 if test "x$ac_ct_CC" = x; then
5000 case $cross_compiling:$ac_tool_warned in
5002 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5003 whose name does not start with the host triplet. If you think this
5004 configuration is useful to you, please write to autoconf@gnu.org." >&5
5005 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5006 whose name does not start with the host triplet. If you think this
5007 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5008 ac_tool_warned=yes ;;
5017 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5018 See \`config.log' for more details." >&5
5019 echo "$as_me: error: no acceptable C compiler found in \$PATH
5020 See \`config.log' for more details." >&2;}
5021 { (exit 1); exit 1; }; }
5023 # Provide some information about the compiler.
5024 echo "$as_me:$LINENO: checking for C compiler version" >&5
5025 ac_compiler=`set X $ac_compile; echo $2`
5026 { (ac_try="$ac_compiler --version >&5"
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032 (eval "$ac_compiler --version >&5") 2>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }
5036 { (ac_try="$ac_compiler -v >&5"
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_compiler -v >&5") 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }
5046 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }
5057 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 cat >conftest.$ac_ext <<_ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5080 rm -f conftest.$ac_objext
5081 if { (ac_try="$ac_compile"
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_compile") 2>conftest.er1
5089 grep -v '^ *+' conftest.er1 >conftest.err
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } && {
5094 test -z "$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5096 } && test -s conftest.$ac_objext; then
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5109 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5111 GCC=`test $ac_compiler_gnu = yes && echo yes`
5112 ac_test_CFLAGS=${CFLAGS+set}
5113 ac_save_CFLAGS=$CFLAGS
5114 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5115 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5116 if test "${ac_cv_prog_cc_g+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 ac_save_c_werror_flag=$ac_c_werror_flag
5120 ac_c_werror_flag=yes
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5161 cat >conftest.$ac_ext <<_ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5176 rm -f conftest.$ac_objext
5177 if { (ac_try="$ac_compile"
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_compile") 2>conftest.er1
5185 grep -v '^ *+' conftest.er1 >conftest.err
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } && {
5190 test -z "$ac_c_werror_flag" ||
5191 test ! -s conftest.err
5192 } && test -s conftest.$ac_objext; then
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 ac_c_werror_flag=$ac_save_c_werror_flag
5200 cat >conftest.$ac_ext <<_ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5215 rm -f conftest.$ac_objext
5216 if { (ac_try="$ac_compile"
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_compile") 2>conftest.er1
5224 grep -v '^ *+' conftest.er1 >conftest.err
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && {
5229 test -z "$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5231 } && test -s conftest.$ac_objext; then
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 ac_c_werror_flag=$ac_save_c_werror_flag
5249 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5250 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5251 if test "$ac_test_CFLAGS" = set; then
5252 CFLAGS=$ac_save_CFLAGS
5253 elif test $ac_cv_prog_cc_g = yes; then
5254 if test "$GCC" = yes; then
5260 if test "$GCC" = yes; then
5266 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5267 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5268 if test "${ac_cv_prog_cc_c89+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 ac_cv_prog_cc_c89=no
5273 cat >conftest.$ac_ext <<_ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5281 #include <sys/types.h>
5282 #include <sys/stat.h>
5283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5284 struct buf { int x; };
5285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5286 static char *e (p, i)
5292 static char *f (char * (*g) (char **, int), char **p, ...)
5297 s = g (p, va_arg (v,int));
5302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5303 function prototypes and stuff, but not '\xHH' hex character constants.
5304 These don't provoke an error unfortunately, instead are silently treated
5305 as 'x'. The following induces an error, until -std is added to get
5306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5307 array size at least. It's necessary to write '\x00'==0 to get something
5308 that's true only with -std. */
5309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5312 inside strings and character constants. */
5314 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5316 int test (int i, double x);
5317 struct s1 {int (*f) (int a);};
5318 struct s2 {int (*f) (double a);};
5319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5325 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5333 CC="$ac_save_CC $ac_arg"
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.$ac_objext; then
5351 ac_cv_prog_cc_c89=$ac_arg
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5359 rm -f core conftest.err conftest.$ac_objext
5360 test "x$ac_cv_prog_cc_c89" != "xno" && break
5362 rm -f conftest.$ac_ext
5367 case "x$ac_cv_prog_cc_c89" in
5369 { echo "$as_me:$LINENO: result: none needed" >&5
5370 echo "${ECHO_T}none needed" >&6; } ;;
5372 { echo "$as_me:$LINENO: result: unsupported" >&5
5373 echo "${ECHO_T}unsupported" >&6; } ;;
5375 CC="$CC $ac_cv_prog_cc_c89"
5376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5382 ac_cpp='$CPP $CPPFLAGS'
5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387 depcc="$CC" am_compiler_list=
5389 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5390 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5391 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5395 # We make a subdir and do the tests there. Otherwise we can end up
5396 # making bogus files that we don't know about and never remove. For
5397 # instance it was reported that on HP-UX the gcc test will end up
5398 # making a dummy file named `D' -- because `-MD' means `put the output
5401 # Copy depcomp to subdir because otherwise we won't find it if we're
5402 # using a relative directory.
5403 cp "$am_depcomp" conftest.dir
5405 # We will build objects and dependencies in a subdirectory because
5406 # it helps to detect inapplicable dependency modes. For instance
5407 # both Tru64's cc and ICC support -MD to output dependencies as a
5408 # side effect of compilation, but ICC will put the dependencies in
5409 # the current directory while Tru64 will put them in the object
5413 am_cv_CC_dependencies_compiler_type=none
5414 if test "$am_compiler_list" = ""; then
5415 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5417 for depmode in $am_compiler_list; do
5418 # Setup a source with many dependencies, because some compilers
5419 # like to wrap large dependency lists on column 80 (with \), and
5420 # we should not choose a depcomp mode which is confused by this.
5422 # We need to recreate these files for each test, as the compiler may
5423 # overwrite some of them when testing with obscure command lines.
5424 # This happens at least with the AIX C compiler.
5426 for i in 1 2 3 4 5 6; do
5427 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5428 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5429 # Solaris 8's {/usr,}/bin/sh.
5430 touch sub/conftst$i.h
5432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5436 # after this tag, mechanisms are not by side-effect, so they'll
5437 # only be used when explicitly requested
5438 if test "x$enable_dependency_tracking" = xyes; then
5446 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5447 # mode. It turns out that the SunPro C++ compiler does not properly
5448 # handle `-M -o', and we need to detect this.
5449 if depmode=$depmode \
5450 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5451 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5452 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5453 >/dev/null 2>conftest.err &&
5454 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5455 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5456 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5457 # icc doesn't choke on unknown options, it will just issue warnings
5458 # or remarks (even with -Werror). So we grep stderr for any message
5459 # that says an option was ignored or not supported.
5460 # When given -MP, icc 7.0 and 7.1 complain thusly:
5461 # icc: Command line warning: ignoring option '-M'; no argument required
5462 # The diagnosis changed in icc 8.0:
5463 # icc: Command line remark: option '-MP' not supported
5464 if (grep 'ignoring option' conftest.err ||
5465 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5466 am_cv_CC_dependencies_compiler_type=$depmode
5475 am_cv_CC_dependencies_compiler_type=none
5479 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5480 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5481 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5486 test "x$enable_dependency_tracking" != xno \
5487 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5489 am__fastdepCC_FALSE='#'
5491 am__fastdepCC_TRUE='#'
5492 am__fastdepCC_FALSE=
5497 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5500 ac_cpp='$CPP $CPPFLAGS'
5501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5504 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5505 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5506 # On Suns, sometimes $CPP names a directory.
5507 if test -n "$CPP" && test -d "$CPP"; then
5510 if test -z "$CPP"; then
5511 if test "${ac_cv_prog_CPP+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 # Double quotes because CPP needs to be expanded
5515 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5518 for ac_c_preproc_warn_flag in '' yes
5520 # Use a header file that comes with gcc, so configuring glibc
5521 # with a fresh cross-compiler works.
5522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5523 # <limits.h> exists even on freestanding compilers.
5524 # On the NeXT, cc -E runs the code through the compiler's parser,
5525 # not just through cpp. "Syntax error" is here to catch this case.
5526 cat >conftest.$ac_ext <<_ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5533 # include <limits.h>
5535 # include <assert.h>
5539 if { (ac_try="$ac_cpp conftest.$ac_ext"
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5547 grep -v '^ *+' conftest.er1 >conftest.err
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } >/dev/null && {
5552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5560 # Broken: fails on valid input.
5564 rm -f conftest.err conftest.$ac_ext
5566 # OK, works on sane cases. Now check whether nonexistent headers
5567 # can be detected and how.
5568 cat >conftest.$ac_ext <<_ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 #include <ac_nonexistent.h>
5576 if { (ac_try="$ac_cpp conftest.$ac_ext"
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5584 grep -v '^ *+' conftest.er1 >conftest.err
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } >/dev/null && {
5589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5590 test ! -s conftest.err
5592 # Broken: success on invalid input.
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5598 # Passes both tests.
5603 rm -f conftest.err conftest.$ac_ext
5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5607 rm -f conftest.err conftest.$ac_ext
5608 if $ac_preproc_ok; then
5620 { echo "$as_me:$LINENO: result: $CPP" >&5
5621 echo "${ECHO_T}$CPP" >&6; }
5623 for ac_c_preproc_warn_flag in '' yes
5625 # Use a header file that comes with gcc, so configuring glibc
5626 # with a fresh cross-compiler works.
5627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628 # <limits.h> exists even on freestanding compilers.
5629 # On the NeXT, cc -E runs the code through the compiler's parser,
5630 # not just through cpp. "Syntax error" is here to catch this case.
5631 cat >conftest.$ac_ext <<_ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5638 # include <limits.h>
5640 # include <assert.h>
5644 if { (ac_try="$ac_cpp conftest.$ac_ext"
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5652 grep -v '^ *+' conftest.er1 >conftest.err
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } >/dev/null && {
5657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5658 test ! -s conftest.err
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 # Broken: fails on valid input.
5669 rm -f conftest.err conftest.$ac_ext
5671 # OK, works on sane cases. Now check whether nonexistent headers
5672 # can be detected and how.
5673 cat >conftest.$ac_ext <<_ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 #include <ac_nonexistent.h>
5681 if { (ac_try="$ac_cpp conftest.$ac_ext"
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5689 grep -v '^ *+' conftest.er1 >conftest.err
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } >/dev/null && {
5694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5697 # Broken: success on invalid input.
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 # Passes both tests.
5708 rm -f conftest.err conftest.$ac_ext
5711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5712 rm -f conftest.err conftest.$ac_ext
5713 if $ac_preproc_ok; then
5716 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5717 See \`config.log' for more details." >&5
5718 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5719 See \`config.log' for more details." >&2;}
5720 { (exit 1); exit 1; }; }
5724 ac_cpp='$CPP $CPPFLAGS'
5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5733 if test -z "$CC_FOR_BUILD"; then
5734 if test "$#" = yes; then
5735 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5736 See \`config.log' for more details." >&5
5737 echo "$as_me: error: cannot run test program while cross compiling
5738 See \`config.log' for more details." >&2;}
5739 { (exit 1); exit 1; }; }
5741 cat >conftest.$ac_ext <<_ACEOF
5742 int main(){return 0;}
5744 rm -f conftest$ac_exeext
5745 if { (ac_try="$ac_link"
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_link") 2>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5755 { (case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_try") 2>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5766 echo "$as_me: program exited with status $ac_status" >&5
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5779 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5780 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5781 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5783 if test -n "$ac_build_tool_prefix"; then
5784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5785 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5788 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 if test -n "$CC_FOR_BUILD"; then
5792 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5812 if test -n "$CC_FOR_BUILD"; then
5813 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5814 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5816 { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5822 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5823 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5824 # Extract the first word of "gcc", so it can be a program name with args.
5825 set dummy gcc; ac_word=$2
5826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5828 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 if test -n "$ac_ct_CC_FOR_BUILD"; then
5832 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5852 if test -n "$ac_ct_CC_FOR_BUILD"; then
5853 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5854 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5856 { echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6; }
5860 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5863 case $#:$ac_tool_warned in
5865 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5866 whose name does not start with the build triplet. If you think this
5867 configuration is useful to you, please write to autoconf@gnu.org." >&5
5868 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5869 whose name does not start with the build triplet. If you think this
5870 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5871 ac_tool_warned=yes ;;
5873 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5876 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5879 if test -z "$CC_FOR_BUILD"; then
5880 if test -n "$ac_build_tool_prefix"; then
5881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5882 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 if test -n "$CC_FOR_BUILD"; then
5889 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5909 if test -n "$CC_FOR_BUILD"; then
5910 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5911 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5913 { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5920 if test -z "$CC_FOR_BUILD"; then
5921 # Extract the first word of "cc", so it can be a program name with args.
5922 set dummy cc; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 if test -n "$CC_FOR_BUILD"; then
5929 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5940 ac_prog_rejected=yes
5943 ac_cv_prog_CC_FOR_BUILD="cc"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 if test $ac_prog_rejected = yes; then
5952 # We found a bogon in the path, so make sure we never use it.
5953 set dummy $ac_cv_prog_CC_FOR_BUILD
5955 if test $# != 0; then
5956 # We chose a different compiler from the bogus one.
5957 # However, it has the same basename, so the bogon will be chosen
5958 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5960 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5965 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5966 if test -n "$CC_FOR_BUILD"; then
5967 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5968 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5970 { echo "$as_me:$LINENO: result: no" >&5
5971 echo "${ECHO_T}no" >&6; }
5976 if test -z "$CC_FOR_BUILD"; then
5977 if test -n "$ac_build_tool_prefix"; then
5978 for ac_prog in cl.exe
5980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5981 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5984 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 if test -n "$CC_FOR_BUILD"; then
5988 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6008 if test -n "$CC_FOR_BUILD"; then
6009 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
6010 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
6012 { echo "$as_me:$LINENO: result: no" >&5
6013 echo "${ECHO_T}no" >&6; }
6017 test -n "$CC_FOR_BUILD" && break
6020 if test -z "$CC_FOR_BUILD"; then
6021 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6022 for ac_prog in cl.exe
6024 # Extract the first word of "$ac_prog", so it can be a program name with args.
6025 set dummy $ac_prog; ac_word=$2
6026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6028 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 if test -n "$ac_ct_CC_FOR_BUILD"; then
6032 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
6042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6052 if test -n "$ac_ct_CC_FOR_BUILD"; then
6053 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
6054 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
6056 { echo "$as_me:$LINENO: result: no" >&5
6057 echo "${ECHO_T}no" >&6; }
6061 test -n "$ac_ct_CC_FOR_BUILD" && break
6064 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6067 case $#:$ac_tool_warned in
6069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6070 whose name does not start with the build triplet. If you think this
6071 configuration is useful to you, please write to autoconf@gnu.org." >&5
6072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6073 whose name does not start with the build triplet. If you think this
6074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6075 ac_tool_warned=yes ;;
6077 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6084 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6085 See \`config.log' for more details." >&5
6086 echo "$as_me: error: no acceptable C compiler found in \$PATH
6087 See \`config.log' for more details." >&2;}
6088 { (exit 1); exit 1; }; }
6090 # Provide some information about the compiler.
6091 echo "$as_me:$LINENO: checking for C compiler version" >&5
6092 ac_compiler=`set X $ac_build_compile; echo $2`
6093 { (ac_try="$ac_compiler --version >&5"
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_compiler --version >&5") 2>&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }
6103 { (ac_try="$ac_compiler -v >&5"
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_compiler -v >&5") 2>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }
6113 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }
6124 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6125 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6126 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 cat >conftest.$ac_ext <<_ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6147 rm -f conftest.$ac_build_objext
6148 if { (ac_try="$ac_build_compile"
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_build_compile") 2>conftest.er1
6156 grep -v '^ *+' conftest.er1 >conftest.err
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } && {
6161 test -z "$ac_c_werror_flag" ||
6162 test ! -s conftest.err
6163 } && test -s conftest.$ac_build_objext; then
6164 ac_build_compiler_gnu=yes
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 ac_build_compiler_gnu=no
6172 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6173 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
6176 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6177 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6178 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
6179 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
6180 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
6181 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
6182 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
6183 if test "${ac_cv_build_prog_cc_g+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 ac_save_c_werror_flag=$ac_c_werror_flag
6187 ac_c_werror_flag=yes
6188 ac_cv_build_prog_cc_g=no
6189 CFLAGS_FOR_BUILD="-g"
6190 cat >conftest.$ac_ext <<_ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6205 rm -f conftest.$ac_build_objext
6206 if { (ac_try="$ac_build_compile"
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_build_compile") 2>conftest.er1
6214 grep -v '^ *+' conftest.er1 >conftest.err
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.$ac_build_objext; then
6222 ac_cv_build_prog_cc_g=yes
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6243 rm -f conftest.$ac_build_objext
6244 if { (ac_try="$ac_build_compile"
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_build_compile") 2>conftest.er1
6252 grep -v '^ *+' conftest.er1 >conftest.err
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest.$ac_build_objext; then
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_c_werror_flag=$ac_save_c_werror_flag
6266 CFLAGS_FOR_BUILD="-g"
6267 cat >conftest.$ac_ext <<_ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6282 rm -f conftest.$ac_build_objext
6283 if { (ac_try="$ac_build_compile"
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_build_compile") 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_build_objext; then
6299 ac_cv_build_prog_cc_g=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6307 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6310 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6313 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6314 ac_c_werror_flag=$ac_save_c_werror_flag
6316 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6317 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6318 if test "$ac_test_CFLAGS" = set; then
6319 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6320 elif test $ac_cv_build_prog_cc_g = yes; then
6321 if test "$GCC" = yes; then
6322 CFLAGS_FOR_BUILD="-g -O2"
6324 CFLAGS_FOR_BUILD="-g"
6327 if test "$GCC" = yes; then
6328 CFLAGS_FOR_BUILD="-O2"
6333 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6334 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6335 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 ac_cv_build_prog_cc_stdc=no
6339 ac_save_CC=$CC_FOR_BUILD
6340 cat >conftest.$ac_ext <<_ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6348 #include <sys/types.h>
6349 #include <sys/stat.h>
6350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6351 struct buf { int x; };
6352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6353 static char *e (p, i)
6359 static char *f (char * (*g) (char **, int), char **p, ...)
6364 s = g (p, va_arg (v,int));
6369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6370 function prototypes and stuff, but not '\xHH' hex character constants.
6371 These don't provoke an error unfortunately, instead are silently treated
6372 as 'x'. The following induces an error, until -std is added to get
6373 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6374 array size at least. It's necessary to write '\x00'==0 to get something
6375 that's true only with -std. */
6376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6378 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6379 inside strings and character constants. */
6381 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6383 int test (int i, double x);
6384 struct s1 {int (*f) (int a);};
6385 struct s2 {int (*f) (double a);};
6386 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6392 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6397 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6398 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6400 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6401 rm -f conftest.$ac_build_objext
6402 if { (ac_try="$ac_build_compile"
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_build_compile") 2>conftest.er1
6410 grep -v '^ *+' conftest.er1 >conftest.err
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } && {
6415 test -z "$ac_c_werror_flag" ||
6416 test ! -s conftest.err
6417 } && test -s conftest.$ac_build_objext; then
6418 ac_cv_build_prog_cc_stdc=$ac_arg
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6426 rm -f core conftest.err conftest.$ac_build_objext
6427 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6429 rm -f conftest.$ac_ext
6430 CC_FOR_BUILD=$ac_save_CC
6434 case "x$ac_cv_build_prog_cc_stdc" in
6436 { echo "$as_me:$LINENO: result: none needed" >&5
6437 echo "${ECHO_T}none needed" >&6; } ;;
6439 { echo "$as_me:$LINENO: result: unsupported" >&5
6440 echo "${ECHO_T}unsupported" >&6; } ;;
6442 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6443 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6444 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6449 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6450 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6451 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6454 depcc="$CC_FOR_BUILD" am_compiler_list=
6456 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6457 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6458 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6462 # We make a subdir and do the tests there. Otherwise we can end up
6463 # making bogus files that we don't know about and never remove. For
6464 # instance it was reported that on HP-UX the gcc test will end up
6465 # making a dummy file named `D' -- because `-MD' means `put the output
6468 # Copy depcomp to subdir because otherwise we won't find it if we're
6469 # using a relative directory.
6470 cp "$am_depcomp" conftest.dir
6472 # We will build objects and dependencies in a subdirectory because
6473 # it helps to detect inapplicable dependency modes. For instance
6474 # both Tru64's cc and ICC support -MD to output dependencies as a
6475 # side effect of compilation, but ICC will put the dependencies in
6476 # the current directory while Tru64 will put them in the object
6480 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6481 if test "$am_compiler_list" = ""; then
6482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6484 for depmode in $am_compiler_list; do
6485 # Setup a source with many dependencies, because some compilers
6486 # like to wrap large dependency lists on column 80 (with \), and
6487 # we should not choose a depcomp mode which is confused by this.
6489 # We need to recreate these files for each test, as the compiler may
6490 # overwrite some of them when testing with obscure command lines.
6491 # This happens at least with the AIX C compiler.
6493 for i in 1 2 3 4 5 6; do
6494 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6496 # Solaris 8's {/usr,}/bin/sh.
6497 touch sub/conftst$i.h
6499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6503 # after this tag, mechanisms are not by side-effect, so they'll
6504 # only be used when explicitly requested
6505 if test "x$enable_dependency_tracking" = xyes; then
6513 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6514 # mode. It turns out that the SunPro C++ compiler does not properly
6515 # handle `-M -o', and we need to detect this.
6516 if depmode=$depmode \
6517 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6518 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6519 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6520 >/dev/null 2>conftest.err &&
6521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6522 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6524 # icc doesn't choke on unknown options, it will just issue warnings
6525 # or remarks (even with -Werror). So we grep stderr for any message
6526 # that says an option was ignored or not supported.
6527 # When given -MP, icc 7.0 and 7.1 complain thusly:
6528 # icc: Command line warning: ignoring option '-M'; no argument required
6529 # The diagnosis changed in icc 8.0:
6530 # icc: Command line remark: option '-MP' not supported
6531 if (grep 'ignoring option' conftest.err ||
6532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6533 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6542 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6546 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6547 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6548 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6553 test "x$enable_dependency_tracking" != xno \
6554 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6555 am__fastdepCC_FOR_BUILD_TRUE=
6556 am__fastdepCC_FOR_BUILD_FALSE='#'
6558 am__fastdepCC_FOR_BUILD_TRUE='#'
6559 am__fastdepCC_FOR_BUILD_FALSE=
6563 case $ac_cv_build_prog_cc_stdc in
6564 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6565 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6566 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6567 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 ac_cv_build_prog_cc_stdc=no
6571 ac_save_CC=$CC_FOR_BUILD
6572 cat >conftest.$ac_ext <<_ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6579 #include <stdbool.h>
6584 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6585 #define debug(...) fprintf (stderr, __VA_ARGS__)
6586 #define showlist(...) puts (#__VA_ARGS__)
6587 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6589 test_varargs_macros (void)
6594 debug ("X = %d\n", x);
6595 showlist (The first, second, and third items.);
6596 report (x>y, "x is %d but y is %d", x, y);
6599 // Check long long types.
6600 #define BIG64 18446744073709551615ull
6601 #define BIG32 4294967295ul
6602 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6604 your preprocessor is broken;
6608 your preprocessor is broken;
6610 static long long int bignum = -9223372036854775807LL;
6611 static unsigned long long int ubignum = BIG64;
6613 struct incomplete_array
6621 const wchar_t *name;
6625 typedef const char *ccp;
6628 test_restrict (ccp restrict text)
6630 // See if C++-style comments work.
6631 // Iterate through items via the restricted pointer.
6632 // Also check for declarations in for loops.
6633 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6638 // Check varargs and va_copy.
6640 test_varargs (const char *format, ...)
6643 va_start (args, format);
6645 va_copy (args_copy, args);
6656 str = va_arg (args_copy, const char *);
6659 number = va_arg (args_copy, int);
6662 fnumber = va_arg (args_copy, double);
6677 _Bool success = false;
6680 if (test_restrict ("String literal") == 0)
6682 char *restrict newvar = "Another string";
6685 test_varargs ("s, d' f .", "string", 65, 34.234);
6686 test_varargs_macros ();
6688 // Check flexible array members.
6689 struct incomplete_array *ia =
6690 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6692 for (int i = 0; i < ia->datasize; ++i)
6693 ia->data[i] = i * 1.234;
6695 // Check named initializers.
6696 struct named_init ni = {
6698 .name = L"Test wide string",
6699 .average = 543.34343,
6704 int dynamic_array[ni.number];
6705 dynamic_array[ni.number - 1] = 543;
6707 // work around unused variable warnings
6708 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6709 || dynamic_array[ni.number - 1] != 543);
6715 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6717 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6718 rm -f conftest.$ac_build_objext
6719 if { (ac_try="$ac_build_compile"
6721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722 *) ac_try_echo=$ac_try;;
6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6725 (eval "$ac_build_compile") 2>conftest.er1
6727 grep -v '^ *+' conftest.er1 >conftest.err
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && {
6732 test -z "$ac_c_werror_flag" ||
6733 test ! -s conftest.err
6734 } && test -s conftest.$ac_build_objext; then
6735 ac_cv_build_prog_cc_stdc=$ac_arg
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6743 rm -f core conftest.err conftest.$ac_build_objext
6744 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6746 rm -f conftest.$ac_ext
6747 CC_FOR_BUILD=$ac_save_CC
6751 case "x$ac_cv_build_prog_cc_stdc" in
6753 { echo "$as_me:$LINENO: result: none needed" >&5
6754 echo "${ECHO_T}none needed" >&6; } ;;
6756 { echo "$as_me:$LINENO: result: unsupported" >&5
6757 echo "${ECHO_T}unsupported" >&6; } ;;
6759 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6760 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6761 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6763 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6764 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6766 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6767 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6768 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 ac_cv_build_prog_cc_stdc=no
6772 ac_save_CC=$CC_FOR_BUILD
6773 cat >conftest.$ac_ext <<_ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6781 #include <sys/types.h>
6782 #include <sys/stat.h>
6783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6784 struct buf { int x; };
6785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6786 static char *e (p, i)
6792 static char *f (char * (*g) (char **, int), char **p, ...)
6797 s = g (p, va_arg (v,int));
6802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6803 function prototypes and stuff, but not '\xHH' hex character constants.
6804 These don't provoke an error unfortunately, instead are silently treated
6805 as 'x'. The following induces an error, until -std is added to get
6806 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6807 array size at least. It's necessary to write '\x00'==0 to get something
6808 that's true only with -std. */
6809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6811 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6812 inside strings and character constants. */
6814 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6816 int test (int i, double x);
6817 struct s1 {int (*f) (int a);};
6818 struct s2 {int (*f) (double a);};
6819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6825 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6830 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6831 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6833 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6834 rm -f conftest.$ac_build_objext
6835 if { (ac_try="$ac_build_compile"
6837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841 (eval "$ac_build_compile") 2>conftest.er1
6843 grep -v '^ *+' conftest.er1 >conftest.err
6845 cat conftest.err >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest.$ac_build_objext; then
6851 ac_cv_build_prog_cc_stdc=$ac_arg
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6859 rm -f core conftest.err conftest.$ac_build_objext
6860 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6862 rm -f conftest.$ac_ext
6863 CC_FOR_BUILD=$ac_save_CC
6867 case "x$ac_cv_build_prog_cc_stdc" in
6869 { echo "$as_me:$LINENO: result: none needed" >&5
6870 echo "${ECHO_T}none needed" >&6; } ;;
6872 { echo "$as_me:$LINENO: result: unsupported" >&5
6873 echo "${ECHO_T}unsupported" >&6; } ;;
6875 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6876 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6877 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6879 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6880 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6882 ac_cv_build_prog_cc_stdc=no
6890 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6891 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6892 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 case $ac_cv_build_prog_cc_stdc in
6897 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6898 echo "${ECHO_T}unsupported" >&6; } ;;
6899 '') { echo "$as_me:$LINENO: result: none needed" >&5
6900 echo "${ECHO_T}none needed" >&6; } ;;
6901 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6902 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6907 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6908 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6909 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6911 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6912 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6913 # On Suns, sometimes $CPP names a directory.
6914 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6917 if test -z "$CPP_FOR_BUILD"; then
6918 if test "${ac_cv_build_prog_CPP+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 # Double quotes because CPP needs to be expanded
6922 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6925 for ac_c_preproc_warn_flag in '' yes
6927 # Use a header file that comes with gcc, so configuring glibc
6928 # with a fresh cross-compiler works.
6929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6930 # <limits.h> exists even on freestanding compilers.
6931 # On the NeXT, cc -E runs the code through the compiler's parser,
6932 # not just through cpp. "Syntax error" is here to catch this case.
6933 cat >conftest.$ac_ext <<_ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6940 # include <limits.h>
6942 # include <assert.h>
6946 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949 *) ac_try_echo=$ac_try;;
6951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6954 grep -v '^ *+' conftest.er1 >conftest.err
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } >/dev/null && {
6959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6960 test ! -s conftest.err
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6967 # Broken: fails on valid input.
6971 rm -f conftest.err conftest.$ac_ext
6973 # OK, works on sane cases. Now check whether nonexistent headers
6974 # can be detected and how.
6975 cat >conftest.$ac_ext <<_ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6981 #include <ac_nonexistent.h>
6983 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 *) ac_try_echo=$ac_try;;
6988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6989 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6991 grep -v '^ *+' conftest.er1 >conftest.err
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } >/dev/null && {
6996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6997 test ! -s conftest.err
6999 # Broken: success on invalid input.
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 # Passes both tests.
7010 rm -f conftest.err conftest.$ac_ext
7013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7014 rm -f conftest.err conftest.$ac_ext
7015 if $ac_preproc_ok; then
7020 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7023 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
7025 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7027 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
7028 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
7030 for ac_c_preproc_warn_flag in '' yes
7032 # Use a header file that comes with gcc, so configuring glibc
7033 # with a fresh cross-compiler works.
7034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7035 # <limits.h> exists even on freestanding compilers.
7036 # On the NeXT, cc -E runs the code through the compiler's parser,
7037 # not just through cpp. "Syntax error" is here to catch this case.
7038 cat >conftest.$ac_ext <<_ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7045 # include <limits.h>
7047 # include <assert.h>
7051 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7059 grep -v '^ *+' conftest.er1 >conftest.err
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } >/dev/null && {
7064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7065 test ! -s conftest.err
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7072 # Broken: fails on valid input.
7076 rm -f conftest.err conftest.$ac_ext
7078 # OK, works on sane cases. Now check whether nonexistent headers
7079 # can be detected and how.
7080 cat >conftest.$ac_ext <<_ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086 #include <ac_nonexistent.h>
7088 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
7096 grep -v '^ *+' conftest.er1 >conftest.err
7098 cat conftest.err >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } >/dev/null && {
7101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7102 test ! -s conftest.err
7104 # Broken: success on invalid input.
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7110 # Passes both tests.
7115 rm -f conftest.err conftest.$ac_ext
7118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7119 rm -f conftest.err conftest.$ac_ext
7120 if $ac_preproc_ok; then
7123 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7124 See \`config.log' for more details." >&5
7125 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7126 See \`config.log' for more details." >&2;}
7127 { (exit 1); exit 1; }; }
7131 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7132 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7133 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7134 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
7139 BUILD_EXEEXT=$ac_build_exeext
7140 BUILD_OBJEXT=$ac_build_objext
7143 ac_cpp='$OBJCPP $CPPFLAGS'
7144 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7147 if test -n "$ac_tool_prefix"; then
7148 for ac_prog in gcc objcc objc cc CC
7150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154 if test "${ac_cv_prog_OBJC+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 if test -n "$OBJC"; then
7158 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 OBJC=$ac_cv_prog_OBJC
7178 if test -n "$OBJC"; then
7179 { echo "$as_me:$LINENO: result: $OBJC" >&5
7180 echo "${ECHO_T}$OBJC" >&6; }
7182 { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7187 test -n "$OBJC" && break
7190 if test -z "$OBJC"; then
7192 for ac_prog in gcc objcc objc cc CC
7194 # Extract the first word of "$ac_prog", so it can be a program name with args.
7195 set dummy $ac_prog; ac_word=$2
7196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7198 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 if test -n "$ac_ct_OBJC"; then
7202 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7222 if test -n "$ac_ct_OBJC"; then
7223 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7224 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7231 test -n "$ac_ct_OBJC" && break
7234 if test "x$ac_ct_OBJC" = x; then
7237 case $cross_compiling:$ac_tool_warned in
7239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7240 whose name does not start with the host triplet. If you think this
7241 configuration is useful to you, please write to autoconf@gnu.org." >&5
7242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7243 whose name does not start with the host triplet. If you think this
7244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7245 ac_tool_warned=yes ;;
7251 # Provide some information about the compiler.
7252 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7253 ac_compiler=`set X $ac_compile; echo $2`
7254 { (ac_try="$ac_compiler --version >&5"
7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_compiler --version >&5") 2>&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }
7264 { (ac_try="$ac_compiler -v >&5"
7266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7267 *) ac_try_echo=$ac_try;;
7269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7270 (eval "$ac_compiler -v >&5") 2>&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }
7274 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }
7285 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7286 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
7287 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 cat >conftest.$ac_ext <<_ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7308 rm -f conftest.$ac_objext
7309 if { (ac_try="$ac_compile"
7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315 (eval "$ac_compile") 2>conftest.er1
7317 grep -v '^ *+' conftest.er1 >conftest.err
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } && {
7322 test -z "$ac_objc_werror_flag" ||
7323 test ! -s conftest.err
7324 } && test -s conftest.$ac_objext; then
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7337 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7338 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
7339 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
7340 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7341 ac_save_OBJCFLAGS=$OBJCFLAGS
7342 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7343 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
7344 if test "${ac_cv_prog_objc_g+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 ac_save_objc_werror_flag=$ac_objc_werror_flag
7348 ac_objc_werror_flag=yes
7349 ac_cv_prog_objc_g=no
7351 cat >conftest.$ac_ext <<_ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7375 grep -v '^ *+' conftest.er1 >conftest.err
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_objc_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7383 ac_cv_prog_objc_g=yes
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7389 cat >conftest.$ac_ext <<_ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7404 rm -f conftest.$ac_objext
7405 if { (ac_try="$ac_compile"
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_compile") 2>conftest.er1
7413 grep -v '^ *+' conftest.er1 >conftest.err
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } && {
7418 test -z "$ac_objc_werror_flag" ||
7419 test ! -s conftest.err
7420 } && test -s conftest.$ac_objext; then
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7426 ac_objc_werror_flag=$ac_save_objc_werror_flag
7428 cat >conftest.$ac_ext <<_ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7443 rm -f conftest.$ac_objext
7444 if { (ac_try="$ac_compile"
7446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7447 *) ac_try_echo=$ac_try;;
7449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7450 (eval "$ac_compile") 2>conftest.er1
7452 grep -v '^ *+' conftest.er1 >conftest.err
7454 cat conftest.err >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && {
7457 test -z "$ac_objc_werror_flag" ||
7458 test ! -s conftest.err
7459 } && test -s conftest.$ac_objext; then
7460 ac_cv_prog_objc_g=yes
7462 echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 ac_objc_werror_flag=$ac_save_objc_werror_flag
7477 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7478 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
7479 if test "$ac_test_OBJCFLAGS" = set; then
7480 OBJCFLAGS=$ac_save_OBJCFLAGS
7481 elif test $ac_cv_prog_objc_g = yes; then
7482 if test "$GOBJC" = yes; then
7488 if test "$GOBJC" = yes; then
7495 ac_cpp='$CPP $CPPFLAGS'
7496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7501 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7502 if test "${ac_cv_path_SED+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7506 for ac_i in 1 2 3 4 5 6 7; do
7507 ac_script="$ac_script$as_nl$ac_script"
7509 echo "$ac_script" | sed 99q >conftest.sed
7510 $as_unset ac_script || ac_script=
7511 # Extract the first word of "sed gsed" to use in msg output
7512 if test -z "$SED"; then
7513 set dummy sed gsed; ac_prog_name=$2
7514 if test "${ac_cv_path_SED+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 ac_path_SED_found=false
7518 # Loop through the user's path and test for each of PROGNAME-LIST
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 for ac_prog in sed gsed; do
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7527 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7528 # Check for GNU ac_path_SED and select it if it is found.
7529 # Check for GNU $ac_path_SED
7530 case `"$ac_path_SED" --version 2>&1` in
7532 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7535 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7538 cat "conftest.in" "conftest.in" >"conftest.tmp"
7539 mv "conftest.tmp" "conftest.in"
7540 cp "conftest.in" "conftest.nl"
7541 echo '' >> "conftest.nl"
7542 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7543 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7544 ac_count=`expr $ac_count + 1`
7545 if test $ac_count -gt ${ac_path_SED_max-0}; then
7546 # Best one so far, save it but keep looking for a better one
7547 ac_cv_path_SED="$ac_path_SED"
7548 ac_path_SED_max=$ac_count
7550 # 10*(2^10) chars as input seems more than enough
7551 test $ac_count -gt 10 && break
7553 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7557 $ac_path_SED_found && break 3
7567 SED="$ac_cv_path_SED"
7568 if test -z "$SED"; then
7569 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
7570 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
7571 { (exit 1); exit 1; }; }
7579 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7580 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
7581 SED="$ac_cv_path_SED"
7584 # By default we simply use the C compiler to build assembly code.
7586 test "${CCAS+set}" = set || CCAS=$CC
7587 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7591 if test -n "$ac_tool_prefix"; then
7592 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7593 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_prog_RANLIB+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 if test -n "$RANLIB"; then
7600 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7609 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 RANLIB=$ac_cv_prog_RANLIB
7620 if test -n "$RANLIB"; then
7621 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7622 echo "${ECHO_T}$RANLIB" >&6; }
7624 { echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6; }
7630 if test -z "$ac_cv_prog_RANLIB"; then
7631 ac_ct_RANLIB=$RANLIB
7632 # Extract the first word of "ranlib", so it can be a program name with args.
7633 set dummy ranlib; ac_word=$2
7634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7636 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 if test -n "$ac_ct_RANLIB"; then
7640 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_prog_ac_ct_RANLIB="ranlib"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7660 if test -n "$ac_ct_RANLIB"; then
7661 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7662 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7664 { echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6; }
7668 if test "x$ac_ct_RANLIB" = x; then
7671 case $cross_compiling:$ac_tool_warned in
7673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7674 whose name does not start with the host triplet. If you think this
7675 configuration is useful to you, please write to autoconf@gnu.org." >&5
7676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7677 whose name does not start with the host triplet. If you think this
7678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7679 ac_tool_warned=yes ;;
7681 RANLIB=$ac_ct_RANLIB
7684 RANLIB="$ac_cv_prog_RANLIB"
7688 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7689 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7690 if test "${ac_cv_path_GREP+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 # Extract the first word of "grep ggrep" to use in msg output
7694 if test -z "$GREP"; then
7695 set dummy grep ggrep; ac_prog_name=$2
7696 if test "${ac_cv_path_GREP+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 ac_path_GREP_found=false
7700 # Loop through the user's path and test for each of PROGNAME-LIST
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7705 test -z "$as_dir" && as_dir=.
7706 for ac_prog in grep ggrep; do
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7709 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7710 # Check for GNU ac_path_GREP and select it if it is found.
7711 # Check for GNU $ac_path_GREP
7712 case `"$ac_path_GREP" --version 2>&1` in
7714 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7717 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7720 cat "conftest.in" "conftest.in" >"conftest.tmp"
7721 mv "conftest.tmp" "conftest.in"
7722 cp "conftest.in" "conftest.nl"
7723 echo 'GREP' >> "conftest.nl"
7724 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7726 ac_count=`expr $ac_count + 1`
7727 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7728 # Best one so far, save it but keep looking for a better one
7729 ac_cv_path_GREP="$ac_path_GREP"
7730 ac_path_GREP_max=$ac_count
7732 # 10*(2^10) chars as input seems more than enough
7733 test $ac_count -gt 10 && break
7735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7739 $ac_path_GREP_found && break 3
7749 GREP="$ac_cv_path_GREP"
7750 if test -z "$GREP"; then
7751 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7752 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7753 { (exit 1); exit 1; }; }
7757 ac_cv_path_GREP=$GREP
7762 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7763 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7764 GREP="$ac_cv_path_GREP"
7767 { echo "$as_me:$LINENO: checking for egrep" >&5
7768 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7769 if test "${ac_cv_path_EGREP+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7773 then ac_cv_path_EGREP="$GREP -E"
7775 # Extract the first word of "egrep" to use in msg output
7776 if test -z "$EGREP"; then
7777 set dummy egrep; ac_prog_name=$2
7778 if test "${ac_cv_path_EGREP+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 ac_path_EGREP_found=false
7782 # Loop through the user's path and test for each of PROGNAME-LIST
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7787 test -z "$as_dir" && as_dir=.
7788 for ac_prog in egrep; do
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7791 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7792 # Check for GNU ac_path_EGREP and select it if it is found.
7793 # Check for GNU $ac_path_EGREP
7794 case `"$ac_path_EGREP" --version 2>&1` in
7796 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7799 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7802 cat "conftest.in" "conftest.in" >"conftest.tmp"
7803 mv "conftest.tmp" "conftest.in"
7804 cp "conftest.in" "conftest.nl"
7805 echo 'EGREP' >> "conftest.nl"
7806 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7808 ac_count=`expr $ac_count + 1`
7809 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7810 # Best one so far, save it but keep looking for a better one
7811 ac_cv_path_EGREP="$ac_path_EGREP"
7812 ac_path_EGREP_max=$ac_count
7814 # 10*(2^10) chars as input seems more than enough
7815 test $ac_count -gt 10 && break
7817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7821 $ac_path_EGREP_found && break 3
7831 EGREP="$ac_cv_path_EGREP"
7832 if test -z "$EGREP"; then
7833 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7834 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7835 { (exit 1); exit 1; }; }
7839 ac_cv_path_EGREP=$EGREP
7845 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7846 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7847 EGREP="$ac_cv_path_EGREP"
7850 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7851 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7852 if test "${ac_cv_header_stdc+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 cat >conftest.$ac_ext <<_ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7874 rm -f conftest.$ac_objext
7875 if { (ac_try="$ac_compile"
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7883 grep -v '^ *+' conftest.er1 >conftest.err
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7891 ac_cv_header_stdc=yes
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 ac_cv_header_stdc=no
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901 if test $ac_cv_header_stdc = yes; then
7902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7903 cat >conftest.$ac_ext <<_ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7913 $EGREP "memchr" >/dev/null 2>&1; then
7916 ac_cv_header_stdc=no
7922 if test $ac_cv_header_stdc = yes; then
7923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7924 cat >conftest.$ac_ext <<_ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7934 $EGREP "free" >/dev/null 2>&1; then
7937 ac_cv_header_stdc=no
7943 if test $ac_cv_header_stdc = yes; then
7944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7945 if test "$cross_compiling" = yes; then
7948 cat >conftest.$ac_ext <<_ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7956 #if ((' ' & 0x0FF) == 0x020)
7957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7960 # define ISLOWER(c) \
7961 (('a' <= (c) && (c) <= 'i') \
7962 || ('j' <= (c) && (c) <= 'r') \
7963 || ('s' <= (c) && (c) <= 'z'))
7964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7972 for (i = 0; i < 256; i++)
7973 if (XOR (islower (i), ISLOWER (i))
7974 || toupper (i) != TOUPPER (i))
7979 rm -f conftest$ac_exeext
7980 if { (ac_try="$ac_link"
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7986 (eval "$ac_link") 2>&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7990 { (case "(($ac_try" in
7991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992 *) ac_try_echo=$ac_try;;
7994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995 (eval "$ac_try") 2>&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
8001 echo "$as_me: program exited with status $ac_status" >&5
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8006 ac_cv_header_stdc=no
8008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8014 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8015 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8016 if test $ac_cv_header_stdc = yes; then
8018 cat >>confdefs.h <<\_ACEOF
8019 #define STDC_HEADERS 1
8024 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8034 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8035 inttypes.h stdint.h unistd.h
8037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 cat >conftest.$ac_ext <<_ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 $ac_includes_default
8051 #include <$ac_header>
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8062 grep -v '^ *+' conftest.er1 >conftest.err
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_c_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.$ac_objext; then
8070 eval "$as_ac_Header=yes"
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 eval "$as_ac_Header=no"
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 ac_res=`eval echo '${'$as_ac_Header'}'`
8081 { echo "$as_me:$LINENO: result: $ac_res" >&5
8082 echo "${ECHO_T}$ac_res" >&6; }
8083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8084 cat >>confdefs.h <<_ACEOF
8085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8093 { echo "$as_me:$LINENO: checking for void *" >&5
8094 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8095 if test "${ac_cv_type_void_p+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 cat >conftest.$ac_ext <<_ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 $ac_includes_default
8105 typedef void * ac__type_new_;
8109 if ((ac__type_new_ *) 0)
8111 if (sizeof (ac__type_new_))
8117 rm -f conftest.$ac_objext
8118 if { (ac_try="$ac_compile"
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
8126 grep -v '^ *+' conftest.er1 >conftest.err
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest.$ac_objext; then
8134 ac_cv_type_void_p=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_cv_type_void_p=no
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8145 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8147 # The cast to long int works around a bug in the HP C Compiler
8148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8150 # This bug is HP SR number 8606223364.
8151 { echo "$as_me:$LINENO: checking size of void *" >&5
8152 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8153 if test "${ac_cv_sizeof_void_p+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 if test "$cross_compiling" = yes; then
8157 # Depending upon the size, compute the lo and hi bounds.
8158 cat >conftest.$ac_ext <<_ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 $ac_includes_default
8165 typedef void * ac__type_sizeof_;
8169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8176 rm -f conftest.$ac_objext
8177 if { (ac_try="$ac_compile"
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_compile") 2>conftest.er1
8185 grep -v '^ *+' conftest.er1 >conftest.err
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest.$ac_objext; then
8195 cat >conftest.$ac_ext <<_ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201 $ac_includes_default
8202 typedef void * ac__type_sizeof_;
8206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8213 rm -f conftest.$ac_objext
8214 if { (ac_try="$ac_compile"
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_compile") 2>conftest.er1
8222 grep -v '^ *+' conftest.er1 >conftest.err
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } && {
8227 test -z "$ac_c_werror_flag" ||
8228 test ! -s conftest.err
8229 } && test -s conftest.$ac_objext; then
8230 ac_hi=$ac_mid; break
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8235 ac_lo=`expr $ac_mid + 1`
8236 if test $ac_lo -le $ac_mid; then
8240 ac_mid=`expr 2 '*' $ac_mid + 1`
8243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8249 cat >conftest.$ac_ext <<_ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 typedef void * ac__type_sizeof_;
8260 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8267 rm -f conftest.$ac_objext
8268 if { (ac_try="$ac_compile"
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_compile") 2>conftest.er1
8276 grep -v '^ *+' conftest.er1 >conftest.err
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && {
8281 test -z "$ac_c_werror_flag" ||
8282 test ! -s conftest.err
8283 } && test -s conftest.$ac_objext; then
8286 cat >conftest.$ac_ext <<_ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 $ac_includes_default
8293 typedef void * ac__type_sizeof_;
8297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8304 rm -f conftest.$ac_objext
8305 if { (ac_try="$ac_compile"
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_compile") 2>conftest.er1
8313 grep -v '^ *+' conftest.er1 >conftest.err
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && {
8318 test -z "$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 } && test -s conftest.$ac_objext; then
8321 ac_lo=$ac_mid; break
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8326 ac_hi=`expr '(' $ac_mid ')' - 1`
8327 if test $ac_mid -le $ac_hi; then
8331 ac_mid=`expr 2 '*' $ac_mid`
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 # Binary search between lo and hi bounds.
8348 while test "x$ac_lo" != "x$ac_hi"; do
8349 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8350 cat >conftest.$ac_ext <<_ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8356 $ac_includes_default
8357 typedef void * ac__type_sizeof_;
8361 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8368 rm -f conftest.$ac_objext
8369 if { (ac_try="$ac_compile"
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8377 grep -v '^ *+' conftest.er1 >conftest.err
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest.$ac_objext; then
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8390 ac_lo=`expr '(' $ac_mid ')' + 1`
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8397 '') if test "$ac_cv_type_void_p" = yes; then
8398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8399 See \`config.log' for more details." >&5
8400 echo "$as_me: error: cannot compute sizeof (void *)
8401 See \`config.log' for more details." >&2;}
8402 { (exit 77); exit 77; }; }
8404 ac_cv_sizeof_void_p=0
8408 cat >conftest.$ac_ext <<_ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8414 $ac_includes_default
8415 typedef void * ac__type_sizeof_;
8416 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8417 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8424 FILE *f = fopen ("conftest.val", "w");
8427 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8429 long int i = longval ();
8430 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8432 fprintf (f, "%ld\n", i);
8436 unsigned long int i = ulongval ();
8437 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8439 fprintf (f, "%lu\n", i);
8441 return ferror (f) || fclose (f) != 0;
8447 rm -f conftest$ac_exeext
8448 if { (ac_try="$ac_link"
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_link") 2>&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8458 { (case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_try") 2>&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_sizeof_void_p=`cat conftest.val`
8469 echo "$as_me: program exited with status $ac_status" >&5
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8474 if test "$ac_cv_type_void_p" = yes; then
8475 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8476 See \`config.log' for more details." >&5
8477 echo "$as_me: error: cannot compute sizeof (void *)
8478 See \`config.log' for more details." >&2;}
8479 { (exit 77); exit 77; }; }
8481 ac_cv_sizeof_void_p=0
8484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8488 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8489 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8493 cat >>confdefs.h <<_ACEOF
8494 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8498 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8499 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8500 if test "${ac_cv_header_stdc+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 cat >conftest.$ac_ext <<_ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8522 rm -f conftest.$ac_objext
8523 if { (ac_try="$ac_compile"
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_compile") 2>conftest.er1
8531 grep -v '^ *+' conftest.er1 >conftest.err
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } && {
8536 test -z "$ac_c_werror_flag" ||
8537 test ! -s conftest.err
8538 } && test -s conftest.$ac_objext; then
8539 ac_cv_header_stdc=yes
8541 echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8544 ac_cv_header_stdc=no
8547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 if test $ac_cv_header_stdc = yes; then
8550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8561 $EGREP "memchr" >/dev/null 2>&1; then
8564 ac_cv_header_stdc=no
8570 if test $ac_cv_header_stdc = yes; then
8571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8572 cat >conftest.$ac_ext <<_ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8582 $EGREP "free" >/dev/null 2>&1; then
8585 ac_cv_header_stdc=no
8591 if test $ac_cv_header_stdc = yes; then
8592 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8593 if test "$cross_compiling" = yes; then
8596 cat >conftest.$ac_ext <<_ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8604 #if ((' ' & 0x0FF) == 0x020)
8605 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8606 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8608 # define ISLOWER(c) \
8609 (('a' <= (c) && (c) <= 'i') \
8610 || ('j' <= (c) && (c) <= 'r') \
8611 || ('s' <= (c) && (c) <= 'z'))
8612 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8615 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8620 for (i = 0; i < 256; i++)
8621 if (XOR (islower (i), ISLOWER (i))
8622 || toupper (i) != TOUPPER (i))
8627 rm -f conftest$ac_exeext
8628 if { (ac_try="$ac_link"
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_link") 2>&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8638 { (case "(($ac_try" in
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_try") 2>&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8649 echo "$as_me: program exited with status $ac_status" >&5
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8654 ac_cv_header_stdc=no
8656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8662 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8663 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8664 if test $ac_cv_header_stdc = yes; then
8666 cat >>confdefs.h <<\_ACEOF
8667 #define STDC_HEADERS 1
8674 depcc="$OBJC" am_compiler_list='gcc3 gcc'
8676 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8677 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8678 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8682 # We make a subdir and do the tests there. Otherwise we can end up
8683 # making bogus files that we don't know about and never remove. For
8684 # instance it was reported that on HP-UX the gcc test will end up
8685 # making a dummy file named `D' -- because `-MD' means `put the output
8688 # Copy depcomp to subdir because otherwise we won't find it if we're
8689 # using a relative directory.
8690 cp "$am_depcomp" conftest.dir
8692 # We will build objects and dependencies in a subdirectory because
8693 # it helps to detect inapplicable dependency modes. For instance
8694 # both Tru64's cc and ICC support -MD to output dependencies as a
8695 # side effect of compilation, but ICC will put the dependencies in
8696 # the current directory while Tru64 will put them in the object
8700 am_cv_OBJC_dependencies_compiler_type=none
8701 if test "$am_compiler_list" = ""; then
8702 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8704 for depmode in $am_compiler_list; do
8705 # Setup a source with many dependencies, because some compilers
8706 # like to wrap large dependency lists on column 80 (with \), and
8707 # we should not choose a depcomp mode which is confused by this.
8709 # We need to recreate these files for each test, as the compiler may
8710 # overwrite some of them when testing with obscure command lines.
8711 # This happens at least with the AIX C compiler.
8713 for i in 1 2 3 4 5 6; do
8714 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8715 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8716 # Solaris 8's {/usr,}/bin/sh.
8717 touch sub/conftst$i.h
8719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8723 # after this tag, mechanisms are not by side-effect, so they'll
8724 # only be used when explicitly requested
8725 if test "x$enable_dependency_tracking" = xyes; then
8733 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8734 # mode. It turns out that the SunPro C++ compiler does not properly
8735 # handle `-M -o', and we need to detect this.
8736 if depmode=$depmode \
8737 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8738 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8739 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8740 >/dev/null 2>conftest.err &&
8741 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8742 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8743 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8744 # icc doesn't choke on unknown options, it will just issue warnings
8745 # or remarks (even with -Werror). So we grep stderr for any message
8746 # that says an option was ignored or not supported.
8747 # When given -MP, icc 7.0 and 7.1 complain thusly:
8748 # icc: Command line warning: ignoring option '-M'; no argument required
8749 # The diagnosis changed in icc 8.0:
8750 # icc: Command line remark: option '-MP' not supported
8751 if (grep 'ignoring option' conftest.err ||
8752 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8753 am_cv_OBJC_dependencies_compiler_type=$depmode
8762 am_cv_OBJC_dependencies_compiler_type=none
8766 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
8767 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
8768 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
8773 test "x$enable_dependency_tracking" != xno \
8774 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
8775 am__fastdepOBJC_TRUE=
8776 am__fastdepOBJC_FALSE='#'
8778 am__fastdepOBJC_TRUE='#'
8779 am__fastdepOBJC_FALSE=
8784 # Extract the first word of "pod2man", so it can be a program name with args.
8785 set dummy pod2man; ac_word=$2
8786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8788 if test "${ac_cv_path_POD2MAN+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 POD2MAN=$ac_cv_path_POD2MAN
8815 if test -n "$POD2MAN"; then
8816 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8817 echo "${ECHO_T}$POD2MAN" >&6; }
8819 { echo "$as_me:$LINENO: result: no" >&5
8820 echo "${ECHO_T}no" >&6; }
8824 # Extract the first word of "pod2html", so it can be a program name with args.
8825 set dummy pod2html; ac_word=$2
8826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8828 if test "${ac_cv_path_POD2HTML+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 POD2HTML=$ac_cv_path_POD2HTML
8855 if test -n "$POD2HTML"; then
8856 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8857 echo "${ECHO_T}$POD2HTML" >&6; }
8859 { echo "$as_me:$LINENO: result: no" >&5
8860 echo "${ECHO_T}no" >&6; }
8866 cat >>confdefs.h <<_ACEOF
8867 #define BUILD_SED_PROG "${SED}"
8871 cat >>confdefs.h <<_ACEOF
8872 #define BUILD_CPP_PROG "${CPP}"
8877 # Check whether --enable-strict-warn was given.
8878 if test "${enable_strict_warn+set}" = set; then
8879 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
8880 enable_strictwarn=yes
8884 # Check whether --enable-translator was given.
8885 if test "${enable_translator+set}" = set; then
8886 enableval=$enable_translator; true
8888 enable_translator=yes
8891 # Check whether --enable-optimized was given.
8892 if test "${enable_optimized+set}" = set; then
8893 enableval=$enable_optimized; true
8895 enable_optimized=yes
8898 # Check whether --enable-shared was given.
8899 if test "${enable_shared+set}" = set; then
8900 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
8905 # Check whether --enable-profiled was given.
8906 if test "${enable_profiled+set}" = set; then
8907 enableval=$enable_profiled; if test "$enableval" == "yes"; then
8908 enable_profiled=yes;
8912 # Check whether --enable-trace was given.
8913 if test "${enable_trace+set}" = set; then
8914 enableval=$enable_trace; if test "$enableval" == "yes"; then
8916 cat >>confdefs.h <<\_ACEOF
8917 #define ENABLE_TRACE_IO 1
8923 # Check whether --enable-watch was given.
8924 if test "${enable_watch+set}" = set; then
8925 enableval=$enable_watch; if test "$enableval" == "yes"; then
8927 cat >>confdefs.h <<\_ACEOF
8928 #define ENABLE_WATCH 1
8934 # Check whether --enable-sh4stats was given.
8935 if test "${enable_sh4stats+set}" = set; then
8936 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
8938 cat >>confdefs.h <<\_ACEOF
8939 #define ENABLE_SH4STATS 1
8946 # Check whether --with-osmesa was given.
8947 if test "${with_osmesa+set}" = set; then
8948 withval=$with_osmesa;
8954 # Check whether --with-gtk was given.
8955 if test "${with_gtk+set}" = set; then
8956 withval=$with_gtk; with_gtk=yes
8962 # Check whether --with-esd was given.
8963 if test "${with_esd+set}" = set; then
8968 # Check whether --with-pulse was given.
8969 if test "${with_pulse+set}" = set; then
8970 withval=$with_pulse;
8974 # Check whether --with-sdl was given.
8975 if test "${with_sdl+set}" = set; then
8981 if test "$ANDROID_BUILD" = "yes"; then
8983 EXTRA_OUTPUT_FILES="src/android/build.properties"
8984 LIBS="-lEGL -lGLESv2 $LIBS"
8986 cat >>confdefs.h <<\_ACEOF
8987 #define HAVE_GLES2 1
8996 ac_cpp='$OBJCPP $CPPFLAGS'
8997 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9000 if test -n "$ac_tool_prefix"; then
9001 for ac_prog in gcc objcc objc cc CC
9003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9007 if test "${ac_cv_prog_OBJC+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 if test -n "$OBJC"; then
9011 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 test -z "$as_dir" && as_dir=.
9018 for ac_exec_ext in '' $ac_executable_extensions; do
9019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9020 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
9021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 OBJC=$ac_cv_prog_OBJC
9031 if test -n "$OBJC"; then
9032 { echo "$as_me:$LINENO: result: $OBJC" >&5
9033 echo "${ECHO_T}$OBJC" >&6; }
9035 { echo "$as_me:$LINENO: result: no" >&5
9036 echo "${ECHO_T}no" >&6; }
9040 test -n "$OBJC" && break
9043 if test -z "$OBJC"; then
9045 for ac_prog in gcc objcc objc cc CC
9047 # Extract the first word of "$ac_prog", so it can be a program name with args.
9048 set dummy $ac_prog; ac_word=$2
9049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9051 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 if test -n "$ac_ct_OBJC"; then
9055 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
9057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061 test -z "$as_dir" && as_dir=.
9062 for ac_exec_ext in '' $ac_executable_extensions; do
9063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9064 ac_cv_prog_ac_ct_OBJC="$ac_prog"
9065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9074 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
9075 if test -n "$ac_ct_OBJC"; then
9076 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
9077 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
9079 { echo "$as_me:$LINENO: result: no" >&5
9080 echo "${ECHO_T}no" >&6; }
9084 test -n "$ac_ct_OBJC" && break
9087 if test "x$ac_ct_OBJC" = x; then
9090 case $cross_compiling:$ac_tool_warned in
9092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9093 whose name does not start with the host triplet. If you think this
9094 configuration is useful to you, please write to autoconf@gnu.org." >&5
9095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9096 whose name does not start with the host triplet. If you think this
9097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9098 ac_tool_warned=yes ;;
9104 # Provide some information about the compiler.
9105 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
9106 ac_compiler=`set X $ac_compile; echo $2`
9107 { (ac_try="$ac_compiler --version >&5"
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_compiler --version >&5") 2>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }
9117 { (ac_try="$ac_compiler -v >&5"
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_compiler -v >&5") 2>&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }
9127 { (ac_try="$ac_compiler -V >&5"
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_compiler -V >&5") 2>&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }
9138 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
9139 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
9140 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 cat >conftest.$ac_ext <<_ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_compile") 2>conftest.er1
9170 grep -v '^ *+' conftest.er1 >conftest.err
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } && {
9175 test -z "$ac_objc_werror_flag" ||
9176 test ! -s conftest.err
9177 } && test -s conftest.$ac_objext; then
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
9190 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
9191 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
9192 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
9193 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
9194 ac_save_OBJCFLAGS=$OBJCFLAGS
9195 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
9196 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
9197 if test "${ac_cv_prog_objc_g+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 ac_save_objc_werror_flag=$ac_objc_werror_flag
9201 ac_objc_werror_flag=yes
9202 ac_cv_prog_objc_g=no
9204 cat >conftest.$ac_ext <<_ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9219 rm -f conftest.$ac_objext
9220 if { (ac_try="$ac_compile"
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_compile") 2>conftest.er1
9228 grep -v '^ *+' conftest.er1 >conftest.err
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_objc_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest.$ac_objext; then
9236 ac_cv_prog_objc_g=yes
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9257 rm -f conftest.$ac_objext
9258 if { (ac_try="$ac_compile"
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_compile") 2>conftest.er1
9266 grep -v '^ *+' conftest.er1 >conftest.err
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } && {
9271 test -z "$ac_objc_werror_flag" ||
9272 test ! -s conftest.err
9273 } && test -s conftest.$ac_objext; then
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9279 ac_objc_werror_flag=$ac_save_objc_werror_flag
9281 cat >conftest.$ac_ext <<_ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9296 rm -f conftest.$ac_objext
9297 if { (ac_try="$ac_compile"
9299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300 *) ac_try_echo=$ac_try;;
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_compile") 2>conftest.er1
9305 grep -v '^ *+' conftest.er1 >conftest.err
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && {
9310 test -z "$ac_objc_werror_flag" ||
9311 test ! -s conftest.err
9312 } && test -s conftest.$ac_objext; then
9313 ac_cv_prog_objc_g=yes
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 ac_objc_werror_flag=$ac_save_objc_werror_flag
9330 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
9331 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
9332 if test "$ac_test_OBJCFLAGS" = set; then
9333 OBJCFLAGS=$ac_save_OBJCFLAGS
9334 elif test $ac_cv_prog_objc_g = yes; then
9335 if test "$GOBJC" = yes; then
9341 if test "$GOBJC" = yes; then
9348 ac_cpp='$CPP $CPPFLAGS'
9349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9353 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
9354 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
9356 ac_cpp='$OBJCPP $CPPFLAGS'
9357 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9360 cat >conftest.$ac_ext <<_ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9375 rm -f conftest.$ac_objext
9376 if { (ac_try="$ac_compile"
9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379 *) ac_try_echo=$ac_try;;
9381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382 (eval "$ac_compile") 2>conftest.er1
9384 grep -v '^ *+' conftest.er1 >conftest.err
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && {
9389 test -z "$ac_objc_werror_flag" ||
9390 test ! -s conftest.err
9391 } && test -s conftest.$ac_objext; then
9392 { echo "$as_me:$LINENO: result: yes" >&5
9393 echo "${ECHO_T}yes" >&6; }
9395 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
9396 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
9397 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 cat >conftest.$ac_ext <<_ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9406 $ac_includes_default
9408 #include <Cocoa/Cocoa.h>
9410 rm -f conftest.$ac_objext
9411 if { (ac_try="$ac_compile"
9413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9414 *) ac_try_echo=$ac_try;;
9416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9417 (eval "$ac_compile") 2>conftest.er1
9419 grep -v '^ *+' conftest.er1 >conftest.err
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } && {
9424 test -z "$ac_objc_werror_flag" ||
9425 test ! -s conftest.err
9426 } && test -s conftest.$ac_objext; then
9427 ac_cv_header_Cocoa_Cocoa_h=yes
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ac_cv_header_Cocoa_Cocoa_h=no
9435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9437 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
9438 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
9439 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
9443 LIBS="$LIBS -framework AppKit -framework Carbon"
9444 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"
9445 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
9446 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
9448 cat >>confdefs.h <<\_ACEOF
9449 #define HAVE_COCOA 1
9453 cat >>confdefs.h <<\_ACEOF
9454 #define APPLE_BUILD 1
9458 if test "x$with_gtk" = "xx11"; then
9467 { echo "$as_me:$LINENO: checking OBJC version" >&5
9468 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
9469 if test -n "$OBJC"; then
9470 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
9471 if test -n "$_GOBJC_VERSION"; then
9472 { echo "$as_me:$LINENO: result: GCC" >&5
9473 echo "${ECHO_T}GCC" >&6; }
9475 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
9477 { echo "$as_me:$LINENO: result: Unknown" >&5
9478 echo "${ECHO_T}Unknown" >&6; }
9482 { echo "$as_me:$LINENO: result: None" >&5
9483 echo "${ECHO_T}None" >&6; }
9489 ac_cpp='$OBJCPP $CPPFLAGS'
9490 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9491 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9492 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9494 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
9495 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
9496 save_OBJCFLAGS="$OBJCFLAGS"
9497 OBJCFLAGS="-msse2 $OBJCFLAGS"
9498 cat >conftest.$ac_ext <<_ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9505 int main() { return 0; }
9507 rm -f conftest.$ac_objext
9508 if { (ac_try="$ac_compile"
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_compile") 2>conftest.er1
9516 grep -v '^ *+' conftest.er1 >conftest.err
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } && {
9521 test -z "$ac_objc_werror_flag" ||
9522 test ! -s conftest.err
9523 } && test -s conftest.$ac_objext; then
9525 { echo "$as_me:$LINENO: result: yes" >&5
9526 echo "${ECHO_T}yes" >&6; }
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9533 OBJCFLAGS="$save_OBJCFLAGS"
9534 { echo "$as_me:$LINENO: result: no" >&5
9535 echo "${ECHO_T}no" >&6; }
9539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541 ac_cpp='$OBJCPP $CPPFLAGS'
9542 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9549 ac_cpp='$OBJCPP $CPPFLAGS'
9550 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9551 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9552 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9554 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
9555 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
9556 save_OBJCFLAGS="$OBJCFLAGS"
9557 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
9558 cat >conftest.$ac_ext <<_ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 int main() { return 0; }
9567 rm -f conftest.$ac_objext
9568 if { (ac_try="$ac_compile"
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_compile") 2>conftest.er1
9576 grep -v '^ *+' conftest.er1 >conftest.err
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } && {
9581 test -z "$ac_objc_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest.$ac_objext; then
9585 { echo "$as_me:$LINENO: result: yes" >&5
9586 echo "${ECHO_T}yes" >&6; }
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9593 OBJCFLAGS="$save_OBJCFLAGS"
9594 { echo "$as_me:$LINENO: result: no" >&5
9595 echo "${ECHO_T}no" >&6; }
9599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9601 ac_cpp='$OBJCPP $CPPFLAGS'
9602 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9603 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9604 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 { echo "$as_me:$LINENO: result: No" >&5
9613 echo "${ECHO_T}No" >&6; }
9617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
9619 ac_cpp='$CPP $CPPFLAGS'
9620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9629 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
9637 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
9639 cat >>confdefs.h <<\_ACEOF
9640 #define OSX_BUNDLE 1
9645 CFLAGS_FOR_BUILD="-O2 -std=c99"
9646 CFLAGS="-g -fexceptions"
9647 OBJCFLAGS="-g -fexceptions"
9649 cat >>confdefs.h <<\_ACEOF
9650 #define HAVE_EXCEPTIONS 1
9656 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
9657 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
9658 { echo "$as_me:$LINENO: checking CC version" >&5
9659 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
9660 if test -n "$_ICC_VERSION"; then
9661 { echo "$as_me:$LINENO: result: ICC" >&5
9662 echo "${ECHO_T}ICC" >&6; }
9663 CCOPT="$CFLAGS -fast"
9664 CFLAGS="$CFLAGS -fno-strict-aliasing"
9665 elif test -n "$_GCC_VERSION"; then
9666 { echo "$as_me:$LINENO: result: GCC" >&5
9667 echo "${ECHO_T}GCC" >&6; }
9669 CFLAGS="$CFLAGS -fno-strict-aliasing"
9671 { echo "$as_me:$LINENO: result: Unknown" >&5
9672 echo "${ECHO_T}Unknown" >&6; }
9678 ac_cpp='$CPP $CPPFLAGS'
9679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9683 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
9684 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
9685 save_CFLAGS="$CFLAGS"
9686 CFLAGS="-msse2 $CFLAGS"
9687 cat >conftest.$ac_ext <<_ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 int main() { return 0; }
9696 rm -f conftest.$ac_objext
9697 if { (ac_try="$ac_compile"
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_compile") 2>conftest.er1
9705 grep -v '^ *+' conftest.er1 >conftest.err
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } && {
9710 test -z "$ac_c_werror_flag" ||
9711 test ! -s conftest.err
9712 } && test -s conftest.$ac_objext; then
9714 { echo "$as_me:$LINENO: result: yes" >&5
9715 echo "${ECHO_T}yes" >&6; }
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9722 CFLAGS="$save_CFLAGS"
9723 { echo "$as_me:$LINENO: result: no" >&5
9724 echo "${ECHO_T}no" >&6; }
9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 ac_cpp='$CPP $CPPFLAGS'
9731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9738 ac_cpp='$CPP $CPPFLAGS'
9739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9743 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
9744 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
9745 save_CFLAGS="$CFLAGS"
9746 CFLAGS="-mfpmath=sse $CFLAGS"
9747 cat >conftest.$ac_ext <<_ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 int main() { return 0; }
9756 rm -f conftest.$ac_objext
9757 if { (ac_try="$ac_compile"
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_compile") 2>conftest.er1
9765 grep -v '^ *+' conftest.er1 >conftest.err
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } && {
9770 test -z "$ac_c_werror_flag" ||
9771 test ! -s conftest.err
9772 } && test -s conftest.$ac_objext; then
9774 { echo "$as_me:$LINENO: result: yes" >&5
9775 echo "${ECHO_T}yes" >&6; }
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9782 CFLAGS="$save_CFLAGS"
9783 { echo "$as_me:$LINENO: result: no" >&5
9784 echo "${ECHO_T}no" >&6; }
9788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790 ac_cpp='$CPP $CPPFLAGS'
9791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9797 if test "x$enable_optimized" = "xyes"; then
9798 CFLAGS="$CFLAGS $CCOPT"
9799 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
9800 if test "x$enable_profiled" != "xyes"; then
9801 CFLAGS="$CFLAGS -fomit-frame-pointer"
9802 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
9805 CFLAGS="$CFLAGS -g3"
9806 OBJCFLAGS="$OBJCFLAGS -g3"
9809 if test "x$enable_profiled" = "xyes"; then
9810 CFLAGS="$CFLAGS -pg"
9811 LDFLAGS="$LDFLAGS -pg";
9812 OBJCFLAGS="$OBJCFLAGS -pg";
9815 if test "x$enable_strictwarn" = "xyes"; then
9816 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
9817 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
9820 if test "x$enable_shared" != "xno"; then
9821 if test "x$APPLE_BUILD" = "xyes"; then
9823 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
9826 PLUGINLDFLAGS="-shared"
9828 PLUGINCFLAGS="-fPIC"
9830 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9831 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9832 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9833 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9837 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9839 # Is the header compilable?
9840 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9841 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
9842 cat >conftest.$ac_ext <<_ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 $ac_includes_default
9851 rm -f conftest.$ac_objext
9852 if { (ac_try="$ac_compile"
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_compile") 2>conftest.er1
9860 grep -v '^ *+' conftest.er1 >conftest.err
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } && {
9865 test -z "$ac_c_werror_flag" ||
9866 test ! -s conftest.err
9867 } && test -s conftest.$ac_objext; then
9868 ac_header_compiler=yes
9870 echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9873 ac_header_compiler=no
9876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9878 echo "${ECHO_T}$ac_header_compiler" >&6; }
9880 # Is the header present?
9881 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9882 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
9883 cat >conftest.$ac_ext <<_ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9891 if { (ac_try="$ac_cpp conftest.$ac_ext"
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9899 grep -v '^ *+' conftest.er1 >conftest.err
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } >/dev/null && {
9904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9905 test ! -s conftest.err
9907 ac_header_preproc=yes
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_header_preproc=no
9915 rm -f conftest.err conftest.$ac_ext
9916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9917 echo "${ECHO_T}$ac_header_preproc" >&6; }
9919 # So? What about this header?
9920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9922 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9923 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9925 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9926 ac_header_preproc=yes
9929 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9930 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9932 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9934 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9935 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9936 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9938 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9940 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9944 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9945 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9946 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 ac_cv_header_dlfcn_h=$ac_header_preproc
9951 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9952 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9955 if test $ac_cv_header_dlfcn_h = yes; then
9957 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9958 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9959 if test "${ac_cv_search_dlopen+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 ac_func_search_save_LIBS=$LIBS
9963 cat >conftest.$ac_ext <<_ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9970 /* Override any GCC internal prototype to avoid an error.
9971 Use char because int might match the return type of a GCC
9972 builtin and then its argument prototype would still apply. */
9985 for ac_lib in '' dl; do
9986 if test -z "$ac_lib"; then
9987 ac_res="none required"
9990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (ac_try="$ac_link"
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_link") 2>conftest.er1
10001 grep -v '^ *+' conftest.er1 >conftest.err
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && {
10006 test -z "$ac_c_werror_flag" ||
10007 test ! -s conftest.err
10008 } && test -s conftest$ac_exeext &&
10009 $as_test_x conftest$ac_exeext; then
10010 ac_cv_search_dlopen=$ac_res
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10020 if test "${ac_cv_search_dlopen+set}" = set; then
10024 if test "${ac_cv_search_dlopen+set}" = set; then
10027 ac_cv_search_dlopen=no
10029 rm conftest.$ac_ext
10030 LIBS=$ac_func_search_save_LIBS
10032 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10033 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
10034 ac_res=$ac_cv_search_dlopen
10035 if test "$ac_res" != no; then
10036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10043 if test "x$have_dlopen" != "xyes"; then
10044 if test "x$enable_shared" == "xyes"; then
10045 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
10046 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
10047 { (exit 1); exit 1; }; }
10049 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
10050 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
10054 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
10055 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
10056 old_LDFLAGS="$LDFLAGS"
10057 LDFLAGS="$LDFLAGS -rdynamic"
10058 cat >conftest.$ac_ext <<_ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 int main() { return 0; }
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_link") 2>conftest.er1
10075 grep -v '^ *+' conftest.er1 >conftest.err
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest$ac_exeext &&
10083 $as_test_x conftest$ac_exeext; then
10085 LXDREAMLDFLAGS="-rdynamic"
10086 { echo "$as_me:$LINENO: result: yes" >&5
10087 echo "${ECHO_T}yes" >&6; }
10090 echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10095 { echo "$as_me:$LINENO: result: no" >&5
10096 echo "${ECHO_T}no" >&6; }
10099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10100 conftest$ac_exeext conftest.$ac_ext
10101 LDFLAGS="$old_LDFLAGS"
10108 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
10110 cat >>confdefs.h <<\_ACEOF
10111 #define BUILD_PLUGINS 1
10117 if test "x$have_dlopen" = "xyes" -a "x$ANDROID_BUILD" != "xyes"; then
10118 BUILD_PLUGINS_TRUE=
10119 BUILD_PLUGINS_FALSE='#'
10121 BUILD_PLUGINS_TRUE='#'
10122 BUILD_PLUGINS_FALSE=
10127 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
10128 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
10129 save_CFLAGS="$CFLAGS"
10130 CFLAGS="-Werror $save_CFLAGS"
10131 if test "$cross_compiling" = yes; then
10133 { echo "$as_me:$LINENO: result: no" >&5
10134 echo "${ECHO_T}no" >&6; }
10137 cat >conftest.$ac_ext <<_ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10145 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
10147 int main(int argc, char *argv[])
10149 return foo( 1, 2 ) == 3 ? 0 : 1;
10152 rm -f conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_link") 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10163 { (case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_try") 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10173 { echo "$as_me:$LINENO: result: yes" >&5
10174 echo "${ECHO_T}yes" >&6; }
10177 cat >>confdefs.h <<\_ACEOF
10178 #define HAVE_FASTCALL 1
10183 echo "$as_me: program exited with status $ac_status" >&5
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ( exit $ac_status )
10189 { echo "$as_me:$LINENO: result: no" >&5
10190 echo "${ECHO_T}no" >&6; }
10193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10197 CFLAGS="$save_CFLAGS"
10200 { echo "$as_me:$LINENO: checking support for force inlining" >&5
10201 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
10202 cat >conftest.$ac_ext <<_ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10210 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
10212 int main(int argc, char *argv[])
10214 return foo( 1, 2 ) == 3 ? 0 : 1;
10217 rm -f conftest.$ac_objext
10218 if { (ac_try="$ac_compile"
10219 case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_compile") 2>conftest.er1
10226 grep -v '^ *+' conftest.er1 >conftest.err
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } && {
10231 test -z "$ac_c_werror_flag" ||
10232 test ! -s conftest.err
10233 } && test -s conftest.$ac_objext; then
10235 FORCEINLINE="__attribute__((always_inline))"
10236 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
10237 echo "${ECHO_T}$FORCEINLINE" >&6; }
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10245 { echo "$as_me:$LINENO: result: no" >&5
10246 echo "${ECHO_T}no" >&6; }
10250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10253 cat >>confdefs.h <<_ACEOF
10254 #define FORCEINLINE $FORCEINLINE
10258 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
10259 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
10260 if test "$cross_compiling" = yes; then
10262 { echo "$as_me:$LINENO: result: no" >&5
10263 echo "${ECHO_T}no" >&6; }
10264 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10265 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10267 cat >conftest.$ac_ext <<_ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10275 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
10276 int __attribute__((noinline)) foo( int arg, void *exc )
10279 *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
10284 int main(int argc, char *argv[])
10286 goto *first_arg(&&start, &&except);
10289 return foo( argc, &&except ) + 1;
10295 rm -f conftest$ac_exeext
10296 if { (ac_try="$ac_link"
10297 case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_link") 2>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10306 { (case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_try") 2>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
10316 { echo "$as_me:$LINENO: result: yes" >&5
10317 echo "${ECHO_T}yes" >&6; }
10320 cat >>confdefs.h <<\_ACEOF
10321 #define HAVE_FRAME_ADDRESS 1
10326 echo "$as_me: program exited with status $ac_status" >&5
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 ( exit $ac_status )
10332 { echo "$as_me:$LINENO: result: no" >&5
10333 echo "${ECHO_T}no" >&6; }
10334 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10335 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10344 { echo "$as_me:$LINENO: checking for library containing listen" >&5
10345 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
10346 if test "${ac_cv_search_listen+set}" = set; then
10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 ac_func_search_save_LIBS=$LIBS
10350 cat >conftest.$ac_ext <<_ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10357 /* Override any GCC internal prototype to avoid an error.
10358 Use char because int might match the return type of a GCC
10359 builtin and then its argument prototype would still apply. */
10372 for ac_lib in '' socket; do
10373 if test -z "$ac_lib"; then
10374 ac_res="none required"
10377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
10388 grep -v '^ *+' conftest.er1 >conftest.err
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } && {
10393 test -z "$ac_c_werror_flag" ||
10394 test ! -s conftest.err
10395 } && test -s conftest$ac_exeext &&
10396 $as_test_x conftest$ac_exeext; then
10397 ac_cv_search_listen=$ac_res
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10407 if test "${ac_cv_search_listen+set}" = set; then
10411 if test "${ac_cv_search_listen+set}" = set; then
10414 ac_cv_search_listen=no
10416 rm conftest.$ac_ext
10417 LIBS=$ac_func_search_save_LIBS
10419 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
10420 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
10421 ac_res=$ac_cv_search_listen
10422 if test "$ac_res" != no; then
10423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10427 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
10428 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
10429 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 ac_func_search_save_LIBS=$LIBS
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10440 /* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
10450 return inet_ntoa ();
10455 for ac_lib in '' nsl; do
10456 if test -z "$ac_lib"; then
10457 ac_res="none required"
10460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_link") 2>conftest.er1
10471 grep -v '^ *+' conftest.er1 >conftest.err
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest$ac_exeext &&
10479 $as_test_x conftest$ac_exeext; then
10480 ac_cv_search_inet_ntoa=$ac_res
10482 echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10490 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10494 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10497 ac_cv_search_inet_ntoa=no
10499 rm conftest.$ac_ext
10500 LIBS=$ac_func_search_save_LIBS
10502 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
10503 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
10504 ac_res=$ac_cv_search_inet_ntoa
10505 if test "$ac_res" != no; then
10506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10513 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10514 if test -n "$ac_tool_prefix"; then
10515 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10516 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10519 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10522 case $PKG_CONFIG in
10524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10534 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10546 if test -n "$PKG_CONFIG"; then
10547 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10548 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10550 { echo "$as_me:$LINENO: result: no" >&5
10551 echo "${ECHO_T}no" >&6; }
10556 if test -z "$ac_cv_path_PKG_CONFIG"; then
10557 ac_pt_PKG_CONFIG=$PKG_CONFIG
10558 # Extract the first word of "pkg-config", so it can be a program name with args.
10559 set dummy pkg-config; ac_word=$2
10560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10562 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 case $ac_pt_PKG_CONFIG in
10567 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10577 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10588 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10589 if test -n "$ac_pt_PKG_CONFIG"; then
10590 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
10591 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
10593 { echo "$as_me:$LINENO: result: no" >&5
10594 echo "${ECHO_T}no" >&6; }
10597 if test "x$ac_pt_PKG_CONFIG" = x; then
10600 case $cross_compiling:$ac_tool_warned in
10602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10603 whose name does not start with the host triplet. If you think this
10604 configuration is useful to you, please write to autoconf@gnu.org." >&5
10605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10606 whose name does not start with the host triplet. If you think this
10607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10608 ac_tool_warned=yes ;;
10610 PKG_CONFIG=$ac_pt_PKG_CONFIG
10613 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10617 if test -n "$PKG_CONFIG"; then
10618 _pkg_min_version=0.9.0
10619 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
10620 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
10621 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10622 { echo "$as_me:$LINENO: result: yes" >&5
10623 echo "${ECHO_T}yes" >&6; }
10625 { echo "$as_me:$LINENO: result: no" >&5
10626 echo "${ECHO_T}no" >&6; }
10633 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
10634 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
10636 if test -n "$LIBPNG_CFLAGS"; then
10637 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
10638 elif test -n "$PKG_CONFIG"; then
10639 if test -n "$PKG_CONFIG" && \
10640 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10641 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; then
10645 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
10652 if test -n "$LIBPNG_LIBS"; then
10653 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
10654 elif test -n "$PKG_CONFIG"; then
10655 if test -n "$PKG_CONFIG" && \
10656 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10657 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; then
10661 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
10671 if test $pkg_failed = yes; then
10673 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10674 _pkg_short_errors_supported=yes
10676 _pkg_short_errors_supported=no
10678 if test $_pkg_short_errors_supported = yes; then
10679 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
10681 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
10683 # Put the nasty error message in config.log where it belongs
10684 echo "$LIBPNG_PKG_ERRORS" >&5
10686 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
10690 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10691 installed software in a non-standard prefix.
10693 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10694 and LIBPNG_LIBS to avoid the need to call pkg-config.
10695 See the pkg-config man page for more details.
10697 echo "$as_me: error: Package requirements (libpng ) were not met:
10701 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10702 installed software in a non-standard prefix.
10704 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10705 and LIBPNG_LIBS to avoid the need to call pkg-config.
10706 See the pkg-config man page for more details.
10708 { (exit 1); exit 1; }; }
10709 elif test $pkg_failed = untried; then
10710 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10711 is in your PATH or set the PKG_CONFIG environment variable to the full
10712 path to pkg-config.
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 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10719 See \`config.log' for more details." >&5
10720 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10721 is in your PATH or set the PKG_CONFIG environment variable to the full
10722 path to pkg-config.
10724 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10725 and LIBPNG_LIBS to avoid the need to call pkg-config.
10726 See the pkg-config man page for more details.
10728 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10729 See \`config.log' for more details." >&2;}
10730 { (exit 1); exit 1; }; }
10732 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
10733 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
10734 { echo "$as_me:$LINENO: result: yes" >&5
10735 echo "${ECHO_T}yes" >&6; }
10740 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
10741 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
10742 if test "${ac_cv_lib_z_uncompress+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 ac_check_lib_save_LIBS=$LIBS
10747 cat >conftest.$ac_ext <<_ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10754 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10760 char uncompress ();
10764 return uncompress ();
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_link") 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } && {
10783 test -z "$ac_c_werror_flag" ||
10784 test ! -s conftest.err
10785 } && test -s conftest$ac_exeext &&
10786 $as_test_x conftest$ac_exeext; then
10787 ac_cv_lib_z_uncompress=yes
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10792 ac_cv_lib_z_uncompress=no
10795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10796 conftest$ac_exeext conftest.$ac_ext
10797 LIBS=$ac_check_lib_save_LIBS
10799 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
10800 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
10801 if test $ac_cv_lib_z_uncompress = yes; then
10802 cat >>confdefs.h <<_ACEOF
10803 #define HAVE_LIBZ 1
10810 echo "Zlib (libz.so) could not be found, but is required."
10815 if test "x$with_gtk" = "xno"; then
10818 { echo "$as_me:$LINENO: checking for GLIB" >&5
10819 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10821 if test -n "$GLIB_CFLAGS"; then
10822 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10823 elif test -n "$PKG_CONFIG"; then
10824 if test -n "$PKG_CONFIG" && \
10825 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10826 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; then
10830 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10837 if test -n "$GLIB_LIBS"; then
10838 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10839 elif test -n "$PKG_CONFIG"; then
10840 if test -n "$PKG_CONFIG" && \
10841 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10842 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; then
10846 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10856 if test $pkg_failed = yes; then
10858 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10859 _pkg_short_errors_supported=yes
10861 _pkg_short_errors_supported=no
10863 if test $_pkg_short_errors_supported = yes; then
10864 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10866 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10868 # Put the nasty error message in config.log where it belongs
10869 echo "$GLIB_PKG_ERRORS" >&5
10871 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10875 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10876 installed software in a non-standard prefix.
10878 Alternatively, you may set the environment variables GLIB_CFLAGS
10879 and GLIB_LIBS to avoid the need to call pkg-config.
10880 See the pkg-config man page for more details.
10882 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10886 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10887 installed software in a non-standard prefix.
10889 Alternatively, you may set the environment variables GLIB_CFLAGS
10890 and GLIB_LIBS to avoid the need to call pkg-config.
10891 See the pkg-config man page for more details.
10893 { (exit 1); exit 1; }; }
10894 elif test $pkg_failed = untried; then
10895 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10896 is in your PATH or set the PKG_CONFIG environment variable to the full
10897 path to pkg-config.
10899 Alternatively, you may set the environment variables GLIB_CFLAGS
10900 and GLIB_LIBS to avoid the need to call pkg-config.
10901 See the pkg-config man page for more details.
10903 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10904 See \`config.log' for more details." >&5
10905 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10906 is in your PATH or set the PKG_CONFIG environment variable to the full
10907 path to pkg-config.
10909 Alternatively, you may set the environment variables GLIB_CFLAGS
10910 and GLIB_LIBS to avoid the need to call pkg-config.
10911 See the pkg-config man page for more details.
10913 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10914 See \`config.log' for more details." >&2;}
10915 { (exit 1); exit 1; }; }
10917 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10918 GLIB_LIBS=$pkg_cv_GLIB_LIBS
10919 { echo "$as_me:$LINENO: result: yes" >&5
10920 echo "${ECHO_T}yes" >&6; }
10926 { echo "$as_me:$LINENO: checking for GTK" >&5
10927 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
10929 if test -n "$GTK_CFLAGS"; then
10930 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
10931 elif test -n "$PKG_CONFIG"; then
10932 if test -n "$PKG_CONFIG" && \
10933 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10934 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; then
10938 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
10945 if test -n "$GTK_LIBS"; then
10946 pkg_cv_GTK_LIBS="$GTK_LIBS"
10947 elif test -n "$PKG_CONFIG"; then
10948 if test -n "$PKG_CONFIG" && \
10949 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10950 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; then
10954 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
10964 if test $pkg_failed = yes; then
10966 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10967 _pkg_short_errors_supported=yes
10969 _pkg_short_errors_supported=no
10971 if test $_pkg_short_errors_supported = yes; then
10972 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
10974 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
10976 # Put the nasty error message in config.log where it belongs
10977 echo "$GTK_PKG_ERRORS" >&5
10979 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
10983 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10984 installed software in a non-standard prefix.
10986 Alternatively, you may set the environment variables GTK_CFLAGS
10987 and GTK_LIBS to avoid the need to call pkg-config.
10988 See the pkg-config man page for more details.
10990 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
10994 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10995 installed software in a non-standard prefix.
10997 Alternatively, you may set the environment variables GTK_CFLAGS
10998 and GTK_LIBS to avoid the need to call pkg-config.
10999 See the pkg-config man page for more details.
11001 { (exit 1); exit 1; }; }
11002 elif test $pkg_failed = untried; then
11003 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11004 is in your PATH or set the PKG_CONFIG environment variable to the full
11005 path to pkg-config.
11007 Alternatively, you may set the environment variables GTK_CFLAGS
11008 and GTK_LIBS to avoid the need to call pkg-config.
11009 See the pkg-config man page for more details.
11011 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11012 See \`config.log' for more details." >&5
11013 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11014 is in your PATH or set the PKG_CONFIG environment variable to the full
11015 path to pkg-config.
11017 Alternatively, you may set the environment variables GTK_CFLAGS
11018 and GTK_LIBS to avoid the need to call pkg-config.
11019 See the pkg-config man page for more details.
11021 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11022 See \`config.log' for more details." >&2;}
11023 { (exit 1); exit 1; }; }
11025 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
11026 GTK_LIBS=$pkg_cv_GTK_LIBS
11027 { echo "$as_me:$LINENO: result: yes" >&5
11028 echo "${ECHO_T}yes" >&6; }
11032 cat >>confdefs.h <<\_ACEOF
11040 LIBS="$LIBS $GTK_LIBS"
11041 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
11042 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
11043 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 cat >conftest.$ac_ext <<_ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
11053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11054 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
11056 /* System header to define __stub macros and hopefully few prototypes,
11057 which can conflict with char gdk_x11_display_get_xdisplay (); below.
11058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11059 <limits.h> exists even on freestanding compilers. */
11062 # include <limits.h>
11064 # include <assert.h>
11067 #undef gdk_x11_display_get_xdisplay
11069 /* Override any GCC internal prototype to avoid an error.
11070 Use char because int might match the return type of a GCC
11071 builtin and then its argument prototype would still apply. */
11075 char gdk_x11_display_get_xdisplay ();
11076 /* The GNU C library defines this for functions which it implements
11077 to always fail with ENOSYS. Some functions are actually named
11078 something starting with __ and the normal name is an alias. */
11079 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
11086 return gdk_x11_display_get_xdisplay ();
11091 rm -f conftest.$ac_objext conftest$ac_exeext
11092 if { (ac_try="$ac_link"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_link") 2>conftest.er1
11100 grep -v '^ *+' conftest.er1 >conftest.err
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest$ac_exeext &&
11108 $as_test_x conftest$ac_exeext; then
11109 ac_cv_func_gdk_x11_display_get_xdisplay=yes
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11114 ac_cv_func_gdk_x11_display_get_xdisplay=no
11117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11118 conftest$ac_exeext conftest.$ac_ext
11120 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
11121 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
11122 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
11126 cat >>confdefs.h <<\_ACEOF
11127 #define HAVE_GTK_X11 1
11132 GTK_LIBS="$GTK_LIBS -lX11"
11134 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
11135 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
11136 if test "${ac_cv_func_gdk_quartz_window_get_nsview+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_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
11146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11147 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
11149 /* System header to define __stub macros and hopefully few prototypes,
11150 which can conflict with char gdk_quartz_window_get_nsview (); 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_quartz_window_get_nsview
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_quartz_window_get_nsview ();
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_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
11179 return gdk_quartz_window_get_nsview ();
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_quartz_window_get_nsview=yes
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 ac_cv_func_gdk_quartz_window_get_nsview=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_quartz_window_get_nsview" >&5
11214 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
11215 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
11219 cat >>confdefs.h <<\_ACEOF
11220 #define HAVE_GTK_OSX 1
11225 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
11226 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
11227 See \`config.log' for more details." >&5
11228 echo "$as_me: error: Unable to identify GTK platform
11229 See \`config.log' for more details." >&2;}
11230 { (exit 1); exit 1; }; }
11237 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
11238 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
11240 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
11241 pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
11242 elif test -n "$PKG_CONFIG"; then
11243 if test -n "$PKG_CONFIG" && \
11244 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
11245 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; then
11249 pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
11256 if test -n "$GLIB_FOR_BUILD_LIBS"; then
11257 pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
11258 elif test -n "$PKG_CONFIG"; then
11259 if test -n "$PKG_CONFIG" && \
11260 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
11261 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; then
11265 pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
11275 if test $pkg_failed = yes; then
11277 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11278 _pkg_short_errors_supported=yes
11280 _pkg_short_errors_supported=no
11282 if test $_pkg_short_errors_supported = yes; then
11283 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
11285 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
11287 # Put the nasty error message in config.log where it belongs
11288 echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
11290 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
11292 $GLIB_FOR_BUILD_PKG_ERRORS
11294 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11295 installed software in a non-standard prefix.
11297 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11298 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11299 See the pkg-config man page for more details.
11301 echo "$as_me: error: Package requirements (glib-2.0) were not met:
11303 $GLIB_FOR_BUILD_PKG_ERRORS
11305 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11306 installed software in a non-standard prefix.
11308 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11309 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11310 See the pkg-config man page for more details.
11312 { (exit 1); exit 1; }; }
11313 elif test $pkg_failed = untried; then
11314 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11315 is in your PATH or set the PKG_CONFIG environment variable to the full
11316 path to pkg-config.
11318 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11319 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11320 See the pkg-config man page for more details.
11322 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11323 See \`config.log' for more details." >&5
11324 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11325 is in your PATH or set the PKG_CONFIG environment variable to the full
11326 path to pkg-config.
11328 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11329 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11330 See the pkg-config man page for more details.
11332 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11333 See \`config.log' for more details." >&2;}
11334 { (exit 1); exit 1; }; }
11336 GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
11337 GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
11338 { echo "$as_me:$LINENO: result: yes" >&5
11339 echo "${ECHO_T}yes" >&6; }
11346 if test "$HAVE_GTK" = 'yes'; then
11357 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
11358 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
11360 if test -n "$LIBISOFS_CFLAGS"; then
11361 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
11362 elif test -n "$PKG_CONFIG"; then
11363 if test -n "$PKG_CONFIG" && \
11364 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11365 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; then
11369 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
11376 if test -n "$LIBISOFS_LIBS"; then
11377 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
11378 elif test -n "$PKG_CONFIG"; then
11379 if test -n "$PKG_CONFIG" && \
11380 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11381 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; then
11385 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
11395 if test $pkg_failed = yes; then
11397 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11398 _pkg_short_errors_supported=yes
11400 _pkg_short_errors_supported=no
11402 if test $_pkg_short_errors_supported = yes; then
11403 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
11405 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
11407 # Put the nasty error message in config.log where it belongs
11408 echo "$LIBISOFS_PKG_ERRORS" >&5
11410 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
11412 $LIBISOFS_PKG_ERRORS
11414 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11415 installed software in a non-standard prefix.
11417 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11418 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11419 See the pkg-config man page for more details.
11421 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
11423 $LIBISOFS_PKG_ERRORS
11425 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11426 installed software in a non-standard prefix.
11428 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11429 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11430 See the pkg-config man page for more details.
11432 { (exit 1); exit 1; }; }
11433 elif test $pkg_failed = untried; then
11434 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11435 is in your PATH or set the PKG_CONFIG environment variable to the full
11436 path to pkg-config.
11438 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11439 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11440 See the pkg-config man page for more details.
11442 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11443 See \`config.log' for more details." >&5
11444 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11445 is in your PATH or set the PKG_CONFIG environment variable to the full
11446 path to pkg-config.
11448 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11449 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11450 See the pkg-config man page for more details.
11452 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11453 See \`config.log' for more details." >&2;}
11454 { (exit 1); exit 1; }; }
11456 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
11457 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
11458 { echo "$as_me:$LINENO: result: yes" >&5
11459 echo "${ECHO_T}yes" >&6; }
11463 if test "x$with_osmesa" != xno; then
11467 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
11468 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
11469 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 ac_check_lib_save_LIBS=$LIBS
11473 LIBS="-lOSMesa $LIBS"
11474 cat >conftest.$ac_ext <<_ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11487 char OSMesaCreateContext ();
11491 return OSMesaCreateContext ();
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (ac_try="$ac_link"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_link") 2>conftest.er1
11505 grep -v '^ *+' conftest.er1 >conftest.err
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } && {
11510 test -z "$ac_c_werror_flag" ||
11511 test ! -s conftest.err
11512 } && test -s conftest$ac_exeext &&
11513 $as_test_x conftest$ac_exeext; then
11514 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_cv_lib_OSMesa_OSMesaCreateContext=no
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
11527 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
11528 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
11529 cat >>confdefs.h <<_ACEOF
11530 #define HAVE_LIBOSMESA 1
11533 LIBS="-lOSMesa $LIBS"
11536 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
11537 See \`config.log' for more details." >&5
11538 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
11539 See \`config.log' for more details." >&2;}
11540 { (exit 1); exit 1; }; }
11543 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11544 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11545 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11546 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11550 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11552 # Is the header compilable?
11553 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
11554 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
11555 cat >conftest.$ac_ext <<_ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 $ac_includes_default
11562 #include <GL/osmesa.h>
11564 rm -f conftest.$ac_objext
11565 if { (ac_try="$ac_compile"
11566 case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_compile") 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest.$ac_objext; then
11581 ac_header_compiler=yes
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11586 ac_header_compiler=no
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11591 echo "${ECHO_T}$ac_header_compiler" >&6; }
11593 # Is the header present?
11594 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
11595 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
11596 cat >conftest.$ac_ext <<_ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11602 #include <GL/osmesa.h>
11604 if { (ac_try="$ac_cpp conftest.$ac_ext"
11605 case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11612 grep -v '^ *+' conftest.er1 >conftest.err
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } >/dev/null && {
11617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11618 test ! -s conftest.err
11620 ac_header_preproc=yes
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11625 ac_header_preproc=no
11628 rm -f conftest.err conftest.$ac_ext
11629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11630 echo "${ECHO_T}$ac_header_preproc" >&6; }
11632 # So? What about this header?
11633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11635 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
11636 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
11638 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
11639 ac_header_preproc=yes
11642 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
11643 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
11645 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
11647 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
11649 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
11651 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
11653 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
11657 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11658 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11659 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 ac_cv_header_GL_osmesa_h=$ac_header_preproc
11664 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11665 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11668 if test $ac_cv_header_GL_osmesa_h = yes; then
11671 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
11672 See \`config.log' for more details." >&5
11673 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
11674 See \`config.log' for more details." >&2;}
11675 { (exit 1); exit 1; }; }
11680 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
11682 cat >>confdefs.h <<\_ACEOF
11683 #define HAVE_OSMESA 1
11689 if test "x$APPLE_BUILD" != 'xyes' -a "x$ANDROID_BUILD" != 'xyes'; then
11692 { echo "$as_me:$LINENO: checking for LIBGL" >&5
11693 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
11695 if test -n "$LIBGL_CFLAGS"; then
11696 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
11697 elif test -n "$PKG_CONFIG"; then
11698 if test -n "$PKG_CONFIG" && \
11699 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11700 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; then
11704 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
11711 if test -n "$LIBGL_LIBS"; then
11712 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
11713 elif test -n "$PKG_CONFIG"; then
11714 if test -n "$PKG_CONFIG" && \
11715 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11716 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; then
11720 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
11730 if test $pkg_failed = yes; then
11732 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11733 _pkg_short_errors_supported=yes
11735 _pkg_short_errors_supported=no
11737 if test $_pkg_short_errors_supported = yes; then
11738 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
11740 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
11742 # Put the nasty error message in config.log where it belongs
11743 echo "$LIBGL_PKG_ERRORS" >&5
11745 { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
11749 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11750 installed software in a non-standard prefix.
11752 Alternatively, you may set the environment variables LIBGL_CFLAGS
11753 and LIBGL_LIBS to avoid the need to call pkg-config.
11754 See the pkg-config man page for more details.
11756 echo "$as_me: error: Package requirements (gl ) were not met:
11760 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11761 installed software in a non-standard prefix.
11763 Alternatively, you may set the environment variables LIBGL_CFLAGS
11764 and LIBGL_LIBS to avoid the need to call pkg-config.
11765 See the pkg-config man page for more details.
11767 { (exit 1); exit 1; }; }
11768 elif test $pkg_failed = untried; then
11769 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11770 is in your PATH or set the PKG_CONFIG environment variable to the full
11771 path to pkg-config.
11773 Alternatively, you may set the environment variables LIBGL_CFLAGS
11774 and LIBGL_LIBS to avoid the need to call pkg-config.
11775 See the pkg-config man page for more details.
11777 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11778 See \`config.log' for more details." >&5
11779 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11780 is in your PATH or set the PKG_CONFIG environment variable to the full
11781 path to pkg-config.
11783 Alternatively, you may set the environment variables LIBGL_CFLAGS
11784 and LIBGL_LIBS to avoid the need to call pkg-config.
11785 See the pkg-config man page for more details.
11787 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11788 See \`config.log' for more details." >&2;}
11789 { (exit 1); exit 1; }; }
11791 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
11792 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
11793 { echo "$as_me:$LINENO: result: yes" >&5
11794 echo "${ECHO_T}yes" >&6; }
11797 LIBS="$LIBS $LIBGL_LIBS";
11798 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
11800 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
11801 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
11802 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 cat >conftest.$ac_ext <<_ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
11812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11813 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
11815 /* System header to define __stub macros and hopefully few prototypes,
11816 which can conflict with char NSOpenGLGetVersion (); below.
11817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11818 <limits.h> exists even on freestanding compilers. */
11821 # include <limits.h>
11823 # include <assert.h>
11826 #undef NSOpenGLGetVersion
11828 /* Override any GCC internal prototype to avoid an error.
11829 Use char because int might match the return type of a GCC
11830 builtin and then its argument prototype would still apply. */
11834 char NSOpenGLGetVersion ();
11835 /* The GNU C library defines this for functions which it implements
11836 to always fail with ENOSYS. Some functions are actually named
11837 something starting with __ and the normal name is an alias. */
11838 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
11845 return NSOpenGLGetVersion ();
11850 rm -f conftest.$ac_objext conftest$ac_exeext
11851 if { (ac_try="$ac_link"
11852 case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_link") 2>conftest.er1
11859 grep -v '^ *+' conftest.er1 >conftest.err
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } && {
11864 test -z "$ac_c_werror_flag" ||
11865 test ! -s conftest.err
11866 } && test -s conftest$ac_exeext &&
11867 $as_test_x conftest$ac_exeext; then
11868 ac_cv_func_NSOpenGLGetVersion=yes
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11873 ac_cv_func_NSOpenGLGetVersion=no
11876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11877 conftest$ac_exeext conftest.$ac_ext
11879 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
11880 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
11881 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
11884 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
11886 cat >>confdefs.h <<\_ACEOF
11887 #define HAVE_NSGL 1
11894 if test "x$HAVE_GTK_X11" = "xyes"; then
11895 if test "x$APPLE_BUILD" = "xyes"; then
11896 LIBS="$LIBS -L/usr/X11/lib -lGL"
11898 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
11899 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
11900 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 cat >conftest.$ac_ext <<_ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11909 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
11910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11911 #define glXQueryVersion innocuous_glXQueryVersion
11913 /* System header to define __stub macros and hopefully few prototypes,
11914 which can conflict with char glXQueryVersion (); below.
11915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916 <limits.h> exists even on freestanding compilers. */
11919 # include <limits.h>
11921 # include <assert.h>
11924 #undef glXQueryVersion
11926 /* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11932 char glXQueryVersion ();
11933 /* The GNU C library defines this for functions which it implements
11934 to always fail with ENOSYS. Some functions are actually named
11935 something starting with __ and the normal name is an alias. */
11936 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
11943 return glXQueryVersion ();
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (ac_try="$ac_link"
11950 case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_link") 2>conftest.er1
11957 grep -v '^ *+' conftest.er1 >conftest.err
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } && {
11962 test -z "$ac_c_werror_flag" ||
11963 test ! -s conftest.err
11964 } && test -s conftest$ac_exeext &&
11965 $as_test_x conftest$ac_exeext; then
11966 ac_cv_func_glXQueryVersion=yes
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 ac_cv_func_glXQueryVersion=no
11974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11975 conftest$ac_exeext conftest.$ac_ext
11977 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
11978 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
11979 if test $ac_cv_func_glXQueryVersion = yes; then
11982 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
11984 cat >>confdefs.h <<\_ACEOF
12000 if test "x$HAVE_OSMESA" = "xyes"; then
12002 VIDEO_OSMESA_FALSE='#'
12004 VIDEO_OSMESA_TRUE='#'
12005 VIDEO_OSMESA_FALSE=
12010 if test "x$HAVE_GLX" = "xyes"; then
12012 VIDEO_GLX_FALSE='#'
12020 if test "x$HAVE_NSGL" = "xyes"; then
12022 VIDEO_NSGL_FALSE='#'
12024 VIDEO_NSGL_TRUE='#'
12029 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
12030 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
12031 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 cat >conftest.$ac_ext <<_ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
12041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12042 #define glGenFramebuffers innocuous_glGenFramebuffers
12044 /* System header to define __stub macros and hopefully few prototypes,
12045 which can conflict with char glGenFramebuffers (); below.
12046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12047 <limits.h> exists even on freestanding compilers. */
12050 # include <limits.h>
12052 # include <assert.h>
12055 #undef glGenFramebuffers
12057 /* Override any GCC internal prototype to avoid an error.
12058 Use char because int might match the return type of a GCC
12059 builtin and then its argument prototype would still apply. */
12063 char glGenFramebuffers ();
12064 /* The GNU C library defines this for functions which it implements
12065 to always fail with ENOSYS. Some functions are actually named
12066 something starting with __ and the normal name is an alias. */
12067 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
12074 return glGenFramebuffers ();
12079 rm -f conftest.$ac_objext conftest$ac_exeext
12080 if { (ac_try="$ac_link"
12081 case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_link") 2>conftest.er1
12088 grep -v '^ *+' conftest.er1 >conftest.err
12090 cat conftest.err >&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } && {
12093 test -z "$ac_c_werror_flag" ||
12094 test ! -s conftest.err
12095 } && test -s conftest$ac_exeext &&
12096 $as_test_x conftest$ac_exeext; then
12097 ac_cv_func_glGenFramebuffers=yes
12099 echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12102 ac_cv_func_glGenFramebuffers=no
12105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12106 conftest$ac_exeext conftest.$ac_ext
12108 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
12109 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
12110 if test $ac_cv_func_glGenFramebuffers = yes; then
12112 cat >>confdefs.h <<\_ACEOF
12113 #define HAVE_OPENGL_FBO 1
12118 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
12119 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
12120 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
12130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12131 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
12133 /* System header to define __stub macros and hopefully few prototypes,
12134 which can conflict with char glGenFramebuffersEXT (); below.
12135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12136 <limits.h> exists even on freestanding compilers. */
12139 # include <limits.h>
12141 # include <assert.h>
12144 #undef glGenFramebuffersEXT
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12152 char glGenFramebuffersEXT ();
12153 /* The GNU C library defines this for functions which it implements
12154 to always fail with ENOSYS. Some functions are actually named
12155 something starting with __ and the normal name is an alias. */
12156 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
12163 return glGenFramebuffersEXT ();
12168 rm -f conftest.$ac_objext conftest$ac_exeext
12169 if { (ac_try="$ac_link"
12170 case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_link") 2>conftest.er1
12177 grep -v '^ *+' conftest.er1 >conftest.err
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest$ac_exeext &&
12185 $as_test_x conftest$ac_exeext; then
12186 ac_cv_func_glGenFramebuffersEXT=yes
12188 echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12191 ac_cv_func_glGenFramebuffersEXT=no
12194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12195 conftest$ac_exeext conftest.$ac_ext
12197 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
12198 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
12199 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
12201 cat >>confdefs.h <<\_ACEOF
12202 #define HAVE_OPENGL_FBO_EXT 1
12207 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
12208 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
12209 if test "${ac_cv_func_glCreateShader+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 cat >conftest.$ac_ext <<_ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
12219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12220 #define glCreateShader innocuous_glCreateShader
12222 /* System header to define __stub macros and hopefully few prototypes,
12223 which can conflict with char glCreateShader (); below.
12224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12225 <limits.h> exists even on freestanding compilers. */
12228 # include <limits.h>
12230 # include <assert.h>
12233 #undef glCreateShader
12235 /* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12241 char glCreateShader ();
12242 /* The GNU C library defines this for functions which it implements
12243 to always fail with ENOSYS. Some functions are actually named
12244 something starting with __ and the normal name is an alias. */
12245 #if defined __stub_glCreateShader || defined __stub___glCreateShader
12252 return glCreateShader ();
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (ac_try="$ac_link"
12259 case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_link") 2>conftest.er1
12266 grep -v '^ *+' conftest.er1 >conftest.err
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } && {
12271 test -z "$ac_c_werror_flag" ||
12272 test ! -s conftest.err
12273 } && test -s conftest$ac_exeext &&
12274 $as_test_x conftest$ac_exeext; then
12275 ac_cv_func_glCreateShader=yes
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 ac_cv_func_glCreateShader=no
12283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12284 conftest$ac_exeext conftest.$ac_ext
12286 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
12287 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
12288 if test $ac_cv_func_glCreateShader = yes; then
12290 cat >>confdefs.h <<\_ACEOF
12291 #define HAVE_OPENGL_SHADER 1
12296 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
12297 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
12298 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 cat >conftest.$ac_ext <<_ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
12308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12309 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
12311 /* System header to define __stub macros and hopefully few prototypes,
12312 which can conflict with char glCreateShaderObjectARB (); below.
12313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12314 <limits.h> exists even on freestanding compilers. */
12317 # include <limits.h>
12319 # include <assert.h>
12322 #undef glCreateShaderObjectARB
12324 /* Override any GCC internal prototype to avoid an error.
12325 Use char because int might match the return type of a GCC
12326 builtin and then its argument prototype would still apply. */
12330 char glCreateShaderObjectARB ();
12331 /* The GNU C library defines this for functions which it implements
12332 to always fail with ENOSYS. Some functions are actually named
12333 something starting with __ and the normal name is an alias. */
12334 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
12341 return glCreateShaderObjectARB ();
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (ac_try="$ac_link"
12348 case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_link") 2>conftest.er1
12355 grep -v '^ *+' conftest.er1 >conftest.err
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && {
12360 test -z "$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 } && test -s conftest$ac_exeext &&
12363 $as_test_x conftest$ac_exeext; then
12364 ac_cv_func_glCreateShaderObjectARB=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_cv_func_glCreateShaderObjectARB=no
12372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12373 conftest$ac_exeext conftest.$ac_ext
12375 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
12376 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
12377 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define HAVE_OPENGL_SHADER_ARB 1
12385 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
12386 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
12387 if test "${ac_cv_func_glClampColorARB+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 cat >conftest.$ac_ext <<_ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
12397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12398 #define glClampColorARB innocuous_glClampColorARB
12400 /* System header to define __stub macros and hopefully few prototypes,
12401 which can conflict with char glClampColorARB (); below.
12402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12403 <limits.h> exists even on freestanding compilers. */
12406 # include <limits.h>
12408 # include <assert.h>
12411 #undef glClampColorARB
12413 /* Override any GCC internal prototype to avoid an error.
12414 Use char because int might match the return type of a GCC
12415 builtin and then its argument prototype would still apply. */
12419 char glClampColorARB ();
12420 /* The GNU C library defines this for functions which it implements
12421 to always fail with ENOSYS. Some functions are actually named
12422 something starting with __ and the normal name is an alias. */
12423 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
12430 return glClampColorARB ();
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (ac_try="$ac_link"
12437 case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_link") 2>conftest.er1
12444 grep -v '^ *+' conftest.er1 >conftest.err
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } && {
12449 test -z "$ac_c_werror_flag" ||
12450 test ! -s conftest.err
12451 } && test -s conftest$ac_exeext &&
12452 $as_test_x conftest$ac_exeext; then
12453 ac_cv_func_glClampColorARB=yes
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 ac_cv_func_glClampColorARB=no
12461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12462 conftest$ac_exeext conftest.$ac_ext
12464 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
12465 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
12466 if test $ac_cv_func_glClampColorARB = yes; then
12468 cat >>confdefs.h <<\_ACEOF
12469 #define HAVE_OPENGL_CLAMP_COLOR 1
12474 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
12475 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
12476 if test "${ac_cv_func_glClearDepthf+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 cat >conftest.$ac_ext <<_ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
12486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12487 #define glClearDepthf innocuous_glClearDepthf
12489 /* System header to define __stub macros and hopefully few prototypes,
12490 which can conflict with char glClearDepthf (); below.
12491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12492 <limits.h> exists even on freestanding compilers. */
12495 # include <limits.h>
12497 # include <assert.h>
12500 #undef glClearDepthf
12502 /* Override any GCC internal prototype to avoid an error.
12503 Use char because int might match the return type of a GCC
12504 builtin and then its argument prototype would still apply. */
12508 char glClearDepthf ();
12509 /* The GNU C library defines this for functions which it implements
12510 to always fail with ENOSYS. Some functions are actually named
12511 something starting with __ and the normal name is an alias. */
12512 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
12519 return glClearDepthf ();
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (ac_try="$ac_link"
12526 case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_link") 2>conftest.er1
12533 grep -v '^ *+' conftest.er1 >conftest.err
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } && {
12538 test -z "$ac_c_werror_flag" ||
12539 test ! -s conftest.err
12540 } && test -s conftest$ac_exeext &&
12541 $as_test_x conftest$ac_exeext; then
12542 ac_cv_func_glClearDepthf=yes
12544 echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12547 ac_cv_func_glClearDepthf=no
12550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12551 conftest$ac_exeext conftest.$ac_ext
12553 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
12554 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
12555 if test $ac_cv_func_glClearDepthf = yes; then
12557 cat >>confdefs.h <<\_ACEOF
12558 #define HAVE_OPENGL_CLEAR_DEPTHF 1
12563 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
12564 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
12565 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 cat >conftest.$ac_ext <<_ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12574 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
12575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12576 #define glAreTexturesResident innocuous_glAreTexturesResident
12578 /* System header to define __stub macros and hopefully few prototypes,
12579 which can conflict with char glAreTexturesResident (); below.
12580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12581 <limits.h> exists even on freestanding compilers. */
12584 # include <limits.h>
12586 # include <assert.h>
12589 #undef glAreTexturesResident
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12597 char glAreTexturesResident ();
12598 /* The GNU C library defines this for functions which it implements
12599 to always fail with ENOSYS. Some functions are actually named
12600 something starting with __ and the normal name is an alias. */
12601 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
12608 return glAreTexturesResident ();
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_link") 2>conftest.er1
12622 grep -v '^ *+' conftest.er1 >conftest.err
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } && {
12627 test -z "$ac_c_werror_flag" ||
12628 test ! -s conftest.err
12629 } && test -s conftest$ac_exeext &&
12630 $as_test_x conftest$ac_exeext; then
12631 ac_cv_func_glAreTexturesResident=yes
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 ac_cv_func_glAreTexturesResident=no
12639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12640 conftest$ac_exeext conftest.$ac_ext
12642 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
12643 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
12644 if test $ac_cv_func_glAreTexturesResident = yes; then
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_OPENGL_TEX_RESIDENT 1
12652 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
12653 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
12654 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 cat >conftest.$ac_ext <<_ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
12664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12665 #define glDrawBuffer innocuous_glDrawBuffer
12667 /* System header to define __stub macros and hopefully few prototypes,
12668 which can conflict with char glDrawBuffer (); below.
12669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12670 <limits.h> exists even on freestanding compilers. */
12673 # include <limits.h>
12675 # include <assert.h>
12678 #undef glDrawBuffer
12680 /* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
12686 char glDrawBuffer ();
12687 /* The GNU C library defines this for functions which it implements
12688 to always fail with ENOSYS. Some functions are actually named
12689 something starting with __ and the normal name is an alias. */
12690 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
12697 return glDrawBuffer ();
12702 rm -f conftest.$ac_objext conftest$ac_exeext
12703 if { (ac_try="$ac_link"
12704 case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_link") 2>conftest.er1
12711 grep -v '^ *+' conftest.er1 >conftest.err
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } && {
12716 test -z "$ac_c_werror_flag" ||
12717 test ! -s conftest.err
12718 } && test -s conftest$ac_exeext &&
12719 $as_test_x conftest$ac_exeext; then
12720 ac_cv_func_glDrawBuffer=yes
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12725 ac_cv_func_glDrawBuffer=no
12728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12729 conftest$ac_exeext conftest.$ac_ext
12731 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
12732 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
12733 if test $ac_cv_func_glDrawBuffer = yes; then
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_OPENGL_DRAW_BUFFER 1
12741 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
12742 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
12743 if test "${ac_cv_func_glTexEnvi+set}" = set; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
12746 cat >conftest.$ac_ext <<_ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
12753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12754 #define glTexEnvi innocuous_glTexEnvi
12756 /* System header to define __stub macros and hopefully few prototypes,
12757 which can conflict with char glTexEnvi (); below.
12758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12759 <limits.h> exists even on freestanding compilers. */
12762 # include <limits.h>
12764 # include <assert.h>
12769 /* Override any GCC internal prototype to avoid an error.
12770 Use char because int might match the return type of a GCC
12771 builtin and then its argument prototype would still apply. */
12776 /* The GNU C library defines this for functions which it implements
12777 to always fail with ENOSYS. Some functions are actually named
12778 something starting with __ and the normal name is an alias. */
12779 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
12786 return glTexEnvi ();
12791 rm -f conftest.$ac_objext conftest$ac_exeext
12792 if { (ac_try="$ac_link"
12793 case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_link") 2>conftest.er1
12800 grep -v '^ *+' conftest.er1 >conftest.err
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } && {
12805 test -z "$ac_c_werror_flag" ||
12806 test ! -s conftest.err
12807 } && test -s conftest$ac_exeext &&
12808 $as_test_x conftest$ac_exeext; then
12809 ac_cv_func_glTexEnvi=yes
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 ac_cv_func_glTexEnvi=no
12817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12818 conftest$ac_exeext conftest.$ac_ext
12820 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
12821 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
12822 if test $ac_cv_func_glTexEnvi = yes; then
12824 cat >>confdefs.h <<\_ACEOF
12825 #define HAVE_OPENGL_FIXEDFUNC 1
12831 if test "x$enable_translator" != "xno"; then
12833 i386|i486|i586|i686|x86_64)
12834 SH4_TRANSLATOR="x86"
12836 cat >>confdefs.h <<_ACEOF
12837 #define SH4_TRANSLATOR TARGET_X86
12844 if test "$SH4_TRANSLATOR" = "x86"; then
12846 BUILD_SH4X86_FALSE='#'
12848 BUILD_SH4X86_TRUE='#'
12849 BUILD_SH4X86_FALSE=
12853 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12854 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12855 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12856 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12860 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12862 # Is the header compilable?
12863 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
12864 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
12865 cat >conftest.$ac_ext <<_ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12871 $ac_includes_default
12872 #include <CoreAudio/CoreAudio.h>
12874 rm -f conftest.$ac_objext
12875 if { (ac_try="$ac_compile"
12876 case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12881 (eval "$ac_compile") 2>conftest.er1
12883 grep -v '^ *+' conftest.er1 >conftest.err
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest.$ac_objext; then
12891 ac_header_compiler=yes
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 ac_header_compiler=no
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12901 echo "${ECHO_T}$ac_header_compiler" >&6; }
12903 # Is the header present?
12904 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
12905 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
12906 cat >conftest.$ac_ext <<_ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12912 #include <CoreAudio/CoreAudio.h>
12914 if { (ac_try="$ac_cpp conftest.$ac_ext"
12915 case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12922 grep -v '^ *+' conftest.er1 >conftest.err
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } >/dev/null && {
12927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12928 test ! -s conftest.err
12930 ac_header_preproc=yes
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12935 ac_header_preproc=no
12938 rm -f conftest.err conftest.$ac_ext
12939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12940 echo "${ECHO_T}$ac_header_preproc" >&6; }
12942 # So? What about this header?
12943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12945 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12946 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
12948 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
12949 ac_header_preproc=yes
12952 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
12953 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
12954 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
12955 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
12956 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
12957 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
12958 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
12959 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12960 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
12961 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
12962 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
12963 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
12967 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12968 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12969 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
12974 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12975 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12978 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
12980 HAVE_CORE_AUDIO=yes
12981 LIBS="$LIBS -framework CoreAudio"
12982 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
12984 cat >>confdefs.h <<\_ACEOF
12985 #define HAVE_CORE_AUDIO 1
12995 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
12997 AUDIO_OSX_FALSE='#'
13004 if test "x$with_sdl" != "xno"; then
13007 { echo "$as_me:$LINENO: checking for SDL" >&5
13008 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
13010 if test -n "$SDL_CFLAGS"; then
13011 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13012 elif test -n "$PKG_CONFIG"; then
13013 if test -n "$PKG_CONFIG" && \
13014 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
13015 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; then
13019 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13026 if test -n "$SDL_LIBS"; then
13027 pkg_cv_SDL_LIBS="$SDL_LIBS"
13028 elif test -n "$PKG_CONFIG"; then
13029 if test -n "$PKG_CONFIG" && \
13030 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
13031 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; then
13035 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13045 if test $pkg_failed = yes; then
13047 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13048 _pkg_short_errors_supported=yes
13050 _pkg_short_errors_supported=no
13052 if test $_pkg_short_errors_supported = yes; then
13053 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
13055 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
13057 # Put the nasty error message in config.log where it belongs
13058 echo "$SDL_PKG_ERRORS" >&5
13060 { echo "$as_me:$LINENO: result: no" >&5
13061 echo "${ECHO_T}no" >&6; }
13063 if test "x$with_sdl" = "xyes"; then
13064 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
13065 See \`config.log' for more details." >&5
13066 echo "$as_me: error: \"SDL libraries could not be found (but were required)
13067 See \`config.log' for more details." >&2;}
13068 { (exit 1); exit 1; }; }
13071 elif test $pkg_failed = untried; then
13073 if test "x$with_sdl" = "xyes"; then
13074 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
13075 See \`config.log' for more details." >&5
13076 echo "$as_me: error: \"SDL libraries could not be found (but were required)
13077 See \`config.log' for more details." >&2;}
13078 { (exit 1); exit 1; }; }
13082 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13083 SDL_LIBS=$pkg_cv_SDL_LIBS
13084 { echo "$as_me:$LINENO: result: yes" >&5
13085 echo "${ECHO_T}yes" >&6; }
13088 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
13090 cat >>confdefs.h <<\_ACEOF
13099 if test "$HAVE_SDL" = 'yes' ; then
13101 AUDIO_SDL_FALSE='#'
13108 if test "x$with_pulse" != "xno"; then
13111 { echo "$as_me:$LINENO: checking for PULSE" >&5
13112 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
13114 if test -n "$PULSE_CFLAGS"; then
13115 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
13116 elif test -n "$PKG_CONFIG"; then
13117 if test -n "$PKG_CONFIG" && \
13118 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
13119 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; then
13123 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
13130 if test -n "$PULSE_LIBS"; then
13131 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
13132 elif test -n "$PKG_CONFIG"; then
13133 if test -n "$PKG_CONFIG" && \
13134 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
13135 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; then
13139 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
13149 if test $pkg_failed = yes; then
13151 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13152 _pkg_short_errors_supported=yes
13154 _pkg_short_errors_supported=no
13156 if test $_pkg_short_errors_supported = yes; then
13157 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
13159 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
13161 # Put the nasty error message in config.log where it belongs
13162 echo "$PULSE_PKG_ERRORS" >&5
13164 { echo "$as_me:$LINENO: result: no" >&5
13165 echo "${ECHO_T}no" >&6; }
13167 if test "x$with_pulse" = "xyes"; then
13168 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
13169 See \`config.log' for more details." >&5
13170 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
13171 See \`config.log' for more details." >&2;}
13172 { (exit 1); exit 1; }; }
13175 elif test $pkg_failed = untried; then
13177 if test "x$with_pulse" = "xyes"; then
13178 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
13179 See \`config.log' for more details." >&5
13180 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
13181 See \`config.log' for more details." >&2;}
13182 { (exit 1); exit 1; }; }
13186 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
13187 PULSE_LIBS=$pkg_cv_PULSE_LIBS
13188 { echo "$as_me:$LINENO: result: yes" >&5
13189 echo "${ECHO_T}yes" >&6; }
13192 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
13194 cat >>confdefs.h <<\_ACEOF
13195 #define HAVE_PULSE 1
13203 if test "$HAVE_PULSE" = 'yes' ; then
13205 AUDIO_PULSE_FALSE='#'
13207 AUDIO_PULSE_TRUE='#'
13212 if test "x$with_esd" != "xno"; then
13215 { echo "$as_me:$LINENO: checking for ESOUND" >&5
13216 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
13218 if test -n "$ESOUND_CFLAGS"; then
13219 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
13220 elif test -n "$PKG_CONFIG"; then
13221 if test -n "$PKG_CONFIG" && \
13222 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
13223 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; then
13227 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
13234 if test -n "$ESOUND_LIBS"; then
13235 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
13236 elif test -n "$PKG_CONFIG"; then
13237 if test -n "$PKG_CONFIG" && \
13238 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
13239 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; then
13243 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
13253 if test $pkg_failed = yes; then
13255 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13256 _pkg_short_errors_supported=yes
13258 _pkg_short_errors_supported=no
13260 if test $_pkg_short_errors_supported = yes; then
13261 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
13263 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
13265 # Put the nasty error message in config.log where it belongs
13266 echo "$ESOUND_PKG_ERRORS" >&5
13268 { echo "$as_me:$LINENO: result: no" >&5
13269 echo "${ECHO_T}no" >&6; }
13271 if test "x$with_esd" = "xyes"; then
13272 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13273 See \`config.log' for more details." >&5
13274 echo "$as_me: error: ESounD audio package could not be found (but was required)
13275 See \`config.log' for more details." >&2;}
13276 { (exit 1); exit 1; }; }
13279 elif test $pkg_failed = untried; then
13281 if test "x$with_esd" = "xyes"; then
13282 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13283 See \`config.log' for more details." >&5
13284 echo "$as_me: error: ESounD audio package could not be found (but was required)
13285 See \`config.log' for more details." >&2;}
13286 { (exit 1); exit 1; }; }
13290 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
13291 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
13292 { echo "$as_me:$LINENO: result: yes" >&5
13293 echo "${ECHO_T}yes" >&6; }
13296 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
13298 cat >>confdefs.h <<\_ACEOF
13299 #define HAVE_ESOUND 1
13307 if test "$HAVE_ESOUND" = 'yes' ; then
13309 AUDIO_ESOUND_FALSE='#'
13311 AUDIO_ESOUND_TRUE='#'
13312 AUDIO_ESOUND_FALSE=
13318 { echo "$as_me:$LINENO: checking for ALSA" >&5
13319 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
13321 if test -n "$ALSA_CFLAGS"; then
13322 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
13323 elif test -n "$PKG_CONFIG"; then
13324 if test -n "$PKG_CONFIG" && \
13325 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13326 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; then
13330 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
13337 if test -n "$ALSA_LIBS"; then
13338 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
13339 elif test -n "$PKG_CONFIG"; then
13340 if test -n "$PKG_CONFIG" && \
13341 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13342 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; then
13346 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
13356 if test $pkg_failed = yes; then
13358 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13359 _pkg_short_errors_supported=yes
13361 _pkg_short_errors_supported=no
13363 if test $_pkg_short_errors_supported = yes; then
13364 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
13366 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
13368 # Put the nasty error message in config.log where it belongs
13369 echo "$ALSA_PKG_ERRORS" >&5
13371 { echo "$as_me:$LINENO: result: no" >&5
13372 echo "${ECHO_T}no" >&6; }
13374 elif test $pkg_failed = untried; then
13377 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
13378 ALSA_LIBS=$pkg_cv_ALSA_LIBS
13379 { echo "$as_me:$LINENO: result: yes" >&5
13380 echo "${ECHO_T}yes" >&6; }
13383 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
13385 cat >>confdefs.h <<\_ACEOF
13386 #define HAVE_ALSA 1
13392 if test "$HAVE_ALSA" = 'yes' ; then
13394 AUDIO_ALSA_FALSE='#'
13396 AUDIO_ALSA_TRUE='#'
13402 if test "$ANDROID_BUILD" != "yes"; then
13403 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13404 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13405 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13406 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13409 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13410 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13412 # Is the header compilable?
13413 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
13414 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
13415 cat >conftest.$ac_ext <<_ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 $ac_includes_default
13422 #include <linux/cdrom.h>
13424 rm -f conftest.$ac_objext
13425 if { (ac_try="$ac_compile"
13426 case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_compile") 2>conftest.er1
13433 grep -v '^ *+' conftest.er1 >conftest.err
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } && {
13438 test -z "$ac_c_werror_flag" ||
13439 test ! -s conftest.err
13440 } && test -s conftest.$ac_objext; then
13441 ac_header_compiler=yes
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13446 ac_header_compiler=no
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13451 echo "${ECHO_T}$ac_header_compiler" >&6; }
13453 # Is the header present?
13454 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
13455 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
13456 cat >conftest.$ac_ext <<_ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 #include <linux/cdrom.h>
13464 if { (ac_try="$ac_cpp conftest.$ac_ext"
13465 case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13472 grep -v '^ *+' conftest.er1 >conftest.err
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } >/dev/null && {
13477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13478 test ! -s conftest.err
13480 ac_header_preproc=yes
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13485 ac_header_preproc=no
13488 rm -f conftest.err conftest.$ac_ext
13489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13490 echo "${ECHO_T}$ac_header_preproc" >&6; }
13492 # So? What about this header?
13493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13495 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
13496 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
13498 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
13499 ac_header_preproc=yes
13502 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
13503 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
13505 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
13507 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
13509 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
13511 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
13513 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
13517 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13518 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13519 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 ac_cv_header_linux_cdrom_h=$ac_header_preproc
13524 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13525 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13528 if test $ac_cv_header_linux_cdrom_h = yes; then
13531 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
13532 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
13533 old_CFLAGS="$CFLAGS"
13534 CFLAGS="$CFLAGS $STDCFLAG"
13535 cat >conftest.$ac_ext <<_ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 #include <linux/cdrom.h>
13550 rm -f conftest.$ac_objext
13551 if { (ac_try="$ac_compile"
13552 case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_compile") 2>conftest.er1
13559 grep -v '^ *+' conftest.er1 >conftest.err
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } && {
13564 test -z "$ac_c_werror_flag" ||
13565 test ! -s conftest.err
13566 } && test -s conftest.$ac_objext; then
13567 { echo "$as_me:$LINENO: result: Yes" >&5
13568 echo "${ECHO_T}Yes" >&6; }
13570 echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13574 { echo "$as_me:$LINENO: result: No" >&5
13575 echo "${ECHO_T}No" >&6; }
13576 STDCFLAG="-std=gnu99"
13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580 CFLAGS="$old_CFLAGS"
13587 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13588 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13589 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13590 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13594 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13596 # Is the header compilable?
13597 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
13598 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
13599 cat >conftest.$ac_ext <<_ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13605 $ac_includes_default
13606 #include <IOKit/IOKitLib.h>
13608 rm -f conftest.$ac_objext
13609 if { (ac_try="$ac_compile"
13610 case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_compile") 2>conftest.er1
13617 grep -v '^ *+' conftest.er1 >conftest.err
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } && {
13622 test -z "$ac_c_werror_flag" ||
13623 test ! -s conftest.err
13624 } && test -s conftest.$ac_objext; then
13625 ac_header_compiler=yes
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_header_compiler=no
13633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13635 echo "${ECHO_T}$ac_header_compiler" >&6; }
13637 # Is the header present?
13638 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
13639 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
13640 cat >conftest.$ac_ext <<_ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13646 #include <IOKit/IOKitLib.h>
13648 if { (ac_try="$ac_cpp conftest.$ac_ext"
13649 case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13656 grep -v '^ *+' conftest.er1 >conftest.err
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } >/dev/null && {
13661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13662 test ! -s conftest.err
13664 ac_header_preproc=yes
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13669 ac_header_preproc=no
13672 rm -f conftest.err conftest.$ac_ext
13673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13674 echo "${ECHO_T}$ac_header_preproc" >&6; }
13676 # So? What about this header?
13677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13679 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13680 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13681 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
13682 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
13683 ac_header_preproc=yes
13686 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
13687 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
13689 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
13691 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
13693 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13694 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
13695 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
13696 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
13697 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
13701 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13702 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13703 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
13708 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13709 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13712 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
13715 LIBS="$LIBS -framework IOKit"
13724 if test "x$CDROM_DRIVER" = "xlinux"; then
13726 CDROM_LINUX_FALSE='#'
13728 CDROM_LINUX_TRUE='#'
13734 if test "x$CDROM_DRIVER" = "xosx"; then
13736 CDROM_OSX_FALSE='#'
13744 if test "x$CDROM_DRIVER" = "x"; then
13746 CDROM_NONE_FALSE='#'
13748 CDROM_NONE_TRUE='#'
13752 if test "x$CDROM_DRIVER" = "xlinux"; then
13754 cat >>confdefs.h <<\_ACEOF
13755 #define HAVE_LINUX_CDROM 1
13760 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13761 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13762 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13763 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13767 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13769 # Is the header compilable?
13770 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
13771 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
13772 cat >conftest.$ac_ext <<_ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 $ac_includes_default
13779 #include <linux/joystick.h>
13781 rm -f conftest.$ac_objext
13782 if { (ac_try="$ac_compile"
13783 case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_compile") 2>conftest.er1
13790 grep -v '^ *+' conftest.er1 >conftest.err
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } && {
13795 test -z "$ac_c_werror_flag" ||
13796 test ! -s conftest.err
13797 } && test -s conftest.$ac_objext; then
13798 ac_header_compiler=yes
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13803 ac_header_compiler=no
13806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13808 echo "${ECHO_T}$ac_header_compiler" >&6; }
13810 # Is the header present?
13811 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
13812 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
13813 cat >conftest.$ac_ext <<_ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 #include <linux/joystick.h>
13821 if { (ac_try="$ac_cpp conftest.$ac_ext"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13829 grep -v '^ *+' conftest.er1 >conftest.err
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } >/dev/null && {
13834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13835 test ! -s conftest.err
13837 ac_header_preproc=yes
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13842 ac_header_preproc=no
13845 rm -f conftest.err conftest.$ac_ext
13846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13847 echo "${ECHO_T}$ac_header_preproc" >&6; }
13849 # So? What about this header?
13850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13852 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
13853 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
13855 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
13856 ac_header_preproc=yes
13859 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
13860 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
13862 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
13864 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
13865 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
13866 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
13868 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
13870 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
13874 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13875 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13876 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 ac_cv_header_linux_joystick_h=$ac_header_preproc
13881 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13882 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13885 if test $ac_cv_header_linux_joystick_h = yes; then
13887 HAVE_LINUX_JOYSTICK_H=yes
13889 cat >>confdefs.h <<\_ACEOF
13890 #define HAVE_LINUX_JOYSTICK 1
13893 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
13895 echo "Linux Joystick support not found, building without it."
13901 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
13903 JOY_LINUX_FALSE='#'
13910 if test "x$with_lirc" != "xno"; then
13911 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13912 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13913 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
13914 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13918 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
13920 # Is the header compilable?
13921 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
13922 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 #include <lirc/lirc_client.h>
13932 rm -f conftest.$ac_objext
13933 if { (ac_try="$ac_compile"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_compile") 2>conftest.er1
13941 grep -v '^ *+' conftest.er1 >conftest.err
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest.$ac_objext; then
13949 ac_header_compiler=yes
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ac_header_compiler=no
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13959 echo "${ECHO_T}$ac_header_compiler" >&6; }
13961 # Is the header present?
13962 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
13963 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
13964 cat >conftest.$ac_ext <<_ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 #include <lirc/lirc_client.h>
13972 if { (ac_try="$ac_cpp conftest.$ac_ext"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13980 grep -v '^ *+' conftest.er1 >conftest.err
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } >/dev/null && {
13985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13988 ac_header_preproc=yes
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 ac_header_preproc=no
13996 rm -f conftest.err conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13998 echo "${ECHO_T}$ac_header_preproc" >&6; }
14000 # So? What about this header?
14001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14003 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
14004 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
14006 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
14007 ac_header_preproc=yes
14010 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
14011 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
14012 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
14013 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
14014 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
14015 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
14017 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
14018 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14019 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
14021 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
14025 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14026 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
14027 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
14032 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14033 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
14036 if test $ac_cv_header_lirc_lirc_client_h = yes; then
14038 HAVE_LIRC_CLIENT_H=yes
14040 cat >>confdefs.h <<\_ACEOF
14041 #define HAVE_LIRC 1
14044 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
14047 echo "LIRC support not found, building without it."
14054 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
14056 INPUT_LIRC_FALSE='#'
14058 INPUT_LIRC_TRUE='#'
14063 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
14064 set dummy sh-elf-gcc; ac_word=$2
14065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14067 if test "${ac_cv_path_SHCC+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
14075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076 for as_dir in $PATH
14079 test -z "$as_dir" && as_dir=.
14080 for ac_exec_ext in '' $ac_executable_extensions; do
14081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14082 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
14083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14093 SHCC=$ac_cv_path_SHCC
14094 if test -n "$SHCC"; then
14095 { echo "$as_me:$LINENO: result: $SHCC" >&5
14096 echo "${ECHO_T}$SHCC" >&6; }
14098 { echo "$as_me:$LINENO: result: no" >&5
14099 echo "${ECHO_T}no" >&6; }
14103 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
14104 set dummy sh-elf-ld; ac_word=$2
14105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14107 if test "${ac_cv_path_SHLD+set}" = set; then
14108 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in $PATH
14119 test -z "$as_dir" && as_dir=.
14120 for ac_exec_ext in '' $ac_executable_extensions; do
14121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14122 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
14123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14133 SHLD=$ac_cv_path_SHLD
14134 if test -n "$SHLD"; then
14135 { echo "$as_me:$LINENO: result: $SHLD" >&5
14136 echo "${ECHO_T}$SHLD" >&6; }
14138 { echo "$as_me:$LINENO: result: no" >&5
14139 echo "${ECHO_T}no" >&6; }
14143 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
14144 set dummy sh-elf-objcopy; ac_word=$2
14145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14147 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
14155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156 for as_dir in $PATH
14159 test -z "$as_dir" && as_dir=.
14160 for ac_exec_ext in '' $ac_executable_extensions; do
14161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14162 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14173 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
14174 if test -n "$SHOBJCOPY"; then
14175 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
14176 echo "${ECHO_T}$SHOBJCOPY" >&6; }
14178 { echo "$as_me:$LINENO: result: no" >&5
14179 echo "${ECHO_T}no" >&6; }
14183 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
14184 set dummy arm-elf-gcc; ac_word=$2
14185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14187 if test "${ac_cv_path_ARMCC+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
14195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196 for as_dir in $PATH
14199 test -z "$as_dir" && as_dir=.
14200 for ac_exec_ext in '' $ac_executable_extensions; do
14201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14202 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
14203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14213 ARMCC=$ac_cv_path_ARMCC
14214 if test -n "$ARMCC"; then
14215 { echo "$as_me:$LINENO: result: $ARMCC" >&5
14216 echo "${ECHO_T}$ARMCC" >&6; }
14218 { echo "$as_me:$LINENO: result: no" >&5
14219 echo "${ECHO_T}no" >&6; }
14223 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
14224 set dummy arm-elf-ld; ac_word=$2
14225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14227 if test "${ac_cv_path_ARMLD+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14242 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
14243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14253 ARMLD=$ac_cv_path_ARMLD
14254 if test -n "$ARMLD"; then
14255 { echo "$as_me:$LINENO: result: $ARMLD" >&5
14256 echo "${ECHO_T}$ARMLD" >&6; }
14258 { echo "$as_me:$LINENO: result: no" >&5
14259 echo "${ECHO_T}no" >&6; }
14263 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
14264 set dummy arm-elf-objcopy; ac_word=$2
14265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14267 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 case $ARMOBJCOPY in
14272 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
14275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14276 for as_dir in $PATH
14279 test -z "$as_dir" && as_dir=.
14280 for ac_exec_ext in '' $ac_executable_extensions; do
14281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14282 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14293 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
14294 if test -n "$ARMOBJCOPY"; then
14295 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
14296 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
14298 { echo "$as_me:$LINENO: result: no" >&5
14299 echo "${ECHO_T}no" >&6; }
14304 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
14306 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
14310 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
14312 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
14318 if test "$BUILD_SH" = "yes"; then
14319 BUILD_SYSTEST_TRUE=
14320 BUILD_SYSTEST_FALSE='#'
14322 BUILD_SYSTEST_TRUE='#'
14323 BUILD_SYSTEST_FALSE=
14328 if test "$BUILD_ARM" = "yes"; then
14329 BUILD_ARMTEST_TRUE=
14330 BUILD_ARMTEST_FALSE='#'
14332 BUILD_ARMTEST_TRUE='#'
14333 BUILD_ARMTEST_FALSE=
14337 CFLAGS="$CFLAGS $STDCFLAG"
14339 GETTEXT_PACKAGE=lxdream
14340 LXDREAM_LIBS="$LIBS"
14345 cat >>confdefs.h <<_ACEOF
14346 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14350 ALL_LINGUAS="de es it nl pt_BR"
14353 for ac_header in locale.h
14355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 ac_res=`eval echo '${'$as_ac_Header'}'`
14363 { echo "$as_me:$LINENO: result: $ac_res" >&5
14364 echo "${ECHO_T}$ac_res" >&6; }
14366 # Is the header compilable?
14367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14369 cat >conftest.$ac_ext <<_ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h. */
14375 $ac_includes_default
14376 #include <$ac_header>
14378 rm -f conftest.$ac_objext
14379 if { (ac_try="$ac_compile"
14380 case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_compile") 2>conftest.er1
14387 grep -v '^ *+' conftest.er1 >conftest.err
14389 cat conftest.err >&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } && {
14392 test -z "$ac_c_werror_flag" ||
14393 test ! -s conftest.err
14394 } && test -s conftest.$ac_objext; then
14395 ac_header_compiler=yes
14397 echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14400 ac_header_compiler=no
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14405 echo "${ECHO_T}$ac_header_compiler" >&6; }
14407 # Is the header present?
14408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14410 cat >conftest.$ac_ext <<_ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 #include <$ac_header>
14418 if { (ac_try="$ac_cpp conftest.$ac_ext"
14419 case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14426 grep -v '^ *+' conftest.er1 >conftest.err
14428 cat conftest.err >&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } >/dev/null && {
14431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14432 test ! -s conftest.err
14434 ac_header_preproc=yes
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14439 ac_header_preproc=no
14442 rm -f conftest.err conftest.$ac_ext
14443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14444 echo "${ECHO_T}$ac_header_preproc" >&6; }
14446 # So? What about this header?
14447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14453 ac_header_preproc=yes
14456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 eval "$as_ac_Header=\$ac_header_preproc"
14478 ac_res=`eval echo '${'$as_ac_Header'}'`
14479 { echo "$as_me:$LINENO: result: $ac_res" >&5
14480 echo "${ECHO_T}$ac_res" >&6; }
14483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14484 cat >>confdefs.h <<_ACEOF
14485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14492 if test $ac_cv_header_locale_h = yes; then
14493 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14494 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
14495 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 cat >conftest.$ac_ext <<_ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 #include <locale.h>
14513 rm -f conftest.$ac_objext conftest$ac_exeext
14514 if { (ac_try="$ac_link"
14515 case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520 (eval "$ac_link") 2>conftest.er1
14522 grep -v '^ *+' conftest.er1 >conftest.err
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } && {
14527 test -z "$ac_c_werror_flag" ||
14528 test ! -s conftest.err
14529 } && test -s conftest$ac_exeext &&
14530 $as_test_x conftest$ac_exeext; then
14531 am_cv_val_LC_MESSAGES=yes
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14536 am_cv_val_LC_MESSAGES=no
14539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14540 conftest$ac_exeext conftest.$ac_ext
14542 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14543 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
14544 if test $am_cv_val_LC_MESSAGES = yes; then
14546 cat >>confdefs.h <<\_ACEOF
14547 #define HAVE_LC_MESSAGES 1
14555 gt_cv_have_gettext=no
14561 if test "${ac_cv_header_libintl_h+set}" = set; then
14562 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14563 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14564 if test "${ac_cv_header_libintl_h+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14568 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14570 # Is the header compilable?
14571 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
14572 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
14573 cat >conftest.$ac_ext <<_ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h. */
14579 $ac_includes_default
14580 #include <libintl.h>
14582 rm -f conftest.$ac_objext
14583 if { (ac_try="$ac_compile"
14584 case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_compile") 2>conftest.er1
14591 grep -v '^ *+' conftest.er1 >conftest.err
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } && {
14596 test -z "$ac_c_werror_flag" ||
14597 test ! -s conftest.err
14598 } && test -s conftest.$ac_objext; then
14599 ac_header_compiler=yes
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 ac_header_compiler=no
14607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14609 echo "${ECHO_T}$ac_header_compiler" >&6; }
14611 # Is the header present?
14612 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
14613 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
14614 cat >conftest.$ac_ext <<_ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 #include <libintl.h>
14622 if { (ac_try="$ac_cpp conftest.$ac_ext"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14630 grep -v '^ *+' conftest.er1 >conftest.err
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } >/dev/null && {
14635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14636 test ! -s conftest.err
14638 ac_header_preproc=yes
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_header_preproc=no
14646 rm -f conftest.err conftest.$ac_ext
14647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14648 echo "${ECHO_T}$ac_header_preproc" >&6; }
14650 # So? What about this header?
14651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14653 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14654 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
14656 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
14657 ac_header_preproc=yes
14660 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14661 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14662 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14663 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14664 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
14665 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
14667 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14669 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
14671 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
14675 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14676 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14677 if test "${ac_cv_header_libintl_h+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 ac_cv_header_libintl_h=$ac_header_preproc
14682 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14683 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14686 if test $ac_cv_header_libintl_h = yes; then
14687 gt_cv_func_dgettext_libintl="no"
14688 libintl_extra_libs=""
14691 # First check in libc
14693 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
14694 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
14695 if test "${gt_cv_func_ngettext_libc+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 cat >conftest.$ac_ext <<_ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14705 #include <libintl.h>
14710 return !ngettext ("","", 1)
14715 rm -f conftest.$ac_objext conftest$ac_exeext
14716 if { (ac_try="$ac_link"
14717 case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_link") 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } && {
14729 test -z "$ac_c_werror_flag" ||
14730 test ! -s conftest.err
14731 } && test -s conftest$ac_exeext &&
14732 $as_test_x conftest$ac_exeext; then
14733 gt_cv_func_ngettext_libc=yes
14735 echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14738 gt_cv_func_ngettext_libc=no
14741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14742 conftest$ac_exeext conftest.$ac_ext
14745 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
14746 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
14748 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14749 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
14750 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
14751 if test "${gt_cv_func_dgettext_libc+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 cat >conftest.$ac_ext <<_ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14761 #include <libintl.h>
14766 return !dgettext ("","")
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (ac_try="$ac_link"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_link") 2>conftest.er1
14780 grep -v '^ *+' conftest.er1 >conftest.err
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } && {
14785 test -z "$ac_c_werror_flag" ||
14786 test ! -s conftest.err
14787 } && test -s conftest$ac_exeext &&
14788 $as_test_x conftest$ac_exeext; then
14789 gt_cv_func_dgettext_libc=yes
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 gt_cv_func_dgettext_libc=no
14797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14798 conftest$ac_exeext conftest.$ac_ext
14801 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
14802 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
14805 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14807 for ac_func in bind_textdomain_codeset
14809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 cat >conftest.$ac_ext <<_ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h. */
14821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14823 #define $ac_func innocuous_$ac_func
14825 /* System header to define __stub macros and hopefully few prototypes,
14826 which can conflict with char $ac_func (); below.
14827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14828 <limits.h> exists even on freestanding compilers. */
14831 # include <limits.h>
14833 # include <assert.h>
14838 /* Override any GCC internal prototype to avoid an error.
14839 Use char because int might match the return type of a GCC
14840 builtin and then its argument prototype would still apply. */
14845 /* The GNU C library defines this for functions which it implements
14846 to always fail with ENOSYS. Some functions are actually named
14847 something starting with __ and the normal name is an alias. */
14848 #if defined __stub_$ac_func || defined __stub___$ac_func
14855 return $ac_func ();
14860 rm -f conftest.$ac_objext conftest$ac_exeext
14861 if { (ac_try="$ac_link"
14862 case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_link") 2>conftest.er1
14869 grep -v '^ *+' conftest.er1 >conftest.err
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } && {
14874 test -z "$ac_c_werror_flag" ||
14875 test ! -s conftest.err
14876 } && test -s conftest$ac_exeext &&
14877 $as_test_x conftest$ac_exeext; then
14878 eval "$as_ac_var=yes"
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14883 eval "$as_ac_var=no"
14886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14887 conftest$ac_exeext conftest.$ac_ext
14889 ac_res=`eval echo '${'$as_ac_var'}'`
14890 { echo "$as_me:$LINENO: result: $ac_res" >&5
14891 echo "${ECHO_T}$ac_res" >&6; }
14892 if test `eval echo '${'$as_ac_var'}'` = yes; then
14893 cat >>confdefs.h <<_ACEOF
14894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14903 # If we don't have everything we want, check in libintl
14905 if test "$gt_cv_func_dgettext_libc" != "yes" \
14906 || test "$gt_cv_func_ngettext_libc" != "yes" \
14907 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
14909 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
14910 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
14911 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 ac_check_lib_save_LIBS=$LIBS
14915 LIBS="-lintl $LIBS"
14916 cat >conftest.$ac_ext <<_ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14923 /* Override any GCC internal prototype to avoid an error.
14924 Use char because int might match the return type of a GCC
14925 builtin and then its argument prototype would still apply. */
14929 char bindtextdomain ();
14933 return bindtextdomain ();
14938 rm -f conftest.$ac_objext conftest$ac_exeext
14939 if { (ac_try="$ac_link"
14940 case "(($ac_try" in
14941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942 *) ac_try_echo=$ac_try;;
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_link") 2>conftest.er1
14947 grep -v '^ *+' conftest.er1 >conftest.err
14949 cat conftest.err >&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } && {
14952 test -z "$ac_c_werror_flag" ||
14953 test ! -s conftest.err
14954 } && test -s conftest$ac_exeext &&
14955 $as_test_x conftest$ac_exeext; then
14956 ac_cv_lib_intl_bindtextdomain=yes
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 ac_cv_lib_intl_bindtextdomain=no
14964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14965 conftest$ac_exeext conftest.$ac_ext
14966 LIBS=$ac_check_lib_save_LIBS
14968 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
14969 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
14970 if test $ac_cv_lib_intl_bindtextdomain = yes; then
14971 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
14972 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
14973 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14976 ac_check_lib_save_LIBS=$LIBS
14977 LIBS="-lintl $LIBS"
14978 cat >conftest.$ac_ext <<_ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14985 /* Override any GCC internal prototype to avoid an error.
14986 Use char because int might match the return type of a GCC
14987 builtin and then its argument prototype would still apply. */
14995 return ngettext ();
15000 rm -f conftest.$ac_objext conftest$ac_exeext
15001 if { (ac_try="$ac_link"
15002 case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_link") 2>conftest.er1
15009 grep -v '^ *+' conftest.er1 >conftest.err
15011 cat conftest.err >&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } && {
15014 test -z "$ac_c_werror_flag" ||
15015 test ! -s conftest.err
15016 } && test -s conftest$ac_exeext &&
15017 $as_test_x conftest$ac_exeext; then
15018 ac_cv_lib_intl_ngettext=yes
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 ac_cv_lib_intl_ngettext=no
15026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15027 conftest$ac_exeext conftest.$ac_ext
15028 LIBS=$ac_check_lib_save_LIBS
15030 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
15031 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
15032 if test $ac_cv_lib_intl_ngettext = yes; then
15033 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
15034 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
15035 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 ac_check_lib_save_LIBS=$LIBS
15039 LIBS="-lintl $LIBS"
15040 cat >conftest.$ac_ext <<_ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15047 /* Override any GCC internal prototype to avoid an error.
15048 Use char because int might match the return type of a GCC
15049 builtin and then its argument prototype would still apply. */
15057 return dgettext ();
15062 rm -f conftest.$ac_objext conftest$ac_exeext
15063 if { (ac_try="$ac_link"
15064 case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069 (eval "$ac_link") 2>conftest.er1
15071 grep -v '^ *+' conftest.er1 >conftest.err
15073 cat conftest.err >&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } && {
15076 test -z "$ac_c_werror_flag" ||
15077 test ! -s conftest.err
15078 } && test -s conftest$ac_exeext &&
15079 $as_test_x conftest$ac_exeext; then
15080 ac_cv_lib_intl_dgettext=yes
15082 echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15085 ac_cv_lib_intl_dgettext=no
15088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15089 conftest$ac_exeext conftest.$ac_ext
15090 LIBS=$ac_check_lib_save_LIBS
15092 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
15093 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
15094 if test $ac_cv_lib_intl_dgettext = yes; then
15095 gt_cv_func_dgettext_libintl=yes
15103 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
15104 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
15105 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
15106 { echo "$as_me:$LINENO: result: " >&5
15107 echo "${ECHO_T}" >&6; }
15108 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
15109 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
15110 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 ac_check_lib_save_LIBS=$LIBS
15114 LIBS="-lintl -liconv $LIBS"
15115 cat >conftest.$ac_ext <<_ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15122 /* Override any GCC internal prototype to avoid an error.
15123 Use char because int might match the return type of a GCC
15124 builtin and then its argument prototype would still apply. */
15132 return ngettext ();
15137 rm -f conftest.$ac_objext conftest$ac_exeext
15138 if { (ac_try="$ac_link"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_link") 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } && {
15151 test -z "$ac_c_werror_flag" ||
15152 test ! -s conftest.err
15153 } && test -s conftest$ac_exeext &&
15154 $as_test_x conftest$ac_exeext; then
15155 ac_cv_lib_intl_ngettext=yes
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 ac_cv_lib_intl_ngettext=no
15163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15164 conftest$ac_exeext conftest.$ac_ext
15165 LIBS=$ac_check_lib_save_LIBS
15167 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
15168 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
15169 if test $ac_cv_lib_intl_ngettext = yes; then
15170 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
15171 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
15172 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 ac_check_lib_save_LIBS=$LIBS
15176 LIBS="-lintl -liconv $LIBS"
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15184 /* Override any GCC internal prototype to avoid an error.
15185 Use char because int might match the return type of a GCC
15186 builtin and then its argument prototype would still apply. */
15194 return dcgettext ();
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (ac_try="$ac_link"
15201 case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>conftest.er1
15208 grep -v '^ *+' conftest.er1 >conftest.err
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } && {
15213 test -z "$ac_c_werror_flag" ||
15214 test ! -s conftest.err
15215 } && test -s conftest$ac_exeext &&
15216 $as_test_x conftest$ac_exeext; then
15217 ac_cv_lib_intl_dcgettext=yes
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ac_cv_lib_intl_dcgettext=no
15225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15226 conftest$ac_exeext conftest.$ac_ext
15227 LIBS=$ac_check_lib_save_LIBS
15229 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
15230 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
15231 if test $ac_cv_lib_intl_dcgettext = yes; then
15232 gt_cv_func_dgettext_libintl=yes
15233 libintl_extra_libs=-liconv
15245 # If we found libintl, then check in it for bind_textdomain_codeset();
15246 # we'll prefer libc if neither have bind_textdomain_codeset(),
15247 # and both have dgettext and ngettext
15249 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
15250 glib_save_LIBS="$LIBS"
15251 LIBS="$LIBS -lintl $libintl_extra_libs"
15252 unset ac_cv_func_bind_textdomain_codeset
15254 for ac_func in bind_textdomain_codeset
15256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 cat >conftest.$ac_ext <<_ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15270 #define $ac_func innocuous_$ac_func
15272 /* System header to define __stub macros and hopefully few prototypes,
15273 which can conflict with char $ac_func (); below.
15274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15275 <limits.h> exists even on freestanding compilers. */
15278 # include <limits.h>
15280 # include <assert.h>
15285 /* Override any GCC internal prototype to avoid an error.
15286 Use char because int might match the return type of a GCC
15287 builtin and then its argument prototype would still apply. */
15292 /* The GNU C library defines this for functions which it implements
15293 to always fail with ENOSYS. Some functions are actually named
15294 something starting with __ and the normal name is an alias. */
15295 #if defined __stub_$ac_func || defined __stub___$ac_func
15302 return $ac_func ();
15307 rm -f conftest.$ac_objext conftest$ac_exeext
15308 if { (ac_try="$ac_link"
15309 case "(($ac_try" in
15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311 *) ac_try_echo=$ac_try;;
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314 (eval "$ac_link") 2>conftest.er1
15316 grep -v '^ *+' conftest.er1 >conftest.err
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } && {
15321 test -z "$ac_c_werror_flag" ||
15322 test ! -s conftest.err
15323 } && test -s conftest$ac_exeext &&
15324 $as_test_x conftest$ac_exeext; then
15325 eval "$as_ac_var=yes"
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15330 eval "$as_ac_var=no"
15333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15334 conftest$ac_exeext conftest.$ac_ext
15336 ac_res=`eval echo '${'$as_ac_var'}'`
15337 { echo "$as_me:$LINENO: result: $ac_res" >&5
15338 echo "${ECHO_T}$ac_res" >&6; }
15339 if test `eval echo '${'$as_ac_var'}'` = yes; then
15340 cat >>confdefs.h <<_ACEOF
15341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15347 LIBS="$glib_save_LIBS"
15349 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
15350 gt_cv_func_dgettext_libc=no
15352 if test "$gt_cv_func_dgettext_libc" = "yes" \
15353 && test "$gt_cv_func_ngettext_libc" = "yes"; then
15354 gt_cv_func_dgettext_libintl=no
15360 if test "$gt_cv_func_dgettext_libc" = "yes" \
15361 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
15362 gt_cv_have_gettext=yes
15365 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
15366 INTLLIBS="-lintl $libintl_extra_libs"
15369 if test "$gt_cv_have_gettext" = "yes"; then
15371 cat >>confdefs.h <<\_ACEOF
15372 #define HAVE_GETTEXT 1
15375 # Extract the first word of "msgfmt", so it can be a program name with args.
15376 set dummy msgfmt; ac_word=$2
15377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15379 if test "${ac_cv_path_MSGFMT+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15388 for ac_dir in $PATH; do
15389 test -z "$ac_dir" && ac_dir=.
15390 if test -f $ac_dir/$ac_word; then
15391 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
15392 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15398 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
15402 MSGFMT="$ac_cv_path_MSGFMT"
15403 if test "$MSGFMT" != "no"; then
15404 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15405 echo "${ECHO_T}$MSGFMT" >&6; }
15407 { echo "$as_me:$LINENO: result: no" >&5
15408 echo "${ECHO_T}no" >&6; }
15410 if test "$MSGFMT" != "no"; then
15411 glib_save_LIBS="$LIBS"
15412 LIBS="$LIBS $INTLLIBS"
15414 for ac_func in dcgettext
15416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15430 #define $ac_func innocuous_$ac_func
15432 /* System header to define __stub macros and hopefully few prototypes,
15433 which can conflict with char $ac_func (); below.
15434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15435 <limits.h> exists even on freestanding compilers. */
15438 # include <limits.h>
15440 # include <assert.h>
15445 /* Override any GCC internal prototype to avoid an error.
15446 Use char because int might match the return type of a GCC
15447 builtin and then its argument prototype would still apply. */
15452 /* The GNU C library defines this for functions which it implements
15453 to always fail with ENOSYS. Some functions are actually named
15454 something starting with __ and the normal name is an alias. */
15455 #if defined __stub_$ac_func || defined __stub___$ac_func
15462 return $ac_func ();
15467 rm -f conftest.$ac_objext conftest$ac_exeext
15468 if { (ac_try="$ac_link"
15469 case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_link") 2>conftest.er1
15476 grep -v '^ *+' conftest.er1 >conftest.err
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } && {
15481 test -z "$ac_c_werror_flag" ||
15482 test ! -s conftest.err
15483 } && test -s conftest$ac_exeext &&
15484 $as_test_x conftest$ac_exeext; then
15485 eval "$as_ac_var=yes"
15487 echo "$as_me: failed program was:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15490 eval "$as_ac_var=no"
15493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15494 conftest$ac_exeext conftest.$ac_ext
15496 ac_res=`eval echo '${'$as_ac_var'}'`
15497 { echo "$as_me:$LINENO: result: $ac_res" >&5
15498 echo "${ECHO_T}$ac_res" >&6; }
15499 if test `eval echo '${'$as_ac_var'}'` = yes; then
15500 cat >>confdefs.h <<_ACEOF
15501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15508 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
15509 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
15510 cat >conftest.foo <<_ACEOF
15514 "Content-Type: text/plain; charset=UTF-8\n"
15515 "Project-Id-Version: test 1.0\n"
15516 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
15517 "Last-Translator: test <foo@bar.xx>\n"
15518 "Language-Team: C <LL@li.org>\n"
15519 "MIME-Version: 1.0\n"
15520 "Content-Transfer-Encoding: 8bit\n"
15523 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
15524 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; then
15528 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
15529 echo "${ECHO_T}yes" >&6; }
15530 else { echo "$as_me:$LINENO: result: no" >&5
15531 echo "${ECHO_T}no" >&6; }
15532 echo "$as_me: failed input was:" >&5
15533 sed 's/^/| /' conftest.foo >&5
15536 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15537 set dummy gmsgfmt; ac_word=$2
15538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15540 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15549 for as_dir in $PATH
15552 test -z "$as_dir" && as_dir=.
15553 for ac_exec_ext in '' $ac_executable_extensions; do
15554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15555 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15563 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15567 GMSGFMT=$ac_cv_path_GMSGFMT
15568 if test -n "$GMSGFMT"; then
15569 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15570 echo "${ECHO_T}$GMSGFMT" >&6; }
15572 { echo "$as_me:$LINENO: result: no" >&5
15573 echo "${ECHO_T}no" >&6; }
15577 # Extract the first word of "xgettext", so it can be a program name with args.
15578 set dummy xgettext; ac_word=$2
15579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15581 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 case "$XGETTEXT" in
15586 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15590 for ac_dir in $PATH; do
15591 test -z "$ac_dir" && ac_dir=.
15592 if test -f $ac_dir/$ac_word; then
15593 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15594 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15600 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15604 XGETTEXT="$ac_cv_path_XGETTEXT"
15605 if test "$XGETTEXT" != ":"; then
15606 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15607 echo "${ECHO_T}$XGETTEXT" >&6; }
15609 { echo "$as_me:$LINENO: result: no" >&5
15610 echo "${ECHO_T}no" >&6; }
15613 cat >conftest.$ac_ext <<_ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15623 extern int _nl_msg_cat_cntr;
15624 return _nl_msg_cat_cntr
15629 rm -f conftest.$ac_objext conftest$ac_exeext
15630 if { (ac_try="$ac_link"
15631 case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_link") 2>conftest.er1
15638 grep -v '^ *+' conftest.er1 >conftest.err
15640 cat conftest.err >&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } && {
15643 test -z "$ac_c_werror_flag" ||
15644 test ! -s conftest.err
15645 } && test -s conftest$ac_exeext &&
15646 $as_test_x conftest$ac_exeext; then
15650 echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15655 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
15656 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
15657 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
15658 echo $ECHO_N "(cached) $ECHO_C" >&6
15660 cat >conftest.$ac_ext <<_ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
15667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15668 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
15670 /* System header to define __stub macros and hopefully few prototypes,
15671 which can conflict with char bind_textdomain_codeset (); below.
15672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15673 <limits.h> exists even on freestanding compilers. */
15676 # include <limits.h>
15678 # include <assert.h>
15681 #undef bind_textdomain_codeset
15683 /* Override any GCC internal prototype to avoid an error.
15684 Use char because int might match the return type of a GCC
15685 builtin and then its argument prototype would still apply. */
15689 char bind_textdomain_codeset ();
15690 /* The GNU C library defines this for functions which it implements
15691 to always fail with ENOSYS. Some functions are actually named
15692 something starting with __ and the normal name is an alias. */
15693 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
15700 return bind_textdomain_codeset ();
15705 rm -f conftest.$ac_objext conftest$ac_exeext
15706 if { (ac_try="$ac_link"
15707 case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_link") 2>conftest.er1
15714 grep -v '^ *+' conftest.er1 >conftest.err
15716 cat conftest.err >&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } && {
15719 test -z "$ac_c_werror_flag" ||
15720 test ! -s conftest.err
15721 } && test -s conftest$ac_exeext &&
15722 $as_test_x conftest$ac_exeext; then
15723 ac_cv_func_bind_textdomain_codeset=yes
15725 echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15728 ac_cv_func_bind_textdomain_codeset=no
15731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15732 conftest$ac_exeext conftest.$ac_ext
15734 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
15735 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
15736 if test $ac_cv_func_bind_textdomain_codeset = yes; then
15752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15753 conftest$ac_exeext conftest.$ac_ext
15754 LIBS="$glib_save_LIBS"
15757 gt_cv_have_gettext=no
15765 if test "$gt_cv_have_gettext" = "yes" ; then
15767 cat >>confdefs.h <<\_ACEOF
15768 #define ENABLE_NLS 1
15773 if test "$XGETTEXT" != ":"; then
15774 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15777 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15778 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
15783 # We need to process the po/ directory.
15786 ac_config_commands="$ac_config_commands default-1"
15789 for lang in $ALL_LINGUAS; do
15790 GMOFILES="$GMOFILES $lang.gmo"
15791 POFILES="$POFILES $lang.po"
15806 if test "$gt_cv_have_gettext" = "yes"; then
15807 if test "x$ALL_LINGUAS" = "x"; then
15810 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15811 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
15813 for presentlang in $ALL_LINGUAS; do
15815 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15816 desiredlanguages="$LINGUAS"
15818 desiredlanguages="$ALL_LINGUAS"
15820 for desiredlang in $desiredlanguages; do
15821 # Use the presentlang catalog if desiredlang is
15822 # a. equal to presentlang, or
15823 # b. a variant of presentlang (because in this case,
15824 # presentlang can be used as a fallback for messages
15825 # which are not translated in the desiredlang catalog).
15826 case "$desiredlang" in
15827 "$presentlang"*) useit=yes;;
15830 if test $useit = yes; then
15831 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15834 LINGUAS=$NEW_LINGUAS
15835 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
15836 echo "${ECHO_T}$LINGUAS" >&6; }
15839 if test -n "$LINGUAS"; then
15840 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15845 if test -n "$ac_aux_dir"; then
15846 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15848 if test -z "$MKINSTALLDIRS"; then
15849 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15853 test -d po || mkdir po
15854 if test "x$srcdir" != "x."; then
15855 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15856 posrcprefix="$srcdir/"
15858 posrcprefix="../$srcdir/"
15864 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15865 < $srcdir/po/POTFILES.in > po/POTFILES
15868 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
15870 cat >confcache <<\_ACEOF
15871 # This file is a shell script that caches the results of configure
15872 # tests run on this system so they can be shared between configure
15873 # scripts and configure runs, see configure's option --config-cache.
15874 # It is not useful on other systems. If it contains results you don't
15875 # want to keep, you may remove or edit it.
15877 # config.status only pays attention to the cache file if you give it
15878 # the --recheck option to rerun configure.
15880 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15881 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15882 # following values.
15886 # The following way of writing the cache mishandles newlines in values,
15887 # but we know of no workaround that is simple, portable, and efficient.
15888 # So, we kill variables containing newlines.
15889 # Ultrix sh set writes to stderr and can't be redirected directly,
15890 # and sets the high bit in the cache file unless we assign to the vars.
15892 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15893 eval ac_val=\$$ac_var
15897 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15898 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15901 _ | IFS | as_nl) ;; #(
15902 *) $as_unset $ac_var ;;
15908 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15909 *${as_nl}ac_space=\ *)
15910 # `set' does not quote correctly, so add quotes (double-quote
15911 # substitution turns \\\\ into \\, and sed turns \\ into \).
15914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15917 # `set' quotes correctly as required by POSIX, so do not add quotes.
15918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15932 if test -w "$cache_file"; then
15933 test "x$cache_file" != "x/dev/null" &&
15934 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15935 echo "$as_me: updating cache $cache_file" >&6;}
15936 cat confcache >$cache_file
15938 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15939 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15945 # Let make expand exec_prefix.
15946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15948 DEFS=-DHAVE_CONFIG_H
15952 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15953 # 1. Remove the extension, and $U if already installed.
15954 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15955 ac_i=`echo "$ac_i" | sed "$ac_script"`
15956 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15957 # will be set to the directory where LIBOBJS objects are built.
15958 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15959 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15961 LIBOBJS=$ac_libobjs
15963 LTLIBOBJS=$ac_ltlibobjs
15966 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15967 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15968 Usually this means the macro was only invoked conditionally." >&5
15969 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15970 Usually this means the macro was only invoked conditionally." >&2;}
15971 { (exit 1); exit 1; }; }
15973 if test -z "${GUI_ANDROID_TRUE}" && test -z "${GUI_ANDROID_FALSE}"; then
15974 { { echo "$as_me:$LINENO: error: conditional \"GUI_ANDROID\" was never defined.
15975 Usually this means the macro was only invoked conditionally." >&5
15976 echo "$as_me: error: conditional \"GUI_ANDROID\" was never defined.
15977 Usually this means the macro was only invoked conditionally." >&2;}
15978 { (exit 1); exit 1; }; }
15980 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15981 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15982 Usually this means the macro was only invoked conditionally." >&5
15983 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15984 Usually this means the macro was only invoked conditionally." >&2;}
15985 { (exit 1); exit 1; }; }
15987 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15988 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15989 Usually this means the macro was only invoked conditionally." >&5
15990 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15991 Usually this means the macro was only invoked conditionally." >&2;}
15992 { (exit 1); exit 1; }; }
15994 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15995 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15996 Usually this means the macro was only invoked conditionally." >&5
15997 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15998 Usually this means the macro was only invoked conditionally." >&2;}
15999 { (exit 1); exit 1; }; }
16001 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16002 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16003 Usually this means the macro was only invoked conditionally." >&5
16004 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16005 Usually this means the macro was only invoked conditionally." >&2;}
16006 { (exit 1); exit 1; }; }
16008 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
16009 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
16010 Usually this means the macro was only invoked conditionally." >&5
16011 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
16012 Usually this means the macro was only invoked conditionally." >&2;}
16013 { (exit 1); exit 1; }; }
16015 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
16016 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
16017 Usually this means the macro was only invoked conditionally." >&5
16018 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
16019 Usually this means the macro was only invoked conditionally." >&2;}
16020 { (exit 1); exit 1; }; }
16022 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
16023 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
16024 Usually this means the macro was only invoked conditionally." >&5
16025 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
16026 Usually this means the macro was only invoked conditionally." >&2;}
16027 { (exit 1); exit 1; }; }
16029 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
16030 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
16031 Usually this means the macro was only invoked conditionally." >&5
16032 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
16033 Usually this means the macro was only invoked conditionally." >&2;}
16034 { (exit 1); exit 1; }; }
16036 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
16037 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
16038 Usually this means the macro was only invoked conditionally." >&5
16039 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
16040 Usually this means the macro was only invoked conditionally." >&2;}
16041 { (exit 1); exit 1; }; }
16043 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
16044 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
16045 Usually this means the macro was only invoked conditionally." >&5
16046 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
16047 Usually this means the macro was only invoked conditionally." >&2;}
16048 { (exit 1); exit 1; }; }
16050 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
16051 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
16052 Usually this means the macro was only invoked conditionally." >&5
16053 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
16054 Usually this means the macro was only invoked conditionally." >&2;}
16055 { (exit 1); exit 1; }; }
16057 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
16058 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
16059 Usually this means the macro was only invoked conditionally." >&5
16060 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
16061 Usually this means the macro was only invoked conditionally." >&2;}
16062 { (exit 1); exit 1; }; }
16064 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
16065 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
16066 Usually this means the macro was only invoked conditionally." >&5
16067 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
16068 Usually this means the macro was only invoked conditionally." >&2;}
16069 { (exit 1); exit 1; }; }
16071 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
16072 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
16073 Usually this means the macro was only invoked conditionally." >&5
16074 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
16075 Usually this means the macro was only invoked conditionally." >&2;}
16076 { (exit 1); exit 1; }; }
16078 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
16079 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
16080 Usually this means the macro was only invoked conditionally." >&5
16081 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
16082 Usually this means the macro was only invoked conditionally." >&2;}
16083 { (exit 1); exit 1; }; }
16085 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
16086 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
16087 Usually this means the macro was only invoked conditionally." >&5
16088 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
16089 Usually this means the macro was only invoked conditionally." >&2;}
16090 { (exit 1); exit 1; }; }
16092 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
16093 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
16094 Usually this means the macro was only invoked conditionally." >&5
16095 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
16096 Usually this means the macro was only invoked conditionally." >&2;}
16097 { (exit 1); exit 1; }; }
16099 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
16100 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
16101 Usually this means the macro was only invoked conditionally." >&5
16102 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
16103 Usually this means the macro was only invoked conditionally." >&2;}
16104 { (exit 1); exit 1; }; }
16106 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
16107 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
16108 Usually this means the macro was only invoked conditionally." >&5
16109 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
16110 Usually this means the macro was only invoked conditionally." >&2;}
16111 { (exit 1); exit 1; }; }
16113 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
16114 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
16115 Usually this means the macro was only invoked conditionally." >&5
16116 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
16117 Usually this means the macro was only invoked conditionally." >&2;}
16118 { (exit 1); exit 1; }; }
16120 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
16121 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
16122 Usually this means the macro was only invoked conditionally." >&5
16123 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
16124 Usually this means the macro was only invoked conditionally." >&2;}
16125 { (exit 1); exit 1; }; }
16127 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
16128 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
16129 Usually this means the macro was only invoked conditionally." >&5
16130 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
16131 Usually this means the macro was only invoked conditionally." >&2;}
16132 { (exit 1); exit 1; }; }
16134 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
16135 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
16136 Usually this means the macro was only invoked conditionally." >&5
16137 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
16138 Usually this means the macro was only invoked conditionally." >&2;}
16139 { (exit 1); exit 1; }; }
16141 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
16142 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
16143 Usually this means the macro was only invoked conditionally." >&5
16144 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
16145 Usually this means the macro was only invoked conditionally." >&2;}
16146 { (exit 1); exit 1; }; }
16148 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
16149 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
16150 Usually this means the macro was only invoked conditionally." >&5
16151 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
16152 Usually this means the macro was only invoked conditionally." >&2;}
16153 { (exit 1); exit 1; }; }
16156 : ${CONFIG_STATUS=./config.status}
16157 ac_clean_files_save=$ac_clean_files
16158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16161 cat >$CONFIG_STATUS <<_ACEOF
16163 # Generated by $as_me.
16164 # Run this file to recreate the current configuration.
16165 # Compiler output produced by configure, useful for debugging
16166 # configure, is in config.log if it exists.
16169 ac_cs_recheck=false
16171 SHELL=\${CONFIG_SHELL-$SHELL}
16174 cat >>$CONFIG_STATUS <<\_ACEOF
16175 ## --------------------- ##
16176 ## M4sh Initialization. ##
16177 ## --------------------- ##
16179 # Be more Bourne compatible
16180 DUALCASE=1; export DUALCASE # for MKS sh
16181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16184 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16185 # is contrary to our usage. Disable this feature.
16186 alias -g '${1+"$@"}'='"$@"'
16187 setopt NO_GLOB_SUBST
16189 case `(set -o) 2>/dev/null` in
16190 *posix*) set -o posix ;;
16199 # Avoid depending upon Character Ranges.
16200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16203 as_cr_digits='0123456789'
16204 as_cr_alnum=$as_cr_Letters$as_cr_digits
16206 # The user is always right.
16207 if test "${PATH_SEPARATOR+set}" != set; then
16208 echo "#! /bin/sh" >conf$$.sh
16209 echo "exit 0" >>conf$$.sh
16211 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16219 # Support unset when possible.
16220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16228 # We need space, tab and new line, in precisely that order. Quoting is
16229 # there to prevent editors from complaining about space-tab.
16230 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16231 # splitting by setting IFS to empty value.)
16236 # Find who we are. Look in the path if we contain no directory separator.
16238 *[\\/]* ) as_myself=$0 ;;
16239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16240 for as_dir in $PATH
16243 test -z "$as_dir" && as_dir=.
16244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16250 # We did not find ourselves, most probably we were run as `sh COMMAND'
16251 # in which case we are not to be found in the path.
16252 if test "x$as_myself" = x; then
16255 if test ! -f "$as_myself"; then
16256 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16257 { (exit 1); exit 1; }
16260 # Work around bugs in pre-3.0 UWIN ksh.
16261 for as_var in ENV MAIL MAILPATH
16262 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16270 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16271 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16272 LC_TELEPHONE LC_TIME
16274 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16275 eval $as_var=C; export $as_var
16277 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16281 # Required to use basename.
16282 if expr a : '\(a\)' >/dev/null 2>&1 &&
16283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16290 as_basename=basename
16296 # Name of the executable.
16297 as_me=`$as_basename -- "$0" ||
16298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16299 X"$0" : 'X\(//\)$' \| \
16300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16302 sed '/^.*\/\([^/][^/]*\)\/*$/{
16321 as_lineno_1=$LINENO
16322 as_lineno_2=$LINENO
16323 test "x$as_lineno_1" != "x$as_lineno_2" &&
16324 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16326 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16327 # uniformly replaced by the line number. The first 'sed' inserts a
16328 # line-number line after each line using $LINENO; the second 'sed'
16329 # does the real work. The second script uses 'N' to pair each
16330 # line-number line with the line containing $LINENO, and appends
16331 # trailing '-' during substitution so that $LINENO is not a special
16332 # case at line end.
16333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16334 # scripts with optimization help from Paolo Bonzini. Blame Lee
16335 # E. McMahon (1931-1989) for sed's syntax. :-)
16347 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16350 ' >$as_me.lineno &&
16351 chmod +x "$as_me.lineno" ||
16352 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16353 { (exit 1); exit 1; }; }
16355 # Don't try to exec as it changes $[0], causing all sort of problems
16356 # (the dirname of $[0] is not the place where we might find the
16357 # original and so on. Autoconf is especially sensitive to this).
16358 . "./$as_me.lineno"
16359 # Exit status is that of the last command.
16364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16370 ECHO_C= ECHO_N= ECHO_T=
16371 case `echo -n x` in
16373 case `echo 'x\c'` in
16374 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16381 if expr a : '\(a\)' >/dev/null 2>&1 &&
16382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16388 rm -f conf$$ conf$$.exe conf$$.file
16389 if test -d conf$$.dir; then
16390 rm -f conf$$.dir/conf$$.file
16396 if ln -s conf$$.file conf$$ 2>/dev/null; then
16398 # ... but there are two gotchas:
16399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16401 # In both cases, we have to default to `cp -p'.
16402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16404 elif ln conf$$.file conf$$ 2>/dev/null; then
16409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16410 rmdir conf$$.dir 2>/dev/null
16412 if mkdir -p . 2>/dev/null; then
16415 test -d ./-p && rmdir ./-p
16419 if test -x / >/dev/null 2>&1; then
16420 as_test_x='test -x'
16422 if ls -dL / >/dev/null 2>&1; then
16429 if test -d "$1"; then
16435 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16436 ???[sx]*):;;*)false;;esac;fi
16440 as_executable_p=$as_test_x
16442 # Sed expression to map a string onto a valid CPP name.
16443 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16445 # Sed expression to map a string onto a valid variable name.
16446 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16451 # Save the log message, to keep $[0] and so on meaningful, and to
16452 # report actual input values of CONFIG_FILES etc. instead of their
16453 # values after options handling.
16455 This file was extended by $as_me, which was
16456 generated by GNU Autoconf 2.61. Invocation command line was
16458 CONFIG_FILES = $CONFIG_FILES
16459 CONFIG_HEADERS = $CONFIG_HEADERS
16460 CONFIG_LINKS = $CONFIG_LINKS
16461 CONFIG_COMMANDS = $CONFIG_COMMANDS
16464 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16469 cat >>$CONFIG_STATUS <<_ACEOF
16470 # Files that config.status was made for.
16471 config_files="$ac_config_files"
16472 config_headers="$ac_config_headers"
16473 config_commands="$ac_config_commands"
16477 cat >>$CONFIG_STATUS <<\_ACEOF
16479 \`$as_me' instantiates files from templates according to the
16480 current configuration.
16482 Usage: $0 [OPTIONS] [FILE]...
16484 -h, --help print this help, then exit
16485 -V, --version print version number and configuration settings, then exit
16486 -q, --quiet do not print progress messages
16487 -d, --debug don't remove temporary files
16488 --recheck update $as_me by reconfiguring in the same conditions
16489 --file=FILE[:TEMPLATE]
16490 instantiate the configuration file FILE
16491 --header=FILE[:TEMPLATE]
16492 instantiate the configuration header FILE
16494 Configuration files:
16497 Configuration headers:
16500 Configuration commands:
16503 Report bugs to <bug-autoconf@gnu.org>."
16506 cat >>$CONFIG_STATUS <<_ACEOF
16509 configured by $0, generated by GNU Autoconf 2.61,
16510 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16512 Copyright (C) 2006 Free Software Foundation, Inc.
16513 This config.status script is free software; the Free Software Foundation
16514 gives unlimited permission to copy, distribute and modify it."
16521 cat >>$CONFIG_STATUS <<\_ACEOF
16522 # If no file are specified by the user, then we need to provide default
16523 # value. By we need to know if files were specified by the user.
16529 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16530 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16541 # Handling of the options.
16542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16544 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16545 echo "$ac_cs_version"; exit ;;
16546 --debug | --debu | --deb | --de | --d | -d )
16548 --file | --fil | --fi | --f )
16550 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16551 ac_need_defaults=false;;
16552 --header | --heade | --head | --hea )
16554 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16555 ac_need_defaults=false;;
16557 # Conflict between --help and --header
16558 { echo "$as_me: error: ambiguous option: $1
16559 Try \`$0 --help' for more information." >&2
16560 { (exit 1); exit 1; }; };;
16561 --help | --hel | -h )
16562 echo "$ac_cs_usage"; exit ;;
16563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16564 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16567 # This is an error.
16568 -*) { echo "$as_me: error: unrecognized option: $1
16569 Try \`$0 --help' for more information." >&2
16570 { (exit 1); exit 1; }; } ;;
16572 *) ac_config_targets="$ac_config_targets $1"
16573 ac_need_defaults=false ;;
16579 ac_configure_extra_args=
16581 if $ac_cs_silent; then
16583 ac_configure_extra_args="$ac_configure_extra_args --silent"
16587 cat >>$CONFIG_STATUS <<_ACEOF
16588 if \$ac_cs_recheck; then
16589 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16590 CONFIG_SHELL=$SHELL
16591 export CONFIG_SHELL
16592 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16596 cat >>$CONFIG_STATUS <<\_ACEOF
16600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16601 ## Running $as_me. ##
16607 cat >>$CONFIG_STATUS <<_ACEOF
16611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16616 cat >>$CONFIG_STATUS <<\_ACEOF
16618 # Handling of arguments.
16619 for ac_config_target in $ac_config_targets
16621 case $ac_config_target in
16622 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16623 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16624 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16625 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16626 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16627 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16628 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16629 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16630 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
16632 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16634 { (exit 1); exit 1; }; };;
16639 # If the user did not use the arguments to specify the items to instantiate,
16640 # then the envvar interface is used. Set only those that are not.
16641 # We use the long form for the default assignment because of an extremely
16642 # bizarre bug on SunOS 4.1.3.
16643 if $ac_need_defaults; then
16644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16646 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16649 # Have a temporary directory for convenience. Make it in the build tree
16650 # simply because there is no reason against having it here, and in addition,
16651 # creating and moving files from /tmp can sometimes cause problems.
16652 # Hook for its removal unless debugging.
16653 # Note that there is a small window in which the directory will not be cleaned:
16654 # after its creation but before its name has been assigned to `$tmp'.
16658 trap 'exit_status=$?
16659 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16661 trap '{ (exit 1); exit 1; }' 1 2 13 15
16663 # Create a (secure) tmp directory for tmp files.
16666 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16667 test -n "$tmp" && test -d "$tmp"
16670 tmp=./conf$$-$RANDOM
16671 (umask 077 && mkdir "$tmp")
16674 echo "$me: cannot create a temporary directory in ." >&2
16675 { (exit 1); exit 1; }
16679 # Set up the sed scripts for CONFIG_FILES section.
16682 # No need to generate the scripts if there are no CONFIG_FILES.
16683 # This happens for instance when ./config.status config.h
16684 if test -n "$CONFIG_FILES"; then
16691 for ac_last_try in false false false false false :; do
16692 cat >conf$$subs.sed <<_ACEOF
16693 SHELL!$SHELL$ac_delim
16694 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16695 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16696 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16697 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16698 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16699 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16700 exec_prefix!$exec_prefix$ac_delim
16701 prefix!$prefix$ac_delim
16702 program_transform_name!$program_transform_name$ac_delim
16703 bindir!$bindir$ac_delim
16704 sbindir!$sbindir$ac_delim
16705 libexecdir!$libexecdir$ac_delim
16706 datarootdir!$datarootdir$ac_delim
16707 datadir!$datadir$ac_delim
16708 sysconfdir!$sysconfdir$ac_delim
16709 sharedstatedir!$sharedstatedir$ac_delim
16710 localstatedir!$localstatedir$ac_delim
16711 includedir!$includedir$ac_delim
16712 oldincludedir!$oldincludedir$ac_delim
16713 docdir!$docdir$ac_delim
16714 infodir!$infodir$ac_delim
16715 htmldir!$htmldir$ac_delim
16716 dvidir!$dvidir$ac_delim
16717 pdfdir!$pdfdir$ac_delim
16718 psdir!$psdir$ac_delim
16719 libdir!$libdir$ac_delim
16720 localedir!$localedir$ac_delim
16721 mandir!$mandir$ac_delim
16722 DEFS!$DEFS$ac_delim
16723 ECHO_C!$ECHO_C$ac_delim
16724 ECHO_N!$ECHO_N$ac_delim
16725 ECHO_T!$ECHO_T$ac_delim
16726 LIBS!$LIBS$ac_delim
16727 build_alias!$build_alias$ac_delim
16728 host_alias!$host_alias$ac_delim
16729 target_alias!$target_alias$ac_delim
16730 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16731 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16732 INSTALL_DATA!$INSTALL_DATA$ac_delim
16733 CYGPATH_W!$CYGPATH_W$ac_delim
16734 PACKAGE!$PACKAGE$ac_delim
16735 VERSION!$VERSION$ac_delim
16736 ACLOCAL!$ACLOCAL$ac_delim
16737 AUTOCONF!$AUTOCONF$ac_delim
16738 AUTOMAKE!$AUTOMAKE$ac_delim
16739 AUTOHEADER!$AUTOHEADER$ac_delim
16740 MAKEINFO!$MAKEINFO$ac_delim
16741 install_sh!$install_sh$ac_delim
16742 STRIP!$STRIP$ac_delim
16743 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16744 mkdir_p!$mkdir_p$ac_delim
16746 SET_MAKE!$SET_MAKE$ac_delim
16747 am__leading_dot!$am__leading_dot$ac_delim
16748 AMTAR!$AMTAR$ac_delim
16749 am__tar!$am__tar$ac_delim
16750 am__untar!$am__untar$ac_delim
16751 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16752 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16753 MAINT!$MAINT$ac_delim
16754 build!$build$ac_delim
16755 build_cpu!$build_cpu$ac_delim
16756 build_vendor!$build_vendor$ac_delim
16757 build_os!$build_os$ac_delim
16758 host!$host$ac_delim
16759 host_cpu!$host_cpu$ac_delim
16760 host_vendor!$host_vendor$ac_delim
16761 host_os!$host_os$ac_delim
16763 ANDROID_SDK_HOME!$ANDROID_SDK_HOME$ac_delim
16764 ANDROID_NDK_HOME!$ANDROID_NDK_HOME$ac_delim
16765 ANDROID_SDK_VERSION!$ANDROID_SDK_VERSION$ac_delim
16766 ANDROID_NDK_VERSION!$ANDROID_NDK_VERSION$ac_delim
16767 ANDROID_GDBSERVER!$ANDROID_GDBSERVER$ac_delim
16768 GUI_ANDROID_TRUE!$GUI_ANDROID_TRUE$ac_delim
16769 GUI_ANDROID_FALSE!$GUI_ANDROID_FALSE$ac_delim
16771 CFLAGS!$CFLAGS$ac_delim
16772 LDFLAGS!$LDFLAGS$ac_delim
16773 CPPFLAGS!$CPPFLAGS$ac_delim
16774 ac_ct_CC!$ac_ct_CC$ac_delim
16775 EXEEXT!$EXEEXT$ac_delim
16776 OBJEXT!$OBJEXT$ac_delim
16777 DEPDIR!$DEPDIR$ac_delim
16778 am__include!$am__include$ac_delim
16779 am__quote!$am__quote$ac_delim
16780 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16781 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16782 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16783 CCDEPMODE!$CCDEPMODE$ac_delim
16784 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16785 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16788 CFLAGS!$CFLAGS$ac_delim
16789 CPPFLAGS!$CPPFLAGS$ac_delim
16792 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16794 elif $ac_last_try; then
16795 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16796 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16797 { (exit 1); exit 1; }; }
16799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16803 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16804 if test -n "$ac_eof"; then
16805 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16806 ac_eof=`expr $ac_eof + 1`
16809 cat >>$CONFIG_STATUS <<_ACEOF
16810 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16814 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16815 s/^/s,@/; s/!/@,|#_!!_#|/
16818 s/'"$ac_delim"'$/,g/; t
16820 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16821 ' >>$CONFIG_STATUS <conf$$subs.sed
16822 rm -f conf$$subs.sed
16823 cat >>$CONFIG_STATUS <<_ACEOF
16829 for ac_last_try in false false false false false :; do
16830 cat >conf$$subs.sed <<_ACEOF
16831 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
16832 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
16833 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
16834 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
16835 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
16837 CPPFLAGS!$CPPFLAGS$ac_delim
16838 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
16839 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
16840 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
16841 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
16842 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
16843 OBJC!$OBJC$ac_delim
16844 OBJCFLAGS!$OBJCFLAGS$ac_delim
16845 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
16847 CCAS!$CCAS$ac_delim
16848 CCASFLAGS!$CCASFLAGS$ac_delim
16849 RANLIB!$RANLIB$ac_delim
16850 GREP!$GREP$ac_delim
16851 EGREP!$EGREP$ac_delim
16852 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
16853 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
16854 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
16855 POD2MAN!$POD2MAN$ac_delim
16856 POD2HTML!$POD2HTML$ac_delim
16857 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
16858 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
16859 SOEXT!$SOEXT$ac_delim
16860 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
16861 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
16862 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
16863 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
16864 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
16865 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
16866 PKG_CONFIG!$PKG_CONFIG$ac_delim
16867 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
16868 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
16869 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
16870 GLIB_LIBS!$GLIB_LIBS$ac_delim
16871 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
16872 GTK_LIBS!$GTK_LIBS$ac_delim
16873 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
16874 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
16875 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
16876 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
16877 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
16878 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
16879 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
16880 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
16881 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
16882 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
16883 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
16884 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
16885 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
16886 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
16887 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
16888 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
16889 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
16890 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
16891 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
16892 SDL_LIBS!$SDL_LIBS$ac_delim
16893 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
16894 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
16895 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
16896 PULSE_LIBS!$PULSE_LIBS$ac_delim
16897 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
16898 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
16899 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
16900 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
16901 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
16902 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
16903 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
16904 ALSA_LIBS!$ALSA_LIBS$ac_delim
16905 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
16906 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
16907 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
16908 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
16909 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
16910 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
16911 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
16912 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
16913 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
16914 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
16915 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
16916 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
16917 SHCC!$SHCC$ac_delim
16918 SHLD!$SHLD$ac_delim
16919 SHOBJCOPY!$SHOBJCOPY$ac_delim
16920 ARMCC!$ARMCC$ac_delim
16921 ARMLD!$ARMLD$ac_delim
16922 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
16923 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
16924 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
16925 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
16926 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
16927 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
16930 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16932 elif $ac_last_try; then
16933 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16934 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16935 { (exit 1); exit 1; }; }
16937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16941 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16942 if test -n "$ac_eof"; then
16943 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16944 ac_eof=`expr $ac_eof + 1`
16947 cat >>$CONFIG_STATUS <<_ACEOF
16948 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16952 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16953 s/^/s,@/; s/!/@,|#_!!_#|/
16956 s/'"$ac_delim"'$/,g/; t
16958 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16959 ' >>$CONFIG_STATUS <conf$$subs.sed
16960 rm -f conf$$subs.sed
16961 cat >>$CONFIG_STATUS <<_ACEOF
16967 for ac_last_try in false false false false false :; do
16968 cat >conf$$subs.sed <<_ACEOF
16969 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16970 USE_NLS!$USE_NLS$ac_delim
16971 MSGFMT!$MSGFMT$ac_delim
16972 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
16973 GMSGFMT!$GMSGFMT$ac_delim
16974 XGETTEXT!$XGETTEXT$ac_delim
16975 CATALOGS!$CATALOGS$ac_delim
16976 CATOBJEXT!$CATOBJEXT$ac_delim
16977 DATADIRNAME!$DATADIRNAME$ac_delim
16978 GMOFILES!$GMOFILES$ac_delim
16979 INSTOBJEXT!$INSTOBJEXT$ac_delim
16980 INTLLIBS!$INTLLIBS$ac_delim
16981 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
16982 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
16983 POFILES!$POFILES$ac_delim
16984 POSUB!$POSUB$ac_delim
16985 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16986 LIBOBJS!$LIBOBJS$ac_delim
16987 LTLIBOBJS!$LTLIBOBJS$ac_delim
16990 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
16992 elif $ac_last_try; then
16993 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16994 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16995 { (exit 1); exit 1; }; }
16997 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17001 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17002 if test -n "$ac_eof"; then
17003 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17004 ac_eof=`expr $ac_eof + 1`
17007 cat >>$CONFIG_STATUS <<_ACEOF
17008 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
17009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17012 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17013 s/^/s,@/; s/!/@,|#_!!_#|/
17016 s/'"$ac_delim"'$/,g/; t
17018 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17019 ' >>$CONFIG_STATUS <conf$$subs.sed
17020 rm -f conf$$subs.sed
17021 cat >>$CONFIG_STATUS <<_ACEOF
17028 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17029 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17030 # trailing colons and then remove the whole line if VPATH becomes empty
17031 # (actually we leave an empty line to preserve line numbers).
17032 if test "x$srcdir" = x.; then
17033 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17034 s/:*\$(srcdir):*/:/
17035 s/:*\${srcdir}:*/:/
17037 s/^\([^=]*=[ ]*\):*/\1/
17043 cat >>$CONFIG_STATUS <<\_ACEOF
17044 fi # test -n "$CONFIG_FILES"
17047 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
17050 :[FHLC]) ac_mode=$ac_tag; continue;;
17052 case $ac_mode$ac_tag in
17054 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17055 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17056 { (exit 1); exit 1; }; };;
17057 :[FH]-) ac_tag=-:-;;
17058 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17075 -) ac_f="$tmp/stdin";;
17076 *) # Look for the file first in the build tree, then in the source tree
17077 # (if the path is not absolute). The absolute path cannot be DOS-style,
17078 # because $ac_f cannot contain `:'.
17082 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17084 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17085 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17086 { (exit 1); exit 1; }; };;
17088 ac_file_inputs="$ac_file_inputs $ac_f"
17091 # Let's still pretend it is `configure' which instantiates (i.e., don't
17092 # use $as_me), people would be surprised to read:
17093 # /* config.h. Generated by config.status. */
17094 configure_input="Generated from "`IFS=:
17095 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17096 if test x"$ac_file" != x-; then
17097 configure_input="$ac_file. $configure_input"
17098 { echo "$as_me:$LINENO: creating $ac_file" >&5
17099 echo "$as_me: creating $ac_file" >&6;}
17103 *:-:* | *:-) cat >"$tmp/stdin";;
17108 ac_dir=`$as_dirname -- "$ac_file" ||
17109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17110 X"$ac_file" : 'X\(//\)[^/]' \| \
17111 X"$ac_file" : 'X\(//\)$' \| \
17112 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17118 /^X\(\/\/\)[^/].*/{
17133 -*) as_dir=./$as_dir;;
17135 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17139 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17140 *) as_qdir=$as_dir;;
17142 as_dirs="'$as_qdir' $as_dirs"
17143 as_dir=`$as_dirname -- "$as_dir" ||
17144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17145 X"$as_dir" : 'X\(//\)[^/]' \| \
17146 X"$as_dir" : 'X\(//\)$' \| \
17147 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17153 /^X\(\/\/\)[^/].*/{
17166 test -d "$as_dir" && break
17168 test -z "$as_dirs" || eval "mkdir $as_dirs"
17169 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17170 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17171 { (exit 1); exit 1; }; }; }
17175 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17177 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17178 # A ".." for each directory in $ac_dir_suffix.
17179 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17180 case $ac_top_builddir_sub in
17181 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17182 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17185 ac_abs_top_builddir=$ac_pwd
17186 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17187 # for backward compatibility:
17188 ac_top_builddir=$ac_top_build_prefix
17191 .) # We are building in place.
17193 ac_top_srcdir=$ac_top_builddir_sub
17194 ac_abs_top_srcdir=$ac_pwd ;;
17195 [\\/]* | ?:[\\/]* ) # Absolute name.
17196 ac_srcdir=$srcdir$ac_dir_suffix;
17197 ac_top_srcdir=$srcdir
17198 ac_abs_top_srcdir=$srcdir ;;
17199 *) # Relative name.
17200 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17201 ac_top_srcdir=$ac_top_build_prefix$srcdir
17202 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17204 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17214 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17215 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17219 cat >>$CONFIG_STATUS <<\_ACEOF
17220 # If the template does not know about datarootdir, expand it.
17221 # FIXME: This hack should be removed a few years after 2.60.
17222 ac_datarootdir_hack=; ac_datarootdir_seen=
17224 case `sed -n '/datarootdir/ {
17233 ' $ac_file_inputs` in
17234 *datarootdir*) ac_datarootdir_seen=yes;;
17235 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17236 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17237 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17239 cat >>$CONFIG_STATUS <<_ACEOF
17240 ac_datarootdir_hack='
17241 s&@datadir@&$datadir&g
17242 s&@docdir@&$docdir&g
17243 s&@infodir@&$infodir&g
17244 s&@localedir@&$localedir&g
17245 s&@mandir@&$mandir&g
17246 s&\\\${datarootdir}&$datarootdir&g' ;;
17250 # Neutralize VPATH when `$srcdir' = `.'.
17251 # Shell code in configure.ac might set extrasub.
17252 # FIXME: do we really want to maintain this feature?
17253 cat >>$CONFIG_STATUS <<_ACEOF
17257 cat >>$CONFIG_STATUS <<\_ACEOF
17259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17260 s&@configure_input@&$configure_input&;t t
17261 s&@top_builddir@&$ac_top_builddir_sub&;t t
17262 s&@srcdir@&$ac_srcdir&;t t
17263 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17264 s&@top_srcdir@&$ac_top_srcdir&;t t
17265 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17266 s&@builddir@&$ac_builddir&;t t
17267 s&@abs_builddir@&$ac_abs_builddir&;t t
17268 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17269 s&@INSTALL@&$ac_INSTALL&;t t
17270 $ac_datarootdir_hack
17271 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
17273 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17274 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17275 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17276 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17277 which seems to be undefined. Please make sure it is defined." >&5
17278 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17279 which seems to be undefined. Please make sure it is defined." >&2;}
17283 -) cat "$tmp/out"; rm -f "$tmp/out";;
17284 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17293 # Transform confdefs.h into a sed script `conftest.defines', that
17294 # substitutes the proper values into config.h.in to produce config.h.
17295 rm -f conftest.defines conftest.tail
17296 # First, append a space to every undef/define line, to ease matching.
17297 echo 's/$/ /' >conftest.defines
17298 # Then, protect against being on the right side of a sed subst, or in
17299 # an unquoted here document, in config.status. If some macros were
17300 # called several times there might be several #defines for the same
17301 # symbol, which is useless. But do not sort them, since the last
17302 # AC_DEFINE must be honored.
17303 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17304 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17305 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17306 # PARAMS is the parameter list in the macro definition--in most cases, it's
17307 # just an empty string.
17308 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17309 ac_dB='\\)[ (].*,\\1define\\2'
17317 s/^[ ]*#[ ]*define[ ][ ]*//
17322 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17323 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17324 ' >>conftest.defines
17326 # Remove the space that was appended to ease matching.
17327 # Then replace #undef with comments. This is necessary, for
17328 # example, in the case of _POSIX_SOURCE, which is predefined and required
17329 # on some systems where configure will not decide to define it.
17330 # (The regexp can be short, since the line contains either #define or #undef.)
17332 s,^[ #]*u.*,/* & */,' >>conftest.defines
17334 # Break up conftest.defines:
17335 ac_max_sed_lines=50
17337 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17338 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17339 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17341 ac_in='$ac_file_inputs'
17342 ac_out='"$tmp/out1"'
17343 ac_nxt='"$tmp/out2"'
17347 # Write a here document:
17348 cat >>$CONFIG_STATUS <<_ACEOF
17349 # First, check the format of the line:
17350 cat >"\$tmp/defines.sed" <<\\CEOF
17351 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17352 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17356 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17358 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17359 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17360 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17361 grep . conftest.tail >/dev/null || break
17362 rm -f conftest.defines
17363 mv conftest.tail conftest.defines
17365 rm -f conftest.defines conftest.tail
17367 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17368 cat >>$CONFIG_STATUS <<\_ACEOF
17369 if test x"$ac_file" != x-; then
17370 echo "/* $configure_input */" >"$tmp/config.h"
17371 cat "$ac_result" >>"$tmp/config.h"
17372 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17373 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17374 echo "$as_me: $ac_file is unchanged" >&6;}
17377 mv "$tmp/config.h" $ac_file
17380 echo "/* $configure_input */"
17384 # Compute $ac_file's index in $config_headers.
17386 for _am_header in $config_headers :; do
17387 case $_am_header in
17388 $ac_file | $ac_file:* )
17391 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17394 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
17395 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17396 X$ac_file : 'X\(//\)[^/]' \| \
17397 X$ac_file : 'X\(//\)$' \| \
17398 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
17400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17404 /^X\(\/\/\)[^/].*/{
17416 s/.*/./; q'`/stamp-h$_am_stamp_count
17419 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17420 echo "$as_me: executing $ac_file commands" >&6;}
17425 case $ac_file$ac_mode in
17426 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17427 # Strip MF so we end up with the name of the file.
17428 mf=`echo "$mf" | sed -e 's/:.*$//'`
17429 # Check whether this is an Automake generated Makefile or not.
17430 # We used to match only the files named `Makefile.in', but
17431 # some people rename them; so instead we look at the file content.
17432 # Grep'ing the first line is not enough: some people post-process
17433 # each Makefile.in and add a new line on top of each file to say so.
17434 # So let's grep whole file.
17435 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17436 dirpart=`$as_dirname -- "$mf" ||
17437 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17438 X"$mf" : 'X\(//\)[^/]' \| \
17439 X"$mf" : 'X\(//\)$' \| \
17440 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17446 /^X\(\/\/\)[^/].*/{
17462 # Extract the definition of DEPDIR, am__include, and am__quote
17463 # from the Makefile without running `make'.
17464 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17465 test -z "$DEPDIR" && continue
17466 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17467 test -z "am__include" && continue
17468 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17469 # When using ansi2knr, U may be empty or an underscore; expand it
17470 U=`sed -n 's/^U = //p' < "$mf"`
17471 # Find all dependency output files, they are included files with
17472 # $(DEPDIR) in their names. We invoke sed twice because it is the
17473 # simplest approach to changing $(DEPDIR) to its actual value in the
17475 for file in `sed -n "
17476 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17477 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17478 # Make sure the directory exists.
17479 test -f "$dirpart/$file" && continue
17480 fdir=`$as_dirname -- "$file" ||
17481 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17482 X"$file" : 'X\(//\)[^/]' \| \
17483 X"$file" : 'X\(//\)$' \| \
17484 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17490 /^X\(\/\/\)[^/].*/{
17503 { as_dir=$dirpart/$fdir
17505 -*) as_dir=./$as_dir;;
17507 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17511 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17512 *) as_qdir=$as_dir;;
17514 as_dirs="'$as_qdir' $as_dirs"
17515 as_dir=`$as_dirname -- "$as_dir" ||
17516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17517 X"$as_dir" : 'X\(//\)[^/]' \| \
17518 X"$as_dir" : 'X\(//\)$' \| \
17519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17525 /^X\(\/\/\)[^/].*/{
17538 test -d "$as_dir" && break
17540 test -z "$as_dirs" || eval "mkdir $as_dirs"
17541 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17542 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17543 { (exit 1); exit 1; }; }; }
17544 # echo "creating $dirpart/$file"
17545 echo '# dummy' > "$dirpart/$file"
17549 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17550 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17557 { (exit 0); exit 0; }
17559 chmod +x $CONFIG_STATUS
17560 ac_clean_files=$ac_clean_files_save
17563 # configure is writing to config.log, and then calls config.status.
17564 # config.status does its own redirection, appending to config.log.
17565 # Unfortunately, on DOS this fails, as config.log is still kept open
17566 # by configure, so config.status won't be able to write to it; its
17567 # output is simply discarded. So we exec the FD to /dev/null,
17568 # effectively closing config.log, so it can be properly (re)opened and
17569 # appended to by config.status. When coming back to configure, we
17570 # need to make the FD available again.
17571 if test "$no_create" != yes; then
17573 ac_config_status_args=
17574 test "$silent" = yes &&
17575 ac_config_status_args="$ac_config_status_args --quiet"
17577 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17579 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17580 # would make configure fail if this is the last instruction.
17581 $ac_cs_success || { (exit 1); exit 1; }
17586 -*) as_dir=./$as_dir;;
17588 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17592 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17593 *) as_qdir=$as_dir;;
17595 as_dirs="'$as_qdir' $as_dirs"
17596 as_dir=`$as_dirname -- "$as_dir" ||
17597 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17598 X"$as_dir" : 'X\(//\)[^/]' \| \
17599 X"$as_dir" : 'X\(//\)$' \| \
17600 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17606 /^X\(\/\/\)[^/].*/{
17619 test -d "$as_dir" && break
17621 test -z "$as_dirs" || eval "mkdir $as_dirs"
17622 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17623 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17624 { (exit 1); exit 1; }; }; }
17628 echo "Configuration complete"
17631 if test "x$UI_DRIVER" = x; then
17632 echo " User interface: none"
17634 echo " User interface: $UI_DRIVER"
17637 if test "x$SH4_TRANSLATOR" = "x"; then
17638 echo " SH4 translator: none (emulation core only)"
17640 echo " SH4 translator: $SH4_TRANSLATOR"
17643 if test "x$VIDEO_DRIVERS" = "x"; then
17644 echo " Video drivers: none (no supported GL found)"
17646 echo " Video drivers: $VIDEO_DRIVERS"
17649 if test "x$AUDIO_DRIVERS" = "x"; then
17650 echo " Audio drivers: none (no supported output devices found)"
17652 echo " Audio drivers: $AUDIO_DRIVERS"
17655 if test "x$INPUT_DRIVERS" = "x"; then
17656 echo " Input drivers: none (no supported input devices found)"
17658 echo " Input drivers: $INPUT_DRIVERS"
17661 if test "x$CDROM_DRIVER" = "x"; then
17662 echo " CD-ROM driver: none (no supported cd-rom devices found)"
17664 echo " CD-ROM driver: $CDROM_DRIVER"
.